1 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
4 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
7 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
9 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
12 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
15 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
16 Generate a call to memmove for an assignment between overlapping
19 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22 * gcc-interface/Makefile.in: Add multilib handling for
23 s390-linux and s390x-linux.
25 2008-10-24 Jakub Jelinek <jakub@redhat.com>
27 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
28 check-acats-subtargets and check-gnat-subtargets.
29 (check_acats_targets): New variable.
30 (check-acats-subtargets, check-acats%): New targets.
31 (check-acats): If -j is used and CHAPTERS is empty, run the testing
32 in multiple make goals, possibly parallel, and afterwards run
33 dg-extract-results.sh to merge the sum and log files.
35 2008-10-17 Geert Bosch <bosch@adacore.com>
37 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
38 to use only a single check instead of three, and avoid unnecessary
40 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
41 creating more opportunities for optimizations.
43 2008-10-13 Jakub Jelinek <jakub@redhat.com>
46 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
49 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
51 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
52 dealing with volatileness to after code dealing with renaming.
54 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
56 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
57 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
59 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
61 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
62 (unchecked_convert): Use it to disable problematic folding with
63 VIEW_CONVERT_EXPR in the general case. Always disable it for the
64 special VIEW_CONVERT_EXPR built for integral types and cope with
65 its addressability issues by preserving the first conversion.
67 2008-10-01 Andreas Schwab <schwab@suse.de>
69 * system-linux-ppc64.ads: New file.
70 * gcc-interface/Makefile.in: Add multilib handling for
73 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
75 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
76 to that of ptr_mode instead of word_mode.
78 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
81 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
83 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
86 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
87 instead of deprecated FILE_WRITE_PROPERTIES.
89 2008-09-22 Olivier Hainque <hainque@adacore.com>
91 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
92 are never assigned, volatile entities are not constant for code
95 2008-09-21 Laurent Guerby <laurent@guerby.net>
98 * gcc-interface/Makefile.in: Add multilib handling for x86_64
100 * system-linux-sparcv9.ads: New file.
102 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
104 * exp_dbug.ads: Document new convention for the XVZ variable.
105 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
106 debug info if necessary for the type padding the component type.
107 <E_Array_Subtype>: Likewise.
108 (maybe_pad_type): Emit the XVZ variable in units.
109 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
110 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
111 on statements generated to initialize the parameter attributes cache.
112 Set the source line of the end label of the body on the special return
113 statement built for a procedure with copy-in copy-out parameters.
115 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
118 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
119 inlined external functions if they contain a nested function not
122 2008-09-18 Jan Hubicka <jh@suse.cz>
124 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
125 (end_subprog_body): Do not set DECL_INLINE.
127 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
130 * gnat_ugn.texi: Use proper format in direntry.
132 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
134 * gcc-interface/trans.c (gigi): Declare the name of the compilation
135 unit as the first global name.
137 2008-09-14 Jan Hubicka <jh@suse.cz>
139 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
141 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
143 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
144 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
145 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
146 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
147 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
148 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
149 gcc-interface/gigi.h, gcc-interface/trans.c,
150 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
151 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
152 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
153 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
154 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
155 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
156 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
157 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
159 * gnathtml.pl: Fix typos.
161 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
163 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
164 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
165 layer. RTEMS binds to OS provided adapter routines so there are
166 no modifications to s-osinte-rtems.adb.
168 2008-09-09 Arnaud Charlet <charlet@adacore.com>
169 Joel Sherrill <joel.sherrill@oarcorp.com>
171 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
173 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
175 * s-interr-hwint.adb: New file.
177 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
178 needed by s-interr-hwint.adb.
180 * s-osinte-vxworks-kernel.adb: New file.
182 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
184 * s-stchop-rtems.adb: Add file missed in early commit. Already
185 referenced in gcc-interface/Makefile.in.
187 2008-08-30 Thomas Quinot <quinot@adacore.com>
189 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
190 be built even without a separate libada directory.
192 2008-08-22 Arnaud Charlet <charlet@adacore.com>
194 * lib-xref.ads: Fix typo in subprogram reference definition.
196 2008-08-22 Robert Dewar <dewar@adacore.com>
198 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
201 * g-trasym.adb: Ditto
203 * s-utf_32.adb (Get_Category): Fix obvious typo
205 * s-wwdcha.adb: Minor code reorganization
208 2008-08-22 Robert Dewar <dewar@adacore.com>
210 * checks.adb (Determine_Range): Deal with values that might be invalid
212 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
213 configuration switches.
215 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
217 * sem_prag.adb: Implement pragma Assume_No_Default_Values
219 * snames.adb, snames.ads, snames.h:
220 Add entries for pragma Assume_No_Invalid_Values
222 * switch-c.adb: Add processing for -gnatB switch
224 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
226 2008-08-22 Javier Miranda <miranda@adacore.com>
228 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
229 init procedure all the expanded code associated with the spec of
230 task types and protected types.
232 2008-08-22 Gary Dismukes <dismukes@adacore.com>
234 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
235 component expression copies rather than directly setting Etype and
236 Is_Static_Expression.
238 2008-08-22 Gary Dismukes <dismukes@adacore.com>
240 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
241 private types to allow for types derived from a private type with
242 preelaborable initialization, but return False for a private extension
243 (unless it has the pragma).
245 2008-08-22 Robert Dewar <dewar@adacore.com>
247 * opt.ads: Minor code reorganization (put entries in alpha order)
249 2008-08-22 Pascal Obry <obry@adacore.com>
251 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
254 2008-08-22 Geert Bosch <bosch@adacore.com>
256 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
257 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
259 2008-08-22 Doug Rupp <rupp@adacore.com>
261 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
265 (__gnat_set_features): New function.
266 (__gnat_features_set): New tracking variable.
267 (__gl_no_malloc_64): New feature global variable
269 2008-08-22 Ed Schonberg <schonberg@adacore.com>
271 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
272 use_type_clause in an instance.
274 2008-08-22 Bob Duff <duff@adacore.com>
276 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
278 2008-08-22 Robert Dewar <dewar@adacore.com>
280 * exp_ch6.adb: Minor reformatting
282 * exp_ch7.adb: Minor reformatting
284 * exp_ch7.ads: Put routines in proper alpha order
286 * exp_dist.adb: Minor reformatting
288 2008-08-22 Vincent Celier <celier@adacore.com>
290 * prj.ads: Minor comment update
292 2008-08-22 Robert Dewar <dewar@adacore.com>
294 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
296 2008-08-22 Ed Schonberg <schonberg@adacore.com>
299 (Base_Init_Proc): For a protected subtype, use the base type of the
300 corresponding record to locate the propoer initialization procedure.
302 2008-08-22 Robert Dewar <dewar@adacore.com>
305 (In_Subrange_Of): New calling sequence
306 (Determine_Range): Prepare for new processing using base type
309 (Compile_Time_Compare): Use new calling sequence
312 (Compile_Time_Compare): Use new calling sequence
315 (Compile_Time_Compare): New calling sequence allows dealing with
317 (In_Subrange_Of): Ditto
320 (Compile_Time_Compare): New calling sequence allows dealing with
322 (In_Subrange_Of): Ditto
324 2008-08-22 Pascal Obry <obry@adacore.com>
326 * adaint.c: Fix possible race condition on win32_wait().
328 2008-08-22 Bob Duff <duff@adacore.com>
330 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
331 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
332 exp_intr.adb, exp_ch3.adb: Rename:
333 Exp_Ch7.Controlled_Type => Needs_Finalization
334 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
335 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
337 (Has_Some_Controlled_Component): Fix bug in array case.
339 2008-08-22 Robert Dewar <dewar@adacore.com>
341 * sem_ch8.adb: Minor reformatting
343 2008-08-22 Kevin Pouget <pouget@adacore.com>
345 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
346 Shared_Var_Close procedure specifications from package spec to package body.
348 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
349 RE_Shared_Var_WOpen entries.
351 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
352 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
354 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
356 * init.c: adjust EH support code on Alpha/Tru64 as well.
358 * raise-gcc.c: Add back a couple of comments.
360 2008-08-22 Ed Schonberg <schonberg@adacore.com>
362 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
363 involved and the return type is class-wide, use the type of the expression
364 for the generated access type. Suppress useless discriminant checks on the
367 2008-08-22 Bob Duff <duff@adacore.com>
369 * exp_ch7.adb: Minor comment fix
371 * exp_ch6.ads: Minor comment fix
373 2008-08-22 Thomas Quinot <quinot@adacore.com>
375 * sem_ch8.adb: Minor reformatting
376 Minor code reorganization (introduce subprogram to factor duplicated
379 2008-08-22 Sergey Rybin <rybin@adacore.com>
381 * gnat_ugn.texi: Change the description of gnatcheck default rule
384 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
386 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
387 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
388 do not adjust the PC anymore.
389 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
390 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
392 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
393 instead of _Unwind_GetIP.
395 2008-08-22 Gary Dismukes <dismukes@adacore.com>
397 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
398 with a range is transformed into a positional aggregate, any copied
399 component literals should be marked Is_Static_Expression.
401 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
402 not being known at at compile time when Configurable_Run_Time_Mode is
405 2008-08-22 Robert Dewar <dewar@adacore.com>
408 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
409 Read or Input attribute.
411 2008-08-22 Ed Schonberg <schonberg@adacore.com>
413 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
414 clauses in related units is redundant, if one of the units is a package
415 instantiation, use its instance_spec to determine which unit is the
416 ancestor of the other.
418 2008-08-22 Javier Miranda <miranda@adacore.com>
420 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
421 attributes add missing support to handle designated types that come
422 from the limited view.
424 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
426 2008-08-22 Sergey Rybin <rybin@adacore.com>
428 * vms_data.ads: Add entry for new gnatcheck -mNNN option
430 * gnat_ugn.texi: Add description for gnatcheck option '-m'
432 2008-08-22 Sergey Rybin <rybin@adacore.com>
434 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
435 acoording to the latest changes in the metric rule interface
437 2008-08-22 Vincent Celier <celier@adacore.com>
439 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
440 (Check): Check if the file names registered in the ALI file for the
441 spec, the body and each of the subunits are the ones expected.
443 2008-08-22 Robert Dewar <dewar@adacore.com>
445 * g-catiio.adb: Code cleanup.
447 2008-08-20 Vincent Celier <celier@adacore.com>
449 * make.adb (Gnatmake): Remove extra space in version line
452 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
453 as the name may already have been entered in the table by the Project
456 2008-08-20 Jose Ruiz <ruiz@adacore.com>
458 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
459 weak symbols so we use the version provided by MaRTE when available.
461 2008-08-20 Emmanuel Briot <briot@adacore.com>
463 * g-catiio.ads, g-catiio.adb:
464 (Value): Avoid an unnecessary system call to Clock in most cases.
465 This call is only needed when only the time is provided in the string,
466 and ignored in all other cases. This is more efficient.
468 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
470 * raise-gcc.c: Fix formatting nits.
472 2008-08-20 Robert Dewar <dewar@adacore.com>
475 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
476 non-existing component clause.
478 * exp_ch5.adb: Minor reformatting
480 * g-comlin.adb: Minor reformatting
482 * make.adb: Minor reformatting
484 * prj-proc.adb: Minor reformatting
486 * stylesw.ads: Minor reformatting
488 2008-08-20 Vincent Celier <celier@adacore.com>
490 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
491 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
492 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
493 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
494 and a switch is not recognized by gnatmake.
495 (Gnatmake): Implement new scheme for gnatmake switches and global
496 compilation switches.
497 (Switches_Of): Try successively Switches (<file name>),
498 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
500 2008-08-20 Ed Schonberg <schonberg@adacore.com>
502 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
503 implement style check that overriding operations are explicitly marked
506 * style.ads (Missing_Overriding): new procedure that provides interface
509 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
510 that the declaration or body of overriding operations carries an
511 explicit overriding indicator.
514 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
515 explicit indicator should be present.
517 * sem_ch6.adb (Verify_Overriding_Indicator,
518 Check_Overriding_Indicator): If operation is overriding, check whether
519 declaration and/or body of subprogram should be present
521 2008-08-20 Vincent Celier <celier@adacore.com>
523 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
524 gprbuild when casing is MixedCase, whatever the casing of the letters
527 2008-08-20 Gary Dismukes <dismukes@adacore.com>
529 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
530 creating dummy init proc.
531 (Requires_Init_Proc): Return False in the case No_Default_Initialization
532 is in force and the type does not have associated default
533 initialization. Move test of Is_Public (with tests of restrictions
534 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
535 for default initialization.
537 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
539 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
540 of any alias or prefix but having attached parameters (as \"-O2\").
542 2008-08-20 Robert Dewar <dewar@adacore.com>
544 * s-fileio.adb: Minor reformatting
546 2008-08-20 Thomas Quinot <quinot@adacore.com>
548 * exp_strm.adb (Build_Elementary_Input_Call,
549 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
550 selects the stream attribute routines for long float types.
552 2008-08-20 Vincent Celier <celier@adacore.com>
554 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
556 * prj.ads (Array_Data): Add a component Location
558 2008-08-20 Ed Schonberg <schonberg@adacore.com>
561 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
562 argument for ASIS and navigation use.
564 2008-08-20 Ed Schonberg <schonberg@adacore.com>
566 * einfo.ads: Add comment.
568 2008-08-20 Bob Duff <duff@adacore.com>
570 * sem_eval.ads: Minor comment fix.
572 2008-08-20 Bob Duff <duff@adacore.com>
574 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
575 folding. We were folding things like "False and then ...", but not
576 "X and then ..." where X is a constant whose value is known at compile
579 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
581 * exp_ch5.adb (Controlled_Type): New routine.
582 (Expand_N_Extended_Return_Statement): When generating a move of the
583 final list in extended return statements, check the type of the
584 function and in the case of double expanded return statements, the type
585 of the returned object.
586 (Expand_Simple_Function_Return): Perform an interface conversion when
587 the type of the returned object is an interface and the context is an
588 extended return statement.
590 2008-08-20 Ed Schonberg <schonberg@adacore.com>
592 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
593 and the full view is visible, set flag on full view as well.
595 2008-08-20 Thomas Quinot <quinot@adacore.com>
597 * g-comlin.adb: Minor reformatting
598 Minor code reorganization.
600 * freeze.adb: Minor reformatting
602 2008-08-20 Vincent Celier <celier@adacore.com>
604 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
605 source of another project.
607 2008-08-20 Pascal Obry <obry@adacore.com>
609 * s-os_lib.ads: Minor reformatting.
611 2008-08-20 Arnaud Charlet <charlet@adacore.com>
613 * gnatvsn.ads: Minor reformatting.
615 2008-08-20 Arnaud Charlet <charlet@adacore.com>
617 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
618 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
619 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
620 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
621 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
622 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
623 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
624 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
625 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
626 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
627 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
628 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
629 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
630 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
631 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
632 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
633 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
634 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
635 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
636 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
637 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
638 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
639 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
640 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
641 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
642 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
643 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
644 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
645 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
646 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
647 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
648 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
649 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
650 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
651 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
652 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
653 s-poosiz.adb, link.c: Fix copyright notice.
655 2008-08-20 Arnaud Charlet <charlet@adacore.com>
657 * g-comlin.ads: Update comments.
659 2008-08-20 Ed Schonberg <schonberg@adacore.com>
661 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
663 2008-08-20 Gary Dismukes <dismukes@adacore.com>
666 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
667 Make_Implicit_Exception_Handler when rewriting an exception handler with
668 a choice parameter, and pass the handler's Sloc instead of that of the
669 handled sequence of statements. Make_Implicit_Exception_Handler sets the
670 Sloc to No_Location (unless debugging generated code), which we don't
671 want for the case of a user handler.
673 2008-08-20 Robert Dewar <dewar@adacore.com>
675 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
678 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
679 now labeled as info msgs, not warnings.
681 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
683 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
685 * a-textio.adb: Remove redundant test.
687 * a-witeio.adb: Minor code reorganization
688 Remove redundant test found working on another issue
690 * a-ztexio.adb: Minor code reorganization
691 Remove redundant test found working on another issue
693 2008-08-20 Thomas Quinot <quinot@adacore.com>
695 * s-fileio.adb (Open) Use C helper function to determine whether a
696 given errno value corresponds to a "file not found" error.
698 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
700 2008-08-20 Jose Ruiz <ruiz@adacore.com>
702 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
703 to get access to the per-task errno variable.
704 (__set_errno for MaRTE): Do not redefine this function here since it is
705 already defined in MaRTE.
707 2008-08-20 Tristan Gingold <gingold@adacore.com>
709 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
711 2008-08-20 Robert Dewar <dewar@adacore.com>
713 * freeze.adb: Minor reformatting
715 * g-comlin.adb: Minor reformatting
717 * g-socket.adb: Minor reformatting
719 * g-socthi-mingw.adb: Minor reformatting
721 * g-stheme.adb: Minor reformatting
723 2008-08-20 Ed Schonberg <schonberg@adacore.com>
725 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
726 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
727 confusion between partial and full views of an ancestor of the context
728 type when the parent is a private extension declared in a parent unit,
729 and full views are available for the context type.
731 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
732 Robert Dewar <dewar@adacore.com>
735 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
737 Move comment in the right place.
738 * g-comver.adb (Version): Look for a zero-termination in
739 addition to a closing parenthesis.
741 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
743 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
744 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
745 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
746 Is_Package_Or_Generic_Package instead of hand-crafted tests.
748 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
751 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
754 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
756 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
758 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
760 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
761 for back-copy statements in lieu of that of the actual.
763 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
766 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
767 setjmp test consistently. Adjust for new behavior of flag_stack_check.
768 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
769 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
771 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
774 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
775 * sem_attr.adb (Check_Type): The current instance of a protected
776 object is not a type name.
777 (Analyze_Access_Attribute): Accept instances of protected objects.
778 (Analyze_Attribute, Attribute_Address clause): Ditto.
779 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
780 the prefix as being the current instance if needed.
782 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
784 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
785 Remove duplicate s-win32.o. Add s-winext.o.
787 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
789 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
790 with SOSC.SOCK__STREAM.
791 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
794 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
796 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
797 * gsocket.h, socket.c: Update to support RTEMS.
798 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
800 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
801 Robert Dewar <dewar@adacore.com>
803 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
804 left argument even when right argument is 0.
805 (Expand_N_Op_Mod): Ditto when right argument is 1.
806 (Expand_N_Op_Multiply): Ditto when any argument is 0.
807 (Expand_N_Op_Rem): Ditto when right argument is 1.
809 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
811 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
814 2008-08-08 Ed Schonberg <schonberg@adacore.com>
816 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
817 from Freeze_Entity. Used to generate cross-reference information for
818 types declared in generic packages.
820 2008-08-08 Thomas Quinot <quinot@adacore.com>
822 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
825 2008-08-08 Thomas Quinot <quinot@adacore.com>
828 On Windows, include <errno.h> and redefine only selected errno values
829 from their <winsock2.h> definitions.
831 * s-osinte-freebsd.ads: Minor reformatting
833 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
835 * g-soccon.ads: New file.
837 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
838 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
839 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
840 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
841 unit, to allow building software that depends on this internal unit
842 with both older and newer compilers.
844 2008-08-08 Robert Dewar <dewar@adacore.com>
846 * s-strxdr.adb: Minor reformatting
848 2008-08-08 Bob Duff <duff@adacore.com>
850 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
851 checking for integer operations (including division by zero)", which
852 is wrong -- divide by zero is not part of overflow checking.
853 Also added misc clarification about what check-suppression means.
855 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
857 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
859 * g-comlin.adb (Add_Switch): Handle addition of switches at the
860 begining of the command line.
861 (Append, Add): Renaming of Append to Add as this now allows addition
862 at the begining of the list.
864 * g-comlin.ads (Add_Switch): Handle addition of switches at the
865 begining of the command line.
867 2008-08-08 Thomas Quinot <quinot@adacore.com>
870 (Name): Document application scope (only legacy PC serial ports on
873 2008-08-08 Thomas Quinot <quinot@adacore.com>
875 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
876 previous change, not needed after all.
878 2008-08-08 Ed Schonberg <schonberg@adacore.com>
880 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
881 exclusion indicator is present
883 2008-08-08 Robert Dewar <dewar@adacore.com>
885 * g-comlin.adb: Minor code reorganization
888 * g-comlin.ads: Minor reformatting
890 * s-fileio.adb: Minor reformatting
892 * sem_attr.adb: Minor code reorganization (use Nkind_In)
895 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
897 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
898 with s-oscons-tmplt.i.
900 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
902 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
904 2008-08-06 Ed Schonberg <schonberg@adacore.com>
906 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
909 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
910 of a formal parameter of an incomplete type. Improve error message for
911 other improper uses of incomplete types.
913 2008-08-06 Robert Dewar <dewar@adacore.com>
915 * gnat_ugn.texi: Clarify -gnato documentation
917 2008-08-06 Thomas Quinot <quinot@adacore.com>
919 * gcc-interface/Makefile.in,
920 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
921 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
922 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
923 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
924 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
925 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
926 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
927 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
928 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
929 Remove GNAT.Sockets.Constants. This internal package is replaced by
932 2008-08-06 Thomas Quinot <quinot@adacore.com>
934 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
935 Remove obsolete targets referencing gen-soccon
936 When generating s-oscons.ads, use a file name that includes the
937 THREAD_KIND, to ensure that the (potentially different) version from a
938 previous build with a different threads flavour does not get reused.
940 2008-08-06 Thomas Quinot <quinot@adacore.com>
942 * sem_res.adb: Minor reformatting
944 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
945 only when the operating system reports a non-existing file or directory
946 (ENOENT), otherwise raise Name_Error.
948 * exp_ch11.adb: Minor reformatting
950 2008-08-06 Ed Schonberg <schonberg@adacore.com>
952 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
953 incomplete, add the access_to_subprogram type to the list of private
954 dependents only if the incomplete type will be completed in the current
956 (Build_Discriminant_Constraints): If the type of the discriminant is
957 access_to_variable, reject a constraint that is access_to_constant.
959 2008-08-06 Thomas Quinot <quinot@adacore.com>
961 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
962 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
963 g-sttsne-dummy.ads: New files.
965 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
966 with pragma Unimplemented_Unit for sockets packages on Nucleus.
968 2008-08-06 Pascal Obry <obry@adacore.com>
970 * adaint.c: Another fix for ACL support on Windows.
972 2008-08-06 Javier Miranda <miranda@adacore.com>
974 * exp_disp (Expand_Interface_Actuals): Adds missing support for
975 expansion of calls to subprograms using selected components.
977 2008-08-06 Ed Schonberg <schonberg@adacore.com>
979 * sem_res.adb (Resolve_Call): Use base type to determine whether a
980 dereference is needed because a subtype of an access_to_subprogram is
981 simply an access-subtype
983 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
985 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
986 parameters, always specify the expected separator.
988 2008-08-06 Thomas Quinot <quinot@adacore.com>
990 * xnmake.adb: Use new XUtil package for platform independent text
993 2008-08-06 Vincent Celier <celier@adacore.com>
995 * gnat_ugn.texi: Document compiler switch -gnateG
997 2008-08-06 Quentin Ochem <ochem@adacore.com>
999 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1000 in the case of an empty pattern size.
1001 (Compute_Result): Do not do any computation in the case of an empty
1003 (Report_Result): Fixed computation of the overflow guard.
1005 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1007 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1008 finalization routine to prevent elaboration order anomalies in new
1009 finalization scheme.
1011 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1013 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1014 declaration for the same type.
1016 2008-08-06 Thomas Quinot <quinot@adacore.com>
1018 * sem.adb: Minor rewording (comment)
1020 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1022 * g-comlin.adb (Define_Switch, Get_Switches): New.
1023 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1024 ungrouping switches.
1025 (For_Each_Simple_Switch): Allow more control over parameters handling.
1026 This generic method now allows ungrouping of switches with parameters
1027 and switches with more than one letter after the prefix.
1028 (Set_Command_Line): Take care of switches that are prefixed with a
1029 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1031 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1032 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1034 (Start, Alias_Switches, Group_Switches): Take care of parameters
1035 possibly present inside a group.
1037 * g-comlin.ads (Define_Switch): New method used to define a list of
1038 expected switches, that are necessary for correctly ungrouping switches
1039 with more that one character after the prefix.
1040 (Get_Switches): Method that builds a getopt string from the list of
1041 switches as set previously by Define_Switch.
1042 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1043 status of the operation. Also allow the removal of switches with
1045 (Command_Line_Configuration_Record): Maintain a list of expected
1048 2008-08-06 Doug Rupp <rupp@adacore.com>
1050 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1051 TARGET_MALLOC64 clear.
1053 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1054 if TARGET_MALLOC64 clear.
1056 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1057 (TARGET_MALLC64): New macro. Default to clear.
1059 2008-08-06 Doug Rupp <rupp@adacore.com>
1061 * gcc-interface/utils2.c (snames.h) Include
1062 (TARGET_ABI_OPEN_VMS): Initialize.
1063 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1066 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1068 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1069 null exclusion in a discriminant declaration
1071 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1072 indicators when type is not an access type.
1074 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1075 indicators when type is not an access type.
1077 2008-08-06 Javier Miranda <miranda@adacore.com>
1079 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1080 with the target interface before expanding the code of the interface
1083 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1086 (Freeze_Entity): A deferred constant does not violate the restriction
1087 No_Default_Initialization,
1089 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1090 can carry a null exclusion indicator, and on which an error may be
1091 posted if the indicator is redundant.
1093 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1094 does not apply to a subtype mark that already excludes null.
1096 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1097 exclusion does not apply to a subtype mark that already excludes null.
1099 2008-08-05 Thomas Quinot <quinot@adacore.com>
1101 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1103 2008-08-05 Doug Rupp <rupp@adacore.com>
1105 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1107 2008-08-05 Thomas Quinot <quinot@adacore.com>
1109 * gsocket.h: Make this file includable in a Nucleus environment, which
1110 does not support sockets.
1112 * socket.c: Remove Nucleus-specific hack.
1114 2008-08-05 Pascal Obry <obry@adacore.com>
1116 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1118 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1121 (Analyze_Attribute, case 'Result): handle properly the case where some
1122 operand of the expression in a post-condition generates a transient
1125 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1126 right-hand side when it is an anonymous access_to_subprogram, to force
1127 static accessibility check when needed.
1129 2008-08-05 Sergey Rybin <rybin@adacore.com>
1131 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1132 rule according to the change in the rule option.
1133 Add documentation for -gnatw.b/-gnatw.B
1135 2008-08-05 Robert Dewar <dewar@adacore.com>
1137 * ug_words: Add entries for -gnatw.b/-gnatw.B
1139 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1141 2008-08-05 Vincent Celier <celier@adacore.com>
1143 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1146 * a-ztdeio.adb: Ditto.
1148 2008-08-05 Pascal Obry <obry@adacore.com>
1150 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1153 2008-08-05 Vincent Celier <celier@adacore.com>
1156 (Wide_String_To_String): Returns a String with the same 'First as its
1158 (Wide_Wide_String_To_String): Ditto
1161 (Wide_String_To_String): Document that the lowest index of the returned
1162 String is equal to S'First.
1164 2008-08-05 Thomas Quinot <quinot@adacore.com>
1166 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1168 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1171 2008-08-05 Robert Dewar <dewar@adacore.com>
1173 * opt.ads (Warn_On_Biased_Representation): New flag
1176 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1177 representation is required.
1178 (Minimum_Size): Don't allow biasing if enum rep clause case
1181 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1182 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1184 * usage.adb: Add lines for -gnatw.b/B switches
1186 2008-08-05 Pascal Obry <obry@adacore.com>
1188 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1190 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1192 2008-08-05 Thomas Quinot <quinot@adacore.com>
1194 * socket.c: Minor reformatting.
1196 2008-08-05 Robert Dewar <dewar@adacore.com>
1198 * sem_ch3.adb: Minor reformatting
1200 * prj-nmsc.adb: Minor reformatting
1202 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1204 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1205 visibility check on the component type if the simple test fails.
1207 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1209 * init.c (__gnat_install_handler for linux): If we are building the
1210 Xenomai run time then we need to do two additional things: avoid
1211 memory swapping and transform the Linux environment task into a native
1214 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1215 time): Use interface to Xenomai native skin and avoid linux-specific
1216 way of setting CPU affinity.
1217 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1219 2008-08-05 Bob Duff <duff@adacore.com>
1221 * checks.ads: Minor comment fix
1223 2008-08-05 Thomas Quinot <quinot@adacore.com>
1225 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1226 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1229 2008-08-05 Robert Dewar <dewar@adacore.com>
1231 * mlib.adb: Minor code reorganization
1234 * make.adb: Minor reformatting
1236 * prj-attr.ads: Minor reformatting
1238 * s-os_lib.adb: Minor reformatting
1240 * s-fileio.adb: Minor code reorganization
1243 * prj.ads: Minor reformatting
1245 2008-08-05 Bob Duff <duff@adacore.com>
1247 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1248 unresolved initial value of "null", because it causes implicitly
1249 generated "=" operators to be ambiguous, and because this type should
1250 not be passed to gigi.
1252 2008-08-05 Vincent Celier <celier@adacore.com>
1254 * mlib.adb: Update comments.
1256 * make.adb (Switches_Of): Check for Switches (others), before checking
1257 for Default_Switches ("Ada").
1258 (Gnatmake): Use Builder'Switches (others) in preference to
1259 Builder'Default_Switches ("Ada") if there are several mains.
1262 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1266 Add markers to indicates that attributes Switches allow others as index
1267 (Others_Allowed_For): New Boolean function, returning True for
1268 attributes with the mark.
1269 (Initialize): Recognize optional letter 'O' as the marker for
1270 associative array attributes where others is allowed as the index.
1273 (Others_Allowed_For): New Boolean function
1274 (Attribute_Record): New Boolean component Others_Allowed
1277 (Parse_Attribute_Declaration): For associative array attribute where
1278 others is allowed as the index, allow others as an index.
1281 (Process_Binder): Skip associative array attributes with index others
1282 (Process_Compiler): Ditto
1285 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1286 index is All_Other_Names.
1289 (All_Other_Names): New constant
1292 (Process_Declarative_Items): Skip associative array attribute when index
1293 is reserved word "others".
1295 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1297 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1299 2008-08-05 Thomas Quinot <quinot@adacore.com>
1301 * a-rttiev.adb: Minor reformatting (comments)
1303 * gen-soccon.c: Rename to gen-oscons.c
1305 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1306 GNAT.Sockets.Constants.
1307 Add new constants for GNAT.Serial_Communications and System.File_IO.
1309 2008-08-05 Javier Miranda <miranda@adacore.com>
1311 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1312 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1313 implementation of this routine has been simplified.
1315 2008-08-05 Pascal Obry <obry@adacore.com>
1317 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1318 Set_Read_Only Win32 implementation.
1320 2008-08-05 Thomas Quinot <quinot@adacore.com>
1322 * exp_strm.adb: Minor reformatting (comments)
1324 * sem_ch12.adb: Minor reformatting.
1326 2008-08-05 Robert Dewar <dewar@adacore.com>
1328 * sem_ch3.adb: Minor reformatting
1330 * checks.adb: Minor reformatting
1332 2008-08-05 Thomas Quinot <quinot@adacore.com>
1334 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1335 restriction on Prefix.
1337 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1339 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1340 methods needed to handle switch sections when building a command line.
1341 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1342 Current_Section): New public methods or methods modified to handle
1343 building command lines with sections.
1344 (Set_Command_Line): Take into account sections when analysing a switch
1346 (Start): Sort the switches by sections before iterating the command line
1349 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1350 Is_New_Section, Current_Section): New methods or methods modified to
1351 handle building command lines with sections.
1353 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1355 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1356 discriminants, indicate that the corresponding object declaration has
1357 no initialization, to prevent spurious warnings when the access type is
1360 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1362 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1363 Abort_Task, warn if the call appears within a protected operation.
1365 2008-08-04 Robert Dewar <dewar@adacore.com>
1367 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1369 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1372 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1373 anonymous access to protected subprogram that is the return type of the
1374 specification of a subprogram body.
1377 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1378 subprogram, freeze it now to prevent access anomalies in the back-end.
1380 * exp_ch9.adb: Minor code cleanup.
1381 Make sure that new declarations are inserted into the tree before
1382 analysis (from code reading).
1384 2008-08-04 Robert Dewar <dewar@adacore.com>
1387 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1390 2008-08-04 Thomas Quinot <quinot@adacore.com>
1392 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1394 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1396 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1398 2008-08-04 Javier Miranda <miranda@adacore.com>
1400 * sem_prag.adb (Process_Convention): Add missing support for
1401 N_Private_Extension_Declaration nodes.
1403 2008-08-04 Robert Dewar <dewar@adacore.com>
1405 * exp_ch4.adb: Minor reformatting
1407 2008-08-04 Pascal Obry <obry@adacore.com>
1409 * adaint.h: Add missing prototype.
1411 * adaint.c: Refine support for Windows file attributes.
1413 2008-08-04 Robert Dewar <dewar@adacore.com>
1416 (Valid_Conversion): Catch case of designated types having different
1417 sizes, even though they statically match.
1419 2008-08-04 Javier Miranda <miranda@adacore.com>
1421 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1422 added in previous patch to handle access to subprograms.
1424 2008-08-04 Robert Dewar <dewar@adacore.com>
1427 (Freeze_Entity): Only check No_Default_Initialization restriction for
1428 constructs that come from source
1430 2008-08-04 Thomas Quinot <quinot@adacore.com>
1432 * exp_ch6.adb: Minor comment fix.
1434 * sem_ch4.adb: Minor reformatting.
1436 2008-08-04 Robert Dewar <dewar@adacore.com>
1438 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1440 2008-08-04 Pascal Obry <obry@adacore.com>
1442 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1445 2008-08-04 Javier Miranda <miranda@adacore.com>
1447 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1448 for N_Formal_Object_Declaration nodes. Adding kludge required by
1449 First_Formal to provide its functionality with access to functions.
1450 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1451 for anonymous access types returned by functions.
1453 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1454 conversion of null-excluding access types (required only once to force
1455 the generation of the required runtime check).
1457 * sem_type.adb (Covers): minor reformating
1459 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1460 with internally generated nodes. Avoid generating the error inside init
1463 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1464 (Resolve_Null): Generate the null-excluding check in case of assignment
1465 to a null-excluding object.
1466 (Valid_Conversion): Add missing support for anonymous access to
1469 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1470 anonymous access types whose designated type is an itype. This case
1471 occurs with anonymous access to protected subprograms types.
1472 (Analyze_Return_Type): Add missing support for anonymous access to
1473 protected subprogram.
1475 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1476 subprograms addition of missing check on matching convention. Required
1477 to properly handle access to protected subprogram types.
1479 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1480 null excluding access types.
1482 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1484 * sem_ch12.adb: Add comments
1486 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1487 access type and the allocator is not initialized, warn rather than
1490 2008-08-04 Robert Dewar <dewar@adacore.com>
1492 * exp_ch4.adb: Minor reformatting
1494 * exp_dist.adb: Minor reformatting
1496 * g-comlin.adb: Minor reformatting
1498 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1500 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1501 target to the type of the aggregate in the case where the target object
1504 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1505 result type is class-wide and inherently limited, and the expression
1506 has a specific type, create a return object of the specific type, for
1507 more efficient handling of returns of build-in-place aggregates (avoids
1508 conversions of the class-wide return object to the specific type on
1509 component assignments).
1511 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1512 about a type mismatch for a class-wide function with a return object
1513 having a specific type when the object declaration doesn't come from
1514 source. Such an object can result from the expansion of a simple return.
1516 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1518 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1520 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1521 compiling for 64bit windows.
1523 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1525 * g-comlin.adb (Group_Switches): Preserve the switch order when
1526 grouping and allow switch grouping of switches with more than one
1527 character extension (e.g. gnatw.x).
1528 (Args_From_Expanded): Remove this now obsolete method.
1530 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1532 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1533 chain at once, to ensure that type is properly decorated for back-end,
1534 when allocator appears within a loop.
1536 2008-08-04 Kevin Pouget <pouget@adacore.com>
1538 * snames.h, snames.adb, snames.ads:
1539 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1541 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1542 Build_To_Any_Call and Build_TypeCode_Call procedures.
1544 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1546 * rtsfind.ads: Add corresponding names.
1548 * tbuild.adb: Update prefix restrictions to allow '_' character.
1550 2008-08-04 Doug Rupp <rupp@adacore.com>
1552 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1553 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1554 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1555 use it. Calculate pointer range overflow using 64bit types.
1557 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1559 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1560 legal context for an anonymous access to subprogram.
1562 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1563 indirect call, report success to the caller to include possible
1566 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1568 of the extended return is an anonymous access_to_subprogram type.
1571 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1572 access_to_subprogram and the context requires its return type, and a
1573 dereference has not been introduced previously.
1575 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1577 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1578 gnatcheck support in GPS.
1580 2008-08-04 Vincent Celier <celier@adacore.com>
1582 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1585 2008-08-04 Vincent Celier <celier@adacore.com>
1587 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1588 variable, but don't check the resulting value as it has no impact on
1592 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1593 when switch -gnateG is used.
1596 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1597 when the source is modified by the preprocessor and there is no
1598 preprocessing errors.
1600 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1603 (Load_File): Output the result of preprocessing if the source text was
1606 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1608 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1610 * ug_words: Add VMS equivalent for -gnateG
1613 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1615 2008-08-04 Doug Rupp <rupp@adacore.com>
1617 * gcc-interface/utils2.c:
1618 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1619 in 32bit descriptor.
1621 2008-08-04 Robert Dewar <dewar@adacore.com>
1623 * par-ch10.adb: Minor reformatting
1625 * i-cobol.adb: Minor reformatting.
1627 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1629 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1630 anonymous access return type of a regular function that is not a
1633 2008-08-04 Vincent Celier <celier@adacore.com>
1635 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1637 * snames.adb: New standard name Global_Compilation_Switches
1639 * snames.ads: New standard name Global_Compilation_Switches
1641 * make.adb: Correct spelling error in comment
1643 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1645 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1648 2008-08-04 Thomas Quinot <quinot@adacore.com>
1650 * sem_ch10.adb: Minor comment fix.
1652 2008-08-04 Robert Dewar <dewar@adacore.com>
1654 * restrict.adb: Improved messages for restriction warnings
1656 * restrict.ads: Improved messages for restriction messages
1658 * s-rident.ads (Profile_Name): Add No_Profile
1660 2008-08-04 Robert Dewar <dewar@adacore.com>
1662 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1664 2008-08-04 Robert Dewar <dewar@adacore.com>
1666 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1668 2008-08-04 Vincent Celier <celier@adacore.com>
1671 (Copy_Package_Declarations): When inheriting package Naming from a
1672 project being extended, do not inherit source exception names.
1674 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1676 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1677 list of declaration to find previous subprogram, do not go to the
1678 original node of a generic unit.
1680 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1682 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1683 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1685 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1687 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1688 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1689 and adjust for above renaming.
1690 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1691 gnu_expr_alt_type parameter. Convert the expression to it instead
1692 of changing its type in place.
1693 (build_function_stub): Adjust call to above function.
1695 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1697 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1698 code. Do not get full definition of deferred constants with address
1699 clause for a use. Do not ignore deferred constant definitions with
1700 address clause. Ignore constant definitions already marked with the
1702 <object>: Remove obsolete comment. For a deferred constant with
1703 address clause, get the initializer from the full view.
1704 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1705 Rework and remove obsolete comment.
1706 <N_Object_Declaration>: For a deferred constant with address clause,
1707 mark the full view with the error node.
1708 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1711 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1713 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1715 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1716 sem_prag.adb, snames.adb, snames.ads, snames.h,
1717 par-prag.adb: Undo previous stream related changes.
1719 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1721 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1722 Define enumeration type to designate different IO mechanisms.
1723 Enchance generic package Stream_Ops_Internal to include an
1724 implementation of Input and Output.
1726 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1727 No_Stream_Optimization is active, choose the default byte IO
1728 implementations of stream attributes for Strings.
1729 Otherwise use the corresponding block IO version.
1731 2008-08-01 Olivier Hainque <hainque@adacore.com>
1733 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1734 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1736 2008-08-01 Robert Dewar <dewar@adacore.com>
1738 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1739 convert plain identifier into defining identifier.
1741 2008-08-01 Robert Dewar <dewar@adacore.com>
1743 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1746 * lib-xref.adb: Add error defense.
1748 2008-08-01 Bob Duff <duff@adacore.com>
1750 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1752 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1754 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1755 correct accessibility levels. In the "when others" case, retrieve the
1756 access level of the Etype of Prev rather than Prev_Orig, because the
1757 original exression has not always been analyzed.
1759 2008-08-01 Robert Dewar <dewar@adacore.com>
1761 * prj-nmsc.adb: Minor reformatting
1763 * sem_ch4.adb: Minor reformatting
1764 Minor code reorganization
1766 * prj.ads: Minor reformatting
1768 * s-os_lib.adb: Minor reformatting
1770 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1773 * scans.ads: Minor reformatting.
1775 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1776 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1779 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1781 * sem_ch12.adb: Minor comment reformatting
1783 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1786 2008-08-01 Robert Dewar <dewar@adacore.com>
1788 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1791 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1793 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1794 converted is a real literal and the target type has static bounds,
1795 perform the conversion exactly to prevent floating-point anomalies on
1798 2008-08-01 Vincent Celier <celier@adacore.com>
1800 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1802 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1804 * prj.adb (Object_Exist_For): Use Object_Generated, not
1805 Objects_Generated that is removed and was never modified anyway.
1808 (Path_Syntax_Kind): New enumeration type
1809 (Language_Config): New component Path_Syntax, defaulted to Host.
1810 Components PIC_Option and Objects_Generated removed, as they are not
1813 * snames.adb: New standard name Path_Syntax
1815 * snames.ads: New standard name Path_Syntax
1817 2008-08-01 Vincent Celier <celier@adacore.com>
1820 (Adalib_Path): New variable to store the path of the adalib directory
1821 when procedure Specify_Adalib_Dir is called.
1822 (Lib_Directory): If Adalib_Path is not null, return its value
1823 (Specify_Adalib_Dir): New procedure
1825 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1827 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1830 (Check_Precondition_Postcondition): If not generating code, analyze the
1831 expression in a postcondition that appears in a subprogram body, so that
1832 it is properly decorated for ASIS use.
1834 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1836 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1837 Orig_Prev to Prev in the case where the actual is N_Function_Call or
1838 N_Identifier. This was interfering with other cases that are rewritten
1839 as N_Identifier, such as allocators, resulting in passing of the wrong
1840 accessibility level, and based on testing this code is apparently no
1841 longer needed at all.
1843 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1845 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1846 procedure call whose prefix
1847 is a parameterless function call that returns an access_to_procedure.
1849 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1851 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1852 for RTX. Adding a suffix that is incremented at each iteration.
1854 2008-08-01 Robert Dewar <dewar@adacore.com>
1856 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1859 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
1861 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1862 paths, which are authorized by Windows but can lead to errors when used
1865 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1867 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1868 a pending instantiation for the body of a subprogram that is to be
1872 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1874 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1875 create a pending instance for its body, so that calls to the subprogram
1876 can be inlined by the back-end.
1878 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1880 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1883 2008-08-01 Robert Dewar <dewar@adacore.com>
1885 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1887 2008-08-01 Doug Rupp <rupp@adacore.com>
1889 * gnat_rm.texi: Document new mechanism Short_Descriptor.
1891 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1894 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1895 mechanism and Short_Descriptor mechanism values.
1897 * snames.adb (preset_names): Add short_descriptor entry.
1899 * snames.ads: Add Name_Short_Descriptor.
1901 * types.h: Add new By_Short_Descriptor mechanism values.
1903 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1904 mechanism and Short_Descriptor mechanism values.
1906 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1908 (Descriptor_Codes): Modify range for new mechanism values.
1910 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1913 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1914 (gnat_to_gnu_param): Handle By_Short_Descriptor.
1916 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1917 (build_vms_descriptor32): New prototype.
1918 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1920 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1921 argument in call fill_vms_descriptor.
1923 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1924 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1925 (build_vms_descriptor): Renamed from build_vms_descriptor64.
1926 (convert_vms_descriptor32): New function.
1927 (convert_vms_descriptor64): New function.
1928 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1931 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1934 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1936 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1937 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1940 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1942 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1943 current directory so only fully qualified names are allowed.
1945 2008-08-01 Robert Dewar <dewar@adacore.com>
1948 Minor editing, remove uncomfortable use of semicolon
1950 * s-ststop.adb: Add some ??? comments
1952 * sem_ch10.adb: Minor reformatting
1955 Minor comment fixes, some pragmas were not properly
1956 categorized in the comments, documentation change only
1958 * xref_lib.adb: Minor reformatting
1960 * sinput.adb: Minor reformatting
1962 * gnatchop.adb: Minor reformatting
1964 * sem_util.ads: Minor reformatting.
1966 * opt.ads: Minor documentation fix
1968 * scng.adb: Minor reformatting
1970 * prj-part.adb: Update comments
1972 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1974 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1975 tagged synchronized type, use corresponding record type.
1977 2008-08-01 Doug Rupp <rupp@adacore.com>
1979 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1980 dummy transfer address for debugging.
1982 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1984 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1986 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
1988 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1989 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1991 2008-07-31 Pascal Obry <obry@adacore.com>
1993 * prj-nmsc.adb: Keep Object and Exec directory casing.
1995 2008-07-31 Jose Ruiz <ruiz@adacore.com>
1997 * system-rtx-rtss.ads
1998 Change the default stack size. It is important to set the commit part.
2001 (Initialize): Get the clock resolution.
2002 (RT_Resolution): Return the clock resolution that is indicated by the
2005 * s-parame-vxworks.adb
2006 Document that this body is used for RTX in RTSS (kernel) mode.
2008 * gcc-interface/Makefile.in
2009 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2010 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2011 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2012 cannot ask for too big values.
2014 2008-07-31 Robert Dewar <dewar@adacore.com>
2016 * exp_aggr.adb: Minor reformatting
2018 * makeutl.adb: Minor reformatting
2020 * prj-env.adb: Minor reformatting
2022 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2024 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2025 tagged type is completed by a concurrent type.
2027 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2030 (Resolve_Record_Aggregate): Bypass error that a type without
2031 components must have a "null record" aggregate when compiling for Ada
2032 2005, since it's legal to give an aggregate of form (others => <>)
2035 2008-07-31 Javier Miranda <miranda@adacore.com>
2037 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2038 handle synchronized types. Required to handle well the object.operation
2039 notation applied to synchronized types.
2041 2008-07-31 Quentin Ochem <ochem@adacore.com>
2043 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2044 anymore - just used internally.
2045 Added handling of very small tasks - when the theoretical size is
2046 already full at the point of the call.
2047 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2048 not need to be added to the result.
2050 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2052 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2053 corresponding spec is a primitive wrapper. Update comment.
2055 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2057 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2058 (Gen_Adainit_Ada): Add the declaration, import and value set for
2059 configuration flag Canonical_Streams.
2060 (Gen_Adainit_C): Add the declaration and initial value of external
2061 symbol __gl_canonical_streams.
2063 * init.c: Update the list of global values computed by the binder.
2065 * opt.ads: Add flag Canonical_Streams.
2067 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2068 semantically handled pragmas.
2070 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2071 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2073 * snames.adb: Add character value for name Canonical_Streams.
2076 Add Name_Canonical_Streams to the list of configuration pragmas.
2077 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2079 * snames.h: Add a definition for Pragma_Canonical_Streams.
2082 Add a flag and import to seize the value of external symbol
2083 __gl_canonical_streams. Update comment and initial value of constant
2086 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2089 Add pragma Canonical_Streams to the list of configuration pragmas.
2091 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2093 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2094 has the form A.B.C and B is a unit renaming, analyze its compilation
2095 unit and add a with_clause on A.b to the context.
2097 2008-07-31 Vincent Celier <celier@adacore.com>
2099 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2100 return the empty string, instead of raising Constraint_Error.
2102 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2104 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2106 * checks.adb (Apply_Accessibility_Check): Insert the check on
2110 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2111 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2112 Necessary to distinguish the insertion node because the dereferenced
2113 formal may come from a rename, but the check must be inserted in
2114 front of the attribute.
2117 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2118 call to Apply_Accessibility_Check.
2119 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2120 on call to Apply_Accessibility_Check.
2123 2008-07-31 Javier Miranda <miranda@adacore.com>
2125 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2126 types when the candidate type is a synchronized type.
2128 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2129 types, and complete management of synchronized types adding missing
2130 code to handle formal that is a synchronized type.
2132 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2133 are not available and cause the compiler to blowup. Found compiling
2134 test with switch -gnatc
2136 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2137 Has_Correct_Formal_Mode plus code cleanup.
2139 2008-07-31 Bob Duff <duff@adacore.com>
2141 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2142 recognized as two end-of-lines, but it should be just one.
2144 2008-07-31 Thomas Quinot <quinot@adacore.com>
2146 * exp_ch9.adb: Minor reformatting
2148 * tbuild.ads: Fix several occurrences of incorrectly referring to
2149 Name_Find as Find_Name.
2151 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2153 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2154 and the context is an object declaration with non-static bounds, treat
2155 the aggregate as non-static.
2157 2008-07-31 Vincent Celier <celier@adacore.com>
2159 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2160 Move back spec of Parse_Single_Project to body, as it is not called
2161 outside of package Prj.Part.
2162 (Project_Data): Remove components Linker_Name, Linker_Path and
2163 Minimum_Linker_Options as they are no longer set.
2164 Remove function There_Are_Ada_Sources from package Prj and move code
2165 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2167 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2169 * mlib-utl.ads: Fix typo.
2171 2008-07-31 Robert Dewar <dewar@adacore.com>
2173 * sem_ch12.adb: Minor reformatting
2175 2008-07-31 Sergey Rybin <rybin@adacore.com>
2177 * gnat_ugn.texi: Change the description of the
2178 Overly_Nested_Control_Structures: now the rule always requires a
2179 positive parameter for '+R' option
2181 2008-07-31 Thomas Quinot <quinot@adacore.com>
2183 * g-pehage.adb: Minor reformatting
2185 2008-07-31 Pascal Obry <obry@adacore.com>
2187 * s-finimp.ads: Minor reformatting.
2189 2008-07-31 Vincent Celier <celier@adacore.com>
2191 * s-regexp.ads: Minor comment fix
2193 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2195 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2196 so that we can compile this file successfully with -gnatc.
2198 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2200 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2201 of the type when looking for stream subprograms for type String,
2202 Wide_String and Wide_Wide_String.
2204 * s-ststop.adb: Change the initialization expression of constant
2207 2008-07-31 Geert Bosch <bosch@adacore.com>
2210 New file implementing __gnat_mulv64 signed integer multiplication with
2213 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2215 * gcc-interface/gigi.h:
2216 (standard_types): Add ADT_mulv64_decl
2217 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2219 * gcc-interface/utils.c:
2220 (init_gigi_decls): Add initialization of mulv64_decl
2222 * gcc-interface/trans.c:
2223 (build_unary_op_trapv): New function
2224 (build_binary_op_trapv): New function
2225 (gnat_to_gnu): Use the above functions instead of
2226 build_{unary,binary}_op
2228 * gcc-interface/Makefile.in
2229 (LIBGNAT_SRCS): Add arit64.c
2230 (LIBGNAT_OBJS): Add arit64.o
2232 2008-07-31 Vincent Celier <celier@adacore.com>
2234 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2235 Linker'Default_Switches are declared. Warn if they are declared.
2237 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2239 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2240 Insert_Actions to place the pointer declaration in the code, rather
2241 than Insert_Before_And_Analyze, so that insertions of temporaries are
2242 kept in the proper order when transient scopes are present.
2245 2008-07-31 Robert Dewar <dewar@adacore.com>
2247 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2249 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2251 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2254 2008-07-31 Vincent Celier <celier@adacore.com>
2256 * s-os_lib.adb: Minor comment fix
2258 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2260 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2261 transfer pre/postconditions from generic copy to original tree, so that
2262 they will appear in each instance.
2263 (Process_PPCs): Do not transform postconditions into a procedure in a
2264 generic context, to prevent double expansion of check pragmas.
2266 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2267 can be the renaming of the
2268 current instance, so check validity of the name accordingly.
2270 2008-07-31 Robert Dewar <dewar@adacore.com>
2272 * mlib-utl.ads: Minor reformatting
2274 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2276 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2277 from context. This attribute must be usable in Ada95 mode.
2278 The attribute can appear in the body of a function marked
2279 Inline_Always, but in this case the postocondition is not enforced.
2281 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2282 of an inlined call pre- and postconditions are legal
2284 2008-07-31 Vincent Celier <celier@adacore.com>
2286 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2287 were for gprmake only
2289 2008-07-31 Robert Dewar <dewar@adacore.com>
2291 * gnat_ugn.texi: Update -gnatN documentation.
2293 * gnat_rm.texi: Add note about pre/postcondition
2294 pragmas not checked in conjunction with front-end inlining.
2296 2008-07-31 Robert Dewar <dewar@adacore.com>
2298 * g-pehage.adb, g-pehage.ads: Minor reformatting
2300 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2302 * mlib-utl.ads, prj-makr.ads: Add comments.
2304 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2306 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2307 [WINDOWS]: Add s-winext.o.
2309 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2312 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2313 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2314 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2315 Set precision to 1 for subtype of BOOLEAN_TYPE.
2316 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2317 (make_type_from_size): Deal with BOOLEAN_TYPE.
2318 * gcc-interface/misc.c (gnat_print_type): Likewise.
2319 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2320 Set boolean_type_node as its translation in the table, as well
2321 as boolean_false_node for False and boolean_true_node for True.
2322 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2323 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2324 (create_param_decl): Deal with BOOLEAN_TYPE.
2325 (build_vms_descriptor): Likewise.
2326 (build_vms_descriptor64): Likewise.
2327 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2329 2008-07-30 Robert Dewar <dewar@adacore.com>
2331 * exp_ch9.adb: Minor reformatting
2333 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2334 if no primitive operation is found.
2336 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2338 * sem_ch8.adb: Minor reformatting
2340 2008-07-30 Laurent Pautet <pautet@adacore.com>
2343 Remove a limitation on the length of the words handled by the minimal
2344 perfect hash function generator.
2347 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2350 2008-07-30 Robert Dewar <dewar@adacore.com>
2352 * gnatlink.adb: Minor reformatting
2354 2008-07-30 Thomas Quinot <quinot@adacore.com>
2356 * rtsfind.adb (Check_RPC): Check version consistency even when not
2357 generating RCI stubs. Provide more detailed error message in case of
2360 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2362 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2363 as a actual in an instance, check for a missing attribute to prevent
2364 program_error on an illegal program.
2366 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2367 error if primitive is not found, so that exception can be handled
2368 elsewhere on illegal programs.
2370 2008-07-30 Robert Dewar <dewar@adacore.com>
2372 * uintp.adb (UI_GCD): Fix potential overflow
2374 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2376 * einfo.adb: Flag245 is now used.
2377 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2378 check to include functions.
2379 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2380 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2382 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2383 to the list of displayed flags.
2385 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2386 Wrapped_Entity. These two flags are now present in functions.
2387 New flag Is_Private_Primitive.
2388 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2391 (Build_Wrapper_Bodies): New subprogram.
2392 (Build_Wrapper_Body): The spec and body have been moved to in
2393 Build_Wrapper_ Bodies. Code cleanup.
2394 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2395 Wrappers are now generated for primitives declared between the private
2396 and full view of a concurrent type that implements an interface.
2397 (Build_Wrapper_Specs): New subprogram.
2398 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2399 creation mechanism with a call to Build_Wrapper_Bodies.
2400 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2401 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2402 (Expand_N_Task_Body): Replace the wrapper body creation
2403 mechanism with a call to Build_Wrapper_Bodies.
2404 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2405 creation mechanism with a call to Build_Wrapper_Specs.
2406 (Is_Private_Primitive_Subprogram): New subprogram.
2407 (Overriding_Possible): Code cleanup.
2408 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2410 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2412 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2413 (Process_Full_View): Build wrapper specs for all primitives
2414 that belong to a private view completed by a concurrent type
2415 implementing an interface.
2417 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2419 concurrent type with a private view that implements an interface, try to
2420 find the proper spec.
2421 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2422 primitive if the type of its first parameter is a non-generic tagged
2424 (Analyze_Subprogram_Specification): Code reformatting.
2425 (Disambiguate_Spec): New routine.
2426 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2427 (Is_Private_Concurrent_Primitive): New routine.
2430 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2432 2008-07-30 Doug Rupp <rupp@adacore.com>
2434 * gigi.h (build_vms_descriptor64): New function prototype.
2435 (fill_vms_descriptor): Modified function prototype.
2437 * utils.c (build_vms_descriptor64): New function.
2439 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2441 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2444 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2445 64bit and 32bit descriptor and save the 64bit version as an alternate
2446 TREE_TYPE in the parameter.
2447 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2450 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2452 2008-07-30 Robert Dewar <dewar@adacore.com>
2454 * make.adb: Minor reformatting
2456 * mlib-utl.adb: Minor reformatting
2458 * osint.ads: Minor reformatting
2460 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2463 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2464 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2465 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2468 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2469 the function RtPrintf for console output.
2471 * argv.c Do not use the environ variable for RTX.
2473 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2474 been moved before the call to Osint.Add_Default_Search_Dirs in order
2475 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2476 from the appropriate run time.
2479 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2480 target is a RTSS module for RTX.
2482 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2483 RTX_RTSS_Kernel_Module
2484 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2486 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2487 exception handling mechanism for Windows and RTX in Win32 mode, but
2488 not for RTX in kernel mode (RTSS).
2489 (LIBGNAT_SRCS): Remove ada.h
2491 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2493 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2494 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2495 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2496 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2497 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2498 ALL_ADA_CFLAGS): Remove.
2499 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2500 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2501 (GCC_CFLAGS): Remove X_CFLAGS.
2502 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2503 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2504 (ADA_CFLAGS): Substitute.
2506 2008-07-30 Laurent Guerby <laurent@guerby.net>
2509 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2510 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2511 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2512 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2513 by stamp-gnatlib2-rts.
2515 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2517 PR documentation/15479
2518 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2519 statement for GNAT. Add @copying stanza, use it. Update to
2520 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2521 title as Front-Cover Text.
2522 * gnat_rm.texi: Likewise.
2523 * gnat_ugn.texi: Likewise.
2525 2008-07-29 Jan Hubicka <jh@suse.cz>
2527 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2530 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2532 * gcc-interface: New directory.
2534 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2535 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2536 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2537 to gcc-interface subdirectory.
2539 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2541 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2543 2008-07-28 Jan Hubicka <jh@suse.cz>
2545 * misc.c (gnat_post_options): Do not set flag_no_inline.
2547 2008-07-28 Richard Guenther <rguenther@suse.de>
2549 Merge from gimple-tuples-branch.
2551 2008-07-22 Olivier Hainque <hainque@adacore.com>
2553 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2554 this is called for an elab proc to be discarded if empty.
2555 * utils.c (end_subprog_body): Honor ELAB_P.
2556 (build_function_stub): Adjust call to end_subprog_body.
2557 * trans.c (Subprogram_Body_to_gnu): Likewise.
2558 (gigi): Reorganize processing of elab procs to prevent
2559 gimplifying twice, using the new end_subprog_body argument.
2561 2008-07-19 Richard Guenther <rguenther@suse.de>
2563 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2564 (utils.o): Likewise.
2565 * trans.c: Include tree-iterator.h.
2566 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2567 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2568 (set_expr_location_from_node): Likewise.
2570 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2572 * utils.c: Include tree-iterator.h.
2573 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2575 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2577 * trans.c: Include gimple.h instead of tree-gimple.h.
2580 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2582 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2584 2008-07-25 Jan Hubicka <jh@suse.cz>
2586 * utils.c (end_subprog_body): Remove inline trees check.
2587 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2589 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2591 * raise-gcc.c: Move tsystem.h before tm.h.
2593 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2595 * gnathtml.pl: New file.
2597 2008-07-19 Olivier Hainque <hainque@adacore.com>
2599 * targtyps.c (get_target_default_allocator_alignment): Use
2600 MALLOC_ABI_ALIGNMENT.
2602 2008-07-17 Olivier Hainque <hainque@adacore.com>
2604 * adaint.c (__MINGW32__ section): Include ctype.h and define
2605 a fallback ISALPHA if IN_RTS.
2606 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2608 2008-07-17 Olivier Hainque <hainque@adacore.com>
2610 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2611 argument, to apply to references in addition to definitions. Prevent
2612 setting TREE_STATIC on externals.
2613 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2615 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2617 PR documentation/15479
2618 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2619 Replace backets around optional parameters with @ovar
2620 where possible, use @r{[}, @r{]} otherwise.
2621 Replace some @r, @i, and @emph with @var where appropriate.
2623 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2625 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2627 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2629 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2630 -Wc++-compat warnings.
2631 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2632 __gnat_locate_exec_on_path): Likewise.
2633 * decl.c (annotate_value): Likewise.
2634 * misc.c (gnat_handle_option): Likewise.
2635 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2636 post_error_ne_tree): Likewise.
2638 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2640 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2641 version of its type, attempt to first convert its elements.
2643 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2645 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2647 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2649 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2651 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2653 * utils2.c (known_alignment): Derive the alignment from pointed-to
2654 types only if it is otherwise unknown.
2655 <INTEGER_CST>: Tidy.
2656 <MULT_EXPR>: Likewise.
2657 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2660 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2663 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2665 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2667 * gnat_rm.texi (Implementation Defined Characteristics)
2668 (Standard Library Routines): Use @smallexample for indented
2669 text. Drop Indentation outside examples.
2670 * gnat_ugn.texi: Likewise.
2672 2008-06-13 Olivier Hainque <hainque@adacore.com>
2674 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2676 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2677 realignment with force_align_arg_pointer attribute on foreign
2678 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2680 2008-06-13 Olivier Hainque <hainque@adacore.com>
2682 * utils.c (rest_of_record_type_compilation): When computing
2683 encodings for the components of a variable size type, early
2684 strip conversions on the current position expression to make
2685 sure it's shape is visible. Use remove_conversions for this
2688 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2690 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2691 constrained subtype of a discriminated type, discard the fields that
2692 are beyond its limits according to its size.
2694 2008-06-10 Olivier Hainque <hainque@adacore.com>
2696 * utils.c (create_subprog_decl): If this is for the 'main' entry
2697 point according to the asm name, redirect main_identifier_node.
2699 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2701 * decl.c (components_to_record): Adjust the packedness for the
2702 qualified union as well.
2704 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2706 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2709 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2711 * sem_res.adb (Large_Storage_Type): A type is large if it
2712 requires as many bits as Positive to store its values and its
2713 bounds are known at compile time.
2714 * sem_ch13.adb (Minimum_Size): Note that this function returns
2715 0 if the size is not known at compile time.
2717 2008-06-06 Nicolas Setton <setton@adacore.com>
2718 Olivier Hainque <hainque@adacore.com>
2720 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2721 attribute, parallel descriptive type attached to another
2722 type for debug info generation purposes.
2723 * utils.c (add_parallel_type): New function, register
2724 parallel type to be attached to a type.
2725 (get_parallel_type): New function, fetch a registered
2726 parallel type, if any.
2727 (rest_of_record_type_compilation): Register the parallel
2728 type we make for variable size records.
2729 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2730 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2731 parallel debug types we make.
2732 * trans.c (extract_encoding, decode_name): New functions.
2733 (gigi): If the DWARF attribute extensions are available, setup
2735 * lang.opt: Register language specific processing request
2737 * misc.c (gnat_dwarf_extensions): New global variable. How much
2738 do we want of our DWARF extensions. 0 by default.
2739 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2740 (gnat_post_options): Map gnat_dwarf_extensions to the
2741 commonuse_gnu_debug_info_extensions for later processing.
2743 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2745 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2747 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2749 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2750 * gnat_ugn.texi (Style Checking)
2751 (Adding the Results of Compiler Checks to gnatcheck Output)
2752 (Example of Binder Output File): Fix typos.
2753 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2754 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2755 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2756 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2757 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2758 sinfo.ads, utils.c: Fix typos in comments.
2759 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2761 2008-05-29 Thomas Quinot <quinot@adacore.com>
2763 * sem_eval.adb: Minor reformatting
2765 2008-05-29 Ed Schonberg <schonberg@adacore.com>
2767 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2768 is abstract, do not apply abstractness check on subprogram if this is
2769 a renaming declaration.
2771 2008-05-29 Arnaud Charlet <charlet@adacore.com>
2774 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2775 allow recognition of program suffix in addition to prefix.
2777 * gnatchop.adb (Locate_Executable): Add support for prefix.
2779 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2780 mlib-utl.adb: Adjust calls to Program_Name.
2782 2008-05-29 Robert Dewar <dewar@adacore.com>
2784 * sem_ch3.adb: Minor reformatting
2785 * sem_prag.adb: Minor reformatting
2786 * sem_res.adb: Minor reformatting
2787 * sinput-p.ads: Minor reformatting
2789 2008-05-29 Javier Miranda <miranda@adacore.com>
2792 (Abstract_Interface_List): Add missing support for full type-declaration
2793 associated with synchronized types.
2795 2008-05-29 Robert Dewar <dewar@adacore.com>
2797 * sem_eval.adb (Is_Same_Value): Take care of several more cases
2799 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2801 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2802 access type, wrap the expression in a conversion to force an
2803 accessibility check.
2805 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2806 accessibility checks even when expansion is disabled in order to
2807 generate messages in the presence of previous errors or in
2808 semantics-only mode.
2810 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
2812 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2813 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2815 2008-05-28 Vincent Celier <celier@adacore.com>
2818 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2819 preprocessing expressions
2821 2008-05-28 Vincent Celier <celier@adacore.com>
2823 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2826 * sinput-p.ads: Minor comment update and reformatting
2828 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2830 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2831 type has a deeper level than any master only when it is the type of an
2834 2008-05-28 Javier Miranda <miranda@adacore.com>
2836 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2838 2008-05-28 Javier Miranda <miranda@adacore.com>
2840 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2841 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2842 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2843 Add code that was previously located in
2844 Find_Overridden_Synchronized_Primitive because it is only used here.
2846 2008-05-28 Sergey Rybin <rybin@adacore.com>
2848 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2849 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2851 2008-05-28 Robert Dewar <dewar@adacore.com>
2854 Add missing restrictions, and properly label all GNAT defined ones
2857 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2858 Add entry for Ada.Task_Termination.Set_Specific_Handler
2859 Add entry for Ada.Task_Termination.Specific_Handler
2862 Add missing restrictions and properly mark all gnat defined ones
2865 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2868 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2870 * gnat_rm.texi: Add missing restrictions, and properly label all
2873 2008-05-28 Robert Dewar <dewar@adacore.com>
2876 (Check_Restriction): violation of restriction No_Finalization is
2877 treated as a serious error to stop expansion
2879 2008-05-28 Robert Dewar <dewar@adacore.com>
2881 * exp_util.adb: Minor reformatting
2882 * exp_util.ads: Minor reformatting.
2884 2008-05-28 Arnaud Charlet <charlet@adacore.com>
2886 * Make-lang.in: Remove gprmake.
2888 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2890 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2892 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2893 improper progenitor names, and avoid cascaded errors.
2895 2008-05-28 Robert Dewar <dewar@adacore.com>
2897 * gnat_rm.texi: Add note on Old giving warning when applied to constant
2899 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2902 2008-05-28 Robert Dewar <dewar@adacore.com>
2904 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2907 2008-05-28 Robert Dewar <dewar@adacore.com>
2910 (Expand_Simple_Function_Return): Copy unaligned result into temporary
2912 2008-05-28 Javier Miranda <miranda@adacore.com>
2914 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2915 for user-defined predefined primitives.
2917 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2918 (Find_Overridden_Synchronized_Primitive): Ditto.
2920 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2922 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2924 * a-ststio.adb, s-direio.adb:
2925 Further code clean up of previous change.
2928 2008-05-27 Vincent Celier <celier@adacore.com>
2930 * prj-nmsc.adb: Minor reformatting
2932 2008-05-27 Bob Duff <duff@adacore.com>
2934 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2935 untagged private type with a tagged full type, where the full type has
2936 a self reference, create the corresponding class-wide type early, in
2937 case the self reference is "access T'Class".
2939 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2941 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2942 tasks and context is an object declaration. create master entity before
2945 2008-05-27 Robert Dewar <dewar@adacore.com>
2947 * mlib-prj.adb: Minor reformatting
2949 * prj-part.adb: Minor reformatting
2951 * prj.ads: Minor reformatting
2953 * exp_ch3.adb: Minor reformatting.
2955 * sem_ch3.ads: Minor reformatting
2957 * sem_eval.adb: Minor reformatting
2959 2008-05-27 Vincent Celier <celier@adacore.com>
2962 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2964 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2966 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2967 tasks, create an activation chain now, before the expansion into
2968 assignments and build-in-place calls that require the presence of an
2970 (Backend_Processing_Possible): If the component type is inherently
2971 limited, the aggregate must be expanded into individual built-in-place
2974 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2975 determine whether an allocation extra parameter must be built, to
2976 handle case of a private type whose full type is a discriminated type
2979 2008-05-27 Bob Duff <duff@adacore.com>
2982 Document the new behavior regarding trampolines.
2984 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2986 * a-direio.adb, a-sequio.adb: Replace address clause by
2987 unrestricted_access, simpler and compatible with .NET.
2989 2008-05-27 Vincent Celier <celier@adacore.com>
2992 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2993 a project file, so that symbolic links are not resolved.
2995 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2997 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2998 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2999 portable across GNAT targets, since this kind of address clause is not
3000 supported by VM back-ends (.NET/JGNAT).
3002 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3004 * bindgen.adb: Update comments.
3006 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3008 2008-05-27 Vincent Celier <celier@adacore.com>
3010 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3011 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3012 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3013 (Path_Information): New record type
3014 Use component of type Path_Information when there are two paths, one in
3015 canonical format and one in display format.
3016 Update the project manager to these new components.
3018 2008-05-27 Robert Dewar <dewar@adacore.com>
3020 * makeutl.adb: Minor reformatting
3021 * prj-nmsc.adb: Minor reformatting
3022 * s-stausa.adb: Minor reformatting
3023 * s-stausa.ads: Minor reformatting
3024 * sem_ch6.adb: Minor reformatting
3026 2008-05-27 Thomas Quinot <quinot@adacore.com>
3028 * sem_res.adb: Minor comment fixes
3030 2008-05-27 Thomas Quinot <quinot@adacore.com>
3032 * makeutl.adb: Minor code reorganization
3034 * exp_aggr.adb: Add ??? comment
3037 * exp_ch6.adb: Minor reformatting
3039 2008-05-27 Quentin Ochem <ochem@adacore.com>
3041 * s-stausa.adb (Initialize): Updated result initialization, and
3042 initialization of environment stack.
3043 (Fill_Stack): Improved computation of the pattern zone, taking into
3044 account already filled at the calling point.
3045 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3046 Measure and Overflow_Guard.
3047 (Report_Result): Fixed computation of the result using new fields of
3050 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3051 params by more explicit Stack_Size / Max_Pattern_Size params.
3052 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3053 Added Stack_Used_When_Filling field.
3054 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3055 Min_Measure and Max_Measure fields.
3057 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3059 2008-05-27 Vincent Celier <celier@adacore.com>
3062 (Check_File): Make sure that a unit that replaces the same unit in a
3063 project being extended is properly processed.
3065 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3068 (Get_Discr_Value): Remove obsolete code that failed to find the value
3069 of a discriminant for an inherited task component appearing in a type
3072 2008-05-27 Thomas Quinot <quinot@adacore.com>
3074 (System.File_IO.{Close, Delete, Reset}):
3075 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3077 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3078 Pass File parameter by reference.
3080 2008-05-27 Vincent Celier <celier@adacore.com>
3083 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3084 sources of the same project that have the same object file name.
3085 (Find_Explicit_Sources): Always remove a source exception that was not
3088 2008-05-27 Thomas Quinot <quinot@adacore.com>
3090 * sem_ch3.adb: Minor reformatting
3092 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3095 (Is_Interface_Conformant): Handle properly a primitive operation that
3096 overrides an interface function with a controlling access result.
3097 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3098 inherited and overriding operations, omit as well the conformance check
3099 on result types, to prevent spurious errors.
3101 2008-05-27 Vincent Celier <celier@adacore.com>
3103 * makeutl.ads, makeutl.adb:
3104 (Set_Location): New procedure
3105 (Get_Location): New function
3106 (Update_Main): New procedure
3108 2008-05-27 Vincent Celier <celier@adacore.com>
3111 (Check_Library): Allow standard project to be extended as a static
3113 (Get_Mains): Do not inherit attribute Main in an extending library
3116 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3118 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3119 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3120 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3121 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3122 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3123 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3124 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3125 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3126 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3127 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3129 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3131 * sem_attr.adb: add guard to previous patch.
3133 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3135 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3136 a synchronized tagged type, do not attempt to build dispatch table for
3137 full view. The table is built for the corresponding record type, which
3138 has its own declaration.
3140 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3142 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3143 to the known type entity E, rather than setting it to Any_Type. Fixes
3144 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3145 for objects whose type had an illegal constraint.
3147 2008-05-27 Vincent Celier <celier@adacore.com>
3150 Add succinct documentation for attribute Excluded_Source_List_File
3152 2008-05-27 Vincent Celier <celier@adacore.com>
3154 * prj-attr.adb: Add new project level attribute Map_File_Option
3156 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3158 * prj.ads: Minor reformatting and comment update
3159 (Project_Configuration): New component Map_File_Option
3161 * snames.adb: New standard name Map_File_Option
3163 * snames.ads: New standard name Map_File_Option
3165 2008-05-27 Vincent Celier <celier@adacore.com>
3167 * xsnames.adb: Remove unused variable Oname
3169 2008-05-27 Doug Rupp <rupp@adacore.com>
3172 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3175 (Expand_Vax_Foreign_Return): Fix comments.
3177 2008-05-27 Thomas Quinot <quinot@adacore.com>
3179 * exp_dist.adb: Minor reformating
3181 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3183 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3184 No_Default_Initialization, which is now delayed until the freeze point
3185 of the object. Add a comment about deferral of the check.
3187 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3188 on objects is moved here.
3190 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3192 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3193 (Compare_Array_S16): Adjust for above change.
3194 * s-casi32.adb (Uword): Likewise.
3195 (Compare_Array_S32): Likewise.
3196 * s-casi64.adb (Uword): Likewise.
3197 (Compare_Array_S64): Likewise.
3198 * s-caun16.adb (Uhalf): Likewise.
3199 (Compare_Array_U16): Likewise.
3200 * s-caun32.adb (Uword): Likewise.
3201 (Compare_Array_U32): Likewise.
3202 * s-caun64.adb (Uword): Likewise.
3203 (Compare_Array_U64): Likewise.
3205 2008-05-26 Robert Dewar <dewar@adacore.com>
3207 * exp_ch6.adb: Add ??? comment for previous change
3209 * exp_vfpt.adb: Minor reformatting
3211 * exp_vfpt.ads: Add ??? comment for last change
3213 * sem_attr.adb: Add some ??? comments for previous change
3215 * s-vaflop.ads: Add comments for previous change
3217 2008-05-26 Doug Rupp <rupp@adacore.com>
3219 * s-vaflop-vms-alpha.adb:
3220 Remove System.IO use clause, to prevent spurious ambiguities when
3221 package is access through rtsfind.
3223 2008-05-26 Sergey Rybin <rybin@adacore.com>
3225 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3228 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3231 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3232 converted to S (A)'address only if A .. B is known to be a non-null
3235 2008-05-26 Doug Rupp <rupp@adacore.com>
3238 (Return_D, Return_F, Return_G): New functions.
3241 (Return_D, Return_F, Return_G): New functions.
3244 (Expand_Vax_Foreign_Return): New procedure
3247 (Expand_Vax_Foreign_Return): New procedure
3250 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3251 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3255 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3257 * s-vaflop-vms-alpha.adb:
3258 (Return_D, Return_F, Return_G): New functions.
3260 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3262 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3263 init proc entity when there is actual default initialization associated
3264 with the component type, to avoid spurious errors on objects of scalar
3265 array types that are marked Is_Public when No_Default_Initialization
3268 2008-05-26 Thomas Quinot <quinot@adacore.com>
3270 * rtsfind.ads, rtsfind.adb:
3271 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3272 (Check_RPC): Support per-PCS-kind API versioning.
3274 exp_dist.ads, exp_dist.adb:
3275 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3276 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3277 library function Get_RACW.
3278 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3279 library function Get_Reference.
3280 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3281 through an intermediate Any.
3282 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3283 going through an intermediate Any.
3285 * sem_dist.adb: Minor reformatting.
3287 2008-05-26 Javier Miranda <miranda@adacore.com>
3289 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3290 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3291 (Is_Internal): Adding documentation on internal entities that have
3292 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3294 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3295 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3296 Added assertion to force entities with this attribute to have
3297 attribute Is_Internal set to True.
3298 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3300 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3301 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3302 a new implementation.
3303 (Add_Interface_Tag_Components): Remove special management of
3304 synchronized interfaces.
3305 (Analyze_Interface_Declaration): Minor reformating
3306 (Build_Derived_Record_Type): Minor reformating
3307 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3308 predefined primitive inherited from interface type because the body of
3309 internally generated predefined primitives of tagged types are generated
3310 later by Freeze_Type
3311 (Derive_Subprogram): Avoid generating an internal name if the parent
3312 subprogram overrides an interface primitive.
3313 (Derive_Subprograms): New implementation that keeps separate the
3314 management of tagged types not implementing interfaces, from tagged
3315 types that implement interfaces.
3316 (Is_Progenitor): New implementation.
3317 (Process_Full_View): Add documentation
3318 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3319 by call to Derive_Progenitor_Subprograms.
3321 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3322 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3323 Skip_Controlling_Formals.
3325 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3326 (Check_Conventions): New implementation. Remove local subprogram
3327 Skip_Check. Remove formal Search_From of routine Check_Convention.
3328 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3329 Skip_Controlling_Formals.
3330 (New_Overloaded_Entity): Enable addition of predefined dispatching
3334 (Find_Primitive_Covering_Interface): New subprogram.
3336 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3337 the task body procedure as a primitive of the corresponding tagged
3339 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3340 to the list of primitives.
3341 (Find_Primitive_Covering_Interface): New subprogram.
3342 (Override_Dispatching_Operation): Add documentation.
3344 * sem_type.adb (Covers): Minor reformatings
3346 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3349 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3350 (Implements_Interface): New subprogram.
3351 (Is_Parent): Removed.
3352 (Primitive_Names_Match): New subprogram.
3353 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3354 (Ultimate_Alias): New subprogram.
3356 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3358 Remove special management for synchronized types. Rename formal. Remove
3359 internal subprograms Interface_Present_In_Parent and Add_Interface.
3360 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3361 on non-record types by code to return false in such case.
3362 (Implements_Interface): New subprogram.
3363 (Is_Parent): Removed. No special management is now required for
3364 synchronized types covering interfaces.
3365 (Primitive_Names_Match): New subprogram.
3366 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3367 (Ultimate_Alias): New subprogram.
3369 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3370 Add internal entities associated with secondary dispatch tables to
3371 the list of tagged type primitives that are not interfaces.
3372 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3373 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3374 the management of predefined equality operator. In addition, if
3375 the type has an equality function corresponding with a primitive
3376 defined in an interface type, the inherited equality is abstract
3377 as well, and no body can be created for it.
3379 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3380 exp_util to exp_disp.
3381 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3382 an entity corresponds with one of the predefined primitives required
3383 to implement interfaces.
3384 Update copyright notice.
3386 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3387 final check on abstract subprograms all the primitives associated with
3388 interface primitives because they must be visible in the public and
3390 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3391 interface type. This allows the use of this routine, for debugging
3392 purposes, when the tagged type is not fully decorated.
3393 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3394 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3395 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3396 entity corresponds with one of the predefined primitives required to
3397 implement interfaces.
3399 * exp_util.adb (Find_Interface_ADT): New implementation
3400 (Find_Interface): Removed.
3402 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3403 list of interfaces associated with nodes
3404 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3406 2008-05-26 Thomas Quinot <quinot@adacore.com>
3408 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3409 condition for assignment to temporary.
3411 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3413 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3414 checks on the upper bound if the index type is a modular type, to
3415 prevent wrap-around computations when size is close to upper bound of
3418 2008-05-26 Robert Dewar <dewar@adacore.com>
3420 * sem_ch3.adb: Minor reformatting
3422 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3424 * sem_ch12.adb (Remove_Parent): Use specification of instance
3425 to retrieve generic parent,
3426 to handle properly the case where the instance is a child unit.
3427 Add guard to handle properly wrapper packages.
3430 2008-05-26 Thomas Quinot <quinot@adacore.com>
3432 * sinfo.ads: Minor reformatting
3434 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3436 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3437 Generate a tag check when the result subtype of a function, defined by
3438 an access definition, designates a specific tagged type.
3439 (Make_Tag_Check): New routine.
3441 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3443 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3445 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3447 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3448 (builtin_decl_for): Likewise.
3449 * trans.c (gigi): Likewise.
3450 * utils.c (def_builtin_1): Fix formatting.
3452 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3454 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3455 Create the statements which map a string name to protected or task
3458 * exp_ch9.adb: Add with and use clause for Stringt.
3459 Minor code reformatting.
3460 (Build_Entry_Names): New routine.
3461 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3462 for flag Build_Entry_Names which controls the allocation of the data
3463 structure for the string names of entries.
3465 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3467 * exp_util.adb (Entry_Names_OK): New function.
3469 * exp_util.ads (Entry_Names_OK): New function.
3471 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3472 enumerations RE_Id and RE_Unit_Table.
3474 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3475 (Free_Entry_Names_Array): New routine.
3477 * s-taskin.ads: Comment reformatting.
3478 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3479 Add component Entry_Names to record Ada_Task_Control_Block.
3480 (Free_Entry_Names_Array): New routine.
3482 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3483 dynamically allocate an array
3484 of string pointers. This structure holds string entry names.
3485 (Free_Entry_Names): New routine.
3486 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3487 (Set_Entry_Names): New routine.
3490 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3491 control the allocation of the data structure which stores entry names.
3492 (Set_Entry_Name): New routine.
3495 Add with and use clause for Ada.Unchecked_Conversion.
3496 (Finalize): Deallocate the entry names array.
3497 (Free_Entry_Names): New routine.
3498 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3499 create an array of string pointers to hold the entry names.
3500 (Set_Entry_Name): New routine.
3503 Add field Entry_Names to record Protection_Entries.
3504 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3505 (Set_Entry_Name): New routine.
3507 2008-05-26 Vincent Celier <celier@adacore.com>
3510 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3513 (Project_Configuration): New component Shared_Lib_Driver
3515 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3518 (Cleanup_Scopes): For a protected operation, transfer finalization list
3519 to protected body subprogram, to force cleanup actions when needed.
3521 2008-05-26 Robert Dewar <dewar@adacore.com>
3523 * sem_cat.adb: Minor reformatting
3525 * gnatname.adb: Minor reformatting
3527 * osint.ads: Minor reformatting
3529 * s-carun8.ads: Minor reformatting
3531 * g-heasor.ads: Minor comment fix (unit is now pure)
3533 2008-05-26 Robert Dewar <dewar@adacore.com>
3536 (Expand_Current_Value): Properly type generated integer literal
3538 2008-05-26 Sergey Rybin <rybin@adacore.com>
3540 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3541 Separate_Numeric_Error_Handlers.
3543 2008-05-26 Pascal Obry <obry@adacore.com>
3545 * sem_aggr.adb: Minor reformatting.
3547 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3550 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3551 the scheduling policy to FIFO within priorities or round-robin
3553 Hence, the priority must be set in this case to the one selected by the
3556 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3559 (Remove_Parent): If the enclosing scope is an instance whose generic
3560 parent is declared within some parent scope of the just completed
3561 instance, make full views of the entities in that parent visible, when
3564 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3566 * mingw32.h (STD_MINGW): Set to true for target w64.
3568 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3570 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3571 instead of TREE_STATIC on the ADDR_EXPR.
3573 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3575 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3576 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3577 GNAT standard locations.
3579 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3581 * gigi.h (mark_visited): Declare.
3582 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3583 only the topmost node of expressions.
3584 (elaborate_expression_1): Look deeper for read-only variables.
3585 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3586 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3587 (mark_visited_r): New function.
3589 2008-05-23 Vincent Celier <celier@adacore.com>
3591 * snames.adb: New standard name Excluded_Source_List_File.
3593 * snames.ads: New standard name Excluded_Source_List_File.
3595 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3597 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3598 Get excluded sources from
3599 file indicated by attribute Excluded_Source_List_File, when present and
3600 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3602 2008-05-23 Robert Dewar <dewar@adacore.com>
3604 * exp_dist.adb: Minor reformatting
3606 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3608 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3609 slice, convert it to an indexed component, which is equivalent, more
3610 efficient, and usable even if the slice itself is not addressable.
3612 2008-05-23 Olivier Hainque <hainque@adacore.com>
3614 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3615 convention also allows access to named compiler built-in subprograms
3616 such as the GCC __builtin family.
3618 2008-05-23 Vincent Celier <celier@adacore.com>
3620 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3621 sep. If there are several possibilities, choose the one with the
3624 2008-05-23 Vincent Celier <celier@adacore.com>
3626 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3627 back end switches when executable specified with --GCC= is same as
3628 default, even if there are additional options.
3631 Document when the back end switches from the ALI file are taken into
3632 account when gnatlink is invoked with --GCC=
3634 2008-05-23 Thomas Quinot <quinot@adacore.com>
3637 (copy_File): Do not open destination file if source file is unreadable.
3639 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3641 * utils.c (handle_type_generic_attribute): Adjust to accept
3642 fixed arguments before an elipsis.
3644 2008-05-21 Thomas Quinot <quinot@adacore.com>
3646 * g-sothco.ads, g-sothco.adb: New files.
3648 2008-05-20 Thomas Quinot <quinot@adacore.com>
3650 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3652 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3653 Add missing "with" of Ada.Unchecked_Conversion
3655 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3656 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3657 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3658 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3659 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3660 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3661 Move common code out of GNAT.Sockets.Thin implementations and into
3663 New constant SIZEOF_fd_set
3664 New flag Has_Sockaddr_Len
3665 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3667 * g-stsifd-sockets.adb
3668 (Create): Remove call to Set_Length; use Set_Family to set the family
3669 and (on appropriate platforms) length fields in struct sockaddr.
3671 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3672 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3673 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3674 Move common code out of GNAT.Sockets.Thin implementations and into
3677 * g-socket.ads, g-socket.adb:
3678 Move common code out of GNAT.Sockets.Thin implementations and into
3680 (Connect_Socket, Accept_Socket): Provide new versions of these two
3681 routines that operate with a user specified timeout.
3682 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3683 this is now handled automatically by Set_Family on platforms that
3687 Move common code out of GNAT.Sockets.Thin implementations and into
3689 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3690 this constant to 0 (not -1) because we use it to initialize an
3691 unsigned_char value.
3692 Align values for numeric constants only.
3693 Handle the case of systems that do not support AF_INET6.
3694 New constant SIZEOF_fd_set
3695 New flag Has_Sockaddr_Len
3696 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3698 * gsocket.h: New flag Has_Sockaddr_Len
3699 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3701 2008-05-20 Santiago Uruena <uruena@adacore.com>
3703 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3705 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3707 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3708 the underlying issue with malloc/free has been fixed. Remove associated
3711 Related to PR ada/24533
3713 2008-05-20 Robert Dewar <dewar@adacore.com>
3715 * ali.adb: Correct casing of ASCII.NUL
3717 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3720 2008-05-20 Robert Dewar <dewar@adacore.com>
3721 Gary Dismukes <dismukes@adacore.com>
3723 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3724 overflow if result converted to wider integer type.
3725 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3726 discriminated types when discriminant checks are suppressed.
3728 2008-05-20 Vincent Celier <celier@adacore.com>
3730 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3731 Wide_Wide_Character.
3733 2008-05-20 Tristan Gingold <gingold@adacore.com>
3735 * decl.c: Do not emit a variable for a object that has an address
3736 representation clause whose value is known at compile time.
3737 When a variable has an address clause whose value is known at compile
3738 time, refer to this variable by using directly the address instead of
3739 dereferencing a pointer.
3741 2008-05-20 Robert Dewar <dewar@adacore.com>
3744 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3745 subtypes, always False for non-modular types.
3746 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3747 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3748 for Shared_Storage package.
3749 (Is_RACW_Stub_Type): New entity flag.
3752 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3753 case where we have a modular type with a non-binary modules.
3754 Comments reformattings.
3756 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3759 2008-05-20 Javier Miranda <miranda@adacore.com>
3762 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3763 tests did not covered the case in which the type of the aggregate has
3764 no progenitors but some its parents has progenitors.
3766 2008-05-20 Gary Dismukes <dismukes@adacore.com>
3767 Hristian Kirtchev <kirtchev@adacore.com>
3770 (Expand_N_Object_Declaration): Correct the condition which triggers the
3771 generation of a call to Displace when initializing a class-wide object.
3772 (Build_Dcheck_Functions): Build discriminant-checking for null variants
3773 when Frontend_Layout_On_Target is true to ensure that they're available
3774 for calling when a record variant size function is built in Layout.
3776 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3778 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3779 procedure for a derived type retrieve the discriminant values from the
3780 parent using the corresponding discriminant.
3781 (Expand_N_Assignment_Statement): Skip generation of implicit
3782 if-statement associated with controlled types if we are
3783 compiling with restriction No_Finalization.
3785 2008-05-20 Vincent Celier <celier@adacore.com>
3787 * prj.adb (Hash (Project_Id)): New function
3788 (Project_Empty): Add new component Interfaces_Defined
3790 * prj.ads (Source_Data): New component Object_Linked
3791 (Language_Config): New components Object_Generated and Objects_Linked
3792 (Hash (Project_Id)): New function
3793 (Source_Data): New Boolean components In_Interfaces and
3794 Declared_In_Interfaces.
3795 (Project_Data): New Boolean component Interfaces_Defined
3798 New project level attribute Object_Generated and Objects_Linked
3799 Add new project level attribute Interfaces
3801 * prj-dect.adb: Use functions Present and No throughout
3802 (Parse_Variable_Declaration): If a string type is specified as a simple
3803 name and is not found in the current project, look for it also in the
3804 ancestors of the project.
3807 Replace procedure Make with procedures Initialize, Process and Finalize
3808 to implement H414-023: process different directories with different
3810 Use functions Present and No throughout
3813 Replace procedure Make with procedures Initialize, Process and Finalize
3816 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3817 the language configuration.
3818 (Process_Project_Level_Array_Attributes): Process new attributes
3819 Object_Generated and Object_Linked.
3820 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3821 False, to indicate that the erreor/warning is a continuation.
3822 (Check): Call Report_No_Sources with Contnuation = True after the first
3824 (Error_Msg): Process successively contnuation character and warning
3826 (Find_Explicit_Sources): Check that all declared sources have been found
3827 (Check_File): Indicate in hash table Source_Names when a declared source
3829 (Check_File): Set Other_Part when found
3830 (Find_Explicit_Sources): In multi language mode, check if all exceptions
3831 to the naming scheme have been found. For Ada, report an error if an
3832 exception has not been found. Otherwise, disregard the exception.
3833 (Check_Interfaces): New procedure
3834 (Add_Source): When Other_Part is defined, set mutual pointers in spec
3836 (Check): In multi-language mode, call Check_Interfaces
3837 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3838 for an excluded source.
3839 (Remove_Source): A source replacing a source in the interfaces is also
3842 * prj-pars.adb: Use function Present
3844 * prj-part.adb: Use functions Present and No throughout
3845 (Parse_Single_Project): Set the parent project for child projects
3846 (Create_Virtual_Extending_Project): Register project with no qualifier
3847 (Parse_Single_Project): Allow an abstract project to be extend several
3848 times. Do not allow an abstract project to extend a non abstract
3851 * prj-pp.adb: Use functions Present and No throughout
3852 (Print): Take into account the full associative array attribute
3855 * prj-proc.adb: Use functions Present and No throughout
3856 (Expression): Call itself with the same From_Project_Node for the
3857 default value of an external reference.
3859 * prj-strt.adb: Use functions Present and No throughout
3860 (Parse_Variable_Reference): If a variable is specified as a simple name
3861 and is not found in the current project, look for it also in the
3862 ancestors of the project.
3864 * prj-tree.ads, prj-tree.adb (Present): New function
3866 Use functions Present and No throughout
3867 (Parent_Project_Of): New function
3868 (Set_Parent_Project_Of): New procedure
3870 * snames.ads, snames.adb:
3871 Add new standard names Object_Generated and Objects_Linked
3873 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3875 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3876 and the derived type are of the same kind.
3877 (Expand_Call): Generate type conversions for actuals of
3878 record or array types when the parent and the derived types differ in
3879 size and/or packed status.
3881 2008-05-20 Javier Miranda <miranda@adacore.com>
3882 Ed Schonberg <schonberg@adacore.com>
3884 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3885 generating dispatch tables of locally defined tagged types statically.
3886 Remove implicit if-statement that is no longer required.
3887 (Expand_Dispatching_Call): If this is a call to an instance of the
3888 generic dispatching constructor, the type of the first argument may be
3889 a subtype of Tag, so always use the base type to recognize this case.
3891 2008-05-20 Thomas Quinot <quinot@adacore.com>
3894 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3895 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3896 assigning NULL into the result, to avoid a spurious warning.
3897 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3899 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3901 (Build_From_Any_Function, Build_To_Any_Function,
3902 Build_TypeCode_Function): For a type that has user-specified stream
3903 attributes, use an opaque sequence of octets as the representation.
3905 2008-05-20 Kevin Pouget <pouget@adacore.com>
3907 * exp_smem.ads, exp_smem.adb: Construction of access and assign
3908 routines has been replaced by an instantiation of
3909 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3910 shared variable declaration.
3911 Calls to access and assign routines have been replaced by calls to
3912 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3913 instantiated package.
3915 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3916 It identifies the new generic package added in s-shasto.
3918 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3919 is instantiated for each shared passive variable. It provides
3920 supporting procedures called upon each read or write access by the
3924 For this runtime unit (always compiled in GNAT mode), we allow
3925 stream attributes references for limited types for the case where
3926 shared passive objects are implemented using stream attributes,
3927 which is the default in GNAT's persistent storage implementation.
3929 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3932 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3933 convention from its base type, do not set the type to that of integer,
3934 because it may inherit a size clause.
3935 Warn on a size clause with a size different
3936 from that of Integer, if the type has convention C.
3938 2008-05-20 Vincent Celier <celier@adacore.com>
3941 (Scan_Args): Rewrite to take into account new switch --and to separate
3942 arguments into sections.
3943 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3944 section, then Finalize.
3946 2008-05-20 Tristan Gingold <gingold@adacore.com>
3948 * init.c: Enable stack probing on ppc-linux.
3950 * tracebak.c: Add symbolic traceback for ppc-linux.
3952 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3954 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3957 (common-tools): New rule, to avoid parallel build failure on gnat tools.
3958 Reenable parallel builds on this Makefile.
3960 * Make-lang.in: Update dependencies.
3962 2008-05-20 Robert Dewar <dewar@adacore.com>
3964 * opt.ads (Treat_Restrictions_As_Warnings): New switch
3966 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3967 Treat_Restrictions_As_Warnings.
3969 * switch-c.adb: Recognize new switch -gnatr
3971 * usage.adb: Add line for -gnatr
3973 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3976 (P_Access_Definition): Change the error message when parsing "access
3977 all" in Ada 95 mode. The message no longer forces the user to recompile
3978 in 05 mode only to discover that anonymous access types are not allowed
3981 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3984 (P_Protected): Update the error message on missing "-gnat05" switch when
3985 using interfaces in conjunction with protected types. Remove the
3986 incorrect error message associated with the presence of "private" after
3989 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3991 * sem_aggr.adb: Update comments.
3992 Improve previous change for PR ada/17985
3994 2008-05-20 Thomas Quinot <quinot@adacore.com>
3997 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3998 the visible part of the spec of a remote types unit.
3999 (Validate_Remote_Access_Object_Type_Declaration):
4000 New local subprogram Is_Valid_Remote_Object_Type, replaces
4001 Is_Recursively_Limited_Private.
4002 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4003 non-controlling formals (and the return type, even though this is not
4004 explicit in the standard) must support external streaming.
4005 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4006 as above for of RAS types and RCI subprograms. (The return type is not
4008 Update comments related to RACWs designating limited interfaces per
4009 ARG ruling on AI05-060.
4011 * sem_util.ads, sem_util.adb
4012 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4013 Is_Remote_Call_Interface to identify RACW types in a stable and
4014 consistent way. We used to rely in this predicate on the privateness of
4015 the designated type and its ancestors, but depending on the currently
4016 visible private parts, this caused false negatives. We now uniformly
4017 rely on checks made at the point where the RACW type is declared.
4018 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4020 2008-05-20 Javier Miranda <miranda@adacore.com>
4021 Ed Schonberg <schonberg@adacore.com>
4022 Hristian Kirtchev <kirtchev@adacore.com>
4025 (Analyze_Object_Declaration): Fix over-conservative condition
4026 restricting use of predefined assignment with tagged types that have
4028 (Analyze_Object_Declaration): Relax the check regarding deferred
4029 constants declared in scopes other than packages since they can be
4030 completed with pragma Import.
4031 Add missing escaping of all-caps word 'CPP' in error messages.
4032 (Build_Discriminated_Subtype): Do not inherit representation clauses
4033 from parent type if subtype already carries them, because they are
4034 inherited earlier during derivation and already include those that may
4035 come from a partial view.
4037 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4038 Check the declarations of a subprogram body for proper deferred
4039 constant completion.
4041 * sem_ch7.ads, sem_ch7.adb
4042 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4044 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4045 Thomas Quinot <quinot@adacore.com>
4048 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4049 F is a parameterless function that returns an array, and S is a subtype
4051 (Analyze_Call): Insert dereference when the prefix is a parameterless
4052 function that returns an access to subprogram and the call has
4054 Reject a non-overloaded call whose name resolves to denote
4055 a primitive operation of the stub type generated to support a remote
4056 access-to-class-wide type.
4058 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4061 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4062 when there is a use clause for the same entity in the context.
4063 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4064 created for a stream attribute of an abstract type or interface type.
4066 2008-05-20 Thomas Quinot <quinot@adacore.com>
4068 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4072 (Add_One_Interp): Ignore any interpretation that is a primitive
4073 operation of an RACW stub type (these primitives are only executed
4074 through dispatching, never through static calls).
4075 (Collect_Interps): When only one interpretation has been found, set N's
4076 Entity and Etype to that interpretation, otherwise Entity and Etype may
4077 still refer to an interpretation that was ignored by Add_One_Interp,
4078 in which case would end up with being marked as not overloaded but with
4079 an Entity attribute not pointing to its (unique) correct interpretation.
4081 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4084 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4085 denotes the whole array of its prefix.
4087 2008-05-20 Robert Dewar <dewar@adacore.com>
4089 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4091 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4094 (Print_Itype): Do not modify the sloc of the component type of a
4095 (packed) array itype, because it is an unrelated type whose source
4096 location is independent of the point of creation of the itype itself.
4098 2008-05-20 Thomas Quinot <quinot@adacore.com>
4100 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4103 2008-05-20 Robert Dewar <dewar@adacore.com>
4104 Vincent Celier <celier@adacore.com>
4106 * vms_data.ads: Add entry for -gnatr
4107 Put GNAT SYNC section in proper alpha order
4108 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4110 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4111 Update the style checks section
4112 Add documentation of -gnatr
4113 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4114 subsection the explanation how compiler checks should be disabled for
4116 Update the list of Ada 95 reserved words used by in the project language
4117 Add documentation for project qualifiers.
4118 Document that abstract projects may be extended by different projects in
4119 the same project tree.
4120 Add documentation for gnatmake switch -d
4122 * ug_words: Add -gnatyy VMS equivalence string.
4123 Add entry for -gnatr
4125 2008-05-20 Bob Duff <duff@adacore.com>
4128 (Set_Handler): Remove code from both of these that implements
4129 RM-D.15(15/2), because it causes a race condition and potential
4131 (Process_Queued_Events): Add comment explaining "exception when others
4132 => null". Add clarifying ".all", even though implicit .all is legal
4135 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4137 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4138 equivalent representation, but has the advantage of allowing
4139 compilation of this file under 64 bits platforms.
4141 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4143 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4146 Don't define dummy implementation of convert_addresses on ppc-linux.
4148 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4151 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4152 if expression is aggregate component.
4154 2008-05-20 Robert Dewar <dewar@adacore.com>
4156 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4157 sem_ch12.adb: Update comments. Minor reformatting.
4161 * s-unstyp.ads: Fixed some typos in comments.
4163 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4165 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4168 * g-socthi-vxworks.ads: Update to latest socket changes.
4170 * a-caldel-vms.adb: Resync with a-caldel spec.
4172 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4175 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4177 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4178 for dummy types pointed to by the converted pointer types.
4180 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4182 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4183 of records and unions.
4184 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4186 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4187 Robert Dewar <dewar@adacore.com>
4189 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4190 restrictions to the prefix of 'Old.
4191 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4192 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4195 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4199 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4200 expression to an integral type with lower precision, use NOP_EXPR
4201 directly in a couple of special cases.
4203 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4204 Ed Schonberg <schonberg@adacore.com>
4206 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4207 constraint expressions.
4209 2008-05-12 Tomas Bily <tbily@suse.cz>
4211 * utils2.c (known_alignment, contains_save_expr_p)
4212 (gnat_mark_addressable): Use CASE_CONVERT.
4213 * decl.c (annotate_value): Likewise.
4214 * trans.c (maybe_stabilize_reference): Likewise.
4215 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4216 * utils.c (rest_of_record_type_compilation): Likewise.
4217 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4218 (protect_multiple_eval): Likewise.
4220 2008-05-08 Andreas Schwab <schwab@suse.de>
4222 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4223 DECL_IS_PURE to DECL_PURE_P.
4225 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4227 * decl.c (maybe_pad_type): Add ??? comment.
4229 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4231 * decl.c (components_to_record): Zero the alignment of the qualified
4232 union built for the variant part upon creating it.
4234 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4236 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4237 mode even if the alignment is not a factor of the original size. But
4238 make sure to create the inner field with the original size. Reorder.
4239 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4240 record as always addressable.
4241 * utils.c (convert): Deal specially with conversions between original
4242 and packable versions of a record type.
4243 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4244 recognizing an assignment between padded objects.
4246 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4248 * decl.c (make_packable_type): Resize the last component to its RM size
4249 only if it is of an aggregate type.
4250 * trans.c (call_to_gnu): Fix nit in comment.
4251 (gnat_to_gnu): Likewise.
4253 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4255 * Makefile.in: Adapt sh4-linux target.
4257 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4260 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4261 tagged type by an untagged protected or task type.
4263 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4264 Tristan Gingold <gingold@adacore.com>
4267 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4268 of aliased objects with an unconstrained nominal subtype.
4269 Cap the promotion to the effective alignment of the word mode.
4271 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4273 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4274 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4275 Use '&&' instead of ';'.
4277 2008-04-24 Olivier Hainque <hainque@adacore.com>
4279 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4280 doesn't require signed arithmetic anymore.
4282 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4284 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4285 (call_to_gnu): Don't set TREE_INVARIANT.
4286 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4288 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4290 * s-osinte-rtems.adb: Add sigalstack function.
4291 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4292 function. Add Alternate_Stack and Alternate_Stack_Size.
4293 Add missing process_shared field to pthread_condattr_t
4294 and change ss_low_priority to int from timespec.
4296 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4298 * i-forbla.adb: Link against -llapack and -lblas by default
4299 instead of the private -lgnalasup.
4301 2008-04-21 Olivier Hainque <hainque@adacore.com>
4303 Access to most C builtins from Ada
4304 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4305 (handle_pure_attribute, handle_novops_attribute,
4306 handle_nonnull_attribute, handle_sentinel_attribute,
4307 handle_noreturn_attribute, handle_malloc_attribute,
4308 handle_type_generic_attribute): New attribute handlers, from C fe.
4309 (gnat_internal_attribute_table): Map the new handlers.
4310 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4311 (init_gigi_decls): ... here.
4312 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4313 Move to a section dedicated to builtins processing.
4314 (build_void_list_node, builtin_type_for_size): New functions.
4315 (def_fn_type, get_nonnull_operand): Likewise.
4316 (install_builtin_elementary_type, install_builtin_function_types,
4317 install_builtin_attributes): Likewise.
4318 (fake_attribute_handler): Fake handler for attributes we don't
4320 (def_builtin_1): New function, worker for DEF_BUILTIN.
4321 (install_builtin_functions): New function.
4322 (gnat_install_builtins): Move to the builtins processing section.
4323 Now calling the newly introduced installers.
4325 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4327 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4328 constant objects, but not exceptions.
4329 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4331 * utils.c (create_var_decl_1): Likewise.
4332 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4333 the type when copying to padded object and the source is a constructor.
4335 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4337 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4338 alignment, reset it to zero if it would end up not being greater
4339 than that of the type.
4341 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4343 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4344 the padded type has a variable size.
4346 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4348 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4349 target pointer mechanism as soon as the size is not constant.
4351 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4353 * gigi.h (create_var_decl_1): Declare.
4354 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4355 (create_true_var_decl): Likewise.
4356 * utils.c (create_var_decl_1): Make global and reorder parameters.
4357 (create_var_decl): Delete.
4358 (create_true_var_decl): Likewise.
4360 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4362 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4364 * fe.h (Debug_Flag_Dot_A): Delete.
4365 * debug.adb (-gnatd.a): Update documentation.
4367 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4369 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4370 "not null" parameter.
4372 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4374 * g-socket.adb: Add a message "IPv6 not supported" to the
4375 Socket_Error exception.
4377 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4380 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4381 the type is known instead of the underlying type.
4383 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4386 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4387 procedure for a derived type retrieve the discriminant values from
4388 the parent using the corresponding discriminant.
4390 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4391 Gary Dismukes <dismukes@adacore.com>
4394 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4395 which is not an entity (and hence not a package).
4396 (End_Use_Package): Ditto.
4398 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4401 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4402 protected operation that matches the signature, not only an entry, a
4403 regular subprogram or a literal.
4405 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4407 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4408 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4409 if a size or alignment is specified. Do not take into account
4410 alignment promotions for the computation of the object's size.
4411 <type>: Call maybe_pad_type only if a size or alignment is specified.
4412 (maybe_pad_type): Really reuse the RM_Size of the original type if
4414 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4415 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4416 statements. Use the padded view of the type when copying between
4417 padded objects of the same underlying type.
4419 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4421 * vms_data.ads: Fix typo in constant.
4422 * gen-soccon.c: Fix typo in error string.
4423 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4425 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4426 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4427 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4428 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4429 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4430 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4431 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4432 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4433 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4434 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4435 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4436 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4437 sinfo.ads: Fix typos in comments.
4439 2008-04-14 Robert Dewar <dewar@adacore.com>
4441 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4442 to every non-object and change error message.
4444 2008-04-14 Robert Dewar <dewar@adacore.com>
4446 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4447 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4450 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4453 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4454 apply pragma Linker_Section on type.
4456 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4459 * sem_prag.adb (Error_Pragma_Ref): New.
4460 (Process_Convention): Specialized message for non-local
4461 subprogram renaming. Detect the problem in homonyms as well.
4463 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4466 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4467 * sem_ch12.adb (Instantiate_Object): Use it.
4468 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4469 storage pool denotes a variable as per RM 13.11(15).
4471 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4473 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4474 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4476 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4479 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4480 line endings even on non-Unix platforms.
4482 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4485 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4486 renaming information.
4488 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4491 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4494 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4496 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4497 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4498 snames.ads, sprint.adb, stand.ads, stringt.ads,
4499 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4500 switch.ads, sysdep.c, table.adb, table.ads,
4501 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4502 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4503 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4504 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4505 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4506 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4509 * sem_ch10.adb, sem_ch10.ads,
4510 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4511 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4512 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4513 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4514 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4515 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4516 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4517 sem_warn.ads: Fix comment typos.
4519 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4520 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4521 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4522 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4523 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4524 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4525 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4526 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4527 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4528 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4529 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4530 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4531 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4532 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4533 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4534 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4535 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4536 sem_cat.adb, sem_cat.ads: Fix comment typos.
4538 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4541 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4543 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4545 * s-linux-hppa.ads: Fix syntax errors.
4547 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4549 * gnat_ugn.texi: Fix typos.
4550 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4551 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4552 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4553 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4554 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4555 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4556 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4557 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4558 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4559 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4560 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4561 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4562 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4563 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4564 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4565 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4566 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4567 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4568 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4569 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4570 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4571 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4572 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4573 s-rident.ads: Fix comment typos.
4575 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4578 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4579 environment if generic instance is a top-level one.
4581 2008-04-09 Doug Rupp <rupp@adacore.com>
4583 * decl.c (validate_size): Set minimum size for fat pointers same as
4584 access types. Code clean ups.
4586 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4587 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4589 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4591 * s-crtl.ads (malloc32) New function, alias for malloc
4592 (realloc32) New function, alias for realloc
4594 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4596 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4597 allocator size is 32 and default pointer size is 64.
4598 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4599 lhs type if smaller, whatever the modes.
4601 * gigi.h (malloc32_decl): New macro definition
4603 * utils.c (init_gigi_decls): New malloc32_decl
4604 Various code clean ups.
4606 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4607 Task_Address vice System.Address.
4609 * s-taspri-vms.ads: Import System.Aux_DEC
4610 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4611 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4613 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4614 Task_Address vice System.Address.
4616 * s-inmaop-vms.adb: Import System.Task_Primitives
4617 (To_Address): Unchecked convert to Task_Address vice System.Address
4619 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4621 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4622 (To_Address) Unchecked convert to Task_Address vice System.Address
4624 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4626 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4628 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4630 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4631 (fdesc_type_node): Define.
4632 (null_fdesc_node): Likewise.
4633 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4634 uses descriptors for vtables and the type comes from a dispatch table,
4635 return the descriptor type.
4636 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4637 uses descriptors for vtables and the type comes from a dispatch table,
4638 build a descriptor in the static case and copy the existing one in the
4640 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4641 the type is a pointer-to-subprogram coming from a dispatch table,
4642 return the null descriptor.
4643 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4644 vtables, the source type is the descriptor type and the target type
4645 is a pointer type, first build the pointer.
4646 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4647 build the descriptor type and the null descriptor.
4649 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4651 * decl.c (prepend_attributes): Fix typo.
4652 * trans.c (Pragma_to_gnu): Likewise.
4653 * utils.c (gnat_genericize): Likewise.
4655 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4656 Richard Kenner <kenner@adacore.com>
4658 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4659 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4660 <E_Record_Type>: Try to get a better form of the component for
4661 packing, even if it has an integral mode.
4662 <E_Record_Subtype>: Likewise.
4663 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4664 exception suppressing the final conversion between record types.
4666 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4668 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4669 alignment for space, promote the alignment of non-scalar variables with
4670 no size and alignment.
4671 * gigi.h (gnat_types_compatible_p): Declare.
4672 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4673 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4674 * utils.c (gnat_types_compatible_p) : New predicate.
4675 (convert): Use it throughout to test for cases where a mere view
4676 conversion is sufficient.
4677 * utils2.c (build_binary_op): Minor tweaks.
4678 (build_unary_op): Likewise.
4680 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4682 * decl.c (adjust_packed): Expand comment.
4684 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4686 * s-tasuti.ads: Use Task_Address instead of System.Address.
4688 * makeutl.adb (Path_Or_File_Name): New function
4690 * nlists.ads, itypes.ads: Update comments.
4692 * s-crtl.ads (malloc32, realloc32): New functions.
4694 * s-auxdec.ads (Short_Address_Size): New constant.
4696 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4698 * s-ststop.ads, s-ststop.adb: New file.
4700 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4703 2008-04-08 Pascal Obry <obry@adacore.com>
4705 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4706 (Stop_Bits_Number): New type.
4707 (Parity_Check): Likewise.
4708 (Set): Add parameter to set the number of stop bits and
4709 the parity. Parameter timeout is now a duration instead
4712 * g-sercom-linux.adb:
4713 Implement the stop bits and parity support for GNU/Linux.
4714 Fix handling of timeout, it must be given in tenth of seconds.
4716 * g-sercom-mingw.adb:
4717 Implement the stop bits and parity support for Windows.
4718 Use new s-win32.ads unit instead of declaring Win32 services
4719 directly into this body.
4720 Update handling of timeout as now a duration.
4722 * s-win32.ads, s-winext.ads: New files.
4724 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4725 Arnaud Charlet <charlet@adacore.com>
4727 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4729 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4730 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4732 * s-osinte-lynxos-3.ads,
4733 (Alternate_Stack): Remove when not needed. Simplify declaration
4735 (Alternate_Stack_Size): New constant.
4737 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4738 'Unrestricted_Access.
4740 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4741 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4742 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4743 s-osinte-solaris.ads, s-osinte-vms.ads
4744 (SA_ONSTACK): New constant.
4745 (stack_t): New record type.
4746 (sigaltstack): New imported function.
4747 (Alternate_Stack): New imported variable.
4748 (Alternate_Stack_Size): New constant.
4750 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4752 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4753 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4754 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4755 (Task_Address_Size): New constant size of System.Address
4756 (Alternate_Stack_Size): New constant.
4758 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4759 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4760 Establish the alternate stack if the platform makes use of n alternate
4761 signal stack for stack overflows.
4762 (Create_Task): Take into account the alternate stack in the stack size.
4763 (Initialize): Save the address of the alternate stack into the ATCB for
4764 the environment task.
4765 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4767 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4769 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4771 * s-intman-posix.adb:
4772 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4773 alternate signal stack for stack overflows.
4775 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4776 x86-64, adjust the saved value of the stack pointer if the signal was
4777 raised by a stack checking probe.
4778 (HP-UX section): Use global __gnat_alternate_stack as signal handler
4779 stack and only for SIGSEGV.
4780 (Linux section): Likewise on x86 and x86-64.
4782 (__gnat_map_signal): Now static.
4783 (__gnat_error_handler): Not static any more.
4784 (__gnat_adjust_context_for_raise): New function. Signal context
4785 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4786 propagation circuitry.
4787 (__gnat_error_handler): Second argument of a sigaction handler is a
4788 pointer, not an int, and is unused.
4789 Adjust signal context before mapping to exception.
4790 Install signal handlers for LynxOS case.
4792 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4793 (Task_Id): Set size to Task_Address_Size
4794 (To_Task_id): Unchecked convert from Task_Address vice System.Address
4795 (To_Address): Unchecked convert to Task_Address vice System.Address
4797 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4798 address into the ATCB if the platform makes use of an alternate signal
4799 stack for stack overflows.
4800 (Free_Task): Add call to Finalize_Attributes_Link.
4801 Add argument Relative_Deadline to pass the value specified for
4802 the task. This is not yet used for any target.
4804 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4805 the value specified for the task.
4807 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4809 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4810 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4811 s-vxwext-rtp.adb): New files.
4813 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4814 Minor updates to accomodate changes above.
4816 2008-04-08 Pascal Obry <obry@adacore.com>
4818 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4819 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4820 Use new s-win32.ads unit instead of declaration
4821 from s-osinte-mingw.ads.
4823 * s-osinte-mingw.ads:
4824 Move all non tasking based interface to s-win32.ads.
4826 * s-osprim-mingw.adb:
4827 Remove duplicated declarations and use s-win32.ads
4830 2008-04-08 Vincent Celier <celier@adacore.com>
4831 Arnaud Charlet <charlet@adacore.com>
4833 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4834 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4835 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4836 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4837 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4839 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4840 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4841 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4842 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4843 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4844 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4845 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4846 mlib-tgt-specific-mingw.adb: New names.
4849 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4851 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4852 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4853 Minor updates for VMS
4855 * gnatbl.c: Removed.
4857 2008-04-08 Thomas Quinot <quinot@adacore.com>
4859 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4860 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4861 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4862 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4863 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4864 ASCII.NUL throughout.
4866 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4867 Matthew Heaney <heaney@adacore.com>
4869 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4872 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4873 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4874 to convention for non-RM specs.
4875 Add descriptive header, and documented each operation
4876 document each operation
4878 2008-04-08 Robert Dewar <dewar@adacore.com>
4879 Bob Duff <duff@adacore.com>
4880 Gary Dismukes <dismukes@adacore.com>
4881 Ed Schonberg <schonberg@adacore.com>
4883 * alloc.ads: Add entries for Obsolescent_Warnings table
4885 * einfo.ads, einfo.adb: Minor reformatting.
4886 (Is_Discriminal): New subprogram.
4887 (Is_Prival): New subprogram.
4888 (Is_Protected_Component): New subprogram.
4889 (Is_Protected_Private): Removed.
4890 (Object_Ref, Set_Object_Ref): Removed.
4891 (Prival, Set_Prival): Change assertion.
4892 (Privals_Chain, Set_Privals_Chain): Removed.
4893 (Prival_Link, Set_Prival_Link): New subprogram.
4894 (Protected_Operation, Set_Protected_Operation): Removed.
4895 (Protection_Object, Set_Protection_Object): New subprogram.
4896 (Write_Field17_Name): Remove case for Object_Ref.
4897 (Write_Field20_Name): Add case for Prival_Link.
4898 (Write_Field22_Name): Remove case for Protected_Operation,
4900 Add case for Protection_Object.
4901 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4903 (Overlays_Constant): New flag
4904 (Is_Constant_Object): New predicate
4905 (Is_Standard_Character_Type): New predicate
4906 (Optimize_Alignment_Space): New flag
4907 (Optimize_Alignment_Time): New flag
4908 (Has_Postconditions): New flag
4909 (Obsolescent_Warrning): Field removed
4910 (Spec_PPC_List): New field
4911 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4912 subprograms to get and set the relative deadline associated to a task.
4914 * exp_attr.adb (May_Be_External_Call): Account for the case where the
4915 Access attribute is part of a named parameter association.
4916 (Expand_Access_To_Protected_Op): Test for the attribute occurring
4917 within an init proc and use that directly as the scope rather than
4918 traversing up to the protected operation's enclosing scope. Only apply
4919 assertion on Is_Open_Scopes in the case the scope traversal is done.
4920 For the init proc case use the address of the first formal (_init) as
4921 the protected object reference.
4922 Implement Invalid_Value attribute
4923 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4924 contents of the dispatch table there is no need to duplicate the
4925 itypes associated with record types (i.e. the implicit full view
4927 Implement Enum_Val attribute
4928 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4929 within _Postconditions procedure
4930 (Expand_N_Attribute_Reference, case Result): Implement new attribute
4932 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4933 a return statement calls a function that is not available in
4934 configurable runtime.
4935 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4936 (Expand_Non_Function_Return): Generate call to _Postconditions proc
4937 (Expand_Simple_Function_Return): Ditto
4939 * frontend.adb: Add call to Sem_Aux.Initialize
4941 * sem_aux.ads, sem_aux.adb: New file.
4943 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4944 Add new Pragma_Relative_Deadline.
4945 Add support for pragmas Check and Check_Policy
4947 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4948 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4949 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4950 missing check because they are not allowed in CPP tagged types.
4951 Add Sure parameter to Note_Possible_Modification calls
4952 Add implementation of Invalid_Value attribute
4953 Implement new attribute Has_Tagged_Values
4954 Implement Enum_Val attribute
4955 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4956 generated attributes.
4957 (Analyze_Attribute, case Result): If prefix of the attribute is
4958 overloaded, it always resolves to the enclosing function.
4959 (Analyze_Attribute, case Result): Properly deal with analysis when
4960 Postconditions are not active.
4961 (Resolve_Attribute, case Result): Properly deal with appearence during
4962 preanalysis in spec.
4963 Add processing for attribute Result
4965 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4967 (Analyze_Subprogram_Body): Install private_with_clauses when the body
4969 (Check_Inline_Pragma): recognize an inline pragma that appears within
4970 the subprogram body to which it applies.
4971 (Analyze_Function_Return): Check that type of the expression of a return
4972 statement in a function with a class-wide result is not declared at a
4973 deeper level than the function.
4974 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4975 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4976 user- defined operators.
4977 (Install_Formals): Moved to spec to allow use from Sem_Prag for
4978 analysis of precondition/postcondition pragmas.
4979 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4980 Last_Formal, along with lots of comments on what this is about
4981 (Analyze_Subprogram_Body): Fix case where we move entities from the
4982 spec to the body when there are no body entities (now possible with
4983 precondition and postcondition pragmas).
4984 (Process_PPCs): New procedure
4985 (Analyze_Subprogram_Body): Add call to Process_PPCs
4987 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4989 (Pop_Scope): Restore Check_Policy_List on scope exit
4990 (Push_Scope): Save Check_Policy_List on scope entry
4991 Change name In_Default_Expression => In_Spec_Expression
4992 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4993 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4994 (Analyze_Object_Renaming): Allow 'Reference as object
4995 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4996 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4997 of restriction identifier.
4998 Add Sure parameter to Note_Possible_Modication calls
5000 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5001 Don't check for primitive operations when calling Rep_Item_Too_Late.
5002 (Process_Import_Or_Interface): Do not place flag on formal
5004 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5005 propagate information to full view, which is the one elaborated by the
5007 (Make_Inline): the pragma is effective if it applies to an internally
5008 generated subprogram declaration for a body that carries the pragma.
5009 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5010 Optimize_Alignment_Local.
5011 (Analyze_PPC_In_Decl_Part): New procedure
5012 (Get_Pragma_Arg): Moved to outer level
5013 (Check_Precondition_Postcondition): Change to allow new visibility
5014 rules for package spec
5015 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5016 same as pragma Suppress/Unsuppress.
5017 Change name In_Default_Expression => In_Spec_Expression
5018 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5019 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5020 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5021 for the case of these pragmas appearing in the spec.
5022 (Check_Enabled): New function
5023 (Initialize): New procedure
5024 (Tree_Read): New procedure
5025 (Tree_Write): New procedure
5026 (Check_Precondition_Postcondition): New procedure
5027 Implement pragmas Check and Check_Policy
5028 Merge Assert processing with Check
5030 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5031 New warning flag -gnatw.e
5033 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5034 returning whether a task (or main procedure) has a pragma
5036 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5037 (or main procedure) has a pragma Relative_Deadline.
5038 Add Next_Pragma field to N_Pragma node
5039 (PPC_Enabled): New flag
5040 (Next_Pragma): Now used for Pre/Postcondition processing
5042 * snames.h, snames.ads, snames.adb: New standard name
5044 Add entry for 'Invalid_Value attribute
5045 Add entry for new attribute Has_Tagged_Values
5046 Add entry for Enum_Val attribute
5047 Add new standard names Aggregate, Configuration and Library.
5050 Add Pragma_Precondition
5051 Add Pragma_Postcondition
5052 Add Attribute_Result
5053 New standard name Archive_Builder_Append_Option
5054 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5055 There was also a missing non_preemptive_within_priorities.
5056 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5058 Add support for pragmas Check and Check_Policy
5060 * tree_gen.adb: Call Sem_Aux.Tree_Write
5062 * tree_in.adb: Call Sem_Aux.Tree_Read
5064 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5067 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5070 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5071 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5073 (Expand_Pragma_Check): New procedure
5075 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5078 * sinfo.adb (PPC_Enabled): New flag
5080 2008-04-08 Robert Dewar <dewar@adacore.com>
5081 Gary Dismukes <dismukes@adacore.com>
5082 Javier Miranda <miranda@adacore.com>
5083 Ed Schonberg <schonberg@adacore.com>
5085 * fe.h: Remove global Optimize_Alignment flag, no longer used
5087 * layout.adb: Test Optimize_Alignment flags rather than global switch
5089 * lib.ads, lib.adb: New OA_Setting field in library record
5091 * lib-load.adb: New OA_Setting field in library record
5093 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5094 units mentioned in limited_with_ clauses in the ali file, with an
5096 New Ox fields in U line
5098 * opt.adb: New flag Optimize_Alignment_Local
5099 (Check_Policy_List[_Config]): New flags
5101 * opt.ads (Invalid_Value_Used): New flag
5102 New switch Optimize_Alignment_Local
5103 (Warn_On_Parameter_Order): New flag
5104 (Check_Policy_List[_Config]): New flags
5106 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5107 limited_with clauses.
5108 New data structures for Optimize_Alignment
5110 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5112 (Check_Consistent_Optimize_Alignment): Rework for new structure
5113 (Check_Consistent_Restrictions): Fix incorrect error message
5115 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5116 created class-wide type (to the Parent field of the specific type).
5117 (Install_Siblings): Handle properly private_with_clauses on subprogram
5118 bodies and on generic units.
5119 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5120 illegal limited_with_clause that names a non-existent package.
5121 (Check_Body_Required): Determine whether a unit named a limited_with
5122 clause needs a body.
5123 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5124 Capture Optimize_Alignment settings to set new OA_Setting field in
5126 (Build_Limited_Views): Include task and protected type declarations.
5128 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5129 case of a possible constant redeclaration where the current object is
5130 an entry index constant.
5131 (Analyze_Object_Declaration): Generate an error in case of CPP
5132 class-wide object initialization.
5133 (Analyze_Object_Declaration): Add extra information on warnings for
5134 declaration of unconstrained objects.
5135 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5136 conflicts with the setting of Stored_Constraint in the case where the
5137 access type entity has already been created as an E_Incomplete_Type due
5138 to a limited with clause.
5139 Use new Is_Standard_Character_Type predicate
5140 (Analyze_Object_Declaration): Apply access_constant check only after
5141 expression has been resolved, given that it may be overloaded with
5142 several access types.
5143 (Constant_Redeclaration): Additional legality checks for deferred
5144 constant declarations tha involve anonymous access types and/or null
5145 exclusion indicators.
5146 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5147 (Analyze_Subtype_Declaration): Ditto
5148 (Analyze_Object_Declaration): Ditto
5149 (Analyze_Object_Declaration): Don't count tasks in generics
5150 Change name In_Default_Expression => In_Spec_Expression
5151 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5152 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5153 (Process_Discriminants): Additional check for illegal use of default
5154 expressions in access discriminant specifications in a type that is not
5156 (Check_Abstract_Overriding): If an inherited function dispaches on an
5157 access result, it must be overridden, even if the type is a null
5159 (Derive_Subprogram): The formals of the derived subprogram have the
5160 names and defaults of the parent subprogram, even if the type is
5161 obtained from the actual subprogram.
5162 (Derive_Subprogram): In the presence of interfaces, a formal of an
5163 inherited operation has the derived type not only if it descends from
5164 the type of the formal of the parent operation, but also if it
5165 implements it. This is relevant for the renamings created for the
5166 primitive operations of the actual for a formal derived type.
5167 (Is_Progenitor): New predicate, to determine whether the type of a
5168 formal in the parent operation must be replaced by the derived type.
5170 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5171 predicate recursive to handle components that have a user-defined
5172 Initialize procedure. Handle controlled derived types whose ancestor
5173 has a user-defined Initialize procedured.
5174 (Note_Possible_Modification): Add Sure parameter, generate warning if
5175 sure modification of constant
5176 Use new Is_Standard_Character_Type predicate
5177 (Find_Parameter_Type): when determining whether a protected operation
5178 implements an interface operation, retrieve the type of the formal from
5179 the entity when the formal is an access parameter or an
5180 anonymous-access-to-subprogram.
5181 Move Copy_Parameter_List to sem_util, for use when building stubbed
5183 (Has_Access_Values): Tagged types now return False
5184 (Within_HSS_Or_If): New procedure
5185 (Set_Optimize_Alignment_Flags): New procedure
5186 Change name In_Default_Expression => In_Spec_Expression
5187 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5188 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5190 2008-04-08 Tristan Gingold <gingold@adacore.com>
5192 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5194 2008-04-08 Tristan Gingold <gingold@adacore.com>
5198 * cuintp.c: Fix 16 bits issue for AVR.
5199 On AVR, integer is 16 bits, so it can't be used to do math with
5201 So use long_integer instead.
5203 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5205 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5206 System.OS_Primitives.
5207 Change type of various constants, parameters and local variables from
5208 Time to representation type OS_Time.
5209 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5210 Remove the declaration of constant Mili_F from several routines. New
5211 body for internal package Conversions_Operations.
5212 (Time_Of): Add default parameters for several formals.
5214 * a-caldel.adb: Minor reformatting
5216 * a-calend.ads, a-calend.adb: New body for internal package
5217 Conversions_Operations.
5218 (Time_Of): Add default parameters for several formals.
5220 * Makefile.rtl: Add a-ststop
5221 Add Ada.Calendar.Conversions to the list of runtime files.
5224 * a-calcon.adb, a-calcon.ads: New files.
5226 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5227 Tristan Gingold <gingold@adacore.com>
5229 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5230 (Install_Restricted_Handlers): New procedure
5231 which is a simplified version of Install_Handlers that does not store
5232 previously installed.
5234 * s-interr-vxworks.adb: Fix ACATS cxc3001
5235 On VxWorks interrupts can't be detached.
5236 (Install_Restricted_Handlers): New procedure.
5238 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5241 2008-04-08 Olivier Hainque <hainque@adacore.com>
5243 * s-intman-vxworks.ads, s-intman-vxworks.adb
5244 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5245 required services already implemented elsewhere.
5246 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5247 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5248 argument passed to the handler, which we need for ZCX propagation
5251 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5253 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5255 * g-timsta.adb, g-timsta.ads: New files.
5257 2008-04-08 Robert Dewar <dewar@adacore.com>
5259 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5260 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5261 (Raise_Exception_Always): Fix documentation accordingly
5263 2008-04-08 Robert Dewar <dewar@adacore.com>
5265 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5268 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5271 2008-04-08 Javier Miranda <miranda@adacore.com>
5272 Robert Dewar <dewar@adacore.com>
5273 Ed Schonberg <schonberg@adacore.com>
5275 * a-tags.adb (Register_Interface_Offset): New subprogram.
5276 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5277 (To_Predef_Prims_Table_Ptr): Removed.
5278 (Acc_Size): Removed.
5279 (To_Acc_Size): Removed.
5280 (Parent_Size): Modified to the call the subprogram returning the size of
5281 the parent by means of the new TSD component Size_Func.
5283 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5284 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5285 code referencing the Offset_To_Top component of the dispatch table's
5287 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5288 use of 'address to initialize dispatch table slots.
5289 (Size_Func): New component of the TSD. Used by the run-time to call the
5290 size primitive of the tagged type.
5292 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5293 Offset_To_Top component of a dispatch table.
5294 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5295 deferred constant declaration. do not add a null expression, to prevent
5296 spurious errors when full declaration is analyzed.
5297 (Apply_Discriminant_Check): If both discriminant constraints share a
5298 node which is not static but has no side effects, do not generate a
5299 check for that discriminant.
5300 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5301 subexpr, since the prefix of an attribute is a name.
5303 * checks.ads: Fix nit in comment.
5305 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5306 and body of predefined primitives in case of CPP tagged type
5308 (Freeze_Type): Deal properly with no storage pool case
5309 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5310 primitive Deep_Adjust if a nonlimited interface is derived from a
5312 (Build_Dcheck_Functions): Create discriminant-checking functions only
5313 for variants that have some component(s).
5314 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5315 properly the case where the slice bounds extend to the last value of the
5316 underlying representation.
5317 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5318 (Is_Variable_Size_Record): An array component has a static size if
5319 index bounds are enumeration literals.
5321 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5322 an external tag has been specified for the type.
5323 (Building_Static_DT): Add missing support for private types.
5324 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5325 to the entity associated with the parent of Typ. This is done to
5326 avoid wrong access when the parent is a private type.
5327 (Expand_Interface_Conversion): Improve error message when the
5328 configurable runtime has no support for dynamic interface conversion.
5329 (Expand_Interface_Thunk): Add missing support to interface types in
5330 configurable runtime.
5331 (Expand_Dispatching_Call): remove obsolete code.
5332 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5333 ensure that all subtypes and aggregates associated with dispatch
5334 tables have the attribute Is_Dispatch_Table_Entity set to true.
5335 (Register_Primitive): Rename one variable to improve code reading.
5336 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5337 of the pointer to the 'size primitive in the TSD.
5339 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5340 (RE_Offset_To_Top_Ptr): New entity.
5341 (RE_Register_Interface_Offset): New entity.
5342 (RE_Set_Dynamic_Offset_To_Top): New entity.
5343 (RE_Set_Offset_To_Top): Removed entity.
5344 (RE_Prim_Ptr): New entity
5345 (RE_Size_Func): New entity
5346 (RE_Size_Ptr): New entity
5347 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5348 (Ada_Dispatching_Child): Define this new subrange.
5349 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5350 RE_Time_Span, and RE_Time_Span_Zero).
5351 (RE_Unit_Table): Add new required run-time calls
5353 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5356 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5357 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5358 initializes the Offset_To_Top component of a dispatch table.
5359 (Build_Predef_Prims): Removed.
5360 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5362 (Build_Set_Size_Function): New subprogram.
5364 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5365 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5367 2008-04-08 Robert Dewar <dewar@adacore.com>
5369 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5370 computing Fore when Exp > 0
5372 2008-04-08 Robert Dewar <dewar@adacore.com>
5374 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5376 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5377 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5379 * fmap.adb: Remove Big_String declarations (now in Types)
5380 (No_Mapping_File): New Boolean global variable
5381 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5383 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5384 tables were empty before adding entries, open the mapping file
5385 with Truncate = True, instead of delete/re-create.
5387 * fname-sf.adb: Remove Big_String declarations (now in Types)
5389 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5390 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5393 * table.ads: Add for Table_Ptr'Storage_Size use 0
5395 * types.ads: Add Big_String declarations
5396 Add Size_Clause of zero for big pointer types
5398 2008-04-08 Vincent Celier <celier@adacore.com>
5400 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5401 (Usage): Add line for switch --subdirs=
5402 Add new switch -eL, to follow symbolic links when processing project
5405 * gnatcmd.adb: Process switches -eL and --subdirs=
5406 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5407 Program_Name to get proper tool names when AAMP_On_Target is set.
5408 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5409 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5410 Osint.Program_Name).
5412 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5413 (Usage): Add lines for switches -eL and --subdirs=
5415 * makeusg.adb: Add line for switch --subdirs=
5418 (Source_Data): New Boolean component Compiled, defaulted to True
5419 (Empty_File_Name: New global variable in private part, initialized in
5420 procedure Initialize.
5421 (Subdirs_Option): New constant string
5422 (Subdirs): New String_Ptr global variable
5423 (Language_Config): New component Include_Compatible_Languages
5424 (Project_Qualifier): New type for project qualifiers
5425 (Project_Data): New component Qualifier
5426 (Project_Configuration): New component Archive_Builder_Append_Option
5428 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5429 another imported project indicate the name of this imported project.
5430 (Check_File): When a unit is in two project files, indicate the project
5431 names and the paths of the source files for each project.
5432 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5433 set object, dependency and switches file names if Compiled is True.
5434 (Process_Compiler): Allow the empty string for value of attribute Driver
5435 (Get_Directories): When Subdirs is not null and Object_Dir is not
5436 specified, locate and create if necessary the actual object dir.
5437 (Locate_Directory): When Subdirs is not empty and Create is not the
5438 empty string, locate and create if necessary the actual directory
5439 as a subdirectory of directory Name.
5440 (Check_Library_Attributes.Check_Library): Allow a project where the only
5441 "sources" are header files of file based languages to be imported by
5442 library projects, in multi-language mode (gprbuild).
5443 (Check_Library_Attributes.Check_Library): In multi-language mode
5444 (gprbuild), allow a library project to import a project with no
5445 sources, even when this is not declared explicitly.
5446 (Check_If_Externally_Built): A virtual project extending an externally
5447 built project is also externally built.
5448 (Check_Library_Attributes): For a virtual project extending a library
5449 project, inherit the library directory.
5450 (Process_Project_Level_Array_Attributes): Process new attribute
5451 Inherit_Source_Path.
5452 For projects with specified qualifiers "standard", "library" or
5453 "abstract", check that the project conforms to the qualifier.
5454 (Process_Project_Level_Simple_Attributes): Process new attribute
5455 Archive_Builder_Append_Option.
5457 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5458 (Normalize_Compiler_Switches): Only keep compiler switches that are
5459 passed to gnat1 by the gcc driver and that are stored in the ALI file
5461 Do not take into account switc -save-temps
5463 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5464 gprmake is called with -eL.
5465 (Scan_Arg): Recognize switch -eL
5466 (Usage): Add line for switch -eL
5468 * prj.adb (Initialize): Initialize Empty_File_Name
5469 (Project_Empty): New component Qualifier
5471 * prj-attr.ads, prj-attr.adb: New project level attribute
5472 Inherit_Source_Path.
5473 New project level attribute Archive_Builder_Append_Option
5475 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5477 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5478 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5479 upward compatibility.
5481 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5482 each Trying ..." on different lines.
5483 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5484 is "configuration" when not in configuration. Fail when in configuration
5485 when a specified qualifier is other than "configuration".
5487 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5488 full associative array together.
5489 (Recursive_Process): Put the project qualifier in the project data
5491 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5492 (Set_Project_Qualifier_Of): New procedure
5494 2008-04-08 Robert Dewar <dewar@adacore.com>
5496 * errout.ads: Update comments for new handling of info: messages
5498 * erroutc.adb (Matches): New procedure
5499 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5500 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5501 info messages as well as style messages.
5503 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5505 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5507 (Check_A_Call): Special "info: " warnings now have ? in the text
5508 (Elab_Warning): Use info message in static case
5510 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5512 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5513 whether an array aggregate with static bounds and scalar components
5514 should be expanded into a static constant.
5516 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5517 Ed Schonberg <schonberg@adacore.com>
5518 Robert Dewar <dewar@adacore.com>
5520 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5521 Has_Stream_Attribute_ Definition when checking for available stream
5522 attributes on parameters of a limited type in Ada 2005. Necessary for
5523 proper recognition of visible stream attribute clauses.
5524 (Has_Stream_Attribute_Definition): If the type is derived from a
5525 private type, then use the derived type's underlying type for checking
5526 whether it has stream attributes.
5527 (Validate_Object_Declaration): The check for a user-defined Initialize
5528 procedure applies also to types with controlled components or a
5529 controlled ancestor.
5530 Reject an object declaration in a preelaborated unit if the type is a
5531 controlled type with an overriding Initialize procedure.
5532 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5533 checking when the parent of a dereference is a selected component and
5534 the name has not been analyzed.
5536 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5537 prefixes that are invalid explicit dereferences of remote
5538 access-to-class-wide values, first checking whether the selected
5539 component is a prefixed form of call to a tagged operation.
5540 (Analyze_Call): Remove code that issues an error for limited function
5541 calls in illegal contexts, as we now support all of the contexts that
5542 were forbidden here.
5543 Allow a function call that returns a task.and appears as the
5544 prefix of a selected component.
5545 (Analyze_Reference): Give error message if we try to make a 'Reference
5546 for an object that is atomic/aliased without its type having the
5547 corresponding attribute.
5548 (Analyze_Call): Remove condition checking for attributes to allow
5549 calls to functions with inherently limited results as prefixes of
5550 attributes. Remove related comment about Class attributes.
5551 (Analyze_Selected_Component): If the prefix is a remote type, check
5552 whether this is a prefixed call before reporting an error.
5553 (Complete_Object_Operation): If the controlling formal is an access to
5554 variable reject an actual that is a constant or an access to one.
5555 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5556 primitive operations from base type.
5558 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5560 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5561 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5562 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5563 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5564 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5565 (Analyze_Call): Remove code that issues an error for limited function
5566 calls in illegal contexts, as we now support all of the contexts that
5567 were forbidden here.
5568 New calling sequence for Get_Simple_Init_Val
5569 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5570 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5572 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5573 Ed Schonberg <schonberg@adacore.com>
5574 Robert Dewar <dewar@adacore.com>
5576 * exp_ch2.adb: Minor reformatting.
5577 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5578 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5579 (Expand_Protected_Component): New routine.
5580 (Expand_Protected_Private): Removed.
5581 Add Sure parameter to Note_Possible_Modification calls
5583 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5584 generated subprogram declaration must inherit the overriding indicator
5585 from the instantiation node.
5586 (Validate_Access_Type_Instance): If the designated type of the actual is
5587 a limited view, use the available view in all cases, not only if the
5588 type is an incomplete type.
5589 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5590 and the actual subtype does not exclude null.
5591 (Process_Default): Handle properly abstract formal subprograms.
5592 (Check_Formal_Package_Instance): Handle properly defaulted formal
5593 subprograms in a partially parameterized formal package.
5594 Add Sure parameter to Note_Possible_Modification calls
5595 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5596 actual cannot be limited.
5597 (Collect_Previous_Instances): Generate instance bodies for subprograms
5600 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5602 Add Sure parameter to Note_Possible_Modification calls
5603 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5604 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5605 constant overlaid by variable and issue warning.
5606 Use new Is_Standard_Character_Type predicate
5607 (Analyze_Record_Representation_Clause): Check that the specified
5608 Last_Bit is not less than First_Bit - 1.
5609 (Analyze_Attribute_Definition_Clause, case Address): Check for
5610 self-referential address clause
5612 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5613 detection mechanism when the lhs is a prival.
5614 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5615 assignment of a pointer to protected data, to an object declared
5616 outside of the protected object.
5617 (Analyze_Loop_Statement): Check for unreachable code after loop
5618 Add Sure parameter to Note_Possible_Modication calls
5619 Protect analysis from previous syntax error such as a scope mismatch
5621 (Analyze_Assignment_Statement): The assignment is illegal if the
5622 left-hand is an interface.
5624 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5625 violation of restriction No_Implicit_Conditionals
5626 Add Sure parameter to Note_Possible_Modication calls
5627 Use new Is_Standard_Character_Type predicate
5628 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5629 call as operator. Fixes problems (e.g. validity checking) which
5630 come from the result looking as though it does not come from source).
5631 (Resolve_Call): Check case of name in named parameter if style checks
5633 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5634 from the checking that such calls should not occur from an entry body.
5635 (Resolve_Call): If the return type of an Inline_Always function
5636 requires the secondary stack, create a transient scope for the call
5637 if the body of the function is not available for inlining.
5638 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5639 that are actuals for in-out formals.
5640 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5641 primitive operations from base type.
5642 (Analyze_Selected_Component): If the context is a call to a protected
5643 operation the parent may be an indexed component prior to expansion.
5644 (Resolve_Actuals): If an actual is of a protected subtype, use its
5645 base type to determine whether a conversion to the corresponding record
5647 (Resolve_Short_Circuit): Handle pragma Check
5649 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5650 Use new Is_Standard_Character_Type predicate
5651 (Eval_Relational_Op): Catch more cases of string comparison
5653 2008-04-08 Robert Dewar <dewar@adacore.com>
5654 Gary Dismukes <dismukes@adacore.com>
5656 * s-rident.ads: Add No_Default_Initialization restriction
5659 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5660 (Set_TSS): Handle No_Default_Initialization case
5662 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5663 No_Default_Initialization
5664 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5665 parameters when Normalize_Scalars is active.
5666 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5667 Fix casing error in formal parameter name in call
5668 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5669 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5670 dispatching call on VM targets.
5672 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5673 Thomas Quinot <quinot@adacore.com>
5675 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5676 selected component from an access type's Associated_Final_Chain to
5677 check for the presence of that field, rather than assuming it exists
5678 for all named access types.
5679 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5680 procedure to call at the end of the generated cleanup procedure.
5681 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5682 and an At_End_Proc already exists in the handled sequence of statements
5683 for which cleanup actions are being expanded, the original cleanup
5684 action must be preserved.
5686 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5687 Ed Schonberg <schonberg@adacore.com>
5688 Robert Dewar <dewar@adacore.com>
5689 Gary Dismukes <dismukes@adacore.com>
5691 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5692 Build_Unprotected_Subprogram_Body): Generate debug info for
5693 declarations related to the handling of private data in task and
5695 (Debug_Private_Data_Declarations): New subprogram.
5696 (Install_Private_Data_Declarations): Remove all debug info flagging.
5697 This is now done by Debug_Private_Data_Declarations at the correct
5699 (Build_Simple_Entry_Call): If the task name is a function call, expand
5700 the prefix into an object declaration, and make the surrounding block a
5702 (Build_Master_Entity): An internal block is a master if it wraps a call.
5703 Code reformatting, update comments. Code clean up.
5704 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5705 (Replicate_Entry_Formals): If the formal is an access parameter or
5706 anonymous access to subprogram, copy the original tree to create new
5707 entities for the formals of the subprogram.
5708 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5709 for tasks to store the value passed using pragma Relative_Deadline.
5710 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5711 run-time call to create a task.
5712 (Build_Wrapper_Spec): If the controlling argument of the interface
5713 operation is an access parameter with a non-null indicator, use the
5714 non-null indicator on the wrapper.
5716 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5717 present, which it may not be in the case where the type entity is an
5718 incomplete view brought in by a limited with.
5719 (Analyze_Task_Type): Only retrieve the full view when present, which it
5720 may not be in the case where the type entity is an incomplete view brought
5721 in by a limited with.
5722 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5723 private components of a protected type, to prevent the generation of freeze
5724 nodes for which there is no proper scope of elaboration.
5726 * exp_util.ads, exp_util.adb
5727 (Remove_Side_Effects): If the expression is a function call that returns a
5728 task, expand into a declaration to invoke the build_in_place machinery.
5729 (Find_Protection_Object): New routine.
5730 (Remove_Side_Effects): Also make a copy of the value
5731 for attributes whose result is of an elementary type.
5732 (Silly_Boolean_Array_Not_Test): New procedure
5733 (Silly_Boolean_Array_Xor_Test): New procedure
5734 (Is_Volatile_Reference): New function
5735 (Remove_Side_Effects): Use Is_Volatile_Reference
5736 (Possible_Bit_Aligned_Component): Handle slice case properly
5738 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5739 case test to Exp_Util
5740 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5742 2008-04-08 Thomas Quinot <quinot@adacore.com>
5744 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5746 (Add_RACW_Features): When processing an RACW in another unit than the
5747 main unit, set Body_Decls to No_List to indicate that the bodies of
5748 the type's TSS must not be generated.
5749 (GARLIC_Support.Add_RACW_Read_Attribute,
5750 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5751 Body_Decls is No_List.
5752 (PolyORB_Support.Add_RACW_Read_Attribute,
5753 PolyORB_Support.Add_RACW_Write_Attribute,
5754 PolyORB_Support.Add_RACW_From_Any,
5755 PolyORB_Support.Add_RACW_To_Any,
5756 PolyORB_Support.Add_RACW_TypeCode): Same.
5757 (Transmit_As_Unconstrained): New function.
5758 (Build_Ordered_Parameters_List): Use the above to order parameters.
5759 (GARLIC_Support.Build_General_Calling_Stubs):
5760 Use the above to determine which parameters to unmarshall using 'Input
5761 at the point where their temporary is declared (as opposed to later on
5763 (PolyORB_Support.Build_General_Calling_Stubs):
5764 Use the above to determine which parameters to unmarshall using From_Any
5765 at the point where their temporary is declared (as opposed to later on
5766 with an assignment).
5768 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5770 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5771 an Input function for an access type, do not perform default
5772 initialization on the local variable that receives the value, to
5773 prevent spurious warnings when the type is null-excluding.
5775 2008-04-08 Robert Dewar <dewar@adacore.com>
5776 Ed Schonberg <schonberg@adacore.com>
5778 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5780 (Size_Known): Generic formal scalar types have known at compile
5781 time size, so remove check.
5782 Fix casing error in formal parameter name in call
5783 (Freeze_Subprogram): If the subprogram is a user-defined operator,
5784 recheck its overriding indication.
5786 2008-04-08 Vincent Celier <celier@adacore.com>
5788 * gnat1drv.adb: Send all messages indicating an error to standard error
5790 2008-04-08 Robert Dewar <dewar@adacore.com>
5792 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5793 (List_Applicable_Restrictions): Do not list existing restrictions
5795 2008-04-08 Thomas Quinot <quinot@adacore.com>
5797 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5798 add a pointer to generic sockets literature
5799 do not mention that the given example is "typical" usage.
5800 Remove obsolete comment about multicast not being supported on Windows.
5801 (Connect_Socket): Make Server mode IN rather than IN OUT
5802 since this formal is never modified.
5804 2008-04-08 Robert Dewar <dewar@adacore.com>
5806 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5807 the declaration for some different entity.
5808 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5809 list is precent (following the parent subtype indication), display
5810 appropriate "and" keyword.
5812 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5813 Remove unnecessary calls to Init_Size_Align and Init_Esize.
5814 Add notes on use of Parent field of an Itype
5816 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5817 Robert Dewar <dewar@adacore.com>
5818 Gary Dismukes <dismukes@adacore.com>
5820 * lib-xref.adb (Is_On_LHS): Remove dead code
5821 (Output_Overriden_Op): If the overridden operation is itself inherited,
5822 list the ancestor operation, which is the one whose body or absstract
5823 specification is actually being overridden. For source navigation
5826 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5827 operation is primitive for the type.
5828 (Declare_Inherited_Private_Subprograms): If the new operation overrides
5829 an inherited private subprogram, set properly the Overridden_Operation
5830 attribute, for better cross-reference information.
5831 (Analyze_Package_Specification): Do late analysis of spec PPCs
5832 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5833 properly the full view and underlying full views of a private type in a
5834 child unit, whose full view is derived from a private type in a parent
5835 unit, and whose own full view becomes visible in the child body.
5837 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5838 primitive operation after the type has been frozen, add an explicit
5839 reference to the type and the operation, because other primitive
5840 references have been emitted already.
5841 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5842 dispatching call on VM targets.
5844 2008-04-08 Vincent Celier <celier@adacore.com>
5845 Thomas Quinot <quinot@adacore.com>
5847 * make.adb: (Gnatmake_Called): Remove, no longer necessary
5848 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5849 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5850 (Insert_Project_Sources): Take into account index in multi-unit source
5852 After building a library project, delete all temporary files.
5853 (Initialize): Reset current output after parsing project file.
5854 (Collect_Arguments_And_Compile): Never insert in the queue the sources
5855 of library projects that are externally built.
5856 Put file name in error and inform messages if -df is used
5857 (Display): If invoked with -d7, do not display path names, but only
5860 * makeutl.ads (Path_Or_File_Name): New function
5861 (Path_Or_File_Name): New function
5863 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5865 * Make-lang.in: Disable warnings during first stage of bootstrap
5867 Update dependencies.
5869 2008-04-08 Vincent Celier <celier@adacore.com>
5871 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5872 case to decide if ALI object file is included in library.
5873 (Build_Library): Never attempt to build a library if the project is
5876 2008-04-08 Thomas Quinot <quinot@adacore.com>
5878 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5879 (No_List) is defined to return Empty.
5881 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5883 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5886 (Read_Default_Search_Dirs): Do not consider spaces as path separators
5887 because spaces may be part of legal paths.
5889 2008-04-08 Robert Dewar <dewar@adacore.com>
5891 * par-ch11.adb (P_Exception_Handler): Check indentation level for
5894 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5896 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5897 in a type declaration, if this is not an interface declaration or
5898 private type extension.
5900 2008-04-08 Vincent Celier <celier@adacore.com>
5902 * prj-util.adb (Executable_Of): New String parameter Language. When
5903 Ada_Main is False and Language is not empty, attempt to remove the body
5904 suffix or the spec suffix of the language to get the base of the
5905 executable file name.
5906 (Put): New Boolean parameter Lower_Case, defauilted to False. When
5907 Lower_Case is True, put the value in lower case in the name list.
5908 (Executable_Of): If there is no executable suffix in the configuration,
5909 then do not modify Executable_Extension_On_Target.
5911 * prj-util.ads (Executable_Of): New String parameter Language,
5912 defaulted to the empty string.
5913 (Put): New Boolean parameter Lower_Case, defauilted to False
5915 2008-04-08 Robert Dewar <dewar@adacore.com>
5917 * scng.adb (Scan_Identifier): Handle case of identifier starting with
5918 wide character using UTF-8 encoding.
5920 2008-04-08 Javier Miranda <miranda@adacore.com>
5922 * sem.adb (Analyze): Consider case in which we analyze an empty node
5923 that was generated by a call to a runtime function that is not
5924 available under the configurable runtime.
5926 * sem.ads (Inside_Freezing_Actions): New flag.
5927 (Save_Check_Policy_List): New field in scope stack entry
5929 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5930 Robert Dewar <dewar@adacore.com>
5932 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5933 the ancestor part of an extension aggregate for a limited type.
5934 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5935 enumeration index bounds.
5936 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5937 when array is too short.
5938 (Check_Expr_OK_In_Limited_Aggregate): Move function
5939 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5941 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5942 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5943 component associations.
5944 (Check_Non_Limited_Type): Moved to outer level and renamed.
5945 (Resolve_Record_Aggregate): In an extension aggregate, an association
5946 with a box initialization can only designate a component of the
5947 extension, not a component inherited from the given ancestor
5949 * sem_case.adb: Use new Is_Standard_Character_Type predicate
5951 2008-04-08 Robert Dewar <dewar@adacore.com>
5953 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5955 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5956 Properly handle case where Aft > Scale and input number is less than
5959 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5961 * s-stoele.ads, s-soflin.ads: Move the location of
5962 Dummy_Communication_Block from System.Storage_Elements to
5965 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5966 emulate Communication_Block in certain scenarios.
5968 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5970 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5972 Add new subtype S_WWC, unchecked conversion routines From_WWC and
5974 (I_WWC, O_WWC): New routines for input and output of
5975 Wide_Wide_Character.
5977 2008-04-08 Robert Dewar <dewar@adacore.com>
5979 * stringt.adb (Write_String_Table_Entry): Handle wide characters
5982 2008-04-08 Robert Dewar <dewar@adacore.com>
5984 * styleg.adb (Check_Comment): Allow special char after -- in
5985 non-end-of-line case
5987 2008-04-08 Robert Dewar <dewar@adacore.com>
5989 * stylesw.adb: Implement -gnaty + - y options
5990 (Set_GNAT_Style_Check_Options): Includ I in style check string
5992 * stylesw.ads: Add comments for new style switch options
5994 2008-04-08 Sergey Rybin <rybin@adacore.com>
5996 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5997 to the set of the GNAT components needed by ASIS.
5999 2008-04-08 Bob Duff <duff@adacore.com>
6001 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6003 2008-04-08 Tristan Gingold <gingold@adacore.com>
6005 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6006 Improve error message generation.
6008 2008-04-08 Vincent Celier <celier@adacore.com>
6010 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6011 Use_Error, as specified in the RM. Check if directory is open and raise
6012 Use_Error if it is not.
6014 2008-04-08 Vincent Celier <celier@adacore.com>
6015 Robert Dewar <dewar@adacore.com>
6017 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6018 AAMP_On_Target is set.
6020 * vms_data.ads: Add NOxxx to style check switch list
6021 Add entry COMPONENTS for -gnatVe
6022 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6024 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6025 Add qualifiers for gnatmetric coupling options
6026 Add note that -gnata enables all checks
6027 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6028 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6029 New warning flag -gnatw.e
6031 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6032 Add entry for -gnatyN (forgotten before)
6033 Line for new warning switch -gnatw.p
6034 New warning flag -gnatw.e
6036 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6037 Document -gnaty - + y
6038 Replace occurences of "package specification" with "package spec"
6039 Define preprocessing symbols in documentation of gnatprep
6040 Clarify reason for distinguishing overflow checking
6041 Add documentation for project-aware tool switches -eL and --subdirs=
6042 Complete list of configuration pragmas
6043 Specify that, even when gnatmake switch -x is used, mains on the command
6044 line need to be sources of project files.
6045 Editing of gnatcheck/gnatmetric doc.
6046 Add documentation for -gnatw.p/-gnatw.P
6047 Add missing documentation for -fno-inline-functions.
6048 Add documentation for -gnatw.e
6050 * gnat_rm.texi: Add documentation for No_Default_Initialization
6051 Replace occurences of "package specification" with "package spec"
6052 Document use of * in Warnings Off string
6053 Update documentation of alignment/component clauses.
6054 Add documentation for Invalid_Value
6055 Document new consistency rule for Optimize_Alignment
6056 Add documentation for Precondition and Postcondition pragmas
6057 Add documentation for Check and Check_Policy pragmas
6058 Document new Enum_Val attribute
6059 Remove requirement for static string in pragma Assert
6060 Add documentation on GNAT.Time_Stamp
6062 * ug_words: add entry for -gnatVe
6063 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6064 Add entry for -gnatw.e
6066 * debug.adb: Add missing documentation for d.a flag
6067 Document new -gnatd.a switch.
6068 Add documentation for new gnatmake debug switch -df
6070 2008-04-08 Thomas Quinot <quinot@adacore.com>
6072 * gen-soccon.c: Bump year in copyright notices.
6074 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6076 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6078 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6081 2008-04-08 Robert Dewar <dewar@adacore.com>
6082 Bob Duff <duff@adacore.com>
6084 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6085 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6087 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6089 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6091 * g-trasym.ads: Minor comment improvements
6093 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6095 * a-sequio.ads, a-direio.ads: improve message for tagged type
6097 * a-strunb.ads: Minor reformatting
6099 * a-tifiio.adb: Minor reformatting
6101 * atree.adb (Fix_Parents): Use clearer names for formals
6102 Cleanup and simplify code
6103 Use named notation in calls
6105 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6108 * uintp.adb: Used named notation for some confusing calls
6110 * bindusg.adb: Minor change in one line of output
6112 * cstand.adb: Minor reformatting of src representation of Standard
6114 * a-assert.ads: Add comment.
6116 * g-decstr.adb: Fix bad indentation
6118 * expander.ads, expander.adb: Code clean up.
6120 * sem_dist.ads: Minor comment improvement
6122 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6123 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6125 * i-cstrin.adb: Fix casing error in formal parameter name in call
6127 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6129 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6130 mentioned in limited_with_clauses to do create semantic dependencies
6131 even though they appear in the ali file.
6133 2008-04-08 Emmanuel Briot <briot@adacore.com>
6135 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6137 (Get_Configuration): New subprogram.
6139 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6140 These optional parameters help preserve the casing of the project's name
6141 when pretty-printing.
6143 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6144 Arnaud Charlet <charlet@adacore.com>
6146 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6147 then use __gnat_set_exit_status to report the returned status code.
6149 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6150 messages on .NET, since some constructs of the language are not
6153 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6154 .NET linker, gnatlink now concatenate all .il files and pass this to
6157 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6158 Xavier Grave <grave@ipno.in2p3.fr>
6160 * Makefile.in: Add make ifeq define for mips/mipsel support.
6161 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6162 system-linux-mips.ads: New files.
6164 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6166 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6167 detect systems using GNU libc.
6173 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6175 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6176 constant constant for sysconf call.
6177 (bit_field): New packed boolean type used by cpu_set_t.
6178 (cpu_set_t): New type corresponding to the C type with
6179 the same name. Note that on the Ada side we use a bit
6180 field array for the affinity mask. There is not need
6181 for the C macro for setting individual bit.
6182 (pthread_setaffinity_np): New imported routine.
6183 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6186 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6188 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6190 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6192 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6193 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6194 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6195 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6196 Return by Depressed Stack Pointer.
6198 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6200 * decl.c (is_variable_size): Do not unconditionally return false
6201 on non-strict alignment platforms.
6203 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6205 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6206 used to process all the variants of the specified type.
6207 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6208 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6209 (rest_of_type_decl_compilation): Likewise.
6210 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6212 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6214 * gigi.h (insert_block): Kill.
6215 * utils.c (insert_block): Kill.
6217 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6219 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6220 type has self-referential size, get the size from the initializing
6221 expression directly if it is also a constant whose nominal type
6222 has self-referential size.
6224 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6227 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6230 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6231 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6233 2008-04-01 Andreas Jaeger <aj@suse.de>
6235 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6238 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6240 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6241 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6242 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6243 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6244 gnatlink.adb, gnatmem.adb, gprep.adb,
6245 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6246 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6247 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6248 lib-xref.ads, lib.adb, link.c, live.ads,
6249 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6250 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6251 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6252 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6253 namet.adb, namet.h, nlists.adb, nlists.ads,
6254 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6255 osint-c.ads, osint.adb, osint.ads, output.ads,
6256 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6257 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6258 par-endh.adb, par-labl.adb, par-prag.adb,
6259 par-sync.adb, par-tchk.adb, par-util.adb,
6260 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6261 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6262 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6263 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6265 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6267 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6268 size if it has overflowed.
6270 2008-03-31 Olivier Hainque <hainque@adacore.com>
6271 Eric Botcazou <ebotcazou@adacore.com>
6273 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6274 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6276 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6278 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6279 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6280 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6281 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6282 exp_tss.ads, exp_util.adb, exp_util.ads,
6283 exp_vfpt.adb, freeze.adb, freeze.ads,
6284 frontend.adb, g-alleve.adb, g-altcon.adb,
6285 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6286 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6287 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6288 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6289 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6290 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6291 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6292 g-except.ads, g-expect.ads, g-heasor.adb,
6293 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6294 g-locfil.ads, g-md5.adb, g-md5.ads,
6295 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6296 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6297 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6298 g-soccon-aix.ads, g-soccon-darwin.ads,
6299 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6300 g-soccon-hpux.ads, g-soccon-irix.ads,
6301 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6302 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6303 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6304 g-soccon-solaris.ads, g-soccon-tru64.ads,
6305 g-soccon-vms.ads, g-soccon-vxworks.ads,
6306 g-soccon.ads, g-socket.adb, g-socket.ads,
6307 g-socthi-mingw.adb, g-socthi-vms.adb,
6308 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6309 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6310 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6313 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6315 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6316 if the procedure is imported.
6318 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6320 * adaint.c: Fix warnings.
6322 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6324 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6326 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6328 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6329 Fix problem of status check for null file
6331 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6333 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6334 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6335 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6336 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6337 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6340 2008-03-26 Thomas Quinot <quinot@adacore.com>
6343 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6344 Get_Socket_Option): Add support for Receive_Packet_Info.
6346 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6347 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6348 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6349 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6350 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6351 new constants SO_REUSEPORT and IP_PKTINFO
6353 2008-03-26 Robert Dewar <dewar@adacore.com>
6355 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6356 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6357 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6358 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6359 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6360 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6361 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6362 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6363 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6364 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6365 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6366 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6367 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6368 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6369 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6370 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6371 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6372 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6373 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6374 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6375 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6376 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6377 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6378 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6379 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6380 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6381 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6382 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6383 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6384 s-tasloc.adb: Minor reformatting.
6386 Remove "used for" sections from comments.
6388 2008-03-26 Robert Dewar <dewar@adacore.com>
6390 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6391 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6392 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6393 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6394 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6395 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6396 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6397 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6398 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6399 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6400 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6401 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6402 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6403 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6404 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6405 double spaced if it fits on one line and otherwise single spaced.
6407 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6409 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6410 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6411 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6412 or task info if the thread could not be created.
6414 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6416 * gnatvsn.ads (Library_Version): Bump to 4.4.
6417 (Current_Year): Bump to 2008.
6419 2008-03-26 Robert Dewar <dewar@adacore.com>
6421 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6423 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6425 * debug.adb: Add debug flags d.r and d.v
6426 Add debug flag .T (Optimize_Alignment (Time))
6427 Add debug flag .S (Optimize_Alignment (Space))
6429 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6430 depending on setting of relevant debug flags.
6431 Replace use of Warnings_Off by Has_Warnings_Off
6432 (Freeze_Entity): In circuit for warning on suspicious convention
6433 actuals, do not give warning if subprogram has same entity as formal
6434 type, or if subprogram does not come from source.
6435 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6436 if Optimize_Alignment set to Space.
6438 * frontend.adb: Add call to Sem_Warn.Initialize
6439 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6440 Reset Optimize_Alignment mode from debug switches .S and .T
6442 * layout.adb (Layout_Composite_Object): Rewritten for
6443 Optimize_Aligment pragma.
6445 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6448 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6450 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6451 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6452 this change. Add entry for pragma Optimize_Alignment
6454 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6455 (Pragma_Identifier (..
6456 instead, adjustments throughout to accomodate this change.
6457 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6458 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6459 Add implementation of pragma Optimize_Alignment
6461 2008-03-26 Vincent Celier <celier@adacore.com>
6463 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6464 Improve memory usage to avoid use of stack.
6466 2008-03-26 Robert Dewar <dewar@adacore.com>
6468 * a-teioed.ads: Correct value of Default_Fill
6470 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6472 2008-03-26 Robert Dewar <dewar@adacore.com>
6474 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6475 with Current_Output (introduce Self).
6477 2008-03-26 Robert Dewar <dewar@adacore.com>
6479 * checks.adb (Ensure_Valid): Capture valid status if possible
6482 2008-03-26 Robert Dewar <dewar@adacore.com>
6484 * stand.ads: Deal with reordering of package standard declarations
6486 * cstand.adb: Put package Standard declarations in proper order
6488 2008-03-26 Robert Dewar <dewar@adacore.com>
6490 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6491 (Pragma_Identifier (.. instead.
6492 (OK_To_Reorder_Components): New flag
6493 (Has_Entries): Code cleanup.
6494 (Warnings_Off_Used): New flag
6495 (Warnings_Off_Used_Unmodified): New flag
6496 (Warnings_Off_Used_Unreferenced): New flag
6497 (Has_Warnings_Off): New function
6498 (Has_Unmodified): New function
6499 (Has_Unreferenced): New function
6500 (Is_Trivial_Subprogram): New flag
6501 (Is_Static_Dispatch_Table_Entity): New attribute.
6502 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6503 (more consistent with other similar names)
6504 (Access_Subprogram_Type): New classification function
6506 2008-03-26 Robert Dewar <dewar@adacore.com>
6508 * errout.ads: Document new !! insertion sequence
6510 * errout.adb (N_Pragma): Chars field removed, use Chars
6511 (Pragma_Identifier (.. instead.
6512 Replace use of Warnings_Off by Has_Warnings_Off
6513 (Error_Msg_Internal): Don't delete warning ending in !!
6515 2008-03-26 Robert Dewar <dewar@adacore.com>
6517 * par.adb (Check_No_Right_Paren): Removed no longer used
6519 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6520 (Pragma_Identifier (.. instead.
6522 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6524 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6525 par-ch4.adb: Minor improvements in error recovery and messages.
6527 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6530 * par-ch9.adb: Minor improvements in error recovery and messages
6531 (P_Protected): Better error recovery for "protected type x;"
6533 * par-util.adb: Minor improvements in error recovery and messages
6534 (Check_No_Right_Paren): Removed no longer used
6536 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6538 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6539 that the prefix of an attribute is the type of the aggregate being
6542 2008-03-26 Javier Miranda <miranda@adacore.com>
6543 Robert Dewar <dewar@adacore.com>
6545 * exp_attr.adb (N_Pragma): Chars field removed.
6546 (Expand_N_Attribute_Reference): If the designated type associated with
6547 attribute 'Unrestricted_Access is a subprogram entity then replace it
6548 by an E_Subprogram_Type itype.
6549 Implement attribute Old
6551 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6553 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6555 New_Internal_Entity by call to Create_Itype to centralize calls
6556 building itypes, ad propagate the convention of the designated
6557 subprogram. In addition, disable the machinery cleaning constant
6558 indications from all entities in current scope when 'Unrestricted_Access
6559 corresponds with a node initializing a dispatch table slot.
6560 (Analyze_Attribute): Parameterless attributes returning a string or a
6561 type will not be called with improper arguments, so we can remove junk
6562 code that was dealing with this case.
6563 Implement attribute Old
6565 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6566 Add entry for pragma Optimize_Alignment
6567 New standard names Sync and Synchronize
6569 2008-03-26 Robert Dewar <dewar@adacore.com>
6570 Arnaud Charlet <charlet@adacore.com>
6572 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6574 (No_Exception_Propagation_Active): New function.
6575 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6576 Update comments, and review all uses of No_Exception_Propagation, which
6577 are now correct and in sync with what gigi expects.
6579 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6581 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6582 Update comments, and review all uses of No_Exception_Propagation, which
6583 are now correct and in sync with what gigi expects.
6585 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6587 * sem_ch3.adb (Access_Definition): If the access type is the return
6588 result of a protected function, create an itype reference for it
6589 because usage will be in an inner scope from the point of declaration.
6590 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6591 OK_To_Reorder_Components.
6592 (Make_Index): If an overloaded range includes a universal integer
6593 interpretation, resolve to Standard.Integer.
6594 (Analyze_Subtype_Indication): Copy Convention to subtype
6595 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6596 limited an synchronized progenitors in type declaration and private
6597 extension declarations.
6599 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6600 protected subprogram body, determine proper scope from subprogram
6603 2008-03-26 Robert Dewar <dewar@adacore.com>
6605 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6608 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6610 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6611 of a heap allocator for a limited unconstrained function return when
6612 resstriction No_Allocators is active.
6613 (Analyze_Allocator): The restriction No_Allocators is now only checked
6614 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6616 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6617 of a heap allocator for a limited unconstrained function return when
6618 resstriction No_Allocators is active.
6619 (Analyze_Allocator): The restriction No_Allocators is now only checked
6620 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6621 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6622 operands are fixed-point types, the universal_fixed predefined operation
6623 is used, regardless of whether the operand type (s) have a primitive
6624 operation of the same name.
6626 2008-03-26 Javier Miranda <miranda@adacore.com>
6628 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6629 Is_Static_Dispatch_Table
6630 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6631 to Exchange_Declarations to exchange the private and full-view. Bug
6632 found working in this issue.
6633 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6634 to the subprogram pointer type.
6635 (Make_Secondary_DT): Replace generation of Prim'Address by
6636 Address (Prim'Unrestricted_Access)
6637 (Make_DT): Replace generation of Prim'Address by
6638 Address (Prim'Unrestricted_Access)
6639 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6640 simple call form for single entry.
6641 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6642 tables of predefined primitives).
6643 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6644 predefined primitives.
6645 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6646 access to dispatch tables containing predefined primitives.
6648 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6649 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6651 (Register_Predefined_DT_Entry): Updated to handle the new contents
6652 of attribute Access_Disp_Table (pointers to dispatch tables containing
6653 predefined primitives).
6655 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6657 (Find_Interface_ADT): Updated to skip the new contents of attribute
6658 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6661 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6663 (Set_Convention): Use new function Is_Access_Subprogram_Type
6664 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6665 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6668 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6669 expanded code avoiding calls to Build_Predef_Prims.
6670 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6671 call to Build_Get_Predefined_Prim_Op_Address.
6673 2008-03-26 Javier Miranda <miranda@adacore.com>
6675 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6676 subprogram Corresponding_Runtime_Package to know the runtime package
6677 that will provide support to a given protected type.
6679 * exp_ch9.adb (Add_Private_Declarations,
6680 Build_Protected_Subprogram_Call,
6681 Build_Protected_Entry, Build_Simple_Entry_Call,
6682 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6683 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6684 cleanup using the new centralized subprogram Corresponding_Runtime
6685 Package to know the runtime package that provides support to
6686 a given protected type.
6688 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6690 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6691 assignment is within the initialization procedure for a packed array,
6692 and Initialize_Scalars is enabled, compile right-hand side with checks
6693 off, because the value is purposely out of range.
6695 2008-03-26 Vincent Celier <celier@adacore.com>
6697 * gnatcmd.adb: Add processing for GNAT SYNC
6699 * vms_conv.ads: (Command_Type): Add command Sync
6701 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6703 * vms_data.ads: Add entries for -gnatw.w
6704 Add qualifier for gnatstub --header-file option
6705 Add switches for GNAT SYNC
6707 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6708 (Add_Package_Name): New procedure
6709 (Package_Name_List): New function
6710 (Initialize): Add known package names to the list
6711 (Register_New_Package): Add the new package name to the list
6713 2008-03-26 Robert Dewar <dewar@adacore.com>
6715 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6716 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6717 Raise_Exception by "raise with" construct.
6719 2008-03-26 Pascal Obry <obry@adacore.com>
6721 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6722 supported platforms.
6724 * Makefile.rtl: Add g-sercom.o.
6726 * impunit.adb: Add g-sercom.adb.
6728 * s-crtl.ads (open): New routine.
6732 * s-osinte-mingw.ads (BYTE): New type.
6734 (OVERLAPPED): Likewise.
6735 (GENERIC_READ): New constant.
6736 (GENERIC_WRITE): Likewise.
6737 (OPEN_EXISTING): Likewise.
6738 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6740 (CreateFile): New routine.
6741 (WriteFile): Likewise.
6742 (ReadFile): Likewise.
6743 (CloseHandle): Move next to the other file oriented routines.
6745 * g-sercom.ads: New unit.
6747 * g-sercom.adb: Default implementation, calls to this unit will raise
6748 a program error exception.
6750 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6751 GNU/Linux implementations.
6753 2008-03-26 Robert Dewar <dewar@adacore.com>
6755 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6757 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6758 unchecked conversion for different conventions only for subprogram
6761 2008-03-26 Vincent Celier <celier@adacore.com>
6763 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6764 to check if the specified object file is correct.
6766 2008-03-26 Thomas Quinot <quinot@adacore.com>
6768 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6769 Comes_From_Source to exclude primitives from being checked. We want to
6770 exclude predefined primitives only, so use the appropriate specific
6771 predicate. Also, flag a formal parameter of an anonymous
6772 access-to-subprogram type as illegal for a primitive operation of a
6773 remote access to class-wide type.
6775 2008-03-26 Vincent Celier <celier@adacore.com>
6777 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6778 known, check if it may be a missspelling of a known package name. In
6779 not verbose, not mode, issue warnings only if the package name is a
6780 possible misspelling.
6781 In verbose mode, always issue a warning for a not known package name,
6782 plus a warning if the name is a misspelling of a known package name.
6784 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6785 limited withs or limited withs are parse during one call.
6786 (Parse_Single_Project): Post parse context clause in two passes: non
6787 limited withs before current project and limited withs after current
6790 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6791 project with the name With_Name, even if it is only extended indirectly.
6792 (Recursive_Process): Process projects in order: first single withs, then
6793 current project, then limited withs.
6795 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6796 project with the name With_Name, even if it is only extended indirectly.
6798 2008-03-26 Robert Dewar <dewar@adacore.com>
6800 * scn.adb (Initialize_Scanner): Format messages belong on standard error
6802 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6804 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6805 a generic subprogram that is imported, do not attempt to compile
6808 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6809 imported, do not generate a raise_program_error for the non-existent
6811 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6812 perform minimal name resolution on the generic to avoid spurious
6814 (Find_Actual_Type): the designated type of the actual in a child unit
6815 may be declared in a parent unit without being an actual.
6817 2008-03-26 Robert Dewar <dewar@adacore.com>
6819 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6820 * sinfo.ads, sinfo.adb (From_At_End): New flag
6822 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6824 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6825 operations that have an interface parameter.
6826 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6827 Don't treat No_Return call as raise.
6829 * sem_disp.adb (Check_Dispatching_Operations): apply check for
6830 non-primitive interface primitives to access parameters, not to all
6831 parameters of an access type.
6833 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6835 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6836 declarations of a parent unit are made visible when compiling a child
6837 instance, the parent is not a hidden open scope, even though it may
6838 contain other pending instance.
6840 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6841 hidden open scope for some child instance, it does affect the
6842 visibility status of other stach entries.
6843 (Analyze_Object_Renaming): Check that a class-wide object cannot be
6844 renamed as an object of a specific type.
6846 2008-03-26 Robert Dewar <dewar@adacore.com>
6848 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6849 recursion and raise SE directly.
6850 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6851 set for formal type for IN mode parameter.
6853 2008-03-26 Robert Dewar <dewar@adacore.com>
6855 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6856 (Initialize): New procedure
6857 (Output_Warnings_Off_Warnings): New procedure
6858 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6859 (Output_Non_Modifed_In_Out_Warnings): Ditto
6860 (Warn_On_Unreferenced_Entity): Ditto
6862 2008-03-26 Vincent Celier <celier@adacore.com>
6864 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6867 2008-03-26 Matthew Heaney <heaney@adacore.com>
6869 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6870 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6871 Marked with clauses as private, and controlled operations as overriding
6873 2008-03-26 Robert Dewar <dewar@adacore.com>
6875 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6877 2008-03-26 Robert Dewar <dewar@adacore.com>
6879 * back_end.adb, back_end.ads: Minor reformatting
6881 * bindgen.adb: Minor clarification of comments
6883 * fname.ads: Minor comment fixes
6885 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6886 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6888 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6889 xsnames.adb: Remove warnings off pragma no longer needed
6891 * a-catizo.ads, a-calari.ads, a-calfor.adb,
6892 a-calfor.ads: Fix header.
6894 2008-03-26 Tristan Gingold <gingold@adacore.com>
6896 * init.c: Do not adjust pc for HPARITH on alpha/vms.
6898 2008-03-26 Robert Dewar <dewar@adacore.com>
6900 * lib-xref.adb: (OK_To_Set_Reference): New function
6901 (Generate_Reference): Don't set referenced from occurrence in Warnings,
6902 Unmodified, or Unreferenced pragma
6904 2008-03-26 Robert Dewar <dewar@adacore.com>
6906 * alloc.ads: Add entries for Warnings_Off_Pragmas table
6908 2008-03-26 GNAT Script <nobody@adacore.com>
6910 * Make-lang.in: Makefile automatically updated
6912 2008-03-26 Robert Dewar <dewar@adacore.com>
6914 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6915 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6916 removed, use Chars (Pragma_Identifier (.. instead, adjustments
6917 throughout to accomodate this change.
6919 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6921 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6922 Einfo.Set_Needs_Debug_Info)
6924 2008-03-26 Robert Dewar <dewar@adacore.com>
6926 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6927 Add description for the new gnatstub option '--header-file'
6928 clarification of -gnatwz/-gnatwZ
6929 Add a "Irix-Specific Considerations" section to document the need to
6930 set LD_LIBRARY_PATH when using the default shared runtime library.
6931 Added documentation for both gcov and gprof.
6933 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6934 messages that are not suppressed when clients are compiled.
6935 Add documentation of s-pooglo s-pooloc
6936 Document the new GNAT.Serial_Communications API.
6937 Add documentation for 'Old attribute
6938 Add description of pragma Optimize_Alignment
6940 * ug_words: Add entries for -gnatw.w -gnatw.W
6942 * usage.adb: Add line for -gnatw.w (warn on warnings off)
6944 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
6947 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
6949 * decl.c (maybe_pad_type): Avoid padding an integral type when
6950 bumping its alignment is sufficient.
6952 2008-03-25 Arnaud Charlet <charlet@adacore.com>
6954 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6955 Fix wrong formatting (lines too long)
6957 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6959 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6960 a-calend-vms.adb, a-calend.adb, a-calend.ads,
6961 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6962 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6963 a-cohama.ads, a-comlin.ads, a-coorse.adb,
6964 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6965 a-except-2005.ads, a-except.adb, a-except.ads,
6966 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6967 a-exextr.adb, a-filico.ads, a-finali.ads,
6968 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6969 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6970 a-sequio.ads, a-strbou.ads, a-strfix.adb,
6971 checks.adb, exp_ch3.adb, exp_ch4.adb,
6972 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6973 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6974 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6975 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6976 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6978 2008-03-24 Robert Dewar <dewar@adacore.com>
6980 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6981 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6982 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6983 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6984 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6985 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6986 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6987 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6988 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6989 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6990 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6991 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6992 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6993 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6994 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6995 double spaced if it fits on one line and otherwise single spaced.
6997 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6999 PR documentation/15479
7000 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7001 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7002 (doc/gnat_ugn.info): Renamed from ...
7003 (doc/gnat_ugn_unw.info): ... this.
7004 (doc/gnat_ugn.dvi): Renamed from ...
7005 (doc/gnat_ugn_unw.dvi): ... this.
7006 (doc/gnat_ugn.pdf): Renamed from ...
7007 (doc/gnat_ugn_unw.pdf): ... this.
7008 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7010 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7011 unconditionally to gnat_ugn.info. Fix cross references to the
7012 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7013 and GNU make manuals to be proper texinfo links.
7014 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7016 2008-03-21 Olivier Hainque <hainque@adacore.com>
7018 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7019 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7021 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7023 * trans.c (addressable_p): Add notes on addressability issues.
7025 2008-03-21 Olivier Hainque <hainque@adacore.com>
7026 Ed Schonberg <schonberg@adacore.com>
7028 * trans.c (addressable_p): Accept COND_EXPR when both arms
7030 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7031 (call_to_gnu): Do not use name reference in the error message
7032 for a misaligned by_reference_parameter. The actual may be a
7035 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7037 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7039 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7041 * gnat_rm.texi (Implementation Defined Characteristics)
7042 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7044 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7045 (Switches for gnatchop, Installing a library): Likewise.
7047 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7049 * trans.c (emit_range_check): Do not emit the check if the base type
7050 of the expression is the type against which its range must be checked.
7052 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7054 * decl.c (maybe_pad_type): Use value_factor_p.
7056 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7058 * lang.opt (nostdlib): Move around.
7059 * misc.c (gnat_handle_option): Fix formatting.
7060 (gnat_dwarf_name): Move around.
7061 * trans.c (Case_Statement_to_gnu): Fix formatting.
7062 (gnat_to_gnu): Likewise.
7063 * utils.c (aggregate_type_contains_array_p): Likewise.
7064 (create_subprog_decl): Likewise.
7066 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7068 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7069 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7071 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7073 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7074 BIGGEST_ALIGNMENT when capping the alignment of records with
7075 strict alignment and size clause.
7077 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7079 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7080 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7081 and -Wuninitialized.
7082 (gnat_post_options): Clear warn_unused_parameter.
7084 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7086 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7087 aligned bit-fields, bumping the alignment of the record type if deemed
7089 (value_factor_p): Return false instead of 0.
7091 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7093 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7094 for scalar types with small alignment.
7096 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7098 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7099 from that of the front-end's end label.
7100 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7101 from that of the loop label.
7103 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7105 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7106 comment for the packed array type case.
7107 * utils.c (build_template): Use a loop to strip padding or
7108 containing records for justified modular types.
7110 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7112 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7113 large alignments specified for types.
7114 (validate_alignment): Minor cleanup.
7116 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7118 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7119 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7120 the component for packing, if possible, as well as if a component
7121 size clause is specified.
7122 <E_Record_Subtype>: For an array type used to implement a packed
7123 array, get the component type from the original array type.
7124 Try to get a smaller form of the component for packing, if possible,
7125 as well as if a component size clause is specified.
7126 (round_up_to_align): New function.
7127 (make_packable_type): Add in_record parameter.
7128 For a padding record, preserve the size. If not in_record and the
7129 size is too large for an integral mode, attempt to shrink the size
7130 by lowering the alignment.
7131 Ditch the padding bits of the last component.
7132 Compute sizes and mode manually, and propagate the RM size.
7133 Return a BLKmode record type if its size has shrunk.
7134 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7135 Use Original_Array_Type to retrieve the type in case of an error.
7136 Adjust call to make_packable_type.
7137 (gnat_to_gnu_field): Likewise.
7138 (concat_id_with_name): Minor tweak.
7139 * trans.c (larger_record_type_p): New predicate.
7140 (call_to_gnu): Compute the nominal type of the object only if the
7141 parameter is by-reference. Do the conversion actual type -> nominal
7142 type if the nominal type is a larger record.
7143 (gnat_to_gnu): Do not require integral modes on the source type to
7144 avoid the conversion for types with identical names.
7145 (addressable_p): Add gnu_type parameter. If it is specified, do not
7146 return true if the expression is not addressable in gnu_type.
7147 Adjust recursive calls.
7148 * utils.c (finish_record_type): Remove dead code.
7150 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7153 * decl.c (maybe_pad_type): Avoid padding an integral type when
7154 bumping its alignment is sufficient.
7156 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7158 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7159 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7161 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7162 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7163 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7164 code output strings.
7165 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7166 system-vms_64.ads: Fix typos in ada source code comments.
7167 * sinfo-cn.adb: Remove incomplete sentence.
7169 PR documentation/15479
7170 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7172 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7175 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7177 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7180 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7181 that underlying type is present.
7183 2008-02-26 Tom Tromey <tromey@redhat.com>
7185 * misc.c (internal_error_function): Remove test of
7186 USE_MAPPED_LOCATION.
7187 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7188 (Sloc_to_locus): Remove old location code.
7190 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7192 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7193 `i.e.' by adding comma or `@:' as appropriate.
7194 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7195 plain characters `C', use `@samp{C}'.
7196 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7197 (Krunching Method): Likewise.
7199 * gnat_ugn.texi (Conventions): List environment variables and
7200 metasyntactic variables.
7201 (Compiling Programs): Fix notation of metasyntactic variables.
7202 Add @file where appropriate. Use @file for file extensions,
7204 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7205 instead of @file, @env instead of @code.
7207 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7209 PR documentation/15479
7210 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7211 and `...' with `@dots{}' or `@enddots{}'.
7213 PR documentation/15479
7214 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7215 use @command instead of @code, @option instead of @samp or @code,
7216 @code instead of @var, @samp instead of @file.
7218 PR documentation/15479
7219 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7220 in Makefile rules, by using `&&' rather than `;'.
7222 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7224 PR documentation/15479
7225 * gnat_ugn.texi: In non-code, avoid space before colon.
7226 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7227 (Examples of gnatxref Usage): Use @command{vi} instead of
7229 (Character Set Control): Do not use @code for UTF-8.
7230 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7232 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7234 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7236 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7239 * env.c: Add __rtems__ to if defined.
7240 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7241 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7242 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7243 pragma Convention as required.
7244 * gsocket.h: Make compile in and out of RTS.
7245 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7246 Use g-soccon-rtems.ads.
7247 * g-soccon-rtems.ads, system-rtems.ads: New files.
7249 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7252 * Make-lang.in (gnat1): Add $(GMPLIBS).
7254 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7256 * decl.c (components_to_record): Improve comment.
7258 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7260 * decl.c (components_to_record): Do not reuse the empty union type
7261 if there is a representation clause on the record.
7262 * trans.c (addressable_p): Return true for INTEGER_CST.
7264 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7266 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7267 in pointer arithmetics.
7268 * utils2.c (build_allocator): Likewise.
7270 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7272 * utils.c (build_function_stub): Properly build the call expression.
7274 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7276 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7277 before converting the expression to the type of the object.
7278 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7279 Stabilize constructors for special wrapping types.
7281 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7283 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7284 when necessary. Merge some conditional statements. Update comments.
7285 Rename unchecked_convert_p local variable to suppress_type_conversion.
7286 Do not suppress conversions in the In case.
7287 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7288 into account on non strict-alignment platforms.
7290 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7292 * utils.c (aggregate_type_contains_array_p): New predicate.
7293 (create_field_decl): In a packed record, force byte alignment
7294 for fields without specified position that contain an array.
7296 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7298 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7300 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7303 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7305 (bit_field): New packed boolean type used by cpu_set_t.
7306 (cpu_set_t): New type corresponding to the C type with
7307 the same name. Note that on the Ada side we use a bit
7308 field array for the affinity mask. There is not need
7309 for the C macro for setting individual bit.
7310 (pthread_setaffinity_np): New imported routine.
7312 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7315 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7316 on OpenBSD as is done on other BSD systems.
7319 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7320 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7324 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7328 * init.c (__gnat_error_handler, __gnat_install_handler,
7329 __gnat_init_float): Define for OpenBSD.
7331 * initialize.c (__gnat_initialize): Define for OpenBSD.
7333 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7336 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7337 instead of mktemp() or tmpnam() on NetBSD.
7339 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7341 * trans.c (call_to_gnu): Make the temporary for non-addressable
7342 In parameters passed by reference.
7343 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7345 2007-12-19 Robert Dewar <dewar@adacore.com>
7347 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7348 Add pragma Warnings (Off) for unassigned IN OUT arguments
7350 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7351 (Check_References): Extensive changes to tune up warnings
7352 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7353 (Has_Pragma_Unmodifed_Check_Spec): New function
7354 (Check_References): Implement pragma Unmodified
7355 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7357 * par-prag.adb: Dummy entry for pragma Unmodified
7359 * sem_prag.adb: Implement pragma Unmodified
7361 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7362 (Proc_Next_Component_Or_Discriminant): Fix typo.
7365 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7367 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7368 because the former already takes care of discarding the result.
7369 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7372 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7374 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7376 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7377 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7378 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7379 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7380 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7381 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7382 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7383 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7384 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7385 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7386 (Dynamic_Trampolines_Used): Delete.
7388 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7389 Turn on stack probing mechanism on LynxOS.
7391 2007-12-19 Bob Duff <duff@adacore.com>
7393 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7394 the resulting tail recursion by hand. This prevents running out of
7395 memory on deeply nested concatenations, since Field2 is where the left
7396 operand of concatenations is stored.
7397 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7398 clarify that it can only return OK or Abandon.
7400 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7401 operand by iteration, in order to avoid running out of memory on
7402 deeply-nested concatenations. Use the Parent pointer to get back up the
7404 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7405 Resolve_Op_Concat_Rest): New procedures split out of
7406 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7409 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7410 Traverse_Func, because the former already takes care of discarding the
7413 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7414 because the former already takes care of discarding the result.
7415 (Remove_Warning_Messages): Use appropriate subtype for Status and
7418 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7420 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7421 discriminants forces expansion of the aggregate into assignments.
7422 (Init_Record_Controller): If the type of the aggregate is untagged and
7423 is not inherently limited, the record controller is not limited either.
7425 2007-12-19 Robert Dewar <dewar@adacore.com>
7427 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7428 handling compile time known size of record or array (case of front end
7429 layout active, e.g. in GNAAMP).
7431 2007-12-19 Javier Miranda <miranda@adacore.com>
7433 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7434 that forces the construction of static dispatch tables in case of
7437 2007-12-19 Robert Dewar <dewar@adacore.com>
7439 * exp_ch9.adb (Null_Statements): Moved to library level
7440 (Trivial_Accept_OK): New function
7441 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7442 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7444 2007-12-19 Robert Dewar <dewar@adacore.com>
7446 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7447 in complex case where array is Volatile.
7449 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7451 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7452 properly the Ada2005 rules concerning when the current instance of a
7453 record type is aliased.
7455 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7457 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7459 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7461 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7463 2007-12-19 Vincent Celier <celier@adacore.com>
7465 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7466 package is not known
7468 * prj-attr.ads (Unknown_Package): New constant
7469 Do not crash when an unknown package is in several projects
7471 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7474 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7475 existing package Language_Processing.
7477 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7478 Gary Dismukes <dismukes@adacore.com>
7479 Samuel Tardieu <sam@rfc1149.net>
7481 PR ada/15803, ada/15805
7482 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7483 illegal access subtypes when there is a constrained partial view.
7484 (Check_For_Premature_Usage): New procedure inside
7485 Access_Subprogram_Declaration for checking that an access-to-subprogram
7486 type doesn't reference its own name within any formal parameters or
7487 result type (including within nested anonymous access types).
7488 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7489 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7490 context is an access_to_variable, the expression cannot be an
7493 2007-12-19 Bob Duff <duff@adacore.com>
7495 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7496 (Analyze_Concatenation): Use iteration instead of recursion in order
7497 to avoid running out of stack space for deeply nested concatenations.
7499 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7500 Gary Dismukes <dismukes@adacore.com>
7502 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7503 whose renamed entity is a subprogram that requires overriding.
7504 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7505 issuing an error for premature usage and issue a message that says
7506 'type' rather than 'object'.
7508 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7511 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7512 presence of a statically tagged operand (Present (Static_Tag)) with
7513 test for Indeterm_Ancestor_Call when determining whether to propagate
7514 the static tag to tag-indeterminate operands (which forces dispatching
7516 (Check_Controlling_Formals): Ada2005, access parameters can have
7518 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7519 not insert subprogram in list of primitive operations if already there.
7521 2007-12-19 Tristan Gingold <gingold@adacore.com>
7523 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7526 2007-12-19 Thomas Quinot <quinot@adacore.com>
7528 Part of PR ada/33688
7529 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7530 datagram info on Linux.
7532 2007-12-19 Vincent Celier <celier@adacore.com>
7534 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7535 that the source path name is always found in the dependencies.
7537 2007-12-19 Robert Dewar <dewar@adacore.com>
7539 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7540 Fix name of Wide_Wide_Latin_1/9 file names
7541 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7542 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7543 Add missing documentation for Ada.Command_Line.Response_File
7544 Update list of warning letters for Warnings pragma
7545 Add documentation for pragma Unmodified
7547 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7549 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7551 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7553 * s-vxwork-alpha.ads: Removed, no longer used.
7555 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7557 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7559 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7562 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7563 mlib-tgt-specific.adb.
7565 2007-12-13 Bob Duff <duff@adacore.com>
7567 * trans.c (Attribute_to_gnu): Check for violations of the
7568 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7569 the front end, but is moved here so we can make it more accurate.
7571 2007-12-13 Pascal Obry <obry@adacore.com>
7573 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7574 version is provided for older GNU/Linux distribution not
7575 supporting thread affinity sets.
7577 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7579 (bit_field): New packed boolean type used by cpu_set_t.
7580 (cpu_set_t): New type corresponding to the C type with
7581 the same name. Note that on the Ada side we use a bit
7582 field array for the affinity mask. There is not need
7583 for the C macro for setting individual bit.
7584 (pthread_setaffinity_np): New imported routine.
7586 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7588 (Create_Task): Set the processor affinity mask if information
7591 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7593 2007-12-13 Robert Dewar <dewar@adacore.com>
7595 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7596 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7597 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7598 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7599 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7600 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7601 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7602 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7603 for subprogram pointers.
7605 * g-ctrl_c.adb: New file.
7607 * g-ctrl_c.ads (Install_Handler): New body.
7609 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7610 instead of obsolete function Is_Always_Inlined.
7611 (Freeze_Entity): check for tagged type in imported C subprogram
7612 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7613 (Freeze_Entity): check for convention Ada subprogram pointer in
7614 imported C subprogram.
7615 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7616 bound would be chopped off and go from negative to zero, force
7617 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7618 bound) so that the size computation for the base type will take
7619 negative values into account.
7621 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7622 Bob Duff <duff@adacore.com>
7623 Tristan Gingold <gingold@adacore.com>
7625 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7626 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7627 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7628 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7629 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7630 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7631 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7632 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7633 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7634 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7635 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7636 (Always_Compatible_Rep): New flag to control trampolines globally.
7637 (Dynamic_Trampolines_Used): New flag for implementing the
7638 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7639 and not yet set correctly for some targets).
7641 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7642 Simply indirectly call s-stchop when a task is created.
7645 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7646 appears as an argument (entries A) in an ALI file.
7648 * fe.h (Stack_Check_Limits): Declare new target parameter.
7649 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7651 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7652 This variable is declared in C to be sure not subject to elaboration
7654 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7657 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7658 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7660 * s-stchop.ads: Add comments.
7662 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7663 limit method of stack checking.
7665 * s-stchop-limit.ads: New file.
7667 2007-12-13 Robert Dewar <dewar@adacore.com>
7669 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7670 a-cihama.adb, g-awk.adb,
7671 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7674 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7676 * sem.adb: Update handling of assigned value/unreferenced warnings
7678 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7680 * lib-xref.ads: Improve documentation for k xref type
7683 Update handling of assigned value/unreferenced warnings
7684 (Generate_Reference): Warning for reference to entity for which a
7685 pragma Unreferenced has been given should be unconditional.
7686 If the entity is a discriminal, mark the original
7687 discriminant as referenced.
7689 * sem_warn.ads, sem_warn.adb
7690 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7691 no entities referenced in package
7692 (Check_One_Unit): Don't give message about no entities referenced in
7693 a package if a pragma Unreferenced has appeared.
7694 Handle new warning flag -gnatw.a/-gnatw.A
7695 Update handling of assigned value/unreferenced warnings
7697 * atree.h: Add flags up to Flag247
7698 (Flag231): New macro.
7700 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7702 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7704 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7707 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7708 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7709 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7710 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7713 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7715 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7716 since we only have problems with Windows 95/98, which are not
7718 (__gnat_ttyname): Return the empty string on Nucleus, just as
7721 2007-12-13 Robert Dewar <dewar@adacore.com>
7723 * a-textio.adb, a-textio.ads:
7724 Extensive changes to private part for wide character encoding
7726 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7727 (Look_Ahead): Fix mishandling of encoded sequences
7728 Move declaration of Wch_Con to private part (should not be visible)
7730 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7731 UTF-8. Probably this is never used, but if it is, brackets is
7734 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7735 setting wide character encoding for no main program case and when
7736 encoding is specified using -W?
7737 Initialize stack limit of environment task if stack limit method of
7738 stack checking is enabled.
7739 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7740 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7741 (Get_Main_Unit_Name): New function.
7742 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7743 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7745 * bindusg.adb: Add line for -Wx switch
7747 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7749 Add new useful constant WC_Longest_Sequences
7751 * switch-b.adb: Clean up handling of -Wx switch
7752 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7754 * switch-c.adb: -gnatg activates warning on assertion errors
7755 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7757 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7759 2007-12-13 Robert Dewar <dewar@adacore.com>
7760 Ed Schonberg <schonberg@adacore.com>
7762 * a-ngcoty.adb: New pragma Fast_Math
7764 * opt.adb: New pragma Fast_Math
7767 Add Implemented_By_Entry to the list of pragmas which do not require any
7769 (Favor_Top_Level): New pragma.
7770 New pragma Fast_Math
7772 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7773 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7774 Expand_Allocator_Expression): Take into account VM_Target
7775 (Expand_Attribute, case 'Identity): Handle properly the case where
7776 the prefix is a task interface.
7777 New pragma Fast_Math
7779 * par.adb (Next_Token_Is): New function
7780 (P_Pragma): Add Skipping parameter
7781 (U_Left_Paren): New procedure
7782 (U_Right_Paren): New procedure
7783 New pragma Fast_Math
7785 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7787 New pragma Fast_Math
7789 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7790 Implemented_By_Entry.
7791 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7792 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7793 items, since it can apply to more than one overloadable entity. Set
7794 new flag Has_Pragma_Inline_Always for Inline_Always case.
7795 (Analyze_Pragma, case Complex_Representation): Improve error message.
7796 (Analyze_Pragma, case Assert): When assertions are disabled build the
7797 rewritten code with Sloc of expression rather than pragma, so new
7798 warning about failing is not deleted.
7799 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7800 protected types and update error message to reflect that. Test whether
7801 the protected type is allowed for the pragma (an error is issued if the
7802 type has any entries, or components that do not have preelaborable
7804 New pragma Fast_Math
7805 (Analyze_Pragma, case No_Return): Handle generic instance
7807 * snames.h, snames.ads, snames.adb:
7808 Add new predefined name for interface primitive _Disp_Requeue.
7809 New pragma Fast_Math
7811 * a-tags.ads, a-tags.adb: New calling sequence for
7812 String_To_Wide_[Wide_]String
7813 (Secondary_Tag): New subprogram.
7815 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7817 New calling sequence for String_To_Wide_[Wide_]String
7818 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7819 the use of the secondary stack for image routines.
7821 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7822 calling sequence for String_To_Wide_[Wide_]String
7824 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7826 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7827 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7829 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7830 (P_Formal_Part): Use Skipping parameter in P_Pragma call
7831 to improve error recovery
7833 * par-util.adb (Next_Token_Is): New function
7834 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7836 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7837 semicolon if missing
7838 (P_Pragma): Implement new Skipping parameter
7839 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7840 Fix location of flag for unrecognized pragma message
7842 * par-tchk.adb (U_Left_Paren): New procedure
7843 (U_Right_Paren): New procedure
7845 2007-12-13 Geert Bosch <bosch@adacore.com>
7848 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7849 the second or later Scaled_Divide would omit leading zeroes,
7850 resulting in too few digits produced and a Layout_Error as result.
7851 (Put): Initialize Pos.
7853 2007-12-13 Robert Dewar <dewar@adacore.com>
7855 atree.ads, atree.adb (Flag231..Flag247): New functions
7856 (Set_Flag231..Set_Flag247): New procedures
7857 (Basic_Set_Convention): Rename Set_Convention to be
7858 Basic_Set_Convention
7859 (Nkind_In): New functions
7860 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7862 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7864 of obsolete function Is_Always_Inlined
7865 (Register_Predefined_DT_Entry): Initialize slots of the second
7866 secondary dispatch table.
7867 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7868 (Expand_N_Function_Call): Remove special provision for stack checking.
7870 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7871 Include _Disp_Requeue in the list of predefined operations.
7872 (Find_Interface_ADT): Modified to fulfill the new specification.
7873 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7875 * par-ch4.adb, nlists.ads, nlists.adb:
7876 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7878 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7879 Fix location of flag for unrecognized pragma message
7881 * sem_ch7.adb: Use Nkind_In
7883 2007-12-13 Vincent Celier <celier@adacore.com>
7886 Indicate what flags are used by the Project Manager, gprbuild and
7888 (Opt.Follow_Links_For_Dirs): New flag
7889 (Warn_On_Assertion_Failure): New flag
7890 (Wide_Character_Encoding_Method_Specified): New flag
7891 (Suppress_All_Inlining): New switch set by -fno-inline
7892 (Real_VMS_Target): New flag
7893 New pragma Fast_Math
7895 2007-12-13 Robert Dewar <dewar@adacore.com>
7897 * back_end.adb: Recognize -fno-inline
7899 2007-12-13 Robert Dewar <dewar@adacore.com>
7901 * checks.adb: Fix optimization problem with short-circuited form
7903 2007-12-13 Bob Duff <duff@adacore.com>
7905 * clean.adb (Usage): Add line for -aP
7906 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7907 with a parameter "procedure Usage", instead of passing a pointer to a
7908 procedure. This is to eliminate trampolines (since the Usage procedure
7909 is often nested in a main procedure, and it would be inconvenient to
7912 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7913 to be generic, with a parameter "procedure Callback (...)", instead of
7914 passing a pointer to a procedure. This is to eliminate trampolines
7915 (since the Callback procedure is usually nested).
7917 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7918 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7919 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7921 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7922 Use the generic Heap_Sort_G instead of Heap_Sort_A.
7924 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7926 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7927 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7928 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7929 (Renamed_In_Spec): New flag
7930 (Has_Pragma_Inline_Always): New flag
7931 Add missing doc for pragma Obsolescent_Warning
7932 Add missing doc for 17 additional unused flags (230-247)
7933 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7934 Alphabetize with clauses.
7935 Separate Is_Thunk and Has_Thunks flags
7936 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7937 (Related_Interface): Renamed to Related_Type.
7938 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7939 (Set_Is_Flag): Restrict the assertion.
7941 2007-12-13 Vincent Celier <celier@adacore.com>
7943 * errout.adb (Output_Source_Line): Do not keep a trailing space after
7944 the source line number if the source line is empty.
7946 2007-12-13 Geert Bosch <bosch@adacore.com>
7948 * eval_fat.adb (Decompose_Int): Handle argument of zero.
7949 (Compose): Remove special casing of zero.
7950 (Exponent): Likewise.
7951 (Fraction): Likewise.
7952 (Machine): Likewise.
7953 (Decompose): Update comment.
7955 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7957 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7958 limited ancestor part, initialize controllers of enclosing record
7959 before expanding ancestor aggregate.
7960 (Gen_Assign): If a component of the aggregate is box-initialized, add
7961 code to call Initialize if the component is controlled, and explicit
7962 assignment of null if the component is an access type.
7964 Handle properly aggregates for limited types that appear in object
7965 declarations when the aggregate contains controlled values such as
7967 When expanding limited aggregates into individual components, do not
7968 call Adjust on controlled components that are limited.
7970 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7972 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7974 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7976 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7977 predefined primitive _Disp_Requeue.
7978 (Make_Predefined_Primitive_Specs): Create the spec for predefined
7979 primitive _Disp_Requeue.
7980 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7981 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7982 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7983 an interface type. In case of limited interfaces we now declare all the
7984 predefined primitives associated with synchronized interfaces as
7986 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7988 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7989 tagged type is an interface type and there is no user-defined equality
7991 Add also bodies of predefined primitives associated with synchronized
7993 (Freeze_Record_Type): Do not build bodies of predefined primitives of
7994 interface types because they are now defined abstract.
7995 Add missing documentation.
7996 (Expand_Record_Controller): Update occurrence of Related_Interface
7998 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7999 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8000 class wide interface object declaration.
8001 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8002 if the access type already has one.
8003 (Expand_N_Object_Declaration): Defend against attempt to validity check
8004 generic types. Noticed for -gnatVcf specified with previous errors.
8006 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8008 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8009 Expand_Allocator_Expression): Take into account VM_Target
8011 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8012 secondary stack when VM_Target /= No_VM
8014 2007-12-13 Javier Miranda <miranda@adacore.com>
8015 Ed Schonberg <schonberg@adacore.com>
8017 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8018 Is_Complation_Unit by Is_Library_Level_Entity in the code
8019 that decides if the static dispatch tables need to be built.
8020 (Wrap_Transient_Declaration): Do not generate a finalization call if
8021 this is a renaming declaration and the renamed object is a component
8022 of a controlled type.
8024 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8026 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8027 In the case where the renamed subprogram is a dereference, call
8028 Force_Evaluation on the prefix.
8030 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8031 Ed Schonberg <schonberg@adacore.com>
8033 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8034 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8035 comment reformatting.
8036 (Set_Privals): Inherit aliased flag from formal. From code reading.
8037 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8038 by copy and initialized from the actual. This includes entry parameters.
8039 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8040 and Ada 2005 models of requeue.
8041 (Null_Statements): Still connsider do-end block null if it contains
8042 Unreferenced and Warnings pragmas.
8043 (Expand_N_Accept_Statement): Do not optimize away null do end if
8044 dispatching policy is other than defaulted.
8045 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8046 dispatching call, manually analyze the delay statement.
8047 (Find_Parameter_Type): Move subprogram to Sem_Util.
8049 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8050 Javier Miranda <miranda@adacore.com>
8052 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8053 _Disp_Requeue occupies dispatch table slot number 15. Move
8054 _Disp_Timed_Select to slot 16.
8055 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8056 generate the spec and body of _Disp_Reqeueue.
8057 (Make_DT): Build and initialize the second dispatch table.
8058 Handle initialization of RC_Offset when the parent
8059 is a private type with variable size components.
8060 (Make_Secondary_DT): Complete documentation. Add support to
8061 initialize the second dispatch table.
8062 (Make_Tags): Generate the tag of the second dispatch table.
8063 (Register_Primitive): Add support to register primitives in the
8064 second dispatch table.
8066 2007-12-13 Pascal Obry <obry@adacore.com>
8068 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8069 Windows. This signal is used by gnatmake to kill child processes for
8072 2007-12-13 Javier Miranda <miranda@adacore.com>
8074 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8075 support for generic dispatching constructor calls in which we need to
8076 locate the tag of a secondary dispatch table associated with an
8077 interface type to properly dispatch the call.
8078 (Expand_N_Attribute_Reference [case Address],
8079 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8080 handling of VM targets.
8082 2007-12-13 Robert Dewar <dewar@adacore.com>
8083 Ed Schonberg <schonberg@adacore.com>
8085 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8088 * ug_words: Add entries for -gnatw.a -gnatw.A
8090 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8091 literal is a subtype with non-static constraints, use the base type of
8092 the context as the base of the string subtype, to prevent type
8094 (Resolve_Actuals): If the actual is an entity name, generate a
8095 reference before the actual is resolved and expanded, to prevent
8096 spurious warnings on formals of enclosing protected operations.
8097 (Analyze_Overloaded_Selected_Component): If type of prefix if
8098 class-wide, use visible components of base type.
8099 (Resolve_Selected_Component): Ditto.
8100 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8101 evaluating to False, and issue warning message.
8103 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8105 2007-12-13 Emmanuel Briot <briot@adacore.com>
8107 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8110 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8112 (Month_Name_To_Number): New subprogram
8114 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8115 letter to upper-case.
8117 2007-12-13 Robert Dewar <dewar@adacore.com>
8118 Ed Schonberg <schonberg@adacore.com>
8120 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8122 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8123 context is a limited view, use non-limited view when available. If the
8124 non-limited view is an unconstrained array, this enforces consistency
8125 requirements in 3.10.2 (27).
8126 (Layout_Type): For an access type whose designated type is a limited
8127 view, examine its declaration to determine if it is an unconstrained
8128 array, and size the access type accordingly.
8129 (Layout_Type): Do not force 32-bits for convention c subprogram
8130 pointers in -gnatdm mode, only if real vms target.
8132 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8133 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8134 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8135 violations of the No_Implicit_Dynamic_Code restriction.
8136 (Resolve_Attribute, case 'Access): If designated type of context is a
8137 limited view, use non-limited view when available. If the non-limited
8138 view is an unconstrained array, this enforces consistency requirements
8140 (Layout_Type): For an access type whose designated type is a limited
8141 view, examine its declaration to determine if it is an unconstrained
8142 array, and size the access type accordingly.
8144 2007-12-13 Vincent Celier <celier@adacore.com>
8146 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8147 object directory of main project does not exist.
8148 On VMS, correctly set then environment variable for the source
8151 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8153 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8154 set to True this procedure will create the value of type REG_EXPAND_SZ.
8155 It was only possible to create REG_SZ values before.
8157 2007-12-13 Robert Dewar <dewar@adacore.com>
8159 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8160 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8161 namet-sp.adb, namet-sp.ads: New files.
8163 * g-speche.adb: Use generic routine in g-spchge
8165 * s-wchcnv.ads, s-wchcnv.adb:
8166 Minor code cleanup (make formal type consistent with spec)
8168 * namet.adb: Update comments.
8170 * par-endh.adb (Evaluate_End_Entry): Use new
8171 Namet.Sp.Is_Bad_Spelling_Of function
8173 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8175 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8176 ancestor is an access type initialized with a box, set its type
8177 explicitly, for use in subsequent expansion.
8178 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8181 2007-12-13 Robert Dewar <dewar@adacore.com>
8183 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8186 2007-12-13 Robert Dewar <dewar@adacore.com>
8188 * inline.adb (Back_End_Cannot_Inline): Use new flag
8189 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8191 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8192 Has_Pragma_Inline_Always instead.
8193 of obsolete function Is_Always_Inlined
8194 (Build_Body_To_Inline): Same change
8195 (Cannot_Inline): Same change
8196 Do not give warning on exception raise in No_Return function
8198 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8199 component has two inconsistent component clauses in the same record
8200 representation clause, favor the message that complains about
8201 duplication rather than inconsistency.
8203 (Record_Representation_Clause): Do not warn on missing component
8204 clauses for inherited components of a type extension.
8205 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8206 an overloadable item if it is a pragma that can apply to multiple
8207 overloadable entities (e.g. Inline) because a pragma cannot be on
8208 more than one chain at a time.
8209 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8210 conversion where one of the operands is Ada.Calendar.Time.
8211 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8212 For now, ignore Component_Size clause on VM targets, as done for
8215 2007-12-13 Emmanuel Briot <briot@adacore.com>
8216 Vincent Celier <celier@adacore.com>
8218 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8220 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8222 (Hash): Move instantiation of System.HTable.Hash from spec to body
8223 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8224 systems, since we do not need to recompute the Name_Id for the canonical
8226 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8227 as a parameter. This parameter is in fact always "ada" in all calls, and
8228 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8229 while loading a project with 40000 files
8231 * prj-attr.adb: Fix name of attribute Dependency_Driver
8232 Change the kind of indexing for attribute Root
8234 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8235 variables already declared, in case constructions.
8237 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8238 Current_Object_Path_File to No_Path.
8240 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8241 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8243 * prj-makr.adb: new parameter Current_Dir
8245 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8246 Ada sources when language is not Ada.
8247 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8248 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8249 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8250 (Locate_Directory): Always resolve links when computing Canonical_Path
8251 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8252 in Source_Files before checking for the presence of a directory
8254 Optimize calls to Name_Find when on case sensitive systems.
8255 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8257 (Prj.Nmsc.Check): new parameter Current_Dir
8258 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8259 cannot be empty and the spec suffix cannot be the same as the body or
8261 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8262 subunit), always consider the longest suffix.
8263 (Check_Configuration): Do not issue an error if there is no compiler
8264 for a language. Just issue a warning and ignore the sources for the
8266 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8268 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8269 (Unit_Exceptions): New hash table
8270 (Check_Naming_Schemes): Check if a file that could be a unit because of
8271 the naming scheme is not in fact a source because there is an exception
8273 (Look_For_Sources): Put the unit exceptions in hash table
8275 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8276 Other_Part to avoid exception when code is compiled with validity
8278 (Get_Sources_From_File): Check that there is no directory information
8280 (Look_For_Sources): Check that there is no directory information in the
8281 list of file names in Source_Files.
8282 (Look_For_Sources): In multi-language mode, do not allow exception file
8283 names that are excluded.
8284 (Excluded_Sources_Htable): New hash table
8285 (Search_Directories.Check_File): New procedure to simplify
8287 (Search_Directories): Do not consider excluded sources
8288 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8290 (Get_Exceptions): Set component Lang_Kind of Source_Data
8291 (Get_Unit_Exceptions): Ditto
8292 (Search_Directories): Ditto
8294 * prj-pars.adb: new parameter Current_Dir
8296 * prj-part.ads, prj-part.adb:
8297 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8298 (Opt.Follow_Links_For_Dirs): New flag
8299 (Project_Path_Name_Of): Cache information returned by this routine as
8300 Locate_Regular_File is a costly routine. The code to output a log
8301 information and the effective call to Locate_Regular_File is now
8302 factorized into a routine (code clean-up).
8303 (Parse, Parse_Single_Project): new parameter Current_Dir
8304 When main project file cannot be found, indicate in the error
8305 message the project path that was used to do the search.
8307 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8308 (Prj.Proc.Process*): new parameter Current_Dir
8310 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8312 2007-12-13 Bob Duff <duff@adacore.com>
8314 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8315 procedure to be called from the back end to check the
8316 No_Implicit_Dynamic_Code restriction.
8318 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8320 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8321 Fixes another case where RTE_Available_Call was ignored instead of being
8325 * rtsfind.ads: Add new entries.
8327 2007-12-13 Robert Dewar <dewar@adacore.com>
8329 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8330 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8332 * scn.adb: Implement BOM recognition
8334 2007-12-13 Thomas Quinot <quinot@adacore.com>
8335 Ed Schonberg <schonberg@adacore.com>
8337 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8338 subprogram body that acts as its own spec may not have a non-private
8339 WITH clause on a private sibling.
8340 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8341 child unit is a renaming, create an implicit with_clause on that
8342 parent, and not on the unit it renames, to prevent visibility errors
8343 in the current unit.
8345 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8347 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8348 renaming declaration, use the Slocs of the formal parameters from the
8349 declaration of the formal subprogram when creating the formal parameter
8350 entities in the renaming declaration.
8351 (Analyze_Formal_Type_Declaration): Change the placement of the error
8352 message concerning illegal known discriminants. It is now posted on the
8353 type rather than on the first discriminant. This change ensures early
8355 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8356 the package body that contains the instance, do not generate an
8357 out-of-place freeze node for the enclosing package.
8358 (Collect_Previous_Instantiations): Ignore internal instantiations
8359 generated for formal packages.
8360 (Validate_Derived_Type_Instance): Add a check that when a formal
8361 derived type is Known_To_Have_Preelab_Init then the actual type must
8362 have preelaborable initialization, and issue an error when this
8363 condition is violated.
8365 2007-12-13 Robert Dewar <dewar@adacore.com>
8367 * s-imenne.adb, s-imenne.ads: New files.
8369 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8370 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8371 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8372 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8373 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8376 2007-12-13 Javier Miranda <miranda@adacore.com>
8377 Ed Schonberg <schonberg@adacore.com>
8379 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8380 generation of spurious error if parent is an interface type; caused
8381 because predefined primitive bodies will be generated later by
8383 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8385 (Derive_Subprograms): Handle derivations of predefined primitives
8386 after all the user-defined primitives to ensure that they are
8387 found in proper order in instantiations.
8388 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8389 of Related_Interface to Related_Type.
8390 (Record_Type_Declaration): Minor reordering of calls to decorate the
8391 Tag component because the entity must have set its Ekind attribute
8392 before setting its Is_Tag attribute.
8393 (Analyze_Subtype_Declaration): In the case of subtypes with
8394 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8396 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8397 Ed Schonberg <schonberg@adacore.com>
8399 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8400 statement to the list of contexts where a selected component with a
8401 concurrent tagged type prefix should yield a primitive operation.
8402 (Find_Primitive_Operation): Handle case of class-wide types.
8403 (Analyze_Overloaded_Selected_Component): If type of prefix is
8404 class-wide, use visible components of base type.
8405 (Resolve_Selected_Component): Ditto.
8406 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8407 formal of a generic subprogram. find candidate interpretations by
8408 scanning the list of generic formal declarations.:
8409 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8410 type from a limited_with_clause, and the full view is available, use it
8411 for subsequent semantic checks.
8412 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8413 (Find_Primitive_Operation): New function.
8414 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8415 only once if several interpretations of the prefix yield an access type.
8416 (Try_Object_Operation): Code and comment cleanup.
8417 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8418 code reformatting. When the type of the prefix is tagged concurrent, a
8419 correct interpretation might be available in the primitive and
8420 class-wide operations of the type.
8422 2007-12-13 Robert Dewar <dewar@adacore.com>
8423 Ed Schonberg <schonberg@adacore.com>
8425 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8426 renaming entry as subprogram using rename-as-body if subprogram spec
8428 (Use_One_Type): The clause is legal on an access type whose designated
8429 type has a limited view.
8430 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8431 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8432 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8433 operation denoted by a selected component.
8434 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8435 it can be an expression, possibly overloaded, that returns a task or
8438 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8439 Gary Dismukes <dismukes@adacore.com>
8441 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8442 requeue statement is dispatching. Do not emit an error when the name is
8443 not an entry and the context is a dispatching select. Add code to
8444 perform subtype conformance between the formals of the current entry
8445 and those of the target interface primitive.
8446 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8447 Timed_Entry_Call): Analyze the triggering statement as the first step of
8448 the processing. If this is a dispatching select, postpone the analysis
8449 of all select statements until the Expander transforms the select. This
8450 approach avoids generating duplicate identifiers after the Expander has
8451 replicated some of the select statements. In case the Expander is
8452 disabled, perform regular analysis.
8453 (Check_Triggering_Statement): New routine.
8454 (Analyze_Requeue): Exclude any interpretations that are not entries when
8455 checking overloaded names in a requeue. Also test type conformance for
8456 matching interpretations rather than requiring subtype conformance at
8457 that point to conform with the RM's resolution rule for requeues.
8459 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8461 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8462 inherited operation is a defaulted tag-indeterminate call, and there is
8463 a statically tagged actual, use the static tag as a controlling actual
8464 for the defaulted actual.
8466 2007-12-13 Geert Bosch <bosch@adacore.com>
8468 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8469 context, so do not call Check_Non_Static_Context.
8471 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8473 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8474 whether formal E is an entity which may have parameters.
8476 2007-12-13 Bob Duff <duff@adacore.com>
8477 Javier Miranda <miranda@adacore.com>
8478 Robert Dewar <dewar@adacore.com>
8480 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8481 (Set_Convention): New procedure to set the Convention flag, and in
8482 addition make sure the Favor_Top_Level flag is kept in sync (all
8483 foreign-language conventions require Favor_Top_Level = True).
8484 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8486 (Collect_Interfaces_Info): Minor update to handle the two secondary
8487 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8488 (Generate_Parent_Ref): Add parameter to specify entity to check
8489 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8490 initialize a component of a type with preelaborable initialization.
8491 This includes the case of a discriminal used in such a context.
8492 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8493 latest Ada 2005 rules about renaming and 'Access of
8494 discriminant-dependent components.
8495 (Check_Nested_Access): Add handling when there are no enclosing
8496 subprograms (e.g. case of a package body).
8497 (Find_Parameter_Type): Factor routine from several other compiler files.
8498 Remove routine from Find_Overridden_Synchronized_Primitive.
8500 2007-12-13 Thomas Quinot <quinot@adacore.com>
8502 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8503 an invalid access to an uninitialized slot in the
8504 Source_File_Index_Table.
8506 2007-12-13 Thomas Quinot <quinot@adacore.com>
8508 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8510 2007-12-13 Bob Duff <duff@adacore.com>
8512 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8513 access-to-subprogram types in this package.
8515 2007-12-13 Olivier Hainque <hainque@adacore.com>
8517 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8518 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8519 Stack_Overlay_Address and document that we are using an internal
8521 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8522 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8523 consistently throughout the various implementation pieces.
8525 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8526 overlay we are using to fill the stack area with patterns.
8527 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8528 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8529 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8531 2007-12-13 Robert Dewar <dewar@adacore.com>
8533 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8535 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8538 (Create_Task): Take into account tasks created by foreign threads.
8539 Code clean up: use constants instead of hard coded values.
8541 2007-12-13 Robert Dewar <dewar@adacore.com>
8543 * styleg.adb (Check_Comment): More liberal rules for comment placement
8545 2007-12-13 Olivier Hainque <hainque@adacore.com>
8547 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8548 of Procedure Value instead of Frame Pointer as the invocation
8549 identifier associated with the instruction pointer in each traceback
8552 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8553 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8554 Pointer as the invocation identifier passed to tbk$symbolize.
8556 * s-traent-vms.ads, s-traent-vms.adb
8557 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8558 Procedure Value instead of Frame Pointer as the invocation identifier
8559 passed to tbk$symbolize.
8561 2007-12-13 Robert Dewar <dewar@adacore.com>
8563 * tbuild.ads, tbuild.adb:
8564 Fix location of flag for unrecognized pragma message
8566 2007-12-13 Robert Dewar <dewar@adacore.com>
8568 * treepr.ads, treepr.adb: (pl): implement use of positive value
8571 2007-12-13 Robert Dewar <dewar@adacore.com>
8573 * xeinfo.adb: Remove warnings
8574 * xnmake.adb: Remove warnings
8575 * xsinfo.adb: Remove warnings
8576 * xtreeprs.adb: Remove warnings
8577 * xsnames.adb: Remove warnings
8579 * a-ngcoar.adb: Fix typo.
8580 * s-interr.adb: Minor reformatting
8581 * env.c: Minor reformatting.
8582 * g-bytswa.adb: Minor reformatting.
8583 * g-rannum.ads: Minor documentation improvements
8584 * s-tasinf-mingw.adb: Minor header fix
8585 * a-clrefi.adb: Minor reformatting
8586 * g-sttsne.ads: Minor documentation improvement
8587 * g-sttsne-locking.ads: Minor documentation improvement
8588 * g-soliop-solaris.ads: Minor documentation improvement
8589 * g-soliop-mingw.ads: Minor documentation improvement
8590 * g-soliop.ads: Minor documentation improvement
8591 * exp_aggr.ads: Minor reformatting
8592 * debug.adb: Add documentation for the gprbuild debug flags
8593 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8594 * exp_pakd.adb: Minor reformatting
8596 * g-altive.ads, g-alleve.adb: Remove assertions.
8597 Add comment about minor differences between targets regarding
8598 floating-point operations.
8600 * g-thread.adb: Remove pragma unreferenced.
8601 * lib.ads: Minor reformatting
8602 * par-ch9.adb: Minor reformatting of error messages
8603 * sem_case.adb: Minor reformatting
8604 * s-fileio.adb: Minor reformattinng
8605 * s-vmexta.ads: Minor typo
8607 Take into account 'Success' value as per new GNAT warning.
8609 2007-12-13 Vincent Celier <celier@adacore.com>
8611 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8614 2007-12-13 Robert Dewar <dewar@adacore.com>
8615 Bob Duff <duff@adacore.com>
8617 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8618 Document that suffixes may be terminations of each others
8619 Add doc for -gnatw.a and -gnatw.A
8620 Document gnatbind -Wx switch
8621 Document BOM recognition
8622 Document pragma Implemented_By_Entry.
8625 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8626 Add doc for pragma Unreferenced suppressing no entities referenced msg
8627 Add documentation of GNAT.Directory_Operations.Iteration
8628 Add documentation of GNAT.Random_Numbers
8629 Add documentation for pragma Shared.
8630 Correct documentation for Bit_Order
8631 Add documentation for the Pool_Address attribute.
8632 Fix and improve documentation of pragma machine_attribute.
8633 New pragma Fast_Math
8634 Document BOM recognition
8636 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8637 Add /Wide_Character_Encoding for binder
8638 Add qualifier for the new gnatpp option --no-separate-loop-then
8640 2007-12-13 Matthew Heaney <heaney@adacore.com>
8642 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8643 which generic formal operations are called for each operation.
8645 2007-12-13 Olivier Hainque <hainque@adacore.com>
8647 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8648 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8650 2007-12-13 Emmanuel Briot <briot@adacore.com>
8652 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8653 Reference_Dir unless we actually need it.
8655 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8656 Tristan Gingold <gingold@adacore.com>
8658 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8661 a-calend-vms.adb: Remove pragma warning off and add pragma
8664 2007-12-13 Robert Dewar <dewar@adacore.com>
8666 * impunit.adb: Add entries for missing units
8668 * Makefile.rtl: Add new run-time units.
8670 * Make-lang.in: Update dependencies.
8672 2007-12-13 Bob Duff <duff@adacore.com>
8674 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8675 types, set Can_Use_Internal_Rep appropriately, based on
8676 Always_Compatible_Rep_On_Target.
8678 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8679 Arnaud Charlet <charlet@adacore.com>
8681 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8682 it to the front end and setting the aamp_target environment variable
8683 to the switch's argument to ensure that gnaampbind and gnaamplink will
8684 take the specified library into account.
8685 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8686 target, since the CIL compiler supports an "object" file (.il files).
8688 2007-12-13 Vincent Celier <celier@adacore.com>
8690 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8691 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8693 2007-12-13 Geert Bosch <bosch@adacore.com>
8695 * s-parame-vxworks.adb:
8696 Update comments to reflect usage of this package by Nucleus.
8698 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8700 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8701 spec would break code.
8703 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8705 * system-vxworks-alpha.ads: Removed.
8707 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8709 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8711 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8714 * sem_ch3.adb (Designates_T): New function.
8715 (Mentions_T): Factor reusable part of the logic into Designates_T.
8716 Consider non-access parameters and access and non-access result.
8717 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8718 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8720 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8722 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8725 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8726 the new implementation of target-specific calls.
8728 2007-12-07 Olivier Hainque <hainque@adacore.com>
8730 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8731 the designated full view, only follow a second level Full_View link
8732 for Non_Limited_Views of from_limited_with references.
8734 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8737 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8738 to be initialized with an access to constant object.
8740 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8741 when an access to constant is used to initialize an access
8745 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8747 2007-12-07 Olivier Hainque <hainque@adacore.com>
8750 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8751 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8752 this is from an alignment clause on the GNAT entity.
8753 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8754 to distinguish the case where we set it from the type's alignment.
8755 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8756 whether this alignment was set from an explicit alignment clause.
8758 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8760 * decl.c (make_packable_type): Revert last change.
8761 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8762 * utils.c (finish_record_type): Retrieve the real name of the type.
8764 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
8766 * trans.c (lvalue_required_p): Take base node directly instead
8767 of its parent. Rename second parameter to 'gnu_type'.
8768 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8769 <N_Slice>: Likewise.
8770 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8771 Adjust calls to lvalue_required_p.
8773 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
8776 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8777 parameters of an entry call.
8779 2007-12-03 Robert Dewar <dewar@adacore.com>
8780 Samuel Tardieu <sam@rfc1149.net>
8783 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8784 of variables declared in a library-level package.
8786 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
8788 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8789 of Empty_String'Unchecked_Access.
8791 * Makefile.in: Add support for sh4-linux.
8793 * system-linux-sh4.ads: New file.
8795 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
8798 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8799 and its argument must not be free()ed.
8801 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
8803 * decl.c (make_packable_type): Retrieve the real name of the type.
8804 (maybe_pad_type): Simplify similar code.
8806 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
8809 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8810 than an identifier is used after "case" in a variant_part.
8813 * par-ch4.adb (Is_Parameterless_Attribute): New map.
8814 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8815 attribute name or not depending on the new map.
8817 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8818 returning a string or a type will not be called with improper
8821 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8823 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8826 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8827 Signal an error when attribute argument is a fixed-point value of
8831 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8832 a derived ordinary fixed point type.
8834 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8835 RM_Size when a Small clause is found.
8837 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
8840 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8841 Pass 'false' for the new allocate_struct_function parameter.
8842 * utils.c (build_function_stub): Likewise.
8844 2007-11-25 Richard Guenther <rguenther@suse.de>
8846 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8847 (gnat_poplevel): Likewise.
8849 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
8851 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8852 strict alignment, no alignment clause and a known static size, cap
8853 the type alignment to the greatest power of 2 factor of the size.
8854 (gnat_to_gnu_field): If the field has a component clause, is aliased
8855 or of a type with strict alignment, require that its size be equal to
8857 (validate_size): Use the type size as the minimum size for a type with
8860 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
8862 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8863 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8864 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8865 Use 'Access instead of 'Unchecked_Access in second and third
8866 arguments of pthread_sigmask.
8868 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
8870 * decl.c (ceil_alignment): New function.
8871 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8872 (make_packable_type): Likewise.
8874 2007-11-22 Olivier Hainque <hainque@adacore.com>
8876 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8877 to fit in 80 columns.
8879 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
8881 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8882 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8884 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
8887 * misc.c (gnat_adjust_rli): Delete.
8888 (gnat_init): Do not initialize the translation code here.
8889 Do not call set_lang_adjust_rli.
8890 * trans.c (init_code_table): Make static.
8891 (gnat_init_stmt_group): Delete.
8892 (gigi): Initialize the translation code entirely here.
8893 Emit debug info for the common types here instead of...
8894 * utils.c (gnat_init_decl_processing): ...here.
8895 * gigi.h (init_code_table): Delete.
8896 (gnat_init_stmt_group): Likewise.
8898 2007-11-16 Olivier Hainque <hainque@adacore.com>
8900 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8901 retrieving an allocator return value from a super-aligned address from
8903 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8904 expect a super-aligned address for a fat or thin pointer.
8906 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
8908 * trans.c (call_to_gnu): Always set the source location on the call
8909 expression. If the function returns-by-target, also set it on the
8912 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
8914 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8915 sections of non-supported Interix target.
8917 * s-osinte-interix.ads: Removed.
8919 * i-cstrin.ads (chars_ptr): Make it a C convention type.
8921 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
8923 * a-tasatt.adb: Add a comment at the beginning of the package
8924 explaining why in general 'Unchecked_Access must be used instead
8927 * sem_prag.adb (Process_Convention): Move the test for the
8928 entity on which the Convention pragma applies down to also
8929 forbid pragma Convention on enumeration literals reached
8932 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
8934 * a-tasatt.adb: Revert previous change for this file as it will
8935 generate an error when this package is instantiated from a
8938 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
8940 * a-tasatt.adb: Type Wrapper should be declared in comment instead
8941 of already declared type Node_Access.
8942 Use 'Access instead of 'Unchecked_Access when applicable. Local
8943 lifetime is the one of the package.
8944 (Set_Value): W is allocated on the heap.
8946 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8948 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8950 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8953 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8955 (elaboration code): Timer_Queue lifetime is the one of the
8958 * tracebak.c (i386 alternative): Remove useless comparaison
8959 which is always false; LOWEST_ADDRESS is 0 and is never greater
8960 than an unsigned integer.
8962 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8963 embedded check for "Ada_Version >= Ada_05".
8965 2007-11-07 Olivier Hainque <hainque@adacore.com>
8967 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8968 craft and expand comment.
8970 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
8972 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8974 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
8976 * misc.c (gnat_handle_option): Replace call to abort with
8977 call to gcc_unreachable.
8978 (gnat_init): Likewise.
8979 (gnat_expand_expr): Likewise.
8980 (fp_prec_to_size): Likewise.
8981 (fp_size_to_prec): Likewise.
8983 2007-10-23 Richard Guenther <rguenther@suse.de>
8986 * tracebak.c: #undef abort after including system.h.
8988 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
8990 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8991 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8993 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8995 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
8997 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8998 Set the protection status of the guard page based on the value of On.
9000 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9002 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9003 (Exit_Task): Pass False to Hide_Yellow_Zone.
9005 2007-10-15 Robert Dewar <dewar@adacore.com>
9007 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9008 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9009 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9010 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9011 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9012 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9013 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9014 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9015 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9016 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9017 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9018 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9019 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9020 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9021 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9022 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9024 Add Unreferenced and Warnings (Off) pragmas for cases of
9025 variables modified calls where they are IN OUT or OUT parameters and
9026 the resulting values are not subsequently referenced. In a few cases,
9027 we also remove redundant code found by the new warnings.
9029 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9030 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9031 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9032 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9033 warning controlled by -gnatw.o that warns on cases of out parameter
9034 values being ignored.
9036 2007-10-15 Geert Bosch <bosch@adacore.com>
9038 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9040 * expect.c: Initial port to arm-mentor-nucleus.
9041 Use kill for __gnat_kill() on VMS.
9043 2007-10-15 Emmanuel Briot <briot@adacore.com>
9045 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9047 (Xref_Record): Change type for Line, since in the case of a reference to
9048 a predefined entity (as happens for array index types), the line is set
9050 Add support for parsing multiple array index types info, or
9051 multiple inherited interfaces info. This information cannot be stored
9052 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9053 and is therefore stored in the list of references instead. It has a
9054 special treatement later on in tools that use this information.
9056 2007-10-15 Tristan Gingold <gingold@adacore.com>
9058 * debug.adb: Document use of -gnatd.a and -gnatd.I
9060 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9062 2007-10-15 Javier Miranda <miranda@adacore.com>
9064 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9065 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9066 care of access to class-wide interface types plus removal of bizarre
9067 conversion of tagged object to access type (reported by Gary
9068 Dismukes). After this patch there is no need to perform any
9069 additional management on these nodes in Expand_Interface_Actuals.
9071 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9072 that handles use of 'Access and 'Unchecked_Access applied to
9073 actuals covering interface types. Such code is now
9074 centralized in Expand_N_Attribute_Reference.
9076 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9078 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9079 of tagged types whose ultimate ancestor is a CPP type.
9080 (Freeze_Array_Type): For a packed array type, generate an initialization
9081 procedure if the type is public, to handle properly a client that
9082 specifies Normalize_Scalars.
9084 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9086 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9087 inside a generic body, retrieve the full view of the entry family
9088 discrete subtype if available.
9090 2007-10-15 Thomas Quinot <quinot@adacore.com>
9092 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9093 attempt to generate stubs for hidden primitive operations.
9095 2007-10-15 Vincent Celier <celier@adacore.com>
9097 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9098 returning None, used when there is no platform specific body for
9101 2007-10-15 Bob Duff <duff@adacore.com>
9103 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9104 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9105 the generic Heap_Sort_G, in order to avoid trampolines.
9107 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9108 Jose Ruiz <ruiz@adacore.com>
9110 * vx_stack_info.c: New file.
9112 * i-forbla-unimplemented.ads: New file.
9114 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9115 for unsupported configurations; use it on VMS targets instead of the
9117 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9118 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9119 used by VxWorks targets to have access to task-specific data and be
9120 able to extract the stack boundaries for stack checking.
9121 Use system-vms-ia64.ads on ivms.
9123 * Make-lang.in: Update dependencies.
9125 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9128 2007-10-15 Vincent Celier <celier@adacore.com>
9130 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9132 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9134 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9136 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9137 the source is unknown.
9139 * prj-ext.adb: Spelling error fix
9141 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9142 95 reserved word in its name.
9143 (Process_Project_Level_Array_Attributes): Process new attribute
9144 Runtime_Library_Dir.
9146 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9147 config project against the user project names.
9149 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9150 not include a dot are always case insensitive.
9151 (Process_Declarative_Items): Ditto
9152 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9155 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9156 True, compare both indexes in lower case.
9158 2007-10-15 Robert Dewar <dewar@adacore.com>
9160 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9162 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9164 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9165 association for an access component, add an association with null as
9166 the expression. Remove testing for array subtypes and the setting in
9167 that case of Ctyp to the array component type, which prevented proper
9168 inclusion of an association for null-initialized arrays. Collapse
9169 condition that tests for array subtypes into just a test of
9170 Is_Partially_Initialized_Type (which already covers arrays anyway).
9172 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9174 * sem_ch12.adb: Minor code reformatting.
9175 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9176 find the parent package which may have been hidden by local
9179 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9181 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9182 flag of derived concurrent types, taking into account the flag setting
9183 on the parent subtype and any new set of discriminants.
9185 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9187 * sem_ch4.adb: Minor code and comment reformatting.
9188 (Analyze_Allocator): When the designated type of an unconstrained
9189 allocator is a record with unknown discriminants or an array with
9190 unknown range bounds, emit a detailed error message depending on the
9191 compilation mode and whether the designated type is limited.
9193 2007-10-15 Tristan Gingold <gingold@adacore.com>
9195 * system-vms-ia64.ads: New file.
9197 * system-vms_64.ads: Minor comment fix.
9199 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9201 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9202 body generated for a function with a controlling result that is a null
9203 extension, discard the generated body in favor of the current explicit
9206 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9208 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9209 examining its original form, to handle properly operator calls that
9210 have been rewritten.
9212 2007-10-15 Olivier Hainque <hainque@adacore.com>
9214 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9215 instead of a procedure value in each traceback entry.
9217 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9218 instead of procedure value to TBK$SYMBOLIZE.
9220 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9222 (TB_Entry_For): Account for the PV/FP renaming.
9224 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9226 (Null_TB_Entry): Account for change of component name.
9227 (PV_For): Rename as FP_For.
9229 2007-10-15 Tristan Gingold <gingold@adacore.com>
9231 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9232 This optimize assignment to over-aligned record.
9234 2007-10-15 Emmanuel Briot <briot@adacore.com>
9236 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9239 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9240 type, for dispatching calls.
9242 2007-10-15 Vincent Celier <celier@adacore.com>
9243 Robert Dewar <dewar@adacore.com>
9245 * gnat_ugn.texi: Add documentation for switches --version and --help
9246 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9247 gnatxref, gnatfind, gnatls, and gnatclean.
9249 Mention attribute Excluded_Source_Dirs
9250 Replace obsolescent attribute Locally_Removed_Files with attribute
9251 Excluded_Source_Files.
9252 Improve documentation of -u (gnatbind)
9253 Document how to do reliable stack checking for the environmental task
9256 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9257 Document attribute Excluded_Source_Files and indicate that attribute
9258 Locally_Removed_Files is obsolescent.
9260 2007-10-15 Thomas Quinot <quinot@adacore.com>
9262 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9265 Update documentation to note that OpenVMS 8.3 or later must be used
9266 to generate g-soccon-vms.ads.
9268 * atree.adb: Add ??? comment
9270 * exp_util.adb: Minor reformatting.
9271 Add ??? comment in Kill_Dead_Code.
9273 2007-10-15 Robert Dewar <dewar@adacore.com>
9275 * errout.ads: Comment clarification
9277 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9278 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9280 * lib.ads: Comment update
9282 * init.c: Minor reformatting.
9284 * sem_attr.adb: Minor formatting
9286 * osint-b.ads: Minor reformatting
9288 * sem_ch9.adb: Implement -gnatd.I switch
9290 * g-comlin.adb: (Start): Fix handling of empty command line.
9292 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9293 even when -rules follows the -cargs section.
9295 2007-10-08 Ollie Wild <aaw@google.com>
9297 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9299 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9301 (gnat_eh_runtime_type): Removed.
9302 (gnat_return_tree): New function.
9304 2007-10-08 Ben Elliston <bje@au.ibm.com>
9308 2007-08-31 Ben Elliston <bje@au.ibm.com>
9310 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9311 when compiling for powerpc64-*-linux.
9312 * system-linux-ppc64.ads: New file.
9314 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9316 Mapped location support
9317 * back_end.adb (Call_Back_End): Pass information about source
9318 files instead of units to gigi.
9319 * gigi.h (struct File_Info_Type): New.
9320 (gigi): Rename and change type of number_units parameter, change
9321 type of file_info_ptr parameter.
9322 * trans.c (number_files): New global variable.
9323 (gigi): Rename and change type of number_units parameter, change
9324 type of file_info_ptr parameter.
9325 If mapped location support is enabled, create the isomorphic mapping
9326 between source files and line maps.
9327 (Sloc_to_locus): If mapped location support is enabled, translate
9328 source location into mapped location.
9329 (annotate_with_node): Rename into set_expr_location_from_node.
9330 Call set_expr_location instead of annotate_with_locus.
9331 (Pragma_to_gnu): Adjust for above change.
9332 (Loop_Statement_to_gnu): Likewise.
9333 (call_to_gnu): Likewise.
9334 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9335 (gnat_to_gnu): Likewise.
9336 (add_stmt_with_node): Likewise.
9337 (add_cleanup): Likewise.
9338 * utils.c (gnat_init_decl_processing): Do not set input_line.
9340 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9342 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9343 (Applicable_Use): Emit a warning when a package tries to use itself.
9344 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9345 is already in use or the package where it is declared is in use or is
9346 declared in the current package.
9347 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9349 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9350 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9351 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9353 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9355 * a-calend-vms.adb, a-calend.adb:
9356 Add a section on leap seconds control along with two entities used to
9357 enable and disable leap seconds support. The array Leap_Second_Times is
9358 now constant and contains hard time values pre-generated. Remove
9359 all elaboration code used to populate the table of leap seconds.
9362 Add entity Leap_Seconds_Support to the list of global run-time variables
9363 along with a comment on its usage and values.
9364 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9365 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9366 or one (enabled) depending on the presence of binder switch "-y".
9367 (Gen_Adainit_C): Add code to generate the declaration of external int
9368 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9369 (enabled) depending on the presence of binder switch "-y".
9371 * init.c: Add __gl_leap_seconds_support to the list of global values
9372 computed by the binder.
9374 2007-09-26 Jerome Guitton <guitton@adacore.com>
9376 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9377 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9378 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9379 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9381 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9383 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9384 function which can be called by the debugger to interrupt the tasks of
9385 an Ada application asynchronously, as needed on VxWorks.
9386 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9388 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9389 renamed from Stop_All_Tasks. Update comments.
9390 (Stop_All_tasks): New function declaration.
9392 2007-09-26 Olivier Hainque <hainque@adacore.com>
9394 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9395 #include <utime.h> and #define GCC_RESOURCE_H before
9396 #include <sys/wait.h>.
9397 Add more protections in __gnat_translate_vms.
9399 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9400 #include <sys/wait.h>.
9402 2007-09-26 Thomas Quinot <quinot@adacore.com>
9403 Sergey Rybin <rybin@adacore.com>
9405 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9407 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9410 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9412 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9415 * sem_dist.ads: Minor comment fix
9417 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9419 2007-09-26 Javier Miranda <miranda@adacore.com>
9420 Eric Botcazou <ebotcazou@adacore.com>
9423 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9424 indirection added to the HT_Link component of the TSD. This is required
9425 to statically allocate the TSD.
9428 Minor reordering of the declarations in the private part. Required to
9429 add a level of indirection to the contents of the TSD component HT_Link.
9430 This is required to statically allocate the TSD.
9432 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9433 Is_Statically_Allocated set from constant objects.
9434 Do not make exported constants created by the compiler volatile.
9435 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9438 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9439 before returning them.
9441 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9442 public part of the package.
9443 (Make_DT): Move HT_Link component out of the TSD record. For this
9444 purpose Make_DT now declares a separate object that stores the
9445 HT_Link value, and initializes the TSD component with the address
9446 of this new object. The addition of this level of indirection is
9447 required to statically allocate the TSD because the TSD cannot
9448 have variable components.
9449 (Expand_Interface_Conversion): Improve the expanded code.
9450 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9452 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9453 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9454 if we are building static dispatch tables then we must not generate
9455 extra code to register the primitive because the dispatch table will
9456 be built at the end of the library package; otherwise we notify that
9457 we cannot build the static dispatch table.
9459 2007-09-26 Robert Dewar <dewar@adacore.com>
9461 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9464 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9465 (Analyze_Record_Representation_Clause): Suppress junk warning for
9466 missing component clause.
9467 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9468 tests for controlled type overlay to composites with controlled
9470 (Analyze_Record_Representation_Clause): Add reference for component name
9472 2007-09-26 Javier Miranda <miranda@adacore.com>
9473 Gary Dismukes <dismukes@adacore.com>
9475 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9476 for thunks associated with interface types.
9478 * einfo.ads: Improve documentatation of Is_Internal
9479 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9480 associated with interface types.
9481 Extensive comment fixes regarding flags that appear in all entities. The
9482 documentation is now consistent for all such flags (there were a number
9483 of errors in the documentation in this regard).
9485 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9487 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9488 of these procedures are passed a function call that already has
9489 build-in-place actuals (testing new flag
9490 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9491 the case where processing continues.
9492 (Expand_Call): If the call is generated from a thunk body then we
9493 propagate the extra actuals associated with the accessibility
9494 level of the access type actuals.
9496 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9497 of each extra formal of a protected operation to reference the
9498 corresponding extra formal of the subprogram denoted by the
9499 operation's Protected_Body_Subprogram.
9501 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9502 N_Function_Call nodes.
9504 2007-09-26 Robert Dewar <dewar@adacore.com>
9506 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9508 * debug.adb: Add d.s flag.
9510 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9512 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9513 debug variable so that it won't be initialized when pragma
9514 Initialize_Scalars is in effect.
9516 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9518 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9519 initialization of a full view. This is moved to
9520 Analyze_Package_Specification.
9522 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9523 preelaborable initialization of a full view in entity loop.
9524 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9525 its child units are use-visible only if they are visible child units.
9527 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9528 whether an expression can be used within a type declaration that
9529 requires preelaborable init.
9530 (Check_Components): Replace inline code that does partial checking for
9531 preelaborable default expressions with call to
9532 Is_Preelaborable_Expression.
9533 (Has_Preelaborable_Initialization): In the case of a generic actual
9534 subtype, (that is, Is_Generic_Actual is True), return the result of
9535 applying Has_Preelaborable_Initialization to the generic actual's base
9538 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9540 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9541 call to Jan_1_Day _Of_Week to optimize its performance.
9542 (Is_Leap): Move the routine to the scope of Week_In_Year.
9543 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9544 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9545 avoids calling Time_Of and Split, thus making it more efficent.
9546 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9548 * g-calend.ads (Week_In_Year): Change comment to reflect new
9551 2007-09-26 Emmanuel Briot <briot@adacore.com>
9553 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9554 Command_Line): New types
9555 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9556 support for defining how switches can be grouped on a command line (as
9557 is the case for -gnatw... for GNAT), and how simple switches can be
9558 used as aliases for more complex switches (-gnatwa is same as
9560 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9561 (Start, Current_*): New subprograms
9562 Added support for parsing an array of strings in addition to the real
9564 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9565 be moved from the body to the private part of the spec.
9566 (*): All subprograms now have an extra parameter with default value to
9567 specify which parser should be used. For backward compatibility, it
9568 defaults to parsing the command line of the application. They were also
9569 modified to properly handle cases where each of the argument does not
9570 start at index 1 (which is always true for Ada.Command_Line, but not
9571 when processing any Argument_List).
9572 (Free): New subprogram
9573 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9574 Argument): New subprograms
9575 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9576 special characters like ':', '=',... are now handled in a single place,
9577 which makes the code more extensible eventually.
9578 (Getopt, Full_Switch): When the switch was returned as part of the
9579 special character '*', make sure it is prepended by the switch character
9580 ('-' in general), so that the application knows whether "foo" or "-foo"
9581 was specified on the command line.
9583 2007-09-26 Florian Villoing <villoing@adacore.com>
9585 * g-dirope.adb (Remove_Dir): In case we are removing directories
9586 recursively, make sure that if an exception is raised during the
9587 processing, the current working directory is reset to its initial
9588 value before propagating the exception.
9590 2007-09-26 Vincent Celier <celier@adacore.com>
9592 * gnatbind.adb: If there are several ALI files specified and there is
9593 a main program to bind, the first ALI is expected to contain the main
9594 subprogram and the names of the binder generated files will be derived
9595 from the first ALI file name.
9596 (Gnatbind): Fix insertion character in invocation of Error_Msg
9598 2007-09-26 Vincent Celier <celier@adacore.com>
9600 * gnatcmd.adb (Check_Files): Do not include sources that have been
9601 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9603 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9605 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9606 information about each of its index types, following the type
9607 reference for its component type.
9609 2007-09-26 Vincent Celier <celier@adacore.com>
9611 * make.adb: (Kill): New procedure (__gnat_kill imported)
9612 (Running_Compile, Outstanding_Compiles): Global variables that
9613 were previously local to procedure Compile_Sources.
9614 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9615 compilation processes.
9617 (Gnatmake): If project files are used, create the mapping of all the
9618 sources, so that the correct paths will be found.
9620 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9622 2007-09-26 Vincent Celier <celier@adacore.com>
9624 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9626 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9627 Replace components Compiler_Min_Options and Binder_Min_Options with
9628 Compiler_Required_Switches and Binder_Required_Switches in record
9630 Remove components Default_Language and Config in Project_Tree_Data,
9633 * prj-attr.adb: New attributes Required_Switches (<language>) in
9634 packages Compiler and Binder.
9636 * prj-nmsc.adb: Major rewrite of the processing of configuration
9637 attributes for gprbuild. No impact on GNAT tools.
9639 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9640 process configuration attributes: this is done in Prj.Nmsc.Check.
9641 (Recursive_Process): Make a full copy of packages inherited from project
9642 being extended, instead of a shallow copy.
9643 (Process_Project_Tree_Phase_1): New procedure
9644 (Process_Project_Tree_Phase_1): New procedure
9645 (Process): Implementation now uses the two new procedures
9647 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9648 from the project config, not the tree config that no longer exists.
9650 2007-09-26 Vincent Celier <celier@adacore.com>
9652 * Make-lang.in: Update dependencies..
9654 2007-09-26 Vincent Celier <celier@adacore.com>
9656 * osint.adb, osint.ads: Minor reformatting
9658 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9660 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9662 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9663 message to cite use of <> in aggregate component associations rather
9664 than wrongly indicating use of limited aggregates.
9666 2007-09-26 Robert Dewar <dewar@adacore.com>
9668 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9671 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9673 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9674 ancestor of the derived type, the operations are inherited from the
9675 primary dispatch table of the parent.
9676 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9677 when the context is an explicit type conversion.
9679 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9681 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9682 rule for qualified expressions properly, to detect improper conversions
9683 and resolve some cases of overloading.
9685 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9687 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9688 proper kind of reference to the primitive operation, for better source
9690 (Valid_Conversion): A tagged conversion is legal if both operands are
9693 2007-09-26 Robert Dewar <dewar@adacore.com>
9695 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9698 2007-09-26 Vincent Celier <celier@adacore.com>
9700 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9702 2007-09-26 Robert Dewar <dewar@adacore.com>
9704 * s-wchstw.adb: provide messages for run time unit exceptions
9706 * a-witeio.adb: Minor reformatting
9708 * exp_ch13.adb: Minor reformatting
9710 2007-09-26 Sergey Rybin <rybin@adacore.com>
9712 * vms_data.ads: Revise gnatmetric qualifiers.
9713 Add qualified for the new gnatbind option '-y'
9715 * gnat_ugn.texi: Revise the gnatmetric section.
9716 Add entry for new gnatbind option '-y'.
9718 * gnat_rm.texi: Minor spelling correction.
9719 Document restriction on overlaying controlled types
9721 2007-09-26 Vincent Celier <celier@adacore.com>
9723 * makegpr.adb (Link_Executables): Do not fail when the root project has
9724 no sources, but is an extending project.
9726 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9728 * trans.c: Fix misplaced #define.
9730 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9732 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9733 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9735 2007-09-21 Olivier Hainque <hainque@adacore.com>
9737 * utils.c (type_for_nonaliased_component_p): Return false for
9738 all AGGREGATE_TYPEs.
9740 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9742 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9743 object covered by 13.3(19) volatile.
9745 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9749 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9750 in the special VIEW_CONVERT_EXPR case.
9752 2007-09-12 Robert Dewar <dewar@adacore.com>
9754 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9756 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9757 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9758 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9759 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9760 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9761 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9762 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9763 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9764 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9765 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9766 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9767 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9768 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9769 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9770 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9771 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9772 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9773 pragma Compiler_Unit and adds it to relevant library units.
9775 2007-09-12 Ed Schonberg <schonberg@adacore.com>
9777 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9778 a box need not correspond to any component.
9780 2007-09-12 Robert Dewar <dewar@adacore.com>
9782 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9783 the tasking version of the Ada run time when foreign threads are
9784 present and there are no explicit Ada tasks or tasking constructs.
9786 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9788 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
9790 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9791 the usage of switch -y.
9793 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9794 when switch -y is present.
9796 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9797 leap seconds in Ada.Calendar and its children.
9799 2007-09-12 Jose Ruiz <ruiz@adacore.com>
9801 * a-extiti.ads (Timer): The discriminant is a "not null access
9802 constant" in the Reference Manual.
9803 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9805 2007-09-12 Robert Dewar <dewar@adacore.com>
9807 * a-swuwha.adb: Remove junk RM header
9809 2007-09-12 Vincent Celier <celier@adacore.com>
9811 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9814 * g-bytswa.ads: Minor reformatting
9816 2007-09-12 Thomas Quinot <quinot@adacore.com>
9818 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9819 Add new constant Thread_Blocking_IO, always True by default, set False
9820 on a per-runtime basis.
9821 (Need_Netdb_Buffer): New constant.
9823 2007-09-12 Arnaud Charlet <charlet@adacore.com>
9825 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9826 Added renames for corresponding functions in System.Partition_Interface.
9828 2007-09-12 Doug Rupp <rupp@adacore.com>
9830 * Makefile.in: Remove VMS specific System.CRTL packages which are no
9833 * s-crtl-vms64.ads: Removed.
9835 2007-09-12 Olivier Hainque <hainque@adacore.com>
9837 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9838 with discriminant constraints, generalize the code for BIT_FIELDs
9839 to PACKED fields of constant size and propagate DECL_PACKED.
9841 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
9843 * decl.c (array_type_has_nonaliased_component): New predicate.
9844 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9845 set the TYPE_NONALIASED_COMPONENT flag on the type.
9846 <E_Array_Subtype>: Likewise.
9847 * gigi.h (type_for_nonaliased_component_p): Declare.
9848 * utils.c (type_for_nonaliased_component_p): New predicate.
9849 (create_field_decl): Invoke the above predicate to set the
9850 DECL_NONADDRESSABLE_P flag on the field.
9852 2007-09-11 Javier Miranda <miranda@adacore.com>
9854 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9855 in library level record type entities if we are generating statically
9856 allocated dispatch tables.
9858 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9859 importing/exporting the _tag declaration by new code
9860 importing/exporting the dispatch table wrapper. This change allows us
9861 to statically allocate of the TSD.
9862 (Make_DT.Export_DT): New procedure.
9863 (Build_Static_DT): New function.
9864 (Has_DT): New function.
9866 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9867 True_Constant and Current_Value. Required to statically
9868 allocate the dispatch tables.
9869 (Check_Allocator): Make function iterative instead of recursive.
9870 Also return inner allocator node, when present, so that we do not have
9871 to look for that node again in the caller.
9873 2007-09-11 Jan Hubicka <jh@suse.cz>
9875 * misc.c (gnat_expand_body): Kill.
9876 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9878 2007-09-10 Robert Dewar <dewar@adacore.com>
9880 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9881 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9882 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9883 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9884 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9885 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9886 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9887 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9888 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9889 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9890 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9891 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9892 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9893 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9894 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9895 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9896 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9897 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9898 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9899 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9900 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9901 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9902 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9903 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9904 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9905 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9906 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9907 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9908 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9909 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9910 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9911 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9912 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9913 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9914 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9915 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9916 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9917 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9918 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9919 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9920 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9921 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9922 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9923 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9924 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9925 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9926 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9927 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9928 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9929 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9930 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9931 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9932 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9933 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9934 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9935 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9936 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9937 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9938 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9939 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9940 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9941 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9942 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9943 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9944 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9945 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9946 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9947 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9948 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9949 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9950 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9951 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9952 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9953 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9954 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9955 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9956 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9957 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9958 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9959 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9960 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9961 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9962 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9964 2007-09-10 Emmanuel Briot <briot@adacore.com>
9966 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9969 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
9971 * adaint.c (__gnat_translate_vms): new function.
9973 2007-09-10 Gary Dismukes <dismukes@adacore.com>
9974 Thomas Quinot <quinot@adacore.com>
9976 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9977 create an abstract subprogram in the case of 'Input. For 'Output we now
9978 create a real spec/body when the type is abstract, since it can
9979 potentially be called.
9980 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9981 body for 'Output when the type is abstract (only the creation of the
9982 body for 'Input is excluded when the type is abstract).
9983 (Stream_Operation_OK): Add an additional condition in the return
9984 statement, so that False will be returned for TTS_Stream_Input if the
9985 associated tagged type is an abstract extension. Add comments for
9987 (Expand_N_Object_Declaration): For the case of a shared passive
9988 variable, insert init proc call only after the shared variable
9989 procedures have been processed, because the IP call needs to undergo
9990 shared passive variable reference expansion, which requires these
9991 procedures to be available (and elaborated).
9993 2007-09-10 Vincent Celier <celier@adacore.com>
9995 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9996 parameter Runtime_Project.
9998 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10000 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10001 given a box association, the type of the component is discriminated,
10002 and the value of the discriminant is the discriminant of the enclosing
10003 type, retrieve its value from the aggregate itself, where it must have
10006 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10007 to remove other spurious ambiguities on arithmetic operations involving
10008 literals and addresses, on systems where Address is a visible integer
10009 type, when the operator is called in functional notation.
10010 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10011 is legal when the types match, even if the operation is currently
10014 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10016 * sem_ch12.adb (Build_Local_Package): A formal package with no
10017 associations is legal if all formals have defaults. It is not
10018 equivalent to a formal declared with a box.
10020 2007-09-10 Sergey Rybin <rybin@adacore.com>
10022 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10024 2007-09-10 Sergey Rybin <rybin@adacore.com>
10026 * gnat_ugn.texi: Add description of the new '-lratio' option
10027 Update 7.3.1 section about availability of the feature.
10029 2007-09-10 Thomas Quinot <quinot@adacore.com>
10031 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10034 2007-09-10 Olivier Hainque <hainque@adacore.com>
10036 * Makefile.in: (mips-irix section): Activate build of libgmem.
10038 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10040 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10043 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10045 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10046 a debug renaming declaration specially.
10048 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10050 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10051 which a constant renaming is treated as a normal object declaration.
10052 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10053 the N_Indexed_Component case.
10054 <N_Indexed_Component>: Fall through to above case.
10055 <N_Object_Renaming_Declaration>: Return true for all composite types.
10057 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10059 * decl.c (make_packable_type): If the new type has been given BLKmode,
10060 try again to get an integral mode for it.
10062 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10064 Re-apply accidentally reverted change:
10066 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10068 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10069 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10070 and _Unwind_SWord with _sleb128_t.
10072 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10074 * trans.c (convert_with_check): Update call to real_2expN.
10076 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10078 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10079 * utils.c (end_subprog_body): Likewise.
10081 2007-09-03 Nick Clifton <nickc@redhat.com>
10083 * Make-lang.in: Change copyright header to refer to version 3 of
10084 the GNU General Public License and to point readers at the
10085 COPYING3 file and the FSF's license web page.
10086 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10087 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10088 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10089 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10092 2007-08-31 Vincent Celier <celier@adacore.com>
10096 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10097 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10098 (Check_Version_And_Help): New procedure in package Switch to process
10099 switches --version and --help.
10100 Use Check_Version_And_Help in GNAT tools
10103 (Compile_Sources): Make sure that sources that are "excluded" are not
10105 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10106 project file is used.
10107 (Version_Switch): Remove, moved to Switch
10108 (Help_Switch): Remove, moved to Switch
10109 (Display_Version): Remove, moved to Switch
10111 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10112 package Switch to process switches --version and --help.
10113 (Display_Version): New procedure
10115 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10117 2007-08-31 Javier Miranda <miranda@adacore.com>
10119 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10122 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10124 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10125 (Mark_Non_Null): If the node for which we just generated an access check
10126 is a reference to an *in* parameter and the reference appears in the
10127 declarative part of a subprogram body, mark the node as known non null.
10129 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10131 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10132 structure of E_Exception to reflect the new flag.
10133 (Is_Raised, Set_Is_Raised): New inlined routines.
10134 Update the usage of available flag to reflect the addition of Is_Raised.
10135 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10136 (Write_Entity_Flags): Write the status of flag Is_Raised.
10137 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10138 spurious ambiguities when integer literals appear in the context of an
10139 address type that is a visible integer type.
10141 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10142 exceptions never being raised.
10143 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10146 2007-08-31 Javier Miranda <miranda@adacore.com>
10148 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10149 statement when compiling under restriction No_Exceptions_Proparation.
10151 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10153 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10154 initialization aggregate for the type, generate itype references for
10155 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10157 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10159 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10160 library-level package renaming, pass the declaration associated with
10161 the renaming's special debug variable to Qualify_Entity_Names to ensure
10162 that its encoded name is properly qualified.
10164 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10165 occurring in the list of entities to qualify, and do not attempt to
10166 traverse an entity list in that case. Variables associated with
10167 ` library-level package renamings can now occur in the table.
10169 * exp_dbug.ads: Revise documentation of the encoding for renaming
10172 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10174 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10175 access type points to an unconstrained array.
10177 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10179 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10182 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10183 simple redundant qualifications. The check is performed whenever the
10184 expression is a non-overloaded identifier.
10185 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10186 to include loop parameters.
10187 (Valid_Conversion): Avoid generation of spurious error message.
10189 2007-08-31 Bob Duff <duff@adacore.com>
10191 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10192 concatenations of string literals into a single literal, in order to
10193 avoid very deep recursion in the front end, which was causing stack
10196 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10197 string, and the right operand is a string literal (the case of "" &
10198 "..."), optimize by avoiding copying the right operand -- just use the
10199 value of the right operand directly.
10201 * stringt.adb (Store_String_Chars): Optimize by growing the
10202 String_Chars table all at once, rather than appending characters one by
10204 (Write_String_Table_Entry): If the string to be printed is very long,
10205 just print the first few characters, followed by the length. Otherwise,
10206 doing "pn(n)" in the debugger can take an extremely long time.
10208 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10209 Store_String_Char with Store_String_Chars.
10211 2007-08-31 Vincent Celier <celier@adacore.com>
10213 * prj-attr.adb: Add new attribute Excluded_Source_Files
10215 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10216 Locally_Removed_Files.
10218 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10220 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10222 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10223 clauses of subunits, ignore limited_with_clauses that are illegal and
10224 have not been fully analyzed.
10226 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10228 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10229 flag, for effiency. It is called when analyzing arithmetic operators
10230 and also for actuals in calls that are universal_integers. The flag is
10231 set for the predefined type address, and for any type or subtype
10234 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10235 Universal_Integer, when the formal is a descendent of address and the
10236 call appears in user code.
10237 (Analyze_Selected_Component): if the prefix is a private extension, the
10238 tag component is visible.
10240 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10243 2007-08-31 Robert Dewar <dewar@adacore.com>
10245 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10246 sensitive file name systems to avoid unexpected mismatch in Vista.
10248 2007-08-31 Vincent Celier <celier@adacore.com>
10250 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10252 2007-08-31 Vincent Celier <celier@adacore.com>
10254 * symbols-vms.adb (Initialize): Read symbol files with continuation
10256 (Finalize): If symbol is long, split the line
10258 2007-08-31 Vincent Celier <celier@adacore.com>
10260 * fmap.ads: Minor comment updates
10262 2007-08-31 GNAT Script <nobody@adacore.com>
10264 * Make-lang.in: Makefile automatically updated
10266 2007-08-31 Bob Duff <duff@adacore.com>
10268 * sinfo.ads: Minor comment fix.
10270 2007-08-31 Thomas Quinot <quinot@adacore.com>
10272 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10273 with implementation.
10274 Documentation cleanup only.
10276 2007-08-31 Sergey Rybin <rybin@adacore.com>
10278 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10279 gnatpp '--separate-stmt-name' option.
10280 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10283 * gnat_ugn.texi: Add description for the new gnatpp
10284 '--separate-stmt-name' and '--use-on-new-line' options.
10286 2007-08-31 Ben Elliston <bje@au.ibm.com>
10288 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10289 when compiling for powerpc64-*-linux.
10290 * system-linux-ppc64.ads: New file.
10292 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10294 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10297 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10299 * misc.c (gnat_type_max_size): Constify.
10301 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10303 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10304 associated with Standard_Debug_Renaming_Type, to be used as the type of
10305 the special variables whose names provide debugger encodings for
10306 renaming declarations.
10308 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10309 (Set_Debug_Renaming_Link): Change to set Node25.
10310 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10311 (Write_Field25_Name): Add case for E_Variable to output
10312 "Debug_Renaming_Link".
10313 (Write_Field23_Name): Correct the output string for "Limited_View".
10315 * exp_dbug.adb: Add with and use of Tbuild.
10316 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10317 and literal with creation of a variable of type
10318 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10319 and the entity of the renaming declaration.
10320 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10321 part of the name of a variable that has a Debug_Renaming_Link.
10323 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10324 special type to be associated with variables that provide debugger
10325 encodings for renaming declarations.
10327 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10328 Ed Schonberg <schonberg@adacore.com>
10329 Javier Miranda <miranda@adacore.com>
10331 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10332 ancestor part given by an aggregate to test for an unchecked conversion,
10333 since this can occur in some cases when the ancestor part is a function
10334 call, and we don't want to fall into the recursive call to this
10335 procedure in that case.
10337 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10338 stream attributes on limited types to account for user-specified
10339 attributes as well as whether Input (resp. Output) becomes available
10340 due to Read (resp. Write) being available for the type. Change Boolean
10341 variable to the more accurate name
10342 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10343 double-"not" predicate at beginning of return statement to more
10344 understandable form.
10346 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10347 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10348 in a block statement and use that as the first statement of the
10349 expanded return rather than incorrectly using the handled sequence as
10350 the first statement.
10352 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10353 operation, generate an explicit freeze node for it rather than
10354 generating extra formals, to ensure that gigi has the proper order of
10355 elaboration for anonymous subtypes in the signature of the subprograms.
10356 (Build_In_Place_Formal): Move assertion to beginning of loop.
10357 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10358 applied to a function call (occurs for some cases of 'Input).
10359 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10360 applied to a function call (occurs for some cases of 'Input).
10362 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10363 2005, generate an extended return statement enclosing the result object
10366 * freeze.adb (Freeze_Record_Type): Extend the current management of
10367 components that are access type with an allocator as default value: add
10368 missing support to the use of qualified expressions of the
10369 allocator (which also cause freezing of the designated type!)
10370 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10371 dispatching operation, since extra formals may be needed by calls to
10372 build-in-place functions (such as stream 'Input).
10374 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10375 formals for 'Constrained and accessibility level in the case of a
10376 predefined dispatching operation.
10378 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10379 point, no need to find the parent node.
10381 2007-08-16 Javier Miranda <miranda@adacore.com>
10383 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10384 and entry barriers.
10386 2007-08-16 Javier Miranda <miranda@adacore.com>
10388 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10389 is not really required and can introduce regression with the debugger.
10390 The original problem is fixed with the patch written for checks.adb.
10392 2007-08-16 Thomas Quinot <quinot@adacore.com>
10394 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10395 Range_Check on Allocated_Table.
10397 2007-08-16 Vincent Celier <celier@adacore.com>
10399 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10400 Including_Non_Switch set to False.
10401 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10402 Including_Non_Switch set to False.
10404 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10405 parameter Including_Non_Switch, defaulted to True. When
10406 Including_Non_Switch is False, options that are not switches and
10407 appear as relative path are not converted to absolute paths.
10409 2007-08-16 Nicolas Roche <roche@adacore.com>
10411 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10414 * Make-lang.in: Update dependencies
10416 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10418 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10419 currently inspected is a selected component, retrieve the entity of
10421 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10422 from the immediate ancestor of Main_Unit_Entity.
10423 (Install_Limited_Withed_Unit): Do not install the limited view of
10424 package P if P is reachable through an ancestor chain from package C
10425 and C also has a with clause for P in its body.
10426 (Has_Limited_With_Clause): New routine.
10427 (Has_With_Clause): New routine.
10429 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10431 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10432 generic for an enclosing instance is a global reference, even though
10433 its scope is the enclosing instance.
10435 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10436 Javier Miranda <miranda@adacore.com>
10438 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10439 initialize a limited object.
10440 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10442 Make sure Has_Complex_Representation is inherited by derived type.
10444 2007-08-16 Robert Dewar <dewar@adacore.com>
10446 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10449 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10451 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10452 implements an operation inherited from a progenitor interface, verify
10453 that they are subtype-conformant.
10455 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10456 Bob Duff <duff@adacore.com>
10457 Nicolas Setton <setton@adacore.com>
10459 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10460 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10461 the statement which is being resolved comes from a predefined library
10462 unit, all non-predefined library interpretations are skipped.
10463 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10464 but the "&" is user defined, give an error, because the folding would
10467 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10468 the parser has folded a long sequence of concatenations of string
10471 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10472 and "JMP_BUF" variables as artificial.
10473 (N_String_Literal): Do not use alloca for very long string literals. Use
10474 xmalloc/free instead. Otherwise the stack might overflow.
10476 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10479 2007-08-16 Vincent Celier <celier@adacore.com>
10481 * vms_conv.adb (Process_Argument): Ensure that project related options
10482 are not put in the -cargs section when using GNAT COMPILE.
10484 2007-08-16 Robert Dewar <dewar@adacore.com>
10486 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10488 2007-08-16 Thomas Quinot <quinot@adacore.com>
10490 * a-tags.adb: Minor reformatting.
10492 2007-08-16 Bob Duff <duff@adacore.com>
10494 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10496 2007-08-14 Thomas Quinot <quinot@adacore.com>
10498 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10499 s-osinte-interix.ads, system-interix.ads: Removed.
10501 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10503 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10504 calls to Check_Within_Time_Bounds.
10505 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10506 (Difference): Account for possible rounding of the resulting difference
10508 2007-08-14 Robert Dewar <dewar@adacore.com>
10510 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10511 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10512 s-osinte-solaris.adb, s-osinte-solaris.ads,
10513 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10515 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10516 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10518 2007-08-14 Robert Dewar <dewar@adacore.com>
10519 Ed Schonberg <schonberg@adacore.com>
10521 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10522 Suppress unmodified in-out parameter warning in some cases
10523 This patch is a also fairly significant change to the way suppressible
10524 checks are handled.
10526 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10527 needed for access to concurrent record types generated by the expander.
10528 (Generate_Range_Check): When generating a temporary to capture the
10529 value of a conversion that requires a range check, set the type of the
10530 temporary before rewriting the node, so that the type is always
10531 properly placed for back-end use.
10532 (Apply_Float_Conversion_Check): Handle case where the conversion is
10534 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10535 for a protected type in order to examine its discriminants.
10537 2007-08-14 Robert Dewar <dewar@adacore.com>
10538 Gary Dismukes <dismukes@adacore.com>
10539 Ed Schonberg <schonberg@adacore.com>
10540 Thomas Quinot <quinot@adacore.com>
10542 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10543 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10544 tests optimized out.
10546 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10547 (Get_Allocator_Final_List): For the case of an anonymous access type
10548 that has a specified Associated_Final_Chain, do not go up to the
10550 (Expand_N_Type_Conversion): Test for the case of renamings of access
10551 parameters when deciding whether to apply a run-time accessibility
10553 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10554 aggregate code before allocator, and ahead of declaration for
10555 temporary, to prevent access before elaboration when the allocator is
10556 an actual for an access parameter.
10557 (Expand_N_Type_Conversion): On an access type conversion involving an
10558 access parameter, do not apply an accessibility check when the
10559 operand's original node was an attribute other than 'Access. We now
10560 create access conversions for the expansion of 'Unchecked_Access and
10561 'Unrestricted_Access in certain cases and clearly accessibility should
10562 not be checked for those.
10564 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10565 includes a type conversion of a packed component that has been expanded,
10566 recover the original expression for the object, and use this expression
10567 in the post-call assignment statement, so that the assignment is made
10568 to the object and not to a back-end temporary.
10569 (Freeze_Subprogram): In case of primitives of tagged types not defined
10570 at the library level force generation of code to register the primitive
10571 in the dispatch table. In addition some code reorganization has been
10572 done to leave the implementation clear.
10573 (Expand_Call): When expanding an inherited implicit conversion,
10574 preserve the type of the inherited function after the intrinsic
10575 operation has been expanded.
10577 * exp_ch2.ads, exp_ch2.adb
10578 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10579 of an entry formal appearing in an assignment statement does not assign
10581 (Expand_Current_Value): Instead of calling a routine to determine
10582 whether the prefix of an attribute reference should be optimized or
10583 not, prevent the optimization of such prefixes all together.
10585 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10586 component whose prefix is known to be of an access type is an implicit
10587 dereference and does not assign to the prefix.
10589 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10590 Robert Dewar <dewar@adacore.com>
10592 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10593 itype is visited, make an entry into table to link associated node and
10595 Add comments and correct harmless error in Build_NCT_Hash_Tables
10596 (Array_Aggr_Subtype): Associate each itype created for an index type to
10597 the corresponding range construct, and not to the aggregate itself. to
10598 maintain a one-to-one correspondence between itype and its associated
10599 node, to prevent errors when complex expression is copied.
10600 Fix mishandling of multiple levels of parens
10602 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10603 treatment of limited views uniform for all visible declarations in a
10604 limited_withed package.
10605 (New_Copy_Tree): If hash table is being used and itype is visited,
10606 make an entry into table to link associated node and new itype.
10607 (Resolve_Record_Aggregate): Do not add an others box association for a
10608 discriminated record component that has only discriminants, when there
10609 is a box association for the component itself.
10611 * par-ch4.adb: Fix mishandling of multiple levels of parens
10613 2007-08-14 Robert Dewar <dewar@adacore.com>
10615 * comperr.adb: Fix problem with suppressing warning messages from gigi
10617 * erroutc.ads, erroutc.adb, errout.ads,
10618 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10619 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10620 possible trailing spaces.
10621 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10622 Fix problem with suppressing warning messages from back end
10623 Improve handling of deleted warnings
10626 Fix problem with suppressing warning messages from back end
10627 Handle setting of Static_Dispatch_Tables flag.
10630 Fix problem with suppressing warning messages from back end
10632 * exp_intr.adb: Improve handling of deleted warnings
10634 2007-08-14 Robert Dewar <dewar@adacore.com>
10636 * debug.adb: Improve -gnatdI to cover all cases of serialization
10637 Add documentation of dZ, d.t
10639 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10641 (Sprint_Node_Actual): Generate new output associated with implicit
10642 importation and implicit exportation of object declarations.
10644 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10645 Robert Dewar <dewar@adacore.com>
10646 Javier Miranda <miranda@adacore.com>
10647 Gary Dismukes <dismukes@adacore.com>
10649 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10650 to make treatment of limited views uniform for all visible declarations
10651 in a limited_withed package.
10652 Improve warnings for in out parameters
10653 (Set_Related_Interaface/Related_Interface): Allow the use of this
10654 attribute with constants.
10655 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10656 Warn on duplicate pragma Preelaborable_Initialialization
10658 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10659 generation of a freezing node to ensure proper management of null
10660 excluding access types in the backend.
10661 (Create_Extra_Formals): Test base type of the formal when checking for
10662 the need to add an extra accessibility-level formal. Pass the entity E
10663 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10664 originally being done in a couple of cases), to ensure that the
10665 Extra_Formals list gets set on the entity E when the first entity is
10667 (Conforming_Types): Add missing calls to Base_Type to the code that
10668 handles anonymous access types. This is required to handle the
10669 general case because Process_Formals builds internal subtype entities
10670 to handle null-excluding access types.
10671 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10672 functions that need it, even when not marked Requires_Overriding.
10673 Improve warnings for in out parameters
10674 (Analyze_Function_Return): Warn for disallowed null return
10675 Warn on return from procedure with unset out parameter
10676 Ensure consistent use of # in error messages
10677 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10678 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10679 the implicit conversion of the expression done for anonymous access
10680 types. This is required to generate the code of the null excluding
10681 check (if required).
10683 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10684 A formal parameter is never publicly referenceable outside of its body.
10685 (Check_References): For an unreferenced formal parameter in an accept
10686 statement, use the same warning circuitry as for subprogram formal
10688 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10689 Output_Unreferenced_Messages, containing the part of that routine that
10690 is now reused for entry formals as described above.
10691 (Goto_Spec_Entity): New function
10692 (Check_References): Do not give IN OUT warning for dispatching operation
10693 Improve warnings for in out parameters
10694 (Test_Ref): Check that the entity is not undefinite before calling
10695 Scope_Within, in order to avoid infinite loops.
10696 Warn on return from procedure with unset out parameter
10697 Improved warnings for unused variables
10699 2007-08-14 Robert Dewar <dewar@adacore.com>
10700 Javier Miranda <miranda@adacore.com>
10701 Gary Dismukes <dismukes@adacore.com>
10703 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10704 (Expand_N_Attribute_Reference): Further unify the handling of the
10705 three forms of access attributes, using common code now for all three
10706 cases. Add a test for the case of applying an access attribute to
10707 an explicit dereference when the context is an access-to-interface
10708 type. In that case we need to apply the conversion to the prefix
10709 of the explicit dereference rather than the prefix of the attribute.
10710 (Attribute_Version, UET_Address): Set entity as internal to ensure
10711 proper dg output of implicit importation.
10712 (Expand_Access_To_Type): Removed.
10713 (Expand_N_Attribute_Reference): Merge the code from the three cases
10714 of access attributes, since the processing is largely identical for
10715 these cases. The substantive fix here is to process the case of a
10716 type name prefix (current instance case) before handling the case
10717 of interface prefixes.
10719 2007-08-14 Thomas Quinot <quinot@adacore.com>
10720 Ed Schonberg <schonberg@adacore.com>
10721 Javier Miranda <miranda@adacore.com>
10722 Robert Dewar <dewar@adacore.com>
10724 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10725 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10726 type that is an anonymous access to controlled object, establish
10727 an associated finalization chain to avoid corrupting the global
10728 finalization list when a dynamically allocated object designated
10729 by such a component is deallocated.
10730 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10731 functions that need it, even when not marked Requires_Overriding.
10732 (Initialize_Tag): Replace call to has_discriminants by call to
10733 Is_Variable_Size_Record in the circuitry that handles the
10734 initialization of secondary tags.
10735 (Is_Variable_Size_Record): New implementation.
10736 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10737 Suppress_Initialization pragma for a derived type.
10738 (Is_Variable_Size_Record): New subprogram.
10739 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10740 initial version of this routine and also fixes problems causing
10741 incomplete initialization of the table of interfaces.
10742 (Build_Init_Procedure): Improve the generation of code to initialize the
10743 the tag components of secondary dispatch tables.
10744 (Init_Secondary_Tags): New implementation that simplifies the previous
10745 version of this routine.
10746 (Make_DT): Add parameter to indicate when type has been frozen by an
10747 object declaration, for diagnostic purposes.
10748 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10749 diagnose attemps to freeze a subprogram when some untagged type of its
10750 profile is a private type whose full view has not been analyzed yet.
10751 (Freeze_Array_Type): Generate init proc for packed array if either
10752 Initialize or Normalize_Scalars is set.
10753 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10754 constructing the new profile, copy the null_exclusion indicator for each
10755 parameter, to ensure full conformance of the new body with the spec.
10757 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10758 Create wrappers for constructor functions that need it, even when not
10759 marked Requires_Overriding.
10760 (Covers): Handle properly designated types of anonymous access types,
10761 whose non-limited views are themselves incomplete types.
10762 (Add_Entry): Use an entity to store the abstract operation which hides
10764 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10765 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10766 initialization aggregate.
10767 (Function_Interp_May_Be_Hidden): Rename to
10768 Function_Interp_Has_Abstract_Op.
10769 (Has_Compatible_Type): Remove machinery that skips interpretations if
10770 they are labeled as potentially hidden by an abstract operator.
10771 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10772 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10773 (Write_Overloads): Output the abstract operator if present.
10774 (Add_Entry): Before inserting a new entry into the interpretation table
10775 for a node, determine whether the entry will be disabled by an abstract
10777 (Binary_Op_Interp_May_Be_Hidden): New routine.
10778 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10780 (Function_Interp_May_Be_Hidden): New routine.
10781 (Has_Compatible_Type): Do not consider interpretations hidden by
10782 abstract operators when trying to determine whether two types are
10784 (Has_Hidden_Interp): New routine.
10785 (Set_May_Be_Hidden_Interp): New routine.
10786 (Write_Overloads): Write the status of flag May_Be_Hidden.
10788 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10789 Javier Miranda <miranda@adacore.com>
10791 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10792 types declared in the declarative part of a nested package body or in
10793 the proper body of a stub.
10794 (Set_All_DT_Position): Add missing check to avoid wrong assignation
10795 of the same dispatch table slot to renamed primitives.
10796 (Make_Select_Specific_Data_Table): Handle private types.
10797 (Tagged_Kind): Handle private types.
10798 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10799 output of implicit importation and exportation.
10800 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10801 first formal of the thunk is always associated with the controlling
10802 type. In addition perform the following code cleanup: remove formal
10803 Thunk_Alias which is no longer required, cleanup evaluation of the
10804 the controlling type, and update the documentation.
10805 Replace occurrence of Default_Prim_Op_Count by
10806 Max_Predef_Prims. Addition of compile-time check to verify
10807 that the value of Max_Predef_Prims is correct.
10808 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10809 (Make_DT): Add parameter to indicate when type has been frozen by an
10810 object declaration, for diagnostic purposes.
10811 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10812 construction of statically allocated dispatch tables.
10813 (Make_DT): In case of library-level tagged types export the declaration
10814 of the primary tag. Remove generation of tags (now done by Make_Tags).
10815 Additional modifications to handle non-static generation of dispatch
10816 tables. Take care of building tables for asynchronous interface types
10817 (Make_Tags): New subprogram that generates the entities associated with
10818 the primary and secondary tags of Typ and fills the contents of Access_
10819 Disp_Table. In case of library-level tagged types imports the forward
10820 declaration of the primary tag that will be declared later by Make_DT.
10821 (Expand_Interface_Conversion): In case of access types to interfaces
10822 replace an itype declaration by an explicit type declaration to avoid
10823 problems associated with the scope of such itype in transient blocks.
10825 2007-08-14 Robert Dewar <dewar@adacore.com>
10826 Ed Schonberg <schonberg@adacore.com>
10827 Javier Miranda <miranda@adacore.com>
10829 * exp_util.ads, exp_util.adb:
10830 This patch replaces a number of occurrences of explicit tests for N_Null
10831 with calls to Known_Null. This improves tracking of null values, since
10832 Known_Null also catches null constants, and variables currently known to
10833 be null, so we get better tracking.
10834 (Ensure_Defined): create an itype reference only in the scope of the
10836 (Side_Effect_Free): A selected component of an access type that
10837 denotes a component with a rep clause must be treated as not
10838 side-effect free, because if it is part of a linked structure its
10839 value may be affected by a renaming.
10840 (Expand_Subtype_From_Expr): For limited objects initialized with build
10841 in place function calls, do nothing; otherwise we prematurely introduce
10842 an N_Reference node in the expression initializing the object, which
10843 breaks the circuitry that detects and adds the additional arguments to
10844 the called function. Bug found working in the new patch for statically
10845 allocated dispatch tables.
10846 (Is_Library_Level_Tagged_Type): New subprogram.
10847 (Remove_Side_Effects): If the expression of an elementary type is an
10848 operator treat as a function call.
10849 (Make_Literal_Range): If the index type of the array is not integer, use
10850 attributes properly to compute the constraint on the resulting aggregate
10853 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10854 class-wide type whose base type is an incomplete private type, leave
10855 class-wide type unfrozen so that freeze nodes can be generated
10856 properly at a later point.
10857 (Freeze_Entity, array case): Handle case of pragma Pack and component
10858 size attributre clause for same array.
10860 2007-08-14 Vincent Celier <celier@adacore.com>
10862 * prj.ads, prj.adb: Update Project Manager to new attribute names for
10864 Allow all valid declarations in configuration project files
10865 (Reset): Initialize all tables and hash tables in the project tree data
10866 Major update of the Project Manager and of the project aware tools,
10867 including gprmake, so that the same sources in the GNAT repository
10868 can be used by gprbuild.
10869 (Slash_Id): Change type to be Path_Name_Type
10870 (Slash): Return a Path_Name_Type instead of a File_Name_Type
10872 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10874 Update Project Manager to new attribute names for ghprbuild
10875 Allow all valid declarations in configuration project files
10876 Major update of the Project Manager and of the project aware tools,
10877 including gprmake, so that the same sources in the GNAT repository
10878 can be used by gprbuild.
10881 Major update of the Project Manager and of the project aware tools,
10882 including gprmake, so that the same sources in the GNAT repository
10883 can be used by gprbuild.
10885 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10886 insensitive flag for attributes with optional index.
10887 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10888 array attribute, put the index in lower case.
10889 Update Project Manager to new attribute names for ghprbuild
10890 Allow all valid declarations in configuration project files
10891 Major update of the Project Manager and of the project aware tools,
10892 including gprmake, so that the same sources in the GNAT repository
10893 can be used by gprbuild.
10895 * prj-env.ads, prj-env.adb:
10896 Major update of the Project Manager and of the project aware tools,
10897 including gprmake, so that the same sources in the GNAT repository
10898 can be used by gprbuild.
10899 (Get_Reference): Change type of parameter Path to Path_Name_Type
10901 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10902 removing '-' from the path to start with the first character of the
10904 Major update of the Project Manager and of the project aware tools,
10905 including gprmake, so that the same sources in the GNAT repository
10906 can be used by gprbuild.
10907 Major update of the Project Manager and of the project aware tools,
10908 including gprmake, so that the same sources in the GNAT repository
10909 can be used by gprbuild.
10911 * prj-nmsc.ads, prj-nmsc.adb:
10912 Update Project Manager to new attribute names for ghprbuild
10913 Allow all valid declarations in configuration project files
10914 (Search_Directories): Detect subunits that are specified with an
10915 attribute Body in package Naming. Do not replace a source/unit in the
10916 same project when the order of the source dirs are known. Detect
10917 duplicate sources/units in the same project when the order of the
10918 source dirs are not known.
10919 (Check_Ada_Name): Allow all identifiers that are not reserved words
10921 Major update of the Project Manager and of the project aware tools,
10922 including gprmake, so that the same sources in the GNAT repository
10923 can be used by gprbuild.
10924 (Look_For_Sources): If the list of sources is empty, set the object
10925 directory of non extending project to nil.
10926 Change type of path name variables to be Path_Name_Type
10927 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10928 otherwise creating missing directories will fail.
10930 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10931 prj-part.ads, prj-part.adb:
10932 Major update of the Project Manager and of the project aware tools,
10933 including gprmake, so that the same sources in the GNAT repository
10934 can be used by gprbuild.
10936 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10937 insensitive flag for attributes with optional index.
10938 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10939 array attribute, put the index in lower case.
10940 (Parse_Variable_Reference): Allow the current project name to be used in
10941 the prefix of an attribute reference.
10943 * prj-util.ads, prj-util.adb
10944 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10945 defaulted to False. When True, always check against indexes in lower
10948 * snames.ads, snames.h, snames.adb:
10949 Update Project Manager to new attribute names for gprbuild
10950 Allow all valid declarations in configuration project files
10952 2007-08-14 Robert Dewar <dewar@adacore.com>
10953 Ed Schonberg <schonberg@adacore.com>
10955 * opt.ads: Warning for non-local exception propagation now off by
10957 New switch -gnatI to disable representation clauses
10958 Implement new pragma Implicit_Packing
10961 Warning for non-local exception propagation now off by default
10962 Add warning for unchecked conversion of pointers wi different
10964 New switch -gnatI to disable representation clauses
10966 * usage.adb: new switch -gnatyS
10968 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10969 note that aggregates of anonymous array types are not flagged.
10970 -gnatwc now includes membership tests optimized away
10971 -gnatw.x warnings are now off by default
10972 Added conditional compilation Appendix
10973 Add documentation of -gnatI
10974 Add documentation for new -gnatyS style check
10975 Update documentation about SAL and auto-init on Windows.
10978 Add documentation for pragma Check_Name and 'Enabled attribute
10979 Document that Eliminate on dispatching operation is ignored
10980 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10981 Document pragma Main
10982 Document pragma Implicit_Packing
10984 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10985 different conventions
10986 New switch -gnatI to disable representation clauses
10988 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10989 recognized, report the invalid characters including "-gnat" instead of
10990 just the first character in the switch.
10991 New switch -gnatI to disable representation clauses
10992 Set Warn_On_Object_Renames_Function true for -gnatg
10994 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10995 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10996 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10997 to switch -aP (add directory to project search dir).
10999 * par-prag.adb: Implement new pragma Implicit_Packing
11001 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11002 type as having a non-standard representation, to force expansion on
11003 conversion to related types.
11004 (Analyze_Pragma): Warn on misspelled pragma
11005 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11006 Ensure consistent use of # in error messages
11007 Implement pragma Implicit_Packing
11009 2007-08-14 Olivier Hainque <hainque@adacore.com>
11010 Eric Botcazou <ebotcazou@adacore.com>
11012 * targtyps.c (get_target_maximum_default_alignment): New function.
11014 that the compiler might choose by default for a type or object.
11015 (get_target_default_allocator_alignment): New function. Alignment known
11016 to be honored by the target default allocator.
11017 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11018 we might accept for any type or object on the target.
11019 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11021 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11022 (get_target_default_allocator_alignment): Likewise.
11023 (get_target_maximum_allowed_alignment): Likewise.
11026 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11027 result of a function call, first try to use a stabilized reference for
11028 a constant renaming too.
11029 (validate_alignment): Use target_maximum_allowed_alignment instead of
11030 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11031 (gnat_to_gnu_entity): Use common nodes directly.
11032 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11033 alignment and size for the object.
11034 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11035 and N_Procedure_Call_Statement.
11036 (takes_address): Rename to lvalue_required_p, add third parameter
11037 'aliased' and adjust recursive calls.
11038 <N_Indexed_Component>: Update 'aliased' from the array type.
11039 <N_Selected_Component>: New case.
11040 <N_Object_Renaming_Declaration>: New Likewise.
11041 (Identifier_to_gnu): Adjust for above changes.
11042 (maybe_stabilize_reference) <CONST_DECL>: New case.
11044 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11045 between type variants.
11046 (build_simple_component_ref): Likewise.
11047 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11048 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11049 aligning type circuitry for allocations from the default storage pool.
11050 (build_allocator): Likewise.
11051 (build_simple_component_ref): Manually fold the reference for a
11052 constructor if the record type contains a template.
11054 * utils.c (value_zerop): Delete.
11055 (gnat_init_decl_processing): Emit debug info for common types.
11056 (rest_of_record_type_compilation): If a union contains a field
11057 with a non-constant qualifier, treat it as variable-sized.
11058 (finish_record_type): Give the stub TYPE_DECL a name.
11059 (rest_of_record_type_compilation): Likewise.
11060 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11061 types are equivalent array types.
11062 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11063 even if the type is not passed by reference.
11064 (static_ctors, static_dtors): Delete.
11065 (end_subprog_body): Do not record constructors and destructors.
11066 (build_global_cdtor): Delete.
11067 (gnat_write_global_declarations): Do not call build_global_cdtor.
11069 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11070 -fRTS=rtp is specified.
11071 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11074 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11075 of the personality function with SJLJ exceptions.
11077 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11078 the name of the personality function with SJLJ exceptions.
11080 2007-08-14 Robert Dewar <dewar@adacore.com>
11081 Ed Schonberg <schonberg@adacore.com>
11083 * par.ads, par.adb: Improve handling of extra right parens.
11084 (Par): Remove flag From_Limited_With_Clause.
11086 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11087 Improve handling of extra right parens.
11089 2007-08-14 Robert Dewar <dewar@adacore.com>
11091 * par-tchk.adb (TF_Semicolon): Improve error recovery
11093 2007-08-14 Robert Dewar <dewar@adacore.com>
11094 Ed Schonberg <schonberg@adacore.com>
11096 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11097 enumeration type, mark all literals as referenced.
11098 (Eval_Attribute, case 'Image): If the argument is an enumeration
11099 literal and names are available, constant-fold but mark nevertheless as
11101 Clean up function names.
11102 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11104 (Requires_Simple_Name_Prefix): Removed.
11106 2007-08-14 Robert Dewar <dewar@adacore.com>
11107 Ed Schonberg <schonberg@adacore.com>
11109 * sem_ch11.adb: Improved warnings for unused variables
11111 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11112 is a synchronized interface, the derived type is limited.
11113 (Analyze_Object_Declaration): Mark the potential coextensions in the
11114 definition and expression of an object declaration node.
11115 (Build_Derived_Type): For the completion of a private type declaration
11116 with a derived type declaration, chain the parent type's representation
11117 items to the last representation item of the derived type (not the
11118 first one) if they are not present already.
11119 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11120 object declaration of forward references to tags.
11121 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11122 subprogram types can appear as access discriminants of synchronized
11124 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11125 given in prefixed form as a selected component.
11126 (Process_Discriminants): If not all discriminants have defaults, place
11127 error message on a default that is present.
11128 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11129 extend a synchronized tagged type.
11130 Improved warnings for unused variables
11131 (Is_Visible_Component): Fix a visibility hole on a component inherited
11132 by a private extension when parent is itself declared as a private
11133 extension, and the derivation is in a child unit.
11134 (Find_Hidden_Interface): Move spec from the package body.
11136 2007-08-14 Robert Dewar <dewar@adacore.com>
11137 Ed Schonberg <schonberg@adacore.com>
11139 * sem_ch5.adb: Improve warnings on redundant assignments
11141 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11143 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11144 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11145 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11146 is set to False. Improves handling of Known_[Not_]Null.
11147 (Wrong_Type): Special case address arithmetic attempt
11148 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11149 abstract interfaces just using the partial view of private types.
11150 (Has_Abstract_Interfaces): Add new formal to allow checking types
11151 covering interfaces using the partial view of private types.
11152 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11153 component still needs to be defined in this case, but is never
11154 initialized as VMs are using other dispatching mechanisms.
11155 (Abstract_Interface_List): For a protected type, use base type to get
11156 proper declaration.
11157 Improve warnings on redundant assignments
11158 (Is_Variable): Handle properly an implicit dereference of a prefixed
11160 (Build_Actual_Subtype): If this is an actual subtype for an
11161 unconstrained formal parameter, use the sloc of the body for the new
11162 declaration, to prevent anomalises in the debugger.
11164 2007-08-14 Robert Dewar <dewar@adacore.com>
11166 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11167 dispatching operation
11169 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11170 Gary Dismukes <dismukes@adacore.com>
11173 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11174 expanded aggregate code before allocator, and ahead of declaration for
11175 temporary, to prevent access before elaboration when the allocator is
11176 an actual for an access parameter.
11177 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11178 the TSD and the table of interfaces.
11179 (Convert_To_Assignments): Augment the test for delaying aggregate
11180 expansion for limited return statements to include the case of extended
11181 returns, to prevent creation of an unwanted transient scope.
11182 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11183 (Expand_Array_Aggregate): Handle aggregates associated with
11184 statically allocated dispatch tables.
11185 (Expand_Record_Aggregate): Handle aggregates associated with
11186 statically allocated dispatch tables.
11187 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11188 of anonymous access type.
11190 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11192 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11193 is a variable that renames a slice, use the variable itself in the
11194 expannsion when the renamed expression itself may be modified between
11195 the declaration of the renaming and the array assignment.
11197 2007-08-14 Jerome Guitton <guitton@adacore.com>
11199 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11200 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11201 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11202 New functions; dummy implementations.
11204 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11205 functions, used to implement the multi-tasks mode routines on VxWorks.
11207 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11208 New functions, thin
11209 binding to the VxWorks routines which have changed between VxWorks 5
11211 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11212 which are not callable from a RTP.
11214 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11215 implemented for the multi-tasks mode on VxWorks 5 and 6.
11217 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11219 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11222 2007-08-14 Vincent Celier <celier@adacore.com>
11224 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11225 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11226 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11227 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11228 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11229 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11230 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11232 (Major_Id_Name): New function.
11233 mlib-tgt.ads/mlib.tgt.adb:
11234 (Library_Major_Minor_Id_Supported): New function, default returns True
11235 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11236 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11237 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11238 Implementation of Library_Major_Minor_Id_Supported returns False
11240 (Clean_Library_Directory): If major/minor ids are supported, clean all
11242 Major update of the Project Manager and of the project aware tools,
11243 including gprmake, so that the same sources in the GNAT repository
11244 can be used by gprbuild.
11246 2007-08-14 Olivier Hainque <hainque@adacore.com>
11248 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11249 (GCC_ZCX_Support): Switch to True.
11251 * s-intman-solaris.adb (Notify_Exception): Call
11252 Adjust_Context_For_Raise before raising, as expected for signal
11253 handlers in general.
11255 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11256 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11257 to other implementation bodies.
11259 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11260 be visible by multiple implementation bodies.
11262 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11263 only for conditions coming from hardware.
11264 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11265 adjustments to signal context prior to exception raise from signal
11267 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11269 Solaris section: (__gnat_adjust_context_for_raise): New function.
11270 Implementation of the machine context adjustments to perform prior to
11271 raise from a signal handler. Version for both sparc and x86.
11272 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11273 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11274 prior to raising as expected for any handler, before possible nested
11275 faults to make sure all the contexts in a chain have been adjusted by
11276 the time we propagate.
11278 2007-08-14 Pascal Obry <obry@adacore.com>
11280 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11281 (SYSTEM_INFO): New record.
11282 (SetThreadIdealProcessor): New imported routine needed for supporting
11283 task_info pragma on Windows.
11285 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11286 info can be applied to the current host.
11287 (Create_Task): Set the ideal processor if information is present.
11289 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11290 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11292 2007-08-14 Olivier Hainque <hainque@adacore.com>
11294 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11295 stack size and initial stack pointer value for a given task.
11296 (Enter_Task): Get the stack attributes of the task we are entering and
11297 let the stack checking engine know about them.
11299 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11300 Let the stack-checking engine know about the initial sp value and stack
11301 size associated with the current task.
11302 (Set_Stack_Info): If a stack base has been notified for the current
11303 task, honor it. Fallback to the previous less accurate method otherwise.
11305 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11307 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11309 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11310 treatment of limited views uniform for all visible declarations in a
11311 limited_withed package.
11312 Set flag indicating that a subprogram body for a child unit has a
11314 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11315 separate declaration, remove the unit name from visibility after
11316 compilation, so that environment is clean for subsequent compilations.
11317 (Install_Limited_Context_Clauses): Do not install a
11318 limited_private_with_clause unless the current unit is a body or a
11319 private child unit.
11320 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11321 in the same fashion.
11322 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11323 it applies to the declaration of the current package body.
11324 (Remove_Private_With_Clauses): If there is a regular with_clause for
11325 the unit, delete Private_With_Clause from context, to prevent improper
11326 hiding when processing subsequent nested packages and instantiations.
11328 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11330 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11331 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11332 representing absolute path names.
11333 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11335 * cstreams.c (__gnat_full_name for VxWorks): Use
11336 __gnat_is_absolute_path to detect whether we need to add the current
11337 directory to normalize the path.
11339 2007-08-14 Javier Miranda <miranda@adacore.com>
11342 a-tags.adb (Displace): Associate a message with the raised CE
11344 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11345 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11346 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11348 (Default_Prim_Op_Count): Removed.
11349 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11350 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11351 Remove pragma Inline_Always.
11353 * rtsfind.ads (Default_Prim_Op_Count): Removed
11354 (Max_Predef_Prims): New entity
11355 (RE_Expanded_Name): Removed
11356 (RE_HT_Link): Removed
11357 (RE_Iface_Tag): Remmoved
11358 (RE_Ifaces_Table): Removed
11359 (RE_Interfaces_Array): Removed
11360 (RE_Interface_Data_Element): Removed
11361 (RE_Nb_Ifaces): Removed
11362 (RE_RC_Offset): Removed
11363 (RE_Static_Offset_To_Top): Removed
11365 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11367 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11368 Prim_Op_Count by Max_Predef_Prims.
11370 2007-08-14 Thomas Quinot <quinot@adacore.com>
11371 Vincent Celier <celier@adacore.com>
11373 * binde.adb (Elab_All_Links): Remove unnecessary call to
11374 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11375 won't be an associated Afile).
11376 (Elab_All_Links): Fail if a referenced unit cannot be found
11379 Fix comments in bindgen regarding consistency checks done in Bcheck:
11380 the checks are made across units within a partition, not across several
11382 Fix generation of C binder file for VxWorks.
11384 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11385 Generic_May_Lack_ALI, more descriptive of the current use of the
11386 predicate, and update documentation.
11388 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11389 reorganization and documentation update for the case of predefined
11390 library generics (for which we do not reference an Afile).
11392 2007-08-14 Robert Dewar <dewar@adacore.com>
11394 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11395 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11396 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11397 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11398 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11399 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11400 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11401 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11402 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11403 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11404 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11405 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11406 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11407 g-altcon.adb: Minor reformatting
11409 ada-tree.h: Delete empty line.
11411 ali.ads: Minor reformatting
11412 Clarification of comments.
11413 Minor spelling correction
11415 * exp_dbug.adb: Add Warnings Off to suppress new warning
11417 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11420 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11423 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11425 * a-textio.ads: Reorder the standard input/output/error declarations
11428 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11430 * par-ch2.adb: Recognize RM specially in errout
11431 Change 'R'M to RM in all error messages
11433 * scng.adb: Recognize RM specially in errout
11435 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11436 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11438 * s-direio.adb: Add missing routine header box.
11440 * sem_attr.ads: Add ??? comments
11442 * sem_eval.adb: Recognize RM specially in errout
11443 Change 'R'M to RM in all error messages
11445 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11447 * s-tasinf.ads: Fix minor comment typo.
11449 * a-cihama.adb: Minor comment addition
11451 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11454 * s-tasinf-tru64.ads: Fix minor comment typo.
11456 * itypes.ads: Comment update.
11458 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11461 * argv.c: Added protection against null gnat_argv and gnat_envp.
11463 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11464 warning message when Tolerate_Consistency_Errors is True.
11466 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11467 Any_Id, as this subprogram is only applicable to *type* entities (it
11468 sets RM_Size). Instead initialize just Esize and Alignment.
11470 2007-08-14 Bob Duff <duff@adacore.com>
11472 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11473 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11474 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11475 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11476 a-coorse.ads (Next): Applied pragma Inline.
11477 Make all Containers packages Remote_Types (unless they are already
11479 (Previous): applied pragma Inline
11480 (Elements_Type): is now a record instead of an array
11482 2007-08-14 Thomas Quinot <quinot@adacore.com>
11484 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11486 (Set_Item): When the new item is an element of the currently allocated
11487 table passed by reference, save a copy on the stack if we're going
11488 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11489 variable to determine whether to call Set_Last.
11491 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11492 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11493 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11494 some occurrences of the pattern
11496 T.Table (T.Last) := Value;
11497 with a cleaner call to
11500 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11501 Gary Dismukes <dismukes@adacore.com>
11502 Thomas Quinot <quinot@adacore.com>
11504 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11505 derived type with interface progenitors use the analyzed formal as the
11506 parent of the actual, to create renamings for all the inherited
11507 operations in Derive_Subprograms.
11508 (Collect_Previous_Instances): new procedure within of
11509 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11510 unit being loaded, to ensure that the generation of global symbols is
11511 consistent in different compilation modes.
11512 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11513 takes progenitor types into account.
11514 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11515 traversing over the primitives of the formal and actual types to locate
11516 any abstract subprograms of the actual type that correspond to a
11517 nonabstract subprogram of the formal type's ancestor type(s), and issue
11518 an error if such is found.
11519 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11520 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11521 Remove bogus guard around calls to Inherit_Context.
11522 (Reset_Entity): If the entity is the selector of a selected component
11523 that denotes a named number, propagate constant-folding to the generic
11524 template only if the named number is global to the generic unit.
11525 (Set_Instance_Env): Only reset the compilation switches when compiling
11526 a predefined or internal unit.
11528 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11530 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11531 parameter to determine whether operation applies to the prefix.
11532 (Complete_Object_Operation): If actual has an access type and
11533 controlling formal is not an in_parameter, reject the actual if it is
11534 an access_to_constant type.
11535 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11536 type, the candidate operations are found in the scope of declaration of
11537 the type, because the type has no primitive subprograms.
11538 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11539 a private extension, only examine visible components before trying to
11540 analyze as a prefixed call.
11541 Change Entity_List to Type_To_Use, for better readability.
11542 (Has_Fixed_Op): Use base type when checking whether the type of an
11543 operator has a user-defined multiplication/division
11544 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11545 user-defined operators are available for fixed-point types.
11547 2007-08-14 Thomas Quinot <quinot@adacore.com>
11548 Ed Schonberg <schonberg@adacore.com>
11550 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11551 formal At_Any_Place indicating, when True, that we want to test for
11552 availability of the stream attribute at any place (as opposed to the
11553 current visibility context only).
11554 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11555 purpose of enforcing E.2.2(8) only if it is not available at any place.
11556 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11557 when checking the legality of an extension aggregate in a preelaborable
11558 package. Treat the literal null as a valid default expression in a
11559 component declaration for a type with preelaborable initialization.
11560 A limited interface is a legal progenitor for the designated type of a
11561 remote access to class-wide type.
11563 2007-08-14 Thomas Quinot <quinot@adacore.com>
11564 Ed Schonberg <schonberg@adacore.com>
11566 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11567 reference): Use correct entity as denoted entity for the selector of
11568 the rewritten node.
11569 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11570 setting the Referenced_As_LHS flag for entities that are implicitly
11572 (Find_Type): If the type is an internally generated incomplete type,
11573 mark the full view as referenced, to prevent spurious warnings.
11574 (Find_Selected_Component, Has_Components): Handle properly non-limited
11575 views that are themselves incomplete types.
11576 Handle interfaces visible through limited-with clauses.
11577 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11578 subprogram generic actual for which we have generated a renaming.
11579 Warn when the renaming introduces a homonym of
11580 the renamed entity, and the renamed entity is directly visible.
11582 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11583 Hristian Kirtchev <kirtchev@adacore.com>
11585 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11586 appear in the subtree to the current allocator if it is not a static
11588 (Resolve_Allocator): Perform cleanup if resolution has determined that
11589 the allocator is not a coextension.
11590 (Resolve): Skip an interpretation hidden by an abstract operator only
11591 when the type of the interpretation matches that of the context.
11592 (Resolve): When looping through all possible interpretations of a node,
11593 do not consider those that are hidden by abstract operators.
11594 (Resolve_Actuals): When verifying that an access to class-wide object
11595 is an actual for a controlling formal, ignore anonymous access to
11596 subprograms whose return type is an access to class_wide type.
11597 (Resolve_Slice): If the prefix of the slice is a selected component
11598 whose type depends on discriminants, build its actual subtype before
11599 applying range checks on the bounds of the slice.
11600 (Valid_Conversion): In an instance or inlined body, compare root types,
11601 to prevent anomalies between private and public views.
11602 (Resolve): Improve error message for ambiguous fixed multiplication
11603 expressions that involve universal_fixed multiplying operations.
11605 2007-08-14 Javier Miranda <miranda@adacore.com>
11606 Hristian Kirtchev <kirtchev@adacore.com>
11608 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11609 location to allow the correct generation of errors in case of
11610 restrictions applied to the expanded code.
11611 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11612 function if the condition does not reference them.
11613 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11616 2007-08-14 Thomas Quinot <quinot@adacore.com>
11617 Pablo Oliveira <oliveira@adacore.com>
11619 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11620 typecode parameters for a union (in a variant record), remove
11621 extraneous layer of Any wrapping for member label.
11622 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11623 elabration statements, register the package with the name server
11624 at the beginning, not at the end, of the elaboration statements so
11625 that they can create remote access to subprogram values that designate
11626 remote subprograms from the package.
11628 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11630 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11631 values to compute the number of seconds since the Unix Epoc in order to
11632 account for Daylight Savings Time. Perform special processing for dates
11633 that are earlier than the Unix Epoc to obtain a negative number.
11635 2007-08-14 Emmanuel Briot <briot@adacore.com>
11637 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11640 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11642 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11643 binder-generated file is not in Ada.
11644 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11645 recorded in the ALI file.
11646 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11648 2007-08-14 Vincent Celier <celier@adacore.com>
11650 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11651 (Output_Source): Do nothing if parameter is No_Sdep_Id
11653 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11654 shared library it imports has a later time stamp.
11655 (Check): Resolve the symbolic links in the path name of the object
11657 Check that the ALI file is in the correct object directory
11658 Check if a file name does not correspond to the mapping of units
11660 (Display_Version): New procedure
11661 (Initialize): Process switches --version and --help
11662 Use type Path_Name_Type for path name
11664 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11666 * impunit.adb: Re-organize System.Random_Numbers and
11667 GNAT.Random_Numbers and add to builds.
11669 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11671 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11673 * a-assert.ads, a-assert.adb: New files.
11675 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11677 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11678 if AAMP_On_Target is True, then the size of the type encompasses two
11679 addresses (a static link and a subprogram address), except in the case
11680 of library-level access types.
11682 2007-08-14 Vincent Celier <celier@adacore.com>
11684 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11686 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11687 possible trailing spaces.
11688 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11690 2007-08-14 Javier Miranda <miranda@adacore.com>
11692 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11693 null-excluding access types.
11695 2007-08-14 Javier Miranda <miranda@adacore.com>
11697 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11698 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11699 of private types add missing check on matching interfaces in the
11700 partial and full declarations.
11701 (Analyze_Protected_Type): Code cleanup.
11702 (Analyze_Task_Type): Code cleanup.
11704 2007-08-14 Javier Miranda <miranda@adacore.com>
11706 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11707 generated interface thunk.
11709 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11711 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11712 obsolescent warning on application of 'Class to an incomplete type.
11714 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11715 prevent obsolescent warning on application of 'Class to an incomplete
11718 2007-08-14 Pascal Obry <obry@adacore.com>
11720 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11723 2007-08-14 Cyrille Comar <comar@adacore.com>
11725 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11726 since it is potentially used in cases implying double finalization of
11729 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11731 * s-tasini.adb (Get_Stack_Info): Move this function to
11732 System.Soft_Links.Tasking because it is common to the full and the
11733 restricted run times.
11734 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11735 in SSL.Tasking.Init_Tasking_Soft_Links.
11737 * s-solita.adb (Get_Stack_Info): Function moved from
11738 System.Tasking.Initialization because it is common to the full and the
11739 restricted run times.
11740 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11742 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11744 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11745 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11746 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11749 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11752 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11754 * s-veboop.adb (SU): New named number initialized to
11755 System.Storage_Unit.
11756 (True_Val): The initialization expression is revised to use SU (=
11757 Storage_Unit) rather than assuming 8 for the component size of an
11758 unpacked Boolean array.
11760 2007-08-14 Tristan Gingold <gingold@adacore.com>
11762 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11764 * tb-ivms.c: New file.
11766 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11768 2007-08-14 Geert Bosch <bosch@adacore.com>
11770 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11771 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11772 Add required linker pragmas for automatically linking with the gnalasup
11773 linear algebra support library, and the systems math library.
11774 Rename cdot to cdotu and zdot to zdotu.
11775 Update header comment to describe purpose of package.
11777 2007-08-14 Thomas Quinot <quinot@adacore.com>
11779 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11780 an explicitly specified Associated_Final_Chain, use that list.
11781 (Expand_N_Package_Body): Build dispatch tables of library level tagged
11783 (Expand_N_Package_Declaration): Build dispatch tables of library level
11784 tagged types. Minor code cleanup.
11786 2007-08-14 Vincent Celier <celier@adacore.com>
11788 * gnatchop.adb (Terminate_Program): Remove exception and use
11789 Types.Terminate_Program instead.
11791 * osint.ads, osint.adb (Current_Exit_Status): New global variable
11792 (Find_Program_Name): Added protection against empty name.
11793 (OS_Exit_Through_Exception): New procedure
11795 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11796 (OS_Exit_Default): New procedure that contains the previous
11797 implementation of procedure OS_Exit.
11798 (Final_Value): Remove obsolete Interix stuff.
11800 2007-08-14 Thomas Quinot <quinot@adacore.com>
11802 * g-socket.ads: Reorganize example code so that it also works on
11805 2007-08-14 Tristan Gingold <gingold@adacore.com>
11807 * g-trasym.ads: AIX now supports symbolic backtraces.
11809 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11811 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11812 units being loaded to detect circularities. A circularity may be
11813 present even if the current chain of pending units to load starts from
11814 a limited_with_clause.
11816 * lib-load.ads: Change profile of Load_Unit to use a with_clause
11817 rather than a boolean flag, in order to detect circularities in
11820 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11821 than propagating the From_Limited_With flag, in order to handle
11822 properly circularities involving with_clauses.
11824 2007-08-14 Nicolas Setton <setton@adacore.com>
11826 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11829 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11831 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11832 to build for libgnala.
11833 libgnat: Add rules to build libgnala.a
11834 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11835 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11836 Add s-osinte-vxworks-kernel.adb to the target pairs of the
11837 kernel run-time lib for VxWorks 6, which would provide a different
11838 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11839 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11840 running ZCX by default.
11841 Add g-sttsne-locking to LynxOS version.
11842 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11843 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11845 * system-darwin-x86.ads: New file.
11847 * Make-lang.in: Delete files before copying onto them, so if they are
11848 read-only, the copy won't fail.
11849 Update dependencies
11851 2007-08-14 Pascal Obry <obry@adacore.com>
11853 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11856 2007-08-14 Vincent Celier <celier@adacore.com>
11858 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11859 (Gcc): Initialize Gcc_Name at the first call
11861 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11863 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11864 with_clauses of the enclosing unit when analyzing the package
11865 specification of a nested instance.
11867 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11869 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11870 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11871 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11872 layout of N_Allocator.
11874 2007-08-14 Thomas Quinot <quinot@adacore.com>
11876 * rtsfind.adb (Check_RPC): Add PCS version check.
11878 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11879 (Gnat_Free_Software): New function.
11881 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11882 the PCS_Version value from s-parint, used to check that it is consistent
11883 with what exp_dist expects.
11885 * s-parint.ads (PCS_Version): New entity for checking consistency
11886 between exp_dist and PCS.
11888 * gen-soccon.c: (SO_REUSEPORT): New constant.
11890 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11892 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11893 variable Sub_Second to Duration in order to accomodate a larger range
11894 of arithmetic operations.
11896 2007-08-14 Bob Duff <duff@adacore.com>
11898 * g-sttsne-locking.ads: Move comments from spec to body.
11899 * g-sttsne-locking.adb: Move comments from spec to body.
11900 * g-sttsne-vxworks.ads: Removed.
11901 * g-sttsne-vxworks.adb: Removed.
11903 2007-08-11 Ian Lance Taylor <iant@google.com>
11905 * misc.c (gnat_get_alias_set): Change return type to
11908 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11910 * decl.c, utils2.c: Fix whitespace in last change.
11912 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11914 * decl.c (compare_field_bitpos): Constify.
11915 * utils2.c (compare_elmt_bitpos): Likewise.
11917 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
11919 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11920 anonymous access type.
11921 (pthread_sigmask): Now take an access sigset_t.
11923 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11925 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11927 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
11929 PR tree-optimization/25737
11930 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11932 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
11934 * trans.c (Attribute_to_gnu): When subtracting an
11935 offset from a pointer, use POINTER_PLUS_EXPR with
11936 NEGATE_EXPR instead of MINUS_EXPR.
11937 (gnat_to_gnu): Likewise.
11938 * utils.c (convert): When converting between
11939 thin pointers, use POINTER_PLUS_EXPR and sizetype
11941 * utils2.c (known_alignment): POINTER_PLUS_EXPR
11942 have the same semantics as PLUS_EXPR for alignment.
11943 (build_binary_op): Add support for the semantics of
11944 POINTER_PLUS_EXPR's operands.
11945 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11947 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
11949 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11950 of get_signed_or_unsigned_type.
11951 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11953 2007-06-11 Bob Duff <duff@adacore.com>
11954 Thomas Quinot <quinot@adacore.com>
11956 * g-stsifd-sockets.adb (Create): Work around strange behavior of
11957 'bind' on windows that causes 'connect' to fail intermittently, by
11958 retrying the 'bind'.
11959 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11961 2007-06-10 Duncan Sands <baldrick@free.fr>
11963 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11964 than to void, for the fields when making a new fat pointer type.
11965 (gnat_substitute_in_type): Now substitute_in_type.
11966 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
11967 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11968 * utils.c (update_pointer_to): Update fat pointers by updating the
11969 dummy node pointers used for the fields.
11971 2007-06-06 Thomas Quinot <quinot@adacore.com>
11972 Bob Duff <duff@adacore.com>
11974 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11975 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11976 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
11977 constant Thread_Blocking_IO, always True by default, set False
11978 on a per-runtime basis.
11979 (Need_Netdb_Buffer): New constant.
11981 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11982 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11985 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11986 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11987 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11988 child package Task_Safe_NetDB
11989 (Host_Error_Messages): Add stub body.
11990 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11992 * g-soccon-mingw.ads: Add Windows-specific constants.
11993 (Need_Netdb_Buffer): New constant.
11994 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11995 wrapper and import inet_addr(3) from the standard sockets library
11997 (In_Addr): Add alignment clause.
11998 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12000 2007-06-06 Robert Dewar <dewar@adacore.com>
12002 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12003 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12004 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12005 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12006 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12007 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12008 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12009 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12010 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12011 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12012 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12013 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12014 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12015 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12016 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12017 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12018 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12019 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12020 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12021 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12022 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12023 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12024 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12025 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12026 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12027 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12028 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12029 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12030 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12031 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12032 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12033 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12034 Unchecked_* by Ada.Unchecked_*
12036 2007-06-06 Robert Dewar <dewar@adacore.com>
12038 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12039 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12040 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12041 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12042 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12043 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12045 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12046 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12047 s-tasloc.adb, s-tasloc.ads: New files.
12049 2007-06-06 Bob Duff <duff@adacore.com>
12051 * g-expect-vms.adb:
12052 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12053 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12054 (Send_Signal, Close): Raise Invalid_Process if the process id is
12056 (Pattern_Matcher_Access): Is now a general access type to be able to
12057 use aliased string.
12059 2007-06-06 Thomas Quinot <quinot@adacore.com>
12060 Arnaud Charlet <charlet@adacore.com>
12062 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12063 (SIGEMT is now used instead of SIGTERM on AIX).
12065 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12066 (Time_Slice_Supported): Set to True.
12067 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12069 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12071 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12072 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12073 express the bounds of Duration as Time. Raise Time_Error when the
12074 result is greater or equal to the higher bound of Duration (on the
12076 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12077 Ada_High_And_Leaps.
12078 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12079 Ada_High_And_Leaps.
12080 ("-" (Time, Time)): Reorder code.
12081 (All_Leap_Seconds): Removed.
12082 (Arithmetic_Operations.Add): Remove sign related kludge.
12083 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12084 with flag Leap_Support.
12085 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12086 (Check_Within_Time_Bounds): New procedure.
12087 (Clock): Control the leap seconds processing with flag Leap_Support.
12088 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12089 (Formatting_Operations.Split): Control the leap seconds processing with
12091 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12092 with flag Leap_Support. Adjust the year, month and day (if applicable)
12093 when the value of day seconds designates a new day.
12094 (Split): Use parameter associations for better readability. Integrate
12096 (Time_Of): Use parameter associations for better readability. Integrate
12099 * a-calfor.adb (Split): Use parameter associations for better
12100 readability. Integrate flag Is_Ada_05.
12101 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12102 better readability. Integrate flag Is_Ada_05.
12104 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12106 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12107 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12108 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12109 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12110 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12111 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12112 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12113 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12114 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12115 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12116 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12117 time when entering this routine to detect a backward clock setting
12118 (manual setting or DST adjustment), to avoid waiting for a longer delay
12120 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12121 Remove handling of deferred priority change, and replace by setting the
12122 task priority directly, as required by AI-188.
12124 (Max_Task_Image_Length): New constant.
12125 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12126 (Dynamic_Priority_Support): Removed, no longer needed.
12127 (Poll_Base_Priority_Change): Ditto.
12128 (Set_Ceiling): Add this procedure to change the ceiling priority
12129 associated to a lock. This is a dummy implementation because dynamic
12130 priority ceilings are not supported by the underlying system.
12132 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12133 accepting a RV with its priority boosted.
12134 Remove handling of deferred priority change, and replace by setting the
12135 task priority directly, as required by AI-188.
12137 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12139 Remove handling of deferred priority change, and replace by setting the
12140 task priority directly, as required by AI-188.
12141 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12142 of Self_Id earlier.
12144 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12145 (Poll_Base_Priority_Change): Removed.
12146 Code clean up: use SSL.Current_Target_Exception.
12148 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12149 to run as this is a potentially dispatching point.
12150 (Call_Synchronous): Use Local_Defer_Abort.
12151 (Callable): Relax assertion.
12152 (Selective_Wait): Relax assertion in case abort is not allowed.
12153 Remove handling of deferred priority change, and replace by setting the
12154 task priority directly, as required by AI-188.
12156 * s-tasuti.adb (Make_Passive): Adjust assertions.
12157 Remove handling of deferred priority change, and replace by setting the
12158 task priority directly, as required by AI-188.
12160 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12162 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12163 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12164 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12165 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12166 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12167 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12168 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12169 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12170 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12171 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12172 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12173 This patch changes the largest non-binary modulus from 2**31-1 to
12175 (Compiler_System_Version): Removed, no longer used.
12176 Clean up system files by removing flags only used on a single target.
12177 Also remove obsolete flags, only used during bootstrap from system.ads
12178 (Address): Add a pragma Preelaborable_Initialization.
12180 * system-aix.ads: Ditto.
12181 (GCC_ZCX_Support): Set to true.
12182 Update priority range on AIX and map Ada priorities to target
12183 priorities appropriately for different scheduling policies.
12185 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12187 2007-06-06 Vincent Celier <celier@adacore.com>
12189 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12190 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12192 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12193 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12194 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12195 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12196 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12197 MLib.Tgt, containing the default versions of the exported subprograms.
12198 For each platform, create a specific version of the body of new child
12199 package MLib.Tgt.Specific that contains only the body of subprograms
12200 that are different from the default.
12201 (Archive_Builder_Append_Options): New function.
12203 2007-06-06 Matthew Gingell <gingell@adacore.com>
12205 * s-osinte-aix.adb: Map Ada priorities to target priorities
12206 appropriately for different scheduling policies.
12208 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12210 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12212 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12213 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12215 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12217 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12218 Noop on VMS, added for interface commonality.
12220 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12221 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12222 Olivier Hainque <hainque@adacore.com>
12224 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12225 renamed expression of a full renaming at toplevel.
12226 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12227 the values the constant is initialized to if it is an N_Allocator.
12228 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12229 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12230 (make_aligning_type): Accept an extra ROOM argument for storage to be
12231 made available before the aligned field, and an extra BASE_ALIGN
12232 argument for callers to pass the alignment guaranteed to be honored for
12233 the whole aligning object. Avoid call to finish_record_type, which only
12234 interferes with the sizes we want to set.
12235 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12236 make_aligning_type for super-aligned objects on stack.
12237 (components_to_record): Pass the adjusted size of the type when creating
12238 fields in the qualified union for the variant part.
12239 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12240 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12242 (maybe_pad_type): Set TYPE_USER_ALIGN.
12243 (make_aligning_type): Likewise.
12244 ALIGN argument is unsigned int.
12245 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12246 (gnat_to_gnu_param): Likewise, for parameters.
12247 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12248 if it is constant and stems from a function call.
12249 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12250 of the record is specified. Adjust accordingly.
12251 (adjust_packed): New static function.
12252 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12253 (components_to_record): Likewise.
12254 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12255 side-effects if the object is deemed constant.
12256 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12257 type instead of merely finalizing it. Tidy.
12258 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12259 <E_Access_Type>: Likewise.
12260 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12261 (defer_debug_level): Delete.
12262 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12263 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12265 <E_Record_Type>: Do not explicitly defer finalizing the type.
12266 Adjust for write_record_type_debug_info renaming.
12267 <E_Subprogram_Type>: Likewise.
12268 Finalize deferred types right after deferred incomplete types are
12270 (rest_of_type_decl_compilation): New global function.
12271 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12272 (components_to_record): Propagate the packedness to the fields of the
12273 qualified union type if there is a variant part.
12274 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12275 instead of inline code to adjust the XUT field offsets.
12276 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12277 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12278 and write the debug info if the type derives from a discriminated one.
12279 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12280 <E_Array_Subtype>: Likewise.
12281 <E_String_Literal_Subtype>: Likewise.
12282 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12283 an alignment clause.
12284 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12285 before giving warning.
12286 (prepend_one_attribute_to): New function, helper to prepend an attribute
12287 to an attribute list.
12288 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12289 (prepend_attributes): Likewise.
12290 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12291 <E_Array_Type>: Declare the padding type for the element type, if any.
12292 <E_Array_Subtype>: Likewise.
12293 (defer_limited_with): New variable.
12294 (Gigi_Equivalent_Type): New function.
12295 (gnat_to_gnu_entity): Use it at start and use result throughout.
12296 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12297 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12298 indirection, precompute if unconstrained array to simplify logic, and
12299 use defer_limited_with to defer elaboration of some types from limited
12301 (finalize_from_with_types): New function.
12303 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12304 Eric Botcazou <ebotcazou@adacore.com>
12305 Tristan Gingold <gingold@adacore.com>
12306 Olivier Hainque <hainque@adacore.com>
12308 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12309 adding guard that the entity is an E_Constant before testing presence
12310 of Full_view (and remove unnecessary test that entity is not a type).
12311 For a CONST_DECL used by reference, manually retrieve
12312 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12313 (struct language_function): Move from utils.c to here.
12314 (struct parm_attr): New structure.
12315 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12316 (f_parm_attr_cache): New macro.
12317 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12318 expressions for the 'First, 'Last and 'Length attributes of the
12319 unconstrained array IN parameters.
12320 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12321 Allocate the information structure for the function earlier, as well
12322 as the language-specific part.
12323 If the parameter attributes cache has been populated, evaluate the
12324 cached expressions on entry.
12325 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12326 N_Procedure_Call_Statement and N_Indexed_Component.
12327 (Pragma_to_gnu): Translate inspection_point to an asm statement
12328 containaing a comment and a reference to the object (either its address
12329 for BLKmode or its value).
12330 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12331 to go to DECL_INITIAL. Together with the size constraint relaxation
12332 in create_var_decl, enlarges the set of situations in which an
12333 identifier may be used as an initializer without implying elaboration
12335 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12336 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12338 (maybe_stabilize_reference): Remove lvalues_only parameter.
12339 (gnat_stabilize_reference): Adjust for above change.
12340 (gnat_to_gnu): Do not set location information on the result
12341 if it is a reference.
12342 (add_cleanup): Add gnat_node parameter and set the location of the
12344 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12345 (Exception_Handler_to_gnu_zcx): Likewise.
12346 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12347 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12348 the former right after the latter.
12349 (start_stmt_group): Make global.
12350 (end_stmt_group): Likewise.
12351 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12353 (gnu_program_error_label_stack): Likewise.
12354 (gigi): Initialize them.
12355 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12356 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12358 (push_exception_label_stack): New function.
12359 (takes_address): New function.
12361 * utils.c (struct language_function): Move to trans.c from here.
12362 (unchecked_convert): Do not wrap up integer constants in
12363 VIEW_CONVERT_EXPRs.
12364 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12365 the latter for aggregate types, unexpected by later passes, and relax an
12366 arbitrary size constraint on the former.
12367 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12368 to compare the sizes.
12369 (convert_vms_descriptor): When converting to a fat pointer type, be
12370 prepared for a S descriptor at runtime in spite of a SB specification.
12371 (shift_unc_components_for_thin_pointers): New function.
12372 (write_record_type_debug_info): For variable-sized fields, cap the
12373 alignment of the pointer to the computed alignment.
12374 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12375 If REP_LEVEL is 2, do not compute the sizes.
12376 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12377 (build_unc_object_type): Likewise.
12378 (declare_debug_type): New function.
12380 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12382 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12383 no statement is expandable anymore.
12384 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12385 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12386 when the user requested it explicitely.
12387 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12389 (get_alias_set): Return alias set 0 for a type if
12390 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12392 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12393 (DECL_FUNCTION_STUB): New accessor macro.
12394 (SET_DECL_FUNCTION_STUB): New setter macro.
12396 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12398 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12401 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12403 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12404 Rename to Abort_Task_Interrupt to be able to keep the same interface
12405 as the rest of the targets.
12407 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12408 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12410 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12413 2007-06-06 Robert Dewar <dewar@adacore.com>
12415 * a-chahan.ads: Remove obsolescent pragmas
12417 * a-chlat1.ads: Minor reformatting
12419 2007-06-06 Robert Dewar <dewar@adacore.com>
12421 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12424 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12427 * errout.ads (Finalize): Changed interface
12428 (Output_Messages): New procedure
12429 (Compilation_Errors): New Interface
12431 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12432 Finalize/Output_Messages interface for Errout
12433 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12436 2007-06-06 Thomas Quinot <quinot@adacore.com>
12437 Olivier Hainque <hainque@adacore.com>
12438 Robert Dewar <dewar@adacore.com>
12440 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12442 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12443 propagation starts, to let debuggers know about the event in a reliable
12445 (Local_Raise): Moved to System.Exceptions
12446 More convenient to have this as a separate unit
12448 * s-except.adb, s-except.ads: New files.
12450 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12451 Debug_Unhandled_Exception in System.Exceptions where it belongs
12452 together with a couple of other debug helpers.
12453 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12454 the former Unhandled_Exception.
12456 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12457 (Warn_No_Exception_Propagation): New procedure
12458 (Warn_If_No_Propagation): Rewritten for new warning generation
12459 (Expand_Exception_Handlers): New warning generation
12460 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12461 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12462 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12463 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12464 even if restriction is set (makes life easier in Check_Returns)
12465 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12466 checking exception identities.
12467 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12468 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12469 block for handler (used by Check_Returns)
12470 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12471 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12472 remove all exception handlers when optimizing local raise statements.
12473 (Find_Local_Handler): Use Get_Renamed_Entity
12474 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12475 marked analyzed after expanding exception handlers, do not generate
12476 redundant cleanup actions, because they have been constructed already.
12478 2007-06-06 Thomas Quinot <quinot@adacore.com>
12480 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12481 presence of this categorization pragma is mandated by the language.
12482 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12485 2007-06-06 Vincent Celier <celier@adacore.com>
12486 Robert Dewar <dewar@adacore.com>
12488 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12489 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12490 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12491 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12492 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12493 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12494 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12495 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12496 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12497 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12498 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12500 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12501 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12502 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12503 Use variables of types File_Name_Type and Unit_Name_Type in error
12505 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12506 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12508 Define flags Flag217-Flag230 with associated subprograms
12509 (Flag_Word5): New record type.
12510 (Flag_Word5_Ptr): New access type.
12511 (To_Flag_Word5): New unchecked conversion.
12512 (To_Flag_Word5_Ptr): Likewise.
12513 (Flag216): New function.
12514 (Set_Flag216): New procedure.
12516 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12518 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12521 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12523 2007-06-06 Javier Miranda <miranda@adacore.com>
12525 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12527 (Object_Specific_Data_Array): This is now internal to the package.
12528 (Object_Specific_Data): This is now internal to the package.
12529 (Select_Specific_Data_Element): This is now internal to the package.
12530 (Select_Specific_Data_Array): This is now internal to the package.
12531 (Select_Specific_Data): This is now internal to the package.
12532 (Offset_To_Top_Function_Ptr): This is now public.
12533 (To_Offset_To_Top_Function_Ptr): Removed.
12534 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12535 local to subprogram Offset_To_Top.
12536 (Predefined_DT): Removed.
12537 (Typeinfo_Ptr): Removed.
12538 (OSD): This function is now internal to this package.
12539 (SSD): This function is now internal to this package.
12540 (DT): New function that displaces the pointer to the table of primitives
12541 to get access to the enclosing wrapper record.
12542 (IW_Membership): Code cleanup.
12543 (Offset_To_Top): Code cleanup.
12544 (Predefined_DT): Removed.
12545 (Register_Interface_Tag): Removed.
12546 (Set_Interface_Table): Removed.
12547 (Set_Offset_Index): Removed.
12548 (Set_Offset_To_Top): Code cleanup.
12549 (Set_OSD): Removed.
12550 (Set_Signature): Removed.
12551 (Set_SSD): Removed.
12552 (Set_Tagged_Kind): Removed.
12553 (Typeinfo_Ptr): Removed.
12555 (Displace): Add missing check on null actual.
12557 * exp_disp.ads, exp_disp.adb
12558 (Select_Expansion_Utilities): Removed.
12559 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12560 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12561 the interface requires a new parameter.
12562 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12563 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12564 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12565 Done to remove package Select_Expansion_Utilities.
12566 (Make_DT): New implementation for statically allocated dispatch tables.
12567 (Make_Secondary_DT): Moved to the scope of Make_DT.
12568 (Register_Primitive): Code cleanup plus incoporate the use of the new
12569 function DT_Address_Attribute.
12570 (Expand_Interface_Thunk): The profile of this subprogram has been
12571 changed to return the Thunk_Id and the corresponding code.
12572 (Fill_DT_Entry): Removed. Its functionality is now provided by
12573 subprogram Register_Primitive.
12574 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12575 subprogram Register_Primitive.
12576 (Register_Primitive): New subprogram that incorporates the previous
12577 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12578 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12579 was only required to call Make_DT_Access_Action, which is now removed.
12580 (Ada_Actions): Removed
12581 (Action_Is_Proc): Removed
12582 (Action_Nb_Arg): Removed
12583 Replace all the calls to Make_DT_Access_Action by direct calls to
12584 Make_Procedure_Call_Statement or Make_Function_Call.
12585 (Set_DTC_Entity_Value): New subprogram.
12586 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12587 (Expand_Interface_Thunk): Add missing support for primitives that are
12588 functions with a controlling result (case in which there is no need
12589 to generate the thunk).
12591 * exp_atag.ads, exp_atag.adb
12592 (Build_DT): New subprogram that displaces the pointer to reference the
12593 base of the wrapper record.
12594 (Build_Typeinfo_Offset): Removed.
12595 (RTE_Tag_Node): Removed.
12596 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12597 (Build_Get_RC_Offset): Removed.
12598 (Build_Inherit_Predefined_Prims): Removed.
12599 (Build_Inherit_TSD: Removed.
12600 (Build_New_TSD): Removed.
12601 (Build_Set_External_Tag): Removed.
12602 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12603 (Build_Set_Prim_Op_Address): Add documentation.
12604 (Build_Set_TSD): Removed.
12606 * rtsfind.ads, rtsfind.adb
12607 (Load_Fail): If load fails and we are not in configurable run-time
12608 mode, then raise Unrecoverable_Error.
12609 (Text_IO_Kludge): Generate an error message if a run-time library is
12610 not available in a given run-time (ie. zfp run-time).
12611 (RTE_Record_Component): Add code to check that the component we search
12612 for is not found in two records in the given run-time package.
12613 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12614 (RE_DT_Predef_Prims_Offset): New entity
12615 (RE_Static_Offset_To_Top): New entity
12616 (RE_HT_Link): New entity.
12617 (System_Address_Image): Addition of this run-time package.
12618 (RE_Address_Image): New entity.
12619 (RE_Abstract_Interface): Removed.
12620 (RE_Default_Prim_Op_Count): Removed.
12621 (RE_DT_Entry_Size): Removed.
12622 (RE_DT_Min_Prologue_Size): Removed.
12623 (RE_DT_Prologue_Size): Removed.
12624 (RE_Ifaces_Table_Ptr): Removed.
12625 (RE_Interface_Data_Ptr): Removed.
12626 (RE_Type_Specific_Data): Removed.
12627 (RE_Primary_DT): Removed.
12628 (RE_Register_Interface_Tag): Removed.
12629 (RE_Set_Offset_Index): Removed.
12630 (RE_Set_OSD): Removed.
12631 (RE_Set_SSD): Removed.
12632 (RE_Set_Signature): Removed.
12633 (RE_Set_Tagged_Kind): Removed.
12634 (RE_Address_Array): New entity.
12635 (RE_DT): New entity.
12636 (RE_Iface_Tag): New entity.
12637 (RE_Interfaces_Table): New entity.
12638 (RE_No_Dispatch_Table): New entity.
12639 (RE_NDT_Prims_Ptr): New entity.
12640 (RE_NDT_TSD): New entity.
12641 (RE_Num_Prims): New entity.
12642 (RE_Offset_To_Top_Function_Ptr): New entity.
12643 (RE_OSD_Table): New entity.
12644 (RE_OSD_Num_Prims): New entity.
12645 (RE_Predef_Prims): New entity
12646 (RE_Predef_Prims_Table_Ptr): New entity.
12647 (RE_Primary_DT): New entity.
12648 (RE_Signature): New entity.
12649 (RE_SSD): New entity.
12650 (RE_TSD): New entity.
12651 (RE_Type_Specific_Data): New entity.
12652 (RE_Tag_Kind): New entity.
12654 2007-06-06 Thomas Quinot <quinot@adacore.com>
12656 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12657 C imported variable.
12658 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12661 2007-06-06 Robert Dewar <dewar@adacore.com>
12663 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12666 2007-06-06 Vincent Celier <celier@adacore.com>
12668 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12669 is room for at least one digit and the minus sign.
12670 (Put.Put_Character): Never put a character outside of the range of
12673 2007-06-06 Olivier Hainque <hainque@adacore.com>
12674 Eric Botcazou <ebotcazou@adacore.com>
12676 * utils2.c (build_allocator): Provide the extra arguments to
12677 make_aligning_type for super-aligned objects allocated from the default
12678 pool. Leave enough room for a pointer before the aligning field, and
12679 store the system's allocator return value there.
12680 (build_call_alloc_dealloc): When releasing a super-aligned object,
12681 retrieve the system's allocator return value from where build_allocator
12682 has stored it, just ahead of the adjusted address we are passed.
12683 (build_call_raise): Handle properly the generation of line numbers when
12684 the node is marked No_Location.
12685 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12686 by using DECL_UID on ties.
12687 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12689 (build_call_raise): Handle converting exception into goto; support new
12691 (build_component_ref): Add new arg to build_call_raise.
12693 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12695 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12696 "." in the case of nnn.xxx when nnn terminates with an underscore.
12697 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12699 2007-06-06 Robert Dewar <dewar@adacore.com>
12701 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12703 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12704 Vincent Celier <celier@adacore.com>
12705 Robert Dewar <dewar@adacore.com>
12707 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12709 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12710 ((destructor)) for adafinal, even when switch -a is used.
12711 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12713 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12714 Output_Linker_Option_List is set. Suppress this formatting when
12715 Zero_Formatting is set.
12716 Add case for CLI_Target.
12717 (System_Restrictions_Used): New flag, used to avoid generating with of
12718 System_Restrictions and initialization of the data unless there is
12719 some use of System.Restrictions in the partition.
12720 (Check_System_Restrictions_Used): New procedure
12722 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12723 since we only with this unit in the binder file if it is used elsewhere
12726 2007-06-06 Vincent Celier <celier@adacore.com>
12728 * bindusg.adb: Add line for @<response file>
12729 Add lines for new switches -R and -Z
12731 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12732 hierarchy in the list of files of the closure when -R is used
12733 (Gnatbind): Accept arguments starting with '@' to indicate response
12734 files and take the arguments from the response files.
12735 If List_Closure is set, display the referenced files
12737 2007-06-06 Javier Miranda <miranda@adacore.com>
12738 Robert Dewar <dewar@adacore.com>
12739 Ed Schonberg <schonberg@adacore.com>
12741 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12742 which the address-clause is applied to in-mode actuals (allowed by
12744 (Apply_Discriminant_Check): Do not generate a check if the type is
12745 constrained by a current instance.
12746 (Activate_Division_Check): New procedure
12747 (Activate_Overflow_Check): New procedure
12748 (Activate_Range_Check): New procedure
12749 Call these new Activate procedures instead of setting flags directly
12750 (Apply_Array_Size_Check): Removed, no longer needed.
12751 Code clean up: remove obsolete code related to GCC 2.
12752 (Get_E_Length): Protect against bomb in case scope is standard
12753 (Selected_Range_Checks): If the node to be checked is a conversion to
12754 an unconstrained array type, and the expression is a slice, use the
12755 bounds of the slice to construct the required constraint checks.
12756 Improve NOT NULL error messages
12757 (Apply_Constraint_Check): If the context is a null-excluding access
12758 type, diagnose properly the literal null.
12760 2007-06-06 Pascal Obry <obry@adacore.com>
12762 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12763 and the corresponding .deps file.
12764 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12765 src directory. Minor code-clean-up. Use untouched casing for files
12766 read into the library src dir.
12767 (Clean_Library_Directory): Idem.
12768 (Parse_Cmd_Line): Accept new switch -aP
12770 2007-06-06 Javier Miranda <miranda@adacore.com>
12771 Ed Schonberg <schonberg@adacore.com>
12772 Robert Dewar <dewar@adacore.com>
12773 Eric Botcazou <ebotcazou@adacore.com>
12774 Arnaud Charlet <charlet@adacore.com>
12776 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12777 applicable to types that have the With_Type flag set. Returns the
12778 non-limited view of the type, if available, otherwise the type itself.
12779 For class-wide types, there is no direct link in the tree, so we have
12780 to retrieve the class-wide type of the non-limited view of the Etype.
12781 New attributes Static_Initialization and Static_Elaboration_Desired.
12782 Remove the pragma Thread_Body, and the associated flag
12783 Is_Thread_Body in entities, and all related code.
12784 (Suppress_Value_Tracking_On_Call): New flag
12785 E_Exception has Esize and Alignment fields
12786 (Universal_Aliasing): New function.
12787 (Set_Universal_Aliasing): New procedure.
12788 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12789 (Check_Nested_Access): New procedure.
12790 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12791 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12792 (Related_Interface): New attribute. Present in dispatch table pointer
12793 components of records. Set to point to the entity of the corresponding
12795 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12796 (Original_Access_Type): Remove, not needed.
12797 (Root_Type): Handle properly subtypes of class-wide-types.
12800 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12801 class-wide types visible through limited-with clauses.
12802 (Try_Primitive_Operation): When examining all primitive operations of a
12803 tagged type, do not consider subprograms labeled as hidden unless they
12804 belong to a private generic type with a tagged parent.
12805 (Try_Object_Operation): Extensive rewriting, to handle properly various
12806 overloading cases, when several ancestors may have class-wide operations
12807 that are possible candidates, and when the overloaded functions return
12808 array types and have defaulted parameters so that the call may be
12809 interpreted as an indexing.
12810 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12811 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12812 successive actuals before analyzing the call itself.
12813 (Try_Primitive_Operation): A primitive operation is compatible with the
12814 prefix if the prefix has a synchronized type and the type of the formal
12815 is its corresponding record, as can be the case when the primitive
12816 operation is declared outside of the body of the type.
12817 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12818 perform homonym traversal, looking for class-wide operation matches
12819 (formerly done in statements of Try_Class_Wide_Operation). Matches on
12820 access parameters are now restricted to anonymous access types.
12821 (Mark_Allocator): An allocator with a discriminant association parent is
12823 (Try_One_Prefix_Interpretation): If the type of the object is
12824 incomplete, as can be happen when it is a limited view obtained through
12825 a limited_with_clause, the selected component is not part of a prefixed
12827 (Complete_Object_Operation): Diagnose properly an object that is not
12828 aliased when the corresponding controlling formal is an access
12830 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12831 ambiguous calls in prefixed notation, where two primitives differ only
12832 in that the controlling argument of one is an access parameter.
12834 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12835 whether a function that returns an unconstrained type can be inlined.
12836 (Process_Formals): Diagnose properly the illegal use of an incomplete
12837 type in the profile of an access_to_subprogram declaration.
12838 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12839 operations are attached to the corresponding record.
12840 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12841 When processing a primitive of a concurrent type which implements an
12842 interface change the type of all controlling formals to that of the
12843 corresponding record type.
12844 (Check_Synchronized_Overriding): Relax the conditional logic when trying
12845 to determine the tagged type to which a primitive belongs.
12846 (Check_Conventions): Capture condition to ignore a primitive operation
12847 (which is shared between the loop in Check_Conventions and the one in
12848 Check_Convention) in a new local function Skip_Check.
12849 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12850 confusion with Check_Conventions' own Prim_Op local variable.
12851 (Create_Extra_Formals): Test for a tagged result type rather than a
12852 controlling result when determining whether to add a BIP_Alloc_Form
12853 formal and a BIP_Final_List formal to the function.
12854 (Check_Conformance); For parameters that are anonymous access types,
12855 subtype conformance requires that the not null and the constant
12856 indicators must match
12857 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12858 to retrieve the appropriate type when processing a concurrent type
12859 declared within a generic. Minor comment reformatting. Change invocation
12860 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12862 (Analyze_Subprogram_Body): If the return type of a function is an
12863 anonymous access to the limited view of a class-wide type, and the
12864 non-limited view of the type is available, update the type of the
12865 function so that code can be generated.
12866 (Process_Formals): In case of access-subtype itype whose designated
12867 type is also an itype (situation that happens now with access to
12868 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12869 attribute to avoid backend problems.
12870 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12871 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12872 anonymous types' designated types are same before testing
12873 Subtypes_Statically_Match.
12874 (Create_Extra_Formals): Test for a named access parameter that is a
12875 controlling formal as an additional condition for adding an
12876 accessibility level formal. This can occur in the subp type created for
12877 dispatching calls in Expand_Dispatching_Call, and allows calling
12878 Create_Extra_Formals from that procedure rather than special-casing the
12879 extra formals there.
12880 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12881 when the function has a controlling result.
12882 (Check_Returns): Add much more knowledge of the optimization of local
12883 raise statements to gotos, to retain proper warnings in this case.
12884 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12885 nodes when looking for last statement.
12887 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12888 class-wide types visible through limited with clauses.
12889 (Add_One_Interp): If the operands are anonymous access types, the
12890 predefined operator on universal_access is immediately visibles
12891 (Find_Unique_Type): Handle anonymous access to subprogram types just as
12892 other anonymous access types.
12893 (Disambiguate): Take into account CIL convention.
12894 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12896 2007-06-06 Robert Dewar <dewar@adacore.com>
12898 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12899 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12900 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12901 Fix lower bound of tables.
12904 * nlists.adb: Ditto.
12905 (Prev_Node, Next_Node): Change index type to Int so that it properly
12906 covers the range First_Node_Id - 1 up.
12908 2007-06-06 Javier Miranda <miranda@adacore.com>
12909 Ed Schonberg <schonberg@adacore.com>
12910 Bob Duff <duff@adacore.com>
12911 Hristian Kirtchev <kirtchev@adacore.com>
12913 * exp_aggr.ads, exp_aggr.adb:
12914 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12915 in extension aggregates.
12916 (Flatten): Other conditions being met, an aggregate is static if the
12917 low bound given by component associations is different from the low
12918 bound of the base index type.
12919 (Packed_Array_Aggregate_Handled): If the component type is itself a
12920 packed array or record, the front-end must expand into assignments.
12921 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12922 Init_Pr, instead of Ancestor_Is_Expression.
12923 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12924 coextension chain root, either generate a list controller or use the
12925 already existing one.
12926 (Static_Array_Aggregate): New procedure to construct a positional
12927 aggregate that can be handled by the backend, when all bounds and
12928 components are compile-time known constants.
12929 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12930 types covering interface types into assignments.
12931 (Replace_Type): move to Build_Record_Aggr_Code.
12932 (Expand_Record_Aggr_Code): if the target of the aggregate is an
12933 interface type, convert to the definite type of the aggregate itself,
12934 so that needed components are visible.
12935 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12936 components and the context is an extended return statement do not
12937 create a transient block for it, to prevent premature finalization
12938 before the return is executed.
12939 (Gen_Assign): Do not generate a call to deep adjust routine if the
12940 component type is itself an array of controlled (sub)-components
12941 initialized with an inner aggregate.
12942 (Component_Check): New name for Static_Check. This name is now more
12943 appropriate, and documentation is added which was missing.
12944 (Component_Check): Add test for bit aligned component value
12945 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12946 Tagged_Comps, name is more appropriate given added function below.
12947 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12949 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12950 Javier Miranda <miranda@adacore.com>
12951 Robert Dewar <dewar@adacore.com>
12953 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12954 Terminated: Add unchecked type conversion from System.Address to
12955 System.Tasking.Task_Id when calling the predefined primitive
12957 Disable new Ada 05 accessibility check for JVM.NET targets, which
12958 cannot be implemented in a practical way.
12959 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12960 the sources always references the tag of the actual object. Therefore,
12961 if 'Tag is applied in the sources to class-wide interface objects we
12962 generate code that displaces "this" to reference the base of the object.
12963 (Expand_N_Attribute_Reference, case Size): Return specified size if
12964 known to front end.
12965 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12966 has code that displaces the pointer of the object to manage interface
12967 types. However this code must not be executed when the prefix is a
12968 subprogram. This bug caused the wrong expansion of the internally
12969 generated assignment that fills the dispatch table when the primitive
12970 is a function returning a class-wide interface type.
12971 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12972 Set_Attribute_Name for Name_Unaligned_Valid.
12974 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12975 Gary Dismukes <dismukes@adacore.com>
12977 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12978 If the initialization is the equivalent aggregate of the initialization
12979 procedure of the type, do not remove it.
12980 (Expand_N_Attribute_Definition_Clause): Exclude access variables
12981 initialized to null from having their expression reset to empty and
12982 note this exception in the comment.
12984 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12985 Robert Dewar <dewar@adacore.com>
12986 Ed Schonberg <schonberg@adacore.com>
12987 Gary Dismukes <dismukes@adacore.com>
12989 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12990 Add "with" and "use" clauses for Sem_Attr.
12991 (Expand_Current_Value): Do not replace occurences of attribute
12992 references where the prefix must be a simple name.
12994 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12995 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12996 Attribute_Requires_Simple_Name_Prefix.
12997 (Name_Modifies_Prefix): Body of new function.
12998 (Requires_Simple_Name_Prefix): Body of new function.
12999 (Resolve_Attribute, case Access): Improve error message for case of
13000 mismatched conventions.
13001 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13003 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13004 constrained subtype for a nominal unconstrained type, use its base type
13005 to check for conformance with the context.
13006 (Resolve_Attribute): Remove test of the access type being associated
13007 with a return statement from condition for performing accessibility
13008 checks on access attributes, since this case is now captured by
13009 Is_Local_Anonymous_Access.
13010 (Analyze_Access_Attribute): Set Address_Taken on entity
13011 (Analyze_Attribute, case Address): Set Address_Taken on entity
13012 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13013 validating an access attribute whose prefix is a current instance.
13014 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13015 applied to dispatching operations, if freezing is required then we set
13016 the attribute Has_Delayed_Freeze in the prefix's entity.
13017 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13018 current scope if access of local subprogram taken
13019 (Analyze_Access_Attribute): Check legality of self-reference even if the
13020 expression comes from source, as when a single component association in
13021 an aggregate has a box association.
13022 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13023 the prefix if it is a protected operation and the attribute is
13024 Unrestricted_Access.
13025 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13026 reference to the base type of the context, to force a constraint check
13027 when the context is an access subtype with an explicit constraint.
13028 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13029 node is rewritten as an interface conversion. leave unanalyzed after
13030 resolution, to ensure that type checking against the context will take
13033 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13034 Javier Miranda <miranda@adacore.com>
13035 Robert Dewar <dewar@adacore.com>
13037 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13038 wrapper when the full view of the controlling type of an inherited
13039 function that dispatches on result implements interfaces.
13040 (Expand_N_Object_Declaration): In cases where the type of the
13041 declaration is anonymous access, create finalization list for it.
13042 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13043 if the object has no explicit initialization, to match description of
13044 functionality of pragam Persistent_BSS.
13045 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13046 new function to build static aggregates, to replace initialization call
13047 when static initialization is desired.
13048 (Freeze_Type): Generate a list controller for an access type whenever
13049 its designated type has controlled anonymous access discriminants.
13050 (Build_Equivalent_Aggregate): New procedure to compute a static
13051 aggregate to be used as default initialization for composite types,
13052 instead of a generating a call to the initialization procedure for the
13054 (Build_Initialization_Call): When available, replace a call to the
13055 initialization procedure with a copy of the equivalent static aggregate
13057 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13058 declarations for objects of a class-wide interface type, rather than
13059 just identifiers, to prevent visibility problems.
13060 (Expand_N_Object_Declaration): When expanding the declaration for an
13061 object of a class-wide interface type, preserve the homonym chain of
13062 the original entity before exchanging it with that of the generated
13063 renaming declaration.
13064 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13065 active, because there is no way to handle the exception.
13066 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13067 to do a minimum decoration of the Access_Disp_Table list.
13068 (Expand_Record_Controller): Avoid the addition of the controller between
13069 the component containing the tag of a secondary dispatch table and its
13070 adjacent component that stores the offset to the base of the object.
13071 This latter component is only generated when the parent type has
13072 discriminants ---documented in Add_Interface_Tag_Components).
13073 (Apply_Array_Size_Check): Removed, no longer needed.
13074 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13075 components, create a Master_Entity for it only if it contains tasks.
13076 (Build_Init_Procedure): Suppress the tag assignment compiling under
13078 (Freeze_Record_Type): Remove code associated with creation of dispatch
13080 (Init_Secondary_Tags): Update type of actuals when generating calls to
13081 Ada.Tags.Set_Offset_To_Top
13082 (Stream_Operation_OK): Disable use of streams compiling under no
13084 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13085 if Has_Init_Expression set.
13086 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13087 Register_Primitive, which provides the same functionality.
13088 (Requires_Init_Proc): Return false in case of interface types.
13089 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13091 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13092 is always associated with a predefined primitive because the internal
13093 entities associated with interface types are not predefined primitives.
13094 Therefore, the call to Is_Internal is replaced by a call to the
13095 function Is_Predefined_Dispatching_Operation.
13096 (Make_Eq_If): When generating the list of comparisons for the
13097 components of a given variant, omit the controller component that is
13098 present if the variant has controlled components.
13100 2007-06-06 Javier Miranda <miranda@adacore.com>
13101 Hristian Kirtchev <kirtchev@adacore.com>
13102 Bob Duff <duff@adacore.com>
13104 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13105 handle the creation of finalization lists and calls for nested
13106 coextensions when the root of the chains is part of a return statement.
13107 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13109 (Expand_Record_Equality): Skip components that are interface types.
13110 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13111 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13112 with Rewrite_Coextension. Change the condition for detecting coextension
13114 (Is_Local_Access_Discriminant): Removed.
13115 (Rewrite_Coextension): New routine which rewrites a static coextension
13116 as a temporary and uses its unrestricted access in the construction of
13118 (Complete_Coextension_Finalization): New routine. Generate finalization
13119 attachment calls to all delayed coextensions.
13120 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13121 the allocator is not a coextension itself and has delayed coextensions.
13122 If the current allocator is controlled, but also a coextension, delay
13123 the generation of the finalization attachment call.
13124 Rename local variable "Node" to "Nod" in order to avoid confusion with
13126 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13127 limited types that are not inherently limited. Such an allocator is
13128 illegal, but is generated by the expander for a return statement, to
13129 copy the result onto the secondary stack. This is the only case where a
13130 limited object can be copied. Generate code to displace the pointer
13131 to the object if the qualified expression is a class-wide interface
13132 object. Such displacement was missing and hence the copy of the object
13134 (Apply_Accessibility_Check): Handle allocated objects initialized in
13136 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13137 and Expand_Allocator_Expression. Allocating class-wide interface objects
13138 this routine displaces the pointer to the allocated object to reference
13139 the component referencing the corresponding secondary dispatch table.
13140 Expand_Allocator_Expression): Add missing support to allocate class-wide
13141 interface objects initialized with a qualified expression.
13142 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13143 function result type, and use the finalization list associated with the
13144 function scope in that case (such an anonymous type should not be
13145 treated like an access parameter's type).
13147 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13148 Gary Dismukes <dismukes@adacore.com>
13149 Javier Miranda <miranda@adacore.com>
13151 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13152 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13153 required exception handler.
13154 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13155 properly the case of a function whose return type is a limited
13156 class-wide interface type. Modify the code of the accessibility
13157 check to handle class-wide interface objects. In this case we need to
13158 displace "this" to reference the primary dispatch table to get access
13159 to the TSD of the object (to evaluate its accessibility level).
13160 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13161 rather than a controlling result as one of the conditions for
13162 generating tests of the implicit BIP_Alloc_Form formal. The
13163 initialization assignment is also handled according to whether the
13164 result is tagged instead of controlling.
13165 In the case where the init assignment is inserted in the "then" part of
13166 the allocation conditional, rewrite the target to be a dereference of
13167 the implicit BIP_Object_Access formal.
13168 If the returned value is unconstrained and created on the secondary
13169 stack, mark the enclosing block and function so that the secondary
13170 stack is not reclaimed on return.
13171 Treat returns from functions with controlling results similarly to
13172 returns from functions with unconstrained result subtypes.
13173 If the object returned is unconstrained, and an allocator must be
13174 created for it, analyze the allocator once the block for the extended
13175 return is installed, to ensure that finalizable components
13176 of the expression use the proper finalization list. Guard the call to
13177 Move_Final_List with a check that there is something to finalize.
13178 (Make_Tag_Ctrl_Assignment): Use "old" handling
13179 of controlled type assignment for virtual machines, since new code uses
13180 unsupported features (such as direct access to bytes in memory).
13182 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13183 Ed Schonberg <schonberg@adacore.com>
13185 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13186 accessibility actual, check for the case of an aliased object that has
13187 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13188 we fall into processing for the attribute rather than the name of the
13190 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13191 formal has its address taken in the body, create a temporary to capture
13192 value. If the return type is a limited interface, do not treat the
13193 return value as Controlled.
13194 (Is_In_Place_Function): If the return type is a limited interface,
13195 treat as returning in place. The actual returned object may not always
13196 be limited, but the caller has to assume that it is returned in place.
13197 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13198 context of an allocator, use the correct finalization chain (that is,
13199 the chain belonging to the access type, rather than the chain belonging
13200 to the current scope).
13201 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13202 result type rather than a controlling result as a precondition for
13203 adding an allocation form actual to a build-in-place call.
13204 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13205 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13206 primitive in the dispatch tables. This work is now done by Make_DT when
13207 the type is frozen.
13208 (Register_Predefined_DT_Entry): Removed.
13209 (Add_Return): If end label is not present, use sloc of last statement
13210 for generated return statement in procedure, for better gdb behavior
13212 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13213 object address nodes to ensure proper processing by routines like
13215 (Expand_Call): Fix generation of validity check for parameter
13216 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13217 the allocation form parameter if the result subtype is constrained,
13218 except when the function has a controlling result.
13219 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13220 rather than Is_Controlled and Has_Controlled_Component, since we want to
13221 include class-wide result types in this treatment. Also test for a
13222 controlling result, since that also requires passing a finalization
13224 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13225 even when the result subtype is constrained, to handle calls involving
13226 controlling results.
13227 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13228 is now called even when the result subtype is constrained, to handle
13229 calls involving controlling results.
13230 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13231 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13232 now performs the test).
13233 (Make_Build_In_Place_Call_In_Object_Declaration):
13234 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13235 constrained, to handle calls involving controlling results.
13236 (Add_Return): Accomodate rewritten pattern from local raise to goto
13237 transformation, so that we still recognize an transfer statement
13238 and do the right thing here in that case.
13239 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13240 and end of subprogram code.
13241 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13242 support for primitives that are functions (without formals) with a
13243 controlling result.
13244 (Inherited_From_Formal): If the actual subtype has not generic parent
13245 type, it is not an actual for a formal derived type, and there is no
13246 operation to inherit from the formal.
13248 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13249 Thomas Quinot <quinot@adacore.com>
13251 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13252 inserted cleanup code appropriately for GDB use.
13253 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13254 exception handler for Deep_Adjust or Deep_Finalize.
13255 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13256 Raise_From_Controlled_Operation is available, use a call to that
13257 subprogram instead of a plain "raise Program_Error" node to raise
13258 Program_Error if an exception is propagated from an Adjust or Finalize
13260 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13261 appears in the optional statement list of a triggering alternative, the
13262 scope actions can be inserted directly there, and not in the list that
13263 includes the asynchronous select itself.
13265 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13266 Robert Dewar <dewar@adacore.com>
13267 Hristian Kirtchev <kirtchev@adacore.com>
13269 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13270 generated exception handler appropriately when debugging generated code.
13271 Deal properly with No_Exception_Propagation restriction mode.
13272 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13273 System.Address to System.Tasking.Task_Id when processing the result of
13274 the predefined primitive _disp_get_task_id.
13275 (Expand_N_Asynchronous_Select): Clarify comment.
13276 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13277 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13278 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13279 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13280 privals and for generated call to Complete_Entry_Body, for better gdb
13282 (Copy_Result_Type): Utility to construct a parameter and result profile
13283 for protected functions whose return type is an anonymous access to
13285 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13287 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13288 point when the local-raise-to-goto transformation has taken place.
13290 2007-06-06 Javier Miranda <miranda@adacore.com>
13291 Nicolas Setton <setton@adacore.com>
13293 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13294 functionality when the backend is generating code.
13295 Otherwise any serious error
13296 reported by the backend calling the frontend routine Error_Msg
13297 changes the Compilation_Mode to Check_Semantics, disables the
13298 functionality of this routine and causes the generation of
13299 spureous additional errors.
13301 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13302 debugging information now generated by the compiler for fat-pointer
13304 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13306 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13308 2007-06-06 Thomas Quinot <quinot@adacore.com>
13310 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13311 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13312 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13313 For a remote call to a function with a classwide return type, apply an
13314 E.4(18) check to the returned value.
13315 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13316 stream attributes of the designated type of an RACW, as they are not
13317 dispatching primitive operations.
13319 2007-06-06 Geert Bosch <bosch@adacore.com>
13321 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13323 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13325 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13326 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13328 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13330 2007-06-06 Javier Miranda <miranda@adacore.com>
13332 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13333 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13335 2007-06-06 Javier Miranda <miranda@adacore.com>
13337 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13338 deallocation of class-wide interface objects.
13339 (Expand_Dispatching_Constructor_Call): Take into account that if the
13340 result of the dispatching constructor is an interface type, the
13341 function returns a class-wide interface type; otherwise the returned
13342 object would be actual. The frontend previously accepted returning
13343 interface types because Expand_Interface_Actuals silently performed
13344 the management of the returned type "as if" it were a class-wide
13346 (Expand_Dispatching_Constructor_Call): Replace call to
13347 Make_DT_Access_Action by direct call to Make_Function_Call.
13349 2007-06-06 Robert Dewar <dewar@adacore.com>
13350 Ed Schonberg <schonberg@adacore.com>
13352 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13353 compute masking constant, since we now set Esize properly to the
13355 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13356 to match the alignment.
13357 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13358 packed arrays of 8 bits or less.
13360 * freeze.adb (Freeze_Entity): When freezing the formals of a
13361 subprogram, freeze the designated type of a parameter of an access type
13362 only if it is an access parameter.
13363 Increase size of C convention enumeration object
13364 (Freeze_Entity, array type case): Make sure Esize value is properly
13365 adjusted for the alignment if it is known.
13366 (Freeze_Entity, array type case): When checking bit packed arrays for
13367 the size being incorrect, check RM_Size, not Esize.
13368 (Freeze_Record_Type): Check for bad discriminated record convention
13369 (In_Exp_Body): Return true if the body is generated for a subprogram
13370 renaming, either an attribute renaming or a renaming as body.
13371 (Check_Itype): If the designated type of an anonymous access component
13372 is a non-protected subprogram type, indicate that it is frozen, to
13373 prevent out-of-scope freeze node at some subsequent call.
13374 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13375 only if the subprogram is neither imported nor exported, as well as the
13376 NCA descriptor class if the subprogram is exported.
13378 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13379 Arnaud Charlet <charlet@adacore.com>
13380 Robert Dewar <dewar@adacore.com>
13381 Gary Dismukes <dismukes@adacore.com>
13383 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13384 default initialization on an imported object, when there is no
13385 initialization call generated for it.
13386 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13389 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13390 Static_Elaboration_Desired.
13391 Remove pragma Thread_Body.
13392 Implement a new pragma No_Body
13393 Removes the Explicit_Overriding pragma
13394 Remove Optional_Overriding pragma
13395 (Prag): Deal with Universal_Aliasing.
13396 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13397 Pragma_CIL_Constructor): New names.
13399 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13400 uses the equivalent aggregate of a type must be treated as an implicit
13402 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13403 has none of the other categories.
13404 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13405 to apply Import to an object renaming declaration.
13407 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13408 from a C++ class should be declared as limited and that it will be
13409 considererd limited.
13410 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13411 should be declared as limited and that it will be considererd limited.
13412 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13413 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13414 (Analyze_Pragma): Deal with Universal_Aliasing.
13415 (Sig_Flags): Likewise.
13416 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13417 (Overflow_Checks_Unsuppressed): New flag.
13418 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13419 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13420 case of JVM or .NET targets, and compiling user code.
13421 Add debugging convenience routine rv
13423 2007-06-06 Robert Dewar <dewar@adacore.com>
13425 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13426 are interface type.
13427 (Build_Elementary_Input_Call): For floating-point use right type in the
13428 absence of strange size or stream size clauses.
13429 (Build_Elementary_Write_Call): Same fix
13430 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13431 set to value that does not match base type size.
13433 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13435 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13436 object of a limited type can be initialized with a call to a function
13437 that returns in place. If the limited type has unknown discriminants,
13438 and the underlying type is a constrained composite type, build an actual
13439 subtype from the function call, as is done for private types.
13440 (Side_Effect_Free): An expression that is the renaming of an object or
13441 whose prefix is the renaming of a object, is not side-effect free
13442 because it may be assigned through the renaming and its value must be
13443 captured in a temporary.
13444 (Has_Controlled_Coextensions): New routine.
13445 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13446 as is done for other limited types.
13447 (Non_Limited_Designated_Type): new predicate.
13448 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13450 Remove all handling of with_type clauses.
13452 * par-ch10.adb: Remove all handling of with_type clauses.
13454 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13455 checksum if the main source could not be parsed.
13456 (Loat_Unit): When processing a child unit, determine properly whether
13457 the parent unit is a renaming when the parent is itself a child unit.
13458 Remove handling of with_type clauses.
13460 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13461 (Set_Is_Static_Coextension): New procedure.
13462 (Has_Local_Raise): New function
13463 (Set_Has_Local_Raise): New procedure
13464 (Renaming_Exception): New field
13465 (Has_Init_Expression): New flag
13466 (Delay_Finalize_Attach): Remove because flag is obsolete.
13467 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13468 Remove all handling of with_type clauses.
13469 (Exception_Junk): Can now be set in N_Block_Statement
13471 2007-06-06 Vincent Celier <celier@adacore.com>
13472 Robert Dewar <dewar@adacore.com>
13474 * frontend.adb (Frontend): Return immediately if the main source could
13475 not be parsed, because of preprocessing errors.
13477 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13478 (Gnat1drv): Exit with errors if the main source could not be parsed,
13479 because of preprocessing errors.
13480 (Check_Rep_Info): New procedure
13482 2007-06-06 Robert Dewar <dewar@adacore.com>
13484 * g-hesorg.ads, g-heasor.ads,
13485 g-busorg.ads, g-bubsor.ads: Update documentation
13486 GNAT.Heap/Bubble_Sort_G is now pure
13488 2007-06-06 Robert Dewar <dewar@adacore.com>
13490 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13492 2007-06-06 Robert Dewar <dewar@adacore.com>
13493 Ed Schonberg <schonberg@adacore.com>
13495 * g-comlin.ads, g-comlin.adb:
13496 Add new warning for renaming of function return objects
13498 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13499 (Tree_Read): Use size of object instead of type'object_size, since the
13500 latter is incorrect for packed array types.
13501 (Tree_Write): Same fix
13503 * opt.ads: Add new warning for renaming of function return objects
13504 (Generating_Code): New boolean variable used to indicate that the
13505 frontend as finished its work and has called the backend to process
13506 the tree and generate the object file.
13507 (GCC_Version): Is now private
13508 (Static_Dispatch_Tables): New constant declaration.
13509 (Overflow_Checks_Unsuppressed): New flag.
13510 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13511 (List_Closure): New flag for gnatbind (-R)
13512 Zero_Formatting: New flag for gnatbind (-Z)
13513 (Special_Exception_Package_Used): New flag.
13514 (Warn_On_Unrepped_Components): New flag.
13516 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13517 unit is a compilation unit, rather than relying on its scope, so that
13518 Standard can be renamed.
13519 (Analyze_Object_Renaming): Add new warning for renaming of function
13521 Also reject attempt to rename function return object in Ada 83 mode.
13522 (Attribute_Renaming): In case of tagged types, add the body of the
13523 generated function to the freezing actions of the type.
13524 (Find_Type): A protected type is visible right after the reserved word
13525 "is" is encountered in its type declaration. Set the entity and type
13526 rather than emitting an error message.
13527 (New_Scope): Properly propagate Discard_Names to inner scopes
13528 (Check_Nested_Access): New procedure.
13529 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13530 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13532 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13533 Add new warning for renaming of function return objects
13534 (Check_References): Suppress warnings for objects whose type or
13535 base type has Warnings suppressed.
13536 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13537 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13539 2007-06-06 Vincent Celier <celier@adacore.com>
13540 Emmanuel Briot <briot@adacore.com>
13541 Olivier Hainque <hainque@adacore.com>
13543 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13544 absolute value of Header.Block_Size when displaying the freed physical
13546 (Allocate): Compute Storage_Address using Integer_Address, not
13547 Storage_Offset, because the range of Storage_Offset may not be large
13549 (Configure): New parameter Low_Level_Traces
13550 (Allocate, Deallocation, Free_Physically): Added low-level traces
13551 (Configure): new parameter Errors_To_Stdout.
13552 (Output_File): new subprogram
13553 (Deallocate, Dereference): Send error messages to the proper stream
13554 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13555 documented. Previous code would send it to the current output file
13556 defined in GNAT.IO, which might not be stdout
13557 (Is_Valid): Adjust comment to mention that a positive reply means that
13558 Header_Of may be used to retrieve the allocation header associated with
13559 the subprogram Storage address argument. Return False early if this
13560 address argument is misaligned.
13562 2007-06-06 Vincent Celier <celier@adacore.com>
13564 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13566 (ASIS_Main): New global variable
13567 (Get_Closure): New procedure
13568 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13569 check, metric or pretty. Call Get_Closure in this case.
13570 (Check_Files): For GNAT LIST, check all sources of all projects when
13571 All_Projects is True.
13572 (GNATCmd): Accept -U for GNAT LIST
13574 2007-06-06 Vincent Celier <celier@adacore.com>
13576 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13578 Correct error message when invocation of the linker fails
13579 Add explicit size clause for the C imported variables
13580 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13581 we expect char size.
13582 Read target parameters earlier, since this is needed to set
13583 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13586 2007-06-06 Vincent Celier <celier@adacore.com>
13589 Add 3 spaces before the default project directory when displaying
13590 the project search path.
13591 Add new command line switch '-l' to display license information.
13593 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13595 * gmem.c: Add support for timestamps on memory operations.
13597 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13598 operations (not used currently, just foundation for future
13599 enhancements). Add possibility to perform full dump of gmem.out file.
13600 (Print_Back_Traces): Declare accesses to root arrays constants since
13601 they aren't modified.
13602 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13604 2007-06-06 Vincent Celier <celier@adacore.com>
13606 * gnatsym.adb: Update Copyright notice
13607 (Parse_Cmd_Line): Accept new switch -D
13608 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13611 * prj.ads (Policy): New policy Direct
13612 (Yes_No_Unknown): New enumeration type
13613 (Project_Data): New component Libgnarl_Needed
13615 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13616 use the untouched pathname casing.
13617 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13618 proper casing on non case-sensitive platforms like Windows.
13619 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13620 on all platforms, as it is not possible to know which one is allowed
13621 before processing the project files.
13622 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13623 specified when symbol policy is Direct. Check that when there is a
13624 symbol file defined (either by default or with attribute
13625 Library_Symbol_File) it is not the same as the reference symbol file.
13626 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13627 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13628 extending projects.
13629 (Record_Ada_Source): Record a source that has been locally removed in an
13632 * symbols.ads (Policy): New policy Direct
13634 * symbols-vms.adb (Initialize): Take new policy Direct in case
13637 2007-06-06 Vincent Celier <celier@adacore.com>
13639 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13640 Correct obvious bug (return Dir; instead of return Directory;).
13641 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13643 2007-06-06 Thomas Quinot <quinot@adacore.com>
13645 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13646 they have UNIX line endings (LF only) even on Windows, and thus pass
13647 all GNAT style checks.
13649 2007-06-06 Emmanuel Briot <briot@adacore.com>
13651 * g-regpat.adb (Quote): Fix improper quoting of '.'
13653 2007-06-06 Thomas Quinot <quinot@adacore.com>
13655 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13656 default, set False on a per-runtime basis.
13657 (Need_Netdb_Buffer): New constant.
13659 * g-socket.ads, g-socket.adb: Import new package
13660 GNAT.Sockets.Thin.Task_Safe_NetDB.
13661 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13662 binding to obtain proper message.
13663 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13664 Replace various occurrences of Arry (Arry'First)'Address with the
13665 equivalent Arry'Address (GNAT always follows implementation advice from
13667 (Get_Host_By_Address, Get_Host_By_Name,
13668 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13669 instead, rely on platform-specific task safe netdb operations provided
13672 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13673 parameter Process_Blocking_IO.
13674 (Host_Error_Messages): Add stub body.
13675 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13676 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13677 Safe_Getservbyport): Move functions into new child package
13679 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13680 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13681 (In_Addr): Add alignment clause.
13683 2007-06-06 Robert Dewar <dewar@adacore.com>
13685 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13686 Add note about symbolic traceback
13688 2007-06-06 Pascal Obry <obry@adacore.com>
13690 * hostparm.ads (Normalized_CWD): Use the host directory separator
13691 instead of the hardcoded forward slash which is not the proper
13692 character on Windows for example.
13693 (Java_VM): Removed.
13695 2007-06-06 Vincent Celier <celier@adacore.com>
13696 Arnaud Charlet <charlet@adacore.com>
13698 * a-clrefi.adb, a-clrefi.ads: New files
13700 * impunit.adb: Add s-os_lib in the list of user visible units.
13701 (Non_Imp_File_Names_95): Add a-clrefi to this list
13702 Remove obsolete run-time entries.
13703 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13704 "a-exetim" -- Ada.Execution_Time
13705 "a-extiti" -- Ada.Execution_Time.Timers
13707 * mlib-prj.ads, mlib-prj.adb
13708 (Build_Library): Use untouched object dir and library dir. At the
13709 same time makes sure that the checks are done using the canonical
13710 form. Removes hard-coded directory separator and use the proper host
13712 (Process_Project): Do not look in object directory to check if libgnarl
13713 is needed for a library, if there is no object directory.
13714 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13716 (Build_Library): When invoking gnatbind, use a response file if the
13717 total size of the arguments is too large.
13719 * Makefile.rtl: (g-sttsne): New object file.
13720 Add entry for a-clrefi, s-utf_32, System.Exceptions
13722 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13723 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13724 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13725 Change g-string to s-string, g-os_lib to s-os_lib
13726 Change all g-utf_32 references to s-utf_32
13728 2007-06-06 Tristan Gingold <gingold@adacore.com>
13729 Olivier Hainque <hainque@adacore.com>
13731 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13732 LIB$STOP is called to raise an exception and the IP of the exception
13733 is the instruction right after the call.
13734 (__gnat_adjust_context_for_raise, AIX): Implement.
13735 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13736 adjust_context_for_raise before Raise_From_Signal_Hanler.
13737 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13738 siginfo is passed to the handler, necessary to let the zcx propagation
13739 engine unwind past it.
13741 2007-06-06 Olivier Hainque <hainque@adacore.com>
13743 * initialize.c (__gnat_initialize for vxworks): Update documentation
13744 on the ZCX support, using different sets of crtstuff objects than with
13747 2007-06-06 Robert Dewar <dewar@adacore.com>
13749 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13751 (Layout_Type): Fix recomputation of size from alignment.
13753 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13754 Javier Miranda <miranda@adacore.com>
13756 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13757 association in an instance.
13758 (Copy_Generic_Node): If the node is a string literal, no need to copy
13760 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13761 grandparent of the entity.
13762 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13763 to simplify handling of formal interfaces that derive from other formal
13765 (Instantiate_Subprogram_Body): The defining unit name of the body of
13766 the instance should be a defining identifier.
13767 (Install_Formal_Packages): make global to the package, for use in
13768 instantiations of child units.
13769 (Analyze_Package_Instantiation): Do not attempt to set information on an
13770 enclosing master of an entry when expansion is disabled.
13771 (Instantiate_Type): If the actual is a tagged synchronized type and the
13772 generic ancestor is an interface, create a generic actual for the
13773 corresponding record.
13774 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13775 declaration, to ensure that the interface list is processed correctly.
13776 (Inline_Instance_Body): If enclosing scope is an instance body, remove
13777 its entities from visibiility as well.
13778 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
13779 given with a named association, analyze the expression only, not the
13780 discriminant association itself.
13781 (Reset_Entity): If the analysis of a selected component is transformed
13782 into an expanded name in the prefix of a call with parameters, do not
13783 transform the original node into an expanded name, to prevent visibility
13784 errors in the case of nested generics.
13785 (Check_Private_View): For an array type, check whether the index types
13786 may need exchanging.
13788 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13789 Vincent Celier <celier@adacore.com>
13791 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13792 since both are separated.
13793 Add support for imported CIL packages.
13794 Add further special handling of "value_type" for CIL.
13795 Add special handling of pragma Import for CIL.
13797 * make.ads, make.adb: When switch -eS is used, direct all outputs to
13798 standard output instead of standard error, except errors.
13799 (Absolute_Path): Use untouched casing for the parent directory.
13800 (Add_Library_Search_Dir): Use the untouched directory name.
13801 (Add_Source_Search_Dir): Idem.
13802 (Change_To_Object_Directory): Update output to use proper casing.
13803 (Create_Binder_Mapping_File): Use the untouched filename to set
13805 (Gnatmake): Use untouched library and executable directory names.
13806 (Insert_Project_Sources): Use untouched filename for spec and body.
13807 (Is_In_Object_Directory): Use untouched object directory.
13808 (Mark_Directory): Idem.
13809 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13810 contains the non-canonical filename in all cases.
13811 (Change_To_Object_Directory): In verbose mode, display the name of the
13812 object directory we're changing to.
13813 (Compile_Sources): Make sure, when a project file is used, to compile
13814 the body of the unit, when there is one, even when only the spec is
13815 recorded in an ALI file.
13816 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13818 (Report_Compilation_Failed): New procedure
13819 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13820 procedures moved from the spec to the body.
13821 (Extract_Failure): Removed, not used
13822 Replace explicit raises of exception Bind_Failed and Link_Failed with
13823 calls to Make_Failed with the proper message.
13824 Replace explicit raises of exception Compilation_Failed with calls to
13825 procedure Report_Compilation_Failed.
13826 (Initialize): Create mapping files unconditionally when using project
13829 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13830 Pragma_CIL_Constructor): New names.
13832 * targparm.ads, targparm.adb
13833 (Compiler_System_Version): Removed, no longer used.
13834 (Get_Target_Parameters): Relax checks on system.ads validity. Add
13835 handling of two new system flags: JVM and CLI.
13837 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13838 Arnaud Charlet <charlet@adacore.com>
13840 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13841 time, use the default s-interr body that provides interrupt support
13843 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13844 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13845 g-soccon.ads, and s-taprop.adb for the marte run time.
13846 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13847 timers are supported on marte.
13848 (EH_MECHANISM for marte): Do not use ZCX.
13849 (THREADSLIB for marte): Use -lmarte.
13850 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13851 Add mlib-tgt-specific.o to gnatmake objects
13852 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13853 longer of MLib.Tgt.
13854 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13855 6, either kernel or rtp, use a specialized version of s-osinte.ads.
13857 2007-06-06 Pascal Obry <obry@adacore.com>
13859 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13861 2007-06-06 Vincent Celier <celier@adacore.com>
13863 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13864 separator, use instead the proper host directory separator.
13865 (Copy_ALI_Files): Make sure that an already existing ALI file in the
13866 ALI copy dir is writable, before doing the copy.
13868 * mlib-utl.ads, mlib-utl.adb:
13869 (Gcc): If length of command line is too long, put the list of object
13870 files in a response file, if this is supported by the platform.
13871 (Ar): If invocation of the archive builder is allowed to be done in
13872 chunks and building it in one shot would go above an OS dependent
13873 limit on the number of characters on the command line, build the archive
13876 2007-06-06 Vincent Celier <celier@adacore.com>
13878 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13879 of specified object file is not equal to base name of source.
13881 2007-06-06 Javier Miranda <miranda@adacore.com>
13882 Hristian Kirtchev <kirtchev@adacore.com>
13883 Ed Schonberg <schonberg@adacore.com>
13885 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13886 the full type declaration.
13887 (Analyze_Component_Declaration): Add local variable E to capture the
13888 initialization expression of the declaration. Replace the occurences of
13889 Expression (N) with E.
13890 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13891 limited interface object with a function call.
13892 (Array_Type_Declaration): If the declaration lacks subtype marks for
13893 indices, create a simple index list to prevent cascaded errors.
13894 (Is_Null_Extension): Ignore internal components created for secondary
13895 tags when checking whether a record extension is a null extension.
13896 (Check_Abstract_Interfaces): Add missing support for interface subtypes
13897 and generic formals.
13898 (Derived_Type_Declaration): Add missing support for interface subtypes
13899 and generic formals.
13900 (Analyze_Object_Declaration): If an initialization expression is
13901 present, traverse its subtree and mark all allocators as static
13903 (Add_Interface_Tag_Component): When looking for components that may be
13904 secondary tags, ignore pragmas that can appear within a record
13906 (Check_Abstract_Overriding): an inherited function that dispatches on
13907 result does not need to be overriden if the controlling type is a null
13909 (Mentions_T): Handle properly a 'class attribute in an anonymous access
13910 component declaration, when the prefix is an expanded name.
13911 (Inherit_Component): If the derivation is for a private extension,
13912 inherited components remain visible and their ekind should not be set
13914 (Find_Type_Of_Object): In the case of an access definition, always set
13915 Is_Local_Anonymous_Access. We were previously not marking the anonymous
13916 access type of a return object as a local anonymous type.
13917 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13918 range with character literal bounds.
13919 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13920 (Access_Subprogram_Declaration): Indicate that the type declaration
13921 depends on an incomplete type only if the incomplete type is declared
13923 (Analyze_Subtype_Declaration): Handle properly subtypes of
13924 synchronized types that are tagged, and that may appear as generic
13926 (Access_Subprogram_Declaration): An anonymous access to subprogram can
13927 appear as an access discriminant in a private type declaration.
13928 (Add_Interface_Tag_Components): Complete decoration of the component
13929 containing the tag of a secondary dispatch table and the component
13930 containing the offset to the base of the object (this latter component
13931 is only generated when the parent type has discriminants --as documented
13933 (Inherit_Components): Use the new decoration of the tag components to
13934 improve the condition that avoids inheriting the components associated
13935 with secondary tags of the parent.
13936 (Build_Discriminanted_Subtype): Indicate to the backend that the
13937 size of record types associated with dispatch tables is known at
13939 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13940 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13941 to include task, protected, and synchronized interfaces as limited
13943 (Process_Discriminants): Remove the setting of
13944 Is_Local_Anonymous_Access on the type of (anonymous) access
13945 discriminants of nonlimited types.
13946 (Analyze_Interface_Type_Declaration): Complete the decoration of the
13947 class-wide entity it is is already present. This situation occurs if
13948 the limited-view has been previously built.
13949 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13951 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13954 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13956 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13957 of the type that specify the position of interface tags when the type
13958 inherits discriminated array components from the parent type.
13959 If a component is initialized with a box, check for the presence of a
13960 default expression in its declaration before using its default
13961 initialization procedure.
13962 (Resolve_Record_Aggregate): If a component is box-initialized, and the
13963 component type has a discriminants, create a partial aggregate for it
13964 by copying the discriminants of the component subtype.
13965 Reject attempt to initialize a discriminant with a box.
13966 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13967 associated with dispatch tables is known at compile time.
13968 (Get_Value): If an association in a record aggregate has a box
13969 association, and the corresponding record component has a default
13970 expression, always copy the default expression, even when the
13971 association has a single choice, in order to create a proper
13972 association for the expanded aggregate.
13974 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13975 Robert Dewar <dewar@adacore.com>
13977 * par-ch12.adb (P_Generic_Associations): The source position of an
13978 Others association is that of the others keyword, not that of the token
13979 that follows the box.
13980 (P_Formal_Type_Definition): Handle formal access types that carry a
13981 not null indicator.
13983 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13984 multiple identifier are present, save Scan_State before scanning the
13985 colon, to ensure that separate trees are constructed for each
13987 (P_Identifier_Declarations): For object declaration, set new flag
13988 Has_Init_Expression if initialization expression present.
13989 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13990 Improve NOT NULL error messages
13992 2007-06-06 Robert Dewar <dewar@adacore.com>
13994 * par-ch4.adb: (P_Name): Recover from literal used as name
13996 2007-06-06 Vincent Celier <celier@adacore.com>
13998 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13999 defaulted to False.
14000 In the "not" case, recursive call with Complemented set to True.
14001 Do not allow "or" or "and" operators when Complemented is True.
14003 2007-06-06 Vincent Celier <celier@adacore.com>
14005 * prj.adb (Project_Empty): Gives default value for new component
14008 * prj-attr.ads: Minor reformatting
14010 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14011 directory using the untouched casing.
14012 (For_All_Source_Dirs): Idem.
14014 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14015 directories specified with switches -aP.
14016 (Add_Search_Project_Directory): New procedure
14017 (Initialize_Project_Path): Put the directories in table
14018 Search_Directories in the project search path.
14019 (Initialize_Project_Path): For VMS, transform into canonical form the
14022 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14024 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14025 true if configurable run-time or No_Run_Time is set.
14026 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14027 processing an unit which is not the one being compiled.
14029 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14031 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14032 Replace UC by Ada.UC
14034 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14035 Replace UC by Ada.UC
14037 2007-06-06 Robert Dewar <dewar@adacore.com>
14039 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14041 2007-06-06 Robert Dewar <dewar@adacore.com>
14043 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14044 Remove no longer used nodes.
14046 2007-06-06 Javier Miranda <miranda@adacore.com>
14047 Ed Schonberg <schonberg@adacore.com>
14048 Robert Dewar <dewar@adacore.com>
14050 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14051 on obsolescent withed unit in case of limited-withed units.
14052 (Analyze_Compilation_Unit): Add guard to code that removed an
14053 instantiation from visibility, to prevent compiler aborts when
14054 instantiation is abandoned early on.
14055 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14056 current unit being analyzed, and Distinguish local incomplete types
14057 from limited views of types declared elsewhere.
14058 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14059 to state that the class-wide entity is shared by the limited-view
14061 (Analyze_With_Clause): Improve placement of flag for case of
14062 unimplemented unit.
14063 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14064 manner similar to GNAT.Current_Exception. This is a violation of
14065 restriction (No_Exception_Propagation), and also inhibits the
14066 optimization of local raise to goto.
14067 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14068 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14069 for violation of restriction No_Exception_Propagation.
14071 2007-06-06 Javier Miranda <miranda@adacore.com>
14072 Hristian Kirtchev <kirtchev@adacore.com>
14073 Gary Dismukes <dismukes@adacore.com>
14075 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14076 use of entity Exception_Occurrence if it is not available in the
14079 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14080 concurrent types are declared within an Ada 2005 generic, build their
14081 corresponding record types since they are needed for overriding-related
14083 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14084 protected type does not implement a task interface or a nonlimited
14086 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14087 type does not implement a protected interface or a nonlimited interface.
14088 (Single_Task_Declaration, Single_Protected_Declaration): use original
14089 entity for variable declaration, to ensure that debugging information
14090 is correcty generated.
14091 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14092 routines if the expander is not active.
14093 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14094 raise, since special things happen for task exception handlers.
14096 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14097 concurrent types declared within a generic.
14098 (Check_Dispatching_Operation): Do not emit warning about late interface
14099 operations in the context of an instance.
14100 (Check_Dispatching_Call): Remove restriction against calling a
14101 dispatching operation with a limited controlling result.
14102 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14103 Register_Interface_DT_Entry by calls to Register_Primitive.
14104 (Check_Dispatching_Formals): Handle properly a function with a
14105 controlling access result.
14107 2007-06-06 Robert Dewar <dewar@adacore.com>
14108 Arnaud Charlet <charlet@adacore.com>
14110 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14111 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14112 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14113 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14114 message when using a VM, since this attribute is not supported.
14115 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14117 * usage.adb: Add new warning for renaming of function return objects
14118 Indicate that -gnatwp and -gnatwP concern front-end inlining
14119 Add line for -gnatyg
14120 Add usage information for -gnatw.c/C
14122 2007-06-06 Robert Dewar <dewar@adacore.com>
14123 Ed Schonberg <schonberg@adacore.com>
14126 (Find_Var): Do not consider function call in test for infinite loop
14127 warning if warnings set off for function entity.
14128 (One_Bound): Do not create a temporary for a loop bound if it is a
14130 (Analyze_Assignment): Traverse the right hand side of an assignment and
14131 mark all allocators as static coextensions.
14132 (Analyze_Assignment): Exempt assignments involving a dispatching call
14133 to a function with a controlling access result from the check requiring
14134 the target to be class-wide.
14136 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14137 Ed Schonberg <schonberg@adacore.com>
14138 Robert Dewar <dewar@adacore.com>
14139 Javier Miranda <miranda@adacore.com>
14141 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14142 chain of coextensions when an allocator serves as the root of such a
14144 (Propagate_Coextensions): Remove the test for the root being an
14146 (Resolve_Allocator): Add condition to ensure that all future decoration
14147 occurs on an allocator node. Add processing and cleanup for static
14149 (Valid_Conversion): If the operand type is the limited view of a
14150 class-wide type, use the non-limited view is available to determine
14151 legality of operation.
14152 (Ambiguous_Character): move to spec, for use elsewhere.
14153 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14154 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14155 character literals.
14156 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14157 Do_Division_Check flag explicitly.
14158 (Resolve_Actuals): If the actual is of a synchronized type, and the
14159 formal is of the corresponding record type, this is a call to a
14160 primitive operation of the type, that is declared outside of the type;
14161 the actual must be unchecked-converted to the type of the actual
14162 (Resolve_Call): Kill all current values for any subprogram call if
14163 flag Suppress_Value_Tracking_On_Call is set.
14164 (Resolve_Type_Conversion): Generate error message the the operand
14165 or target of interface conversions come from a limited view.
14166 (Check_Infinite_Recursion): Ignore generated calls
14167 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14168 that an expression that constrains an access discriminant in an
14169 allocator does not denote an object with a deeper level than the
14170 allocator's access type.
14171 (Resolve_Allocator): In the case of an allocator initialized by an
14172 aggregate of a discriminated type, check that associations for any
14173 access discriminants satisfy accessibility requirements by calling
14174 Check_Allocator_Discrim_Accessibility.
14175 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14176 subprogram types in the same fashion as other anonymous access types.
14177 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14178 message that is not a continuation message.
14179 (Resolve_Type_Conversion): Add missing support for conversion to
14181 (Resolve_Actuals): Introduce a transient scope around the call if an
14182 actual is a call to a function returning a limited type, because the
14183 resulting value must be finalized after the call.
14184 (Resolve_Actuals): If the call was given in prefix notations, check
14185 whether an implicit 'Access reference or implicit dereference must be
14186 added to make the actual conform to the controlling formal.
14188 2007-06-06 Robert Dewar <dewar@adacore.com>
14189 Javier Miranda <miranda@adacore.com>
14191 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14192 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14193 overriding of an inherited private subprogram now there is no need to
14194 inherit its dispatching slot and reduce the size of the dispatch table.
14195 Set_All_DT_Position now ensures that the same slot is now assigned to
14196 both entities. This is required to statically build the dispatch table.
14197 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14198 of calling Set_All_DT_Position to re-evaluate the position of the
14199 entries in the dispatch table. Such reevaluation is not desired if
14200 the tagged type is already frozen.
14202 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14203 Gary Dismukes <dismukes@adacore.com>
14204 Robert Dewar <dewar@adacore.com>
14205 Javier Miranda <miranda@adacore.com>
14207 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14208 reference acts as an lvalue when the attribute name modifies the prefix
14209 (Is_Coextension_Root): New routine.
14210 (Mark_Static_Coextensions): New routine.
14211 (Type_Access_Level): Revise code for checking the level of the
14212 anonymous access type of a return object.
14213 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14214 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14215 retrieval of the corresponding controlling record type.
14216 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14217 concurrent types declared within a generic as well as class wide types.
14218 Emit a mode incompatibility error whenever a protected entry or routine
14219 override an interface routine whose first parameter is not of mode
14220 "out", "in out" or access to variable.
14221 (Overrides_Synchronized_Primitive): Rename to
14222 Find_Overridden_Synchronized_Primitive.
14223 (Collect_Interface_Components): New subprogram that collects all the
14224 components of a tagged record containing tags of secondary dispatch
14226 (Add_Global_Declaration): New procedure
14227 (Abstract_Interface_List): Handle properly the case of a subtype of a
14229 (Type_Access_Level): In the case of a type whose parent scope is a
14230 return statement, call Type_Access_Level recursively on the enclosing
14231 function's result type to determine the level of the return object's
14233 (Build_Elaboration_Entity): Build name of elaboration entity from the
14234 scope chain of the entity, rather than the unit name of the file name.
14235 (Check_Nested_Access): New procedure.
14236 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14237 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14238 (Get_Renamed_Entity): Utility routine for performing common operation
14239 of chasing the Renamed_Entity field of an entity.
14241 2007-06-06 Robert Dewar <dewar@adacore.com>
14243 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14245 (Check_A_Call): Add check for entry call which was causing blowup
14247 2007-06-06 Olivier Hainque <hainque@adacore.com>
14249 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14250 special code on ia64-vms to handle major incompatibilities between the
14251 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14252 this routine with a very different set of arguments and expectations on
14255 2007-06-06 Thomas Quinot <quinot@adacore.com>
14257 * socket.c (__gnat_close_signalling_fd): New function.
14258 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14259 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14260 New supporting functions for task safe Netdb operations.
14262 2007-06-06 Thomas Quinot <quinot@adacore.com>
14263 Olivier Hainque <hainque@adacore.com>
14265 * a-except-2005.ads, a-except-2005.adb
14266 (Raise_From_Controlled_Operation): New procedure in
14267 (private part of) Ada.Exceptions (standard runtime version). Used to
14268 provide informational exception message when Program_Error is raised as
14269 a result of an Adjust or Finalize operation propagating an exception.
14270 (Rmsg_28): Fix description for E.4(18) check.
14271 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14272 propagation starts, to let debuggers know about the event in a reliable
14274 Take the address of E and dereference to make sure it is homed on stack
14275 and prevent the stores from being deleted, necessary for proper
14276 debugger behavior on "break exception" hits.
14277 (Local_Raise): Moved to System.Exceptions
14279 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14280 exception message from the current occurrence and raise Program_Error
14281 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14283 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14284 Arnaud Charlet <charlet@adacore.com>
14286 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14289 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14290 priority associated to a lock.
14292 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14293 assertion to take into account case of no abort restriction.
14294 (Initialize_Protection_Entries): Add initialization for the field
14295 New_Ceiling associated to the protected object.
14296 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14299 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14300 since this function needs to be set consistently with Update_Exception.
14302 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14303 since this function needs to be set consistently with Update_Exception.
14305 * s-taskin.ads: Update comments on
14306 Interrupt_Server_Blocked_On_Event_Flag.
14307 (Unbind_Handler): Fix handling of server_task wakeup
14308 (Server_Task): Set self's state so that Unbind_Handler can take
14309 appropriate actions.
14310 (Common_ATCB): Now use a constant from System.Parameters to determine
14311 the max size of the Task_Image field.
14313 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14314 Initialize_Analyzer function.
14315 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14316 take into account case of no abort restriction.
14317 ([Vulnerable_]Complete_Master): Modify assertion.
14319 * s-tataat.adb (Finalize): Use the nestable versions of
14320 Defer/Undefer_Abort.
14322 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14324 * s-tpobop.ads: Update comments.
14326 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14327 of locking the object manually, to avoid inconsistencies between
14328 Lock/Unlock_Entry assertions.
14330 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14332 application and System.Parameters.No_Abort is True.
14333 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14334 (Unbind_Handler): Fix handling of server_task wakeup
14335 (Server_Task): Set self's state so that Unbind_Handler can take
14336 appropriate actions.
14338 2007-06-06 Thomas Quinot <quinot@adacore.com>
14340 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14341 declarations instead of an explicit null body, for conciseness.
14343 2007-06-06 Robert Dewar <dewar@adacore.com>
14345 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14346 illegal aggregate and the type is still Any_Composite.
14347 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14349 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14351 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14352 to prevent subsequent expansion.
14354 2007-06-06 Robert Dewar <dewar@adacore.com>
14356 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14358 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14359 Robert Dewar <dewar@adacore.com>
14361 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14363 (Write_Itype): Handle case of string literal subtype, which
14364 comes up in this context.
14365 (Update_Itype): when debugging expanded code, update sloc of itypes
14366 associated with defining_identifiers and ranges, for gdb use.
14367 (Sprint_Node_Actual): Add static keyword to object or exception
14368 declaration output if Is_Statically_Allocated is True.
14369 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14370 or task body, so that the tree carries the proper Sloc information for
14372 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14374 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14376 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14377 compile time, to avoid dynamic memory allocation
14378 (Elaboration code): Only use dynamic memory allocation when needed.
14380 2007-06-06 Quentin Ochem <ochem@adacore.com>
14382 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14384 (Stack_Analyzer): Added field "Overflow_Guard"
14385 (Task_Result): Added field "Overflow_Guard".
14386 (Index_Str): New constant.
14387 (Task_Name_Str): New constant.
14388 (Actual_Size_Str): New constant.
14389 (Pattern_Array_Element_Size): New constant.
14390 (Get_Usage_Range): New subprogram.
14391 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14392 Now align the output.
14394 (Initialize): Added value for Overflow_Guard.
14395 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14396 Update the value of the overflow guard according to the actual
14397 beginning of the pattern array.
14398 (Initialize_Analyzer): Added parameter Overflow_Guard.
14399 Take this parameter into accound when computing the max size.
14400 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14401 (Report_Result): Removed extra useless procedure.
14402 Updated call to Output_Result.
14403 Moved full computation of the Task_Result here.
14405 2007-06-06 Thomas Quinot <quinot@adacore.com>
14407 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14408 Thread_Blocking_IO, always True by default, set False on a per-runtime
14410 Add Windows-specific constants
14411 Add new constant Need_Netdb_Buffer.
14412 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14413 not, whether to use getXXXbyYYY_r.
14415 * gsocket.h: Add new constant Need_Netdb_Buffer.
14416 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14417 not, whether to use getXXXbyYYY_r.
14419 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14421 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14422 than their first call.
14423 Add type Dummy_Communication_Block used in the generation of the pre-
14424 defined dispatching primitive _disp_asynchronous_select.
14425 (Storage_Element): Put Pragma Universal_Aliasing on it.
14427 2007-06-06 Vincent Celier <celier@adacore.com>
14429 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14432 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14433 letter if it is not followed by a '/' or a '\'.
14434 (Windows): New Boolean function
14436 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14438 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14440 (Containing_Directory): Raise Use_Error when the directory is a root
14442 (Extension): When returning the result, use a conversion to Result_Type,
14443 not a qualification.
14445 2007-06-06 Robert Dewar <dewar@adacore.com>
14447 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14448 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14450 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14451 Warn_On_Non_Local_Exception to False, to turn off warnings for
14452 No_Exception_Propagation in ZFP runtime.
14453 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14455 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14457 2007-06-06 Vincent Celier <celier@adacore.com>
14459 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14462 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14463 (Scan_Make_Switches): Recognize new switch -aP
14465 2007-06-06 Matthew Gingell <gingell@adacore.com>
14466 Jose Ruiz <ruiz@adacore.com>
14468 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14469 VxWorks task descriptor in the Ada run time, call a C subprogram
14470 (__gnat_get_stack_info) that extracts the required information.
14472 * sysdep.c: Back out temporary lynxos workaround.
14473 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14474 time the stack information associated to the currently executing task.
14475 Only VxWorks systems require this function.
14477 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14479 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14480 add the stack bias if the offset is computed from a frame address.
14481 (__gnat_backtrace): Adjust for above change.
14483 2007-06-06 Thomas Quinot <quinot@adacore.com>
14485 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14486 PE_Non_Transportable_Actual.
14487 (By_Descriptor_Last): New constant.
14488 (By_Copy_Return): Likewise.
14490 2007-06-06 Vincent Celier <celier@adacore.com>
14492 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14495 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14496 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14497 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14498 Add missing comment for /OPTIMIZE=SPACE
14499 Add entry for OPTIMIZE=SPACE
14500 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14501 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14503 2007-06-06 Vincent Celier <celier@adacore.com>
14504 Robert Dewar <dewar@adacore.com>
14506 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14509 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14510 Document gnatbind switch -a
14511 (case Constructions): Document that variables declarations are allowed
14512 for previously declared variables.
14513 Fix external lib project example
14514 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14515 Indicate that "#if not X or Y then" is not allowed in input files to
14517 Document gnatw.x and gnatw.X warning flags
14518 Mention -Winline switch to activate warnings when back-end inlining is
14520 Add gnatcheck rule descriptions
14521 Describe how to use the GNAT driver to call a tool on a closure.
14522 Describe how to run project-wide checks or metrics.
14523 Document gnatbind's -R option
14524 Updated to account for Ada 2005 support
14526 * gnat_rm.texi (Case Construction): Allow variable declarations for
14527 previously declared variables.
14528 (Representation Clauses and Pragmas): Lift restriction on alignment
14529 clauses for record types.
14530 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14531 Document No_Exception_Propagation restriction
14532 Document No_Body pragma
14533 Updated to account for Ada 2005 support; corrected some typos
14534 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14536 * gnat-style.texi: Make it clear that we never use mode IN for
14537 procedures or functions
14539 * ug_words: Add entries for -gnatw.x and -gnatw.X
14540 Add entries for -gnatw.c/.C
14542 2007-06-06 Pascal Obry <obry@adacore.com>
14543 Vincent Celier <celier@adacore.com>
14545 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14546 dirs and library name.
14547 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14549 (Build_Library): Idem.
14550 (Compile_Individual_Sources): Idem.
14551 (Compile_Link_With_Gnatmake): Idem.
14552 (Compile_Sources): Idem.
14553 (Get_Imported_Directories): Idem.
14554 (Link_Executables): Idem. Same change for the executable dir.
14555 (Check_Compilation_Needed): C_Source_Path new variable containing
14556 the canonical form of Source_Path to check against the source names
14557 in the dependency file.
14558 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14559 verbose mode, display the name of the object directory we're changing
14561 (Saved_Switches): New name of table X_Switches
14562 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14563 (Usage): New line for switch -aP
14564 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14565 testing if a directory should be added to the search path.
14567 2007-06-06 Javier Miranda <miranda@adacore.com>
14569 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14570 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14571 declaration after freezing point of all its associated tagged types;
14572 otherwise such types are frozen too early.
14574 2007-06-06 Robert Dewar <dewar@adacore.com>
14576 * a-reatim.adb: Documentation addition
14578 * g-cgideb.adb: Minor code reorganization
14580 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14581 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14582 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14584 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14585 function. Change name New_Scope to Push_Scope
14586 (Get_Debug_Flag_K): Remove unused obsolete function.
14588 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14591 * makeusg.adb: Update Copyright notice
14592 Add line for switch -aP
14594 * makeusg.adb: Fix wording of some usage messages
14596 * s-assert.adb (Raise_Assert_Failure): Add call to
14597 Debug_Raise_Assert_Failure.
14599 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14600 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14601 is restricted to 1).
14603 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14605 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14606 node location to No_Location when we're not debugging the expanded
14609 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14611 * misc.c (enumerate_modes): Consider log2_b to always be one.
14613 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14615 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14617 2007-05-02 Pascal Obry <obry@adacore.com>
14619 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14620 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14621 encoding support of Stream_IO.
14622 (Write_Unit): Idem.
14624 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14625 filename and corresponding encoding to match the OS requirement.
14626 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14627 routine will fail on specific devices like CON: AUX: ...
14629 PR ada/29856: Add missing braces
14631 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14634 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14636 2007-04-21 Jan Hubicka <jh@suse.cz>
14638 * misc.c (gnat_expand_body): Don't call target for destructors,
14639 avoid redundant check on syntax errors.
14641 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14643 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14644 instead of checking GIMPLE_STMT_P in chain_next.
14646 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14649 * system-linux-alpha.ads: Disable constant condition warning for the
14650 Default_Bit_Order variable.
14651 * system-linux-s390.ads: Likewise.
14652 * system-linux-s390x.ads: Likewise.
14653 * system-linux-sparc.ads: Likewise.
14655 2007-04-06 Javier Miranda <miranda@adacore.com>
14656 Matt Heaney <heaney@adacore.com>
14657 Robert Dewar <dewar@adacore.com>
14659 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14660 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14661 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14662 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14663 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14664 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14665 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14666 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14667 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14668 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14669 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14670 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14671 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14672 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14673 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14674 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14675 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14676 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14677 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14678 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14679 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14680 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14681 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14682 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14683 s-taprop-tru64.adb, s-taprop-irix.adb,
14684 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14685 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14686 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14687 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14688 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14689 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14690 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14691 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14692 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14693 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14694 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14695 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14696 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14697 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14698 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14699 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14700 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14701 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14702 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14703 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14705 Update documentation.
14708 2007-04-06 Robert Dewar <dewar@adacore.com>
14710 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14711 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14712 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14713 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14714 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14715 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14716 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14717 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14718 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14719 system-hpux-ia64.ads, targparm.adb,
14720 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14722 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14723 kept for bootstrap purposes only.
14725 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14727 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14728 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14729 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14730 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14732 2007-04-06 Robert Dewar <dewar@adacore.com>
14734 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14735 (Local_Raise): New dummy procedure called when a raise is converted
14736 to a local goto. Used for debugger to detect that the exception
14739 * debug.adb: Document new d.g flag (expand local raise statements to
14740 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14742 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14744 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14745 suppress warnings for unused handlers.
14746 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14747 warnings for raise statements not handled locally.
14748 (Get_RT_Exception_Entity): New function
14749 (Get_Local_Call_Entity): New function
14750 (Find_Local_Handler): New function
14751 (Warn_If_No_Propagation): New procedure
14752 (Expand_At_End_Handler): Call Make_Implicit_Handler
14753 (Expand_Exception_Handlers): Major additions to deal with local handlers
14754 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14755 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14758 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14759 (Get_Local_Call_Entity): New function
14761 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14762 of restrictions that the binder will never suggest adding.
14764 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14767 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14768 be with'ed in the presence of pragma Restriction
14769 (No_Exception_Propagation).
14771 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14773 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14774 parameter, then the handler is not a suitable target for a local raise,
14775 and this is a violation of restriction No_Exception_Propagation.
14776 (Analyze_Handled_Statements): Analyze choice parameters in exception
14777 handlers before analyzing statement sequence (needed for proper
14778 detection of local raise statements).
14779 (Analyze_Raise_Statement): Reraise statement is a violation of the
14780 No_Exception_Propagation restriction.
14782 * s-rident.ads: Add new restriction No_Exception_Propagation
14784 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14785 function, like Make_Exception_Handler but sets Local_Raise_Statements
14787 (Add_Unique_Serial_Number): Deal with case where this is called during
14788 processing of configuration pragmas.
14790 2007-04-06 Thomas Quinot <quinot@adacore.com>
14791 Pat Rogers <rogers@adacore.com>
14792 Pascal Obry <obry@adacore.com>
14794 * g-stsifd-sockets.adb: New file.
14796 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14797 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14798 g-socthi-vms.adb: Move signalling
14799 fd management to a nested package, so that they can conveniently be
14800 moved to a subunit that is shared across Windows, VMS, and VxWorks
14801 (Ada implementation) or completed with imported bodies from socket.c
14803 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14805 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14806 the signalling file descriptor.
14807 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14808 signalling file descriptor.
14809 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14810 instead of creating a pair of sockets for signalling here.
14812 * g-socthi.adb: Ditto.
14813 Set the runtime process to ignore SIGPIPEs on platforms that support
14814 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14816 * g-socthi-mingw.adb: Ditto.
14817 (WS_Version): Use Windows 2.2.
14818 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14820 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14821 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14823 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14824 added GNAT byte swapping facility
14825 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14827 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14829 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14831 (__gnat_create_signalling_fds): New subprogram.
14832 Set the runtime process to ignore SIGPIPEs on platforms that support
14833 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14835 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
14836 Vincent Celier <celier@adacore.com>
14838 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14839 New version of Ada.Calendar which supports the new upper bound of Ada
14840 time (2399-12-31 86_399.999999999).
14841 The following modifications have been made to the package:
14842 - New representation of time as count of nanoseconds since the start of
14843 Ada time (1901-1-1 0.0).
14844 - Target independent Split and Time_Of routines which service both
14845 Ada 95 and Ada 2005 code.
14846 - Target independent interface to the Ada 2005 children of Calendar.
14847 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14848 - Handling of non-leap centenial years.
14849 - Updated clock function.
14850 - Updated arithmetic and comparison operators.
14852 * a-caldel.adb (To_Duration): Add call to target independent routine in
14853 Ada.Calendar to handle the conversion of time to duration.
14855 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14857 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14859 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14860 targets do not have a natural time zone, GMT is used as a default.
14861 (__gnat_get_task_options): New.
14863 * a-direct.adb (Modification_Time): Add with and use clauses for
14864 Ada.Calendar and Ada.
14865 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14866 since it is no longer needed.
14867 (Duration_To_Time): Removed.
14868 (OS_Time_To_Long_Integer): Removed.
14869 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14870 Formatting Time_Of routines which automatically handle time zones,
14871 buffer periods and leap seconds.
14873 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14874 target independent routines in Ada.Calendar.
14876 * a-calfor.ads, a-calfor.adb:
14877 Code cleanup and addition of validity checks in various routines.
14878 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14881 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14882 independent routine in Ada.Calendar.
14884 2007-04-06 Olivier Hainque <hainque@adacore.com>
14887 (convert_addresses): Adjust prototype and dummy definition to expect an
14888 extra file_name argument.
14890 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14891 filling the now expected file_name argument with the appropriate
14893 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14894 (tracebk): Array of void * instead of char *, corresponding to what
14895 convert_addresses expects.
14896 (exename): New static global, to hold the executable file name to be
14897 used in all convert_addresses invocations.
14898 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14900 (__gnat_gmem_a2l_initialize): Resolve exename.
14901 (__gnat_convert_addresses): Use exename as the convert_addresses
14902 file_name argument.
14904 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14905 "convert_addresses", now expecting a filename argument. Import the
14906 necessary entities to compute the filename to use and pass it to
14909 2007-04-06 Matt Gingell <gingell@adacore.com>
14911 * system-aix.ads: Back out previous change.
14912 (Functions_Return_By_DSP): Removed
14914 2007-04-06 Pascal Obry <obry@adacore.com>
14916 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14917 or the monotonic used by Ada.Real_Time) to compute the sleep duration
14920 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14922 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14923 function. Its value changes in different VxWorks versions, and it is
14924 now handled by the function __gnat_get_task_options.
14926 * s-taprop-vxworks.adb (Create_Task): Call the function
14927 __gnat_get_task_options to get the required options for creating a task.
14929 2007-04-06 Pascal Obry <obry@adacore.com>
14930 Thomas Quinot <quinot@adacore.com>
14932 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14933 dealing with filename.
14934 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14935 filename from a standard string to a wide-string depending on the
14937 (__gnat_freopen): Idem.
14938 (__gnat_current_time): New function (wrapper for time(3) standard C
14941 * g-os_lib.ads (Current_Time): New function. Returns the current
14942 system time as an OS_Time value.
14944 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14945 (Monotonic_Clock): Same.
14947 2007-04-06 Quentin Ochem <ochem@adacore.com>
14949 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14951 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14953 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14955 * a-retide.adb: Add elaboration code to ensure that the tasking run
14956 time is initialized when using delay operations even when no task is
14959 2007-04-06 Javier Miranda <miranda@adacore.com>
14961 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14962 component Num_Prim_Ops.
14963 (Set_Num_Prim_Ops): Removed.
14964 Remove all the assertions because all the routines of this
14965 package are inline always.
14966 (Get_Offset_Index): Add support to primary dispatch tables.
14967 Move the documentation about the dispatch table to a-tags.ads
14968 (Set_External_Tag): Removed
14969 (Inherit_TSD): Removed.
14970 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14971 moved to a-tags.ads
14972 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14973 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14974 of the TSD field "Table" because this field has been renamed to
14976 (Inherit_CPP_DT): Removed.
14977 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14978 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14979 declarations have been moved to a-tags.ads
14980 (Check_Size): Removed.
14981 (Expanded_Name): Updated to get access to the new field of TSD
14982 containing the address of the expanded name.
14983 (Get_Access_Level/Set_Access_Level): Removed.
14984 (Get_Predefined_Prim_Op_Address): Removed.
14985 (Set_Predefined_Prim_Op_Address): Removed.
14986 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14987 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14988 (Set_Expanded_Name): Removed.
14989 (Inherit_DT): Removed.
14990 (Inherit_CPP_DT): Removed.
14991 (Set_RC_Offset): Removed.
14992 (Set_TSD): Removed.
14993 (Base_Address): New function that displaces "this" to point to the base
14994 of the object (that is, to point to the primary tag of the object).
14996 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14997 Javier Miranda <miranda@adacore.com>
14999 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15000 anonymous access component, do not create a master_id if type already
15001 has one, as may happen if the type is a subcomponent of a packed array
15003 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15004 Initialize_Tag): Remove code associated with the old CPP pragmas.
15005 CPP_Virtual and CPP_Vtable are no longer supported.
15006 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15007 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15008 (Freeze_Record_Type): Remove call to
15009 Init_Predefined_Interface_Primitives.
15010 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15011 code required to initialize the tags of the secondary dispatch tables.
15012 This leaves the algoritm more clear.
15013 (Init_Secondary_Tags): Add support for concurrent record types
15014 (Make_Predefined_Primitive_Specs): Code cleanup.
15015 (Predefined_Primitive_Bodies): Code cleanup.
15016 (Build_Master_Renaming): New local subprogram.
15017 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15018 anonymous access to task type components.
15019 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15020 subtype indication are resolved during analysis, and must not be done
15022 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15024 2007-04-06 Geert Bosch <bosch@adacore.com>
15025 Ed Schonberg <schonberg@adacore.com>
15026 Javier Miranda <miranda@adacore.com>
15027 Bob Duff <duff@adacore.com>
15029 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15030 for conversion of a Float_Type'Truncation to integer.
15032 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15033 check if a node is an attribute that can be handled directly by the
15035 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15036 attributes that can be handled directly by the back end.
15037 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15038 use new predicate Is_Access_Protected_Subprogram_Type.
15039 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15040 and Unchecked_Union if it is generated as part of the default Output
15041 procedure for a type with default discriminants.
15042 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15043 if we are compiling under restriction No_Dispatching_Calls.
15044 (Constrained): Use Underlying_Type, in case the type is private without
15045 discriminants, but the full type has discriminants.
15046 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15047 call to Build_Get_Access_Level.
15048 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15049 interface objects requires a call to the run-time subprogram that
15050 returns the base address of the object.
15051 (Valid_Conversion): Improve error message on illegal attempt to store
15052 an anonymous access to subprogram value into a record component.
15054 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15056 (Simplify_Type_Conversion): New procedure that performs simplification
15057 of Int_Type (Float_Type'Truncation (X)).
15058 (Resolve_Type_Conversion): Call above procedure after resolving operand
15059 and before performing checks. This replaces the existing ineffective
15061 (Set_String_Literal_Subtype): When creating the internal static lower
15062 bound subtype for a string literal, use a newly created copy of the
15063 subtree representing the lower bound.
15064 (Resolve_Call): Exclude build-in-place function calls from transient
15065 scope treatment. Update comments to describe this exception.
15066 (Resolve_Equality_Op): In case of dispatching call check violation of
15067 restriction No_Dispatching_Calls.
15068 (Resolve_Call): If the call returns an array, the context imposes the
15069 component type of the array, and the function has one non-defaulted
15070 parameter, rewrite the call as the indexing of a call with a single
15071 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15073 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15074 the master of the created object is the innermost enclosing statement.
15075 (Remove_Conversions): For a binary operator, check if type of second
15076 formal is numeric, to check if an abstract interpretation is present
15077 in the case of exponentiation as well.
15079 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15080 Bob Duff <duff@adacore.com>
15082 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15083 copying a parameter list in a call, set properly the First_Named_Formal
15084 and Next_Named_Formal fields in the new list and in the enclosing call.
15085 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15086 names, to ease typing in the debugger. Improve comments.
15087 (Watch_Node): New variable, intended to be set in the debugger.
15088 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15089 called when the watched node is created.
15090 (New_Node_Debugging_Output): Combined version of local procedures
15091 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15092 with a parameter so that conditional breakpoints like "if Node = 12345"
15094 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15095 Add Elist1 function
15097 2007-04-06 Thomas Quinot <quinot@adacore.com>
15098 Ed Schonberg <schonberg@adacore.com>
15099 Gary Dismukes <dismukes@adacore.com>
15101 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15102 required for a conversion between two access-to-unconstrained-array
15104 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15105 to discriminant constraints on discriminant objects. This rule must
15106 apply as well to discriminants of protected types in private components.
15107 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15108 object of a null-excluding access type then don't require the
15109 the object declaration to have an expression and don't emit a
15112 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15113 Eric Botcazou <botcazou@adacore.com>
15115 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15118 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15119 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15122 * fe.h (Compiler_Abort): Add third parameter.
15124 * misc.c (internal_error_function): Build third argument from current
15125 input location and pass it to Compiler_Abort.
15127 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15129 * cstand.adb (Create_Standard): When the target's storage unit size is
15130 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15133 2007-04-06 Nicolas Roche <roche@adacore.com>
15135 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15136 absolute path can have the following form: device:/a/b. In this case
15137 '/' should be inserted between the path and the filename.
15139 2007-04-06 Olivier Hainque <hainque@adacore.com>
15140 Eric Botcazou <botcazou@adacore.com>
15142 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15143 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15144 corresponding definition has created the so made visible variable.
15145 Handle anonymous access to protected subprogram.
15146 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15147 object with an address clause volatile. Re-enable original fix.
15148 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15150 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15151 associated with either the Equivalent or Root type, instead of the
15153 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15154 subtree for every field of a global record type.
15155 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15156 discriminants, invoke again variable_size on its newly computed sizes.
15158 2007-04-06 Robert Dewar <dewar@adacore.com>
15159 Thomas Quinot <quinot@adacore.com>
15160 Ed Schonberg <schonberg@adacore.com>
15161 Bob Duff <duff@adacore.com>
15163 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15164 (Next_Component_Or_Discriminant): New function and procedure
15165 (First_Index, First_Literal, Master_Id,
15166 Set_First_Index, Set_First_Literal, Set_Master_Id):
15167 Add missing Ekind assertions.
15168 (Is_Access_Protected_Subprogram_Type): New predicate.
15169 (Has_RACW): New entity flag, set on package entities to indicate that
15170 the package contains the declaration of a remote accecss-to-classwide
15172 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15173 attribute, in case the result type has controlled parts.
15174 (Requires_Overriding): Add this new flag, because "requires
15175 overriding" is subtly different from "is abstract" (see AI-228).
15176 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15177 Is_Abstract_Type. Make sure these are called only when appropriate.
15178 (Has_Pragma_Unreferenced_Objects): New flag
15180 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15181 class-wide, the tag of the right-hand side must be an exact match, not
15182 an ancestor of that of the object on left-hand side.
15183 (Move_Activation_Chain): New procedure to create the call to
15184 System.Tasking.Stages.Move_Activation_Chain.
15185 (Expand_N_Extended_Return_Statement): Generate code to call
15186 System.Finalization_Implementation.Move_Final_List at the end of a
15187 return statement if the function's result type has controlled parts.
15188 Move asserts to Build_In_Place_Formal.
15189 (Move_Final_List): New function to create the call statement.
15190 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15191 tagged type, replace generation of call to the run-time subprogram
15192 CW_Membership by call to Build_CW_Membership.
15193 (Expand_N_Return_Statement): Replace generation of call to the run-time
15194 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15195 (Expand_N_Simple_Function_Return): Replace generation of call to the
15196 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15198 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15199 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15200 access to protected operations.
15201 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15202 master and chain actual parameters to a build-in-place function call
15204 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15206 (Make_Build_In_Place_Call_In_Allocator,
15207 Make_Build_In_Place_Call_In_Anonymous_Context,
15208 Make_Build_In_Place_Call_In_Assignment,
15209 Make_Build_In_Place_Call_In_Object_Declaration): Call
15210 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15211 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15212 stubbed procedure with a null body, replace the call with a null
15213 statement without using the full inlining machinery, for efficiency
15214 and to avoid invalid values in source file table entries.
15216 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15217 renamings of calls to build-in-place functions.
15219 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15220 provides the functionality of RTE_Available to record components.
15221 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15222 to avoid undesired overloading.
15223 (Entity): New subprogram that returns the entity for the referened
15224 unit. If this unit has not been loaded, it returns Empty.
15225 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15226 Remove no longer used entities.
15227 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15228 (RE_Type_Specific_Data): New entity.
15229 (RE_Move_Any_Value): New entity.
15230 (RE_TA_A, RE_Get_Any_Type): New entities.
15231 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15232 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15233 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15234 (Entity): New subprogram that returns the entity for the referened
15235 unit. If this unit has not been loaded, it returns Empty.
15236 (RTE): Addition of a new formal that extends the search to the scopes
15237 of the record types found in the chain of the package.
15239 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15240 "abstract subprograms must be visible" message, whether or not the type
15241 is an interface; that is, remove the special case for interface types.
15242 (Analyze_Function_Return): Remove error message "return of task objects
15243 is not yet implemented" because this is now implemented.
15244 (Create_Extra_Formals): Add the extra master and activation chain
15245 formals in case the result type has tasks.
15246 Remove error message "return of limited controlled objects is not yet
15248 (Create_Extra_Formals): Add the extra caller's finalization list formal
15249 in case the result type has controlled parts.
15250 (Process_Formals): In case of access formal types there is no need
15251 to continue with the analysis of the formals if we already notified
15253 (Check_Overriding_Indicator): Add code to check overriding of predefined
15255 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15256 flags for formals that do not require them,.
15257 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15258 hidden entity is use visible or directly visible.
15259 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15260 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15261 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15262 New_Overloaded_Entity): Split Is_Abstract flag into
15263 Is_Abstract_Subprogram and Is_Abstract_Type.
15265 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15266 a return statement's finalization list to the caller's list, used for
15267 build-in-place functions with result type with controlled parts.
15268 Remove no longer used entities.
15270 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15271 longer needed, because the full type is now limited, and therefore a
15272 pass-by-reference type.
15273 (Foreign_Task_Level): New constant.
15275 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15276 move tasks from the activation chain belonging to a return statement to
15277 the one passed in by the caller, and update the master to the one
15278 passed in by the caller.
15279 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15280 of unactivated tasks, so we don't kill the ones that are being returned
15281 by a build-in-place function.
15282 (Create_Task): Ignore AI-280 for foreign threads.
15284 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15285 Robert Dewar <dewar@adacore.com>
15286 Bob Duff <duff@adacore.com>
15287 Gary Dismukes <dismukes@adacore.com>
15289 * errout.adb (Unwind_Internal_Type): Use predicate
15290 Is_Access__Protected_Subprogram_Type.
15292 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15293 (Freeze_Entity, packed array case): Do not override explicitly set
15294 alignment and size clauses.
15295 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15296 the enclosing subprogram is a child unit body that acts as a spec.
15297 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15298 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15299 Remove all code for DSP option
15301 * layout.adb (Layout_Record_Type): Use First/
15302 Next_Component_Or_Discriminant
15303 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15304 to handle properly the anonymous access case.
15306 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15307 for all access attributes, because overload resolution should work the
15308 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15309 causes the error message for the ambiguous "X'Access = Y'Access" and
15310 "X'Unrestricted_Access = Y'Access" and so forth to match.
15311 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15312 now that anonymous access to protected operations have their own kind.
15313 (Resolve_Attribute): In case of dispatching call check the violation of
15314 restriction No_Dispatching_Calls.
15315 (Check_Array_Type): Check new -gnatyA array index style option
15317 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15318 attempt to derive from a synchronized tagged type.
15319 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15320 type, inherit the class-wide type already created, because it may
15321 already have been used in a self-referential anonymous access component.
15322 (Mentions_T): Recognize self-referential anonymous access components
15323 that use (a subtype of) the class-wide type of the enclosing type.
15324 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15325 Derived_Type for Prev formal on call to
15326 Check_Anonymous_Access_Components rather than Empty.
15327 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15328 a record extension in deciding whether to create a class-wide type,
15329 rather than just checking Tagged_Present.
15330 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15331 to stand-alone object declarations as well as component declarations.
15332 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15333 prevent accidental overwriting when enclosing package appears in
15334 a limited_with_clause.
15335 (Array_Type_Declaration): If the component type is an anonymous access,
15336 the associated_node for the itype is the type declaration itself.
15337 (Add_Interface_Tag_Components): Modified to support concurrent
15338 types with abstract interfaces.
15339 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15340 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15341 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15342 to complete the decoration of synchronized interface types. Add also
15343 a call to Check_Abstract_Interfaces to verify the ARM rules.
15344 (Derive_Interface_Subprograms): Modified to support concurrent types
15345 with abstract interfaces.
15346 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15347 mark, rather than delaying the full resolution depending on context.
15348 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15349 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15350 Array_Type_Declaration,Build_Derived_Record_Type,
15351 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15352 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15353 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15354 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15355 called only when appropriate.
15356 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15358 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15359 an itype reference for the anonymous designated subtype, to prevent
15360 scope anonmalies in gigi.
15361 (Build_Itype_Reference): New utility, to simplify construction of such
15364 2007-04-06 Vincent Celier <celier@adacore.com>
15366 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15367 are suppressed, supply an initial dummy entry covering all possible
15370 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15371 and start with only one, such as "-RTS=none".
15372 (Collect_Arguments): Do not check for sources outside of projects.
15373 Do not collect arguments if project is externally built.
15374 (Compile_Sources): Do nothing, not even check if the source is up to
15375 date, if its project is externally built.
15376 (Compile): When compiling a predefined source, add -gnatpg
15377 as the second switch, after -c.
15378 (Compile_Sources): Allow compilation of Annex J renames without -a
15379 (Is_In_Object_Directory): Check if the ALI file is in the object
15380 even if there is no project extension.
15381 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15382 gnatbind if the ALI file effectively exists.
15383 (Initialize): Add the directory where gnatmake is invoked in front of
15384 the path if it is invoked from a bin directory, even without directory
15385 information, so that the correct GNAT tools will be used when spawned
15386 without directory information.
15388 * makeusg.adb: Change switch -S to -eS
15389 Add lines for new switches -we, -wn and -ws
15390 Add line for new switch -p
15392 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15393 Treat_As_Error and there are warnings.
15395 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15396 -gnatww Change gnatmake switch -S to -eS
15397 (Scan_Make_Switches): Code reorganisation. Process separately multi
15398 character switches and single character switches.
15399 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15400 False when switch is not recognized by gnatmake.
15401 (Scan_Make_Switches): Set Setup_Projects True when -p or
15402 --create-missing-dirs is specified.
15404 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15405 renamings Calendar, Machine_Code, Unchecked_Conversion and
15406 Unchecked_Deallocation only when Renamings_Included is True.
15408 * par.adb: Allow library units Calendar, Machine_Code,
15409 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15410 when -gnatg is not specified.
15411 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15412 there is no need to generate always a record_definition_node in case
15413 of synchronized interface types.
15414 (SIS_Entry_Active): Initialize global variable to False
15415 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15416 indicate cases where AI-447 says "not null" is legal.
15418 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15420 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15421 files with with several lines starting with the object fileb name.
15422 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15424 (Initialize): Add the directory where gprmake is invoked in front of the
15425 path, if it is invoked from a bin directory or with directory
15426 information, so that the correct GNAT tools will be used when invoked
15428 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15430 * vms_data.ads: Update switches/qualifiers
15432 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15433 Thomas Quinot <quinot@adacore.com>
15436 If the array component is a discriminated record, the array aggregate
15437 is non-static even if the component is given by an aggregate with
15439 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15440 (Convert_Aggr_In_Allocator): If the allocator is for an access
15441 discriminant and the type is controlled. do not place on a finalization
15442 list at this point. The proper list will be determined from the
15444 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15445 initialize record controller if needed, before the components, to ensure
15446 that they are properly finalized.
15447 (Build_Record_Aggr_Code): For the case of an array component that has a
15448 corresponding array aggregate in the record aggregate, perform sliding
15451 2007-04-06 Javier Miranda <miranda@adacore.com>
15452 Gary Dismukes <dismukes@adacore.com>
15453 Ed Schonberg <schonberg@adacore.com>
15455 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15456 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15458 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15459 accessibility on class-wide allocators if the allocator occurs at the
15460 same scope level as the allocator's type. The check is guaranteed to
15461 succeed in that case, even when the expression originates from a
15462 parameter of the containing subprogram.
15463 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15464 under No_Dispatching_Calls restriction. During the semantic analysis
15465 we already notified such violation.
15466 (Tagged_Membership): Constant folding. There is no need to check
15467 the tag at run-time if the type of the right operand is non
15468 class-wide abstract.
15469 Replace call to Is_Ancestor by call to Is_Parent
15470 to support concurrent types with interface types.
15471 (Expand_N_Allocator): Add an assertion associated with the generation
15473 (Expand_N_Slice): Do not enable range check to nodes associated
15474 with the frontend expansion of the dispatch table.
15475 (Is_Local_Access_Discriminant): Subsidiary function to
15476 Expand_N_Allocator.
15477 (Tagged_Membership): Replace generation of call to the run-time
15478 subprogram CW_Membership by call to Build_CW_Membership.
15479 (Expand_Allocator_Expression): Replace generation of call to the
15480 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15482 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15483 initialize most the TSD components by means of an aggregate.
15484 Modify the declaration of the object containing the TSD
15485 because we now expand code that has a higher level of abstraction.
15486 The TSD has a discriminant containing the Inheritance Depth Level,
15487 value that is used in the membership test but also to fix the size
15488 of the table of ancestors.
15489 (Expand_Interface_Conversion): Insert function body at the closest place
15490 to the conversion expression, to prevent access-before-elaboration
15491 errors in the backend.
15492 Code improved to reduce the size of the dispatch table if
15493 compiling under restriction No_Dispatching_Calls plus code cleanup.
15494 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15495 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15496 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15497 code to return immediately if compiling under No_Dispatching_Calls
15499 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15500 CPP_Virtual and CPP_Vtable are no longer supported.
15501 (Expand_Interface_Conversion): Add missing support for interface type
15503 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15504 Is_Parent to support concurrent types with interfaces.
15505 (Init_Predefined_Interface_Primitives): Removed.
15506 (Make_Secondary_DT): Modified to support concurrent record types.
15507 (Set_All_DT_Position): Modified to support concurrent record types.
15508 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15509 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15510 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15511 with CW_Membership.
15512 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15513 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15514 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15515 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15516 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15517 (Expand_Dispatching_Call): Replace generation of call to the run-time
15518 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15519 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15521 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15522 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15523 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15524 Build_Set_Prim_Op_Address.
15525 (Get_Remotely_Callable): Subprogram removed.
15526 (Init_Predefined_Interface_Primitives): Replace generation of call to
15527 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15530 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15531 First (Parameter_Associations ()) with the call to First_Actual that
15532 returns an actual parameter expression for both named and positional
15535 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15536 check violation of restriction No_Dispatching_Calls.
15537 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15538 controlling argument.
15540 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15541 First/Next_Component_Or_Discriminant
15542 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15543 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15544 specify Any_Limited_Interface, and this functionality is already
15545 provided by the function Has_Abstract_Interfaces.
15546 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15547 support concurrent types implementing interfaces.
15548 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15549 specify kind Any_Limited_Interface, and this functionality is already
15550 provided by the function Has_Abstract_Interfaces.
15551 (Remove_Side_Effects): replace Controlled_Type by
15552 CW_Or_Controlled_Type whenever the issue is related to
15553 using or not the secondary stack.
15555 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15556 P_Interface_Type_Definition to fulfill the new interface (the formal
15557 Is_Synchronized is no longer required).
15559 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15560 Update dependencies.
15562 * exp_atag.ads, exp_atag.adb: New file
15564 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15565 Bob Duff <duff@adacore.com>
15566 Cyrille Comar <comar@adacore.com>
15568 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15569 anonymous, use finalization list of enclosing dynamic scope.
15570 (Expand_N_Package_Declaration): For a library package declaration
15571 without a corresponding body, generate RACW subprogram bodies in the
15572 spec (just as we do for the task activation call).
15573 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15574 Is_Abstract_Type. Make sure these are called only when appropriate.
15575 Remove all code for DSP option
15576 (CW_Or_Controlled_Type): new subprogram.
15578 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15579 Ed Schonberg <schonberg@adacore.com>
15580 Gary Dismukes <dismukes@adacore.com>
15582 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15583 parameter. If it is set to true, return a result capped according to
15584 the global upper bound for the index of an entry family.
15585 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15586 (Build_Find_Body_Index): Adjust for above change.
15587 (Entry_Index_Expression): Likewise.
15588 (Is_Potentially_Large_Family): New function extracted from...
15589 (Collect_Entry_Families): ...here. Call it to detect whether the family
15590 is potentially large.
15591 (Build_Entry_Count_Expression): If the family is potentially large, call
15592 Family_Size with 'Cap' set to true.
15593 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15594 a protected version of an operation declared in the private part of
15595 a protected object, because they may be invoked through a callback.
15596 (Set_Privals): If the type of a private component is an anonymous access
15597 type, do not create a new itype for each protected body.
15598 If the body of a protected operation creates
15599 controlled types (including allocators for class-widetypes), the
15600 body of the corresponding protected subprogram must include a
15602 (Build_Activation_Chain_Entity): Build the chain entity for extended
15604 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15605 to determine whether operation overrides an inherited primitive.
15606 (Build_Wrapper_Spec): Add code to examine the parents while looking
15607 for a possible overriding candidate.
15608 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15609 hold an actual parameter value since its initialization is separated
15610 from the the declaration. Prevents errors on null-excluding access
15613 2007-04-06 Thomas Quinot <quinot@adacore.com>
15614 Pablo Oliveira <oliveira@adacore.com>
15616 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15617 Do an Unchecked_Conversion to handle the passage from the Underlying
15618 Type to the Base Type when calling Build_To_Any_Call and
15619 Build_From_Any_Call.
15620 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15621 E_Constant, depending upon Variable formal.
15622 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15623 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15624 parameter that requires an extra constrained parameter, declare
15625 temporary for actual as a variable, not a constant.
15626 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15627 the unit being compiled is the one that contains the stub type.
15628 Change primitive operation name for the RACW associated with a RAS
15629 from Call to _Call so it cannot clash with any legal identifier.
15630 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15632 (Append_RACW_Bodies): New subprogram.
15633 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15634 Add_Receiving_Stubs_To_Declarations functions.
15635 When expanding a package body, this list correspond to the
15636 statements in the HSS at the end of the pacakge.
15637 When expanding a package spec, this list correspond to the
15639 (Add_Receiving_Stubs_To_Declarations): Append the function
15640 registering the receiving stubs at the end of the 'Stmts' list.
15641 (RCI_Package_Locator): Pass the new Version generic formal when
15642 instantiating a RCI_Locator package.
15643 (Build_From_Any_Function): To compute the High bound for an
15644 unconstrained array actual, we add the Low bound with the length.
15645 Thus we must convert the low bound and the length to an appropriate
15646 type before doing the sum.
15647 (Build_Subprogram_Receiving_Stubs, PolyORB):
15648 * Retrieve the extra formals parameters at the
15649 end of the parameter stream.
15650 * Use Move_Any_Value to write back out parameters
15651 after executing the request as it is more efficient
15652 than Copy_Any_Value.
15653 * Build the any containing Extra Formals with the
15654 appropriate typecode.
15655 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15656 empty Component_List.
15657 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15658 the tree the declaration for an object that serves as actual parameter
15659 in server-side stubs.
15660 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15661 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15662 Use Build_Actual_Object_Declaration to prepare the actuals.
15663 (Add_Parameter_To_NVList): Set the parameter mode to In for
15664 Extra Constrained Parameters.
15665 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15666 Extra Constrained parameters.
15667 (Build_To_Any_Function, Build_From_Any_Function,
15668 Built_TypeCode_Function): When Typ is implicit, call the correct
15669 function with the first not implicit parent type.
15670 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15671 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15672 typecode from the Etype. Therefore we retrieve the correct typecode
15673 with a call to Get_Any_Type.
15674 (Copy_Specification): Do controlling formal type substitution based on
15675 Is_Controlling_Formal flag, instead of caller-provided object type.
15676 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15677 a RACW primitive operation, we might get a subprogram declaration for an
15678 ancestor of the RACW designated type (not for the designated type
15679 itself), in the case where this operation is inherited. In this case we
15680 have no easy means of determining the original tagged type for which
15681 the primitive was declared, so instead we now rely on
15682 Copy_Specification to use the Is_Controlling_Formal flag to determine
15683 which formals require type substitution.
15685 2007-04-06 Robert Dewar <dewar@adacore.com>
15686 Ed Schonberg <schonberg@adacore.com>
15688 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15689 GNAT.Current_Exception are not allowed if pragma Restrictions
15690 (No_Exception_Propagation) is set and in any case make the associated
15691 handler unsuitable as a target for a local raise statement.
15692 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15693 run-time subprogram CW_Membership by call to Build_CW_Membership.
15694 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15695 by a function call, a temporary must be created before expanding the
15696 Constructor_Call itself, to prevent out-of-order elaboration in the
15697 back-end when stack checking is enabled..
15699 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15701 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15702 result are the bounds of the left operand, not the right.
15704 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15707 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15708 discriminant defaults.
15709 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15710 (Make_Component_List_Attributes): Ditto.
15712 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15713 Bob Duff <duff@adacore.com>
15715 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15716 an association with a box as providing a value even though the
15717 initialization procedure for the type is not available.
15718 (Resolve_Record_Aggregate): Check that a choice of an association with a
15719 box corresponds to a component of the type.
15720 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15721 Is_Abstract_Subprogram and Is_Abstract_Type.
15723 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15726 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15727 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15728 called only when appropriate.
15730 2007-04-06 Olivier Hainque <hainque@adacore.com>
15732 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15733 associated vector view instead of all to the unsigned char view.
15735 * g-altcon.adb (Generic_Conversions): New internal generic package,
15736 offering facilities for all the Vector/View conversion routines
15737 implemented by this unit.
15738 (To_View/To_Vector - all versions): Reimplemented in a systematic
15739 manner, using the internal Generic_Conversions facilities.
15741 2007-04-06 Pascal Obry <obry@adacore.com>
15743 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15745 (Create): Free the source string before storing the new one.
15747 2007-04-06 Vincent Celier <celier@adacore.com>
15749 * g-debpoo.adb (Validity): New package with a complete new
15750 implementation of subprograms Is_Valid and Set_Valid.
15751 (Is_Valid): Move to local package Validity
15752 (Set_Valid): Move to local package Validity
15754 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15755 Pablo Oliveira <oliveira@adacore.com>
15757 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15758 we must ensure that there is enough place for the new data we are going
15761 2007-04-06 Thomas Quinot <quinot@adacore.com>
15763 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15766 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15767 Vincent Celier <celier@adacore.com>
15769 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15770 (Stack_String): Add this String that contains the name of the Stack
15771 package in the project file.
15772 (Packages_To_Check_By_Stack): Add this list that contains the packages
15773 to be checked by gnatstack, which are the naming and the stack packages.
15774 (Check_Files): If no .ci files were specified for gnatstack we add all
15775 the .ci files belonging to the projects, including binder generated
15777 (Non_VMS_Usage): Document that gnatstack accept project file switches.
15778 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15779 Add gnatstack to the list of commands that use project file related
15780 switches, and get the single attribute Switches from the stack package
15781 in a project file when calling gnatstack. Parse the -U flag for
15782 processing files belonging to all projects in the project tree.
15783 Remove all processing for command Setup
15785 * prj-attr.adb: Add new package Stack with single attribute Switches
15787 * vms_conv.ads (Command_Type): Add command Stack.
15788 Move to body declarations that are only used in the body: types Item_Id,
15789 Translation_Type, Item_Ptr, Item and its subtypes.
15791 * vms_conv.adb: (Initialize): Add data for new command Stack.
15792 Add declarations moved from the spec: types Item_Id, Translation_Type,
15793 Item_Ptr, Item and its subtypes.
15794 (Cargs_Buffer): New table
15795 (Cargs): New Boolean global variable
15796 (Process_Buffer): New procedure to create arguments
15797 (Place): Put character in table Buffer or Cargs_Buffer depending on the
15799 (Process_Argument): Set Cargs when processing qualifiers for GNAT
15801 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15802 empty, for table Cargs_Buffer.
15803 (Initialize): Remove component Setup in Command_List
15805 2007-04-06 Vincent Celier <celier@adacore.com>
15807 * gprep.adb (Process_Files.Process_One_File): Use full file name when
15808 issuing pragma Source_Reference.
15810 2007-04-06 Emmanuel Briot <briot@adacore.com>
15812 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15813 [[:xdigit:]] character class.
15814 Also raise an exception when an invalid character class is used.
15816 2007-04-06 Pascal Obry <obry@adacore.com>
15818 * i-cstrea.ads: (fopen): Add encoding parameter.
15820 Change reference from a-sysdep.c to sysdep.c in comment.
15821 Update copyright notice.
15822 This set of patch add support for the encoding form parameter.
15824 * mingw32.h (S2WSU): New macro to convert from a string to a
15825 wide-string using the UTF-8 encoding. The S2WS macro supports now only
15826 standard 8bits encoding.
15827 (WS2SU): As above but converting from wide-sring to string.
15828 This is needed as it is necessary to have access to both versions in the
15829 runtime for the form parameter encoding support.
15830 This set of patch add support for the encoding form parameter.
15831 (S2WS): Improve implementation to handle cases where the filename is not
15832 UTF-8 encoded. In this case we default to using the current code page
15833 for the conversion.
15835 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15836 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15837 the constants defined in adaint.h.
15838 (fopen): Add encoding parameter.
15841 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15842 encoding. This is needed for the Reset routine (freopen low level-call).
15844 * s-fileio.adb (Open): Decode encoding form parameter and set the
15845 corresponding encoding value into AFCB structure.
15846 (Reset): Pass the encoding value to freopen.
15847 (Close): Move the call to Lock_Task to the beginning of the procedure.
15849 2007-04-06 Geert Bosch <bosch@adacore.com>
15850 Robert Dewar <dewar@adacore.com>
15852 * i-fortra.ads: Add Double_Complex type.
15854 * impunit.adb: (Is_Known_Unit): New function
15855 Add Gnat.Byte_Swapping
15857 Add new Ada 2005 units
15858 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15859 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15860 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15861 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15863 * impunit.ads (Is_Known_Unit): New function
15865 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15866 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15867 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15868 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15869 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15870 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15873 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15875 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15877 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15878 Arnaud Charlet <charlet@adacore.com>
15880 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15881 __gnat_adjust_context_for_raise.
15882 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15883 implementation of floating point operations as native x86 targets.
15884 So the FPU should be initialized in the same way using finit. Fix
15885 floating point operations accuracy issues.
15886 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15887 member in struct sigaction, so as to avoid warning for incompatible
15890 2007-04-06 Serguei Rybin <rybin@adacore.com>
15892 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15893 switches from previously loaded tree
15895 2007-04-06 Thomas Quinot <quinot@adacore.com>
15897 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15898 cases where a given dependency has a body or not.
15899 (Write_With_File_Names): New subprogram, common code for the two cases
15902 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15903 Javier Miranda <miranda@adacore.com>
15905 * lib-xref.ads, lib-xref.adb:
15906 Modify the loop that collects type references, to include interface
15907 types that the type implements. List each of these interfaces when
15908 building the entry for the type.
15909 (Generate_Definition): Initialize component Def and Typ of new entry
15910 in table Xrefs, to avoid to have these components unitialized.
15911 (Output_References): Split Is_Abstract flag into
15912 Is_Abstract_Subprogram and Is_Abstract_Type.
15913 (Generate_Reference): Add barrier to do not generate the warning
15914 associated with Ada 2005 entities with entities generated by the
15917 2007-04-06 Robert Dewar <dewar@adacore.com>
15918 Arnaud Charlet <charlet@adacore.com>
15919 Vincent Celier <celier@adacore.com>
15921 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15922 Update 'Exception Handling Control' chapter which was outdated.
15923 Minor fix to documentation of -gnatwq
15924 Remove section "Adapting the Run Time to a New C++ Compiler" because
15925 it is now obsolete.
15926 Add passage on need of -nostart-files in some non-ada-main cases.
15927 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15928 Update documentation about Interfacing with C++
15929 Add documentation for new gnatmake switch -p
15930 Add missing protocol part in URLs.
15932 Document pragma Compile_Time_Error
15933 Add documentation for Object_Size indicating that stand alone
15934 objects can have a larger size in some cases.
15935 Add node for GNAT.Byte_Swapping, GNAT.SHA1
15936 Update reference to the Ravenscar profile.
15937 Document pragma Unreferenced_Objects
15939 * gnat-style.texi: Fix typo
15941 2007-04-06 Vincent Celier <celier@adacore.com>
15943 * mlib.adb (Building_Library): Only output "building a library..." in
15946 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15947 files in verbose mode.
15949 * mlib-utl.adb (Ar): Only output the first object files when not in
15951 (Gcc): Do not display all the object files if not in verbose mode, only
15954 2007-04-06 Robert Dewar <dewar@adacore.com>
15956 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15957 it no longer destroys the contents of Name_Buffer or Name_Len and
15958 non-standard and invalid names are handled better.
15959 (Get_Decoded_Name_String): Improve performance by using
15960 Name_Has_No_Encodings flag in the name table.
15961 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15962 Used for debugging printouts.
15964 2007-04-06 Robert Dewar <dewar@adacore.com>
15965 Javier Miranda <miranda@adacore.com>
15966 Bob Duff <duff@adacore.com>
15968 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15969 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15970 there is no need to generate always a record_definition_node in case
15971 of synchronized interface types.
15972 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15973 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15974 illegal in Ada 95, in cases where it is legal. Change the warnings to
15975 errors in other cases. Don't give the error unless the "not null"
15976 parses properly. Correct the source position at which the error occurs.
15977 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15978 P_Null_Exclusion, to suppress "not null" warnings.
15979 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15980 associated goto statements.
15982 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15985 * scans.ads (Type_Token_Location): New flag
15987 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15988 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15989 P_Null_Exclusion, to suppress "not null" warnings.
15991 2007-04-06 Robert Dewar <dewar@adacore.com>
15992 Javier Miranda <miranda@adacore.com>
15993 Bob Duff <duff@adacore.com>
15994 Vincent Celier <celier@adacore.com>
15996 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15997 (Extensions_Allowed): No longer sets Ada_Version
15998 Entry for pragma Unreferenced_Objects
16000 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16001 system.tasking if pragma priority used in a procedure
16002 (Analyze_Pragma, case Warning): Handle dot warning switches
16003 (Process_Compile_Time_Warning_Or_Error): New procedure
16004 (Analyze_Pragma): Add processing for Compile_Time_Error
16005 Add support for extra arguments External_Name and Link_Name.
16006 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16007 (Process_Import_Or_Interface): Add support for the use of pragma Import
16009 (Extensions_Allowed): No longer affects Ada_Version
16010 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16011 Is_Abstract_Type. Make sure these are called only when appropriate.
16012 Add processing for pragma Unreferenced_Objects
16014 * snames.h, snames.ads, snames.adb: Add entry for pragma
16016 Add new standard name Minimum_Binder_Options for new gprmake
16017 Add new standard names for gprmake: Archive_Suffix,
16018 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16019 Library_Support, Library_Version_Options,
16020 Shared_Library_Minimum_Options,
16021 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16022 Change Name_Call to Name_uCall so that it cannot clash with a legal
16024 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16025 Append C_Plus_Plus to convention identifiers as synonym for CPP
16026 Add new standard names Stack and Builder_Switches
16027 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16028 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16029 Run_Path_Option, Toolchain_Version.
16030 Entry for pragma Unreferenced_Objects
16032 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16033 switches, without repetition of "eD". Make sure that last character of
16034 -gnatep= switch is not taken as -gnat switch character.
16035 Complete rewrite of circuit for handling saving compilation options
16036 Occasioned by need to support dot switchs for -gnatw, but cleans up
16038 -gnatX does not affect Ada_Version
16039 Include -gnatyA in -gnatg style switches
16041 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16042 warnings on return objects.
16043 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16044 (Set_Dot_Warning_Switch): New procedure
16045 (Check_References): Add missing case of test for
16046 Has_Pragma_Unreferenced_Objects
16047 (Output_Unreferenced_Messages): Implement effect of new pragma
16048 Unreferenced_Objects, remove special casing of limited controlled
16051 2007-04-06 Vincent Celier <celier@adacore.com>
16053 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16054 the default project path, initially done during elaboration of the
16056 If the prefix returned by Sdefault is null, get the prefix from a call
16057 to Executable_Prefix_Path.
16058 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16061 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16062 canonical directory name to open the directory from which files are
16064 (Record_Other_Sources): Idem.
16065 (Locate_Directory): Add the possibility to create automatically missing
16066 directories when Setup_Projects is True.
16067 Call Locate_Directory so that the directory will be created when
16068 Setup_Projects is True, for object dir, library dir, library ALI dir,
16069 library source copy dir and exec dir.
16071 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16074 2007-04-06 Robert Dewar <dewar@adacore.com>
16076 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16077 Use First/Next_Component_Or_Discriminant
16078 (Analyze_Record_Representation_Clause):
16079 Use First/Next_Component_Or_Discriminant
16080 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16081 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16082 definition if type is unconstrained.
16083 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16084 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16085 Is_Abstract_Subprogram and Is_Abstract_Type.
16086 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16088 * repinfo.adb (List_Record_Info): Use First/
16089 Next_Component_Or_Discriminant.
16091 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16094 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16095 Include -gnatyA in default switches
16097 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16098 (Warn_On_Reverse_Bit_Order): New flag
16099 (Extensions_Allowed): Update the documentation.
16100 (Warn_On_Questionable_Missing_Parens): Now on by default
16102 * usage.adb: Add documentation of -gnatw.x/X switches
16103 Document new -gnatyA style switch
16104 -gnatq warnings are on by default
16106 2007-04-06 Ed Falis <falis@adacore.com>
16108 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16109 full word is no longer compared twice.
16111 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16113 * sem_ch10.adb (Install_Limited_Context_Clauses.
16114 Expand_Limited_With_Clause): Use a new copy of selector name in the
16115 call to Make_With_Clause. This fixes the tree structure for ASIS
16116 purposes. Nothing is changed in the compiler behaviour.
16117 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16118 a package renaming.
16119 (Install_Limited_With_Clauses): Do not install non-limited view when it
16120 is still incomplete.
16122 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16123 Gary Dismukes <dismukes@adacore.com>
16125 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16126 when capturing size information, instead of base type, which for a
16127 formal array type will be the unconstrained type.
16128 (Analyze_Formal_Object_Declaration): Add check for illegal default
16129 expressions for a formal in object of a limited type.
16130 (Instantiate_Object): Ditto.
16131 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16132 because they were defaulted in the formal package and no check applies
16134 (Check_Formal_Package_Instance): Extend conformance check to other
16135 discrete types beyond Integer.
16136 (Process_Default): Copy directly the unmatched formal. A generic copy
16137 has already been performed in Analyze_Formal_Package.
16138 (Analyze_Associations): If a formal subprogram has no match, check for
16139 partial parametrization before looking for a default, to prevent
16141 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16142 not set the instantiation environment before analyzing the actuals.
16143 Fixes regression on 8515-003 with implementation of AI-133.
16144 Set_Instance_Env checks whether the generic unit is a predefined
16145 unit, in which case the instance must be analyzed with the latest Ada
16146 mode. This setting must take place after analysis of the actuals,
16147 because the actuals must be analyzed and frozen in the Ada mode extant
16148 outside of the current instantiation.
16149 (Save_Env, Restore_Env): Preserve and restore the configuration
16150 parameters so that predefined units can be compiled in the proper Ada
16152 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16153 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16154 and Is_Abstract_Type.
16155 (Analyze_Formal_Package): For better error recovery, Add exception
16156 handler to catch Instantion_Error, which can be raised in
16157 Analyze_Associations
16159 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16160 Bob Duff <duff@adacore.com>
16161 Gary Dismukes <dismukes@adacore.com>
16163 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16164 prefix type is a discriminated subtype of the type of the formal.
16165 (Analyze_Allocator): Collect all coextensions regardless of the context.
16166 Whether they can be allocated statically is determined in exp_ch4.
16167 (Analyze_Selected_Component): If the prefix is a limited view and the
16168 non-limited view is available, use the non-limited one.
16169 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16170 therefore illegal), suggest a qualified expression rather than a type
16171 conversion, because a type conversion would be illegal in this context.
16172 (Anayze_Allocator): Trace recursively all nested allocators so that all
16173 coextensions are on the corresponding list for the root. Do no mark
16174 coextensions if the root allocator is within a declaration for a stack-
16175 allocated object, because the access discriminants will be allocated on
16177 (Analyze_Call): Remove restriction on calls to limited functions for the
16178 cases of generic actuals for formal objects, defaults for formal objects
16179 and defaults for record components.
16180 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16181 element list. Their expansion is delayed until the enclosing allocator
16182 is processed and its finalization list constructed.
16183 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16184 for an operation with the given name among the primitive operations of
16185 the corresponding record type.
16186 (Analyze_Selected_Component): If the prefix is a task type that
16187 implements an interface, and there is no entry with the given name,
16188 check whether there is another primitive operation (e.g. a function)
16190 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16191 properly the indexing of a function call written in prefix form, where
16192 the function returns an array type, and all parameters of the function
16193 except the first have defaults.
16194 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16195 the original operands, rather than relocating them, for efficiency and
16196 to work properly when an operand is overloaded.
16197 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16198 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16199 (Analyze_Selected_Component): If the prefix is a private extension, only
16200 scan the visible components, not those of the full view.
16201 (Try_Primitive_Operation): If the operation is a procedure, collect all
16202 possible interpretations, as for a function, because in the presence of
16203 classwide parameters several primitive operations of the type can match
16204 the given arguments.
16206 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16207 Robert Dewar <dewar@adacore.com>
16209 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16210 tag-indeterminate call to an abstract function, when the left-hand side
16212 (Analyze_Loop_Statement): Improve detection of infinite loops
16214 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16215 Thomas Quinot <quinot@adacore.com>
16217 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16218 out of Analyze_Package_Declaration, because processing must be applied
16219 to package bodies as well, for deferred constants completed by pragmas.
16220 (Analyze_Package_Declaration): When the package declaration being
16221 analyzed does not require an explicit body, call Check_Completion.
16222 (May_Need_Implicit_Body): An implicit body is required when a package
16223 spec contains the declaration of a remote access-to-classwide type.
16224 (Analyze_Package_Body): If the package contains RACWs, append the
16225 pending subprogram bodies generated by exp_dist at the end of the body.
16226 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16227 Is_Abstract_Subprogram and Is_Abstract_Type.
16228 (Preserve_Full_Attributes): The full entity list is not an attribute
16229 that must be preserved from full to partial view.
16231 * sem_dist.adb (Add_RAS_Dereference_TSS):
16232 Change primitive name to _Call so it cannot clash with any legal
16233 identifier, and be special-cased in Check_Completion.
16234 Mark the full view of the designated type for the RACW associated with
16235 a RAS as Comes_From_Source to get proper view switching when installing
16236 private declarations.
16237 Provite a placeholder nested package body along with the nested spec
16238 to have a place for Append_RACW_Bodies to generate the calling stubs
16239 and stream attributes.
16241 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16242 Robert Dewar <dewar@adacore.com>
16244 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16245 that is a limited view, check the non-limited view if available.
16246 (Undefined): Refine error message for missing with of Text_IO
16247 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16248 to distinguish real missing with cases.
16249 Fix format of all missing with messages
16250 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16251 renaming as body when renamed entity is abstract.
16253 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16254 Javier Miranda <miranda@adacore.com>
16256 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16257 predicate recursive, to handle complex expressions on literals whose
16258 spurious ambiguity comes from the abstract interpretation of some
16260 (Interface_Present_In_Ancestor): Add support to concurrent record
16262 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16263 Is_Abstract_Subprogram and Is_Abstract_Type.
16265 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16266 Javier Miranda <miranda@adacore.com>
16268 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16269 dereference of a local object R created as a reference to another
16270 object O, use the access level of O.
16271 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16272 rather than local Same_Formal_Type, to check whether protected operation
16273 overrides an inherited one.
16274 (Same_Formal_Type): New predicate, used when matching signatures of
16275 overriding synchronized operations, to handle the case when a formal
16276 has a type that is a generic actual.
16277 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16278 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16279 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16280 syntactic ambiguities involving indexing of function calls that return
16282 (Abstract_Interface_List): New subprogram that returns the list of
16283 abstract interfaces associated with a concurrent type or a
16284 concurrent record type.
16285 (Interface_Present_In_Parent): New subprogram used to check if a
16286 given type or some of its parents implement a given interface.
16287 (Collect_Abstract_Interfaces): Add support for concurrent types
16288 with interface types.
16289 (Has_Abstract_Interfaces): Add support for concurrent types with
16291 (Is_Parent): New subprogram that determines whether E1 is a parent
16292 of E2. For a concurrent type its parent is the first element of its
16293 list of interface types; for other types this function provides the
16294 same result than Is_Ancestor.
16295 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16296 (Collect_Synchronized_Interfaces): Removed because the subprogram
16297 Collect_Abstract_Interfaces provides this functionality.
16298 (Collect_Abstract_Interfaces): Minor update to give support to
16299 concurrent types and thus avoid undesired code duplication.
16300 (Get_Subprogram_Entity): Handle entry calls.
16301 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16303 (Enter_Name): Do not give -gnatwh hiding warning for record component
16304 entities, they never result in hiding.
16306 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16307 Robert Dewar <dewar@adacore.com>
16309 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16310 to chain nested components that are allocators for access discriminants
16311 of the enclosing object.
16312 Add N_Push and N_Pop nodes
16313 New field Exception_Label added
16314 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16315 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16316 (Is_Coextension): New flag for allocators, to mark allocators that
16317 correspond to access discriminants of dynamically allocated objects.
16318 (N_Block_Statement): Document the fact that the corresponding entity
16319 can be an E_Return_Statement.
16320 (Is_Coextension): New flag for allocators.
16321 Remove all code for DSP option
16323 * sprint.ads, sprint.adb: Display basic information for class_wide
16324 subtypes. Add handling of N_Push and N_Pop nodes
16326 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16328 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16329 before propagating exception.
16331 2007-04-06 Olivier Hainque <hainque@adacore.com>
16333 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16334 an address always within the call instruction from a return address.
16336 2007-04-06 Olivier Hainque <hainque@adacore.com>
16337 Eric Botcazou <botcazou@adacore.com>
16339 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16340 expression with a COMPOUND_EXPR including the call instead of emitting
16341 the call directly here.
16342 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16343 high bound is constant and the slice is empty. Tidy.
16344 (tree_transform, case N_Op_Not): Handle properly the case where the
16345 operation applies to a private type whose full view is a modular type.
16346 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16347 Address_Clause, use the associated Expression as the GNAT tree
16348 representing the choice value to ensure the corresponding GCC tree is
16349 of the proper kind.
16350 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16351 instead of just the operands, as the base GCC stabilize_reference does.
16352 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16353 requested; otherwise fail.
16354 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16356 2007-04-06 Thomas Quinot <quinot@adacore.com>
16358 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16359 implementation of UI_Div.
16360 (UI_Div): Reimplement as a call to UI_Div_Rem.
16361 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16362 remainder, avoiding the cost of a multiplication and a subtraction.
16363 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16364 provides both quotient and remainder in a single computation.
16365 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16366 functions for uint.
16367 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16368 is undefined if the given n is not inversible.
16370 2007-04-06 Olivier Hainque <hainque@adacore.com>
16372 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16373 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16376 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16377 Olivier Hainque <hainque@adacore.com>
16379 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16380 when updating the contents of the old pointer to an unconstrained array.
16381 (end_subprog_body): Set error_gnat_node to Empty.
16382 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16383 (unchecked_convert): For subtype to base type conversions, require that
16384 the source be a subtype if it is an integer type.
16385 (builtin_decls): New global, vector of available builtin functions.
16386 (gnat_pushdecl): Add global builtin function declaration nodes to the
16387 builtin_decls list.
16388 (gnat_install_builtins): Adjust comments.
16389 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16390 calling gnat_pushdecl, so that it knows when it handed a builtin
16391 function declaration node.
16392 (builtin_decl_for): Search the builtin_decls list.
16394 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16396 * s-stchop-vxworks.adb:
16397 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16399 2007-04-06 Robert Dewar <dewar@adacore.com>
16400 Arnaud Charlet <charlet@adacore.com>
16402 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16404 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16406 Add mention of -Sev (set initialize_scalars option from environment
16407 variable at run time) in gnatbind usage message.
16409 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16411 * fname-uf.ads: Minor comment fix
16413 * osint.ads: Change pragma Elaborate to Elaborate_All
16415 * par-load.adb: Add documentation.
16417 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16419 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16421 * s-secsta.ads: Extra comments
16423 * s-soflin.ads: Minor comment fixes
16425 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16427 * s-wchcon.ads: Minor comment addition
16429 * treepr.adb: Minor change in message
16430 (Print_Name,Print_Node): Make these debug printouts more robust: print
16431 "no such..." instead of crashing on bad input.
16433 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16435 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16436 instead of gnat_signed_or_unsigned_type.
16437 * utils.c (gnat_signed_or_unsigned_type): Remove.
16438 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16439 * gigi.h (gnat_signed_or_unsigned_type): Remove
16441 2007-03-09 Roger Sayle <roger@eyesopen.com>
16443 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16444 fold with the result of buildN.
16445 * decl.c (gnat_to_gnu_entity): Likewise.
16446 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16447 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16449 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16450 nonbinary_modular_operation, build_binary_op, build_unary_op,
16451 build_cond_expr): Likewise.
16453 * utils.c (convert): Use fold_build1 when casting values to void.
16454 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16455 fold_convert instead of convert when appropriate.
16457 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16459 * Make-lang.in: Add install-pdf target as copied from
16460 automake v1.10 rules.
16462 2007-02-28 Andreas Schwab <schwab@suse.de>
16464 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16465 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16466 (doc/gnat-style.info): Likewise.
16468 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16470 * gnat-style.texi: Standardize title page.
16471 * gnat_rm.texi: Likewise.
16472 * gnat_ugn.texi: Likewise.
16474 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16476 * decl.c (annotate_value): Adjust for refactoring of tree_map
16479 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16481 * decl.c (annotate_value): Adjust for refactoring of tree_map
16484 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16487 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16488 untagged derived type, add hidden components to keep discriminant
16489 layout consistent, when a given discriminant of the derived type
16490 constraints several discriminants of the parent type.
16492 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16493 Sandra Loosemore <sandra@codesourcery.com>
16495 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16496 build the call expression.
16497 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16498 * utils.c (max_size) <tcc_exceptional>: Delete.
16499 <tcc_vl_exp>: New case.
16500 <tcc_expression>: Delete CALL_EXPR subcase.
16501 (build_global_cdtor): Use build_call_nary instead of build3.
16502 * utils2.c (build_call_1_expr): Likewise.
16503 (build_call_2_expr): Likewise.
16504 (build_call_0_expr): Likewise.
16505 (build_call_alloc_dealloc): Likewise.
16507 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16509 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16510 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16511 and _Unwind_SWord with _sleb128_t.
16513 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16515 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16516 * decl.c: Include gt-ada-decl.h.
16517 (annotate_value_cache): New.
16518 (annotate_value): Use it instead of TREE_COMPLEXITY.
16520 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16522 * misc.c, utils2.c: Fix comment typos.
16524 2007-01-24 Roger Sayle <roger@eyesopen.com>
16526 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16527 TREE_CONSTANT_OVERFLOW.
16528 (allocatable_size_p, annotate_value): Likewise.
16529 * trans.c (gnat_to_gnu): Likewise.
16530 * utils.c (unchecked_convert): Likewise.
16531 * utils2.c (build_simple_component_ref): Likewise.
16533 2007-01-23 Richard Guenther <rguenther@suse.de>
16536 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16537 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16538 (gnatboot3): Likewise.
16539 (GNATBIND): Do not define.
16540 * Makefile.in (GNATBIND): Do not define.
16542 2007-01-08 Richard Guenther <rguenther@suse.de>
16544 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16545 * trans.c (gnat_to_gnu): Likewise.
16547 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16549 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16550 * adaint.c: Likewise.
16552 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16554 Merge from gimple-tuples-branch:
16555 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16557 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16558 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16559 GIMPLE_MODIFY_STMT.
16561 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16563 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16564 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16567 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16570 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16571 if the initializer takes into account the padding.
16573 2006-11-11 Richard Guenther <rguenther@suse.de>
16575 * trans.c (maybe_stabilize_reference): Remove handling of
16576 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16578 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16581 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16582 (To_Target_Priority): New function.
16584 2006-10-31 Robert Dewar <dewar@adacore.com>
16586 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16587 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16588 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16589 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16590 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16591 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16592 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16593 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16594 a-szbzha.adb: Minor reformatting. Fix header.
16596 * a-numaux-x86.adb: Add parentheses for use of unary minus
16597 * a-ngcefu.adb: Supply missing parentheses for unary minus
16598 * a-ngcoty.adb: Add parens for use of unary minus
16599 * a-ngelfu.adb: Add missing parens for unary minus
16600 * a-tifiio.adb: Add parentheses for uses of unary minus
16602 2006-10-31 Robert Dewar <dewar@adacore.com>
16603 Bob Duff <duff@adacore.com>
16604 Ed Schonberg <schonberg@adacore.com>
16606 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16607 with multiplying operator.
16608 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16609 pointer whether the context expects "any real type".
16610 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16611 universal_fixed "*" and "/" operators when they are used in a context
16612 that expects any real type. Also set the type of the node to
16613 Universal_Real in this case, because downstream processing requires it
16614 (mainly static expression evaluation).
16615 Reword some continuation messages
16616 Add some \\ sequences to continuation messages
16617 (Resolve_Call): Refine infinite recursion case. The test has been
16618 sharpened to eliminate some false positives.
16619 Check for Current_Task usage now includes entry barrier, and is now a
16620 warning, not an error.
16621 (Resolve): If the call is ambiguous, indicate whether an interpretation
16622 is an inherited operation.
16623 (Check_Aggr): When resolving aggregates, skip associations with a box,
16624 which are priori correct, and will be replaced by an actual default
16625 expression in the course of expansion.
16626 (Resolve_Type_Conversion): Add missing support for conversion from
16627 a class-wide interface to a tagged type. Minor code cleanup.
16628 (Valid_Tagged_Converion): Add support for abstact interface type
16630 (Resolve_Selected_Component): Call Generate_Reference here rather than
16631 during analysis, and use May_Be_Lvalue to distinguish read/write.
16632 (Valid_Array_Conversion): New procedure, abstracted from
16633 Valid_Conversion, to incorporate accessibility checks for arrays of
16634 anonymous access types.
16635 (Valid_Conversion): For a conversion to a numeric type occurring in an
16636 instance or inlined body, no need to check that the operand type is
16637 numeric, since this has been checked during analysis of the template.
16638 Remove legacy test for scope name Unchecked_Conversion.
16640 * sem_res.ads: Minor reformatting
16642 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16643 (PE_Current_Task_In_Entry_Body): New exception code
16644 (SE_Restriction_Violation): Removed, not used
16646 * a-except.ads: Update comments.
16648 * types.h, types.ads: Add definition for Validity_Check
16649 (PE_Current_Task_In_Entry_Body): New exception code
16650 (SE_Restriction_Violation): Removed, not used
16652 2006-10-31 Thomas Quinot <quinot@adacore.com>
16654 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16657 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16658 Jose Ruiz <ruiz@adacore.com>
16660 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16661 part of Ada.Calendar: all subprogram raise Unimplemented.
16662 (Split_W_Offset): Temp function body, raising Unimplemented
16664 * a-calend.ads, a-calend-vms.ads:
16665 Add imported variable Invalid_TZ_Offset used to designate targets unable
16666 to support time zones.
16667 (Unimplemented): Temporary function raised by the body of new
16669 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16670 unit provides handling of leap seconds and is used by the new Ada 2005
16671 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16672 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16673 version returns an extra value which is the offset to UTC.
16675 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16676 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16677 (Split_W_Offset): New function body.
16678 (Time_Of): When a date is close to UNIX epoch, compute the time for
16679 that date plus one day (that amount is later substracted after
16680 executing mktime) so there are no problems with time zone adjustments.
16682 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16684 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16685 a-catizo.ads, a-catizo.adb: New files.
16687 * impunit.adb: Add new Ada 2005 entries
16689 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16690 Rename all occurences of "__gnat_localtime_r" to
16691 "__gnat_localtime_tzoff".
16692 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16693 zone data and calculate the GMT offset.
16694 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16695 Use the field "tm_gmtoff" to extract the GMT offset.
16696 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16697 the external variable "timezone" to calculate the GMT offset.
16699 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16700 Jose Ruiz <ruiz@adacore.com>
16702 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16703 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16704 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16705 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16706 System.Any_Priority to a POSIX priority on the target.
16708 * system-linux-ia64.ads:
16709 Extend range of Priority types on Linux to use the whole range made
16710 available by the system.
16712 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16713 function maps from System.Any_Priority to a POSIX priority on the
16715 (PTHREAD_PRIO_PROTECT): Set real value.
16716 (PTHREAD_PRIO_INHERIT): Now a function.
16717 (SIGCPUFAIL): New signal.
16718 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16719 are documented as reserved by the OS.
16721 * system-aix.ads: Use the full range of priorities provided by the
16724 * s-taprop-posix.adb: Call new function To_Target_Priority.
16725 (Set_Priority): Take into account Task_Dispatching_Policy and
16726 Priority_Specific_Dispatching pragmas when determining if Round Robin
16727 must be used for scheduling the task.
16729 * system-linux-x86_64.ads, system-linux-x86.ads,
16730 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16731 the whole range made available by the system.
16733 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16734 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16735 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16736 when deallocating the TCB in order to avoid potential references to
16738 (Set_Priority): Take into account Task_Dispatching_Policy and
16739 Priority_Specific_Dispatching pragmas when determining if Round Robin
16740 or FIFO within priorities must be used for scheduling the task.
16742 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16743 the Thread field (to be used internally by the run-time system) and the
16744 kernel-level task id in the LWP field (to be used by the debugger).
16745 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16746 instance, and propagate the current task options to the spawned task.
16747 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16748 (Initialize): Set Round Robin dispatching when the corresponding pragma
16751 2006-10-31 Robert Dewar <dewar@adacore.com>
16753 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16754 system-linux-hppa.ads, system-hpux-ia64.ads,
16755 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16756 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16757 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16758 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16759 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16760 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16761 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16762 Default_Bit_Order) to kill constant condition warnings for references
16765 2006-10-31 Vincent Celier <celier@adacore.com>
16766 Eric Botcazou <ebotcazou@adacore.com>
16768 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16769 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16770 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16771 Ext_To, when building the library file name
16773 * mlib-tgt-vxworks.adb: ditto.
16774 (Get_Target_Suffix): Add support for x86 targets.
16776 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16778 * mlib-tgt-darwin.adb:
16779 Use Append_To, instead of Ext_To, when building the library file name
16780 (Flat_Namespace): New global variable.
16781 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16782 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16783 (Link_Shared_Libgcc): Delete.
16784 (Build_Dynamic_Library): Adjust for above changes.
16786 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16788 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16790 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16791 (Initialize): Add type conversions required by above change.
16793 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16795 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16796 (getpid): New body for this function that uses the underlying taskIdSelf
16797 function for VxWorks 5 and VxWorks 6 in kernel mode.
16798 (unsigned_int): New type, modular to allow logical bit operations.
16799 (taskOptionsGet): New imported function.
16801 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16802 field to be compliant with the type used by the corresponding operating
16805 2006-10-31 Pascal Obry <obry@adacore.com>
16806 Eric Botcazou <ebotcazou@adacore.com>
16807 Vincent Celier <celier@adacore.com>
16809 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16810 ASCII version of the registry API. This is needed as the GNAT runtime
16811 is now UNICODE by default.
16813 (get_gcc_version): Do not hardcode the return value.
16814 (__gnat_file_time_name): On Windows properly set the default returned
16815 value to -1 which corresponds to Invalid_Time.
16816 (__gnat_fopen): New routine. A simple wrapper on all plateforms
16817 except on Windows where it does conversion for unicode support.
16818 (__gnat_freopen): Idem.
16819 (__gnat_locate_exec_on_path): If environment variable PATH does not
16820 exist, return a NULL pointer
16822 * adaint.h: (__gnat_fopen): Declare.
16823 (__gnat_freopen): Likewise.
16825 * mingw32.h (_tfreopen): Define this macro here for older MingW
16827 Activate the unicode support on platforms using a MingW runtime
16828 version 3.9 or newer.
16830 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16831 This is needed for proper unicode support on Windows.
16834 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16835 Nicolas Setton <setton@adacore.com>
16836 Olivier Hainque <hainque@adacore.com>
16837 Gary Dismukes <dismukes@adacore.com>
16839 * gigi.h: (tree_code_for_record_type): Declare.
16840 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16841 (get_global_renaming_pointers): Rename to
16842 invalidate_global_renaming_pointers.
16843 (static_ctors): Delete.
16844 (static_dtors): Likewise.
16845 (gnat_write_global_declarations): Declare.
16846 (create_var_decl): Adjust descriptive comment to indicate that the
16847 subprogram may return a CONST_DECL node.
16848 (create_true_var_decl): Declare new function, similar to
16849 create_var_decl but forcing the creation of a VAR_DECL node.
16850 (get_global_renaming_pointers): Declare.
16851 (add_global_renaming_pointer): Likewise.
16853 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16855 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16856 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16858 (gnat_to_gnu_entity): Remove From_With_Type from computation for
16860 <E_Access_Type>: Use the Non_Limited_View as the full view of the
16861 designated type if the pointer comes from a limited_with clause. Make
16862 incomplete designated type if it is in the main unit and has a freeze
16864 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16865 Underlying_Full_View similarly. Return earlier if the full view already
16866 has an associated tree.
16867 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16868 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16869 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16870 reference type built for objects with an address clause.
16871 Use create_true_var_decl with const_flag set for
16872 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16874 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16875 for Character and Wide_Character types. This info is read by the
16876 dwarf-2 writer, and is needed to be able to use the command "ptype
16877 character" in the debugger.
16878 (gnat_to_gnu_entity): When generating a type representing
16879 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16880 so that debug writers can distinguish it from ordinary integers.
16881 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16882 addition to TREE_READONLY to assert the constantness of variables for
16883 elaboration purposes.
16884 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16885 parameters to call new Einfo function First_Formal_With_Extras.
16886 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16887 protected type with its corresponding discriminant, to obtain a usable
16889 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16890 for a multiple elaboration of the "equivalent" type.
16891 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16892 into record_global_renaming_pointer.
16893 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16894 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16895 <E_Array_Subtype>: Likewise.
16896 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16897 incomplete subtypes and incomplete subtypes of incomplete types visible
16898 through a limited with clause.
16899 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16900 the base index type for the maximum size of the array only if they are
16902 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16903 expression into a SAVE_EXPR if stabilization failed.
16905 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16906 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16907 by lower level compilation passes.
16908 (gnat_genericize): New function, lowering a function body to GENERIC.
16909 Turn the type of RESULT_DECL into a real reference type if the decl
16910 has been marked DECL_BY_REFERENCE, and adjust references to the latter
16912 (gnat_genericize_r): New function. Tree walking callback for
16914 (convert_from_reference, is_byref_result): New functions. Helpers for
16916 (create_type_decl): Call gnat_pushdecl before calling
16917 rest_of_decl_compilation, to make sure that field TYPE_NAME of
16918 type_decl is properly set before calling the debug information writers.
16919 (write_record_type_debug_info): The heuristics which compute the
16920 alignment of a field in a variant record might not be accurate. Add a
16921 safety test to make sure no alignment is set to a smaller value than
16922 the alignment of the field type.
16923 (make_dummy_type): Use the Non_Limited_View as the underlying type if
16924 the type comes from a limited_with clause. Do not loop on the full view.
16925 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16926 (dummy_node_table): New global variable, moved from decl.c.
16927 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16928 (save_gnu_tree): Use above macros.
16929 (get_gnu_tree): Likewise.
16930 (present_gnu_tree): Likewise.
16931 (init_dummy_type): New function, moved from decl.c. Use above macros.
16932 (make_dummy_type): Likewise.
16933 (tree_code_for_record_type): New function extracted from make_dummy_type
16934 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16935 (static_ctors): Change it to a vector, make static.
16936 (static_dtors): Likewise.
16937 (end_subprog_body): Adjust for above change.
16938 (build_global_cdtor): Moved from trans.c.
16939 (gnat_write_global_declarations): Emit global constructor and
16940 destructor, and call cgraph_optimize before emitting debug info for
16941 global declarations.
16942 (global_decls): New global variable.
16943 (gnat_pushdecl): Store the global declarations in global_decls, for
16945 (gnat_write_global_declarations): Emit debug information for global
16947 (create_var_decl_1): Former create_var_decl, with an extra argument to
16948 state whether the creation of a CONST_DECL is allowed.
16949 (create_var_decl): Behavior unchanged. Now a wrapper around
16950 create_var_decl_1 allowing CONST_DECL creation.
16951 (create_true_var_decl): New function, similar to create_var_decl but
16952 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16953 (create_field_decl): Do not always mark the field as addressable
16954 if its type is an aggregate.
16955 (global_renaming_pointers): New static variable.
16956 (add_global_renaming_pointer): New function.
16957 (get_global_renaming_pointers): Likewise.
16959 * misc.c (gnat_dwarf_name): New function.
16960 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16961 (gnat_post_options): Add comment about structural alias analysis.
16962 (gnat_parse_file): Do not call cgraph_optimize here.
16963 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16965 * trans.c (process_freeze_entity): Don't abort if we already have a
16966 non dummy GCC tree for a Concurrent_Record_Type, as it might
16967 legitimately have been elaborated while processing the associated
16968 Concurrent_Type prior to this explicit freeze node.
16969 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16970 exception handler volatile if it is of variable size.
16971 (process_type): Remove bypass for types coming from a limited_with
16973 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16974 actual, convert the corresponding gnu_actual to the real destination
16975 type when necessary.
16976 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16977 originally TREE_READONLY but whose elaboration cannot be performed
16979 Part of fix for F504-021.
16980 (tree_transform, subprogram cases): Change loops on formal parameters to
16981 call new Einfo function First_Formal_With_Extras.
16982 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16983 stemming from type conversion for the lhs.
16984 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16985 number of bits per unit for components of records.
16986 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16987 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16988 with At_End_Proc after the SJLJ EH cleanup.
16989 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16991 (elaborate_all_entities): Do not retest type_annotate_only.
16992 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16993 result type of an abstract subprogram, which may be an itype associated
16994 with an anonymous access result (related to AI-318-02).
16995 (build_global_cdtor): Move to utils.c.
16996 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16997 this choice is not a null tree nor an integer constant.
16998 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16999 on the body of elaboration routines instead of mark_unvisited.
17000 (add_stmt): Do not mark the tree.
17001 (add_decl_expr): Tweak comment.
17002 (mark_unvisited): Delete.
17003 (unshare_save_expr): New static function.
17004 (call_to_gnu): Issue an error when making a temporary around a
17005 procedure call because of non-addressable actual parameter if the
17006 type of the formal is by_reference.
17007 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17008 after building the elaboration routine.
17010 2006-10-31 Bob Duff <duff@adacore.com>
17012 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17013 as finalization-started, so we can raise Program_Error on 'new'.
17015 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17016 collection has already started.
17018 * s-finimp.ads (Collection_Finalization_Started): Added new special
17019 flag value for indicating that a collection's finalization has started.
17021 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17022 create a task whose master has already waited for dependent tasks.
17024 2006-10-31 Robert Dewar <dewar@adacore.com>
17026 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17028 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17029 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17030 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17031 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17032 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17033 a-except-2005.ads: Add pragma Preelaborable_Warning
17035 2006-10-31 Robert Dewar <dewar@adacore.com>
17036 Jose Ruiz <ruiz@adacore.com>
17038 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17040 * ali.adb (Get_Name): Properly handle scanning of wide character names
17041 encoded with brackets notation.
17042 (Known_ALI_Lines): Add S lines to this list.
17043 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17044 New flag Elaborate_All_Desirable in unit table
17046 * ali.ads (Priority_Specific_Dispatching): Add this range of
17047 identifiers to be used for Priority_Specific_Dispatching table entries.
17048 (ALIs_Record): Add First_Specific_Dispatching and
17049 Last_Specific_Dispatching that point to the first and last entries
17050 respectively in the priority specific dispatching table for this unit.
17051 (Specific_Dispatching): Add this table for storing each S (priority
17052 specific dispatching) line encountered in the input ALI file.
17053 New flag Elaborate_All_Desirable in unit table
17055 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17056 Check_Consistent_Dispatching_Policy.
17057 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17058 verifying that the use of Priority_Specific_Dispatching,
17059 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17062 * bindgen.adb: (Public_Version_Warning): function removed.
17063 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17064 required information from ALI files in order to initialize the table
17065 containing the specific dispatching policy.
17066 (Gen_Adainit_Ada): Generate the variables required for priority specific
17067 dispatching entries (__gl_priority_specific_dispatching and
17068 __gl_num_specific_dispatching).
17069 (Gen_Adainit_C): Generate the variables required for priority specific
17070 dispatching entries (__gl_priority_specific_dispatching and
17071 __gl_num_specific_dispatching).
17072 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17074 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17075 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17077 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17078 a call to gnat_set_globals.
17079 Generate a string containing settings from
17080 Priority_Specific_Dispatching pragma entries.
17081 (Gen_Object_Files_Options): Do not include the runtime libraries when
17082 pragma No_Run_Time is specified.
17084 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17085 consistency with s-intman-posix.adb.
17086 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17087 handler is installed with SA_SIGINFO.
17088 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17089 FreeBSD ZCX support, copied from Linux version.
17090 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17091 sigfillset, and sigemptyset so the routines defined by MaRTE.
17092 (__gl_priority_specific_dispatching): Add this variable that stores the
17093 string containing priority specific dispatching policies in the
17095 (__gl_num_specific_dispatching): Add this variable that indicates the
17096 highest priority for which a priority specific dispatching pragma
17098 (__gnat_get_specific_dispatching): Add this routine that returns the
17099 priority specific dispatching policy, as set by a
17100 Priority_Specific_Dispatching pragma appearing anywhere in the current
17101 partition. The input argument is the priority number, and the result
17102 is the upper case first character of the policy name.
17103 (__gnat_set_globals): Now a dummy function.
17104 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17105 mechargs instead of sigargs, as the latter can be retrieved from the
17106 former and sigargs is not what we want on ia64.
17107 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17109 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17110 (tasking_error): Remove unused symbol.
17111 (_abort_signal): Move this symbol to the IRIX specific part since this
17112 is the only target that uses this definition.
17113 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17114 this is the only target that uses this definition.
17115 (Lock_Task): Remove unused symbol.
17116 (Unlock_Task): Remove unused symbol.
17118 * lib-writ.adb (Write_ALI): Output new S lines for
17119 Priority_Specific_Dispatching pragmas.
17120 Implement new flag BD for elaborate body desirable
17122 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17123 (Specific_Dispatching): Add this table for storing the entries
17124 corresponding to Priority_Specific_Dispatching pragmas.
17125 Document new BD flag for elaborate body desirable
17127 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17130 2006-10-31 Javier Miranda <miranda@adacore.com>
17132 * a-tags.ads, a-tags.adb:
17133 (Predefined_DT): New function that improves readability of the code.
17134 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17135 Inherit_DT): Use the new function Predefined_DT to improve code
17137 (Register_Interface_Tag): Update assertion.
17138 (Set_Interface_Table): Update assertion.
17139 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17140 determining progenitor interfaces in Tags.
17141 (Inherit_CPP_DT): New subprogram.
17143 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17144 analysis of the thunk code.
17145 (Expand_Interface_Conversion): Handle run-time conversion of
17146 access to class wide types.
17147 (Expand_Dispatching_Call): When generating the profile for the
17148 subprogram itype for a dispatching operation, properly terminate the
17149 formal parameters chaind list (set the Next_Entity of the last formal
17151 (Collect_All_Interfaces): Removed. This routine has been moved to
17152 sem_util and renamed as Collect_All_Abstract_Interfaces.
17153 (Set_All_DT_Position): Hidden entities associated with abstract
17154 interface primitives are not taken into account in the check for
17155 3.9.3(10); this check is done with the aliased entity.
17156 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17157 interfacing with CPP by default.
17158 (Expand_Interface_Conversion): Add missing support for static conversion
17159 from an interface to a tagged type.
17160 (Collect_All_Interfaces): Add new out formal containing the list of
17161 abstract interface types to cleanup the subprogram Make_DT.
17162 (Make_DT): Update the code to generate the table of interfaces in case
17163 of abstract interface types.
17164 (Is_Predefined_Dispatching_Alias): New function that returns true if
17165 a primitive is not a predefined dispatching primitive but it is an
17166 alias of a predefined dispatching primitive.
17167 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17168 compiling under full ABI compatibility mode we avoid the generation of
17169 calls to run-time services that fill the dispatch tables because under
17170 this mode we currently inherit the dispatch tables in the IP subprogram.
17171 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17172 (Expand_Interface_Conversion): Use an address as the type of the formal
17173 of the internally built function that handles the case in which the
17174 target type is an access type.
17176 2006-10-31 Robert Dewar <dewar@adacore.com>
17178 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17180 2006-10-31 Robert Dewar <dewar@adacore.com>
17182 * bindusg.ads, bindusg.adb:
17183 Change to package and rename procedure as Display, which
17184 now ensures that it only outputs usage information once.
17186 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17188 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17191 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17194 2006-10-31 Robert Dewar <dewar@adacore.com>
17195 Ed Schonberg <schonberg@adacore.com>
17197 * treepr.adb: Use new subtype N_Membership_Test
17199 * checks.ads, checks.adb: Add definition for Validity_Check
17200 (Range_Or_Validity_Checks_Suppressed): New function
17201 (Ensure_Valid): Test Validity_Check suppressed
17202 (Insert_Valid_Check): Test Validity_Check suppressed
17203 (Insert_Valid_Check): Preserve Do_Range_Check flag
17204 (Validity_Check_Range): New procedure
17205 (Expr_Known_Valid): Result of membership test is always valid
17206 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17207 by themselves. Disabling those checks must also be done for task types,
17208 where discriminants may be used for the bounds of entry families.
17209 (Apply_Address_Clause_Check): Remove side-effects if address expression
17210 is non-static and is not the name of a declared constant.
17211 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17212 Code cleanup and new error messages.
17213 (Enable_Range_Check): Test for some cases of suppressed checks
17214 (Generate_Index_Checks): Suppress index checks if index checks are
17215 suppressed for array object or array type.
17216 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17217 length check failure, even if checks are off.
17218 (Ensure_Valid): Do not generate a check on an indexed component whose
17219 prefix is a packed boolean array.
17220 * checks.adb: (Alignment_Checks_Suppressed): New function
17221 (Apply_Address_Clause_Check): New procedure, this is a completely
17222 rewritten replacement for Apply_Alignment_Check
17223 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17224 we request a discriminal value only in case of discriminants.
17225 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17226 assignments where the target subtype is unconstrained and the target
17227 object is a parameter or dereference (other aliased cases are known
17228 to be unconstrained).
17230 2006-10-31 Robert Dewar <dewar@adacore.com>
17232 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17233 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17234 vms_conv.adb: Fix bad table increment values (much too small)
17236 * table.adb (Realloc): Make sure we get at least some new elements
17237 Defends against silly small values for table increment
17239 2006-10-31 Robert Dewar <dewar@adacore.com>
17240 Ed Schonberg <schonberg@adacore.com>
17241 Bob Duff <duff@adacore.com>
17243 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17244 entities. Move other fields around to make this possible
17245 (Is_Derived_Type): Add missing call to Is_Type.
17246 (Extra_Formals): New function for subprograms, entries, subprogram
17248 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17249 (First_Formal_With_Extras): New function for subprogs, entries, subp
17251 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17252 Add node information for E_Return_Statement.
17253 (Elaborate_Body_Desirable): New flag
17254 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17255 to be Is_Inherently_Limited_Type, because return-by-reference has
17256 no meaning in Ada 2005.
17257 (E_Return_Statement): New entity kind.
17258 (Return_Applies_To): Field of E_Return_Statement.
17259 (Is_Return_Object): New flag in object entities.
17260 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17261 (Must_Have_Preelab_Init): New flag
17262 (Known_To_Have_Preelab_Init): New flag
17263 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17264 (Is_Visible_Formal): New flag on entities in formal packages.
17265 (Low_Bound_Known): New flag
17266 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17268 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17269 output when Id is an incomplete subtype.
17271 2006-10-31 Robert Dewar <dewar@adacore.com>
17273 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17274 Avoid abbreviation Creat
17275 (Finalize): List all sources in extended mail source if -gnatl
17277 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17278 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17279 (Set_Specific_Warning_On): New procedure
17280 (Set_Specific_Warning_Off): New procedure
17281 Add implementation of new insertion \\
17282 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17283 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17285 (Error_Msg_Internal): Make sure that we set Last_Killed to
17286 True when a message from another package is suppressed.
17287 Implement insertion character ~ (insert string)
17288 (First_Node): Minor adjustments to get better placement.
17291 Implement new -gnatl=xxx switch to output listing to file
17294 Implement new -gnatl=xxx switch to output listing to file
17296 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17297 (Commands_To_Stdout): New flag
17298 Implement new -gnatl=xxx switch to output listing to file
17299 New switch Dump_Source_Text
17300 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17301 Define Error_Msg_Line_Length
17302 (Warn_On_Assumed_Low_Bound): New switch
17304 * osint.ads, osint.adb
17305 (Normalize_Directory_Name): Fix bug.
17306 Implement new -gnatl=xxx switch to output listing to file
17307 (Concat): Removed, replaced by real concatenation
17308 Make use of concatenation now allowed in compiler
17309 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17310 we find the 'lib' or 'bin' directory even when the tool has been
17311 invoked with a relative path.
17312 (Executable_Name): New function taking string parameters.
17314 * osint-c.ads, osint-c.adb:
17315 Implement new -gnatl=xxx switch to output listing to file
17317 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17320 Implement new -gnatl=xxx switch to output listing to file
17321 Recognize new -gnatL switch
17322 (no longer keep in old warning about old style usage)
17323 Use concatenation to simplify code
17324 Recognize -gnatjnn switch
17325 (Scan_Front_End_Switches): Clean up handling of -gnatW
17326 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17328 2006-10-31 Robert Dewar <dewar@adacore.com>
17330 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17331 (Set_Specific_Warning_Off): New procedure
17332 (Warning_Specifically_Suppressed): New function
17333 (Validate_Specific_Warnings): New procedure
17334 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17336 * err_vars.ads: Implement insertion character ~ (insert string)
17338 2006-10-31 Bob Duff <duff@adacore.com>
17339 Ed Schonberg <schonberg@adacore.com>
17341 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17342 the parent part is a build-in-place function call, generate assignments.
17343 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17344 are build-in-place function calls.
17345 (Replace_Self_Reference): New subsidiary of
17346 Make_OK_Assignment_Statement, to replace an access attribute that is a
17347 self-reference into an access to the appropriate component of the
17348 target object. Generalizes previous mechanism to handle self-references
17349 nested at any level.
17350 (Is_Self_Referential_Init): Remove, not needed.
17351 (Is_Self_Referential_Init): New predicate to simplify handling of self
17352 referential components in record aggregates.
17353 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17354 check for presence of entity before checking for self-reference.
17355 (Has_Default_Init_Comps): Return True if a component association is a
17356 self-reference to the enclosing type, which can only come from a
17357 default initialization.
17358 (Make_OK_Assignment_Statement): If the expression is of the form
17359 Typ'Acc, where Acc is an access attribute, the expression comes from a
17360 default initialized self-referential component.
17361 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17362 that has been derived from several abstract interfaces we must also
17363 initialize the tags of the secondary dispatch tables.
17365 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17366 Thomas Quinot <quinot@adacore.com>
17367 Javier Miranda <miranda@adacore.com>
17368 Robert Dewar <dewar@adacore.com>
17371 (Expand_Access_To_Protected_Op): If the context indicates that an access
17372 to a local operation may be transfered outside of the object, create an
17373 access to the wrapper operation that must be used in an external call.
17374 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17375 target, pass the Valid attribute applied to a floating-point prefix on
17376 to the back end without expansion.
17377 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17378 the allocated storage when it is specified by a per-object expression.
17379 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17380 Nothing to do here, the attribute has been rewritten during semantic
17382 (Expand_Attribute_Reference): Handle expansion of the new Priority
17384 (Find_Fat_Info): Handle case of universal real
17385 (Expand_Access_To_Protected_Op): Fix use of access to protected
17386 subprogram from inside the body of a protected entry.
17387 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17388 'Access and 'Unrestricted_Access, to transform the attribute reference
17389 into a fat pointer.
17390 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17391 subcomponent's enclosing variable is aliased with a constrained subtype.
17392 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17393 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17394 an aliased prefix must be known to be constrained in order to use True
17395 for the attribute value, and now it's possible for some aliased views
17396 to be unconstrained.
17398 2006-10-31 Robert Dewar <dewar@adacore.com>
17400 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17401 (Expand_Entity_Reference): Correct error of not handling subprogram
17402 formals in current_value processing.
17404 2006-10-31 Javier Miranda <miranda@adacore.com>
17405 Robert Dewar <dewar@adacore.com>
17406 Ed Schonberg <schonberg@adacore.com>
17407 Gary Dismukes <dismukes@adacore.com>
17409 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17410 register in the final list objects containing class-wide interfaces;
17411 otherwise we incorrectly register the tag of the interface in the final
17413 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17414 generate the wrapper if the parent primitive is abstract. This is
17415 required to report the correct error message.
17416 (Expand_N_Subtype_Indication): Do validity checks on range
17417 (Clean_Task_Names): If an initialization procedure includes a call to
17418 initialize a task (sub)component, indicate that the procedure will use
17419 the secondary stack.
17420 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17421 compatibility for interfacing with CPP by default.
17422 (Expand_N_Object_Declaration): Only build an Adjust call when the
17423 object's type is a nonlimited controlled type.
17424 * exp_ch3.adb: Add with and use of Exp_Ch6.
17425 (Expand_N_Object_Declaration): Check for object initialization that is a
17426 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17427 Object_Declaration to the call.
17428 (Freeze_Type): When the designated type of an RACW was not frozen at the
17429 point where the RACW was declared, validate the primitive operations
17430 with respect to E.2.2(14) when it finally is frozen.
17431 (Build_Initialization_Call,Expand_Record_Controller): Rename
17432 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17433 return-by-reference has no meaning in Ada 2005.
17434 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17435 to register tag of the immediate ancestor interfaces in the
17436 run-time structure.
17437 (Init_Secondary_Tags): Moved to the specification to allow the
17438 initialization of extension aggregates with abstract interfaces.
17439 (Build_Master_Renaming): Make public, for use by function declarations
17440 whose return type is an anonymous access type.
17441 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17442 Insert_List_Before_And_Analyze after the generation of the specs
17443 associated with null procedures.
17444 (Expand_Tagged_Root): Update documentation in its specification.
17445 (Init_Secondary_Tags): Update documentation.
17446 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17447 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17448 then generate code to inherit the contents of the dispatch table
17449 directly from the ancestor.
17450 (Expand_Record_Controller): Insert controller component after tags of
17451 implemented interfaces.
17452 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17453 create null procedure overridings when null procedures are inherited
17455 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17456 declarations for overriding null primitives inherited from interfaces.
17457 (Is_Null_Interface_Procedure): New function in
17458 Make_Null_Procedure_Specs.
17459 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17460 immediate ancestor of a tagged type is an abstract interface type we
17461 must generate the specification of the predefined primitives associated
17462 with controlled types (because the dispatch table of the ancestor is
17463 null and hence these entries cannot be inherited). This is required to
17464 elaborate well the dispatch table.
17466 2006-10-31 Javier Miranda <miranda@adacore.com>
17467 Ed Schonberg <schonberg@adacore.com>
17468 Bob Duff <duff@adacore.com>
17469 Gary Dismukes <dismukes@adacore.com>
17470 Robert Dewar <dewar@adacore.com>
17472 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17474 (Expand_N_In): Do validity checks on range
17475 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17476 (Expand_N_Allocator): For "new T", if the object is constrained by
17477 discriminant defaults, allocate the right amount of memory, rather than
17478 the maximum for type T.
17479 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17480 when the allocator is initialized by a build-in-place call, since the
17481 allocator is already rewritten as a reference to the function result,
17482 and this prevents an unwanted duplication of the function call.
17483 Add with and use of Exp_Ch6.
17484 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17485 is a call to build-in-place function and apply
17486 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17487 untagged designated types).
17488 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17489 optimization if source or target is biased.
17490 (Expand_N_Allocator): Add comments for case of an allocator within a
17491 function that returns an anonymous access type designating tasks.
17492 (Expand_N_Allocator): apply discriminant checks for access
17493 discriminants of anonymous access types (AI-402, AI-416)
17495 2006-10-31 Bob Duff <duff@adacore.com>
17496 Robert Dewar <dewar@adacore.com>
17497 Gary Dismukes <dismukes@adacore.com>
17498 Ed Schonberg <schonberg@adacore.com>
17500 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17502 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17503 (Expand_N_Assignment_Statement): Call
17504 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17505 build-in-place function call. Currently, this can happen only for
17506 assignments that come from aggregates.
17507 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17508 in order to alleviate the upward compatibility introduced by AI-318.
17509 (Expand_N_Extended_Return_Statement): Add support for handling the
17510 return object as a build-in-place result.
17511 (Expand_Non_Function_Return): Implement simple return statements nested
17512 within an extended return.
17513 (Enable_New_Return_Processing): Turn on the new processing of return
17515 (Expand_Non_Function_Return): For a return within an extended return,
17516 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17517 (Expand_N_Extended_Return_Statement): Implement AI-318
17518 (Expand_Simple_Function_Return): Ditto.
17519 (Expand_N_If_Statement): Handle new -gnatwt warning
17520 (Expand_N_Case_Statement): Handle new -gnatwt warning
17521 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17522 a protected object.
17523 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17524 validity checking of assignments to elementary record components.
17525 (Expand_N_Return_Statement): return Class Wide types on the secondary
17526 stack independantly of their controlled status since with HIE runtimes,
17527 class wide types are not potentially controlled anymore.
17529 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17532 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17533 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17534 it expects a block, procedure, or task. The return statement will get
17535 turned into a block, and Expand_Cleanup_Actions will happen then.
17537 2006-10-31 Robert Dewar <dewar@adacore.com>
17538 Ed Schonberg <schonberg@adacore.com>
17539 Bob Duff <duff@adacore.com>
17540 Gary Dismukes <dismukes@adacore.com>
17542 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17544 (Expand_Inlined_Call): Tagged types are by-reference types, and
17545 therefore should be replaced by a renaming declaration in the expanded
17546 body, as is done for limited types.
17547 (Expand_Call): If this is a call to a function with dispatching access
17548 result, propagate tag from context.
17549 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17551 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17552 build-in-place when the right-hand side of an assignment is a
17553 build-in-place function call.
17554 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17555 of the explicit dereference of the allocator to the result subtype of
17556 the build-in-place function. This is needed to satisfy type checking
17557 in cases where the caller's return object is created by an allocator for
17558 a class-wide access type and the type named in the allocator is a
17560 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17561 conversion of the reference to the declared object to the result subtype
17562 of the build-in-place function. This is needed to satisfy type checking
17563 in cases where the declared object has a class-wide type. Also, in the
17564 class-wide case, change the type of the object entity to the specific
17565 result subtype of the function, to avoid passing a class-wide object
17566 without explicit initialization to the back end.
17567 (Register_Interface_DT_Entry): Moved outside the body of
17568 Freeze_Subprogram because this routine is now public; it is called from
17569 Check_Dispatching_Overriding to handle late overriding of abstract
17570 interface primitives.
17571 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17572 adding an implicit access actual on a call to a build-in-place function.
17573 (Expand_Actuals): Test for an actual parameter that is a call to a
17574 build-in-place function and apply
17575 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17576 (Is_Build_In_Place_Function): New function to determine whether an
17577 entity is a function whose calls should be handled as build-in-place.
17578 (Is_Build_In_Place_Function_Call): New function to determine whether an
17579 expression is a function call that should handled as build-in-place.
17580 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17581 calls to build-in-place functions as the initialization of an allocator.
17582 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17583 handling calls to build-in-place functions in contexts that do not
17584 involve init of a separate object (for example, actuals of subprogram
17586 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17587 handling calls to build-in-place functions as the initialization of an
17588 object declaration.
17589 (Detect_Infinite_Recursion): Add explicit parameter Process to
17590 instantiation of Traverse_Body to avoid unreferenced warning.
17591 (Check_Overriding_Inherited_Interfaces): Removed.
17592 (Register_Interface_DT_Entry): Code cleanup.
17593 (Register_Predefined_DT_Entry): Code cleanup.
17594 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17595 inlined statements if within a transient scope.
17596 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17597 formal parameters with occurrences of actuals in inlined body, establish
17598 visibility on the proper view of the actual's subtype for the body's
17600 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17601 compatibility mode and we have an imported CPP subprogram because
17602 for now we assume that imported CPP primitives correspond with
17603 objects whose constructor is in the CPP side (and therefore we
17604 don't need to generate code to register them in the dispatch table).
17605 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17606 aligned selected component.
17607 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17608 the actual of an in-mode parameter is a type conversion.
17609 (Expand_Actuals): If the call does not come from source and the actual
17610 is potentially misaligned, let gigi handle it rather than rejecting the
17611 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17612 Class Wide types as returning by reference independantly of their
17613 controlled status since with HIE runtimes class wide types are not
17614 potentially controlled anymore.
17616 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17618 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17619 references that are private components of the protected object.
17620 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17621 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17622 instantiation to deal with warnings.
17623 (Initialize_Protection): If expression for priority is non-static, use
17624 System_Priority as its expected type, in case the expression has not
17627 2006-10-31 Robert Dewar <dewar@adacore.com>
17629 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17630 initialization of Homonym_Len.
17631 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17632 names from fully qualified name. Fixes problem of duplicate
17633 external names differing only in the presence of such a block name.
17635 2006-10-31 Thomas Quinot <quinot@adacore.com>
17636 Pablo Oliveira <oliveira@adacore.com>
17638 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17639 subprogram Ids, even if they are not yet assigned.
17640 (Build_Subprogram_Id): It is now this function that will take care of
17641 calling Assign_Subprogram_Ids if necessary.
17642 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17643 should be done only once they are assigned.
17644 (Build_From_Any_Function, case of tagged types): Add missing call to
17646 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17647 type for an RACW type.
17648 (Add_RACW_Features): When processing an RACW declaration for which the
17649 designated type is already frozen, enforce E.2.2(14) rules immediately.
17650 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17651 special reordering of controlling formals.
17653 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17654 associated stub type for an RACW type.
17656 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17658 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17659 fixed-point operations in an integer context, i.e. as operands of a
17660 conversion to an integer type, indicate that result must be rounded.
17662 2006-10-31 Robert Dewar <dewar@adacore.com>
17664 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17665 cases, pass the encoding method, since it is now required by the run
17668 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17669 assumption that Str'First = 1.
17670 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17671 it on to the Value_Wide_Wide_Character call.
17672 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17673 properly handles a string of the form quote-encoded_wide_char-quote.
17675 * s-wchcnv.adb: Minor reformatting
17677 2006-10-31 Javier Miranda <miranda@adacore.com>
17679 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17680 run-time membership test to ensure that the constructed object
17681 implements the target abstract interface.
17683 2006-10-31 Robert Dewar <dewar@adacore.com>
17685 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17686 Machine_Attribute pragma internally to implement the user pragma.
17687 Add processing for pragma Interface so that it is now completely
17688 equivalent to pragma Import.
17690 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17691 so that it can be applied to all entities, including record components
17692 and enumeration literals.
17693 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17694 priority ranges are correct, verify compatibility against task
17695 dispatching and locking policies, and if everything is correct an entry
17696 is added to the table containing priority specific dispatching entries
17697 for this compilation unit.
17698 (Delay_Config_Pragma_Analyze): Delay processing
17699 Priority_Specific_Dispatching pragmas because when processing the
17700 pragma we need to access run-time data, such as the range of
17701 System.Any_Priority.
17702 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17703 Allow pragma Unreferenced as a context item
17704 Add pragma Preelaborable_Initialization
17705 (Analyze_Pragma, case Interface): Interface is extended so that it is
17706 now syntactically and semantically equivalent to Import.
17707 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17708 insertion characters.
17709 Add handling for Pragma_Wide_Character_Encoding
17710 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17711 never supercedes a real restriction, and that a real restriction
17712 always supercedes a warning.
17713 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17716 2006-10-31 Bob Duff <duff@adacore.com>
17717 Ed Schonberg <schonberg@adacore.com>
17718 Robert Dewar <dewar@adacore.com>
17720 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17721 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17722 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17724 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17725 type of the function containing a return statement, because the
17726 Return_Type field was removed. We now use the Return_Applies_To field.
17728 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17729 (Build_Task_Image_Decl): If procedure is not called from an
17730 initialization procedure, indicate that function that builds task name
17731 uses the sec. stack. Otherwise the enclosing initialization procedure
17732 will carry the indication.
17733 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17734 N_Object_Declaration instead.
17735 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17736 conditional dead code killed, and change implementation accordingly.
17737 (Insert_Actions): Add N_Return_Object_Declaration case.
17738 Correct comment to mention N_Extension_Aggregate node.
17739 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17740 attempts to save information for global variables which cannot be
17742 (Get_Current_Value_Condition): Handle conditions the other way round
17743 (constant on left). Also handle right operand of AND and AND THEN
17744 (Set_Current_Value_Condition): Corresponding changes
17745 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17746 (Get_Current_Value_Condition): Handle simple boolean operands
17747 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17748 (Get_Current_Value_Condition): If the variable reference is within an
17749 if-statement, does not appear in the list of then_statments, and does
17750 not come from source, treat it as being at unknown location.
17751 (Get_Current_Value_Condition): Enhance to allow while statements to be
17752 processed as well as if statements.
17753 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17755 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17756 of loop. This is safe now that we fixed Kill_Current_Values.
17757 (OK_To_Do_Constant_Replacement): Check whether current scope is
17758 Standard, before examining outer scopes.
17760 2006-10-31 Vincent Celier <celier@adacore.com>
17762 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17763 When True, apply VMS treatment to children of packages A, G, I and S.
17766 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17768 2006-10-31 Robert Dewar <dewar@adacore.com>
17769 Ed Schonberg <schonberg@adacore.com>
17771 * freeze.adb: Add handling of Last_Assignment field
17772 (Warn_Overlay): Supply missing continuation marks in error msgs
17773 (Freeze_Entity): Add check for Preelaborable_Initialization
17775 * g-comlin.adb: Add Warnings (Off) to prevent new warning
17777 * g-expect.adb: Add Warnings (Off) to prevent new warning
17779 * lib-xref.adb: Add handling of Last_Assignment field
17780 (Generate_Reference): Centralize handling of pragma Obsolescent here
17781 (Generate_Reference): Accept an implicit reference generated for a
17782 default in an instance.
17783 (Generate_Reference): Accept a reference for a node that is not in the
17784 main unit, if it is the generic body corresponding to an subprogram
17787 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17789 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17791 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17793 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17794 use clauses, to avoid messages on packages used to qualify, and also
17795 to avoid messages from obsolescent units.
17796 (Warn_On_Useless_Assignments): Don't generate messages for imported
17797 and exported variables.
17798 (Warn_On_Useless_Assignments): New procedure
17799 (Output_Obsolescent_Entity_Warnings): New procedure
17800 (Check_Code_Statement): New procedure
17802 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17803 Change name Is_Ada_2005 to Is_Ada_2005_Only
17804 (Last_Assignment): New field for useless assignment warning
17806 2006-10-31 Olivier Hainque <hainque@adacore.com>
17808 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17809 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17811 2006-10-31 Bob Duff <duff@adacore.com>
17812 Robert Dewar <dewar@adacore.com>
17813 Ed Schonberg <schonberg@adacore.com>
17815 * g-awk.adb (Default_Session, Current_Session): Compile this file in
17816 Ada 95 mode, because it violates the new rules for AI-318.
17818 * g-awk.ads: Use overloaded subprograms in every case where we used to
17819 have a default of Current_Session. This makes the code closer to be
17820 correct for both Ada 95 and 2005.
17822 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17823 code, relying on the fact that the compiler generates a warning
17824 instead of an error in -gnatg mode.
17826 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17827 E_Return_Statement entity kind.
17828 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17830 * par.adb (P_Interface_Type_Definition): Addition of one formal to
17831 report an error if the reserved word abstract has been previously found.
17832 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17834 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17835 parenthesized range attribute usage
17836 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17838 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17839 in the syntax for extended_return_statement. This is not in the latest
17840 RM, but the ARG is expected to issue an AI allowing this.
17841 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17842 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17843 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17844 P_Return_Statement): Parse the new syntax for extended_return_statement.
17846 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17847 Output_End_Missing): Add error-recovery code for the new
17848 extended_return_statement syntax; that is, the new E_Return entry on
17851 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17852 limited to nonlimited, because otherwise we violate the new Ada 2005
17853 rules about returning limited types in function Create_AST_Handler in
17856 * sem.adb (Analyze): Add cases for new node kinds
17857 N_Extended_Return_Statement and N_Return_Object_Declaration.
17859 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17860 type is in the same category as type of context before applying check,
17861 to prevent anomalies in instantiations.
17862 (Resolve_Aggregate): Remove test for limited components in aggregates.
17863 It's unnecessary in Ada 95, because if it has limited components, then
17864 it must be limited. It's wrong in Ada 2005, because limited aggregates
17866 (Resolve_Record_Aggregate): Move check for limited types later, because
17867 OK_For_Limited_Init requires its argument to have been resolved.
17868 (Get_Value): When copying the component default expression for a
17869 defaulted association in an aggregate, use the sloc of the aggregate
17870 and not that of the original expression, to prevent spurious
17871 elaboration errors, when the expression includes function calls.
17872 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17873 were missing. We also didn't handle qualified expressions. Now also
17874 allow function calls. Use new common routine OK_For_Limited_Init.
17875 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17876 with space can upper case letter).
17878 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17879 Has_Static_Discriminants flag
17880 (Record_Type_Declaration): Diagnose an attempt to declare an interface
17881 type with discriminants.
17882 (Process_Range_Expr_In_Decl): Do validity checks on range
17883 (Build_Discriminant_Constraints): Use updated form of
17884 Denotes_Discriminant.
17885 (Process_Subtype): If the subtype is a private subtype whose full view
17886 is a concurrent subtype, introduce an itype reference to prevent scope
17888 (Build_Derived_Record_Type, Collect_Interface_Primitives,
17889 Record_Type_Declaration): The functionality of the subprograms
17890 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17891 is now performed by a single routine.
17892 (Build_Derived_Record_Type): If the type definition includes an explicit
17893 indication of limitedness, then the type must be marked as limited here
17894 to ensure that any access discriminants will not be treated as having
17895 a local anonymous access type.
17896 (Check_Abstract_Overriding): Issue a detailed error message when an
17897 abstract subprogram was not overridden due to incorrect mode of its
17899 (Analyze_Private_Extension_Declaration): Add support for the analysis of
17900 synchronized private extension declarations. Verify that the ancestor is
17901 a limited or synchronized interface or in the generic case, the ancestor
17902 is a tagged limited type or synchronized interface and all progenitors
17903 are either limited or synchronized interfaces.
17904 Derived_Type_Declaration): Check for presence of private extension when
17905 dealing with synchronized formal derived types.
17906 Process_Full_View): Enchance the check done on the usage of "limited" by
17907 testing whether the private view is synchronized.
17908 Verify that a synchronized private view is completed by a protected or
17910 (OK_For_Limited_Init_In_05): New function.
17911 (Analyze_Object_Declaration): Move check for limited types later,
17912 because OK_For_Limited_Init requires its argument to have been resolved.
17913 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17914 in order to alleviate the upward compatibility introduced by AI-318.
17915 (Constrain_Corresponding_Record): If the constraint is for a component
17916 subtype, mark the itype as frozen, to avoid out-of-scope references to
17917 discriminants in the back-end.
17918 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17919 this subprogram against wrong sources.
17920 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17921 discriminant of limited type completed with a protected type, when the
17922 discriminant is used to constrain a private component of the type, and
17923 expansion is disabled.
17924 (Find_Type_Of_Object): Do not treat a return subtype that is an
17925 anonymous subtype as a local_anonymous_type, because its accessibility
17926 level is the return type of the enclosing function.
17927 (Check_Initialization): In -gnatg mode, turn the error "cannot
17928 initialize entities of limited type" into a warning.
17929 (OK_For_Limited_Init): Return true for generated nodes, since it
17930 sometimes violates the legality rules.
17931 (Make_Incomplete_Declaration): If the type for which an incomplete
17932 declaration is created happens to be the currently visible entity,
17933 preserve the homonym chain when removing it from visibility.
17934 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17935 inherited subprograms.
17936 (Access_Definition): If this is an access to function that is the return
17937 type of an access_to_function definition, context is a type declaration
17938 and the scope of the anonymous type is the current one.
17939 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17940 incomplete subtype to the set of private dependents of the original
17942 (Constrain_Discriminated_Type): Emit an error message whenever an
17943 incomplete subtype is being constrained.
17944 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17945 corresponding subtype of the full view of the original incomplete type.
17946 (Check_Incomplete): Properly detect invalid usage of incomplete types
17949 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17951 * g-catiio.ads, g-catiio.adb (Value): New function.
17952 Given an input String, try and parse a valid Time value.
17954 2006-10-31 Vincent Celier <celier@adacore.com>
17956 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17957 Integer_Address arithmetic, as in Set_Valid.
17959 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17960 Robert Dewar <dewar@adacore.com>
17962 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17963 handling executable extension manually and duplicating code.
17965 * make.adb: Implement new -S switch
17966 (Gnatmake): Use new function Osint.Executable_Name instead
17967 of handling executable extension manually.
17969 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17970 is specified, the executable name ends with this suffix.
17971 Take advantage of Osint.Executable_Name instead of duplicating code.
17973 * switch-m.adb: Recognize new gnatmake -S switch
17975 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17977 (Get_Target_Parameters): Set Executable_Extension_On_Target if
17980 * makeusg.adb: Add line for gnatmake -S switch
17982 2006-10-31 Vincent Celier <celier@adacore.com>
17984 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17985 call it with -static-libgcc, as there are some platforms, such as
17986 Darwin, where one of these two switches is compulsory to link.
17988 2006-10-31 Vincent Celier <celier@adacore.com>
17990 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17991 instead of ADA_PROJECT_PATH, for the project path.
17992 (Gnatls): When displaying the project path directories, use host dir
17995 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17996 names in the project path, as absolute paths may correspond to
17997 multi-valued VMS logical names.
17999 2006-10-31 Vincent Celier <celier@adacore.com>
18001 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18002 absolute path name.
18003 (Locate_Regular_File): Ditto
18004 (Change_Dir): Remove, no longer used
18005 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18006 on Windows. Get it calling Get_Current_Dir.
18007 (OpenVMS): Remove imported boolean, no longer needed.
18008 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18009 (Pid_To_Integer): New function to convert a Process_Id to Integer
18011 2006-10-31 Thomas Quinot <quinot@adacore.com>
18013 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18014 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18016 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18019 2006-10-31 Robert Dewar <dewar@adacore.com>
18021 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18022 initial letter o as a zero.
18024 2006-10-31 Robert Dewar <dewar@adacore.com>
18026 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18028 2006-10-31 Robert Dewar <dewar@adacore.com>
18030 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18032 (Layout_Variant_Record): Retrieve the discriminants from the entity
18033 rather than from the type definition, because in the case of a full
18034 type for a private type we need to take the discriminants from the
18036 (Layout_Component_List): When applying the Max operator to variants with
18037 a nonstatic size, check whether either operand is static and scale that
18038 operand from bits to storage units before applying Max.
18039 (Layout_Type): In VMS, if a C-convention access type has no explicit
18040 size clause (and does not inherit one in the case of a derived type),
18041 then the size is reset to 32 from 64.
18043 2006-10-31 Vincent Celier <celier@adacore.com>
18045 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18046 its file has already been loaded, according to the unit being loaded,
18047 not to the current value of Multiple_Unit_Index.
18049 2006-10-31 Thomas Quinot <quinot@adacore.com>
18050 Eric Botcazou <ebotcazou@adacore.com>
18051 Arnaud Charlet <charlet@adacore.com>
18053 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18054 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18056 (a-except.o): Pass it to the compiler.
18057 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18058 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18059 a-calend-mingw.adb version.
18061 * Makefile.rtl: Added s-dsaser.
18062 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18063 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18064 Ada.Dispatching.Round_Robin.
18065 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18067 * Make-lang.in: Remove all references to gt-ada-decl.h.
18068 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18070 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18071 Update dependencies.
18073 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18075 2006-10-31 Vincent Celier <celier@adacore.com>
18077 * mlib-utl.adb (Initialized): Remove, no longer used
18078 (Initialize): Remove, no longer used
18079 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18080 if there is one, the archive indexer. Fail if the archive builder cannot
18082 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18085 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18087 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18088 Process_Body_Clauses): If the context of a body includes a use clause
18089 for P.Q then a with_clause for P in the same body is not redundant,
18090 even if the spec also has a with_clause on P.
18091 Add missing continuation mark to error msg
18092 (Build_Limited_Views): A limited view of a type is tagged if its
18093 declaration includes a record extension.
18094 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18095 node, even if the subunit has errors. This avoids malfunction by
18096 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18097 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18098 generation of obsolescent messages for with statements (cannot do
18099 this too early, or we cannot implement avoiding the messages in the
18100 case of obsolescent units withing obsolescent units).
18101 (Install_Siblings): If the with_clause is on a remote descendant of
18102 an ancestor of the current compilation unit, find whether there is
18103 a sibling child unit that is immediately visible.
18104 (Remove_Private_With_Clauses): New procedure, invoked after completing
18105 the analysis of the private part of a nested package, to remove from
18106 visibility the private with_clauses of the enclosing package
18108 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18109 now centralized in Generate_Reference.
18110 (Install_Limited_Context_Clauses): Remove superfluous error
18111 message associated with unlimited view visible through use
18112 and renamings. In addition, at the point in which the error
18113 is reported, we add the backslash to the text of the error
18114 to ensure that it is reported as a single error message.
18115 Use new // insertion for some continuation messages
18116 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18117 to create implicit with_clause for parent unit mentioned in original
18118 limited_with_clause.
18119 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18120 unit is a child unit. For ASIS queries.
18121 (Analyze_Subunit): If the subunit appears within a child unit, make all
18122 ancestor child units directly visible again.
18124 2006-10-31 Robert Dewar <dewar@adacore.com>
18126 * par-ch10.adb (P_Context_Clause): Minor error message fix
18128 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18129 Javier Miranda <miranda@adacore.com>
18131 * par-ch12.adb: Grammar update and cleanup.
18132 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18133 support for synchronized derived type definitions.
18134 Add the new actual Abstract_Present to every call to
18135 P_Interface_Type_Definition.
18136 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18137 a formal object declaration with an access definition or a subtype mark
18138 with a null exclusion.
18139 (P_Generic_Association): Handle association with box, and others_choice
18140 with box, to support Ada 2005 partially parametrized formal packages.
18142 2006-10-31 Robert Dewar <dewar@adacore.com>
18143 Javier Miranda <miranda@adacore.com>
18145 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18146 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18147 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18148 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18149 private extensions.
18150 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18151 to P_Interface_Type_Definition.
18152 (P_Interface_Type_Definition): Addition of one formal to report an error
18153 if the reserved word abstract has been previously found.
18154 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18155 object renaming declaration with an access definition or subtype mark
18156 with a possible null exclusion.
18158 * par-ch9.adb: Minor error msg fix
18160 * par-load.adb: Add missing continuation mark to error msg
18162 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18164 2006-10-31 Vincent Celier <celier@adacore.com>
18166 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18167 unknown attribute in unknown package or in package that does not need
18169 (Parse_Package_Declaration): Do not issue warning for unknown package in
18172 2006-10-31 Vincent Celier <celier@adacore.com>
18174 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18175 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18178 2006-10-31 Vincent Celier <celier@adacore.com>
18180 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18181 on VMS, change "__" to '.' before checking the name.
18182 (Record_Ada_Source): Always add the source file name in the list of
18183 of sources, even if it is not the first time, as it is for another
18185 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18186 dot, instead of replacing only the first '_'.
18188 * prj-part.adb (Parse): Convert project file path to canonical form
18190 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18191 extended, the project id of the project extending it is recorded in its
18192 data, even when it has already been processed as an imported project.
18194 2006-10-31 Robert Dewar <dewar@adacore.com>
18196 * repinfo.adb (List_Entities): Don't list entities from renaming
18199 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18200 Robert Dewar <dewar@adacore.com>
18202 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18203 only a restriction warning is active for the given restriction. This is
18204 desirable because we do not want to modify code in the case where only
18206 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18207 causes overriding of real restrictions.
18208 Take advantage of new No_Restrictions constant.
18210 * raise.h: (__gnat_set_globals): Change profile.
18212 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18214 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18217 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18218 Move all the entities in obsolete package System.PolyORB_Interface to
18219 System.Partition_Interface.
18220 (RE_Storage_Size): New function in System.Tasking.
18221 (RE_Get_Ceiling): New entity.
18222 (RE_Set_Ceiling): New entity.
18223 (RO_PE_Get_Ceiling): New entity.
18224 (RO_RE_Set_Ceiling): New entity.
18225 (Inherit_CPP_DT): New entity
18227 2006-10-31 Robert Dewar <dewar@adacore.com>
18229 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18230 starting with a digit.
18232 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18233 Thomas Quinot <quinot@adacore.com>
18234 Javier Miranda <miranda@adacore.com>
18235 Gary Dismukes <dismukes@adacore.com>
18237 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18238 properly an attempt to apply Unchecked_Access to a protected operation.
18239 (OK_Self_Reference): New subprogram to check the legality of an access
18240 attribute whose prefix is the type of an enclosing aggregate.
18241 Generalizes previous mechanism to handle attribute references nested
18242 arbitrarily deep within the aggregate.
18243 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18244 can appear in an aggregate if this is a default-initialized aggregate
18245 for a self-referential type.
18246 (Resolve_Attribute, case Access): Ditto.
18247 Add support for new implementation defined attribute Stub_Type.
18248 (Eval_Attribute, case Attribute_Stub_Type): New case.
18249 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18250 (Stream_Attribute_Available): Implement using new subprogram from
18251 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18252 Has_Specified_Stream_Attribute flag.
18253 Disallow Storage_Size and Storage_Pool for access to subprogram
18254 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18255 access types of return subtypes in extended return statements. Remove
18256 accessibility checks on anonymous access types when Unchecked_Access is
18258 (Analyze_Attribute): Add support for the use of 'Class to convert
18259 a class-wide interface to a tagged type.
18260 Add support for the attribute Priority.
18261 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18262 whether the designated type is discriminated with a constrained partial
18263 view and require static matching in that case.
18264 Add local variable Des_Btyp. The Designated_Type
18265 of an access to incomplete subtype is either its non-limited view if
18266 coming from a limited with or its etype if regular incomplete subtype.
18268 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18269 Fix predicate to identify and allow cases of (expander-generated)
18270 references to tag of designated object of a RACW.
18271 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18272 non-static, and therefore cannot appear as a primary in a preelaborable
18274 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18275 Has_Read_Write_Attributes.
18276 (Has_Read_Write_Attributes): Reimplement in termes of
18277 Has_Stream_Attribute_Definition.
18278 (Missing_Read_Write_Attributes): When checking component types in a
18279 record, unconditionally call Missing_Read_Write_Attributes recursively
18280 (remove guard checking for Is_Record_Type / Is_Access_Type).
18282 2006-10-31 Robert Dewar <dewar@adacore.com>
18284 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18285 useless assignments here and conditionalize it on absence of exception
18287 (Analyze_Exception_Handlers): Small code reorganization of error
18288 detection code, for new handling of formal packages.
18290 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18291 Hristian Kirtchev <kirtchev@adacore.com>
18293 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18294 that has been constant-folded, preserve information of original tree,
18296 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18297 generated private extension declaration if the formal derived type is
18298 synchronized. Carry synchronized present over to the generated private
18300 (Validate_Derived_Type_Instance): Ensure that the actual of a
18301 synchronized formal derived type is a synchronized tagged type.
18302 (Instantiate_Formal_Package): When creating the instantiation used to
18303 validate the actual package of a formal declared without a box, check
18304 whether the formal itself depends on a prior actual.
18305 (Instantiate_Formal_Subprogram): Create new entities for the defining
18306 identifiers of the formals in the renaming declaration, for ASIS use.
18307 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18308 a renaming declaration or a subtype declaration for an actual in an
18309 instance, capture location information of declaration in generic, for
18311 (Instantiate_Formal_Package): Add comments on needed additional tests.
18312 AI-317 (partial parametrization) is fully implemented.
18313 (Validate_Private_Type_Instance): Add check for actual which
18314 must have preelaborable initialization
18315 Use new // insertion for some continuation messages
18316 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18317 Default_Expression. Add type retrieval when the declaration has an
18318 access definition. Update premature usage of incomplete type check.
18319 (Check_Access_Definition): New subsidiary routine. Check whether the
18320 current compilation version is Ada 05 and the supplied node has an
18322 (Instantiate object): Alphabetize local variables. Handle the creation
18323 of new renaming declarations with respect to the kind of definition
18324 used - either an access definition or a subtype mark. Guard against
18325 unnecessary error message in the context of anonymous access types after
18326 they have been resolved. Add check for required null exclusion in a
18327 formal object declaration.
18328 (Switch_View): A private subtype of a non-private type needs to be
18329 switched (the base type can have been switched without its private
18330 dependents because of the last branch of Check_Private_View.
18331 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18333 (Instantiate_Type): Emit an error message whenever a class-wide type of
18334 a tagged incomplete type is used as a generic actual.
18335 (Find_Actual_Type): Extend routine to handle a component type in a child
18336 unit that is imported from a formal package in a parent.
18337 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18338 agree on constrainedness, rather than checking against ultimate ancestor
18339 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18340 generic body, for navigation purposes.
18342 2006-10-31 Robert Dewar <dewar@adacore.com>
18343 Thomas Quinot <quinot@adacore.com>
18345 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18347 (New_Stream_Subprogram): When processing an attribute definition clause
18348 for a stream-oriented subprogram, record an entity node occurring at
18349 the point of clause to use for checking the visibility of the clause,
18350 as defined by 8.3(23) as amended by AI-195.
18351 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18352 New_Stream_Function and New_Stream_Procedure.
18353 (New_Stream_Function, New_Stream_Procedure): Removed.
18354 (Analyze_Attribute_Definition_Clause, case Address): Check new
18355 Alignment_Check check
18357 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18358 Javier Miranda <miranda@adacore.com>
18359 Robert Dewar <dewar@adacore.com>
18361 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18362 generate the same errors compiling under -gnatc.
18363 (Try_Object_Operation): If no candidate interpretation succeeds, but
18364 there is at least one primitive operation with the right name, report
18365 error in call rather than on a malformed selected component.
18366 (Analyze_Selected_Component): If the prefix is an incomplete type from
18367 a limited view, and the full view is available, use the full view to
18368 determine whether this is a prefixed call to a primitive operation.
18369 (Operator_Check): Verify that a candidate interpretation is a binary
18370 operation before checking the type of its second formal.
18371 (Analyze_Call): Add additional warnings for function call contexts not
18373 (Analyze_Allocator): Move the check for "initialization not allowed for
18374 limited types" after analyzing the expression. This is necessary,
18375 because OK_For_Limited_Init looks at the structure of the expression.
18376 Before analysis, we don't necessarily know what sort of expression it
18377 is. For example, we don't know whether F(X) is a function call or an
18378 indexed component; the former is legal in Ada 2005; the latter is not.
18379 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18380 were missing. We also didn't handle qualified expressions. Now also
18381 allow function calls. Use new common routine OK_For_Limited_Init.
18382 (Analyze_Type_Conversion): Do not perform some legality checks in an
18383 instance, because the error message will be redundant or spurious.
18384 (Analyze_Overloaded_Selected_Component): Do not do style check when
18385 setting an entity, since we do not know it is the right entity yet.
18386 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18387 (Analyze_Overloaded_Selected_Component): Same change
18388 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18389 since regular incomplete subtypes are transformed into corresponding
18390 subtypes of their full views.
18391 (Complete_Object_Operation): Treat name of transformed subprogram call
18392 as coming from source, for browsing purposes.
18393 (Try_Primitive_Operation): If formal is an access parameter, compare
18394 with base type of object to determine whether it is a primitive
18396 (Operator_Check): If no interpretation of the operator matches, check
18397 whether a use clause on any candidate might make the operation legal.
18398 (Try_Class_Wide_Operation): Check whether the first parameter is an
18399 access type whose designated type is class-wide.
18401 2006-10-31 Robert Dewar <dewar@adacore.com>
18402 Ed Schonberg <schonberg@adacore.com>
18403 Gary Dismukes <dismukes@adacore.com>
18405 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18406 warn on infinite loops.
18407 Add \\ to some continuation messages
18408 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18409 (Process_Bounds): If the bounds are integer literals that result from
18410 constant-folding, and they carry a user-defined type, preserve that type
18411 rather than treating this as an integer range.
18412 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18413 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18414 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18415 left hand side of assignment.
18416 (Analyze_Assignment): Add suport to manage assigments to the attribute
18417 priority of a protected object.
18418 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18419 not just identifiers.
18420 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18421 or AND THEN for possible tracking.
18422 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18423 case of while loops so we can track values in the loop body.
18425 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18426 Hristian Kirtchev <kirtchev@adacore.com>
18427 Bob Duff <duff@adacore.com>
18429 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18430 procedure cannot be a protected operation (it is a basic_declaration,
18431 not a subprogram_declaration).
18432 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18433 Subp. Add logic for entry processing.
18434 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18435 Determine whether an entry or subprogram of a protected or task type
18436 override an inherited primitive of an implemented interface.
18437 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18438 Update the actual used in calls to Check_Overriding_Indicator.
18439 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18440 generate the proper reference to the parent unit, for cross-reference.
18441 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18443 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18444 (Add_Extra_Formal): Revise procedure to allow passing in associated
18445 entity, scope, and name suffix, and handle setting of the new
18446 Extra_Formals field.
18447 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18448 pass new parameters. Add support for adding the new extra access formal
18449 for functions whose calls are treated as build-in-place.
18450 (Analyze_A_Return_Statement): Correct casing in error message.
18451 Move Pop_Scope to after Analyze_Function_Return, because an extended
18452 return statement really is a full-fledged scope. Otherwise, visibility
18453 doesn't work right. Correct use of "\" for continuation messages.
18454 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18455 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18456 the node doesn't get properly marked as analyzed.
18457 (Analyze_Subprogram_Body): If subprogram is a function that returns
18458 an anonymous access type that denotes a task, build a Master Entity
18460 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18461 proper usage of null exclusion in a result definition.
18462 (Process_Formals): Code cleanup and new error message.
18463 (Process_Formals): Detect incorrect application of null exclusion to
18465 (Conforming_Types): Handle conformance between [sub]types and itypes
18466 generated for entities that have null exclusions applied to them.
18467 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18468 base type is an access subtype. This case arrises with null exclusions.
18469 (New_Overloaded_Entity): Do not remove the overriden entity from the
18470 homonym chain if it corresponds with an abstract interface primitive.
18471 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18472 call to the synthesized predicate Is_Incomplete_Type.
18473 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18475 (Analyze_Subprogram_Declaration): Check that abstract interface
18476 primitives are abstract or null.
18477 (Analyze_Subprogram_Specification): Remove previous check for abstract
18478 interfaces because it was not complete.
18479 (Has_Interface_Formals): Removed.
18481 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18482 Javier Miranda <miranda@adacore.com>
18484 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18485 of Analyze_Package_Body, to create Itype references for anonymous
18486 access types created in the package declaration, whose designated types
18487 may have only a limited view.
18488 (Analyze_Package_Specification): For the private part of a nested
18489 package, install private_with_clauses of enclosing compilation unit if
18490 we are in its visible part.
18491 (Declare_Inherited_Private_Subprograms): Complete barrier
18492 to ensure that the primitive operation has an alias to some parent
18493 primitive. This is now required because, after the changes done for the
18494 implementation of abstract interfaces, the contents of the list of
18495 primitives has entities whose alias attribute references entities of
18496 such list of primitives.
18497 (Analyze_Package_Specification): Simplify code that handles parent units
18498 of instances and formal packages.
18499 (Uninstall_Declarations): Check the convention consistency among
18500 primitive overriding operations of a tagged record type.
18502 2006-10-31 Robert Dewar <dewar@adacore.com>
18503 Hristian Kirtchev <kirtchev@adacore.com>
18504 Javier Miranda <miranda@adacore.com>
18505 Ed Schonberg <schonberg@adacore.com>
18507 * sem_ch8.adb: Minor error msg rewording
18508 (Undefined): When checking for misspellings, invert arguments (to get
18509 expected and found set right)
18510 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18511 (Analyze_Generic_Renaming): Same fix
18512 (Use_One_Package): Do not take into account the internal entities of
18513 abstract interfaces during the analysis of entities that are marked
18514 as potentially use-visible.
18515 (Find_Type): Handle the case of an attribute reference for
18516 implementation defined attribute Stub_Type (simply let the analysis of
18517 the attribute reference rewrite it).
18518 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18519 type that appears in a Use_Type clause.
18520 (Analyze_Object_Renaming): Add support for renaming of the Priority
18522 (Find_Type): In Ada 2005, a task type can be used within its own body,
18523 when it appears in an access definition.
18524 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18525 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18526 in a formal object declaration or in a subtype declaration.
18527 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18528 (Check_Null_Exclusion): New local routine to
18529 Analyze_Subprogram_Renaming. Check whether the formals and return
18530 profile of a renamed subprogram have required null exclusions when
18531 their counterparts of the renaming already impose them.
18532 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18533 Determine whether an entity is inside a generic scope.
18534 (In_Open_Scope): First pass of documentation update.
18535 (Find_Expanded_Name): Add support for shadow entities associated with
18536 limited withed packages. This is required to handle nested packages.
18537 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18538 that makes a renaming of a limited withed package illegal.
18540 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18541 Ed Schonberg <schonberg@adacore.com>
18543 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18544 Check_Overriding_Indicator.
18545 (Analyze_Task_Definition): Ditto.
18546 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18547 (Check_Overriding_Indicator): To find overridden interface operation,
18548 examine only homonyms that have an explicit subprogram declaration, not
18549 inherited operations created by an unrelated type derivation.
18550 (Check_Overriding_Indicator): When checking for the presence of "null"
18551 in a procedure, ensure that the queried node is a procedure
18553 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18554 type when the formal is an access to variable.
18555 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18556 (Analyze_Task_Type): Same addition
18557 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18558 provide navigation capabilities for entries.
18560 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18561 Ed Schonberg <schonberg@adacore.com>
18562 Javier Miranda <miranda@adacore.com>
18563 Gary Dismukes <dismukes@adacore.com>
18565 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18566 inherited from an interface ancestor by another interface in the
18567 context of an instance as 'late'.
18568 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18569 of a call to a function that dispatches on access result.
18570 (Check_Dispatching_Operation): In case of late overriding of a primitive
18571 that covers abstract interface subprograms we register it in all the
18572 secondary dispatch tables associated with abstract interfaces.
18573 (Check_Dispatching_Call): Add check that a dispatching call is not made
18574 to a function with a controlling result of a limited type. This is a
18575 current implementation restriction.
18576 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18577 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18578 argument is an interface type that is a generic formal.
18579 (Is_Interface_Subprogram): Removed.
18580 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18581 operation, check the formals to handle the case in which it is
18582 associated with an abstract interface type.
18584 2006-10-31 Robert Dewar <dewar@adacore.com>
18585 Ed Schonberg <schonberg@adacore.com>
18587 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18588 Add new calls to this procedure during traversal
18589 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18590 another unit if expansion is disabled.
18592 2006-10-31 Robert Dewar <dewar@adacore.com>
18594 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18595 Current_Value in the conditional case, to evaluate additional
18596 comparisons at compile time.
18598 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18599 Hristian Kirtchev <kirtchev@adacore.com>
18600 Javier Miranda <miranda@adacore.com>
18602 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18603 subprogram type to provide better diagnostics in case of ambiguity.
18604 (Covers): Handle coverage of formal and actual anonymous access types in
18605 the context of generic instantiation.
18606 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18607 abstract interface types; this is required to handle concurrent types
18608 with discriminants and abstract interface types.
18609 (Covers): Include type coverage of both regular incomplete subtypes and
18610 incomplete subtypes of incomplete type visibles through a limited with
18613 2006-10-31 Robert Dewar <dewar@adacore.com>
18614 Hristian Kirtchev <kirtchev@adacore.com>
18615 Ed Schonberg <schonberg@adacore.com>
18617 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18618 messages for entities in packages which are not used.
18619 (Collect_Synchronized_Interfaces): New procedure.
18620 (Overrides_Synchronized_Primitive): New function.
18621 (Denotes_Discriminant): Extend predicate to apply to task types.
18622 Add missing continuation marks in error msgs
18623 (Unqualify): New function for removing zero or more levels of
18624 qualification from an expression. There are numerous places where this
18625 ought to be used, but we currently only deal properly with zero or one
18627 (In_Instance); The analysis of the actuals in the instantiation of a
18628 child unit is not within an instantiation, even though the parent
18629 instance is on the scope stack.
18630 (Safe_To_Capture_Value): Exclude the case of variables that are
18632 (Check_Obsolescent): Removed
18633 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18634 is an aliased view, even when rewritten as a reference to the target
18635 object in an assignment.
18636 (Get_Subprogram_Entity): New function
18637 (Known_To_Be_Assigned): New function
18638 (Type_Access_Level): Compute properly the access level of a return
18639 subtype that is an anonymous access type.
18640 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18641 (Is_Transfer): The new extended_return_statement causes a transfer of
18643 (Has_Preelaborable_Initialization): New function
18644 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18645 has a null exclusion depending on its Nkind.
18646 Change Is_Lvalue to May_Be_Lvalue
18647 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18648 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18649 (Safe_To_Capture_Value): Extend functionality so it can be used for
18650 the current value condition case.
18651 (Has_Compatible_Alignment): New function
18652 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18653 objects to handle the Ada 2005 case, where aliasedness no longer implies
18654 that the object is constrained. In particular, for dereferenced names,
18655 the designated object must be assumed to be unconstrained.
18656 (Kill_Current_Values): Properly deal with the case where we encounter
18657 a loop in the scope chain.
18658 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18660 (Compile_Time_Constraint_Error): Improve error message in error case
18662 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18663 associated with entities of abstract interface primitives.
18664 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18666 2006-10-31 Robert Dewar <dewar@adacore.com>
18668 * s-osinte-tru64.adb:
18669 Mark Asm statements Volatile to prevent warnings (seems a
18670 reasonable change anyway)
18673 * s-mastop-irix.adb: Add Volatile to Asm statements
18674 Suppresses warning, and seems appropriate in any case
18676 * s-osinte-vms.adb: Add Volatile to Asm statement
18678 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18680 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18682 Add call to Check_Code_Statement
18684 2006-10-31 Robert Dewar <dewar@adacore.com>
18685 Ed Schonberg <schonberg@adacore.com>
18686 Bob Duff <duff@adacore.com>
18688 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18689 Synchronized_Present): Add Formal_Derived_Type_Definition and
18690 Private_Extension_Declaration to the list of assertions.
18691 (Is_Entry_Barrier_Function): New flag
18692 (Has_Self_Reference): New flag on aggregates, to indicate that they
18693 contain a reference to the enclosing type, inserted through a default
18695 (Next_Rep_Item): Move from Node4 to Node5.
18696 (Entity): Add this field for N_Attribute_Definition_Clause.
18697 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18698 (N_Return_Object_Declaration): Remove this node kind. We now use
18699 N_Object_Declaration instead.
18700 (Actual_Designated_Subtype): Move to a different place to make room in
18701 N_Extended_Return_Statement.
18702 (Procedure_To_Call): Move to a different place to make room in
18703 N_Extended_Return_Statement.
18704 (Return_Type): Removed this field to make room in return statements
18706 (Return_Statement_Entity): New field in return statements, in part to
18707 replace Return_Type, and in part to support the fact that return
18708 statements are now pushed on the scope stack during semantic analysis.
18709 (Return_Object_Declarations): New field to support extended return
18711 (N_Extended_Return_Statement): New node for extended_return_statement
18713 (N_Return_Object_Declaration): New node for part of
18714 extended_return_statement nonterminal. Needed because all the necessary
18715 fields won't fit in N_Extended_Return_Statement.
18716 Generic_associations now carry the Box_Present flag, to indicate a
18717 default for an actual in a partially parametrized formal package.
18719 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18720 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18721 and for the new predefined dispatching policies: EDF_Across_Priorities,
18722 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18723 Introduce new name Stub_Type for implementation defined attribute.
18724 Add pragma Preelaborable_Initialization
18725 Add entry for Priority attribute.
18726 Add Pragma_Wide_Character_Encoding
18727 (Get_Convention_Name): Given a convention id, this function returns the
18728 corresponding name id from the names table.
18730 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18731 Robert Dewar <dewar@adacore.com>
18732 Bob Duff <duff@adacore.com>
18734 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18735 print null exclusion twice in the case of an access definition,
18736 Implement new -gnatL switch
18737 Remove N_Return_Object_Declaration. We now use
18738 N_Object_Declaration instead. Implement the case for
18739 N_Extended_Return_Statement. Alphabetize the cases.
18740 Add cases for new nodes N_Extended_Return_Statement and
18741 N_Return_Object_Declaration. The code is not yet written.
18742 Update the output for N_Formal_Object_Declaration
18743 and N_Object_Renaming_Declaration.
18744 (Write_Itype): Account for the case of a modular integer subtype whose
18745 base type is private.
18747 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18749 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18750 Remove elaboration code, now done in the binder.
18752 * s-rident.ads: Make this unit Preelaborate.
18753 (No_Restrictions): New constant used to clean up code and follow
18754 preelaborate constraints.
18757 Add System.Restrictions dependence, referenced directly from the
18758 binder generated file.
18760 2006-10-31 Gary Dismukes <dismukes@adacore.com>
18762 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18763 True when AAMP extended floating-point is in use (48-bit). Change type
18764 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18765 the two byte array types on AFloat. Change type of IV_Ilf overlay
18766 variable from Byte8 to ByteLF. Add appropriate initializations of
18767 floating-point overlays for AAMP cases.
18769 2006-10-31 Javier Miranda <miranda@adacore.com>
18771 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18772 (Get_Ceiling): New subprogram that returns
18773 the ceiling priority of the protected object.
18774 (Set_Ceiling): New subprogram that sets the new ceiling priority of
18775 the protected object.
18777 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18779 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18781 2006-10-31 Jose Ruiz <ruiz@adacore.com>
18783 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18784 requeuing to the same protected object to give higher priority tasks
18785 the opportunity to execute.
18787 2006-10-31 Robert Dewar <dewar@adacore.com>
18789 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18790 add more precise check for the character sequence that follows '[' to
18791 avoid possible confusion in case if '[' is the last character of a
18793 (Scan_Wide): Always allow brackets encoding
18795 2006-10-31 Olivier Hainque <hainque@adacore.com>
18797 * s-stchop.ads: make this unit preelaborate. This is desirable in
18798 general and made mandatory by the use of this unit by s-taprop which
18799 is itself preelaborate.
18801 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18802 Td_Events component.
18804 2006-10-31 Vincent Celier <celier@adacore.com>
18806 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18809 2006-10-31 Vincent Celier <celier@adacore.com>
18811 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18813 2006-10-31 Vincent Celier <celier@adacore.com>
18815 * makegpr.adb (Check_Compilation_Needed): Take into account path names
18817 (Check_Compilation_Needed): When checking a C or C++ source, do not
18818 resolve symbolic links.
18819 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18820 When not in verbose mode and Ellipse is True, display "..." for the
18821 first argument with Display set to False.
18822 (Build_Global_Archive): Always set Display True for the first object
18823 file. Call Display_Command with Ellipse set to True.
18825 2006-10-31 Matt Heaney <heaney@adacore.com>
18827 * a-crbtgo.ads: Commented each subprogram
18829 * a-crbtgo.adb: Added reference to book from which algorithms were
18832 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18833 indicate which child.
18834 (Generic_Conditional_Insert): changed parameter name from "Success" to
18836 (Generic_Unconditional_Insert_With_Hint): improved algorithm
18838 * a-coorse.adb (Replace_Element): changed parameter name in call to
18839 conditional insert operation.
18841 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18843 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18846 * a-ciorse.adb (Replace_Element): changed parameter name in call to
18847 conditional insert operation.
18849 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18852 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18853 instead of mode inout.
18855 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18857 (Generic_Read): preserve existing buckets array if possible
18858 (Generic_Write): don't send buckets array length anymore
18860 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18861 instead of mode inout.
18863 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18864 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18866 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18867 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18868 (Replace_Element): local operation is now an instantiation
18870 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18871 check current length.
18872 (Generic_Replace_Element): new operation
18874 2006-10-31 Doug Rupp <rupp@adacore.com>
18876 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18877 Call TBK$SYMBOLIZE without omitting parameters.
18879 2006-10-31 Vincent Celier <celier@adacore.com>
18881 * symbols-processing-vms-ia64.adb,
18882 symbols-processing-vms-alpha.adb (Process): Do not include symbols
18883 that come from generic instantiations in bodies.
18885 2006-10-31 Pat Rogers <rogers@adacore.com>
18887 * a-rttiev.ads, a-rttiev.adb:
18888 This is a significant redesign primarily for the sake of automatic
18889 timer task termination but also to fix a design flaw.
18890 Therefore we are now using an RTS lock, instead of a protected
18891 object, to provide mutual exclusion to the queue of pending events
18892 and the type Timing_Event is no longer a protected type.
18894 2006-10-31 Robert Dewar <dewar@adacore.com>
18895 Cyrille Comar <comar@adacore.com>
18896 Ben Brosgol <brosgol@adacore.com>
18898 * debug.adb: Update flags documentation
18900 * gnat_ugn.texi: Add documentation for new -gnatwq switch
18901 Clean up documentation for several other warning switches
18902 Clarify how task stack size can be specified with various
18903 versions of Windows.
18904 Add note that -gnatVo includes ranges including loops
18905 Add documentation for -gnatL switch
18906 Add note on elaboration warning for initializing variables
18907 Add documentation for new -gnatwt warning switch
18908 Document new form of pragma Warnings (On|Off, string)
18909 Add comment on use of pragma Warnings to control warnings
18910 Add documentation for -gnatjnn switch
18911 Modify section on interfacing with C for VMS 64-bit.
18912 Add doc for -gnatVe/E
18913 Add documentation of new warning flags -gnatww/-gnatwW
18914 Add warnings about address clause overlays to list of warnings
18915 (Exception Handling Control): Document that the option --RTS must be
18916 used consistently for gcc and gnatbind.
18917 Clarify that inlining is not always possible
18918 Update documentation on pragma Unchecked_Union.
18921 Add documentation for new extended version of pragma Obsolescent
18922 Add documentation for implementation defined attribute 'Stub_Type.
18923 Add note on use of Volatile in asm statements
18924 Add documentation on use of pragma Unreferenced in context clause
18925 Document new form of pragma Warnings (On|Off, pattern)
18926 Document pragma Wide_Character_Encoding
18927 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18928 enforced if code generation is active.
18929 Add section on pragma Suppress to document GNAT specific check
18931 Clarify difference between No_Dispatching_Calls & No_Dispatch.
18932 Add documentation for pragma Restrictions (No_Elaboration_Code)
18935 Add comments on layout of subprogram local variables in the
18936 presence of nested subprograms.
18938 * ug_words: Resync.
18940 * elists.ads: Minor reformatting
18941 Node returns Node_Or_Entity_Id (doc change only)
18943 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18945 * g-arrspl.ads (Create): Update comments.
18947 * sem.ads: Add details on the handling of the scope stack.
18949 * usage.adb: Update documentation.
18951 * validsw.ads, validsw.adb:
18952 Add definition of Validity_Check_Components and implement -gnatVe/E
18954 * vms_data.ads: Add missing VMS qualifiers.
18956 * s-addope.ads: Add documentation on overflow and divide by zero
18958 2006-10-31 Robert Dewar <dewar@adacore.com>
18959 Thomas Quinot <quinot@adacore.com>
18960 Arnaud Charlet <charlet@adacore.com>
18962 * fmap.adb: Put routines in alpha order
18964 * g-boumai.ads: Remove redundant 'in' keywords
18966 * g-cgi.adb: Minor reformatting
18968 * g-cgi.ads: Remove redundant 'in' keywords
18970 * get_targ.adb: Put routines in alpha order
18972 * prj-attr.ads: Minor reformatting
18974 * s-atacco.ads: Minor reformatting
18976 * scn.adb: Put routines in alpha order
18978 * sinput-l.adb: Minor comment fix
18980 * sinput-p.adb: Minor comment fix
18982 * s-maccod.ads: Minor reformatting
18984 * s-memory.adb: Minor reformatting
18986 * s-htable.adb: Fix typo in comment.
18988 * s-secsta.adb: Minor comment update.
18990 * s-soflin.adb: Minor reformatting
18993 Add comment about odd qualification in Storage_Offset declaration
18996 Remove unnecessary 'in' keywords for formal parameters.
18998 * treeprs.adt: Minor reformatting
19000 * urealp.adb: Put routines in alpha order
19002 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19005 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19007 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19009 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19010 workaround as on other platforms.
19012 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19013 * g-expect-vms.adb: Remove redundant 'in' keywords
19015 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19016 clear error message if the list-of-files file cannot be opened.
19018 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19019 equality operator is always visible.
19021 * lang.opt: Woverlength-strings: New option.
19024 Update copyright, since nmake.ads and nmake.adb have changed.
19026 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19027 (Binder_Output_Time_Stamps_Set): removed.
19028 (Old_Binder_Output_Time_Stamp): idem.
19029 (New_Binder_Output_Time_Stamp): idem.
19030 (Recording_Time_From_Last_Bind): idem.
19031 (Recording_Time_From_Last_Bind): Make constant.
19033 * output.ads, output.adb (Write_Str): Allow LF characters
19034 (Write_Spaces): New procedure
19036 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19038 * inline.adb: Minor reformatting
19040 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19042 * s-mastop-vms.adb: Remove redundant 'in' keywords
19044 * s-osprim-vms.adb: Remove redundant 'in' keywords
19046 * s-trafor-default.adb: Remove redundant 'in' keywords
19048 * 9drpc.adb: Remove redundant 'in' keywords
19050 * s-osinte-mingw.ads: Minor reformatting
19052 * s-inmaop-posix.adb: Minor reformatting
19054 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19056 * a-exexda.adb: Minor code reorganization
19058 * a-filico.adb: Minor reformatting
19060 * a-finali.adb: Minor reformatting
19062 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19064 * a-numeri.ads: Minor reformatting
19066 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19068 * exp_pakd.ads: Fix obsolete comment
19070 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19071 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19072 Probably not a bug, but certainly neater and more efficient.
19074 * a-tienio.adb: Minor reformatting
19076 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19077 Avoid assuming low bound of string is 1.
19079 * gnatbind.adb: Change Bindusg to package and rename procedure as
19080 Display, which now ensures that it only outputs usage information once.
19081 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19083 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19086 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19088 (Match): Add pragma Assert to ensure that Matches'First is zero
19090 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19092 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19093 documented preconditions (also kills warnings about bad indexes).
19095 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19097 (Build_Import_Library): Ditto;
19099 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19101 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19103 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19104 lower bound of choice table is 1.
19106 * sem_case.ads (Analyze_Choices): Document that lower bound of
19109 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19112 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19113 and add appropriate Assert pragma to suppress warnings.
19115 * atree.h, atree.ads, atree.adb
19116 Change Elist24 to Elist25
19117 Add definitions of Field28 and Node28
19118 (Traverse_Field): Use new syntactic parent table in sinfo.
19120 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19122 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19124 * exp_tss.adb: Put routines in alpha order
19126 * fe.h: Remove redundant declarations.
19128 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19130 * utils.c (builtin_function): Rename to gnat_builtin_function.
19131 Move common code to add_builtin_function.
19132 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19133 gnat_builtin_function.
19134 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19135 Change the signature.
19137 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19139 * Makefile.in: Add TEXI2PDF definition.
19140 * Make-lang.in: Add "ada.pdf" target.
19142 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19144 * decl.c, utils.c: Fix comment typos.
19145 * utils.c: Fix a typo.
19147 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19149 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19150 on "pure" Ada subprograms if SJLJ exceptions are used.
19151 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19152 on the declaration node of JMPBUF_SAVE.
19153 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19154 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19155 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19157 2006-08-20 Laurent Guerby <laurent@guerby.net>
19160 g-socket.adb (Bind_Socket): Call Set_Address.
19162 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19165 * decl.c (same_discriminant_p): New static function.
19166 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19167 subtype and we have discriminants, fix up the COMPONENT_REFs
19168 for the discriminants to make them reference the corresponding
19169 fields of the parent subtype after it has been built.
19171 2006-09-15 Roger Sayle <roger@eyesopen.com>
19174 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19175 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19177 2006-09-13 Olivier Hainque <hainque@adacore.com>
19180 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19181 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19182 let the common gimplifier code make and propagate a temporary copy.
19183 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19184 out/in-out actuals and defer setting the addressable/readonly bits
19187 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19190 * decl.c (components_to_record): Defer emitting debug info for the
19191 record type associated with the variant until after we are sure to
19194 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19197 * gigi.h (gnat_internal_attribute_table): Declare.
19198 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19199 * utils.c (gnat_internal_attribute_table): New global variable.
19200 (builtin_function): Always call decl_attributes on the builtin.
19201 (handle_const_attribute): New static function.
19202 (handle_nothrow_attribute): Likewise.
19204 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19206 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19208 2006-06-23 Olivier Hainque <hainque@adacore.com>
19210 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19211 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19213 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19214 Eric Botcazou <ebotcazou@adacore.com>
19217 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19218 check-gnat into check-acats.
19220 2006-06-17 Karl Berry <karl@gnu.org>
19222 * gnat-style.texi (@dircategory): Use "Software development"
19223 instead of "Programming", following the Free Software Directory.
19225 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19228 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19230 2006-06-06 Laurent Guerby <laurent@guerby.net>
19233 mlib-utl.adb: Use Program_Name.
19235 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19237 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19238 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19239 trans.c, utils.c: Fix comment typos. Follow spelling
19241 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19244 2006-05-19 Nicolas Setton <setton@adacore.com>
19246 * misc.c (gnat_dwarf_name): New function.
19247 (LANG_HOOKS_DWARF_NAME): Define to it.
19249 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19251 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19252 (ada/misc.o): Likewise.
19253 (ada/utils.o): Likewise.
19255 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19257 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19258 * s-osinte-kfreebsd-gnu.ads: New file.
19260 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19262 * Make-lang.in: Rename docdir to gcc_docdir.
19264 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19266 * gigi.h (get_ada_base_type): Delete.
19267 * utils2.c (get_ada_base_type): Likewise.
19268 * trans.c (convert_with_check): Operate in the real base type.
19270 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19272 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19274 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19276 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19277 whether to make the decl common.
19279 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19281 * Make-lang.in (Ada): Remove.
19282 (.PHONY): Remove Ada
19284 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19286 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19287 aggregate, check the interpretations of the other operand to find one
19288 that may be a boolean array.
19290 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19291 the prefix is a private extension.
19293 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19296 * utils2.c (find_common_type): If both input types are BLKmode and
19297 have the same constant size, keep using the first one.
19299 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19301 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19303 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19305 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19307 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19308 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19309 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19310 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19311 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19312 aborted while owning a lock.
19314 2006-02-17 Javier Miranda <miranda@adacore.com>
19315 Robert Dewar <dewar@adacore.com>
19317 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19318 through an access to class-wide interface we force the displacement of
19319 the pointer to the allocated object to reference the corresponding
19320 secondary dispatch table.
19321 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19322 if Long_Shifts are supported on the target, even if 64 bit divides
19323 are not supported (configurable run time mode).
19324 (Expand_N_Type_Conversion): Do validity check if validity checks on
19325 operands are enabled.
19326 (Expand_N_Qualified_Expression): Do validity check if validity checks
19327 on operands are enabled.
19329 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19331 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19332 must be materialized when the renamed expression is an explicit
19335 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19337 * freeze.adb (Statically_Discriminated_Components): Return false if
19338 the bounds of the type of the discriminant are not static expressions.
19340 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19341 the bounds of the discriminant type are not static.
19343 2006-02-17 Robert Dewar <dewar@adacore.com>
19345 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19346 then we close To if it is valid.
19348 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19350 * init.c (facility_resignal_table): new array
19351 (__gnat_default_resignal_p): enhance default predicate to resignal if
19352 VMS condition has one of the predefined facility codes.
19354 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19356 * Makefile.in: Use VMS64 specialized versions of several units in
19357 Interfaces.C hierarchy to be compatible with HP C default size choices.
19358 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19360 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19362 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19363 instantiation, the corresponding entity is the related_instance of the
19364 wrapper package created for the instance.
19366 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19368 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19369 the current instance is nested within another instance in a child unit.
19371 2006-02-17 Javier Miranda <miranda@adacore.com>
19372 Ed Schonberg <schonberg@adacore.com>
19374 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19375 type we cannot inherit the primitive operations; we inherit the
19376 Corresponding_Record_Type (which has the list of primitive operations).
19377 (Check_Anonymous_Access_Types): When creating anonymous access types for
19378 access components, use Rewrite in order to preserve the tree structure,
19380 (Analyze_Object_Declaration): For limited types with access
19381 discriminants with defaults initialized by an aggregate, obtain
19382 subtype from aggregate as for other mutable types.
19383 (Derived_Type_Declaration): If the derived type is a limited interface,
19384 set the corresponding flag (Is_Limited_Record is not sufficient).
19386 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19388 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19389 to inline a function that returns an unconstrained type, the return
19390 expression must be the first variable declared in the body of the
19393 2006-02-17 Javier Miranda <miranda@adacore.com>
19395 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19396 abstract interface type, the static analysis is not enough to know if
19397 the interface is implemented or not by the source tagged type. Hence
19398 we must pass the work to the expander to generate the required code to
19399 evaluate the conversion at run-time.
19400 (Resolve_Equality_Op): Do not apply previous
19401 transformation if expansion is disasbled, to prevent anomalies when
19402 locating global references in a generic unit.
19404 2006-02-17 Vincent Celier <celier@adacore.com>
19406 * snames.ads, snames.adb: New standard names for new project attributes:
19407 archive_builder, archive_indexer, compiler_pic_option,
19408 config_body_file_name, config_body_file_name_pattern,
19409 config_file_switches, config_file_unique, config_spec_file_name,
19410 config_spec_file_name_pattern, default_builder_switches,
19411 default_global_compiler_switches, default_language,
19412 dependency_file_kind, global_compiler_switches, include_path,
19413 include_path_file, language_kind, linker_executable_option,
19414 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19415 roots, runtime_project.
19417 2006-02-17 Matthew Heaney <heaney@adacore.com>
19419 * a-convec.ads, a-convec.adb:
19420 (operator "&"): handle potential overflow for large index types
19421 (Insert): removed Contraint_Error when using large index types
19422 (Insert_Space): removed Constraint_Error for large index types
19423 (Length): moved constraint check from Length to Insert
19425 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19426 as not null access.
19427 Explicit raise statements now include an exception message.
19428 (operator "&"): handle potential overflow for large index types
19429 (Insert): removed Contraint_Error when using large index types
19430 (Insert_Space): removed Constraint_Error for large index types
19431 (Length): moved constraint check from Length to Insert
19433 2006-02-17 Robert Dewar <dewar@adacore.com>
19435 * s-wchcnv.adb: Document handling of [ on output (we do not change
19436 this to ["5B"] and the new comments say why not.
19439 Add note for -gnatVo that this now includes the cases of type
19440 conversions and qualified expressions.
19441 Add comments on handling of brackets encoding for Text_IO
19443 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19444 Thomas Quinot <quinot@adacore.com>
19445 Robert Dewar <dewar@adacore.com>
19446 Javier Miranda <miranda@adacore.com>
19448 * expander.adb: Fix typo in comment
19450 * exp_pakd.adb: Fix typo
19451 Minor comment reformatting.
19453 * g-dyntab.adb: Minor reformatting
19455 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19456 aliased subprograms to look for the abstract interface subprogram.
19458 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19460 * env.c (__gnat_setenv): Use size_t.
19461 (__gnat_unsetenv): Likewise.
19462 (__gnat_clearenv): Likewise.
19464 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19466 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19468 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19470 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19471 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19472 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19473 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19474 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19475 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19476 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19477 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19478 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19481 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19483 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19484 protection against race conditions is not needed.
19485 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19487 (Set_Specific_Handler): Add mutual exclusive access to the specific
19489 (Specific_Handler): Add mutual exclusive access for retrieving the
19492 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19495 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19496 Fall_Back_Handler and Specific_Handler.
19498 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19499 termination handlers.
19500 Set two different owerflow depending on the maximal stack size.
19502 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19503 protection against race conditions is not needed when executing the
19504 task termination handler.
19506 2006-02-13 Robert Dewar <dewar@adacore.com>
19508 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19509 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19510 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19511 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19512 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19513 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19514 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19515 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19516 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19517 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19518 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19519 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19520 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19521 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19522 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19523 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19524 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19525 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19526 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19527 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19528 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19529 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19530 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19531 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19532 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19533 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19534 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19535 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19536 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19537 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19538 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19539 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19540 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19541 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19544 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19546 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19547 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19548 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19549 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19550 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19551 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19552 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19553 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19554 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19556 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19558 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19559 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19560 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19561 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19562 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19563 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19564 replaced by anonymous access type.
19565 (pthread_sigmask): Now take an access sigset_t
19567 * s-osinte-hpux.ads: Ditto.
19568 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19569 properly 32 and 64 bit ABIs.
19571 2006-02-13 Pascal Obry <obry@adacore.com>
19573 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19574 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19575 s-taprop-linux.adb, s-taprop-solaris.adb,
19576 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19577 adjustement is already done when calling this routine.
19579 2006-02-13 Pascal Obry <obry@adacore.com>
19581 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19582 table to take advantage of the 16 priority levels available on Windows
19583 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19584 supported by this new mapping.
19586 2006-02-13 Nicolas Setton <setton@adacore.com>
19588 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19589 (get_encoding): New subprogram. Extracts the encodings from an encoded
19592 2006-02-13 Pascal Obry <obry@adacore.com>
19593 Nicolas Roche <roche@adacore.com>
19594 Arnaud Charlet <charlet@adacore.com>
19596 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19598 (__gnat_try_lock): Add unicode support by using a specific section on
19600 (__gnat_get_current_dir): Idem.
19601 (__gnat_open_read): Idem.
19602 (__gnat_open_rw): Idem.
19603 (__gnat_open_create): Idem.
19604 (__gnat_create_output_file): Idem.
19605 (__gnat_open_append): Idem.
19606 (__gnat_open_new): Idem.
19607 (__gnat_file_time_name): Idem.
19608 (__gnat_set_file_time_name): Idem.
19609 (__gnat_stat): Idem.
19610 (win32_no_block_spawn): Idem.
19611 (__gnat_locate_exec_on_path): Idem.
19612 (__gnat_opendir): New routine.
19613 (__gnat_closedir): Idem.
19614 (__gnat_readdir): Add new parameter length (pointer to int). Update
19615 implementation to use it and add specific Win32 code for Unicode
19617 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19618 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19619 (convert_addresses): Do not define this dummy routine on VMS.
19621 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19622 runtime Unicode support will be activated.
19623 (S2WS): String to Wide-String conversion. This version just copy a
19624 string in non Unicode version.
19625 (WS2S): Wide-String to String conversion. This version just copy a
19626 string in non Unicode version.
19628 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19629 (Open): Now import __gnat_opendir from adaint.c.
19630 (Read): Change the implementation to support unicode characters. It is
19631 not possible to use strlen() on Windows as this version supports only
19632 standard ASCII characters. So the length of the directory entry is now
19633 returned from the imported __gnat_readdir routine.
19634 Update copyright notice.
19636 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19637 (opendir): Moved to adaint.c.
19639 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19640 (Get_Directory): Fix wrong indexing.
19641 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19642 __gnat_getenv from env.c
19643 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19646 * env.h, env.c: New file.
19648 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19649 adaint.c by __gnat_getenv from env.c
19651 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19652 adaint.c by __gnat_getenv from env.c
19654 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19656 Update dependencies.
19658 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19659 Olivier Hainque <hainque@adacore.com>
19660 Eric Botcazou <ebotcazou@adacore.com>
19662 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19664 * gigi.h (value_factor_p): Add prototype and description, now public.
19666 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19667 promotion for field with rep clause if the associated size was proven
19669 Expand comments describing attempts to use a packable type.
19670 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19671 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19672 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19673 necessary since these are not different types and pointers may
19674 actually designate any subtype in this hierarchy.
19675 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19676 discriminants but put them into record only if not Unchecked_Union;
19677 pass flag to components_to_record showing Unchecked_Union.
19678 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19679 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19680 (components_to_record): New argument UNCHECKED_UNION.
19681 Remove special case code for Unchecked_Union and instead use main code
19682 with small changes.
19685 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19686 variable with the expression being built, only its inner field.
19688 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19689 emit_sequence_entry_statements.
19690 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19691 (establish_gnat_vms_condition_handler): Move before
19692 Subprogram_Body_to_gnu.
19693 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19694 for a subprogram if it has a foreign convention or is exported.
19695 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19696 substituted for a CONST_DECL.
19697 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19698 Etype to assoc_to_constructor.
19699 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19700 discriminants of Unchecked_Union.
19701 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19702 don't need cluttering preprocessor directives.
19703 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19704 condition handler as current in the compiled function.
19705 (body_with_handlers_p): New function. Tell whether a given sequence of
19706 statements node is attached to a package or subprogram body and involves
19707 exception handlers possibly nested within inner block statements.
19708 (emit_sequence_entry_statements): New function, to emit special
19709 statements on entry of sequences when necessary. Establish GNAT
19710 condition handler in the proper cases for VMS.
19711 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19712 emit_sequence_entry_statements.
19714 * utils2.c (find_common_type): If both input types are BLKmode and
19715 have a constant size, use the smaller one.
19716 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19719 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19721 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19722 (convert, case UNION_TYPE): Remove special treatment for unchecked
19726 (update_pointer_to): Update variants of pointer types to unconstrained
19727 arrays by attaching the list of fields of the main variant.
19729 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19730 Robert Dewar <dewar@adacore.com>
19732 * a-exexpr.adb, a-exexpr-gcc.adb
19733 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19734 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19735 Remove code unused for exception propagation for the compiler itself
19736 from a-except.adb and update to still share separate packages.
19738 * a-except.ads, a-except.adb: Ditto.
19739 Add comments that this version is now used only by the compiler and
19740 other basic tools. The full version that includes the Ada 2005 stuff
19741 is in separate files a-except-2005.ads/adb. The reason is that we do
19742 not want to cause bootstrap problems with compilers not recognizing
19744 Add exception reason code PE_Implicit_Return
19745 Add new exception reason code (Null Exception_Id)
19747 * a-except-2005.adb, a-except-2005.ads: New files.
19749 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19751 * s-wchcon.adb: New file.
19753 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19754 (traceback.o deps): Likewise.
19755 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19756 Activate build of GMEM instrumentation library on VMS targets.
19757 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19758 Use a-except-2005.ads/adb for all run-time library builds unless
19759 specified otherwise.
19760 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19761 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19762 Use s-parame.adb on all native platforms.
19763 Use s-parame-vxworks.adb on all vxworks platforms.
19764 Add env.c env.h in LIBGNAT_SRCS
19765 Add env.o in LIBGNAT_OBJS
19766 (GNATMAKE_OBJS): Remove ctrl_c.o object.
19767 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19768 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19769 supports VxWorks 6 RTPs.
19770 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19771 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19773 * types.h, types.ads (Terminate_Program): New exception
19774 Add comment on modifying multiple versions of a-except.adb when the
19775 table of exception reasons is modified.
19776 Add exception reason code PE_Implicit_Return
19777 Add new exception reason code (Null Exception_Id)
19779 * clean.adb (Initialize): Get the target parameters before checking
19780 if target is OpenVMS. Move the OpenVMS specific code here from package
19781 body elaboration code.
19783 2006-02-13 Thomas Quinot <quinot@adacore.com>
19784 Vincent Celier <celier@adacore.com>
19785 Robert Dewar <dewar@adacore.com>
19787 * ali-util.adb (Get_File_Checksum): Update to account for change in
19788 profile of Initialize_Scanner.
19790 * gprep.adb (Gnatprep): Update to account for change in profile of
19791 Initialize_Scanner.
19792 (Process_One_File): Same.
19794 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19795 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19796 that behaviour using the new Unit information recorded in the source
19797 files table, rather than going through all units every time.
19798 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19799 (Get_Source_Unit): Same.
19801 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19802 change in profile of Initialize_Scanner.
19803 (Prepare_To_Preprocess): Same.
19805 * lib.ads: Fix typo in comment (templace -> template).
19807 * prj-part.adb (Parse_Single_Project): Update to account for change in
19808 profile of Initialize_Scanner.
19810 * scn.adb (Initialize_Scanner): Account for change in profile of
19811 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19812 Also record the association of the given Source_File_Index to the
19813 corresponding Unit_Number_Type.
19815 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19817 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19818 Remove Unit formal for generic scanner: this formal
19819 is only relevant to Scn (the scanner instance used to parse Ada source
19820 files), not to other instances. Update comment accordingly.
19821 (Scan): Use new function Snames.Is_Keyword_Name.
19823 * sinfo-cn.adb: Fix typo in comment.
19825 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19828 * sinput.ads (Source_File_Record): New component Unit, used to capture
19829 the unit identifier (if any) associated to a source file.
19831 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19832 Unit in Source_File_Record.
19834 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19835 in profile of Initialize_Scanner.
19837 * scans.adb (Initialize_Ada_Keywords): New procedure
19839 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19840 Ada keywords in the Namet table, without the need to call
19841 Initialize_Scanner.
19843 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19844 (Is_Keyword_Name): New function
19846 * snames.ads: Add subtype Configuration_Pragma_Names
19847 Add pragma Ada_2005 (synonym for Ada_05)
19848 (Is_Keyword_Name): New function
19850 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19852 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19854 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19857 * a-stwima.adb (To_Set): Add extra check when N = 0.
19859 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19861 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19863 * s-parame-mingw.adb, s-parame-linux.adb,
19864 s-parame-solaris.adb: Removed, replaced by s-parame.adb
19866 * s-parame-vxworks.ads: Fix typo.
19868 * s-parame-vxworks.adb: New file.
19870 * s-parame.adb: Version now used by all native platforms.
19871 (Default_Stack_Size): Use 2 megs for default stack size and use
19872 __gl_default_stack_size when available.
19873 (Minimum_Stack_Size): Use 12K.
19875 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19876 (Create_Task): Refine implementation taking advantage of the XP stack
19877 size support. On XP, we now create the thread using the flag
19878 STACK_SIZE_PARAM_IS_A_RESERVATION.
19880 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19882 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19883 XP and 0 on older Windows versions.
19885 * interfac-vms.ads: Removed, no longer used.
19887 2006-02-13 Matthew Heaney <heaney@adacore.com>
19889 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19890 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19891 a-cohase.adb: All explicit raise statements now include an exception
19894 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19895 (Update_Element_Preserving_Key): renamed op to just Update_Element.
19896 Explicit raise statements now include an exception message
19898 * a-cihase.ads, a-cohase.ads: Removed comment.
19900 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19901 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19902 a-szbzha.adb, a-szfzha.ads: New files.
19904 2006-02-13 Matthew Heaney <heaney@adacore.com>
19906 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19909 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19911 * lang.opt: Wvariadic-macros: New option.
19912 Wold-style-definition: Likewise.
19913 Wmissing-format-attribute: Likewise.
19915 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19916 -Wold-style-definition and -Wmissing-format-attribute.
19918 2006-02-13 Robert Dewar <dewar@adacore.com>
19920 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19922 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19924 2006-02-13 Nicolas Roche <roche@adacore.com>
19926 * a-envvar.adb, a-envvar.ads: New files.
19928 2006-02-13 Douglas Rupp <rupp@adacore.com>
19930 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19932 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19934 2006-02-13 Pat Rogers <rogers@adacore.com>
19936 * a-rttiev.adb, a-rttiev.ads: New files.
19938 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19940 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19941 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
19943 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19945 2006-02-13 Robert Dewar <dewar@adacore.com>
19947 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
19948 sem_case.adb: Minor code reorganization (not Present should be No)
19950 2006-02-13 Geert Bosch <bosch@adacore.com>
19951 Gary Dismukes <dismukes@adacore.com>
19953 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19954 0, since the lower bound of the actual string may be greater than one.
19957 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19958 layout is requested.
19960 2006-02-13 Vincent Celier <celier@adacore.com>
19962 * back_end.adb (Scan_Compiler_Arguments): Check if
19963 Search_Directory_Present is True and, if it is, add the argument in
19964 the source search directory path.
19966 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19967 Search_Directory_Present to True.
19969 2006-02-13 Joel Brobecker <brobecke@adacore.com>
19971 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19972 volatile, to tell the compiler to preserve this variable at any level
19974 (Gen_Versions_Ada): Temporarily work around codegen bug.
19976 2006-02-13 Vincent Celier <celier@adacore.com>
19978 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19979 gcc to link with option -shared-libgcc.
19980 (Gnatlink): Remove duplicate switches -shared-libgcc
19982 2006-02-13 Robert Dewar <dewar@adacore.com>
19984 * gnatvsn.ads (Current_Year): New constant, used to easily update
19985 copyright on all GNAT tools.
19987 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19990 2006-02-13 Robert Dewar <dewar@adacore.com>
19992 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19993 after hyphen (small aesthetic change useful for a range of numbers
19995 Suppress range checks for a couple of assignments which otherwise
19996 cause validity checks with validity checking turned on.
19998 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19999 Improvement in error message for object.
20000 (Rep_Item_Too_Late): Remove '!' in warning message.
20002 2006-02-13 Robert Dewar <dewar@adacore.com>
20003 Eric Botcazou <ebotcazou@adacore.com>
20005 * err_vars.ads: Suppress range checks for a couple of assignments
20006 which otherwise cause validity checks with validity checking turned on.
20009 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20010 Make message unconditional if it is a warning.
20011 (Error_Msg_NEL): Always output warning messages.
20012 Suppress range checks for a couple of assignments which otherwise
20013 cause validity checks with validity checking turned on.
20015 * errout.ads (Message Insertion Characters): Document that '!' is
20016 implied by '?' in error messages.
20018 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20019 (Gnat1drv): Use a goto to end of main subprogram instead of
20020 Exit_Program (E_Success) so that finalization can occur normally.
20022 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20024 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20027 2006-02-13 Vincent Celier <celier@adacore.com>
20029 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20030 Unchecked_Conversion functions.
20031 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20032 when OpenVMS returns False.
20034 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20035 a-dirval.adb (OpenVMS): New Boolean function
20037 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20038 Thomas Quinot <quinot@adacore.com>
20040 * checks.adb (Build_Discriminant_Checks): If the expression being
20041 checks is an aggregate retrieve the values of its discriminants to
20042 generate the check, rather than creating a temporary and a reference
20044 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20045 (Install_Null_Excluding_Check): Ditto
20046 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20047 not for the renamed object, so that the actual itype is attached in the
20050 2006-02-13 Robert Dewar <dewar@adacore.com>
20051 Vincent Celier <celier@adacore.com>
20053 * debug.adb: Eliminate numeric switches for binder/gnatmake
20055 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20056 switches for the compiler.
20057 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20058 (Scan_Make_Switches): When failing with an illegal switch, output an
20059 error message with the full switch.
20060 Eliminate numeric switches for binder/gnatmake
20062 * switch.ads, switch.adb (Bad_Switch): New procedure
20064 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20065 Remove 0-9 as debug flag character possibilities
20066 -d is now controlling the primary stack size when its value is a
20067 positive. Also add checks against invalid values, and support for kb,
20068 mb. Ditto for -D switch.
20070 2006-02-13 Robert Dewar <dewar@adacore.com>
20071 Serguei Rybin <rybin@adacore.com>
20073 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20074 save/restore routines.
20075 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20076 were not always properly handled previously.
20077 Since we are changing the tree format anyway, also get rid of the
20078 junk obsolete Immediate_Errors flag.
20079 (Tree_Read): Change the way of reading Tree_Version_String - now we
20080 read the version string from the tree even if its length is not the
20081 same as the length of the version string computed from Gnatvsn.
20082 (Search_Directory_Present): New Boolean flag for the compiler.
20083 Define Tree_Version_String as a dynamic string.
20084 (Default_Stack_Size): new variable, used to handle switch -d.
20087 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20088 only for main unit.
20089 Add pragma Ada_2005 (synonym for Ada_05)
20090 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20091 were not always properly handled previously.
20093 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20094 explicit Ada_95 to Ada_2005.
20096 2006-02-13 Javier Miranda <miranda@adacore.com>
20097 Robert Dewar <dewar@adacore.com>
20098 Ed Schonberg <schonberg@adacore.com>
20100 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20101 against errors in the source program: a private types for which the
20102 corresponding full type declaration is missing and pragma CPP_Virtual
20104 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20105 (Is_Known_Null): New flag
20106 (Has_Pragma_Pure): New flag
20107 (No_Return): Present in all entities, set only for procedures
20108 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20109 explicitly declared limited.
20110 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20111 entities. Only used for component marked Is_Tag. If present it stores
20112 the Offset_To_Top function used to provide this value in tagged types
20113 whose ancestor has discriminants.
20115 * exp_ch2.adb: Update status of new Is_Known_Null flag
20117 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20119 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20120 the categorization sense if Is_Pure was set by pragma Pure_Function.
20122 2006-02-13 Quentin Ochem <ochem@adacore.com>
20123 Olivier Hainque <hainque@adacore.com>
20125 * bindusg.adb: Updated documentation for -d and -D switches.
20127 * raise.h (__gnat_set_globals): added new parameter for
20128 Default_Stack_Size.
20130 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20131 (__gnat_handle_vms_condition): Adjust context before raise.
20132 (__gnat_install_handler): Restore the global vector setup for GCC
20133 versions before 3.4, as the frame based circtuitry is not available
20135 (__gnat_set_globals): added a parameter default_stack_size
20136 (__gl_default_stack_size): new variable.
20138 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20140 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20141 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20142 does not exist in the Ada RM.
20143 (Compatible_Int_Bounds): Determine whether two integer range bounds
20144 are of equal length and have the same start and end values.
20145 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20146 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20147 aggregate when it is part of an object declaration.
20148 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20149 constrains discriminants of its parent, add explicitly the discriminant
20150 constraints of the ancestor by retrieving them from the
20151 stored_constraint of the parent.
20153 2006-02-13 Robert Dewar <dewar@adacore.com>
20155 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20156 attribute Mechanism_Code is applied to renamed subprogram, modify
20157 prefix to point to base subprogram.
20158 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20160 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20161 renamed subprograms so that the front-end must replace the prefix
20164 2006-02-13 Javier Miranda <miranda@adacore.com>
20165 Gary Dismukes <dismukes@adacore.com>
20167 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20168 availability of RE_Interface_Tag.
20169 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20170 (Freeze_Record_Type): Do not generate the tables associated with
20171 timed and conditional dispatching calls through synchronized
20172 interfaces if compiling under No_Dispatching_Calls restriction.
20173 When compiling for Ada 2005, for a nonabstract
20174 type with a null extension, call Make_Controlling_Function_Wrappers
20175 and insert the wrapper function declarations and bodies (the latter
20176 being appended as freeze actions).
20177 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20178 predefined primitives associated with timed and conditional
20179 dispatching calls through synchronized interfaces if we are
20180 compiling under No_Dispatching_Calls.
20181 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20182 service is available before generating a call.
20183 (Make_Controlling_Function_Wrappers): New procedure.
20184 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20185 access-to-limited-interfaces because they can be used to reference
20186 tasks that implement such limited interface.
20187 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20188 procedure spec and body of the Offset_To_Top function that is generated
20189 when the parent of a type with discriminants has secondary dispatch
20191 (Init_Secondary_Tags): Handle the case in which the parent of the type
20192 containing secondary dispatch tables has discriminants to generate the
20193 correct arguments to call Set_Offset_To_Top.
20194 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20196 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20197 Add Wide_[Wide_]Expanded_Name.
20198 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20199 the same functionality of Get_Prim_Op_Address but applied to predefined
20200 primitive operations because the pointers to the predefined primitives
20201 are now saved in a separate table.
20202 (Parent_Size): Modified to get access to the separate table of primitive
20203 operations or the parent type.
20204 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20205 functionality of Set_Prim_Op_Address but applied to predefined primitive
20207 (Set_Signature): New subprogram used to store the signature of a DT.
20208 (Displace): If the Offset_To_Top value is not static then call the
20209 function generated by the expander to get such value; otherwise use
20210 the value stored in the table of interfaces.
20211 (Offset_To_Top): The type of the actual has been changed to Address to
20212 give the correct support to tagged types with discriminants. In this
20213 case this value is stored just immediately after the tag field.
20214 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20215 offset_to_top value is static and hence pass this value to the run-time
20216 to store it in the table of interfaces, or else if this value is dynamic
20217 and then pass to the run-time the address of a function that is
20218 generated by the expander to provide this value for each object of the
20221 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20222 (Default_Prim_Op_Count): New entity
20223 (Get_Predefined_Prim_Op_Address): New entity
20224 (Set_Predefined_Prim_Op_Address): New entity
20225 (RE_Set_Signature): New entity
20227 2006-02-13 Thomas Quinot <quinot@adacore.com>
20228 Ed Schonberg <schonberg@adacore.com>
20230 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20231 Make_Adjust_Call done for a newly-allocated object.
20233 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20234 in a subprogram are wrapped in a cleanup block, indicate that the
20235 subprogram contains an inner block with an exception handler.
20236 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20237 Adjust call is for a newly-allocated object. In that case we must not
20238 assume that the finalization list chain pointers are correct (since they
20239 come from a bit-for-bit copy of the original object's pointers) so if
20240 the attach level would otherwise be zero (no change), we set it to 4
20241 instead to cause the pointers to be reset to null.
20243 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20244 reset chain pointers to null.
20246 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20248 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20249 string, and the context requires a loop for the assignment (e.g.
20250 because the left-hand side is packed), generate a unique name for the
20251 temporary that holds the string, to prevent spurious name clashes.
20253 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20254 Javier Miranda <miranda@adacore.com>
20255 Robert Dewar <dewar@adacore.com>
20256 Gary Dismukes <dismukes@adacore.com>
20258 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20259 return unconstrained arrays.
20261 (Expand_Call): An indirect call through an access parameter of a
20262 protected operation is not a protected call.
20263 Add circuit to raise CE in Ada 2005 mode following call
20264 to Raise_Exception.
20265 (Register_DT_Entry): Do nothing if
20266 the run-time does not give support to abstract interfaces.
20267 (Freeze_Subprogram): In case of dispatching operations, do not generate
20268 code to register the operation in the dispatch table if the source
20269 is compiled with No_Dispatching_Calls.
20270 (Register_Predefined_DT_Entry): Generate code that calls the new
20271 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20272 Set_Prim_Op_Address.
20274 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20275 on array assignments if the right-hand side is a function call that has
20276 been inlined. Check is performed on the assignment in the block.
20277 (Process_Bounds): If bounds and range are overloaded, apply preference
20278 rule for root operations to disambiguate, and diagnose true ambiguity.
20279 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20280 a tag-indeterminate right-hand side even when Expander_Active is True.
20281 Needed to ensure that dispatching calls to T'Input are allowed and
20282 get the tag of the target class-wide object.
20284 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20285 an inherited primitive operation that already overrides several
20286 abstract interface primitives. For transitivity, the new entity must
20287 also override all the abstract interface primitives covered by the
20288 inherited overriden primitive.
20289 Emit warning if new entity differs from homograph in same scope only in
20290 that one has an access parameter and the other one has a parameter of
20291 a general access type with the same designated type, at the same
20292 position in the signature.
20293 (Make_Inequality_Operator): Use source locations of parameters and
20294 subtype marks from corresponding equality operator when creating the
20295 tree structure for the implicit declaration of "/=". This does not
20296 change anything in behaviour except that the decoration of the
20297 components of the subtree created for "/=" allows ASIS to get the
20298 string images of the corresponding identifiers.
20299 (Analyze_Return_Statement): Remove '!' in warning message.
20300 (Check_Statement_Sequence): Likewise.
20301 (Analyze_Subprogram_Body): For an access parameter whose designated type
20302 is an incomplete type imported through a limited_with clause, use the
20303 type of the corresponding formal in the body.
20304 (Check_Returns): Implicit return in No_Return procedure now raises
20305 Program_Error with a compile time warning, instead of beging illegal.
20306 (Has_Single_Return): Function returning unconstrained type cannot be
20307 inlined if expression in unique return statement is not an identifier.
20308 (Build_Body_To_Inline): It is possible to inline a function call that
20309 returns an unconstrained type if all return statements in the function
20310 return the same local variable. Subsidiary procedure Has_Single_Return
20311 verifies that the body conforms to this restriction.
20313 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20314 same type, and one of them is of an anonymous access type, convert
20315 the other operand to it, so that this is a valid binary operation for
20317 (Resolve_Type_Conversion): Handle subtypes of protected types and
20318 task types when accessing to the corresponding record type.
20319 (Resolve_Allocator): Add '\' in 2-line warning message.
20320 Remove '!' in warning message.
20321 (Resolve_Call): Add '\' in 2-line warning message.
20322 (Valid_Conversion): Likewise.
20323 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20324 resulting type may be an access type with an implicit dereference.
20325 Obtain the proper component from the designated type.
20326 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20327 given by an expanded name with prefix Standard, when the operands are
20328 of an anonymous access type.
20329 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20330 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20331 prefix of the expression is not of an incomplete type. Allows full
20332 diagnoses of all semantic errors.
20333 (Resolve_Actuals): If the actual is an allocator whose directly
20334 designated type is a class-wide interface we build an anonymous
20335 access type to use it as the type of the allocator. Later, when
20336 the subprogram call is expanded, if the interface has a secondary
20337 dispatch table the expander will add a type conversion to force
20338 the displacement of the pointer.
20339 (Resolve_Call): If a function that returns an unconstrained type is
20340 marked Inlined_Always and inlined, the call will be inlined and does
20341 not require the creation of a transient scope.
20342 (Check_Direct_Boolean_Op): Removed
20343 (Resolve_Comparison_Op): Remove call to above
20344 (Resolve_Equality_Op): Remove call to above
20345 (Resolve_Logical_Op): Inline above, since this is only call.
20346 (Valid_Conversion): Handle properly conversions between arrays of
20347 convertible anonymous access types.
20350 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20351 the literal in an unchecked conversion, because GCC 4.x needs a static
20352 value for a string bound.
20354 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20355 Hristian Kirtchev <kirtchev@adacore.com>
20357 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20358 components of the corresponding record, take into account component
20359 definitions that are access definitions.
20360 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20361 procedure is not considered a dispatching call and will be expanded
20364 2006-02-13 Javier Miranda <miranda@adacore.com>
20366 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20367 controlling argument of the dispatching call is an abstract interface
20368 class-wide type then we use it directly.
20369 Check No_Dispatching_Calls restriction.
20370 (Default_Prim_Op_Position): Remove the code that looks for the last
20371 entity in the list of aliased subprograms. This code was wrong in
20373 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20374 when the source is compiled with the No_Dispatching_Calls restriction.
20375 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20376 if we are compiling with restriction No_Dispatching_Calls.
20377 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20378 subprograms if we are compiling under No_Dispatching_Calls restriction.
20379 (Make_DT): Generate a dispatch table with a single dummy entry if
20380 we are compiling with the No_Dispatching_Calls restriction. In
20381 addition, in this case we don't generate code that calls to the
20382 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20383 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20384 of this subprogram if compiling with the No_Dispatching_Calls
20386 (Expand_Type_Conversion): Instead of using the actual parameter,
20387 the argument passed as parameter to the conversion function was
20388 erroneously referenced by the expander.
20389 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20390 Set_Predefined_Primitive_Op_Address and Set_Signature.
20391 (Expand_Dispatching_Call): Generate call to
20392 Get_Predefined_Prim_Op_Address for predefined primitives.
20393 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20394 predefined primitives.
20395 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20396 primitives we reserve one dummy entry to ensure that the tag does not
20397 point to some memory that is associated with some other object. In
20398 addition, remove all the old code that generated the assignments
20399 associated with the signature of the dispatch table and replace them
20400 by a call to the new subprogram Set_Signature.
20401 (Set_All_DT_Position): Change the algorithm because now we have a
20402 separate dispatch table associated with predefined primitive operations.
20403 (Expand_Interface_Conversion): In case of non-static offset_to_top
20404 add explicit dereference to get access to the object after the call
20405 to displace the pointer to the object.
20406 (Expand_Interface_Thunk): Modify the generation of the actual used
20407 in the calls to the run-time function Offset_To_Top to fulfil its
20409 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20411 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20413 * exp_dist.adb (Copy_Specification): For access parameters, copy
20414 Null_Exclusion flag, which will have been set for stream subprograms
20417 2006-02-13 Pascal Obry <obry@adacore.com>
20419 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20420 previous implementation was using the C runtime spawnve routine but
20421 the corresponding wait was using directly the Win32 API. This was
20422 causing some times a lock when waiting for an event using
20423 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20424 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20425 API fixes this problem.
20427 2006-02-13 Robert Dewar <dewar@adacore.com>
20429 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20432 2006-02-13 Thomas Quinot <quinot@adacore.com>
20434 * exp_pakd.ads: Fix typos in comments.
20436 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20437 array reference that is an explicit dereference, mark the converted
20438 (packed) array reference as analyzed to prevent a forthcoming
20439 reanalysis from resetting its type to the original (non-packed) array
20442 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20443 Javier Miranda <miranda@adacore.com>
20444 Eric Botcazou <ebotcazou@adacore.com>
20446 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20447 Is_Predefined_Primitive_Operation): When
20448 searching for the predefined equality operator, verify that operands
20449 have the same type.
20450 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20451 for the last entity in the list of aliased subprograms. This code
20452 was wrong in case of renamings.
20453 (Set_Renamed_Subprogram): New procedure
20454 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20455 Exp_Type constant computed when entering this subprogram.
20456 (Known_Null): New function
20457 (OK_To_Do_Constant_Replacement): New function
20458 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20459 (Side_Effect_Free): An attribute reference 'Input is not free of
20460 side effect, unlike other attributes that are functions. (from code
20462 (Remove_Side_Effects): Expressions that involve packed arrays or records
20463 are copied at the point of reference, and therefore must be marked as
20464 renamings of objects.
20465 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20466 not a dispatching operation.
20469 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20470 elementary types in all cases.
20472 2006-02-13 Javier Miranda <miranda@adacore.com>
20474 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20475 task types when accessing to the corresponding record type.
20476 Remove '!' in warning message.
20478 2006-02-13 Olivier Hainque <hainque@adacore.com>
20480 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20481 to avoid useless and space inefficient overalignments on targets where
20482 Max_Alignment is larger than 16.
20484 2006-02-13 Pascal Obry <obry@adacore.com>
20486 * g-catiio.adb (Sec_Number): New type used to compute the number of
20487 seconds since 1-1-1970.
20488 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20489 negative numbers (years, months...) it is better to have a Natural here.
20491 (Image) [Number]: Change parameter from Long_Integer to Number.
20492 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20493 overflow for dates past year 2038.
20495 2006-02-13 Matthew Heaney <heaney@adacore.com>
20497 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20500 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20502 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20504 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20505 finalization can occur normally.
20507 2006-02-13 Vincent Celier <celier@adacore.com>
20509 * gnatcmd.adb (Rules_Switches): New table
20510 (Add_To_Rules_Switches): New procedure
20511 (GNATCmd): For command CHECK, put all options following "-rules" in the
20512 Rules_Switches table. Append these -rules switches after the -cargs
20515 2006-02-13 Robert Dewar <dewar@adacore.com>
20517 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20518 These two cases were generating incorrect output, and if this unit
20519 was built with checks on, generated a discriminant mismatch constraint
20522 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20523 Robert Dewar <dewar@adacore.com>
20525 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20526 view is an array type, indicate the component type as well, for
20527 navigation purposes.
20528 (Generate_Reference): Don't consider array ref on LHS to be a case
20529 of violating pragma Unreferenced.
20530 Do not give Ada 2005 warning except on real reference.
20532 2006-02-13 Vincent Celier <celier@adacore.com>
20534 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20535 main source, add switch -mdebug-main=_ada_ so that the executable can
20536 be debugged by the standard VMS debugger.
20537 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20538 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20539 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20540 of the last source, as the binding and linking phases are never
20542 Set all executable obsolete when rebuilding a library.
20544 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20547 2006-02-13 Javier Miranda <miranda@adacore.com>
20550 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20551 code to improve the error message reported when the program has
20552 declarations of abstract interface types and it is not compiled with
20553 the -gnat05 switch.
20554 (P_Access_Definition): Reorganize the code to improve the error
20555 message reported when the new Ada 2005 syntax for anonymous
20556 access types is used and the program is not compiled with the
20559 2006-02-13 Robert Dewar <dewar@adacore.com>
20561 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20562 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20565 2006-02-13 Javier Miranda <miranda@adacore.com>
20567 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20568 against source containing syntax errors.
20570 2006-02-13 Vincent Celier <celier@adacore.com>
20572 * prj.adb (Reset): Initialize the first element of table Namings with
20573 the standard naming data.
20575 2006-02-13 Vincent Celier <celier@adacore.com>
20577 * prj.ads (Error_Warning): New enumeration type
20579 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20580 unknown, use the location of the project to report the error.
20581 (When_No_Sources): New global variable
20582 (Report_No_Ada_Sources): New procedure
20583 (Check): New parameter When_No_Sources. Set value of global variable
20585 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20586 (Get_Sources_From_File): Ditto
20587 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20590 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20591 Call Prj.Proc.Process with parameter When_No_Sources.
20593 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20594 Call Recursive_Check with parameter When_No_Sources.
20595 (Recursive_Check): New parameter When_No_Sources. Call itself and
20596 Prj.Nmsc.Check with parameter When_No_Sources.
20597 (Process): New parameter When_No_Sources. Call Check with parameter
20599 (Copy_Package_Declarations): New procedure to copy renamed parameters
20600 and setting the location of the declared attributes to the location
20601 of the renamed package.
20602 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20605 2006-02-13 Vincent Celier <celier@adacore.com>
20607 * prj-makr.adb (Make): Preserve the comments from the original project
20609 When removing nodes (attributes Source_Dirs, Source_Files,
20610 Source_List_File and package Naming), save the comments and attach the
20611 saved comments to the newly created nodes.
20612 Do not add a with clause for the naming package if one already exists.
20614 2006-02-13 Javier Miranda <miranda@adacore.com>
20615 Gary Dismukes <dismukes@adacore.com>
20616 Robert Dewar <dewar@adacore.com>
20618 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20620 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20621 aliased entities to look for the overriden abstract interface
20623 (Is_Interface_Subprogram): Complete documentation.
20624 (Check_Dispatching_Operation): Do not generate code to register the
20625 operation in the dispatch table if the source is compiled with
20626 restriction No_Dispatching_Calls.
20627 (Override_Dispatching_Operation): Check for illegal attempt to override
20628 No_Return procedure with procedure that is not No_Return
20629 (Check_Dispatching_Call): Suppress the check for an abstract operation
20630 when the original node of an actual is a tag-indeterminate attribute
20631 call, since the attribute, which must be 'Input, can never be abstract.
20632 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20633 call to the Input attribute (even when rewritten).
20634 (Propagate_Tag): Augment comment to indicate the possibility of a call
20635 to an Input attribute.
20637 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20638 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20640 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20641 No_Wide_Characters is no longer partition-wide
20642 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20645 2006-02-13 Douglas Rupp <rupp@adacore.com>
20647 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20649 2006-02-13 Javier Miranda <miranda@adacore.com>
20651 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20652 handles default-initialized components to keep separate the management
20653 of this feature but also avoid the unrequired resolution and
20654 expansion of components that do not have partially initialized
20656 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20657 (Check_Bounds): Likewise.
20658 (Check_Length): Likewise.
20660 2006-02-13 Javier Miranda <miranda@adacore.com>
20661 Ed Schonberg <schonberg@adacore.com>
20663 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20664 abstract interface type call analyze_and_resolve to expand the type
20665 conversion into the corresponding displacement of the
20666 reference to the base of the object.
20667 (Eval_Attribute, case Width): For systems where IEEE extended precision
20668 is supported, the maximum exponent occupies 4 decimal digits.
20669 (Accessibility_Message): Add '\' in 2-line warning message.
20670 (Resolve_Attribute): Likewise.
20671 (case Attribute_Access): Significantly revise checks
20672 for illegal access-to-subprogram Access attributes to properly enforce
20673 the rules of 3.10.2(32/2).
20674 Diagnose use of current instance with an illegal attribute.
20676 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20678 (Enclosing_Generic_Unit): New function to return a node's innermost
20679 enclosing generic declaration node.
20680 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20681 (Type_Access_Level): The accessibility level of anonymous acccess types
20682 associated with discriminants is that of the current instance of the
20683 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20684 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20685 (Kill_Current_Values_For_Entity): New function
20686 (Enter_Name): Change formal type to Entity_Id
20688 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20689 Ed Schonberg <schonberg@adacore.com>
20690 Gary Dismukes <dismukes@adacore.com>
20692 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20693 Analyze_Compilation_Unit.
20694 Detect and warn on redundant with clauses detected in a package spec
20695 and/or body when -gnatwr is used.
20696 (Analyze_Context): Analyze config pragmas before other items
20697 (Install_Context_Items): Don't analyze config pragmas here
20698 (Install_Limited_Withed_Unit): Set limited entity of package in
20699 with_clause so that cross-reference information or warning messages on
20700 unused packages can be properly generated
20701 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20702 has Error_Posted set. Prevent infinite loops in illegal programs.
20703 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20704 to the point of the error test requiring the current unit to be private.
20705 This ensures that private with clauses are not exempted from the basic
20706 checking for being a descendant of the same library unit parent as a
20707 withed private descendant unit.
20708 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20709 handle private with clauses properly, as well as to account for cases
20710 where the withed unit is a public descendant of a private ancestor
20711 (in which case the current unit must be a descendant of the private
20712 ancestor's parent). The spec comments were updated accordingly. Also,
20713 the old error message in this subprogram was replaced with error
20714 messages that mirror the errors tested and reported by
20715 Check_Private_Child_Unit.
20716 Parameter and variable names improved for readability.
20717 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20718 private as the precondition for calling
20719 Check_Private_Limited_Withed_Unit since that subprogram has been
20720 revised to test public units as well as private units.
20722 2006-02-13 Thomas Quinot <quinot@adacore.com>
20723 Robert Dewar <dewar@adacore.com>
20724 Ed Schonberg <schonberg@adacore.com>
20725 Javier Miranda <miranda@adacore.com>
20727 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20728 that Scope_Stack.First = 1.
20729 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20730 were not always properly handled previously.
20731 (Formal_Entity): Complete rewrite, to handle properly some complex case
20732 with multiple levels of parametrization by formal packages.
20733 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20734 to the corresponding derived type declaration for proper semantics.
20736 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20737 (Check_Component): Enforce restriction on components of
20738 unchecked_unions: a component in a variant cannot contain tasks or
20740 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20742 Add pragma Ada_2005 (synonym for Ada_05)
20743 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20744 were not always properly handled previously.
20745 Document that pragma Propagate_Exceptions has no effect
20746 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20747 (Set_Convention_From_Pragma): Check that if a convention is
20748 specified for a dispatching operation, then it must be
20749 consistent with the existing convention for the operation.
20750 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20751 longer required to specify an vtable-ptr component in the record. For
20752 compatibility reasons we leave the support for the previous definition.
20753 (Analyze_Pragma, case No_Return): Allow multiple arguments
20755 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20756 non-overrideen inherited operation with a controlling result as
20757 illegal only its implicit declaration comes from the derived type
20758 declaration of its result's type.
20759 (Check_Possible_Deferred_Completion): Relocate the object definition
20760 node of the subtype indication of a deferred constant completion rather
20761 than directly analyzing it. The analysis of the generated subtype will
20762 correctly decorate the GNAT tree.
20763 (Record_Type_Declaration): Check whether this is a declaration for a
20764 limited derived record before analyzing components.
20765 (Analyze_Component_Declaration): Diagnose record types not explicitly
20766 declared limited when a component has a limited type.
20767 (Build_Derived_Record_Type): Code reorganization to check if some of
20768 the inherited subprograms of a tagged type cover interface primitives.
20769 This check was missing in case of a full-type associated with a private
20771 (Constant_Redeclaration): Check that the subtypes of the partial and the
20772 full view of a constrained deferred constant statically match.
20773 (Mentions_T): A reference to the current type in an anonymous access
20774 component declaration must be an entity name.
20775 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20776 class_wide type to refer to full type, not to the incomplete one.
20777 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20778 available. Required to give support to the certified run-time.
20779 (Analyze_Component_Declaration): In case of anonymous access components
20780 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20781 (Process_Discriminants): For an access discriminant, use the
20782 discriminant specification as the associated_node_for_itype, to
20783 simplify accessibility checks.
20785 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20786 Javier Miranda <miranda@adacore.com>
20788 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20789 abstract interpretations on an operator, remove interpretations that
20790 yield Address or a type derived from it, if one of the operands is an
20792 (Try_Object_Operation.Try_Primitive_Operation,
20793 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20794 location when creating the new reference to a primitive or class-wide
20795 operation as a part of rewriting a subprogram call.
20796 (Try_Primitive_Operations): If context requires a function, collect all
20797 interpretations after the first match, because there may be primitive
20798 operations of the same type with the same profile and different return
20799 types. From code reading.
20800 (Try_Primitive_Operation): Use the node kind to choose the proper
20801 operation when a function and a procedure have the same parameter
20803 (Complete_Object_Operation): If formal is an access parameter and prefix
20804 is an object, rewrite as an Access reference, to match signature of
20805 primitive operation.
20806 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20807 by an expanded name with prefix Standard, when the operands are of an
20808 anonymous access type.
20809 (Remove_Abstract_Operations): If the operation is abstract because it is
20810 inherited by a user-defined type derived from Address, remove it as
20811 well from the set of candidate interpretations of an overloaded node.
20812 (Analyze_Membership_Op): Membership test not applicable to cpp-class
20815 2006-02-13 Bob Duff <duff@adacore.com>
20817 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20818 redundant use clauses.
20819 In particular, if the scope of two use clauses overlaps, but one is not
20820 entirely included in the other, we should not warn. This can happen
20821 with nested packages.
20822 (Analyze_Subprogram_Renaming): Protect the compiler against previously
20823 reported errors. The bug was reported when the compiler was built
20824 with assertions enabled.
20825 (Find_Type): If the node is a 'Class reference and the prefix is a
20826 synchronized type without a corresponding record, return the type
20829 2006-02-13 Javier Miranda <miranda@adacore.com>
20831 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20832 if this is the full-declaration associated with a private declaration
20833 that implement interfaces, then the private type declaration must be
20835 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20836 as aliased. The use of the 'access attribute is not available for such
20837 object (for this purpose the object should be explicitly marked as
20838 aliased, but being an anonymous type this is not possible).
20840 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20841 Robert Dewar <dewar@adacore.com>
20843 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20844 compilation unit is an elaboration scope.
20845 (Add_Task_Proc): Add '\' in 2-line warning message.
20846 (Activate_All_Desirable): Deal with case of unit with'ed by parent
20848 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20849 Javier Miranda <miranda@adacore.com>
20851 * sem_type.adb (Write_Overloads): Improve display of candidate
20853 (Add_One_Interp): Do not add to the list of interpretations aliased
20854 entities corresponding with an abstract interface type that is an
20855 immediate ancestor of a tagged type; otherwise we have a dummy
20856 conflict between this entity and the aliased entity.
20857 (Disambiguate): The predefined equality on universal_access is not
20858 usable if there is a user-defined equality with the proper signature,
20859 declared in the same declarative part as the designated type.
20860 (Find_Unique_Type): The universal_access equality operator defined under
20861 AI-230 does not cover pool specific access types.
20862 (Covers): If one of the types is a generic actual subtype, check whether
20863 it matches the partial view of the other type.
20865 2006-02-13 Thomas Quinot <quinot@adacore.com>
20867 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20868 line. This is necessary to allow In_Extended_Main_Unit to provide
20869 correct results for itypes while writing out expanded source.
20870 (Close_File): No need to update the source_index_table here since it's
20871 now done for each line.
20873 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20874 Robert Dewar <dewar@adacore.com>
20876 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20877 preserve the source unit where the itype is declared, and prevent a
20879 (Note_Implicit_Run_Time_Call): New procedure
20880 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20883 * sprint.ads: Document use of $ for implicit run time routine call
20885 2006-02-13 Quentin Ochem <ochem@adacore.com>
20887 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20890 2006-02-13 Bob Duff <duff@adacore.com>
20892 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20893 Scan_Unsigned, so we do not scan leading blanks and sign twice.
20894 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20895 raise Constraint_Error.
20897 * s-vallli.adb (Scan_Long_Long_Integer): Call
20898 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20899 do not scan leading blanks and sign twice.
20900 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20901 raise Constraint_Error.
20903 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20904 Scan_Long_Long_Unsigned): Split out most of the processing from
20905 Scan_Long_Long_Unsigned out into
20906 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20907 This prevents scanning leading blanks and sign twice.
20908 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20911 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20912 out most of the processing from Scan_Unsigned out into
20913 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20914 This prevents scanning leading blanks and sign twice.
20916 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20917 use with Modular'Value attribute.
20918 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20921 2006-02-13 Robert Dewar <dewar@adacore.com>
20923 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20925 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20927 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20928 (PPC VxWorks): Likewise.
20929 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20930 (forced_callee): Make non-inlinable and non-pure.
20931 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20933 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20934 Ben Brosgol <brosgol@adacore.com>
20935 Robert Dewar <dewar@adacore.com>
20937 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20939 Document that gnatbind -M option is for cross environments only.
20940 Added description of using gnatmem to trace gnat rtl allocs and deallocs
20941 Add note on use of $ to label implicit run time calls
20942 Add documentation for -gnatyI (check mode IN)
20943 Updated chapter on compatibility with HP Ada
20944 VMS-oriented edits.
20945 Ran spell and corrected errors
20946 Add documentation for gnatbind -d and rework documentation of -D
20948 Add subprogram/data elimination section.
20949 Minor editing of annex A.
20950 Add section for gnatcheck.
20951 Add documentation for restriction No_Dispatching_Calls
20952 Add documentation for pragma Ada_2005
20953 Remove mention of obsolete pragma Propagate_Exceptions
20954 Document that pragma Unreferenced can appear after DO in ACCEPT
20955 Clarify Pure_Function for library level units
20956 Mention Max/Min in connection with No_Implicit_Conditionals
20957 No_Wide_Characters restriction is no longer partition-wide
20958 Add a nice example for Universal_Literal_String attribute
20959 Document that pragma No_Return can take multiple arguments
20961 * ug_words: Added entry for gnatcheck
20963 * g-ctrl_c.ads (Install_Handler): Enhance comments
20965 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20967 * g-trasym.ads: Add documentation on how to do off line symbolic
20968 traceback computation.
20970 * s-fatgen.adb: Add comments for Unaligned_Valid
20972 * stand.ads: Fix typo in comment
20974 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20976 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20978 2006-02-06 Roger Sayle <roger@eyesopen.com>
20980 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20982 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20985 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20986 implementation that calls __main.
20988 2006-01-25 Peter O'Gorman <peter@pogma.com>
20991 * Makefile.in (GCC_LINK): Remove quotes.
20992 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20995 (powerpc-darwin): Pass -shared-libgcc when building shared library.
20997 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21000 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21002 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21004 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21006 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21008 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21011 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21013 * Make-lang.in: Update dependencies
21015 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21017 * Make-lang.in: Add rule for ada/exp_sel.o
21019 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21021 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21023 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21025 * gnatvsn.ads (Library_Version): Bump to version 4.2
21026 (ASIS_Version_Number): Bumped.
21028 2005-12-09 Doug Rupp <rupp@adacore.com>
21030 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21031 Ada bind file prefix on VMS from b$ to b__.
21032 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21035 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21036 Targparm.OpenVMS_On_Target.
21037 (Object_Suffix): Initialize with target object suffix.
21038 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21040 * butil.adb: Change some Hostparm.OpenVMS checks to
21041 Targparm.OpenVMS_On_Target.
21043 * clean.adb: Change some Hostparm.OpenVMS checks to
21044 Targparm.OpenVMS_On_Target.
21045 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21046 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21047 Ada bind file prefix on VMS from b$ to b__.
21049 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21050 --GCC so that Get_Target_Parameters can find system.ads.
21051 (Gnatlink): Call Get_Target_Parameters in mainline.
21052 Initialize standard packages for Targparm.
21053 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21054 (Process_Args): Also Check for object files with target object
21056 (Make_Binder_File_Names): Create with target object extension.
21057 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21060 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21061 Targparm.OpenVMS_On_Target.
21062 ({declaration},Build_Library,Check_Library): Change Ada bind file
21063 prefix on VMS from b$ to b__.
21065 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21066 Targparm.OpenVMS_On_Target.
21067 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21070 * targext.c: New file.
21072 * Makefile.in: add support for vxworks653 builds
21073 (../../vxaddr2line): gnatlink with targext.o.
21074 (TOOLS_LIBS): Move targext.o to precede libgnat.
21075 (init.o, initialize.o): Minor clean up in dependencies.
21076 (GNATLINK_OBJS): Add targparm.o, snames.o
21077 Add rules fo building targext.o and linking it explicitly with all
21079 Also add targext.o to gnatlib.
21081 * Make-lang.in: Add rules for building targext.o and linking it in
21082 with gnat1 and gnatbind.
21083 Add entry for exp_sel.o.
21085 * osint.adb Change some Hostparm.OpenVMS checks to
21086 Targparm.OpenVMS_On_Target.
21087 (Object_File_Name): Use target object suffix.
21089 * osint.ads (Object_Suffix): Remove, no longer used.
21090 (Target_Object_Suffix): Initialize with target object suffix.
21092 * rident.ads: Add special exception to license.
21094 * targparm.adb (Get_Target_Parameters): Set the value of
21095 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21097 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21099 * targparm.ads: Add special exception to license.
21101 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21103 (Copy_File): Make sure from file is closed if error on to file
21104 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21106 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21107 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21109 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21110 target object suffix.
21112 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21113 Quentin Ochem <ochem@adacore.com>
21114 Florian Villoing <villoing@adacore.com>
21116 * a-taster.ads, a-taster.adb: New files.
21118 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21119 link to the version that does nothing. This way the task termination
21120 routine is not executed twice for the environment task when finishing
21121 because of an unhandled exception.
21123 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21124 handler because of an unhandled exception.
21126 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21127 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21129 * s-finimp.adb (initialization code): Modify the soft link for the
21130 finalization of the global list instead of Adafinal.
21132 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21133 non-tasking version of the soft link for task termination. We do
21134 nothing since if we are using the non-tasking version it
21135 means that the task termination functionality is not used.
21136 (Null_Finalize_Global_List): Add this null version for the procedure
21137 in charge of finalizing the global list for controlled objects.
21138 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21139 instead for handling run-time termination in a more flexible way.
21140 (Adafinal_NT): This new procedure will take care of finalizing the
21141 global list for controlled objects if needed, but no tasking
21144 * s-tarest.adb (Task_Lock): Do not try to lock again the
21145 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21146 some run-time operations.
21147 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21148 until all nested locks have been released.
21149 (Task_Wrapper): Call the fall-back task termination handler. It
21150 applies to all tasks but the environment task.
21151 (Finalize_Global_Tasks): Add the call for the task termination
21152 procedure for the environment task.
21153 (Task_Wrapper): suppress warnings around declaration of
21154 Secondary_Stack_Address.
21156 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21157 moved to the Common_ATCB record.
21158 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21159 Common_ATCB record.
21160 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21161 Common_ATCB record.
21163 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21164 Fall_Back_Handler, and Specific_Handler.
21166 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21167 defined in Ada.Task_Termination, to avoid circular dependencies.
21168 (Termination_Handler): Redefine this type here, alredy defined in
21169 Ada.Task_Termination, for avoiding circular dependencies.
21170 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21171 for storing task termination handlers. In addition,
21172 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21173 Common_ATCB because it is used by both the regular and the restricted
21175 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21176 Common_ATCB because it is used by both the regular and the restricted
21178 (Common_ATCB): Added a dynamic task analyzer field.
21180 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21181 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21182 (Task_Wrapper): Call the task termination handler. It applies to all
21183 tasks but the environment task.
21184 (Finalize_Global_Tasks): Call the task termination procedure for the
21185 environment task. The call to Finalize_Global_List is now performed
21186 using the soft links mechanism.
21187 (Task_Wrapper): added dynamic stack analysis.
21189 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21190 potentially blocking operations has been moved from
21191 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21192 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21193 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21194 this run-time check.
21196 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21197 of task termination procedure.
21198 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21199 link for the task termination procedure.
21201 * bindusg.adb: (Bindusg): Added documentation for -u option.
21203 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21204 (Get_Main_C): Add handling of dynamic stack analysis.
21205 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21207 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21208 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21209 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21211 * opt.ads: Added flags used by dynamic stack measurement.
21212 (Max_Line_Length): Remove (not used anymore)
21214 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21215 (Standart_Output): new subprogram
21216 (Set_Output): new subprogram
21217 (Put): now uses the value of Current_Out to know if the output has to be
21218 send to stderr or stdout.
21220 * s-stausa.ads: Complete implementation.
21222 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21224 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21225 list of Ada 05 files.
21226 (GNAT Library Units): Add AltiVec files.
21228 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21229 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21230 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21232 2005-12-09 Nicolas Setton <setton@adacore.com>
21234 * adaint.c (__gnat_locate_regular_file): Return immediately if
21235 file_name is empty.
21237 2005-12-09 Javier Miranda <miranda@adacore.com>
21238 Hristian Kirtchev <kirtchev@adacore.com>
21240 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21241 to the specification because the frontend generates code that uses this
21243 (Set_Interface_Table): Add missing assertion.
21244 Update documentation describing the run-time structure.
21245 (Displace): New subprogram that displaces the pointer to the object
21246 to reference one of its secondary dispatch tables.
21247 (IW_Membership): Modified to use the new table of interfaces.
21248 (Inherit_TSD): Modified to use the new table of interfaces.
21249 (Register_Interface_Tag): Use the additional formal to fill the
21250 contents of the new table of interfaces.
21251 (Set_Interface_Table): New subprogram that stores in the TSD the
21252 pointer to the table of interfaces.
21253 (Set_Offset_To_Top): Use the additional formal to save copy of
21254 the offset value in the table of interfaces.
21255 Update structure of GNAT Primary and Secondary dispatch table diagram.
21256 Add comment section on GNAT dispatch table prologue.
21257 (Offset_To_Signature): Update the constant value of the Signature field.
21258 (Dispatch_Table): Update comment on hidden fields in the prologue.
21259 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21260 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21261 the type of formal parameter T to Tag, introduce additional assertions.
21262 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21264 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21266 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21267 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21268 record component containing the tag of the secondary dispatch table we
21269 have to use the Offset_To_Top run-time function to get this information;
21270 otherwise if the pointer to the base of the object has been displace
21271 we get a wrong value if we use the 'position attribute.
21273 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21274 all the calls to Expand_Interface_Thunk.
21275 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21276 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21277 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21278 ensure that the interfaces implemented by the ancestors are placed
21279 at the header of the generated list.
21280 (Expand_Interface_Conversion): Handle the case in which the displacement
21281 associated with the interface conversion is not statically known. In
21282 this case we generate a call to the new run-time subprogram Displace.
21283 (Make_DT): Generate and fill the new table of interfaces.
21284 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21285 Get_Tagged_Kind and Set_Tagged_Kind.
21286 (Tagged_Kind): New function that determines the tagged kind of a type
21287 with respect to limitedness and concurrency and returns a reference to
21289 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21290 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21291 primary dispatch table for a type.
21292 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21293 secondary dispatch table respectively of a tagged type.
21295 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21296 (Expand_Interface_Conversion): New subprogram to indicate if the
21297 displacement of the type conversion is statically known.
21298 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21300 * rtsfind.ads (RE_Offset_To_Top): New entity
21301 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21302 accessible to users.
21303 (Re_Displace): New entity
21304 (RE_Interface_Data): New entity
21305 (RE_Set_Interface_Data): New_Entity
21306 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21307 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21308 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21309 RE_TK_Tagged, RE_TK_Task.
21311 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21312 Init_Secondary_Tags_Internal to allow its use with interface types and
21313 also to generate the code for the new additional actual required
21314 by Set_Offset_To_Top.
21315 (Build_Init_Statements): In case of components associated with abstract
21316 interface types there is no need to generate a call to its IP.
21317 (Freeze_Record_Type): Generate Select Specific Data tables only for
21319 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21320 the bodies and specifications of the predefined primitive operations
21321 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21322 for concurrent types.
21324 * exp_sel.ads, exp_sel.adb: New files.
21326 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21327 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21328 properly protected objects and attach handler in the case of the
21329 restricted profile.
21330 Move embeded package Select_Expansion_Utilities into a separate external
21332 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21333 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21334 (Build_K, Build_S_Assignment): New subprograms, part of the select
21335 expansion utilities.
21336 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21337 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21338 where the trigger is a dispatching procedure of a limited tagged type.
21340 2005-12-09 Olivier Hainque <hainque@adacore.com>
21342 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21343 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21344 about the use and expansion of SAVE_EXPRs in the various possible
21345 renaming handling cases.
21346 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21347 abusing DECL_FCONTEXT.
21349 2005-12-09 Matthew Heaney <heaney@adacore.com>
21351 * a-convec.adb (Merge): Added assertions to check whether vector params
21354 * a-coinve.adb (Merge): Added assertions to check whether vector params
21357 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21359 (Cursor'Read): raises PE
21361 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21362 to its default value.
21364 * a-cihama.adb: Manually check whether cursor's key and elem are
21367 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21368 (Merge): Assert that target and source lists are in order
21369 (Swap): Declare non-const temporaries, to pass to Splice
21371 * a-cdlili.ads: (Splice): Changed param name and param mode
21373 * a-cdlili.adb: (Splice): Changed param name and param mode
21374 (Merge): Assert that target and source lists are in order
21375 (Swap): Declare non-const temporaries, to pass to Splice
21377 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21378 (Write): declare Stream param as not null
21380 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21381 an exception message.
21383 2005-12-09 Thomas Quinot <quinot@adacore.com>
21384 Robert Dewar <dewar@adacore.com>
21386 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21387 which is the absolute maximum length we can support.
21389 * frontend.adb: For the processing of configuration pragma files,
21390 remove references to Opt.Max_Line_Length, which is not checked anymore.
21392 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21395 * scn.adb, scng.adb:
21396 Always check line length against the absolute supported maximum,
21397 Hostparm.Max_Line_Length.
21399 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21400 value for the maximum line length is Max_Line_Length (not
21401 Column_Number'Last).
21402 Minor error msg update
21403 (Set_Style_Check_Options): New interface returning error msg
21404 Minor code reorganization (processing for 'M' was out of alpha order)
21406 * switch-c.adb: New interface for Set_Style_Check_Options
21408 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21411 2005-12-09 Javier Miranda <miranda@adacore.com>
21413 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21414 with IP subprogram were only supported if there were limited types.
21416 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21417 records with IP subprogram were only supported if there were limited
21420 2005-12-09 Olivier Hainque <hainque@adacore.com>
21421 Eric Botcazou <ebotcazou@adacore.com>
21423 * trans.c (tree_transform, emit_check): Adjust calls to
21424 build_call_raise, passing the now expected GNAT_NODE argument.
21426 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21427 source line information than what the current global locus indicates
21430 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21431 field has overflowed.
21432 (build_call_raise): Add a GNAT_NODE argument to convey better source
21433 line information than what the current global locus indicates when
21435 (build_component_ref): Adjust call to build_call_raise.
21437 2005-12-09 Pascal Obry <obry@adacore.com>
21439 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21440 the iterator is quitting iteration on parent directory.
21442 2005-12-09 Javier Miranda <miranda@adacore.com>
21444 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21445 and the assignment to a class-wide object, before the assignment we
21446 generate a run-time check to ensure that the tag of the Target is
21447 covered by the tag of the source.
21449 2005-12-09 Robert Dewar <dewar@adacore.com>
21451 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21452 parameter in call to Image_Wide_Character.
21454 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21455 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21456 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21457 annoying FFFE/FFFF inconsistency.
21459 2005-12-09 Robert Dewar <dewar@adacore.com>
21460 Javier Miranda <miranda@adacore.com>
21461 Ed Schonberg <schonberg@adacore.com>
21463 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21464 of type conversion.
21465 (Find_Interface): New subprogram that given a tagged type and one of its
21466 component associated with the secondary table of an abstract interface
21467 type, return the entity associated with such abstract interface type.
21468 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21469 base type to create anonymous subtype, because entity may be a locally
21470 declared subtype or generic actual.
21471 (Find_Interface): New subprogram that given a tagged type and one of its
21472 component associated with the secondary table of an abstract interface
21473 type, return the entity associated with such abstract interface type.
21475 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21476 conversion cannot be handled at compile time. In this case we pass this
21477 information to the expander to generate the appropriate code.
21479 2005-12-09 Robert Dewar <dewar@adacore.com>
21480 Ed Schonberg <schonberg@adacore.com>
21481 Gary Dismukes <dismukes@adacore.com>
21482 Javier Miranda <miranda@adacore.com>
21483 Hristian Kirtchev <kirtchev@adacore.com>
21485 * einfo.adb (Itype_Printed): New flag
21486 (Is_Limited_Type): Derived types do not inherit limitedness from
21487 interface progenitors.
21488 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21491 * einfo.ads (Itype_Printed): New flag
21492 Move Is_Wrapper_Package to proper section
21493 Add missing Inline for Is_Volatile
21495 * output.ads, output.adb (Write_Erase_Char): New procedure
21496 (Save/Restore_Output_Buffer): New procedures
21497 (Save/Restore_Output_Buffer): New procedures
21499 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21500 Add missing support for anonymous access type
21501 (Write_Id): Insert calls to Write_Itype
21502 (Write_Itype): New procedure to output itypes
21504 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21505 use of "limited" in declaration.
21507 * sinfo.ads, sinfo.adb:
21508 Formal derived types can carry an explicit "limited" indication.
21510 * sem_ch3.adb: Add with and use of Targparm.
21511 (Create_Component): If Frontend_Layout_On_Target is True and the
21512 copied component does not have a known static Esize, then reset
21513 the size and positional fields of the new component.
21514 (Analyze_Component_Declaration): A limited component is
21515 legal within a protected type that implements an interface.
21516 (Collect_Interfaces): Do not add to the list the interfaces that
21517 are implemented by the ancestors.
21518 (Derived_Type_Declaration): If the parent of the full-view is an
21519 interface perform a transformation of the tree to ensure that it has
21520 the same parent than the partial-view. This simplifies the job of the
21521 expander in order to generate the correct object layout, and it is
21522 needed because the list of interfaces of the full-view can be given in
21524 (Process_Full_View): The parent of the full-view does not need to be
21525 a descendant of the parent of the partial view if both parents are
21527 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21528 "limited" the parent must be a limited type.
21529 (Build_Derived_Record_Type): A derived type that is explicitly limited
21530 must have limited ancestor and progenitors.
21531 (Build_Derived_Type): Ditto.
21532 (Process_Full_View): Verify that explicit uses of "limited" in partial
21533 and full declarations are consistent.
21534 (Find_Ancestor_Interface): Remove function.
21535 (Collect_Implemented_Interfaces): New procedure used to gather all
21536 implemented interfaces by a type.
21537 (Contain_Interface): New function used to check whether an interface is
21539 (Find_Hidden_Interface): New function used to determine whether two
21540 lists of interfaces constitute a set equality. If not, the first
21541 differing interface is returned.
21542 (Process_Full_View): Improve the check for the "no hidden interface"
21543 rule as defined by AI-396.
21545 2005-12-09 Robert Dewar <dewar@adacore.com>
21547 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21548 types, not on record subtypes.
21549 (Freeze_Entity): Code cleanup. Add barrier to the loop
21550 that generates the references for primitive operations. This allows to
21551 remove an unnecessary exception handler.
21552 Code reformatting and comment clean ups.
21554 2005-12-09 Vincent Celier <celier@adacore.com>
21556 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21557 If GNAT CHECK is called with a project file, but with no
21558 source on the command line, call gnatcheck with all the compilable
21559 sources of the project.
21560 Take into account the new command Check, for gnatcheck. Treat as for
21561 other ASIS tools: take into account project, specific package Check and
21563 For ASIS tools, add the switches in package Compiler for
21564 the invocation of the compiler.
21566 * prj-attr.adb: Add package Check and its attributes
21568 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21570 * vms_conv.adb (Initialize): Change Params of command Check to
21572 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21573 Add data for new command Check
21575 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21577 Add qualifiers for Check command options
21578 (Command_Type): New command Check
21580 2005-12-09 Thomas Quinot <quinot@adacore.com>
21582 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21583 command line switch overruns the output buffer.
21585 2005-12-09 Robert Dewar <dewar@adacore.com>
21587 * sem_prag.adb: Processing for new pragma Complete_Representation
21588 (Analyze_Pragma, case Debug): Implement two argument form.
21590 * par-prag.adb: Entry for new pragma Complete_Representation
21591 (Prag, case Debug): Recognize two argument form of pragma Debug
21592 New interface for Set_Style_Check_Options.
21594 * sem_ch13.adb: Implement new pragma Complete_Representation.
21596 * snames.adb, snames.ads, snames.h: Entry for new pragma
21597 Complete_Representation.
21599 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21601 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21602 available user-specified stream attributes on limited parameters to
21603 also test the type directly rather than only its underlying type (for
21604 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21605 attributes are visible at the point of the subprogram declaration.
21606 For Ada 2005, the error message is modified to indicate that the
21607 type's stream attributes must be visible (again, only for -gnat05).
21609 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21611 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21612 anonymous access types.
21614 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21615 matching of anonymous access types and anonymous access to subprogram
21616 types. 'R'M 4.9.1 (2/2).
21618 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21620 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21621 rule prematurely when operands are universal, remaining ambiguities
21622 will be removed during resolution.
21625 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21626 that are Ada 2005 functions.
21627 (Has_Abstract_Interpretation): Subsidiary to
21628 Remove_Conversions, to remove ambiguities caused by abstract operations
21629 on numeric types when operands are universal.
21631 2005-12-09 Robert Dewar <dewar@adacore.com>
21633 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21634 for case where spec is categorized.
21636 2005-12-09 Javier Miranda <miranda@adacore.com>
21638 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21639 types use the corresponding record type. This was not needed before
21640 the implementation of Ada 2005 synchronized types because
21641 concurrent types were never tagged types in Ada 95.
21643 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21645 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21646 first subtype of the type of the expression to verify that it is a
21649 2005-12-09 Robert Dewar <dewar@adacore.com>
21651 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21654 2005-12-09 Quentin Ochem <ochem@adacore.com>
21655 Robert Dewar <dewar@adacore.com>
21656 Ed Falis <falis@adacore.com>
21657 Florian Villoing <villoing@adacore.com>
21658 Thomas Quinot <quinot@adacore.com>
21659 Arnaud Charlet <charlet@adacore.com>
21661 * gnat_ugn.texi: Created section "Stack Related Tools"
21662 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21663 "Stack Related Tools"
21664 Added subsection "Static Stack Usage Analysis"
21665 Added subsection "Dynamic Stack Usage Analysis"
21666 Include documentation of itypes in sprint listing (-gnatG)
21667 Documented gnatbind -D switch (default sec stack size for fixed sec
21669 Added Interrupt_State and Persistent_BSS to list of configuration
21671 Add missing doc for maximum value of nnn in -gnatyMnnn
21673 * gnat_rm.texi: Document the AltiVec binding.
21674 Add documentation for pragma Complete_Representation
21675 Shortened an overly long line (> 79 chars)
21676 Clarify documentation of unchecked conversion in implementation
21678 Document two argument form of pragma Debug
21680 * types.ads (Column_Number): Update documentation.
21682 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21683 library level Finalize_Storage_Only objects (these are not attached to
21684 any finalization list).
21686 * system-mingw.ads: (Underlying_Priorities): Update comment.
21688 2005-12-09 Robert Dewar <dewar@adacore.com>
21690 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21691 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21692 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21693 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21694 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21695 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21696 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21697 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21700 2005-12-09 Robert Dewar <dewar@adacore.com>
21702 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21703 (Ne_G): New function
21705 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21706 for tag assignment.
21707 (Rewrite_Comparison): Handle case where operation is not a comparison
21708 and ignore, and also handle type conversion case.
21710 2005-12-09 Thomas Quinot <quinot@adacore.com>
21712 * exp_aggr.ads: Fix typo in comment.
21713 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21715 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21717 * layout.adb: Replace various uses of byte by storage unit throughout.
21718 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21719 static size, convert to storage units before returning, to conform to
21722 2005-12-09 Matthew Gingell <gingell@adacore.com>
21724 * g-exctra.ads: Fix typo in comment.
21726 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21728 * utils.c: Minor reformatting.
21730 2005-12-09 Robert Dewar <dewar@adacore.com>
21733 Further comment fixes to make the status of the default file clear
21735 * s-bitops.adb: Clarify comment for Bits_Array
21737 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21739 * Make-lang.in (ada.install-normal): Remove.
21741 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21743 * Make-lang.in: Remove all dependencies on s-gtype.
21745 2005-12-05 Richard Guenther <rguenther@suse.de>
21747 * utils.c (convert): Use fold_convert where appropriate.
21749 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21751 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21754 2005-12-02 Richard Guenther <rguenther@suse.de>
21756 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21758 2005-12-01 Roger Sayle <roger@eyesopen.com>
21760 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21763 2005-11-23 Laurent Guerby <laurent@guerby.net>
21765 * mlib-prj.adb (Build_Library): Initialize Delete.
21767 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
21769 * socket.c: Add extern int h_errno for rtems since networking header
21770 files are not available at this point in a tool bootstrap. Newlib
21771 only has basic C library header files.
21773 2005-11-19 Richard Guenther <rguenther@suse.de>
21774 Roger Sayle <roger@eyesopen.com>
21777 * misc.c (internal_error_function): Don't use vsprintf to format
21778 the error message text, instead use pp_format_text and the new
21779 pretty printer APIs. This allows handling of %qs, %w, etc.
21781 2005-11-18 Laurent Guerby <laurent@guerby.net>
21784 * Makefile.in: Use s-auxdec-empty for RTEMS.
21786 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21789 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21790 a temporary if taking the address of something that is neither
21791 reference, declaration, or constant, since the gimplifier
21792 can't handle that case.
21794 2005-11-17 Laurent Guerby <laurent@guerby.net>
21797 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21799 2005-11-16 Richard Guenther <rguenther@suse.de>
21801 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21803 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
21806 * raise-gcc.c: Add missing stdarg.h include.
21808 2005-11-16 Richard Guenther <rguenther@suse.de>
21810 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21811 (ada/misc.o): Likewise.
21813 2005-11-14 Thomas Quinot <quinot@adacore.com>
21815 * g-soccon.ads: Minor reformatting. Update comments.
21817 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21818 gain visibility on the declaration of struct timeval.
21820 * g-soccon-freebsd.ads,
21821 g-soccon-darwin.ads,
21822 g-soccon-tru64.ads,
21826 g-soccon-solaris.ads,
21828 g-soccon-mingw.ads,
21829 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21831 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21832 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21833 g-soccon-linux-x86.ads: New files.
21835 * g-socthi-mingw.adb:
21836 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21838 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21839 (time_t, suseconds_t): New types constructed to match the tv_sec
21840 and tv_usec fields of C struct timeval.
21841 (Timeval): Construct structure in terms of the new types.
21842 (Host_Errno): New function (imported from socket.c), returns last hosts
21845 * g-socthi-vxworks.adb: Add error handling circuitry.
21847 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21848 components of struct timeval.
21849 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21850 (Check_Selector): In error conditions, clear internal socket sets to
21851 avoid a memory leak.
21852 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21853 Send_Timeout, Receive_Timeout.
21855 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21856 the tv_sec and tv_usec fields of C struct timeval.
21857 (Timeval): Construct structure in terms of the new types.
21858 (Host_Errno): New function (imported from socket.c), returns last hosts
21861 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21862 hosts database last error code.
21864 * gen-soccon.c: Complete value expansion should not be performed on
21865 TARGET, as it has the form of a math expression, and some components
21866 may be platform-defined macros.
21867 For VxWorks, generate the OK and ERROR values.
21868 New constants giving the sizes of the components of C struct timeval.
21870 2005-11-14 Robert Dewar <dewar@adacore.com>
21871 Ed Schonberg <schonberg@adacore.com>
21874 * types.ads: Include All_Checks in Suppress_Array
21876 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21877 not(a=b), since we no longer do this rewriting, and hence it is not
21879 (Elaboration_Checks_Suppressed): Add special casing to
21880 deal with different cases of static and dynamic elaboration checks (all
21881 checks does not count in the first case, but does in the second).
21882 (Expr_Known_Valid): Do not assume that the result of any arbitrary
21883 function call is valid, since this is not the case.
21884 (Ensure_Valid): Do not apply validity check to a real literal
21885 in a universal or fixed context
21887 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21888 elementary types using the operator in standard. It is cleaner not to
21889 modify the programmers intent, especially in the case of floating-point.
21890 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21891 it did not matter because we always rewrote a/=b to not(a=b).
21892 (Expand_Allocator_Expression): For an allocator expression whose nominal
21893 subtype is an unconstrained packed type, convert the expression to its
21894 actual constrained subtype.
21895 Implement warning for <= or >= where < or > not possible
21896 Fix to Vax_Float tests (too early in many routines, causing premature
21897 Vax_Float expansions.
21899 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21900 to be used with packages and generic packages as well as with
21902 (Suppress): Set All_Checks, but not Elaboration_Check, for case
21903 of pragma Suppress (All_Checks)
21904 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21905 a string literal for precise control over warnings.
21906 Avoid raise of pragma in case of unrecognized pragma and just return
21909 * sem_prag.ads: Minor reformatting
21911 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21912 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21913 Switch. Do not handle any exception.
21914 Include -gnatwx as part of -gnatg (warn on redundant parens)
21915 Allow optional = after -gnatm
21916 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21917 longer sets Elaboration_Checks.
21918 Code to set warning mode moved to Sem_Warn
21919 so that it can be shared by pragma processing.
21921 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21924 * s-taprop-solaris.adb:
21925 Change some <= to =, to avoid new warning
21927 * a-exexda.adb, prj-proc.adb:
21928 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21929 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21931 2005-11-14 Robert Dewar <dewar@adacore.com>
21933 * exp_vfpt.adb: Handle /= case
21934 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21935 so that we do not get duplicate scaling for fixed point conversions.
21937 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21939 2005-11-14 Matthew Gingell <gingell@adacore.com>
21941 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21942 Increase default priority on Lynx from 15 to 17, and meet the Ada
21943 requirement that Default_Priority be ((Priority'First +
21944 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21946 2005-11-14 Vincent Celier <celier@adacore.com>
21948 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21949 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21950 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21951 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21952 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21953 mlib-tgt-lynxos.adb (DLL_Prefix): New function
21955 2005-11-14 Doug Rupp <rupp@adacore.com>
21957 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21960 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21962 * s-traces-default.adb, s-trafor-default.ads,
21963 s-tratas-default.adb: Fix compilation errors.
21965 2005-11-14 Jose Ruiz <ruiz@adacore.com>
21967 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21968 raising the exception so the memory used is freed.
21970 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21972 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21973 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21974 (convert_address): Update comments and list of platforms using this.
21976 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21979 2005-11-14 Pascal Obry <obry@adacore.com>
21980 Vincent Celier <celier@adacore.com>
21982 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21985 * memroot.adb: Remove redundant with/use clause on
21986 System.Storage_Elements.
21988 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21990 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21991 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21992 related code to a-exexpr.adb
21993 (Save_Occurrence_And_Private): Move GCC EH related code to
21995 (Raise_Current_Excep): Add new variable Id with pragma
21996 volatile, to ensure that the variable lives on stack.
21998 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22000 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22002 Move GCC EH related code to a-exexpr-gcc.adb
22004 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22006 Split the Linux version of g-soccon into separate variants for 32 and 64
22008 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22009 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22010 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22011 of host variable $(RANLIB_FLAGS).
22012 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22013 Code clean up: remove unused/obsolete targets.
22014 (EH_MECHANISM): New variable introduced to differenciate between the
22015 two EH mechanisms statically.
22016 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22017 (LIBGNAT_OBJS): Add raise-gcc.o
22018 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22019 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22020 supports VxWorks 6 RTPs.
22021 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22022 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22024 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22026 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22028 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22029 deferral level, when abort is not allowed, to a later stage (the
22031 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22032 it will not get changed by the generated code. It was previously done
22035 2005-11-14 Thomas Quinot <quinot@adacore.com>
22036 Olivier Hainque <hainque@adacore.com>
22037 Eric Botcazou <ebotcazou@adacore.com>
22040 Factor common code to build a storage type for an unconstrained object
22041 from a fat or thin pointer type and a constrained object type.
22042 (annotate_value): Handle BIT_AND_EXPR.
22043 (annotate_rep): Don't restrict the back annotation of inherited
22044 components to the type_annotate_only case.
22045 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22046 we are not defining the type.
22047 <E_Record_Type>: Likewise.
22048 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22049 to get advantage of the new maybe_stabilize_reference interface, to
22050 ensure that what we reference is indeed stabilized instead of relying
22051 on assumptions on what the stabilizer does.
22052 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22053 type imported through a limited_with clause, use its non-limited view.
22054 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22056 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22057 of #if sections + explicit comparisons of convention identifiers.
22058 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22059 before early-returning for certain types when code generation is
22061 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22062 nullification of gnu_expr we do for objects with address clause and
22063 that we are not defining.
22064 (elaborate_expression_1): Do not create constants when creating
22065 variables needed by the debug info: the dwarf2 writer considers that
22066 CONST_DECLs is used only to represent enumeration constants, and emits
22068 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22069 object with an address clause into an indirect reference, drop the
22070 initializing expression.
22072 (STACK_CHECK_BUILTIN): Delete.
22073 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22074 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22075 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22076 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22077 corresponding to the renamed object as ignored for debugging purposes.
22079 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22080 related): For a prefix that is a dereference of a fat or thin pointer,
22081 if there is an actual subtype provided by the front-end, use that
22082 subtype to build an actual type with bounds template.
22083 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22084 is provided by the front-end, use that subtype to compute the size of
22085 the deallocated object.
22086 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22087 check for a potential violation of a No_Elaboration_Code restriction.
22088 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22089 with extra arguments to control whether to recurse through non-values
22090 and to let the caller know if the stabilization has succeeded.
22091 (gnat_stabilize_reference): Now a simple wrapper around
22092 maybe_stabilize, for common uses without restriction on lvalues and
22093 without need to check for the success indication.
22094 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22095 pass false instead of 0 as the FORCE argument which is a bool.
22096 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22097 attached to a renaming pointer has been properly stabilized, as no such
22098 object is attached otherwise.
22099 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22100 function uses the "target pointer" return mechanism.
22101 Reinstate conversion of the actual to the type of the formal
22102 parameter before any other specific treatment based on the passing
22103 mechanism. This turns out to be necessary in order for PLACEHOLDER
22104 substitution to work properly when the latter type is unconstrained.
22106 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22108 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22109 with extra arguments to control whether to recurse through non-values
22110 and to let the caller know if the stabilization has succeeded.
22112 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22113 static output of record constructor if all the components are constant.
22114 (gnat_build_constructor): For a record type, sort the list of field
22115 initializers in increasing bit position order.
22116 Factor common code to build a storage type for an unconstrained object
22117 from a fat or thin pointer type and a constrained object type.
22118 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22119 types variants, and process special cases of VIEW_CONVERT expressions
22120 as their NOP_EXPR counterpart to ensure we get to the
22121 CORRESPONDING_VARs associated with CONST_DECls.
22122 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22123 on the right-hand side.
22125 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22127 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22128 are converting back to its original type.
22129 (convert) <JM input>: Fallthrough regular conversion code instead of
22130 extracting the object if converting to a type variant.
22131 (create_var_decl): When a variable has an initializer requiring code
22132 generation and we are at the top level, check for a potential violation
22133 of a No_Elaboration_Code restriction.
22134 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22135 SIZE and SIZE_UNIT which we need for later back-annotations.
22136 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22137 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22138 is an unchecked union.
22139 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22140 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22141 main variant, just replace the VIEW_CONVERT_EXPR.
22142 <UNION_TYPE>: Revert 2005-03-02 change.
22144 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22146 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22148 2005-11-14 Matthew Heaney <heaney@adacore.com>
22150 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22151 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22152 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22153 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22154 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22155 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22156 Compiles against the spec for ordered maps described in sections
22157 A.18.6 of the most recent (August 2005) AI-302 draft.
22159 2005-11-14 Olivier Hainque <hainque@adacore.com>
22161 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22162 to ensure bias adjustments take place when need be and to prevent
22163 occurrences of intermediate overflows.
22165 2005-11-14 Matthew Gingell <gingell@adacore.com>
22166 Olivier Hainque <hainque@adacore.com>
22168 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22171 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22172 tracebacks on ia64 HP-UX and provide explanatory comment.
22173 Enable backtraces on ia64 GNU/Linux.
22174 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22175 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22177 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22178 Javier Miranda <miranda@adacore.com>
22180 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22181 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22182 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22183 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22185 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22186 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22189 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22190 subprogram that generates the external name associated with a
22191 secondary dispatch table.
22192 (Get_Secondary_DT_External_Name): New subprogram that generates the
22193 external name associated with a secondary dispatch table.
22195 2005-11-14 Emmanuel Briot <briot@adacore.com>
22197 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22198 line in the ALI file to include both an instantiation reference, and a
22201 2005-11-14 Vincent Celier <celier@adacore.com>
22203 * clean.adb (Check_Project): Look for Ada code in extending project,
22204 even if Ada is not specified as a language.
22205 Use new function DLL_Prefix for DLL_Name
22206 (Clean_Interface_Copy_Directory): New procedure
22207 (Clean_Library_Directory): New procedure
22208 (Clean_Directory): Remove procedure, no longer used
22209 (Clean_Project): Do not delete any file in an externally built project
22211 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22212 directory of an extending project, even when there are no Ada source
22214 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22215 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22217 * mlib-prj.adb (Check_Library): For all library projects, get the
22218 library file timestamp.
22219 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22220 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22221 (Clean): Remove procedure, no longer used
22222 (Ultimate_Extension_Of): New function
22223 (Build_Library): When cleaning the library directory, only remove an
22224 existing library file and any ALI file of a source of the project.
22225 When cleaning the interface copy directory, remove any source that
22226 could be a source of the project.
22228 * prj.ads, prj.adb (Project_Empty): Add values of new components
22229 Library_TS and All_Imported_Projects.
22230 (Project_Empty): Add values for new components of Project_Data:
22231 Library_ALI_Dir and Display_Library_ALI_Dir
22233 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22235 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22236 attribute Library_ALI_Dir.
22237 (Check_Library_Attributes): The library directory cannot be the same as
22238 any source directory of the project tree.
22239 (Check_Stand_Alone_Library): The interface copy directory cannot be
22240 the same as any source directory of the project tree.
22242 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22243 all temporary files.
22245 2005-11-14 Robert Dewar <dewar@adacore.com>
22246 Ed Schonberg <schonberg@adacore.com>
22248 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22249 (Check_Elab_Call): A call within a protected body is never an
22250 elaboration call, and does not require checking.
22251 (Same_Elaboration_Scope): Take into account protected types for both
22253 (Activate_Elaborate_All_Desirable): New procedure
22255 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22258 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22259 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22261 * lib-writ.ads, lib-writ.adb:
22262 Implement new AD/ED for Elaborate_All/Elaborate desirable
22263 Use new Elaborate_All_Desirable flag in N_With_Clause node
22265 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22266 N_Free_Statement nodes.
22267 Define new class N_Subprogram_Instantiation
22268 Add Elaborate_Desirable flag to N_With_Clause node
22269 Add N_Delay_Statement (covering two kinds of delay)
22271 * debug.adb: Introduce d.f flag for compiler
22272 Add -da switch for binder
22274 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22275 Cyrille Comar <comar@adacore.com>
22277 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22278 for task component, in the case of a limited aggregate. The enclosed
22279 object declaration will create it earlier. Otherwise, in the case of a
22280 nested aggregate, the object may appear in the wrong scope.
22281 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22282 (Gen_Assign): If the component being assigned is an array type and the
22283 expression is itself an aggregate, wrap the assignment in a block to
22284 force finalization actions on the temporary created for each row of the
22286 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22287 structures are initialized after all discriminants are set so that
22288 they can be accessed even when their offset is dynamic.
22290 2005-11-14 Robert Dewar <dewar@adacore.com>
22291 Hristian Kirtchev <kirtchev@adacore.com>
22293 * sem_attr.adb: Implement Machine_Rounding attribute
22294 (Analyze_Access_Attribute): The access attribute may appear within an
22295 aggregate that has been expanded into a loop.
22296 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22297 'Terminated whenever the prefix is of a task interface class-wide type.
22298 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22299 the prefix is of a task interface class-wide type.
22301 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22304 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22305 Remove pragma Inline for [Unaligned_]Valid.
22306 Add comments that Valid routines do not work for Vax_Float
22308 * exp_attr.adb: Implement Machine_Rounding attribute
22310 * snames.h: Add entry for Machine_Rounding attribute
22312 2005-11-14 Javier Miranda <miranda@adacore.com>
22313 Robert Dewar <dewar@adacore.com>
22314 Hristian Kirtchev <kirtchev@adacore.com>
22316 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22317 and related): For a prefix that is an explicit dereference of an
22318 access to unconstrained packed array type, annotate the dereference
22319 with an actual subtype so GIGI can make a correct size computation.
22320 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22321 'Unrestricted_Access, if the designated type is an interface we
22322 add a type conversion to force the displacement of the pointer
22323 to the secondary dispatch table.
22324 Use Universal_Real instead of Long_Long_Float when we need a high
22325 precision float type for the generated code (prevents gratuitous
22326 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22327 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22328 'Terminated for task interface class-wide objects. Generate a call to
22329 the predefined dispatching routine used to retrieve the _task_id from
22330 a task corresponding record.
22331 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22333 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22334 (Check_Dispatching_Operation): Protect the frontend againts
22335 previously detected errors.
22337 * Makefile.rtl: Add new instantiations of system.fat_gen
22339 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22340 Change name of instantiated package for better consistency
22341 with newly added system.fat_gen instantiations.
22343 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22344 s-fvagfl.ads: New files.
22346 2005-11-14 Cyrille Comar <comar@adacore.com>
22347 Thomas Quinot <quinot@adacore.com>
22349 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22350 assignment of a value of a tagged type that has been rewritten to a
22351 block statement, it is known by construction that no checks are
22352 necessary for the statements within the block: analyze it with checks
22354 (Expand_N_If_Statement): When killing a dead then-branch in an
22355 if-statement that has elsif_parts, recompute the Current_Value node
22356 for any entity whose value is known from the condition of the first
22358 (Expand_N_Return_Statement): When returning a mutable record, convert
22359 the return value into its actual subtype in order to help the backend
22360 to return the actual size instead of the maximum. This is another
22361 aftermath of not returning mutable records on the sec-stack anymore.
22363 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22364 handling of error msg for suspicious reverse range iteration.
22365 (Check_Possible_Current_Value_Condition): Move declaration from body to
22366 spec, to allow this subprogram to be called from exp_ch5.
22368 2005-11-14 Thomas Quinot <quinot@adacore.com>
22370 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22371 generate a set of nested array aggregates instead of a single flat
22372 aggregate for multi-dimensional arrays.
22374 2005-11-14 Pascal Obry <obry@adacore.com>
22376 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22377 by spawnve is a process handle, no need to convert. Add a parameter
22378 close to control wether the process handle must be closed.
22379 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22380 a process handle, not need to convert.
22381 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22383 * g-expect.adb: (Kill): Document the new close parameter.
22384 (Close): Do not release the process handle in the kill there as
22385 waitpid() is using it.
22386 (Send_Signal): Release the process handle.
22388 2005-11-14 Robert Dewar <dewar@adacore.com>
22390 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22391 need a high precision float type for the generated code (prevents
22392 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22395 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22396 need a high precision float type for the generated code (prevents
22397 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22399 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22400 allowed on non-static enumeration subtypes. Force a load error to emit
22401 the correct diagnostic.
22403 2005-11-14 Thomas Quinot <quinot@adacore.com>
22404 Robert Dewar <dewar@adacore.com>
22405 Ed Schonberg <schonberg@adacore.com>
22407 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22408 subtype to compute the size of the designated object at run-time,
22409 create such a subtype and store it in the Actual_Designated_Subtype
22410 attribute of the N_Free_Statement.
22411 Generate itype for classwide designated object in both cases of
22412 user-specified storage pool: specific and class-wide, not only in the
22414 Raise CE when trying to set a not null access type object to null.
22415 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22416 an explicit loop, because freeze nodes make its position variable.
22418 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22421 2005-11-14 Javier Miranda <miranda@adacore.com>
22423 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22424 Build_Stream_Procedure): Add the null-excluding attribute to the first
22426 This has no semantic meaning under Ada95 mode but it is a
22427 requirement under Ada05 mode.
22429 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22430 the null exclusion is used under Ada95 mode
22431 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22432 (P_Access_Definition): Remove assertion that forbids the use of
22433 the null-exclusion feature in Ada95.
22435 2005-11-14 Robert Dewar <dewar@adacore.com>
22437 * impunit.adb: Exclude container helper units not intended for use by
22440 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22442 * freeze.adb (Freeze_Entity): For an access formal that is an access
22443 to subprogram, freeze the anonymous subprogram type at the same time,
22444 to prevent later freezing in the wrong scope, such as the enclosing
22446 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22447 subprogram whenever available.
22449 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22452 * gnatvsn.ads (Library_Version): Bump to 4.1
22454 2005-11-14 Robert Dewar <dewar@adacore.com>
22456 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22457 Storage_Offset to avoid wrap around causing invalid results.
22459 2005-11-14 Pascal Obry <obry@adacore.com>
22461 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22463 (Scan_Bind_Arg): Fail with an error message if -M option is used
22464 on a native compiler.
22466 2005-11-14 Robert Dewar <dewar@adacore.com>
22467 Vincent Celier <celier@adacore.com>
22469 * gprep.adb: Implement -C switch to scan comments
22471 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22473 * scans.ads: Comment updates (including new use of Tok_Comment in
22476 * opt.ads: Add documentation for flags that are used by gprmake,
22477 currently and in the next version of gprmake.
22478 (Verbosity_Level): New variable
22479 Add Replace_In_Comments switch
22481 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22483 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22485 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22487 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22488 message, friendlier.
22490 2005-11-14 Robert Dewar <dewar@adacore.com>
22492 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22494 2005-11-14 Doug Rupp <rupp@adacore.com>
22496 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22498 2005-11-14 Robert Dewar <dewar@adacore.com>
22500 * interfac.ads: Change declarations of IEEE float types so that we no
22501 longer need a separate version of this package for VMS.
22503 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22505 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22506 internal entity created for the declaration of a child subprogram body
22507 with no spec as coming from source, to generate proper cross-reference
22510 2005-11-14 Vincent Celier <celier@adacore.com>
22512 * make.adb (Compile_Sources): Change verbose message to minimum
22513 verbosity level High for "is in an Ada library", "is a read-only
22514 library" and "is an internal library",
22515 (Create_Binder_Mapping_File): Path name of ALI file for library project
22516 must include the library directory, not the object directory.
22517 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22518 for new switches -vl, -vm and -vh.
22519 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22520 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22521 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22522 in a project that is externally built.
22523 (Compute_All_Imported_Projects): New procedure
22524 (Gnatmake): Check if importing libraries should be regenerated because
22525 at least an imported library is more recent.
22526 (Initialize): For each project compute the list of the projects it
22527 imports directly or indirectly.
22528 (Add_Library_Search_Dir): New procedure, used in place of
22529 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22530 put in the search paths.
22531 (Add_Source_Search_Dir): New procedure, used in place of
22532 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22533 put in the search paths.
22534 (Mark_Directory): Resolve the absolute path the directory before marking
22537 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22538 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22539 Switch. Do not handle any exception.
22540 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22541 so that the switch is recognized as valid.
22542 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22544 2005-11-14 GNAT Script <nobody@adacore.com>
22546 * Make-lang.in: Makefile automatically updated
22548 2005-11-14 Pascal Obry <obry@adacore.com>
22550 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22552 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22553 In both cases the last argument was dropped.
22555 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22557 * namet.h: (Column_Numbe): New type.
22558 (Get_Column_Number): Define to sinput__get_column_number.
22559 (Instantiation): Define to sinput__instantiation.
22560 (Get_Column_Number): Declare.
22561 (Instantiation): Likewise.
22563 2005-11-14 Robert Dewar <dewar@adacore.com>
22565 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22566 syntax, which could cause compiler hangs.
22568 2005-11-14 Vincent Celier <celier@adacore.com>
22570 * prj-ext.adb: Take into account new environment variable
22571 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22573 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22574 normalize its path name, making it absolute and resolving symbolic
22575 links, and replace the original if resolved path is different.
22577 2005-11-14 Vincent Celier <celier@adacore.com>
22579 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22580 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22582 2005-11-14 Emmanuel Briot <briot@adacore.com>
22584 * prj-pp.adb (Print): Do not output the with statement if the
22585 associated name is empty, which happens for virtual extending projects.
22586 (Print): Preserve the "extends all" attribute when printing the project.
22588 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22589 a virtual extending project.
22591 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22593 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22594 rhs of an assignment even if the type is unconstrained, when the
22595 context is non-expanding.
22596 In an inlined body, if the context type is private,
22597 resolve with its full view, which must be a composite type.
22599 2005-11-14 Robert Dewar <dewar@adacore.com>
22600 Ed Schonberg <schonberg@adacore.com>
22602 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22603 Do not give obsolescent warning on with of subprogram (since we
22605 (Analyze_With_Clause): Add test for obsolescent package
22606 (Install_Context_Clauses): If the unit is the body of a child unit, do
22607 not install twice the private declarations of the parents, to prevent
22608 circular lists of Use_Clauses in a parent.
22609 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22610 compiling body of child unit.
22611 Use new class N_Subprogram_Instantiation
22612 (Expand_With_Clause): If this is a private with_clause for a child unit,
22613 appearing in the context of a package declaration, then the implicit
22614 with_clauses generated for parent units are private as well.
22615 (License_Check): Do not generate message if with'ed unit is internal
22617 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22618 Ed Schonberg <schonberg@adacore.com>
22619 Thomas Quinot <quinot@adacore.com>
22621 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22622 names are internal, because they will not have a corresponding partner
22623 in the actual package.
22624 (Analyze_Formal_Package): Move the setting of the formal package spec's
22625 Generic_Parent field so that it occurs prior to analyzing the package,
22626 to allow proper operation of Install_Parent_Private_Declarations.
22627 (Analyze_Package_Instantiation): Set the instantiated package entity's
22628 Package_Instantiation field.
22629 (Get_Package_Instantiation_Node): Move declaration to package spec.
22630 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22632 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22633 instantiation is Unchecked_Conversion, for which no parents are needed.
22634 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22635 parent scopes of a scope being removed prior to inlining an instance
22637 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22638 the current context is itself an instance within a non-instance child
22639 unit, to prevent scope stack errors.
22640 (Save_References): If the node is an aggregate that is an actual in a
22641 call, rewrite as a qualified expression to preserve some type
22642 information, to resolve possible ambiguities in the instance.
22643 (Instance_Parent_Unit): New global variable to record the ultimate
22644 parent unit associated with a generic child unit instance (associated
22645 with the existing Parent_Unit_Visible flag).
22646 (type Instance_Env): New component Instance_Parent_Unit for stacking
22647 parents recorded in the global Instance_Parent_Unit.
22648 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22650 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22651 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22652 not already set. Replace test of Is_Child_Unit with test of parent's
22653 scope against package Standard. Add comments and a ??? comment.
22654 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22655 on a child instance parent to test that the parent equals
22656 Instance_Parent rather than simply checking that the unit is not a
22658 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22659 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22660 a formal interface are ancestors of the corresponding actual.
22661 (Validate_Formal_Interface_Type): Additional legality checks.
22662 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22663 interface types with ancestors.
22664 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22665 to diagnose attempts to use generic within its own declaration.
22667 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22668 Javier Miranda <miranda@adacore.com>
22670 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22672 (Build_Private_Derived_Type): The entity of the created full view of the
22673 derived type does not come from source. If after installing the private
22674 declarations of the parent scope the parent is still private, use its
22675 full view to construct the full declaration of the derived type.
22676 (Build_Derived_Record_Type): Relax the condition that controls the
22677 execution of the check that verifies that the partial view and
22678 the full view agree in the set of implemented interfaces. In
22679 addition, this test now only takes into account the progenitors.
22680 (Derive_Interface_Subprograms): No need to derive subprograms
22681 of ancestors that are interfaces.
22682 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22684 Change name Is_Package to Is_Package_Or_Generic_Package
22685 (Complete_Subprograms_Derivation): Handle the case in which the full
22686 view is a transitive derivation of the ancestor of the partial view.
22687 (Process_Full_View): Rename local subprogram Find_Interface_In_
22688 Descendant to Find_Ancestor_Interface to leave the code more clear.
22689 Remove wrong code that avoids the generation of an error message
22690 when the immediate ancestor of the partial view is an interface.
22691 In addition some minor reorganization of the code has been done to
22692 leave it more clear.
22693 (Analyze_Type_Declaration): If type has previous incomplete tagged
22694 partial view, inherit properly its primitive operations.
22695 (Collect_Interfaces): Make public, for analysis of formal
22697 (Analyze_Interface_Declaration): New procedure for use for regular and
22698 formal interface declarations.
22699 (Build_Derived_Record_Type): Add support for private types to the code
22700 that checks if a tagged type implements abstract interfaces.
22701 (Check_Aliased_Component_Type): The test applies in the spec of an
22703 (Access_Type_Declaration): Clean up declaration of malformed type
22704 declared as an access to its own classwide type, to prevent cascaded
22706 (Collect_Interfaces): For private extensions and for derived task types
22707 and derived protected types, the parent may be an interface that must
22708 be included in the interface list.
22709 (Access_Definition): If the designated type is an interface that may
22710 contain tasks, create Master_Id for it before analyzing the expression
22711 of the declaration, which may be an allocator.
22712 (Record_Type_Declaration): Set properly the interface kind, for use
22713 in allocators, the creation of master id's for task interfaces, etc.
22715 2005-11-14 Javier Miranda <miranda@adacore.com>
22716 Ed Schonberg <schonberg@adacore.com>
22718 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22719 omitted in case of stream attribute subprograms.
22720 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22721 appear immediately after a subprogram body, when there is no previous
22722 subprogram declaration.
22723 Change name Is_Package to Is_Package_Or_Generic_Package
22724 (Process_Formals): A non null qualifier on a non null named access
22725 type is not an error, and is a warning only if Redundant_Constructs
22728 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22729 Ed Schonberg <schonberg@adacore.com>
22731 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22732 nested within Analyze_Package_Specification to install the private
22733 declarations and use clauses within each of the parent units of a
22734 package instance of a generic child package.
22735 (Analyze_Package_Specification): When entering a private part of a
22736 package associated with a generic instance or formal package, the
22737 private declarations of the parent must be installed (by calling new
22738 procedure Install_Parent_Private_Declarations).
22739 Change name Is_Package to Is_Package_Or_Generic_Package
22740 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22741 record is absent in a generic context, which does not indicate a
22744 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22746 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22747 not try to rewrite a renamed stream attribute, because the operations
22748 on the type may not have been generated.
22749 Handle properly a renaming_as_body generated for a stream operation
22750 whose default is abstract because the object type itself is abstract.
22751 (Find_Type): If the type is incomplete and appears as the prefix of a
22752 'Class reference, it is tagged, and its list of primitive operations
22753 must be initialized properly.
22754 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22755 private declaration of a parent unit, prior to compiling the private
22756 part of a child unit, find on the scope stack the proper parent entity
22757 on which to link the use clause.
22758 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22760 (Analyze_Object_Renaming): An attribute reference is not a legal object
22761 if it is not a function call.
22763 2005-11-14 Robert Dewar <dewar@adacore.com>
22764 Ed Schonberg <schonberg@adacore.com>
22766 * sem_eval.adb: Implement d.f flag
22767 (Subtype_Statically_Match): A generic actual type has unknown
22768 discriminants when the corresponding actual has a similar partial view.
22769 If the routine is called to validate the signature of an inherited
22770 operation in a child instance, the generic actual matches the full view,
22772 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22773 Ed Schonberg <schonberg@adacore.com>
22774 Robert Dewar <dewar@adacore.com>
22775 Thomas Quinot <quinot@adacore.com>
22777 * sem_res.adb (Resolve_Call): Provide a better error message whenever
22778 a procedure call is used as a select statement trigger and is not an
22779 entry renaming or a primitive of a limited interface.
22780 (Valid_Conversion): If the operand has a single interpretation do not
22781 remove address operations.
22782 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22783 statement to inhibit warning.
22784 (Resolve_Unary_Op): Do not produce a warning when
22785 processing an expression of the form -(A mod B)
22786 Use Universal_Real instead of Long_Long_Float when we need a high
22787 precision float type for the generated code (prevents gratuitous
22788 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22789 (Resolve_Concatenation_Arg): Improve error message when argument is an
22790 ambiguous call to a function that returns an array.
22791 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22792 there is an implicit operator in the given scope if we are within an
22793 instance: legality check has been performed on the generic.
22794 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22795 after resolving operand, to avoid false warnings on overloaded calls.
22797 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22798 Javier Miranda <miranda@adacore.com>
22801 * sem_type.adb (Covers): In an inlined body, a composite type matches
22802 a private type whose full view is a composite type.
22803 (Interface_Present_In_Ancestor): Protect the frontend against
22804 previously detected errors to ensure that its compilation
22805 with assertions enabled gives the same output that its
22806 compilation without assertions.
22807 (Interface_Present_In_Ancestor): Add support for private types.
22808 Change name In_Actual to In_Generic_Actual (clean up)
22809 (Disambiguate): New predicate In_Actual, to recognize expressions that
22810 appear in the renaming declaration generated for generic actuals, and
22811 which must be resolved in the outer context.
22813 2005-11-14 Robert Dewar <dewar@adacore.com>
22814 Thomas Quinot <quinot@adacore.com>
22815 Hristian Kirtchev <kirtchev@adacore.com>
22816 Ed Schonberg <schonberg@adacore.com>
22818 * sem_util.ads, sem_util.adb: Change name Is_Package to
22819 Is_Package_Or_Generic_Package.
22820 (Check_Obsolescent): New procedure.
22821 (Set_Is_Public): Remove obsolete junk test.
22822 (Set_Public_Status): Do not set Is_Public on an object whose declaration
22823 occurs within a handled_sequence_of_statemets.
22824 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22825 for a parameterless procedure.
22826 (Enter_Name): Recognize renaming declarations created for private
22827 component of a protected type within protected operations, so that
22828 the source name of the component can be used in the debugger.
22830 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22831 Robert Dewar <dewar@adacore.com>
22833 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22834 of a generic subprogram are not visible outside the body.
22835 (Set_Warning_Switch): New procedure (code to set warning mode moved
22836 here from Switch.C so that it can be shared by pragma processing.
22837 (Check_References): Special case warning for non-modified non-imported
22839 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22840 form with a string literal argument
22842 2005-11-14 Javier Miranda <miranda@adacore.com>
22844 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22846 (Write): Addition of "not null" to the anonymous access.
22847 (Read): Addition of "not null" to the anonymous access.
22848 (Write): Addition of "not null" to the anonymous access.
22850 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22851 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22852 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22853 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22854 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22855 "not null" to the anonymous access.
22857 2005-11-14 Robert Dewar <dewar@adacore.com>
22859 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22862 2005-11-14 Vincent Celier <celier@adacore.com>
22864 * switch.adb (Bad_Switch): New procedure
22865 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22866 message when in error.
22868 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22869 Too_Many_Output_Files): Remove declarations, no longer used.
22870 (Scan_Nat): New parameter Switch
22872 (Bad_Switch): New procedure
22874 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22875 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22876 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22877 to Osint.Fail. Do not handle any exception.
22879 2005-11-14 Vincent Celier <celier@adacore.com>
22881 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22882 designates a non existent directory.
22884 2005-11-14 Robert Dewar <dewar@adacore.com>
22886 * xgnatugn.adb: Replace invalid membership test by 'Valid
22888 2005-11-14 Vincent Celier <celier@adacore.com>
22890 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22891 there is no object directory.
22893 2005-11-14 Robert Dewar <dewar@adacore.com>
22895 * usage.adb: Minor adjustment to output format, use nn instead of nnn
22896 (so that -gnateInnn does not run into next column)
22898 2005-11-14 Ed Falis <falis@adacore.com>
22900 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22903 2005-11-14 Cyrille Comar <comar@adacore.com>
22905 * s-chepoo.ads: Add comments on Dereference.
22906 Remove unnecessary inherited abstract primitives.
22909 2005-11-14 Robert Dewar <dewar@adacore.com>
22911 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22912 node parameter, not needed, since it is available as Declaration_Node.
22914 2005-11-14 Geert Bosch <bosch@adacore.com>
22916 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22917 grammatically correct.
22919 2005-11-14 Vincent Celier <celier@adacore.com>
22921 * s-fileio.ads: Correct spelling error in comment
22923 2005-11-14 Cyrille Comar <comar@adacore.com>
22924 Robert Dewar <dewar@adacore.com>
22925 Vincent Celier <celier@adacore.com>
22926 Ben Brosgol <brosgol@adacore.com>
22927 Jose Ruiz <ruiz@adacore.com>
22928 Pascal Obry <obry@adacore.com>
22931 Document that -fstack-check is needed for strict compliance with the
22932 Ada 95 Reference Manual.
22933 Correct reference to VAX systems to meet HP guidelines
22934 Add documentation for new gnatmake switches -vl, -vm and -vh
22935 Replace DEC Ada by HP Ada
22936 Replace DIGITAL by HP
22937 Remove empty section on tools in compatibility section
22938 Clarify the Windows convention semantics.
22939 Document the Win32 calling convention.
22940 The Stdcall, Win32 and DLL convention are synonyms.
22941 Add a note in -gnatR description about zero size record components
22942 Note on new >= and <= warnings for -gnatwc
22943 Document that equal sign after -gnatm is optional.
22944 Note that strip is working fine on DLL built with a Library
22945 Project. The restriction apply only to DLL built with gnatdll.
22946 Update section about the way to debug a DLL.
22947 Update information about the DLL convention.
22948 Document -C switch for gnatprep
22949 Document new attribute Library_ALI_Dir
22950 Update elaboration doc to include implicit Elaborate pragmas now
22951 generated for subprogram instantiations.
22952 Document limitation on executable names that include spaces for --GCC,
22953 --GNATBIND, and --GNATLINK switches.
22954 Document that -w causes -gnatws to be added at start of gcc switches
22956 * gnat_rm.texi: Document that -mieee is needed for generating infinite
22957 and NaN values in case of overflow on machines that are not fully
22958 compliant with the IEEE floating-point standard.
22959 Create a section describing the set of compiler options needed for
22960 strict compliance with the Ada 95 Reference Manual.
22961 Add documentation for pragma Obsolescent applied to a package
22962 Clarify potential issues of mixed language programs related to the
22963 I/O buffering enabling in the elaboration of the GNAT runtime.
22964 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22965 This documentation only patch adds extra documentsion for pragma
22966 Restrictions (No_Elaboration_Code), explaining why it is not possible
22967 to document this restriction in terms of allowed source constructs.
22968 Document string literal form of pragma Warnings
22969 Document new attribute Library_ALI_Dir
22970 Add documentation on stable attributes in project files that was missing
22972 * gnat-style.texi: Indicate that paragraphs within a single comment
22973 should be separated by empty comment lines
22975 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22978 * bindusg.adb: Minor cleanup, put -m before -M for consistency
22980 2005-11-14 Robert Dewar <dewar@adacore.com>
22982 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22983 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22984 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22985 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22986 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22987 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22988 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22989 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22990 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22991 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22992 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22993 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22994 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22995 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22996 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22997 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22998 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22999 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23000 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23001 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23002 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23003 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23004 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23005 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23006 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23007 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23008 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23009 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23010 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23011 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23012 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23013 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23014 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23015 system-interix.ads, system-solaris-sparc.ads,
23016 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23017 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23018 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23019 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23020 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23021 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23022 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23023 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23024 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23025 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23026 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23027 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23028 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23029 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23030 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23031 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23032 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23033 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23034 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23035 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23036 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23037 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23038 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23039 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23040 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23041 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23042 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23043 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23044 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23045 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23046 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23047 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23048 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23049 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23050 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23051 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23052 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23053 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23054 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23055 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23056 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23057 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23058 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23059 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23060 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23061 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23062 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23063 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23064 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23065 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23066 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23067 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23068 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23069 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23070 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23071 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23072 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23073 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23074 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23075 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23076 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23077 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23078 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23079 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23080 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23081 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23082 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23083 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23084 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23085 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23086 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23087 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23088 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23089 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23090 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23091 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23092 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23093 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23094 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23095 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23096 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23097 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23098 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23099 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23100 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23101 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23102 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23103 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23104 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23105 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23106 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23107 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23108 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23109 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23110 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23111 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23112 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23113 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23114 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23115 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23116 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23117 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23118 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23119 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23120 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23121 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23122 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23123 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23124 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23125 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23126 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23127 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23128 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23129 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23130 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23131 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23132 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23133 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23134 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23135 a-numaux-darwin.ads, a-numaux-darwin.adb,
23136 a-swuwha.ads, a-stunha.ads: Minor reformatting
23138 2005-11-14 Robert Dewar <dewar@adacore.com>
23141 * osint-m.adb: Add pragma Elaborate_All for Osint
23143 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23146 * trans.c (call_to_gnu): Restore statement lost in translation.
23148 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23150 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23151 (__gnat_adjust_context_for_raise): Add conditional code so that the
23152 IA-64 is also supported.
23154 2005-11-03 James E Wilson <wilson@specifix.com>
23157 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23158 TREE_OVERFLOW check.
23160 2005-09-21 Olivier Hainque <hainque@adacore.com>
23163 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23164 as we create them to store a size in bits.
23166 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23174 * utils2.c (build_return_expr): New helper function.
23175 * gigi.h (build_return_expr): Declare it.
23176 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23177 of manually building the RETURN_EXPR tree.
23178 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23179 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23180 build_binary_op for the "target pointer" case. Use build_return_expr
23181 instead of manually building the RETURN_EXPR tree.
23183 2005-09-16 Laurent Guerby <laurent@guerby.net>
23186 * s-tpinop.ads: Make this unit Preelaborate.
23188 2005-09-16 Andreas Jaeger <aj@suse.de>
23190 * socket.c: Add string.h for memcpy.
23192 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23194 * dec-io.ads, dec-io.adb: Removed, no longer used.
23196 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23198 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23200 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23201 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23202 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23203 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23204 dependent units are Preelaborate.
23205 (Initialize): Call Interrupt_Managemeent.Initialize and
23206 OS_Primitives.Initialize to ensure proper initialization of this unit.
23207 Remove use of System.Soft_Links
23208 Make this unit Preelaborate.
23210 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23211 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23212 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23213 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23214 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23215 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23216 Add pragma Preelaborate, since these packages are suitable for this
23220 * s-traent-vms.ads, s-intman-dummy.adb,
23221 s-taprop-dummy.adb: Make this unit Preelaborate.
23223 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23224 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23225 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23226 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23227 s-intman-solaris.adb, s-intman-irix-athread.adb,
23228 s-intman-irix.adb: Mark this unit Preelaborate.
23229 (Initialize): New procedure.
23232 * s-taspri-linux.ads: Removed.
23234 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23235 as done by other implementations (e.g. posix).
23237 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23238 responsible for deferring abort.
23239 Mark this unit Preelaborate.
23241 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23242 proper initialization of the tasking run-time.
23244 * s-tasdeb.ads: Mark this unit Preelaborate.
23245 (Known_Tasks): Add explicit default value to avoid elaboration code.
23247 * s-inmaop-vms.adb (Elaboration code): Add call to
23248 Interrupt_Management.Initialize since the elaboration code depends on
23249 proper initialization of this package.
23251 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23252 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23253 s-osprim-posix.adb: Make this unit Preelaborate.
23255 * a-calend.adb: Add call to OS_Primitives.Initialize
23257 * a-elchha.adb: Update use of Except.Id.Full_Name.
23258 Minor reformatting.
23259 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23261 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23262 Move with clauses outside Warnings Off now that dependent units are
23264 Use raise xxx with "..."; Ada 2005 form.
23266 * a-taside.ads, a-taside.adb:
23267 Remove some dependencies, to make it easier to make this unit truly
23269 Rewrite some code to be conformant with Preelaborate rules.
23271 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23272 marked Preelaborate in the future.
23274 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23275 these units Preelaborate.
23277 * s-exctab.adb: Update use of Except.Id.Full_Name.
23279 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23280 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23281 Set_Exc_Stack_Addr): Removed, no longer used.
23282 Remove reference to *Machine_State_Addr*, no longer needed.
23284 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23285 (Exception_Data): Full_Name is now a System.Address so that this unit
23286 can be made Preelaborate.
23287 Clean up/simplify code thanks to Full_Name being a System.Address.
23288 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23290 * s-taskin.ads, s-taskin.adb:
23291 Move with clauses outside Warnings Off now that dependent units are
23293 Make this unit Preelaborate.
23294 (Initialize): New proceduure, replace elaboration code and makes the
23295 set up of the tasking run-time cleaner.
23296 (Detect_Blocking): Now a function instead of a deferred boolean, to
23297 obey Preelaborate rules.
23299 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23300 soft links, no longer used.
23302 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23303 packages are suitable for this categorization.
23305 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23306 since we compile run-time sources in Ada 2005 mode.
23307 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23308 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23310 Remove reference to *Machine_State_Addr*, no longer needed.
23312 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23314 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23315 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23316 Remove reference to System.Exceptions.
23318 * s-mastop-x86.adb: Removed, no longer used.
23320 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23322 * a-excach.adb: Minor reformatting.
23324 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23325 instead fix new warnings that were hidden by this change.
23326 (AAA, ZZZ): Removed, replaced by...
23327 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23328 are used instead of constants, to help make Ada.Exception truly
23330 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23331 Raise_Storage_Error): File is now a System.Address, to simplify code.
23332 (Elab code): Removed, no longer used.
23333 (Null_Occurrence): Remove Warnings Off and make this construct
23335 Remove code related to front-end zero cost exception handling, since
23336 it is no longer used.
23337 Remove -gnatL/-gnatZ switches.
23339 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23340 Update use of Except.Msg.
23342 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23343 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23344 to front-end zero cost exception handling, since it is no longer used.
23345 Remove -gnatL/-gnatZ switches.
23347 * lib-writ.ads: Minor reformatting
23350 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23352 * Make-lang.in: Remove references to s-except.ads
23354 * s-except.ads: Removed, no longer used.
23356 * s-mastop.ads, s-mastop.adb:
23357 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23358 Remove reference to System.Exceptions.
23360 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23361 switch-b.adb: Remove code related to front-end zero cost exception
23362 handling, since it is no longer used.
23363 Remove -gnatL/-gnatZ switches.
23365 2005-09-01 Robert Dewar <dewar@adacore.com>
23366 Gary Dismukes <dismukes@adacore.com>
23367 Javier Miranda <miranda@adacore.com>
23369 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23370 type by valid test and generate warning.
23371 (Tagged_Membership): Generate call to the run-time
23372 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23373 Change formal name Subtype_Mark to Result_Definition in several calls to
23374 Make_Function_Specification.
23375 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23376 check for proper accessibility of the operand of a class-wide allocator.
23377 The check can be left out if checks are suppressed or if the expression
23378 has a specific tagged type whose level is known to be safe.
23380 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23381 generates the run-time check associated with null-excluding entities.
23382 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23383 check on the level of the return expression of a class-wide function
23384 can be elided. The check usually isn't needed if the expression has a
23385 specific type (unless it's a conversion or a formal parameter). Also
23386 add a test for whether accessibility checks are suppressed. Augment
23387 the comments to describe the conditions for performing the check.
23389 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23390 Javier Miranda <miranda@adacore.com>
23391 Gary Dismukes <dismukes@adacore.com>
23392 Ed Schonberg <schonberg@adacore.com>
23394 * a-tags.adb (IW_Membership): Give support to
23395 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23396 subprogram has been extended to look for the tag in the ancestors tag
23398 Update the structure of the GNAT Dispatch Table to reflect the
23399 additional two tables used in dispatching selects.
23400 Introduce appropriate array types and record components in
23401 Type_Specific_Data to reflect the two tables.
23402 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23403 the TSD of a tag, indexed by position.
23404 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23405 operation kind in the TSD of a tag, indexed by position.
23407 * a-tags.ads: Introduce an enumeration type to capture different
23408 primitive operation kinds. Define a constant reflecting the number of
23409 predefined primitive operations.
23410 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23411 of an entry wrapper.
23412 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23413 callable entity of a primitive operation.
23415 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23416 primitive operations used in dispatching selects for limited
23417 interfaces, limited tagged, task and protected types what implement a
23419 (Freeze_Type): Generate the bodies of the primitive operations used in
23420 dispatching selects for limited tagged, task and protected types that
23421 implement a limited interface. Generate statements to populate the two
23422 auxiliary tables used for dispatching in select statements.
23423 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23424 associated with predefined interface primitive operations.
23425 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23426 Set_Result_Definition.
23427 (Build_Variant_Record_Equality): Change Subtype_Mark to
23429 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23430 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23431 (Build_Assignment): Simplify the code that adds the run-time-check.
23432 (Expand_N_Object_Declaration): Code cleanup.
23434 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23435 entries when there is a protected type that implements a limited
23438 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23439 common routines used in expansion of dispatching selects.
23440 (Add_Private_Declarations): Select the appropriate protection type when
23441 there is a protected type that implements a limited interface.
23442 (Build_Parameter_Block): Generate a wrapped parameter block.
23443 (Build_Protected_Subprogram_Body): Select the appropriate type for
23444 locking entries when there is a protected type that implements a
23446 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23447 classified as entry wrappers.
23448 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23449 asynchronous selects.
23450 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23451 dispatching conditional selects.
23452 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23453 protection when there is a protected type that implements limited
23455 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23457 (Extract_Dispatching_Call): Extract the entity of the name of a
23458 dispatching call, the object parameter, actual parameters and
23459 corresponding formals.
23460 (Make_Initialize_Protection): Correct logic of protection initialization
23461 when there is a protected type that implements a limited interface.
23462 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23463 values of actual parameters.
23464 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23465 block and assign them to the original actual parameters.
23467 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23468 (Build_Protected_Sub_Specification): Change the type and name of the
23469 last formal to account for the increased variety of protection modes.
23471 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23472 entities. Used to save the value of the Is_Hidden attribute when the
23473 limited-view is installed.
23474 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23475 the attribute of procedures classified as entry wrappers.
23476 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23477 entity of a primitive wrapper.
23478 (Write_Entity_Flags): Output the name and value of the
23479 Is_Primitive_Wrapper attribute.
23480 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23482 (Underlying_Type): If we have an incomplete entity that comes from
23483 the limited view then we return the Underlying_Type of its non-limited
23484 view if it is already available.
23485 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23486 including operators.
23487 (Write_Field26_Name): Add entry for Overridden_Operation
23488 (Overridden_Operation): New attribute of functions and procedures.
23490 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23491 predefined position in the dispatch table for the primitive operations
23492 used in dispatching selects.
23493 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23494 predefined primitive operations and replace it with
23495 Default_Prim_Op_Count.
23496 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23497 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23498 the names of the generated primitive operations used in dispatching
23500 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23501 case of abstract interface types. They will be inherit by the objects
23502 implementing the interface.
23503 (Make_DT): There is no need to inherit the dispatch table of the
23504 ancestor interface for the elaboration of abstract interface types.
23505 The dispatch table will be inherited by the object implementing the
23507 (Copy_Secondary_DTs): Add documentation.
23508 (Validate_Position): Improve this static check in case of
23509 aliased subprograms because aliased subprograms must have
23511 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23512 the entries associated with predefined primitives of all the secondary
23514 (Build_Anonymous_Access_Type): Removed.
23515 (Expand_Interface_Actuals): With the previous cleanup there is no need
23516 to build an anonymous access type. This allows further cleanup in the
23517 code generated by the expander.
23518 (Expand_Interface_Conversion): If the actual is an access type then
23519 build an internal function to handle the displacement. If the actual
23520 is null this function returns null because no displacement is
23521 required; otherwise performs a type conversion that will be
23522 expanded in the code that returns the value of the displaced actual.
23523 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23524 conversions that have no effect in the generated code because no
23525 displacement is required. Code cleanup; use local variables to
23526 avoid repeated calls to the subprogram directly_designated_type().
23528 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23529 Classify the primitive operations used in dispatching selects as
23531 (Implements_Limited_Interface): Determine whether some type either
23532 directly implements a limited interface or extends a type that
23533 implements a limited interface.
23534 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23535 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23536 expression is limited.
23537 (Find_Interface_Tag): Add code to handle class-wide types and
23538 entities from the limited-view.
23540 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23541 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23542 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23543 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23546 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23547 of procedure name or prefix that appears as a trigger in a triggering
23550 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23552 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23554 * s-tataat.adb, a-tasatt.adb:
23555 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23557 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23558 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23559 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23562 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23563 Jose Ruiz <ruiz@adacore.com>
23565 * s-taprop-vxworks.adb:
23566 Move with clauses outside Warnings Off now that dependent units are
23568 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23569 initialization of this unit.
23570 (Specific): Add new procedures Initialize and Delete so that this
23571 package can be used for VxWorks 5.x and 6.x
23572 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23573 differences between VxWorks 5.x and 6.x
23574 Minor reformatting.
23575 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23577 Use only Preelaborate-compatible constructs.
23579 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23580 Primitives.Operations.
23581 (Delete, Initialize): New procedures.
23583 * s-osinte-vxworks.adb: Body used to handle differences between
23584 VxWorks 5.x and 6.x
23585 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23587 * s-osinte-vxworks.ads: Minor reformatting.
23588 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23589 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23591 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23592 between Vxworks 5 and 6.
23593 (taskLock, taskUnlock): Removeed, no longer used.
23595 * adaint.c: The wait.h header is not located in the sys directory on
23596 VxWorks when using RTPs.
23597 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23599 (__gnat_dup): dup is available on Vxworks when using RTPs.
23600 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23602 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23604 * expect.c: The wait.h header is not located in the sys directory on
23605 VxWorks when using RTPs.
23607 2005-09-01 Thomas Quinot <quinot@adacore.com>
23609 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23611 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23613 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23614 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23615 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23616 g-soccon-freebsd.ads: Add new constants:
23618 SO_RCVTIMEO/SO_SNDTIMEO
23622 Move all target-specific file inclusions and macro definitions to
23623 gsocket.h, in order to ensure that any C code in socket.c will see a
23624 set of constants that is consistent with the contents of g-soccon.ads.
23626 * gsocket.h: Code imported from gen-soccon.c:
23627 Move all target-specific file inclusions and macro definitions to
23628 gsocket.h, in order to ensure that any C code in socket.c will see a set
23629 of constants that is consistent with the contents of g-soccon.ads.
23630 This change also makes gen-soccon self-contained (removing dependencies
23631 upon GCC internal headers).
23633 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23635 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23637 * socket.c: Minor reformatting.
23639 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23640 Thomas Quinot <quinot@adacore.com>
23642 * fname-sf.adb, mlib-tgt.ads,
23643 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23644 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23645 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23646 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23647 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23648 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23649 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23650 makegpr.adb: Remove redundant use_clauses.
23652 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23654 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23655 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23656 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23657 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23658 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23659 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23660 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23661 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23662 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23663 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23664 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23665 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23666 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23667 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23668 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23669 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23670 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23671 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23672 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23673 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23674 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23675 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23676 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23677 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23678 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23679 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23680 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23681 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23682 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23683 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23684 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23685 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23686 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23687 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23688 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23689 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23690 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23691 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23692 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23693 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23694 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23695 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23696 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23697 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23698 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23699 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23700 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23701 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23702 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23703 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23704 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23705 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23706 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23707 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23708 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23709 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23710 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23711 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23712 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23713 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23714 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23715 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23716 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23717 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23718 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23719 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23720 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23721 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23722 and always use the no parameter form for consistency.
23724 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23726 2005-09-01 Robert Dewar <dewar@adacore.com>
23728 * binde.adb: Minor reformatting
23729 (Find_Elab_Order): Output warning if -p used with static elab order
23731 2005-09-01 Robert Dewar <dewar@adacore.com>
23733 * checks.adb (Check_Needed): New procedure, deals with removing checks
23734 based on analysis of short-circuited forms. Also generates warnings for
23735 improper use of non-short-circuited forms.
23738 2005-09-01 Robert Dewar <dewar@adacore.com>
23740 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23743 2005-09-01 Robert Dewar <dewar@adacore.com>
23745 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23747 Implement new insertion char < (conditional warning)
23748 * errutil.adb, erroutc.adb: Implement new insertion char <
23749 (conditional warning).
23750 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23751 (Error_Msg_Warn): New variable for < insertion char.
23752 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23754 (Check_For_Source): Change value of Source_Id only after the current
23755 source has been dealt with.
23757 2005-09-01 Robert Dewar <dewar@adacore.com>
23758 Doug Rupp <rupp@adacore.com>
23760 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23761 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23762 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23763 (Valid_D, Valid_F, Valid_G): New functions
23765 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23766 Hristian Kirtchev <kirtchev@adacore.com>
23767 Javier Miranda <miranda@adacore.com>
23769 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23770 from object notation, the original node is unanalyzed and carries no
23771 semantic information, so that accessiblity checks must be performed on
23772 the type of the actual itself.
23773 (Expand_N_Subprogram_Declaration): Change last actual parameter for
23774 compatibility with Build_Protected_Sub_Specification.
23775 (Check_Overriding_Inherited_Interfaces): Add suport to handle
23776 overloaded primitives.
23777 (Register_Interface_DT_Entry): Use the new name of the formal
23778 the the calls to Expand_Interface_Thunk
23780 * exp_dbug.ads: Augment comments on encoding of protected types to
23781 include the generation of dispatching subprograms when the type
23782 implements at least one interface.
23784 * lib.ads: Extend information in Load_Stack to include whether a given
23785 load comes from a Limited_With_Clause.
23787 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23788 whether a potential circularity is harmless, because it includes units
23789 loaded through a limited_with clause. Extends previous treatment which
23790 did not handle properly arbitrary combinations of limited and
23791 non-limited clauses.
23793 2005-09-01 Nicolas Setton <setton@adacore.com>
23795 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23796 to be encoded as typ___XBLU_lowerbound__upperbound instead of
23797 typ___XB_lowerbound__upperbound.
23799 2005-09-01 Thomas Quinot <quinot@adacore.com>
23801 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23802 dummy access formal for RACW/RAS TypeCode TSS.
23803 (Build_TypeCode_Call): Do not generate dummy null access actual for
23804 calls to the TypeCode TSS.
23806 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23808 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23809 fully qualified name, to distinguish instances with the same local name.
23811 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23814 2005-09-01 Robert Dewar <dewar@adacore.com>
23816 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23819 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
23821 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23822 (Free): New deallocation procedure for filter elements
23823 (Close): Deallocate any existing filter for the concerned connection
23825 2005-09-01 Laurent Pautet <pautet@adacore.com>
23827 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23828 position set is provided, we compute one in order to reduce the maximum
23829 length of the keys. This computation first selects a character
23830 position between 1 and the minimum length of the keys in order to
23831 avoid reducing one of the keys to an empty string.
23832 (Initialize, Compute): When the ratio V to K is too low, the algorithm
23833 does not converge. The initialization procedure now comes with a
23834 maximum number of iterations such that when exceeded, an exception is
23835 raised in Compute. The user can initialize this ratio to another value
23837 Reformating and updated headers.
23839 2005-09-01 Javier Miranda <miranda@adacore.com>
23841 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23842 that given an entity T creates and returns an Itype that duplicates the
23843 contents of T. The returned Itype has the null-exclusion
23844 attribute set to True, and its Etype attribute references T
23845 to keep the association between the two entities.
23846 Update copyright notice
23848 * sem_aggr.adb (Check_Can_Never_Be_Null,
23849 Aggregate_Constraint_Checks, Resolve_Aggregate,
23850 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23852 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23854 2005-09-01 Gary Dismukes <dismukes@adacore.com>
23855 Robert Dewar <dewar@adacore.com>
23856 Hristian Kirtchev <kirtchev@adacore.com>
23858 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23861 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23863 Call Set_Result_Definition instead of Set_Subtype_Mark.
23864 (P_Subprogram_Specification): Add parsing of anonymous access result
23865 plus null exclusions. Call Set_Result_Definition instead of
23868 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23869 (P_Access_Type_Definition): Add parsing for an anonymous access result
23870 subtype, plus parsing for null exclusions. Call Set_Result_Definition
23871 instead of Set_Subtype_Mark.
23873 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23874 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23875 (Result_Definition): New function for N_Function_Specifications.
23876 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23877 N_Function_Specification.
23878 (Set_Null_Exclusion_Present): Allow this flag for
23879 N_Function_Specification.
23880 (Set_Result_Definition): New procedure for N_Function_Specifications.
23881 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23882 and N_Function_Specification.
23884 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23885 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23886 Add support for LIMITED NEW for Ada 2005 AI-419
23887 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23888 syntax for anonymous access results.
23889 Replace Subtype_Mark field by Result_Definition in
23890 N_Function_Specification and N_Access_Definition specs.
23891 Add Null_Exclusion_Present to spec of N_Function_Specification.
23892 (Result_Definition): New function for N_Function_Specification and
23893 N_Access_Function_Definition.
23894 (Set_Result_Definition): New procedure for N_Function_Specification and
23895 N_Access_Function_Definition.
23897 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23898 Result_Definition for cases of N_Access_Function_Definition and
23899 N_Function_Specification.
23900 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23902 2005-09-01 Vincent Celier <celier@adacore.com>
23904 * lib-writ.adb: Update Copyright notice
23905 (Write_With_Lines): On platforms where file names are case-insensitive,
23906 record the file names in lower case.
23907 (Write_ALI): For D lines, on platforms where file names are
23908 case-insensitive, record the file names in lower case.
23910 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23911 Emmanuel Briot <briot@adacore.com>
23913 * lib-xref.adb (Output_Overridden_Op): Display information on
23914 overridden operation.
23916 * lib-xref.ads: Add documentation on overridden operations.
23918 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23921 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23922 overriding entity information.
23924 2005-09-01 Vincent Celier <celier@adacore.com>
23926 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23927 including those that are inherited.
23929 2005-09-01 Robert Dewar <dewar@adacore.com>
23931 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23933 * par-prag.adb: Implement new pragma Debug_Policy
23935 * sem_prag.adb Implement new pragma Debug_Policy
23936 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23937 Component_Size attribute specification. Give warning for ignored pragma
23940 * snames.h, snames.ads, snames.adb: Introduce entries in
23941 Preset_Names for Name_Disp_Asynchronous_Select,
23942 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23943 Name_Disp_Timed_Select.
23944 New pragma Debug_Policy
23946 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23948 Switch -gnata also sets Debug_Pragmas_Enabled
23950 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23951 handle an explicit -gnata when compiling predefined files.
23953 2005-09-01 Vincent Celier <celier@adacore.com>
23955 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23956 directories of projects that have no Ada sources.
23958 2005-09-01 Robert Dewar <dewar@adacore.com>
23960 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23961 (makes a difference for wide characters)
23963 * widechar.adb, widechar.ads:
23964 Add Wide_Char_Byte_Count feature to count chars vs bytes
23966 2005-09-01 Thomas Quinot <quinot@adacore.com>
23967 Ed Schonberg <schonberg@adacore.com>
23968 Robert Dewar <dewar@adacore.com>
23970 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23971 'Address attribute reference with an overloaded prefix, use the
23972 location of the prefix (not the location of the attribute reference) as
23973 the error location.
23974 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23975 a function renaming thereof, is a valid prefix for 'Size (where it is
23976 intepreted as a function call).
23977 (Statically_Denotes_Entity): New predicate to determine whether the
23978 prefix of an array attribute can be considered static.
23981 (Eval_Attr): Fix failure to evaluate Component_Size for
23982 unconstrained arrays (resulted in wrong value in packed case, since
23983 back end cannot handle this case)
23985 2005-09-01 Robert Dewar <dewar@adacore.com>
23987 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23988 error msgs for most common cases.
23989 Use new errout insertion char < (conditional warning)
23991 2005-09-01 Javier Miranda <miranda@adacore.com>
23992 Ed Schonberg <schonberg@adacore.com>
23994 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23995 become local to the whole package.
23996 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23997 the package was already analyzed the new algorithm "replaces" the
23998 real entities by the shadow ones. This is required to ensure that
23999 the order of these entities in the homonym chains does not change;
24000 otherwise we can have undefined references at linking time because
24001 in case of conflicts the external name of the entities will have
24002 a suffix that depends on the order of the entities in the chain.
24003 (Remove_Limited_With_Clause): Complementary code that completes the
24004 new algorithm and replaces the shadow entities by the real ones.
24005 (Install_Limited_Withed_Unit): When unchaining entities before the
24006 installation of the shadow entities, only regular entities of the
24007 public part must be taken into account. This is required to
24008 keep this routine in synch with the work done by Remove_Limited_
24010 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24011 even if unit is analyzed, because the analysis of the unit is
24012 idempotent in any case, and the limited view of the unit may have to
24013 be installed for proper visibility.
24014 (Expand_Limited_With_Clause): Even if the unit in the implicit
24015 with_clause has been analyzed already, a limited view of the package
24016 must be built for the current context, if it does not exist yet.
24018 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24019 Javier Miranda <miranda@adacore.com>
24020 Gary Dismukes <dismukes@adacore.com>
24022 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24023 defining entity for the instance body, make a new defining identifier
24024 rather than copying the entity of the spec, to prevent accidental
24025 sharing of the entity list.
24026 (Check_Private_View): When exchanging views of private types, build the
24027 list of exchanged views as a stack, to ensure that on exit the exchanges
24028 are undone in the proper order.
24029 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24030 Restore the compilation environment in case of instantiation_error.
24031 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24032 for an anonymous access result.
24033 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24034 (Formal_Entity): Handle properly the case of a formal package that
24035 denotes a generic package renaming.
24037 2005-09-01 Thomas Quinot <quinot@adacore.com>
24039 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24040 clause if the array aggregate is surrounded by parentheses.
24042 2005-09-01 Cyrille Comar <comar@adacore.com>
24043 Gary Dismukes <dismukes@adacore.com>
24044 Ed Schonberg <schonberg@adacore.com>
24045 Javier Miranda <miranda@adacore.com>
24047 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24049 to check if a type is Constrained in cases related to code generation
24050 (rather than semantic checking) since otherwise we do not generate
24051 similar code for mutable private types depending if their
24052 discriminants are visible or not.
24053 (Check_Abstract_Overriding): Do not complain about failure to override
24054 the primitive operations used in dispatching selects since they will
24055 always be overriden at the freeze point of the type.
24056 (Access_Definition): Separate out handling for resetting the scope
24057 of an anonymous access function result type. Retrieve the scope
24058 of the associated function rather than using Current_Scope, which
24059 does not have a consistent value (depends on whether we're in the
24060 middle of analyzing formal parameters). Add ??? comment about
24061 finding a cleaner way to handle the special cases of scope setting.
24062 (Process_Incomplete_Dependents): A protected operation is never a
24063 dispatching operation (only its wrapper may be).
24064 (Build_Derived_Record_Type): In case of tagged private types that
24065 implement interfaces add derivation of predefined primitive
24067 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24068 by two parameters that are used in case of derivation from abstract
24069 interface types: No_Predefined_Prims is used to avoid the derivation
24070 of predefined primitives from the interface, and Predefined
24071 Prims_Only is used to complete the derivation predefined primitives
24072 in case of private tagged types implementing interfaces.
24073 Fix typo in comments
24074 (Find_Interface_In_Descendant): Protect the frontend against
24075 wrong code with large circularity chains.
24076 (Is_Private_Overriding): Add support for entities overriding interface
24077 subprograms. The test failed because Entities associated with overriden
24078 interface subprograms are always marked as hidden (and used to build
24079 the secondary dispatch table); in this case the overriden entity is
24080 available through the field abstract_interface_alias (cf. override_
24081 dispatching_operation)
24082 (Access_Definition): Set the scope of the type to Current_Scope for the
24083 case of a function with an anonymous access result type.
24084 (Access_Subprogram_Declaration): Handle creation of the type entity for
24085 an access-to-function type with an anonymous access result.
24086 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24087 in handling for N_Access_Function_Definition.
24088 (Analyze_Subtype_Declaration): Modify the text of error message.
24089 (Derived_Type_Declaration): Modify the text of error message.
24090 (Process_Subtype): Modify the text of error message plus cleanup
24091 of one redundant error message.
24092 (Analyze_Component_Declaration): Code cleanup.
24093 (Analyze_Object_Declaration): Code cleanup.
24094 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24095 attribute in case of access types. Code cleanup.
24096 (Array_Type_Declaration): Code cleanup.
24097 (Process_Discriminants): Create the new null-excluding itype
24098 if required. Code cleanup.
24099 (Process_Subtype): Create the new null-excluding itype if
24100 required. Code cleanup.
24101 (Build_Derived_Record_Type): Code cleanup to avoid calling
24102 twice the subprogram derive_subprograms in case of private
24103 types that implement interfaces. In this particular case the
24104 subprogram Complete_Subprograms_Derivation already does the
24105 job associated with the second call.
24107 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24108 conversion to the full view when generating an operation for a
24109 discriminant whose type may currently be private.
24111 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24112 Javier Miranda <miranda@adacore.com>
24114 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24115 V (Obj.F), the rewriting does not involve the indexed component, but
24116 only the selected component itself.
24117 Do not apply the transformation if the analyzed node is an actual of a
24118 call to another subprogram.
24119 (Complete_Object_Operation): Retain the entity of the
24120 dispatching operation in the selector of the rewritten node. The
24121 entity will be used in the expansion of dispatching selects.
24122 (Analyze_One_Call): Improve location of the error message associated
24124 (Analyze_Selected_Component): No need to resolve prefix when it is a
24125 function call, resolution is done when parent node is resolved, as
24127 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24128 when attempting to resolve a call transformed from its object notation.
24129 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24130 of the argument list for each interpretation of the operation.
24131 (Try_Object_Operation): The designated type of an access parameter may
24132 be an incomplete type obtained through a limited_with clause, in which
24133 case the primitive operations of the type are retrieved from its full
24135 (Analyze_Call): If this is an indirect call, and the return type of the
24136 access_to_subprogram is incomplete, use its full view if available.
24138 2005-09-01 Javier Miranda <miranda@adacore.com>
24139 Gary Dismukes <dismukes@adacore.com>
24141 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24142 access types the null-exclusion and access-to-constant attributes must
24144 (Analyze_Return_Statement): When the result type is an anonymous access
24145 type, apply a conversion of the return expression to the access type
24146 to ensure that appropriate accessibility checks are performed.
24147 (Analyze_Return_Type): For the case of an anonymous access result type,
24148 generate the Itype and set Is_Local_Anonymous_Access on the type.
24149 Add ??? placeholder for check to disallow returning a limited object
24150 in Ada 2005 unless it's an aggregate or a result of a function call.
24151 Change calls from Subtype_Mark to Result_Definition.
24152 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24153 Result_Definition in call to Make_Function_Specification.
24154 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24155 Set_Result_Definition.
24156 (Make_Inequality_Operator): Change formal Subtype_Mark to
24157 Result_Definition in call to Make_Function_Specification.
24158 (Process_Formals): Create the new null-excluding itype if required.
24159 (New_Overloaded_Entity): For an entity overriding an interface primitive
24160 check if the entity also covers other abstract subprograms in the same
24161 scope. This is required to handle the general case, that is, overriding
24162 other interface primitives and overriding abstract subprograms inherited
24163 from some abstract ancestor type.
24164 (New_Overloaded_Entity): For an overriding entity that comes from
24165 source, note the operation that it overrides.
24166 (Check_Conformance, Type_Conformant): Addition of one new formal
24167 to skip controlling formals in the analysis. This is used to
24168 handle overloading of abstract interfaces.
24169 (Base_Types_Match): Add missing case for types imported from
24170 limited-with clauses
24171 (New_Overloaded_Entity): Add barrier to protect the use of
24172 the "alias" attribute.
24174 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24176 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24177 verify that the procedure and the entry are mode conformant.
24178 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24179 as a different operator, which is often a cut-and-paste error.
24181 2005-09-01 Javier Miranda <miranda@adacore.com>
24182 Ed Schonberg <schonberg@adacore.com>
24184 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24185 used in controlling parameters exclude null because it is necessary to
24186 read the tag to dispatch, and null has no tag.
24187 (Override_Dispatching_Operation): If the previous operation is inherited
24188 from an interface, it becomes hidden and does not participate in later
24191 2005-09-01 Javier Miranda <miranda@adacore.com>
24192 Ed Schonberg <schonberg@adacore.com>
24193 Gary Dismukes <dismukes@adacore.com>
24195 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24196 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24197 the expander will generate the corresponding run-time check to evaluate
24199 (Resolve_Call): Check for legal type of procedure name or prefix that
24200 appears as a trigger in a triggering alternative.
24201 (Valid_Conversion): If expression is ambiguous and the context involves
24202 an extension of System, remove System.Address interpretations.
24203 (Resolve_Qualified_Expression): Reject the case of a specific-type
24204 qualification applied to a class-wide argument. Enhance comment
24205 to explain checking of Original_Node.
24206 (Resolve_Type_Conversion): The location of the error message was not
24207 general enough to handle the general case and hence it has been removed.
24208 In addition, this patch improves the text of the message.
24209 (Resolve_Type_Conversion): Add missing support for access to interface
24211 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24212 do not expand if the expression is the actual in a call, because proper
24213 expansion will take place when the call itself is expanded.
24214 (Resolve_Allocator): If the context is an unchecked conversion, the
24215 allocator inherits its storage pool, if any, from the target type of
24218 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24219 Javier Miranda <miranda@adacore.com>
24221 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24222 inherited interface operation that has an implementation, use the
24223 implementation to avoid spurious ambiguities.
24224 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24225 use the Corresponding_Record_Typ attribute to look for the interface
24226 because it is set by the expander (and hence it is not always
24227 available). For this reason we traverse the list of interfaces
24228 (available in the parent of the concurrent type).
24229 (Interface_Present_In_Ancestor): Handle entities from the limited view
24231 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24233 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24234 from the list of required components.
24235 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24236 primitive procedure of a limited interface with a controlling first
24238 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24240 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24241 capture if it is generated in the second operand of a short-circuit
24243 Do not capture values for variables with address clauses.
24244 (Is_Object_Reference): Treat a function call as an object reference only
24245 if its type is not Standard_Void_Type.
24247 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24249 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24250 to a variable that is statically known to be constant.
24252 2005-09-01 Geert Bosch <bosch@adacore.com>
24253 Robert Dewar <dewar@adacore.com>
24255 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24256 (VAXGF_Safe_First): Idem.
24258 2005-09-01 Robert Dewar <dewar@adacore.com>
24259 Arnaud Charlet <charlet@adacore.com>
24261 * g-dirope.ads: Minor reformatting
24262 Document that bounds of result of Base_Name match the input index
24264 Add documentation on environment variable syntax for Expand_Path
24266 * gnat_ugn.texi: Update documentation to include mention of -m switches
24267 Document new treatment of wide characters in max line length
24269 Remove -gnatL/-gnatZ switches, no longer used.
24270 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24273 * gnat_rm.texi: Add doc for two argument form of pragma
24274 Float_Representation.
24275 Add documentation for pragma No_Strict_Aliasing
24276 Add note that explicit component clause overrides pragma Pack.
24277 Add documentation of pragma Debug_Policy
24279 2005-09-01 Matthew Heaney <heaney@adacore.com>
24281 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24282 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24283 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24284 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24285 draft (Draft 13, August 2005) of Ada Amendment 1.
24287 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24289 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24290 Note that the platform-specific version of g-soccon.ads for VMS is now
24291 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24292 really is a package spec).
24293 Replace s-taspri-linux.ads by s-taspri-posix.ads
24294 Remove references to s-mastop-x86.adb
24296 * system-vxworks-xscale.ads: Removed, no longer used.
24297 * s-vxwork-xscale.ads: Removed, no longer used.
24299 2005-09-01 Robert Dewar <dewar@adacore.com>
24301 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24302 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24303 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24304 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24305 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24306 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24307 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24308 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24309 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24310 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24311 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24312 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24313 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24314 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24315 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24316 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24317 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24318 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24319 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24320 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24321 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24323 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24327 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24329 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24330 Doug Rupp <rupp@adacore.com>
24332 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24334 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24335 this code in the GNAT run-time.
24337 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24340 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24341 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24343 (__gnat_inside_elab_final_code): Moved here from
24344 Standard_Library and only defined for the compiler.
24345 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24346 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24347 using RTPs because directly vectored Interrupt routines are not
24348 supported on this configuration.
24349 (getpid): Do not redefine this function on VxWorks when using RTPs
24350 because this primitive is well supported by the RTP libraries.
24351 (copy_msg): Correct the code that checks for buffer overflow.
24352 Discovered during code reading.
24354 2005-08-29 Olivier Hainque <hainque@adacore.com>
24356 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24357 a library level mutable variable with an initializer, tell
24358 build_allocator to ignore the initializer's size. It may not be large
24359 enough for all the values that might be assigned to the variable later
24362 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24363 Eric Botcazou <ebotcazou@adacore.com>
24365 * trans.c: Protect < in error msg with quote
24366 Replace GCC_ZCX by Back_End_Exceptions.
24367 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24368 has been sufficiently aligned in the record.
24370 2005-08-15 James E. Wilson <wilson@specifix.com>
24372 * system-linux-alpha.ads: Change ia64 to alpha.
24374 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24376 * decl.c, utils.c: Fix comment typos.
24378 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24380 * decl.c, init.c, initialize.c: Fix comment typos.
24382 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24384 Make CONSTRUCTOR use VEC to store initializers.
24385 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24387 * trans.c (extract_values): Likewise.
24388 * utils.c (convert, remove_conversions): Likewise.
24389 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24390 gnat_build_constructor): Likewise.
24392 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24394 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24396 (compare_field_bitpos): Likewise.
24398 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24400 * utils.c (create_var_decl): Only set DECL_COMMON on
24401 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24402 VAR_OR_FUNCTION_DECL_P.
24404 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24406 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24409 2005-07-07 Pascal Obry <obry@adacore.com>
24411 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24412 returned type on Windows.
24414 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24417 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24418 exception in this case.
24419 Simplify the code as "Image (Image'Range)" = "Image".
24421 2005-07-07 Vincent Celier <celier@adacore.com>
24423 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24424 the destructor/constructor attributes for <lib>final/<lib>init.
24426 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24428 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24430 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24431 type if the parameter is not passed by copy but reference by default.
24433 2005-07-07 Javier Miranda <miranda@adacore.com>
24435 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24436 Reimplementation of the support for abstract interface types in order
24437 to leave the code more clear and easy to maintain.
24439 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24440 abstract interface types in order to leave the code clearer and easier
24443 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24444 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24445 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24446 appropriate entry of the secondary dispatch table.
24447 (Make_DT): Add code to inherit the secondary dispatch tables of
24450 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24451 implementing both functionalities by means of a common routine, each
24452 routine has its own code.
24454 2005-07-07 Javier Miranda <miranda@adacore.com>
24456 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24458 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24461 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24464 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24465 use of tag incomplete types.
24467 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24468 give support to tagged incomplete types.
24470 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24471 expression is a discriminant reference and its type is private, as can
24472 happen within a stream operation for a mutable record, use the full
24473 view of the type to resolve the case alternatives.
24474 (Analyze_Assignment): Check wrong dereference of incomplete types.
24476 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24479 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24482 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24483 N_Incomplete_Type_Declaration nodes.
24485 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24486 Tag_Present to give support to tagged incomplete types:
24488 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24491 2005-07-07 Olivier Hainque <hainque@adacore.com>
24494 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24495 definitions for the Unwind wrappers in the compiler case.
24497 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24498 Javier Miranda <miranda@adacore.com>
24500 * par-load.adb (Load): If a child unit is loaded through a limited_with
24501 clause, each parent must be loaded as a limited unit as well.
24503 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24504 Check_Withed_Unit. Return true if there is a previous with_clause for
24505 this unit, whether limited or not.
24506 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24508 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24509 _withed_unit that checks if some package installed through normal with
24510 clauses has a renaming declaration of package whose limited-view is
24511 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24512 of the current Draft document for Ada 2005.
24513 (Analyze_Context): Complete the list of compilation units that
24514 are allowed to contain limited-with clauses. It also contains
24515 checks that were previously done by Install_Limited_Context_Clauses.
24516 This makes the code more clear and easy to maintain.
24517 (Expand_Limited_With_Clause) It is now a local subprogram of
24518 Install_Limited_Context_Clauses, and contains the code that adds
24519 the implicit limited-with clauses for parents of child units.
24520 This functionality was prevously done by Analyze_Context.
24522 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24525 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24526 been erroneously named in a limited-with clause of its own context.
24527 In this case the error has been previously notified by Analyze_Context.
24529 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24531 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24532 generic package that contains local declarations with the same name.
24533 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24535 2005-07-07 Bernard Banner <banner@adacore.com>
24537 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24538 ia64 platform only on platforms that you the GCC unwind library
24539 rather than the system unwind library.
24541 2005-07-07 Thomas Quinot <quinot@adacore.com>
24543 * expect.c: Minor reformatting
24545 2005-07-07 Sergey Rybin <rybin@adacore.com>
24547 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24550 * gnat_ugn.texi: Add description for new gnatpp option
24553 2005-07-04 Thomas Quinot <quinot@adacore.com>
24555 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24556 (Get_Command_Output): New subprogram to launch a process and get its
24557 standard output as a string.
24559 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24560 Olivier Hainque <hainque@adacore.com>
24562 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24563 fetch a code-range descriptor associated with the machine state. On
24564 failure set the machine state's PC to 0; on success, pass the
24565 descriptor to exc_virtual_unwind.
24567 * init.c (Tru64 section): New function __gnat_set_code_loc.
24569 2005-07-04 Vincent Celier <celier@adacore.com>
24571 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24572 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24573 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24574 Remove all auto-initialization code, as this is now done through the
24575 constructor mechanism.
24577 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24578 __gnat_sals_init_using_constructors): New functions.
24580 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24581 Linker_Constructor and Linker_Destructor when switch -a is used.
24583 * bindusg.adb: Add line for new switch -a
24585 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24586 (Gnatbind): When switch -a is used, check if it is allowed
24588 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24590 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24592 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24593 This prevents us from hitting a limitation during the debug info
24594 generation when using stabs.
24595 (Prims_Ptr): Likewise.
24597 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24598 Ed Schonberg <schonberg@adacore.com>
24599 Javier Miranda <miranda@adacore.com>
24601 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24602 N_Object_Declaration, only perform the checks if the Object_Definition
24603 is not an Access_Definition.
24605 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24606 where the parent of an the access definition is an N_Object_Declaration
24607 when determining the Associated_Node_For_Itype and scope of an
24608 anonymous access-to-subprogram type.
24610 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24611 Corresponding_Spec on the body created for a null procedure. Add ???
24612 comment. Remove New_Copy_Tree call on body argument to
24613 Set_Body_To_Inline.
24615 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24616 discriminants, use the type of the actual as well, because the
24617 discriminants may be read by the called subprogram.
24619 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24620 access type we do not need to handle non-limited views.
24621 (Build_Derived_Record_Type): Additional check to check that in case of
24622 private types, interfaces are only allowed in private extensions.
24624 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24626 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24627 <Pragma_Linker_Destructor>: Likewise.
24629 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24630 Pragma_Linker_Destructor.
24632 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24633 ATTR_LINK_DESTRUCTOR.
24634 (static_ctors, static_dtors): New variables.
24636 * misc.c (gnat_expand_body): Output current function as constructor
24637 and destructor if requested.
24639 * par-prag.adb: Add processing for pragma Linker_Constructor and
24642 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24643 extracted from Check_Interrupt_Or_Attach_Handler.
24644 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24645 Implement pragma Linker_Constructor and Linker_Destructor with the
24646 help of Find_Unique_Parameterless_Procedure.
24647 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24649 * snames.h, snames.ads, snames.adb:
24650 Add Name_Linker_Constructor and Name_Linker_Destructor.
24651 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24652 * snames.adb: Remove Name_Alias.
24654 * trans.c: Include cgraph.h.
24655 (build_global_cdtor): New function.
24656 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24658 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24660 (addressable_p) <COMPONENT_REF>: Unconditionally test
24661 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24663 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24664 variable if it is external.
24666 (static_ctors, static_dtors): New global variables.
24667 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24668 <ATTR_LINK_DESTRUCTOR>: Likewise.
24669 (end_subprog_body): Chain function as constructor and destructor
24672 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24673 Remove_Side_Effects with Variable_Ref set to true.
24674 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24675 for non-scalar types even if Variable_Ref is true and for class-wide
24678 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24680 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24681 to prevent spurious warnings.
24683 2005-07-04 Thomas Quinot <quinot@adacore.com>
24685 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24686 Itypes. Itypes are really unexpected there.
24687 (Build_TypeCode_Function): Generalise special processing for Itypes to
24688 handle the case of numeric implicit base types as well as enumerated
24691 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24693 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24694 controlled, indicate the expected type of the dereference that is
24695 created for the call to Deep_Finalize, to prevent spurious errors when
24696 the designated type is private and completed with a derivation from
24697 another private type.
24699 2005-07-04 Vincent Celier <celier@adacore.com>
24701 * make.adb (Change_To_Object_Directory): When unable to change the
24702 current dir to the object directory, output the full path of the
24705 2005-07-04 Matthew Gingell <gingell@adacore.com>
24707 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24709 * indepsw-linux.adb: Replace by...
24711 * indepsw-gnu.adb: ...this new file
24713 2005-07-04 Vincent Celier <celier@adacore.com>
24715 * mlib-prj.adb (Auto_Initialize): New constant String
24716 (SALs_Use_Constructors): New Boolean function
24717 (Build_Library): Call gnatbind with Auto_Initialize switch when
24718 SALs_Use_Constructors returns True.
24720 * mlib-tgt.ads: Minor reformatting
24722 * mlib-utl.ads: Minor reformatting
24724 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24726 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24728 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24729 single protected declarations can have an interface list.
24730 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24731 with seriously malformed entry declarations, and lead to compilation
24732 abandoned messages.
24734 2005-07-04 Javier Miranda <miranda@adacore.com>
24736 * par-load.adb: Load the context items in two rounds.
24738 2005-07-04 Robert Dewar <dewar@adacore.com>
24740 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24742 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24743 Javier Miranda <miranda@adacore.com>
24745 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24746 type extension needs a limited view.
24747 Remove previous restriction on private types available through the
24748 limited-view (only tagged private types were previously allowed).
24749 (Install_Withed_Unit): In the code that implements the
24750 legality rule given in AI-377, exclude a child unit with the name
24751 Standard, because it is a homonym of the Standard environment package.
24753 2005-07-04 Thomas Quinot <quinot@adacore.com>
24755 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24756 overloaded function call, carry interpretations from the original tree
24759 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24761 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24762 types check whether some designated type is a limited view, and use
24763 the non-limited view if available.
24765 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24767 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24768 constraint of full view of a private view T1 if present, when T2 is a
24769 discriminated full view.
24771 2005-07-04 Thomas Quinot <quinot@adacore.com>
24773 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24774 actual that is a view conversion of a bit packed array reference.
24776 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24778 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24779 present before checking whether an interface type covers a synchronized
24782 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24784 * sem_util.adb (Is_Object_Reference): An indexed or selected component
24785 whose prefix is an implicit dereference is an object reference. Removes
24786 spurious errors when compiling with -gnatc.
24788 2005-07-04 Robert Dewar <dewar@adacore.com>
24791 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24793 2005-07-04 Matthew Gingell <gingell@adacore.com>
24795 * tracebak.c: Enable tracebacks on ia64 platforms
24797 2005-07-04 Vincent Celier <celier@adacore.com>
24799 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24800 the GNAT BIND command, as gnatbind accepts multiples ALI files with
24801 the -L or -n switches.
24803 2005-07-04 Vincent Celier <celier@adacore.com>
24805 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24806 correctly computed and the main project data is not modified while
24808 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24809 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24810 c++linker as this does not work on some platforms.
24812 2005-07-04 Matthew Heaney <heaney@adacore.com>
24814 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24816 * a-coinve.adb: Perform constraint checks explicitly.
24818 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24819 Thomas Quinot <quinot@adacore.com>
24821 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24822 new target gen-soccon.
24824 2005-07-04 Robert Dewar <dewar@adacore.com>
24826 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24828 2005-07-04 Thomas Quinot <quinot@adacore.com>
24830 * g-socket.ads (Check_Selector): Minor rewording of comment.
24832 2005-07-04 Vincent Celier <celier@adacore.com>
24834 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24836 2005-07-04 Thomas Quinot <quinot@adacore.com>
24838 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24840 2005-07-04 Sergey Rybin <rybin@adacore.com>
24842 * gnat_ugn.texi: Add description of --eol gnatpp option
24844 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24845 Thomas Quinot <quinot@adacore.com>
24847 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24848 if the user wants all calls of a subprogram to be flagged,
24849 independently of whether they are made from within the same unit or
24851 Mention restriction for pragma Linker_Alias on some platforms.
24852 Document pragma Linker_Constructor and Linker_Destructor.
24853 Rewrite documentation of Weak_External, Linker_Section and
24854 Linker_Alias pragmas.
24856 2005-07-04 Arnaud Charlet <charlet@adacore.com>
24858 * s-stausa.ads, s-stausa.adb: New files.
24860 2005-06-30 Kelley Cook
24862 * all files: Update FSF address in copyright headers.
24863 * gen-soccon.co (main): Output new FSF address in generated files.
24865 2005-06-28 Paul Brook <paul@codesourcery.com>
24867 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24869 2005-06-14 Olivier Hainque <hainque@adacore.com>
24870 Eric Botcazou <ebotcazou@adacore.com>
24872 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24873 exc_unwind, now that we are generating proper .debug_frame output for
24876 * tracebak.c: Remove the mips-irix section, as we are now using the
24877 s-mastop based unwinder again.
24878 Under SPARC/Solaris, take into account the stack bias to compute the
24879 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
24882 2005-06-14 Doug Rupp <rupp@adacore.com>
24884 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24886 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24888 2005-06-14 Pascal Obry <obry@adacore.com>
24890 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24891 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24892 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24895 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24896 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24897 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24898 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24899 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24900 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24901 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24902 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24903 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24904 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24905 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24906 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24907 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24908 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24909 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24910 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24911 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24912 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24913 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24914 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24915 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24916 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24917 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24918 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24919 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24920 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24921 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24922 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24923 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24924 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24925 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24926 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24927 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24928 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24929 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24930 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24931 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24932 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24933 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24934 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24935 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24936 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24937 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24938 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24939 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24940 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24941 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24942 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24943 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24944 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24945 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24946 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24947 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24948 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24949 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24950 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24951 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24952 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24953 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24954 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24955 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24956 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24957 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24958 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24959 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24960 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24961 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24962 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24963 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24964 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24965 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24966 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24967 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24968 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24969 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24970 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24971 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24972 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24973 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24974 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24975 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24976 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24977 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24978 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24979 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24980 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24981 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24982 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24983 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24984 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24985 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24986 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24987 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24988 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24989 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24990 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24991 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24992 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24993 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24994 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24995 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24996 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24997 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24998 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24999 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25000 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25001 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25002 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25003 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25004 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25005 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25006 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25007 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25008 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25009 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25010 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25011 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25012 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25013 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25014 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25015 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25016 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25017 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25018 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25019 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25020 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25021 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25022 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25023 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25024 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25025 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25026 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25027 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25029 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25030 Arnaud Charlet <charlet@adacore.com>
25032 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25033 longer protected objects. They have been replaced by lower-level
25034 suspension objects made up by a mutex and a condition variable (or
25035 their equivalent given a particular OS) plus some internal data to
25036 reflect the state of the suspension object.
25037 (Initialize, Finalize): Add this initialization procedure for
25038 Suspension_Object, which is a controlled type.
25039 (Finalize): Add the finalization procedure for Suspension_Object,
25040 which is a controlled type.
25042 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25043 Ada.Synchronous_Task_Control because there is no longer a need for a
25044 VxWorks specific version of this package. Target dependencies
25045 has been moved to System.Task_Primitives.Operations.
25047 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25049 (InitializeCriticalSection, EnterCriticalSection,
25050 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25051 pCriticalSection by an anonymous access type so that we avoid problems
25052 of accessibility to local objects.
25054 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25055 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25056 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25057 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25058 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25059 set the environment task mask here.
25060 (Current_State): Add this function that returns the state of the
25062 (Set_False): Add this procedure that sets the state of the suspension
25064 (Set_True): Add this procedure that sets the state of the suspension
25065 object to True, releasing the task that was suspended, if any.
25066 (Suspend_Until_True): Add this procedure that blocks the calling task
25067 until the state of the object is True. Program_Error is raised if
25068 another task is already waiting on that suspension object.
25069 (Initialize): Add this procedure for initializing the suspension
25070 object. It initializes the mutex and the condition variable which are
25071 used for synchronization and queuing, and it sets the internal state
25073 (Finalize): Add this procedure for finalizing the suspension object,
25074 destroying the mutex and the condition variable.
25076 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25077 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25078 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25079 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25080 which provides a low-level abstraction (using operating system
25081 primitives) for Ada.Synchronous_Task_Control.
25082 This object is made up by a mutex (for ensuring mutual exclusion), a
25083 condition variable (for queuing threads until the condition is
25084 signaled), a Boolean (State) indicating whether the object is open,
25085 and a Boolean (Waiting) reflecting whether there is a task already
25086 suspended on this object.
25088 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25089 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25090 s-intman-vms.ads, s-intman-mingw.adb,
25091 (Initialize_Interrupts): Removed, no longer used.
25093 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25094 (Setup_Interrupt_Mask): New procedure.
25096 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25098 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25100 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25101 this is no longer done in the body of s-taprop
25102 (Server_Task): Explicitely test for Pending_Action in case
25103 System.Parameters.No_Abort is True.
25105 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25106 is no longer done in the body of s-taprop
25108 2005-06-14 Robert Dewar <dewar@adacore.com>
25110 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25111 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25112 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25113 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25114 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25115 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25116 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25117 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25118 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25119 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25120 system-linux-hppa.ads, system-vms_64.ads,
25121 system-vxworks-alpha.ads: Minor comment update for
25122 AI-362 (unit is Pure).
25124 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25125 Add pragma Pure_05 for AI-362
25126 Make remaining conversion functions obsolescent in Ada 95
25128 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25129 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25130 Add entries for a-wichun and a-zchuni
25131 Add a-widcha a-zchara for AI-395
25132 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25134 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25135 Add entries for a-wichun.o and a-zchuni.o
25136 Entries for a-widcha.o and a-zchara.o
25137 Add entry for a-chacon.o
25139 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25141 * a-chacon.ads, a-chacon.adb: New files.
25143 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25144 categorization violations.
25146 * a-strmap.ads: Add pragma Pure_05 for AI-362
25147 * a-strmap.ads: Add note on implicit categorization for AI-362
25149 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25151 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25152 Set Ada_Version_Explicit, for implementation of AI-362
25153 Add processing for pragma Pure_05 and Preelaborate_05
25154 Add entry for Assertion_Policy pragma
25156 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25157 when needed for proper processing of categorization stuff
25160 For several cases, make errors in preealborate units warnings,
25161 instead of errors, if GNAT_Mode is set. For AI-362.
25163 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25164 preelaborate unit is now warning if in GNAT mode
25166 * s-stoele.ads: Document AI-362 for pragma preelaborate
25168 2005-06-14 Doug Rupp <rupp@adacore.com>
25170 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25171 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25172 Default_Exception_Msg_Max_Length: new parameter.
25174 * a-except.ads: (Exception_Msg_Max_Length): Set to
25175 System.Parameters.Default_Exception_Msg_Max_Length
25176 Add pragma Preelaborate_05 for AI-362
25177 Add warnings off to allow categorization violations for AI-362
25179 2005-06-14 Vincent Celier <celier@adacore.com>
25181 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25182 Process is now in package Processing.
25184 * symbols.ads, symbols.adb:
25185 (Processing): New package, containing procedure Process
25187 * symbols-vms-alpha.adb:
25188 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25190 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25191 symbols-processing-vms-ia64.adb: New files.
25193 2005-06-14 Pascal Obry <obry@adacore.com>
25195 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25196 implementation. This new version generates the proper DllMain routine
25197 to initialize the SAL. The DllMain is generated in Ada and compiled
25198 before being added as option to the library build command.
25200 2005-06-14 Doug Rupp <rupp@adacore.com>
25201 Pascal Obry <obry@adacore.com>
25203 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25204 call to decc$translate_vms.
25205 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25206 need to remove those quotes before catenating the filename.
25207 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25208 * avoid allocating the memory twice for better efficiency;
25209 * allocate 32K buffer for environment expansion as suggested by MSDN;
25210 * prepend ".;" to the path so that current directory is searched too.
25212 2005-06-14 Robert Dewar <dewar@adacore.com>
25214 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25215 instead of raising CE (AI-241)
25216 Add warnings off to allow categorization violations for AI-362
25218 2005-06-14 Robert Dewar <dewar@adacore.com>
25220 * ali-util.adb, gnatbind.adb: Remove references to
25221 Force_RM_Elaboration_Order.
25223 * switch-b.adb: Remove recognition of -f switch
25225 2005-06-14 Pascal Obry <obry@adacore.com>
25227 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25228 implementation which is slightly more efficient.
25230 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25231 Javier Miranda <miranda@adacore.com>
25232 Ed Schonberg <schonberg@adacore.com>
25233 Hristian Kirtchev <kirtchev@adacore.com>
25235 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25236 allocator's designated type is a class-wide type, and compiling for
25237 Ada 2005, emit a run-time check that the accessibility level of the
25238 type given in the allocator's expression is not deeper than the level
25239 of the allocator's access type.
25241 (Tagged_Membership): Modified to gives support to abstract interface
25244 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25246 (Descendant_Tag): New predefined function
25247 (Is_Descendant_At_Same_Level): New predefined function
25248 (Get_Access_Level): New private function
25249 (Set_Access_Level): New private procedure
25250 (IW_Membership): New function. Given the tag of an object and the tag
25251 associated with an interface, evaluate if the object implements the
25253 (Register_Interface_Tag): New procedure used to initialize the table of
25254 interfaces used by the IW_Membership function.
25255 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25256 of the dispatch table.
25257 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25258 table of interfaces of the parent.
25259 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25260 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25261 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25262 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25263 Ada 2005 semantics for the new predefined function.
25265 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25266 call to Descendant_Tag rather than Internal_Tag.
25267 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25268 the accessibility level of the attribute's Item parameter is not deeper
25269 than the level of the attribute's prefix type. Tag_Error is raised if
25270 the check fails. The check is only emitted for Ada_05.
25271 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25272 requested stream attribute, use it.
25273 (Expand_N_Attribute_Reference): If the designated type is an interface
25274 then rewrite the referenced object as a conversion to force the
25275 displacement of the pointer to the secondary dispatch table.
25276 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25277 is a dereference of an object with a constrained partial view.
25279 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25280 type is a class-wide type, emit a run-time check that the accessibility
25281 level of the returned object is not deeper than the level of the
25282 function's master (only when compiling for Ada 2005).
25284 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25285 Action_Nb_Arg): Add entries for new Get_Access_Level and
25286 Set_Access_Level routines in these tables.
25287 (Make_DT): Generate a call to set the accessibility level of the
25288 tagged type in its TSD.
25289 (Make_DT): Code cleanup. The functionality of generating all the
25290 secondary dispatch tables has been moved to freeze_record_type.
25291 (Make_Abstract_Interface_DT): Minor code cleanup.
25292 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25293 this subprogram implements a new algorithm that provides the
25294 same functionality and it is more clear in case of primitives
25295 associated with abstract interfaces.
25296 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25297 clean up, the functionality of this subprogram is now provided
25298 by Set_All_DT_Position.
25299 (Write_DT): New subprogram: a debugging procedure designed to be called
25300 within gdb to display the dispatch tables associated with a tagged
25302 (Collect_All_Interfaces): New subprogram that collects the whole list
25303 of interfaces that are directly or indirectly implemented by a tagged
25305 (Default_Prim_Op_Position): New subprogram that returns the fixed
25306 position in the dispatch table of the default primitive operations.
25307 (Expand_Interface_Actuals): New subprogram to generate code that
25308 displaces all the actuals corresponding to class-wide interfaces to
25309 reference the interface tag of the actual object.
25310 (Expand_Interface_Conversion): New subprogram. Reference the base of
25311 the object to give access to the interface tag associated with the
25312 secondary dispatch table.
25313 (Expand_Interface_Thunk): New subprogram that generates the code of the
25314 thunk. This is required for compatibility with the C+ ABI.
25315 (Make_Abstract_Interface_DT): New subprogram that generate the
25316 declarations for the secondary dispatch tables associated with an
25317 abstract interface.
25318 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25319 attribute for each primitive operation covering interface subprograms
25320 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25321 These subprograms were upgraded to give support to abstract interfaces
25323 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25324 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25325 RE_Set_Access_Level.
25326 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25327 Add support to call the followig new run-time subprograms:
25328 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25330 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25331 match its full declaration when both have an access definition with
25332 statically matching designated subtypes.
25333 (Analyze_Component_Declaration): Delete commented out code that was
25334 incorrectly setting the scope of an anonymous access component's type.
25335 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25336 an access discriminant when the containing type is nonlimited.
25337 (Make_Incomplete_Type_Declaration): Create an incomplete type
25338 declaration for a record type that includes self-referential access
25340 (Check_Anonymous_Access_Types): Before full analysis of a record type
25341 declaration, create anonymous access types for each self-referential
25343 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25344 an access component in this context is a Local_Anonymous_Access, for
25345 proper accessibility checks.
25346 (Access_Definition): Set properly the scope of the anonymous access type
25347 created for a stand-alone access object.
25348 (Find_Type_Of_Object): An object declaration may be given with an access
25350 (Complete_Subprograms_Derivation): New subprogram used to complete
25351 type derivation of private tagged types implementing interfaces.
25352 In this case some interface primitives may have been overriden
25353 with the partial-view and, instead of re-calculating them, they
25354 are included in the list of primitive operations of the full-view.
25355 (Build_Derived_Record_Type): Modified to give support to private
25356 types implemening interfaces.
25357 (Access_Definition): Reject ALL on anonymous access types.
25358 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25359 type derivation to occur at a deeper accessibility level than the
25361 For the case of derivation within a generic body however, disallow the
25362 derivation if the derived type has an ancestor that is a formal type
25363 declared in the formal part of an enclosing generic.
25364 (Analyze_Object_Declaration): For protected objects, remove the check
25365 that they cannot contain interrupt handlers if not declared at library
25367 (Add_Interface_Tag_Components): New subprogram to add the tag components
25368 corresponding to all the abstract interface types implemented by a
25369 record type or a derived record type.
25370 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25371 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25372 Process_Full_View, Record_Type_Declaration): Modified to give
25373 support to abstract interface types
25374 (Collect_Interfaces): New subprogram that collects the list of
25375 interfaces that are not already implemented by the ancestors
25376 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25377 when partial view has no discriminants and full view has defaults.
25378 (Constrain_Access): Reject a constraint on a general access type
25379 if the discriminants of the designated type have defaults.
25380 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25381 full-type declaration or subprogram spec. This is required to handle
25382 nested anonymous declarations.
25383 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25384 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25385 Process_Full_View, Record_Type_Declaration): Modified to give
25386 support to abstract interface types
25387 (Derive_Subprograms): Addition of a new formal to indicate if
25388 we are in the case of an abstact-interface derivation
25389 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25390 to the specification because it is requied to analyze all the
25391 identifiers found in a list of interfaces
25393 * debug.adb: Complete documentation of flag "-gnatdZ"
25395 * exp_ch3.adb: Implement config version of persistent_bss pragma
25396 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25397 testing for TSS presence to properly enforce visibility rules.
25398 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25399 Make_Abstract_Interfaces_DT to generate the secondary tables
25400 associated with abstract interfaces.
25401 (Build_Init_Procedure): Modified to initialize all the tags
25403 (Component_Needs_Simple_Initialization): Similar to other tags,
25404 interface tags do not need initialization.
25405 (Freeze_Record_Type): Modified to give support to abstract interface
25407 (Expand_N_Object_Declaration): Do not generate an initialization for
25408 a scalar temporary marked as internal.
25410 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25411 in-out parameter that is a component in an initialization procedure,
25412 whose constraint might depend on discriminants, and that may be
25413 misaligned because of packing or representation clauses.
25414 (Is_Legal_Copy): New predicate to determine whether a possibly
25415 misaligned in-out actual can actually be passed by copy/return. This
25416 is an error in case the type is by_reference, and a warning if this is
25417 the consequence of a DEC import pragma on the subprogram.
25418 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25420 (Expand_Inlined_Call): Mark temporary generated for the return value as
25421 internal, so that no useless scalar normalization is generated for it.
25422 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25423 null procedure can always be inlined.
25424 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25425 procedure, generate an explicit empty body for it.
25427 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25428 Given a type implementing an interface, returns the corresponding
25429 access_disp_table value.
25430 (Find_Interface_Tag): New subprogram. Given a type implementing an
25431 interface, returns the record component containing the tag of the
25433 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25434 previous ones that return the corresponding tag and access_disp_table
25436 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25437 is a predefined primitive operation.
25438 (Expand_Subtype_From_Expr): If the expression is a selected component
25439 within an initialization procedure, compute its actual subtype, because
25440 the component may depend on the discriminants of the enclosing record.
25442 * i-cpp.ads, i-cpp.adb:
25443 This package has been left available for compatibility with previous
25444 versions of the frontend. As part of the new layout this is now a
25445 dummy package that uses declarations available at a-tags.ads
25447 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25448 "constant access" and "aliased [constant] access" when not compiling
25450 Suppress Ada 2005 keyword warning if -gnatwY used
25451 (P_Identifier_Declarations): Add support for object declarations with
25452 access definitions.
25453 (Private_Extension_Declaration): Complete the documentation
25454 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25455 attribute in case of private extension declaration
25456 (P_Type_Declaration): Mark as "abstract" the type declarations
25457 corresponding with protected, synchronized and task interfaces
25458 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25459 for a subprogram or instance declaration.
25461 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25462 instantiation that is a dispatching operation has controlling access
25463 parameters that are null excluding.
25464 Save and restore Ada_Version_Explicit, for implementation of AI-362
25465 (Validate_Derived_Type_Instance): Add check for abstract interface
25467 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25468 the generic that is created to represent the formal package.
25469 (Analyze_Package_Instantiation): Instantiate body immediately if the
25470 package is a predefined unit that contains inlined subprograms, and
25471 we are compiling for a Configurable_Run_Time.
25472 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25473 If the program has a null default, generate an empty body for it.
25475 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25476 error message condition, null procedures are correctly detected now.
25477 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25478 for subprograms in the context of protected types. Instead, the
25479 indicator is examined in Sem_Ch9 while analysing the subprogram
25481 (Check_Overriding_Indicator): Check consistency of overriding indicator
25482 on subprogram stubs as well.
25483 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25485 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25486 the type of the first formal is a concurrent type, replace this type
25487 by the corresponding record type.
25488 (Analyze_Subprogram_Body): Undo the previous work.
25489 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25490 analysis of the prefix ends up analyzing the call itself, after which
25492 (Has_Interface_Formals): New subprogram subsidiary to analyze
25493 subprogram_specification that returns true if some non
25494 class-wide interface subprogram is found
25495 (New_Overloaded_Entity): Modified to give support to abstract
25497 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25498 access to subprograms must be recursive.
25499 (Is_Unchecked_Conversion): Improve the test that recognizes
25500 instantiations of Unchecked_Conversion, and allows them in bodies that
25501 are to be inlined by the front-end. When the body comes from an
25502 instantiation, a reference to Unchecked_Conversion will be an
25503 Expanded_Name, even though the body has not been analyzed yet.
25504 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25505 Must_Override and Must_Not_Override, to better express intent of AI.
25506 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25507 that it is consistent with the overrinding status of the subprogram
25509 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25511 If the subprogram is a null procedure, indicate that it does not need
25514 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25515 available through limited-with clauses.
25516 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25517 allowed as the last primitive of a tagged type if it has no previous
25519 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25520 to give support to abstract interface types
25522 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25523 in the case where the target type is an anonymous access type of an
25524 object or component (that is, when Is_Local_Anonymous_Access is true).
25525 Prevent the special checks for conversions of access discriminants in
25526 the case where the discriminant belongs to a nonlimited type, since
25527 such discriminants have their accessibility level defined in the same
25528 way as a normal component of an anonymous access type.
25529 (Resolve_Allocator): When an allocator's designated type is a class-wide
25530 type, check that the accessibility level of type given in the
25531 allocator's expression or subtype indication is not statically deeper
25532 than the level of the allocator's access type.
25533 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25534 name in a discriminant constraint of a record component.
25535 (Resolve_Explicit_Dereference): Do not check whether the type is
25536 incomplete when the dereference is a use of an access discriminant in
25537 an initialization procedure.
25538 (Resolve_Type_Conversion): Handle conversions to abstract interface
25540 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25541 abstract interface type is always valid.
25542 (Valid_Conversion): Modified to give support to abstract interface types
25543 (Resolve_Actuals): Enable full error reporting on view conversions
25544 between unrelated by_reference array types.
25545 The rule for view conversions of arrays with aliased components is
25546 weakened in Ada 2005.
25547 Call to obsolescent subprogram is now considered to be a violation of
25548 pragma Restrictions (No_Obsolescent_Features).
25549 (Check_Direct_Boolean_Operator): If the boolean operation has been
25550 constant-folded, there is nothing to check.
25551 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25552 check on possible violation of restriction No_Direct_Boolean_Operators
25553 until after expansion of operands, to prevent spurious errors when
25554 operation is constant-folded.
25556 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25557 Has_Compatible_Type): Modified to give support to abstract interface
25559 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25560 of a given type implements a given interface
25562 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25563 prefix is a parameterless function that returns an access_to_procedure.
25564 (Transform_Object_Operation): Handle properly function calls of the
25565 form Obj.Op (X), which prior to analysis appear as indexed components.
25566 (Analyze_One_Call): Complete the error notification to help new Ada
25568 (Analyze_Allocator): For an allocator without an initial value, where
25569 the designated type has a constrained partial view, a discriminant
25570 constraint is illegal.
25572 2005-06-14 Robert Dewar <dewar@adacore.com>
25574 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25575 do with treatment of Set_Col when positioned at end of line character.
25577 2005-06-14 Robert Dewar <dewar@adacore.com>
25579 * atree.adb: (Elist*): Protect against uninitialized field
25581 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25583 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25584 for an attribute reference that returns an access type.
25585 (Apply_Discriminant_Check): No need for check if (designated) type has
25586 constrained partial view.
25588 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25589 both bound checks, rather than a conjunction.
25590 (Insert_Valid_Check): If the expression is an actual that is an indexed
25591 component of a bit-packed array, force expansion of the packed element
25592 reference, because it is specifically inhibited elsewhere.
25594 2005-06-14 Vincent Celier <celier@adacore.com>
25596 * clean.adb (Clean_Project): Correctly delete executable specified as
25597 absolute path names.
25599 * make.adb (Gnatmake): Allow relative executable path names with
25600 directory information even when project files are used.
25601 (Change_To_Object_Directory): Fail gracefully when unable to change
25602 current working directory to object directory of a project.
25603 (Gnatmake): Remove exception handler that could no longer be exercized
25604 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25605 may be deallocated by Normalize_Arguments.
25606 (Collect_Arguments): Eliminate empty arguments
25608 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25609 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25610 (Check_Project): Return False when Project is No_Project. Return True
25611 when All_Projects is True.
25612 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25613 All_Projects to True.
25616 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25617 Javier Miranda <miranda@adacore.com>
25618 Thomas Quinot <quinot@adacore.com>
25619 Robert Dewar <dewar@adacore.com>
25620 Hristian Kirtchev <kirtchev@adacore.com>
25621 Gary Dismukes <dismukes@adacore.com>
25623 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25624 anonymous access types, to indicate that the accessibility level of
25625 the type is determined by that of the enclosing declaration.
25626 (Has_Persistent_BSS): New flag
25627 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25628 of this attribute with functions.
25629 (Is_Primitive_Wrapper): Remove the barrier.
25630 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25631 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25633 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25634 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25636 (Is_Pure_Unit_Access_Type): New flag
25637 (Abstract_Interfaces): Complete the assertion to cover all usages.
25638 (Set_Is_Interface): Complete the assertion to cover all usages.
25639 (Is_Primitive_Wrapper): New attribute.
25640 (Is_Obsolescent): Now applies to all entities (though it is only set
25641 for subprograms currently)
25642 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25643 which solves various problems concerning access subtypes.
25644 (Has_Persistent_BSS): New flag
25645 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25646 Remove these subprograms because this attribute is currently
25649 Has_Specified_Stream_Input (Flag190)
25650 Has_Specified_Stream_Output (Flag191)
25651 Has_Specified_Stream_Read (Flag192)
25652 Has_Specified_Stream_Write (Flag193)
25653 Present in all type and subtype entities. Set for a given view if the
25654 corresponding stream-oriented attribute has been defined by an
25655 attribute definition clause. When such a clause occurs, a TSS is set
25656 on the underlying full view; the flags are used to track visibility of
25657 the attribute definition clause for partial or incomplete views.
25658 (Is_Pure_Unit_Access_Type): New flag
25659 Clarify use of Is_Internal.
25660 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25661 internally generated to wrap the invocation of tasks and protected
25662 types that implement interfaces.
25663 (Implementation_Base_Type): Documentation correction
25664 (Is_Obsolescent): Now applies to all entities (though it is only set
25665 for subprograms currently)
25666 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25667 which solves various problems concerning access subtypes.
25669 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25670 for examined parameters. Identify unequal parameter list lengths as
25671 non-conformant parameters.
25672 (Overriding_Possible): Do not check for "All" qualifier in declaration
25673 of controlling access parameter, following prescription of AI-404.
25674 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25675 that build the procedure body that wraps an entry invocation
25676 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25677 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25678 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25679 give support to abstract interface types
25681 * freeze.adb (Freeze_Entity): Issue error message if
25682 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25683 type has no storage pool (Ada 2005) AI-366.
25684 Also modified to give support to abstract interface types
25685 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25686 Inline_Always pragma.
25688 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25689 now begin an entry declaration.
25690 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25691 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25692 a subprogram declaration preceded by an overriding indicator.
25693 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25694 declarations or subprogram declarations preceded by reserved words
25695 "not" or "overriding".
25696 (P_Entry_Declaration): Update comment. Parse and check overriding
25697 indicator, set semantic flags of entry declarations.
25698 (P_Task): New error message in case of private applied
25699 to a task type declaration.
25700 (P_Protected): New error message in case of private applied
25701 to a task type declaration.
25703 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25704 in which the full view of a type implementing an interface is a
25706 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25707 Declare_Inherited_Private_Subprograms): If an explicit operation
25708 overrides an operation that is inherited in the private part, mark the
25709 explicit one as overriding, to enable overriding indicator checks.
25710 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25711 full view to partial view, to simplify handling in back-end.
25713 * sprint.adb: Print interface lists where needed: derived types,
25714 protected types, task types.
25715 output "is null" for null procedures. Part of implementation of
25717 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25718 relaxation of rules for access types in pure, shared passive partitions.
25720 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25721 first read discriminants into temporary objects, performing checks on
25722 the read values, then possibly performing discriminant checks on the
25723 actual (if it is constrained), and only finally reading the components
25724 into a constrained temporary object.
25725 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25726 case of reading discriminants of a mutable record type to recognize
25727 the new form of the code generated by
25728 Build_Mutable_Record_Read_Procedure.
25730 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25731 of a simple call to Make_TSS_Name.
25732 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25733 buffer, in order for Is_TSS to work correctly on local TSS names.
25735 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25736 Is_Local_Anonymous_Access to check legaliy of attributes in the
25737 context of access components and stand-alone access objects.
25738 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25739 treated as available for a limited private type if there is an
25740 attribute_definition_clause that applies to its full view, but not in
25741 other cases where the attribute is available for the full view
25742 (specifically, the sole fact that the full view is non-limited does not
25743 make the attribute available for the partial view).
25744 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25745 non-overloaded intrinsic subprogram.
25746 (Check_Stream_Attribute): Reject an attribute reference for an
25747 unavailable stream attribute even if the prefix is not a limited type
25748 (case of a 'Input attribute reference for an abstract, non-classwide
25750 (Stream_Attribute_Available): New function to determine whether a stream
25751 attribute is available at a place.
25752 (Check_Attribute): Use Stream_Attribute_Available instead of just
25753 testing for TSS presence on the implementation base type.
25754 (Analyze_Attribute): Modified to give support to task interfaces.
25755 (Analyze_Access_Attribute): Add error check for use of an Access (or
25756 Unrestricted_Access) attribute with a subprogram marked as
25758 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25759 an Address attribute with a subprogram marked as Inline_Always.
25760 Update Eval_Attribute to handle new value of Width from AI-395
25762 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25763 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25764 Factor common code across the stream-oriented attribute circcuits into
25765 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25766 processing is functionally identical to the previous duplicated one,
25767 except that an expression that denotes an abstract subprogram will now
25768 be rejected, as mandated by AI-195 item 5.
25770 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25771 Is_Local_Anonymous_Access to apply accessibility checks to access
25772 components and stand-alone access objects.
25773 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25775 (Is_Potentially_Persistent_Type): New function
25776 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25777 a heap-object whose type has a constrained partial view, the object is
25778 unconstrained and the component may depend on a discriminant, making its
25781 * sinfo.ads, sinfo.adb
25782 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25783 (Must_Override): Flag applicable to N_Entry_Declaration.
25784 Indicate that interface_list can appear in single task and single
25785 protected declarations.
25786 Replace Is_Overriding and Not_Overriding with Must_Override and
25787 Must_Not_Override, to better express intent of AI.
25788 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25789 of an overriding indicator in a subprogram or instance.
25790 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25791 Add the overriding indicator [[not] overriding] construct to the
25792 following grammar productions:
25794 GENERIC_INSTANTIATION
25795 SUBPROGRAM_SPECIFICATION
25797 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25798 can start with an overriding indicator.
25800 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25801 flags accordingly on subrogram specifications or instances.
25804 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25805 overriding_indicator, if present, is consistent with status of spec.
25806 Improve error message for null-excluding checks on controlling access
25808 (Check_In_Previous_With_Clause): Protect the frontend against
25809 previously reported critical errors in the context clauses.
25810 Save and restore Ada_Version_Explicit, for implementation of AI-362
25811 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25812 operation verify that controlling formals of the renamed entity that
25813 are access parameters are explicitly non-null.
25814 (Find_Expanded_Name): Improve error message when prefix is an illegal
25815 reference to a private child unit.
25817 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25818 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25819 Rewrite to correspond to new wide character names in AI-395
25821 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25822 default procedures.
25824 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25825 Robert Dewar <dewar@adacore.com>
25827 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25828 code, not on the bodies of predefined operations, to cut down on
25831 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25833 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25834 be expanded in place. The size computation does not require a
25835 subtraction, which would raise an exception on a compiler built with
25836 assertions when the upper bound is Integer'first.
25837 (Flatten): For an array of composite components, take into account the
25838 size of the components to determine whether it is safe to expand the
25839 array into a purely positional representation.
25841 2005-06-14 Thomas Quinot <quinot@adacore.com>
25843 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25844 denoting a formal parameter into account.
25846 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25848 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25849 the entry_call alternative of a conditional entry call, wrap the
25850 conditional entry call itself.
25852 2005-06-14 Nicolas Setton <setton@adacore.com>
25853 Ed Schonberg <schonberg@adacore.com>
25855 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25856 the "simple_choice" member in a variant record, in accordance with the
25857 description in the package spec: the information output for a constant
25858 should be "S number", not "SS number".
25859 (Get_Encoded_Name): Return at once if not generating code. Avoids name
25860 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25862 2005-06-14 Thomas Quinot <quinot@adacore.com>
25864 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25865 RACW without any primitives, do not generate the if statement for
25866 dispatching by name in the PolyORB/DSA case, as it would be malformed
25867 (it would have an Elsif_Parts list that is not No_List, but with a
25870 2005-06-14 Robert Dewar <dewar@adacore.com>
25872 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25874 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25876 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25877 can determine whether pragma Suppress_Exception_Locations is in effect.
25879 * utils2.c (build_call_raise): Do not pass the file name to the
25880 exception handler if pragma Suppress_Exception_Locations is in effect.
25881 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25883 2005-06-14 Emmanuel Briot <briot@adacore.com>
25885 * g-debpoo.adb (Deallocate, Dereference): Improve output.
25887 2005-06-14 Nicolas Roche <roche@adacore.com>
25889 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25891 (Next_Level): Fix minor bug in handling of ../dir case
25892 (Read): Add dir separator to Directory name so that "" is understood as
25895 2005-06-14 Pascal Obry <obry@adacore.com>
25897 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25898 releasing the items.
25900 2005-06-14 Vincent Celier <celier@adacore.com>
25901 Cyrille Comar <comar@adacore.com>
25903 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25904 with output file descriptor and with output file name.
25905 (Dup, Dup2): Now global procedures as they are used by two subprograms
25906 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25908 2005-06-14 Thomas Quinot <quinot@adacore.com>
25911 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25913 (Create_Selector): Bind listening socket used to create the signalling
25914 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25915 Set listen backlog to 1 to ensure that we detect socket theft by a
25916 failure of our own connect(2) call.
25917 (Check_Selector): Improve documentation of the selector mechanism.
25918 (Broadcast_Inet_Addr): New constant.
25920 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25922 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25923 type which turns out to be an incomplete and incorrect fix.
25924 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25925 of the type is declared in a record (for determination of insertion
25927 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25928 a private type and ensure that the primary entity is used for the type
25929 of the newly created function's V formal by taking the Etype of the
25932 2005-06-14 Javier Miranda <miranda@adacore.com>
25933 Jose Ruiz <ruiz@adacore.com>
25934 Robert Dewar <dewar@adacore.com>
25935 Ed Schonberg <schonberg@adacore.com>
25937 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25938 that indicates if we are parsing a compilation unit found in a
25939 limited-with clause.
25940 It is use to avoid the circularity check.
25942 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25943 we are parsing a compilation unit found in a limited-with clause. This
25944 is use to avoid the circularity check.
25946 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25947 unit as a consequence of parsing a limited-with clause. This is used
25948 to avoid the circularity check.
25950 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25951 (Analyze_Context): Limited-with clauses are now allowed
25952 in more compilation units.
25953 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25954 againts previously reported critical errors in context clauses
25955 (Install_Limited_Withed_Unit): Code cleanup plus static detection
25956 of two further errors: renamed subprograms and renamed packages
25957 are not allowed in limited with clauses.
25958 (Install_Siblings): Do not install private_with_clauses on the package
25959 declaration for a non-private child unit.
25960 (Re_Install_Parents): When a parent of the subunit is reinstalled,
25961 reset visibility of child units properly.
25962 (Install_Withed_Unit): When a child unit appears in a with_clause of its
25963 parent, it is immediately visible.
25965 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25966 Emmanuel Briot <briot@adacore.com>
25968 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25969 declared within an inlined body as referenced, to prevent spurious
25971 (Output_One_Ref): If an entity renames an array component, indicate in
25972 the ALI file that this aliases (renames) the array. Capture as well
25973 function renamings that rename predefined operations.
25974 Add information about generic parent for package and subprogram
25976 (Get_Type_Reference): For a subtype that is the renaming of an actual in
25977 an instantiation, use the first_subtype to ensure that we don't generate
25978 cross-reference information for internal types.
25979 For objects and parameters of a generic private type, retain the '*'
25980 indicator to distinguish such an entity from its type.
25982 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25983 to store information about instantiated entities.
25985 * ali.adb (Scan_ALI): Add support for parsing the reference to the
25988 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25989 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25992 2005-06-10 Doug Rupp <rupp@adacore.com>
25993 Arnaud Charlet <charlet@adacore.com>
25994 Olivier Hainque <hainque@adacore.com>
25995 Jose Ruiz <ruiz@adacore.com>
25997 * Make-lang.in: Add initialize.o when needed.
25998 Remove obsolete references to RT_FLAGS.
25999 Add missing dependencies for sdefault.o
26001 * initialize.c: New file.
26003 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26004 [VMS] cond_signal_table: Fix problem in declaration.
26005 [VMS] __gnat_error_handler: rewrite.
26006 Move all __gnat_initialize() routines to initialize.c
26007 Specialize the former "hpux" section to "hppa hpux", as this is what the
26008 section really is here for and we now have other hpux ports that need
26009 different contents.
26010 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26011 function for this target. Adjust PC by one in the machine context. This
26012 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26013 it is more reliable to do that in the signal handler itself.
26014 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26015 flags, so that the handler is passed the context structure to adjust
26016 prior to the raise.
26017 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26018 SA_SIGINFO sigaction should look like. Call
26019 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26020 Machine_State_Operations stuff.
26021 Add conditional code so that the x86_64 is also supported.
26023 2005-06-14 Pascal Obry <obry@adacore.com>
26025 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26028 2005-06-14 Robert Dewar <dewar@adacore.com>
26030 * opt.ads, opt.adb: New flags for persistent_bss mode
26031 Add Ada_Version_Explicit, for implementation of AI-362
26032 Add Assertions_Enabled_Config and associated handling
26033 Needed since setting can be changed with Assertion_Policy pragma
26034 Add new flag Warn_On_Ada_2005_Compatibility
26036 * switch-c.adb: Recognize -gnatwy/Y
26037 Set Ada_Version_Explicit, for implementation of AI-362
26038 The -gnatg switch now includes -gnatyu
26040 * usage.adb: Add -gnatwy/Y
26041 Remove wrong asterisk on -gnatwX line
26042 Add line for -gnatyu switch
26044 2005-06-14 Vincent Celier <celier@adacore.com>
26046 * osint.adb (Add_Default_Search_Dirs): Put source and object
26047 directories of project files before directories coming from
26048 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26050 2005-06-14 Robert Dewar <dewar@adacore.com>
26053 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26054 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26056 2005-06-14 Vincent Celier <celier@adacore.com>
26058 * prep.adb (Preprocess): Ignore error when scanning the first token of
26061 2005-06-14 Vincent Celier <celier@adacore.com>
26063 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26064 (Check_Stand_Alone_Library): If the specified reference symbol file does
26065 not exist, only issue a warning when the symbol policy is not
26066 Controlled. And, when symbol policy is Compliant, set the symbol
26067 policy to Autonomous.
26069 2005-06-14 Vincent Celier <celier@adacore.com>
26071 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26072 when the project file in a with clause is not the last one, that is the
26073 project file name is followed by a comma.
26074 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26075 (Print): Issue list of project files separated by commas in with clauses
26076 according to the values returned by Is_Not_Last_In_List.
26077 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26078 (Set_Is_Not_Last_In_List): New procedure
26080 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26082 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26084 2005-06-14 Robert Dewar <dewar@adacore.com>
26086 * scng.adb: Add call to new Check_EOF routine
26087 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26088 Add some comments regarding wide character handling
26090 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26092 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26094 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26095 characters are now considered graphic characters and hence yield false
26098 * nmake.adt: Modify header so that xnmake does not generate output
26099 files with multiple blank lines.
26101 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26102 not have an extra blank line
26104 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26106 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26107 expression when the component type is an anonymous access type to
26108 ensure that appropriate accessibility checks are done.
26110 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26111 expression of an assignment when the target object is of an anonymous
26112 access type. This ensures that required accessibility checks are done.
26113 (One_Bound): Move the check for type Universal_Integer to
26115 (Process_Bounds): Check whether the type of the preanalyzed range is
26116 Universal_Integer, and in that case set Typ to Integer_Type prior
26117 to setting the type of the original range and the calls to One_Bound.
26119 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26121 * sem_case.adb (Expand_Others_Choice): Improve warning.
26123 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26125 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26126 constraint of full view if present, when other type is discriminated.
26127 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26128 when the pointer is known to be non-null, and emit appropriate warning.
26130 2005-06-14 Robert Dewar <dewar@adacore.com>
26131 Ed Schonberg <schonberg@adacore.com>
26134 * sem_prag.adb: Implement pragma Persistent_BSS
26135 Remove obsolete pragma Persistent_Data, Persistent_Object
26136 Set Ada_Version_Explicit, for implementation of AI-362
26137 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26138 Add processing for pragma Pure_05 and Preelaborate_05
26139 Add processing for Assertion_Policy pragma
26140 Add pragma identifiers for Assert
26141 (Analyze_Pragma, case Assert): Check number of arguments
26142 (Process_Inline): Additional guard against an illegal program, where the
26143 argument of the pragma is undefined, and warnings on redundant
26144 constructs are enabled.
26145 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26146 Ada_05 to this pragma, specifying that the pragma is only active in
26148 (Check_Arg_Order): New procedure
26149 Add appropriate calls to this procedure throughout
26150 Also throughout, check entity name before doing any other checks
26152 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26153 Remove obsolete pragma Persistent_Data, Persistent_Object
26154 Add entries for pragma Pure_05 and Preelaborate_05
26155 Add entries for Assertion_Policy pragma and associated names
26156 Add some names for pragma argument processing
26158 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26160 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26162 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26163 appears within a negation (either from source or as a rewriting of
26164 inequality) adjust text of warning accordingly.
26166 2005-06-14 Thomas Quinot <quinot@adacore.com>
26168 * s-strxdr.adb: Follow AI95-00132
26170 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26172 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26174 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26175 Jose Ruiz <ruiz@adacore.com>
26177 * s-tposen.adb, s-tpobop.adb
26178 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26180 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26181 there is no violation of the Max_Entry_Queue_Length restriction (if it
26182 has been set); Program_Error is raised otherwise.
26183 (Requeue_Call): Before requeuing the task on the target entry queue we
26184 check that there is no violation of the Max_Entry_Queue_Length
26185 restriction (if it has been set); Program_Error is raised otherwise.
26187 2005-06-14 Robert Dewar <dewar@adacore.com>
26189 * styleg.adb: Fix several remaining problems in -gnatyu switch
26190 Blank line count not reset at start
26191 Scanning outside source buffer in some cases
26192 Confusing message for blanks at end of file
26193 Non-empty blank lines not recognized
26195 * nmake.adt: Modify header so that xnmake does not generate output
26196 files with multiple blank lines.
26198 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26199 not have an extra blank line
26201 2005-06-14 Sergey Rybin <rybin@adacore.com>
26203 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26205 2005-06-14 Doug Rupp <rupp@adacore.com>
26206 Vincent Celier <celier@adacore.com>
26208 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26211 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26212 Remove "Library" command.
26213 Change keyword for style check -gnatyd from NOCRLF to
26215 Remove useless second style check keyword NONE
26216 Remove help documentation for inexistent style check keyword
26218 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26219 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26220 Add UNNECESSARY_BLANK_LINES for -gnatyu
26221 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26223 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26225 2005-06-14 Vincent Celier <celier@adacore.com>
26227 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26228 gprmake was invoked with -d.
26229 (Compile_Sources): If -d was used, output the "completed ..." message
26230 for each compilation.
26231 (Scan_Arg): Recognize new switch -d
26232 When -c and at least one main is specified, set
26233 Unique_Compile to True to guarantee that no other sources will be
26236 2005-06-14 Matthew Heaney <heaney@adacore.com>
26238 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26239 * a-swuwha.ads, a-swuwha.adb: New files
26241 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26242 * a-szuzha.ads, a-szuzha.adb: New files.
26244 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26245 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26246 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26247 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26248 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26249 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26250 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26251 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26252 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26253 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26256 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26257 Olivier Hainque <hainque@adacore.com>
26258 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26259 Pascal Obry <obry@adacore.com>
26261 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26263 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26264 making a temporary around a procedure call because of non-addressable
26266 (process_freeze_entity): If entity is a private type, capture size
26267 information that may have been computed for the full view.
26268 (tree_transform, case N_Allocator): If have initializing expression,
26269 check type for Has_Constrained_Partial_View and pass that to
26271 (tree_transform, case N_Return_Statement): Pass extra arg to
26274 * decl.c (annotate_value): Remove early return if -gnatR is not
26276 (gnat_to_gnu_field): Don't make a packable type for a component clause
26277 if the position is byte aligned, the field is aliased, and the clause
26278 size isn't a multiple of the packable alignment. It serves no useful
26279 purpose packing-wise and would be rejected later on.
26280 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26283 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26284 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26286 (create_concat_name): Idem.
26288 2005-06-10 Robert Dewar <dewar@adacore.com>
26289 Eric Botcazou <ebotcazou@adacore.com>
26290 Ben Brosgol <brosgol@adacore.com>
26291 Cyrille Comar <comar@adacore.com>
26292 Sergey Rybin <rybin@adacore.com>
26293 Pascal Obry <obry@adacore.com>
26295 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26296 Document second argument (Ada_05) of pragma Obsolescent
26297 Add note that call to subprogram marked with pragma Obsolescent
26298 is now considered to be a violation of program Restrictions
26299 (No_Obsolescent_Features).
26300 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26301 that only machine-dependent attributes are supported.
26304 Commented out menu lines and empty section for gnatclean examples
26306 Fix some over long lines
26307 Clarify and enhance documentation of ADA_PROJECT_PATH.
26308 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26309 Mention new switch -fcallgraph-info.
26310 Mention new switch -fstack-usage.
26311 For gnatpp, replace '-notab' with '-N' and add this option to Index
26312 Corrected VMS example.
26313 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26315 Add documentation for -gnatyu switch (unnecessary blank lines)
26316 Document new switch -U for GNAT PRETTY and GNAT METRIC
26317 Add note about Stdcall being handled as C convention on non Windows OS.
26318 Remove some junk typo in description of gnatbind -S switch
26319 Remove reference to Extensions_Allowed pragma
26320 Document the new order of the directories to be searched (source and
26321 object directories of project files before directories in ADA_*_PATH
26322 environment variables.
26324 * g-trasym.ads: Document that IRIX is supported
26326 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26328 * Makefile.in: Add initialize.o when needed.
26329 Adapt to new VMS package body Symbols and subunits
26330 No specialized version of a-sytaco is needed for VxWorks.
26332 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26333 * a-zchara.ads, a-widcha.ads: New files.
26335 * system-hpux-ia64.ads: New file.
26337 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26338 is imported from the VxWorks kernel.
26340 2005-06-14 Robert Dewar <dewar@adacore.com>
26342 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26343 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26344 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26345 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26346 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26347 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26348 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26349 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26350 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26351 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26352 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26353 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26355 2005-06-14 Thomas Quinot <quinot@adacore.com>
26357 * xeinfo.adb: Fix typo in comment
26359 2005-06-14 Javier Miranda <miranda@adacore.com>
26361 * repinfo.ads: Fix typo in comment
26363 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26365 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26366 Parent_Tag is now in the visible part of Ada.Tags).
26367 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26368 using imported function.
26370 2005-06-14 Bernard Banner <banner@adacore.com>
26372 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26373 also apply for handling support for VxSim 653.
26375 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26377 * xsnames.adb: Add automatic generation of snames.h.
26379 2005-06-14 Thomas Quinot <quinot@adacore.com>
26381 * gen-soccon.c: Add IP_MULTICAST_IF constant
26382 Minor reformatting and adjustments to prevent warnings.
26384 2005-06-14 Pascal Obry <obry@adacore.com>
26386 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26388 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26390 * trans.c (gnat_gimplify_expr): Call
26391 recompute_tree_invarant_for_addr_expr when we change
26392 the operand of the ADDR_EXPR.
26394 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26396 * misc.c: Don't include errors.h.
26398 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26400 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26402 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26404 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26406 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26408 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26411 * Makefile.in: Make TGT_LIB behave correctly.
26413 2005-04-23 DJ Delorie <dj@redhat.com>
26415 * misc.c: Adjust warning() callers.
26417 2005-04-16 Laurent Guerby <laurent@guerby.net>
26420 * a-nudira.adb (Value): Check for valid string.
26421 * a-nuflra.adb (Value): Likewise.
26423 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26425 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26427 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26429 * adaint.c, init.c, tracebak.c: Fix comment typos.
26430 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26432 2005-04-07 Laurent Guerby <laurent@guerby.net>
26433 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26435 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26436 * system-hpux.ads: Define Signed_Zeros to be True.
26437 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26439 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26441 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26442 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26445 2005-03-30 Tom Tromey <tromey@redhat.com>
26447 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26449 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26451 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26453 2005-03-29 Robert Dewar <dewar@adacore.com>
26455 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26456 fixed-point expression has value that is not a multiple of the Small
26459 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26461 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26464 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26466 2005-03-29 Vincent Celier <celier@adacore.com>
26468 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26469 (Build_Dynamic_Library.Version_String): Return the empty string when
26470 Lib_Version is empty or when the symbol policy is not Autonomous.
26472 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26473 a symbol is not in the reference symbol file, increase the Major ID
26474 and set the Minor ID to 0.
26475 Use gsmatch=lequal instead of gsmatch=equal
26477 2005-03-29 Doug Rupp <rupp@adacore.com>
26479 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26480 name and translate.
26482 2005-03-29 Javier Miranda <miranda@adacore.com>
26484 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26485 (Inherit_DT): The first formal has been redefined as a Tag.
26486 This allows us the removal of the subprogram Get_TSD.
26487 (TSD): Replace the call to Get_TSD by the actual code.
26489 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26490 (Make_DT): Upgrade the call to Inherit_TSD according to the
26491 new interface: the first formal is now a Tag.
26493 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26494 redefined as a Tag.
26495 This change allows us to remove the subprogram Get_TSD.
26496 (CPP_Get_TSD): Subprogram removed.
26497 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26499 * rtsfind.ads: Remove support to call the run-time
26502 2005-03-29 Robert Dewar <dewar@adacore.com>
26504 * errutil.adb, errout.adb:
26505 Minor comment updates on Line_Terminator references
26507 * par-ch10.adb: Add ??? comment about line terminator
26509 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26510 (check dos line terminator).
26511 (Check_Line_Max_Length): New procedure, split off from the existing
26512 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26513 be properly recognized.
26515 * styleg.adb: Add ??? comment for line terminator reference
26517 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26518 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26520 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26521 (check dos line terminator).
26522 (Check_Line_Max_Length): New procedure, split off from the existing
26523 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26524 be properly recognized.
26526 * stylesw.ads, stylesw.adb:
26527 Add handling for new -gnatyd switch (check dos line terminator)
26529 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26530 Recognize -gnatwb/-gnatwB switches
26531 Include Warn_On_Bad_Fixed_Value for -gnatg
26534 Add line for new -gnatyd switch (check dos line terminator)
26536 * usage.adb: Add lines for -gnatwb/-gnatwB
26538 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26540 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26542 * gnat_ugn.texi: Fix overlong lines
26543 Document new -gnatyd switch
26544 Document new -gnatwb/-gnatwB switches
26546 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26548 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26549 order to retrieve the component list of the type, before examining
26550 individual components.
26552 * sem_type.adb (Covers): Types are compatible if one is the base type
26553 of the other, even though their base types might differ when private
26554 views are involved.
26556 2005-03-29 Thomas Quinot <quinot@adacore.com>
26558 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26559 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26560 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26561 analyzed if expansion is disabled (which could otherwise cause spurious
26562 error messages if expansion has been disabled due to previous
26563 (unrelated) errors).
26565 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26566 is disabled, the entity denoted by the argument is the access type
26567 itself, not an underlying record type, so there is no need to go back
26568 to the Corresponding_Remote_Type.
26570 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26571 Robert Dewar <dewar@adacore.com>
26573 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26574 expand a call to an instance of
26575 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26576 Constructor actual of the instance. A class-wide membership
26577 check is also generated, to ensure that the tag passed to the instance
26578 denotes a type in the class.
26579 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26580 of Name_Generic_Dispatching_Constructor.
26582 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26583 05 unit for AI-260-02).
26585 * a-tgdico.ads: New file.
26587 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26588 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26590 * snames.ads, snames.adb (Preset_Names): Add entry for
26591 Generic_Dispatching_Constructor.
26594 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26595 character type cases.
26596 (Analyze_Subprogram_Renaming): Add special handling for
26597 the case of renaming of stream attributes when the renaming denotes a
26598 generic formal subprogram association for an abstract formal subprogram.
26599 Check that the attribute is a primitive stream attribute (and not
26600 a class-wide stream attribute) and then rewrite the attribute name
26601 as the name of the appropriate compiler-generated stream primitive.
26603 2005-03-29 Robert Dewar <dewar@adacore.com>
26605 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26607 (Is_Possibly_Unaligned_Object): Correct typo that
26608 resulted in inaccurate result for unaligned scalars within records.
26610 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26612 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26613 itype whose parent is controlled and not yet frozen, do not create a
26614 freeze node for the itype if expansion is disabled.
26616 2005-03-29 Vincent Celier <celier@adacore.com>
26618 * make.adb (Gnatmake): Don't fail if the main project file is declared
26619 as having no Ada sources. Do not display message "no sources to
26620 compile" in quiet output.
26622 2005-03-29 Doug Rupp <rupp@adacore.com>
26624 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26627 2005-03-29 Robert Dewar <dewar@adacore.com>
26629 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26632 2005-03-29 Robert Dewar <dewar@adacore.com>
26634 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26635 missing TYPE Improve the error message generated when compiling a
26636 limited interface in Ada83 or Ada95 mode.
26638 2005-03-29 Robert Dewar <dewar@adacore.com>
26640 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26641 rather than proceed ahead using a junk attribute name.
26643 2005-03-29 Vincent Celier <celier@adacore.com>
26645 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26647 * prj-part.adb (Parse_Single_Project): Set the location of a project
26648 on its defining identifier, rather than on the reserved word "project".
26650 * prj-proc.adb (Expression): Adapt to the fact that default of external
26651 references may be string expressions, not always literal strings.
26652 (Recursive_Process): Set Display_Name equal to Name
26653 when Location is No_Location, that is when there is no actual file.
26654 Get the Display_Name of the project from the source, when it is not a
26656 (Process): Use the Display_Name in error messages
26658 * prj-strt.adb (External_Reference): Allow default to be string
26659 expressions, not only literal strings.
26661 2005-03-29 Vincent Celier <celier@adacore.com>
26663 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26664 file and the reference symbol file to be the same file.
26666 2005-03-29 Thomas Quinot <quinot@adacore.com>
26668 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26669 forbid conversion of a local access-to-subprogram type to a remote one.
26671 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26672 equivalent type for a remote access-to-subprogram type, go back to the
26673 original RAS entity when displaying an error message, so the casing is
26674 the original source casing.
26676 2005-03-29 Robert Dewar <dewar@adacore.com>
26678 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26681 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26683 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26684 subtype if code is being pre-analyzed, to prevent un-expanded
26685 references to protected formals, among others.
26686 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26687 interpretation that can be a call, include the result of the call as a
26688 possible interpretation of the dereference.
26690 * sem_ch5.adb (Process_Bounds): Determine type of range by
26691 pre-analyzing a copy of the original range, and then analyze the range
26692 with the expected type.
26694 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26695 with an overloaded prefix where not all interpretations yield an
26696 access to subprogram, do not rewrite node as a call.
26697 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26698 the node as a call once the context identifies the interpretation of
26699 the prefix whose call yields the context type.
26700 (Valid_Conversion): For the case of a conversion between
26701 local access-to-subprogram types, check subtype conformance using
26702 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26703 detailed error message.
26705 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26707 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26708 indicator, indicate that the formal can never be null.
26709 (Process_Formals): If a formal has a non_null indicator, insert the
26710 resulting subtype immediately before the enclosing subprogram decl,
26711 and not at the beginning of the corresponding declarative part, to
26712 prevent access before elaboration (Ada2005).
26714 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26717 * utils.c (finish_record_type): Use variable_size when setting sizes.
26719 2005-03-29 Robert Dewar <dewar@adacore.com>
26721 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26722 guarantee Unix style line terminators for the output files, even when
26723 running on windows.
26725 2005-03-29 Robert Dewar <dewar@adacore.com>
26727 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26728 buffer if an exception is raised.
26730 2005-03-29 Ed Falis <falis@adacore.com>
26732 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26735 2005-03-29 Robert Dewar <dewar@adacore.com>
26737 * sem_util.ads: Minor reformatting
26738 * gnat_rm.texi: Minor editing.
26740 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26742 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26743 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26745 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26747 * adaint.c (__gnat_portable_spawn): Adjust cast.
26749 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26751 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26753 2005-03-17 Pascal Obry <obry@adacore.com>
26755 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26758 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26759 Reimplement under Win32 using Win32 API.
26761 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26764 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
26766 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26767 (DECL_RENAMED_OBJECT): New accessor macro.
26768 (SET_DECL_RENAMED_OBJECT): New setter macro.
26770 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26771 object in all cases. Attach the renamed object to the VAR_DECL.
26772 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26773 field is not prescribed.
26775 * misc.c (gnat_handle_option): Handle -gnatO separately.
26776 (gnat_print_decl) <VAR_DECL>: New case.
26777 Print the DECL_RENAMED_OBJECT node.
26779 * lang.opt: Declare separate -gnatO option.
26781 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26782 pointer, replace it with the renamed object.
26783 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26784 pointer type if the source is not a fat pointer type whose underlying
26785 array has the same non-zero alias set as that of the destination array.
26787 2005-03-17 Javier Miranda <miranda@adacore.com>
26789 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26790 (Get_Inheritance_Depth): Removed.
26791 (Set_Inheritance_Depth): Removed.
26793 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26794 subprogram Get_Expanded_Name because it is not referenced by the
26797 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26798 (CPP_Get_Inheritance_Depth): Removed.
26799 (CPP_Set_Inheritance_Depth): Removed.
26801 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26803 2005-03-17 Robert Dewar <dewar@adacore.com>
26805 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26806 3, since we now expect GCC 3 to do all the work.
26808 2005-03-17 Javier Miranda <miranda@adacore.com>
26810 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26811 of one barrier to avoid wrong usage of this attribute.
26813 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26814 First_Private_Entity.
26816 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26817 the subprogram against wrong usage.
26818 Adapt the code to traverse the entities in the
26819 scope of a record_type because in addition to its usage regarding
26820 packages, this subprogram is also called by Expand_N_Freeze_Entity
26821 to install the visible declarations of the enclosing scope of a
26822 record_type_with_private to establish the proper visibility before
26823 freezing the entity and related subprograms.
26825 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26827 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26830 2005-03-17 Thomas Quinot <quinot@adacore.com>
26832 * exp_ch3.adb (Check_Attr): New subprogram.
26833 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26834 into a new Check_Attr subprogram, in order to provide a more
26835 explanatory error message (including the name of the missing attribute).
26836 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26837 subprogram determines whether a default implementation exists for a
26838 given stream attribute.
26839 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26840 Determine whether to generate a default implementation for each stream
26841 attribute separately, as this depends on the specific attribute.
26843 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26844 limited extension where a stream attribute is missing for a limited
26845 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26846 generate a bogus reference to the missing attribute to prevent
26847 cascaded errors. Instead, generate a null statement.
26849 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26850 available for a limited type if it has been specified for an ancestor
26853 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26855 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26856 entity is an operator.
26858 2005-03-17 Thomas Quinot <quinot@adacore.com>
26860 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26861 spec, to make this predicate available to other units.
26863 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26866 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26867 when no distribution runtime library is available.
26869 * sem_res.adb, sem_dist.adb: Disable expansion of remote
26870 access-to-subprogram types when no distribution runtime library is
26872 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26873 predicate available to other units.
26875 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26876 spec, to make this predicate available to other units.
26878 2005-03-17 Vincent Celier <celier@adacore.com>
26880 * make.adb (Insert_Project_Sources): Make sure the Q is always
26883 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26884 the default for the tree, not the global default naming.
26886 * prj-proc.adb (Recursive_Process): No need to put the default naming
26887 in the project data, it's already there.
26889 2005-03-17 Doug Rupp <rupp@adacore.com>
26891 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26893 * 5xcrtl.ads: Renamed to...
26894 * s-crtl-vms64.ads: ...this new file
26896 2005-03-17 Robert Dewar <dewar@adacore.com>
26899 * namet.adb (Copy_One_Character): Set proper wide character encoding
26900 for upper half character if we have upper half encoding.
26902 2005-03-17 Robert Dewar <dewar@adacore.com>
26904 * par.adb (Par): Improved msg for attempt to recompile predefined unit
26906 2005-03-17 Thomas Quinot <quinot@adacore.com>
26908 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26909 tagged limited type, the TSS is a newly built renaming declaration:
26910 insert it using Set_TSS, not Copy_TSS.
26912 2005-03-17 Javier Miranda <miranda@adacore.com>
26914 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26915 Try_Object_Operation): Analyze the object that is accessible
26916 through the prefix of the subprogram call before we apply
26917 the transformation of the object-operation notation.
26919 2005-03-17 Jose Ruiz <ruiz@adacore.com>
26921 * s-taprob.adb (Initialize_Protection): Initialize the protected
26922 object's owner to Null_Task.
26923 (Lock): If pragma Detect_Blocking is in effect and the caller of this
26924 procedure is already the protected object's owner then Program_Error
26925 is raised. In addition the protected object's owner is updated.
26926 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26927 of this procedure is already the protected object's owner then
26928 Program_Error is raised.
26929 In addition the protected object's owner is updated.
26930 (Unlock): Remove the ownership of the protected object.
26932 * s-taprob.ads (Protection): Add the field Owner, used to store the
26933 protected object's owner.
26934 This component is needed for detecting one type of potentially blocking
26935 operations (external calls on a protected subprogram with the same
26936 target object as that of the protected action). Document the rest of
26939 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26940 Initialize the protected object's owner to Null_Task.
26941 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26942 caller of this procedure is already the protected object's owner then
26943 Program_Error is raised.
26944 Do not raise Program_Error when this procedure is called from a
26946 (Unlock_Entries): Remove the ownership of the protected object.
26947 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26948 of this procedure is already the protected object's owner then
26949 Program_Error is raised.
26950 Do not raise Program_Error when this procedure is called from
26951 a protected action.
26953 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26954 used to store the protected object's owner.
26956 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26957 effect and this procedure (a potentially blocking operation) is called
26958 from whithin a protected action, Program_Error is raised.
26959 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26960 and this procedure (a potentially blocking operation) is called from
26961 whithin a protected action, Program_Error is raised.
26963 2005-03-17 Vincent Celier <celier@adacore.com>
26964 Nicolas Setton <setton@adacore.com>
26966 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26967 switch, not supported by the linker on Darwin. Add '_' before
26968 <library>init, as this character is added unconditionally by the
26970 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26971 correct one ".dylib". This fixes detection of the archive files when
26972 building library projects.
26974 2005-03-17 Vincent Celier <celier@adacore.com>
26976 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26977 -gnat83, -gnat95 and -gnat05.
26979 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
26981 * gnat_ugn.texi: Document gnatmem restriction
26983 2005-03-17 Thomas Quinot <quinot@adacore.com>
26985 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26988 2005-03-17 Robert Dewar <dewar@adacore.com>
26990 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26991 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26992 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26994 * casing.adb: Comment improvements
26996 2005-03-17 Pascal Obry <obry@adacore.com>
26998 * g-expect.adb: Minor reformatting.
27000 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27002 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27003 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27006 2005-03-15 Vincent Celier <celier@adacore.com>
27008 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27009 Add new parameter In_Tree to specify the project tree: needed
27010 by the project manager. Adapt to changes in project manager
27011 using new parameter In_Tree.
27013 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27015 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27016 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27017 ada/bldtools to avoid make -jN failures.
27019 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27021 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27022 to NULL_TREE on entry.
27024 2005-03-15 Robert Dewar <dewar@adacore.com>
27026 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27027 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27028 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27029 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27030 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27031 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27032 system-interix.ads, system-solaris-sparc.ads,
27033 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27034 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27035 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27036 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27037 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27038 Compiler_System_Version to be False.
27040 * opt.ads: Add new flag Opt.Address_Is_Private
27042 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27043 Add new parameter Compiler_System_Version to avoid checking for
27044 completeness of parameters when compiler is compiling itself.
27045 Allows old versions of GNAT to be compiled with new compiler.
27047 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27049 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27050 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27052 (Stack_Base_Available): New flag.
27053 (Get_Page_Size): New overloaded functions imported from C.
27054 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27055 PROT_ON, PROT_OFF): New constants.
27056 (mprotect): New function imported from C.
27057 (pthread_teb_t): New record type.
27059 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27060 (Create_Task): Account for the Yellow Zone and the guard page.
27062 2005-03-15 Vincent Celier <celier@adacore.com>
27064 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27065 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27066 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27067 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27068 Library_File_Name_For): Add new parameter In_Tree
27069 to specify the project tree: needed by the project manager.
27070 Adapt to changes in project manager using new parameter In_Tree.
27071 Remove local imports, use functions in System.CRTL.
27073 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27074 to use the project manager.
27076 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27077 In_Tree to designate the project tree. Adapt to changes in the project
27078 manager, using In_Tree.
27080 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27081 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27082 project tree: needed by the project manager.
27083 (Build_Library): Check that Arg'Length >= 6 before checking if it
27084 contains "--RTS=...".
27086 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27087 Library_File_Name_For): Add new parameter In_Tree to specify the
27088 project tree: needed by the project manager.
27090 * prj.ads, prj.adb: Major modifications to allow several project trees
27091 in memory at the same time.
27092 Change tables to dynamic tables and hash tables to dynamic hash
27093 tables. Move tables and hash tables from Prj.Com (in the visible part)
27094 and Prj.Env (in the private part). Move some constants from the visible
27095 part to the private part. Make other constants deferred.
27096 (Project_Empty): Make it a variable, not a function
27097 (Empty_Project): Add parameter Tree. Returns the data with the default
27098 naming data of the project tree Tree.
27099 (Initialize): After updating Std_Naming_Data, copy its value to the
27100 component Naming of Project Empty.
27101 (Register_Default_Naming_Scheme): Use and update the default naming
27102 component of the project tree, instead of the global variable
27104 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27105 Tree is not defaulted, return the default naming data of the Tree.
27106 (Initial_Buffer_Size): Constant moved from private part
27107 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27108 variables initialized in procedure Initialize.
27109 (Add_To_Buffer): Add two in out parameters to replace global variables
27110 Buffer and Buffer_Last.
27111 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27113 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27115 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27116 for the project tree.
27117 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27118 constant at the beginning of the package spec, so that they cane be used
27119 in subprograms before their full declarations.
27120 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27121 (Empty_Project): Add parameter of type Project_Node_Ref
27122 (Private_Project_Tree_Data): Add component Default_Naming of type
27124 (Buffer, Buffer_Last): remove global variables
27125 (Add_To_Buffer): Add two in out parameters to replace global variables
27126 Buffer and Buffer_Last.
27127 (Current_Packages_To_Check): Remove global variable
27128 (Empty_Name): Move to private part
27129 (No-Symbols): Make it a constant
27130 (Private_Project_Tree_Data): New type for the private part of the
27132 (Project_Tree_Data): New type for the data of a project tree
27133 (Project_Tree_Ref): New type to designate a project tree
27134 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27135 for the project tree.
27137 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27138 imports package Table.
27140 * prj-com.adb: Remove empty, no longer needed body
27142 * prj-com.ads: Move most of the content of this package to package Prj.
27144 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27145 designate the project node tree and Packages_To_Check to replace
27146 global variable Current_Packages_To_Check.
27147 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27148 when needed. Adapt to changes in project manager with project node tree
27151 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27152 project tree to most subprograms. Move tables and hash tables to
27153 private part of package Prj.
27154 Adapt to changes in project manager using project tree In_Tree.
27156 * prj-makr.adb (Tree): New constant to designate the project node tree
27157 Adapt to change in project manager using project node tree Tree
27159 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27160 display the Library_Src_Dir and the Library_Dir.
27161 Add new parameter In_Tree to designate the project node tree to most
27162 subprograms. Adapt to changes in the project manager, using project tree
27164 (Check_Naming_Scheme): Do not alter the casing on platforms where
27165 the casing of file names is not significant.
27166 (Check): Add new parameter In_Tree to designate the
27168 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27169 designate the project tree.
27170 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27172 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27173 to replace those that were in the private part of package Prj.
27174 Add new parameter In__Tree to designate the project node tree to most
27175 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27176 (Post_Parse_Context_Clause): When specifying the project node of a with
27177 clause, indicate that it is a limited with only if there is "limited"
27178 in the with clause, not necessarily when In_Limited is True.
27179 (Parse): Add new parameter In_Tree to designate the project node tree
27181 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27182 designate the project node tree. Adapt to change in Prj.Tree with
27183 project node tree In_Tree.
27185 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27186 tree In_Tree in the call to function Empty_Process to give its initial
27187 value to the project data Processed_Data.
27188 Add new parameters In_Tree to designate the project tree and
27189 From_Project_Node_Tree to designate the project node tree to several
27190 subprograms. Adapt to change in project manager with project tree
27191 In_Tree and project node tree From_Project_Node_Tree.
27193 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27194 to replace those that were in the private part of package Prj.
27195 Add new parameter In_Tree to designate the project node tree to most
27196 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27198 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27199 Project_Node_Tree_Ref to most subprograms.
27200 Use this new parameter to store project nodes in the designated project
27202 (Project_Node_Tree_Ref): New type to designate a project node tree
27203 (Tree_Private_Part): Change table to dynamic table and hash tables to
27204 dynamic hash tables.
27206 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27207 the project tree to most subprograms. Adapt to changes in project
27208 manager using project tree In_Tree.
27210 * makegpr.adb (Project_Tree): New constant needed to use project
27213 2005-03-15 Olivier Hainque <hainque@adacore.com>
27215 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27216 for sigactions with SA_SIGINFO set. Call
27217 __gnat_adjust_context_for_raise before raising, to perform the
27218 potentially required adjustments to the machine context for the GCC
27221 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27223 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27224 Adjust PC by one in the provided machine context.
27225 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27226 so that the handler is passed the context structure to adjust prior to
27228 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27229 SA_SIGINFO sigaction should look like. Call
27230 __gnat_adjust_context_for_raise before actually raising.
27231 (__gnat_adjust_context_for_raise): Default noop to help PC
27232 adjustments before raise from signal handlers.
27233 (__gnat_error_handler): Indirectly call a predicate function to
27234 determine if a condition should be resignaled or not.
27235 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27236 (__gnat_default_resignal_p): Default GNAT predicate.
27238 2005-03-15 Doug Rupp <rupp@adacore.com>
27240 * adaint.c: Prefix #include of VMS system header files with vms/
27241 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27242 Do not define a dummy function "convert_addresses" under Darwin,
27245 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27248 2005-03-15 Nicolas Setton <setton@adacore.com>
27250 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27253 2005-03-15 Robert Dewar <dewar@adacore.com>
27255 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27258 * a-retide.ads: Minor comment changes
27260 2005-03-15 Robert Dewar <dewar@adacore.com>
27262 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27263 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27264 Realloc_For_Chunk to private part of package.
27265 New subprograms for AI-301
27267 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27268 Get_Line procedure.
27269 Avoid unnecessary use of Get/Set_Wide_String
27271 2005-03-15 Robert Dewar <dewar@adacore.com>
27274 * a-stunau.ads, a-stunau.adb:
27275 Change interface to allow efficient (and correct) implementation
27276 The previous changes to allow extra space in unbounded strings had
27277 left this interface a bit broken.
27279 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27281 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27282 Minor reformatting (function specs)
27284 * g-spitbo.adb: New interface for Get_String
27286 * g-spitbo.ads: Minor reformatting
27288 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27290 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27292 2005-03-15 Javier Miranda <miranda@adacore.com>
27293 Robert Dewar <dewar@adacore.com>
27294 Thomas Quinot <quinot@adacore.com>
27295 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27297 * atree.ads, atree.adb: Add support for Elist24 field
27299 * atree.h: Fix wrong definition of Field27
27300 Add support for Elist16 field
27301 Add support for Elist24 field
27303 * einfo.ads, einfo.adb (Abstract_Interfaces,
27304 Set_Abstract_Interfaces): New subprograms.
27305 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27307 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27308 entities rather than a single node.
27309 (Is_Interface, Set_Is_Interface): New subprogram
27310 (First_Tag_Component): New syntesized attribute
27311 (Next_Tag_Component): New synthesized attribute
27312 (Write_Entity_Flags): Upgraded to write Is_Interface
27313 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27314 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27315 (Task_Body_Procedure): New subprogram to read this attribute.
27316 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27317 (Has_Controlled_Component): Now applies to all entities.
27318 This is only a documentation change, since it always worked to apply
27319 this to other than composite types (yielding false), but now this is
27321 Update documentation on Must_Be_Byte_Aligned for new spec
27323 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27324 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27325 uses of the Access_Disp_Table attribute to reference the first dispatch
27326 table associated with a tagged type. As
27327 part of the implementation of abstract interface types,
27328 Access_Disp_Table has been redefined to contain a list of dispatch
27329 tables (rather than a single dispatch table).
27330 Similarly, upgrade all the references to Tag_Component by the
27331 new attribute First_Tag_Component.
27332 (Find_Inherited_TSS): Moved to exp_tss.
27333 Clean up test in Expand_N_Object_Declaration for cases
27334 where we need to do a separate assignment of the initial value.
27335 (Expand_N_Object_Declaration): If the expression in the
27336 declaration of a tagged type is an aggregate, no need to generate an
27337 additional tag assignment.
27338 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27340 Bit packed array ops are only called if operands are known to be
27342 (Component_Equality): When returning an N_Raise_Program_Error statement,
27343 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27344 expects that only expressions have a bona fide type).
27345 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27346 determine the amount of data to be copied.
27348 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27349 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27350 INTERFACE_TYPE_DEFINITION ::=
27351 [limited | task | protected | synchronized] interface
27352 [AND interface_list]
27354 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27356 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27358 (P_Interface_Type_Definition): New subprogram that parses the new
27359 syntax rule of Ada 2005 interfaces
27360 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27361 messages by the correct RENAMES (quotes removed).
27363 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27364 attribute First_Tag_Component.
27366 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27367 (Interface_List, Set_Interface_List): New subprograms.
27368 (Interface_Present, Set_Interface_Present): New subprograms.
27369 (Limited_Present, Set_Limited_Present): Available also in derived
27370 type definition nodes.
27371 (Protected_Present, Set_Protected_Present): Available also in
27372 record type definition and
27373 derived type definition nodes.
27374 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27375 (Task_Present, Set_Task_Present): New subprogram.
27376 (Task_Body_Procedure): Removed.
27377 (Set_Task_Body_Procedure): Removed.
27378 These subprogram have been removed because the attribute
27379 Task_Body_Procedure has been moved to the corresponding task type
27380 or task subtype entity to leave a field free to store the list
27381 of interfaces implemented by a task (for AI-345)
27382 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27383 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27384 expression flag Do_Range_Check
27385 (Exception_Junk): Change to Flag7 to accomodate above change
27386 (Box_Present, Default_Name, Specification, Set_Box_Present,
27387 Set_Default_Name, Set_Specification): Expand the expression
27388 "X in N_Formal_Subprogram_Declaration" into the corresponding
27389 two comparisons. Required to use the csinfo tool.
27391 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27392 "with string" given.
27394 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27397 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27400 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27401 attribute Task_Body_Procedure rather than the old semantic field that
27402 was available in the task_type_declaration node.
27404 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27405 interface type definitions.
27406 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27409 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27410 task type declaration.
27411 (P_Protected): Modified to handle the list of interfaces in a
27412 protected type declaration.
27414 2005-03-15 Doug Rupp <rupp@adacore.com>
27415 Vincent Celier <celier@adacore.com>
27417 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27418 (Gen_Output_File_C): Likewise.
27419 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27421 2005-03-15 Thomas Quinot <quinot@adacore.com>
27423 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27424 is an N_Raise_Constraint_Error node, create a new copy of it without
27425 going through a call to Duplicate_Subexpr.
27427 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27428 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27429 Nicolas Setton <setton@adacore.com>
27430 Ed Schonberg <schonberg@adacore.com>
27436 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27437 representation clause that prescribes a size not equal to the rounded
27438 size of their types.
27439 (gnat_to_gnu_entity, case E_Component): Always look at
27440 Original_Record_Component if Present and not the entity.
27441 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27442 of tagged extension types by not making field for components that are
27444 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27445 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27446 expression to the type of the object when the object is constant.
27447 Reverse defer_debug_incomplete_list before traversing it, so that trees
27448 are processed in the order at which they were added to the list. This
27449 order is important when using the stabs debug format.
27450 If we are deferring the output of debug information, also defer this
27451 output for a function return type.
27452 When adding fields to a record, prevent emitting debug information
27453 for incomplete records, emit the information only when the record is
27455 (components_to_record): New parameter defer_debug.
27456 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27457 (gnat_to_gnu_field_decl): New function.
27458 (substitution_list, annotate_rep): Call it.
27459 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27460 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27461 No longer update discriminants to not be a COMPONENT_REF.
27462 (copy_alias_set): Strip padding from input type; also handle
27463 unconstrained arrays properly.
27465 * gigi.h (write_record_type_debug_info): New function.
27466 Convert to use ANSI-style prototypes. Remove unused
27467 declarations for emit_stack_check, elab_all_gnat and
27468 set_second_error_entity.
27469 (gnat_to_gnu_field_decl): New decl.
27471 * utils.c (write_record_type_debug_info): New function.
27472 (finish_record_type): Delegate generation of debug information to
27473 write_record_type_debug_info.
27474 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27475 (update_pointer_to): Fix pasto.
27476 (convert) <UNION_TYPE>: Accept slight type variations when
27477 converting to an unchecked union type.
27479 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27480 replace the N_Freeze_Entity with a null statement.
27482 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27483 within a constrained subcomponent of an enclosing record, place the
27484 freeze nodes in the scope stack entry for the enclosing record.
27485 (Undelay_Type): New Subprogram.
27486 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27487 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27488 within records; allow them to have freeze nodes if their base types
27491 * exp_util.adb (Remove_Side_Effects): Properly test for
27492 Expansion_Delayed and handle case when it's inside an
27493 N_Qualified_Expression.
27495 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27496 Comes_From_Generic, to recognize accurately that the parent type in a
27497 derived type declaration can be traced back to a formal type, because
27498 it is one or is derived from one, or because its completion is derived
27500 (Constrain_Component_Type): If component comes from source and has no
27501 explicit constraint, no need to constrain in in a subtype of the
27503 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27504 Minor change to propagate Is_Ada_2005 flag
27506 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27507 Expansion_Delayed is False.
27508 (assoc_to_constructor): Ignore fields that have a
27509 Corresponding_Discriminant.
27510 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27511 function returns "by target", dereference the target pointer using the
27512 type of the actual return value.
27513 <all>: Be prepared for a null gnu_result.
27514 (processed_inline_subprograms): Check flag_really_no_inline
27515 instead of flag_no_inline.
27516 (set_second_error_entity): Remove unused function.
27517 (gnat_to_gnu, case N_Selected_Component): Call
27518 gnat_to_gnu_field_decl.
27519 (assoc_to_constructor): Likewise.
27521 2005-03-15 Robert Dewar <dewar@adacore.com>
27522 Ed Schonberg <schonberg@adacore.com>
27523 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27525 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27526 Must_Be_Byte_Aligned for cases where we do not need to use a
27527 System.Pack_nn unit.
27529 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27531 Needed now that we do some processing for IN parameters as well. This
27532 may well fix some unrelated errors.
27533 (Expand_Call): Handle case of unaligned objects (in particular those
27534 that come from packed arrays).
27535 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27536 renamed entity is an inherited operation, re-expand the call using the
27537 original operation, which is the one to call.
27538 Detect attempt to inline parameterless recursive subprogram.
27539 (Represented_As_Scalar): Fix to work properly with private types
27540 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27541 accurate estimate. Yields True in far fewer cases than before,
27542 improving the quality of code that depends on this test.
27544 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27545 over both visible and private declarations to remove them from tree,
27546 and mark subprograms declared in package as eliminated, to prevent
27547 spurious use in subsequent compilation of generic units in the context.
27549 * exp_util.ads: Minor cleanup in variable names
27551 * sem_eval.ads, sem_eval.adb: Minor reformatting
27552 (Compile_Time_Known_Bounds): New function
27554 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27556 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27557 determining whether an unchecked conversion is needed for the argument
27558 of an initialization call.
27560 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27562 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27563 that appears in the instantiation rather than the internal subtype
27564 generated in the wrapper package, to avoid anomalies in gigi when the
27565 target is derived from a private type whose full view is an access type.
27567 2005-03-15 Robert Dewar <dewar@adacore.com>
27569 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27571 Add documentation to replace the use of this flag
27572 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27575 2005-03-15 Thomas Quinot <quinot@adacore.com>
27577 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27578 here from exp_attr so it can be shared between exp_attr and exp_dist.
27579 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27580 all TSS names, not a subset thereof, and the previous name introduced
27581 an unnecessarily confusion that a distinction might exist between
27582 "OK" TSS names and some "not OK" TSS names.
27584 2005-03-15 Doug Rupp <rupp@adacore.com>
27586 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27589 2005-03-15 Pascal Obry <obry@adacore.com>
27590 Eric Botcazou <ebotcazou@adacore.com>
27594 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27595 when IN_RTS. This is to work around a bootstrap path problem.
27597 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27598 table and pass it to __gnat_install_SEH_handler().
27599 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27601 * lang.opt: Fix specification of -fRTS=.
27603 2005-03-15 Doug Rupp <rupp@adacore.com>
27604 Bernard Banner <banner@adacore.com>
27605 Vincent Celier <celier@adacore.com>
27606 Arnaud Charlet <charlet@adacore.com>
27609 This change works fine when gnatlib is built from the gcc directory,
27610 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27611 is not passed to ada/Makefile.in, so more work is needed by a
27612 Makefile/configure expert.
27614 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27615 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27616 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27618 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27619 Run ranlib on libgccprefix.a
27620 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27621 (ADA_INCLUDE_SRCS): Split Ada packages.
27623 2005-03-15 Robert Dewar <dewar@adacore.com>
27625 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27627 * impunit.adb: Add GNAT.UTF_32
27629 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27631 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27632 now uses GNAT.UTF_32).
27634 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27635 capabilities for categorizing characters using Unicode categories
27637 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27639 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27640 instantiation that has been rewritten as a package body, retrieve spec
27641 to generate proper name for implicit_with_clause.
27642 (Install_Parents): Recognize a parent that is an instantiation but has
27643 been rewritten as a package declaration during analysis.
27645 2005-03-15 Javier Miranda <miranda@adacore.com>
27646 Ed Schonberg <schonberg@adacore.com>
27648 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27649 parameter reported some error we immediately return. This improves the
27650 behaviour of the frontend in case of errors.
27651 (Install_Parent, Remove_Parent): Introduce new flag
27652 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27653 ancestor of a generic child unit, when the child is being instantiated.
27654 (Inline_Instance_Body): If we are compiling the private
27655 part or the body of a child unit, restore the proper visibility of the
27656 parents after compiling the instance body.
27658 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27659 Javier Miranda <miranda@adacore.com>
27662 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27663 of a private type, in which case it is underlying_type that denotes
27664 the proper task. Also modified to use the new entity attribute
27665 that is directly available in the task type and task subtype entities
27666 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27667 arrays when other dimensions than the first are constrained by
27668 discriminants of an enclosing record.
27669 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27670 a combination of indexed and selected components, find ultimate entity
27671 and generate the appropriate reference for it, to suppress spurious
27673 (Note_Possible_Modification): If an entity name has no entity, return.
27674 (Is_Variable): A function call never denotes a variable.
27675 (Requires_Transient_Scope): For record types, recurse only on
27676 components, not on internal subtypes that may have been generated for
27677 constrained components.
27679 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27681 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27682 Eliminated as candidates for resolution. Both efficient, and avoids
27683 anomalies with operators declared in deleted code.
27684 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27685 expansion is disabled (as when compiling a generic) to prevent spurious
27686 warnings on prefixes of selected components.
27688 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27690 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27691 attached to a list before checking whether it appears in the private
27692 declarations of the current package.
27693 (Make_Inequality_Operator): Insert declaration in proper declarative
27694 list rather than just setting the Parent field, so that
27695 Is_Private_Declaration can handle it properly.
27697 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27699 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27700 a renaming a body, check that the renamed subprogram in not intrinsic.
27701 (Find_Direct_Name): If several use_visible entities hide
27702 each other, and the context is a predefined file compiled through
27703 rtsfind, keep only the entity that comes from a predefined file.
27705 2005-03-15 Geert Bosch <bosch@adacore.com>
27707 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27708 long float padding to also cover AMD64 and IA64.
27710 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27712 * s-imgwch.adb: Add with and use of Interfaces.
27713 (Img_Wide_Character): Change type of Val to Unsigned_16.
27714 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27716 2005-03-15 Matthew Gingell <gingell@adacore.com>
27718 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27720 2005-03-15 Robert Dewar <dewar@adacore.com>
27722 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27724 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27726 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27728 2005-03-15 Robert Dewar <dewar@adacore.com>
27730 * s-bitops.adb, s-bitops.ads,
27731 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27732 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27733 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27734 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27735 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27736 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27737 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27738 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27741 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27743 * utils2.c (build_binary_op): Fix typo.
27745 2005-03-15 Doug Rupp <rupp@adacore.com>
27747 * s-crtl.ads (popen,pclose): New imports.
27749 2005-03-15 Cyrille Comar <comar@adacore.com>
27751 * comperr.adb (Compiler_Abort): remove references to obsolete
27752 procedures in the bug boxes for various GNAT builds.
27754 2005-03-15 Vincent Celier <celier@adacore.com>
27756 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27758 2005-03-15 Geert Bosch <bosch@adacore.com>
27759 Arnaud Charlet <charlet@adacore.com>
27760 Robert Dewar <dewar@adacore.com>
27761 Cyrille Comar <comar@adacore.com>
27762 Sergey Rybin <rybin@adacore.com>
27764 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27765 too specific and long-winded to be appropriate for the GNAT User's
27767 Warn about use of GCC switches not documented in the GNAT User's Guide,
27768 as these may cause generated code to not conform to Ada semantics.
27769 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27770 Add documentation for -gnat95 and -gnat05 switches
27771 Remove paragraph documenting obsolete way to refer to third party
27773 Add a few references to Ada_05 that were missing.
27774 Update documentation on -gnatZ/-gnatL.
27775 Document limitation when using -m64 under Solaris.
27776 Change the "Name Casing" subsection of the pretty-printer section
27777 according to the changes in the dictionary processing.
27779 * gnat_rm.texi: Document the Ada_05 pragma.
27780 Section on record representation clauses describes the new more
27781 relaxed rules about placement of large packed bit array components.
27782 Add documentation of GNAT.UTF_32
27784 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
27786 * misc.c (gnat_post_options): Turn off structural
27789 2005-03-08 Laurent Guerby <laurent@guerby.net>
27791 * system-linux-sparc.ads: Fix typo in previous commit.
27793 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
27794 Laurent Guerby <laurent@guerby.net>
27797 * system-linux-sparc.ads: New.
27798 * Makefile.in: Add sparc linux entry.
27800 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
27802 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27803 parameters as unused.
27805 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
27806 Partial merge from libada-gnattools-branch:
27808 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27809 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27810 into code in gnattools/Makefile.in. Remove direct dependencies on
27811 stamp-tools by tools clauses.
27812 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27813 * config-lang.in: Add gnattools to $lang_dirs.
27815 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
27818 * utils.c (gnat_type_for_mode): Return null instead of ICE because
27819 we asked for an unknown mode.
27821 2005-02-12 Richard Henderson <rth@redhat.com>
27823 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27824 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27826 2005-02-10 Andreas Jaeger <aj@suse.de>
27828 * init.c (__gnat_initialize): Mark parameter as unused.
27830 2005-02-09 Doug Rupp <rupp@adacore.com>
27832 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27833 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27835 2005-02-09 Doug Rupp <rupp@adacore.com>
27837 * gnatchop.adb (dup, dup2),
27838 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27840 * gnatlbr.adb (mkdir),
27841 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
27843 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27845 2005-02-09 Doug Rupp <rupp@adacore.com>
27847 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27849 2005-02-09 Robert Dewar <dewar@adacore.com>
27850 Thomas Quinot <quinot@adacore.com>
27851 Javier Miranda <miranda@adacore.com>
27852 Pascal Obry <obry@adacore.com>
27853 Ed Schonberg <schonberg@adacore.com>
27854 Doug Rupp <rupp@adacore.com>
27855 Gary Dismukes <dismukes@adacore.com>
27856 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27858 * g-zstspl.ads: New file.
27860 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27862 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27864 Add definition of Wide_Wide_Space for AI-285
27866 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27867 interface (to support Ada 95 and Ada 2005 units).
27868 Add Unbounded_IO files
27869 Add entries for Wide_Wide packages for AI-285
27870 Add list of containers packages to Ada 2005 unit list
27872 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27873 support new Unbounded_IO package cleanly.
27875 * g-utf_32.ads, g-utf_32.adb: New files.
27877 * Makefile.rtl: Add entry for g-utf_32
27878 Add new files for Unbounded_IO
27879 Adjust make file for new AI-285 wide wide packages
27880 Add AI-302 containers to the run time.
27882 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27883 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27884 subprograms for AI-301.
27886 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27888 * a-stunau.ads: Minor comment correction
27890 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27892 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27893 (Check_RPC): Update to match changes in expanded code.
27894 Clean up unused entity.
27896 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27897 was not taken into account.
27898 This includes proper initialization with Normalize_Scalars.
27899 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27900 normalize scalars cases (particularly the latter) to do a better job
27901 of finding invalid representations.
27903 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27905 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27908 * exp_dist.adb: Add support for wide wide character type
27909 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27910 private part, generate stub bodies at the end of the private part,
27911 not the visible part.
27912 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27914 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27915 generic wrapper to execute final processing after completing the
27916 expansion of the RPC receiver for an RACW.
27918 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27919 packages and attributes.
27920 (Preset_Names): Addition of the new reserved words of Ada 2005,
27921 that is interface, overriding and synchronized.
27922 (Get_Pragma_Id): Give support to the use of the new reserved word
27923 "interface" as a pragma name.
27924 (Is_Pragma_Name): Give support to the use of the new reserved word
27925 "interface" as a pragma name.
27926 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27927 attribute implementation.
27929 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27930 checks to entities that are output parameters of Asm operations.
27931 Handle the Stream_Size attribute.
27932 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27934 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27936 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27937 for second parameter being 0.0.
27938 Add support for wide wide character type.
27939 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27941 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27942 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27943 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27944 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27945 for wide wide character cases.
27947 * cstand.adb: Create entities for Wide_Wide_Character and
27950 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27951 accordance with AI-258.
27952 Add new declarations for 16/32 bit C character types (Part of AI285)
27954 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27955 (Obsolescent_Warning): New field
27956 (Rep_Clause): New local subprogram used to share code. Returns the rep
27957 clause for which the name is given in parameter.
27958 (Has_Stream_Size_Clause): New routine.
27959 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27960 (Address_Clause): Implementation is now using Rep_Clause.
27961 (Alignment_Clause): Idem.
27962 (Size_Clause): Idem.
27964 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27965 entity in non-Ada 2005 mode and generate warning.
27967 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27968 (Prag): Code cleanup. Remove old gnat pragma "overriding"
27970 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27971 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27972 on the named unit if the pragma is not in the current compilation unit,
27973 so that elaboration calls in the current unit can set up an elaboration
27974 dependency on the named unit, as needed.
27975 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27976 subprogram as well as for subprograms declared within a package.
27977 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27980 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27981 to z) to avoid some instances of duplication for Wide_Wide packages.
27983 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27986 * scn.adb: Char_Literal_Value field is now a Uint
27988 * scng.adb: Significant rewrite to handle new Ada 2005 features
27989 allowing wide and wide wide characters in program text, e.g. for
27990 identifiers, as described in AI-285.
27991 (Set_Reserved): New procedure, makes setting up keywords cleaner.
27992 (Initialize_Scanner): Register the new reserved words of Ada 2005.
27993 (Scan): Give support to the new reserved words.
27995 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27996 warning notifying that interface, overriding, and synchronized are
27997 new reserved words.
27998 (P_Pragma): Allow the use of the new reserved word "interface" as
28001 * gnatls.adb, gnatbind.adb,
28002 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28003 identifiers named "interface" to "SAL_Interface".
28005 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28006 (Structured Exception handling).
28007 (Gen_Main_C): Idem.
28010 (Gen_Main_Ada): Set the default exit code if specified.
28011 (Gen_Main_C): Likewise.
28013 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28014 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28016 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28019 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28020 has a collision with the new Ada 2005 "interface" reserved word.
28022 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28023 generate a warning notifying that interface, overriding, and
28024 synchronized are new reserved words.
28026 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28027 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28028 and Tok_Synchronized.
28030 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28031 "dispatching" rather than "primitive" operations, since dispatching
28032 calls are now allowed to abstract formal subprograms (which are not
28034 Char_Literal_Value field is now a Uint
28035 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28036 compute the actual subtype of the designated object to impose the proper
28038 (Resolve_Selected_Component): Do not insert an access check if the
28039 prefix is an access type: such a node is expanded into an explicit
28040 dereference, on which the access check is performed anyway. Removes
28041 expensive duplicate checks.
28042 (Resolve_Call): Use new flag Is_Obsolescent and field
28043 Obsolescent_Warning so that pragma Obsolescent works on library
28045 Add support for wide wide character type
28046 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28047 value by a warning message.
28048 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28049 as fixed-point, and one of the operands is non-static and universal, it
28050 can only be an illegal exponentiation operation, in which case there is
28051 no real value to retrieve.
28053 * exp_strm.adb: Add support for wide wide character type
28054 (Build_Elementary_Input_Call): Compute the size of the stream element by
28055 querying the rep chain to find the Stream_Attribute attribute value.
28056 (Build_Elementary_Write_Call): Ditto.
28058 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28059 Add support for wide wide character type
28060 Replace the error messages on wrong null-exclusion value by warnings
28061 as described in Ada 2005.
28062 (Resolve_Extension_Aggregate): Document the fact that the error
28063 message on class-wide expressions in extensions aggregates.
28065 * sem_case.adb: Add support for wide wide character type
28067 * sem_ch13.adb: Add support for wide wide character type
28068 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28070 * sem_ch3.adb: Add support for wide wide character type
28071 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28072 now-useless Itype, to prevent cascaded errors on a compiler built
28075 * sem_ch8.adb: Add with and use of Sem_Disp.
28076 (Analyze_Subprogram_Renaming): Replace unclean uses of
28077 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28078 of Corresponding_Spec to Empty).
28079 (Attribute_Renaming): Replace use of Corresponding_Spec with
28080 Corresponding_ Formal_Spec and simplify condition.
28081 (Use_One_Package): Check that scope of homonym of identifier is defined,
28082 before checking whether it is a wrapper package.
28083 Add support for wide wide character type
28085 * sem_eval.adb: Add support for wide wide character type.
28086 (Eval_Arithmetic_Op): Check for compile time known signed integer
28087 overflow in the non-static case.
28088 (Subtypes_Statically_Match): A formal scalar type and its base type do
28089 not statically match.
28091 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28092 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28094 (Unit_Declaration_Node): Ditto.
28095 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28096 has a packed array type, the prefix has been rewritten into a type
28097 conversion. Determine variable-ness from the converted expression.
28098 Handle wide wide character cases.
28100 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28102 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28103 Remove ["0A"] from comment, since it can look like a line terminator.
28104 Currently we don't permit this, but this is under discussion by the
28105 ARG, and it is easy enough to use a different example.
28107 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28108 handling UTF-32 encoding for wide wide character.
28109 Implement new brackets coding ["hhhhhhhh"]
28110 Add UTF-8 encodings for full UTF-32 range
28112 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28114 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28115 bit range Add full UTF-32 support.
28116 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28117 notify that constraint error will be raised at run-time
28118 because a null value is assigned to a null-excluding object.
28119 Remove some obsolete declarations and make Char_Code
28122 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28123 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28124 Rcheck subprograms.
28126 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28127 wrong null-exclusion value by a warning message.
28128 (Enable_Range_Check): Do range check if the prefix is an
28129 explicit dereference whose designated object is an unconstrained array.
28130 Current algorithm for removing duplicate checks is over-eager in this
28133 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28134 null-exclusion value by a warning message
28136 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28137 completely. Add support for Uint2 field
28139 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28140 exp_prag.adb: Char_Literal_Value field is now a Uint.
28142 * exp_util.adb (Insert_Actions): Replace
28143 N_Formal_Subprogram_Declaration by
28144 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28145 Char_Literal_Value field is now a Uint.
28147 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28148 defined for subprogram renaming declarations. When set, the field
28149 indicates the defining entity of a corresponding formal subprogram
28150 when the renaming corresponds to a formal subprogram association in an
28152 (Set_Corresponding_Formal_Spec): New procedure to return
28153 Corresponding_Formal_Spec field.
28154 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28155 (which is now a subtype).
28156 Char_Literal_Value field is now a Uint
28158 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28159 pointer to the base of the dispatch table.
28160 Minor changes to comments.
28161 (Controlling_Type): New function for determining the tagged type
28162 associated with a tagged primitive subprogram.
28163 (Expand_Dispatching_Call): Add support for a controlling actual that is
28164 directly a value of type Ada.Tag rather than a tagged object.
28166 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28167 describing the new layout.
28168 (Dispatch_Table): The expander computes the actual array size, allocates
28169 the Dispatch_Table record accordingly, and generates code that displaces
28170 the base of the record after the Typeinfo_Ptr component. The access to
28171 these components is done by means of local functions.
28172 (Offset_To_Top): New function.
28173 (Typeinfo_Ptr): New function.
28174 (Get_TSD): Modified to access the new position of the TSD.
28175 (Set_TSD): Modified to save the TSD in its new position.
28177 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28178 case of formal abstract subprograms. Add check and message for -gnat05.
28181 * sem_ch12.adb: Add with and use for Sem_Disp.
28182 (Analyze_Associations): Minor change from "=" to "in" for use of
28183 N_Formal_Subtype_Declaration (which is now a subtype).
28184 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28185 N_Formal_Subtype_Declaration (which is now a subtype).
28186 (Analyze_Formal_Subprogram): Add handling for
28187 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28188 dispatching, setting the controlling status of the formal parameters
28189 and result, and issuing an error if there is no controlling type for
28190 the formal subprogram.
28191 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28192 which is an unclean use of that field, we set the new field
28193 Corresponding_Formal_Spec to make the formal subprogram available to
28194 processing in Analyze_Subprogram_Declaration.
28195 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28196 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28197 Constrained, so that it is is does not statically match its anonymous
28200 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28201 abstract formal subprograms in error check for functions returning
28202 abstract types. Set scope of new designator for
28203 a parameterless subprogram, so that it is available when checking the
28204 body for nested subprograms, before full analysis of said body.
28205 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28206 subprogram only if inner one comes from source.
28207 (Analyze_Function_Call): If the call is given in object notation, the
28208 analysis of the name rewrites the node and analyzes it with the proper
28209 argument list. After analyzing the name, if the call has been rewritten
28210 and the result type is set, no further analysis is needed.
28211 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28212 mark in function specification, in a context where the formals are
28213 visible and hide outer homographs.
28215 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28216 as the tagged type for the cases of abstract formal subprograms and
28217 renamings of those. Clean up spec comments.
28218 (Check_Dispatching_Context): Add error message to indicate "abstract
28219 procedure", covering the case of a call to a formal abstract procedure
28220 that has statically tagged operands.
28221 (Check_Dispatching_Call): Check for the case of an actual given by
28222 a tag-indeterminate function call whose type is an ancestor of the
28223 containing call's associated tagged type. This situation can occur
28224 for inherited primitives with function defaults. In this case we
28225 use the tagged type's tag directly as the controlling argument for
28227 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28229 * sprint.adb (Sprint_Node_Actual): Split
28230 N_Formal_Subprogram_Declaration into two alternatives for the new
28231 cases N_Formal_Abstract_Subprogram_Declaration and
28232 N_Formal_Concrete_Subprogram_Declaration.
28233 Char_Literal_Value field is now a Uint.
28235 * trans.c: Get rid of junk Uint2 reference.
28236 Char_Literal_Value field is now a Uint.
28237 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28238 (gigi): Correct third arg to gimplify_body.
28240 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28241 (TYPE_LANG_FLAG_0): Check for record or union.
28243 * treepr.adb: Char_Literal_Value field is now a Uint
28245 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28248 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28249 Add full UTF-32 support
28250 Char_Code is now 32 bits
28252 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28253 wide character UTF_32 line terminators.
28254 Initialize Main_Source_File to avoid error when no main
28257 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28258 (Main_Source_File) when no main source has been loaded, to avoid
28261 2005-02-09 Robert Dewar <dewar@adacore.com>
28263 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28264 Fix name of Set routine
28266 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28269 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28270 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28273 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28274 forms of Get_Line subprograms for AI-301.
28276 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28277 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28278 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28279 a-stwima.ads: Minor reformatting.
28281 2005-02-09 Doug Rupp <rupp@adacore.com>
28282 Thomas Quinot <quinot@adacore.com>
28284 * adaint.c, adaint.h
28285 [VMS] (to_ptr32): New function.
28286 (MAYBE_TO_PTR32): New macro.
28287 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28289 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28290 [VMS] (#define fork()): Remove since unneccessary.
28291 (__gnat_set_close_on_exec): New routine to support
28292 GNAT.OS_Lib.Set_Close_On_Exec.
28294 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28295 the parent side as close-on-exec so that they are not inherited by the
28298 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28299 set or clear the FD_CLOEXEC flag on a file descriptor.
28301 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28302 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28306 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28307 on the field if Pragma Component_Alignment (Storage_Unit).
28308 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28309 side-effects as if it were a constant; also make SAVE_EXPR to protect
28311 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28313 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28314 (components_to_record): Test it.
28315 Fix improper usage of REFERENCE_CLASS_P.
28317 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28320 * utils2.c: Minor reformatting.
28322 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28323 handle other cases like RECORD_TYPE.
28325 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28327 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28329 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28330 component of an array of arrays in an assignment context, and the
28331 aggregate has component associations that require sliding on
28332 assignment, force reanalysis of the aggregate to generate a temporary
28333 before the assignment.
28334 (Must_Slide): Make global to the package, for use in Gen_Assign.
28336 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28338 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28339 unchecked union with no inferable discriminants, return a
28340 Raise_Program_Error node, rather than inserting it at the point the
28342 (Expand_Record_Equality, Component_Equality): Handle properly the case
28343 where some subcomponent is an unchecked union whose generated equality
28344 code raises program error.
28346 2005-02-09 Doug Rupp <rupp@adacore.com>
28348 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28349 [VMS] (#define exit hack): Remove.
28351 2005-02-09 Pascal Obry <obry@adacore.com>
28352 Arnaud Charlet <charlet@adacore.com>
28354 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28355 address of the exception registration. The Win32 version of this
28356 routine calls __gnat_install_SEH_handler() to initialize the SEH
28357 (Structured Exception Handling) handler.
28358 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28359 SEH (Structured Exception Handling) now.
28360 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28361 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28362 preprocessor condition protecting the call to the extra eh setup
28363 subprogram, which is only available for the ppc target.
28364 (__gnat_clear_exception_count): replaced reference to
28365 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28367 * seh_init.c: New file.
28369 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28370 (GNATBIND_OBJS): Idem.
28372 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28373 routine takes a new parameter (a pointer to the exception registration
28374 for the SEH (Structured Exception Handling) support.
28376 * raise.h: (__gnat_install_SEH_handler): New prototype.
28377 Update copyright notice.
28379 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28380 record and initialize it by calling __gnat_install_SEH_handler.
28382 2005-02-09 Vincent Celier <celier@adacore.com>
28384 * make.adb (Gnatmake): Do not fail when the main project has no object
28387 2005-02-09 Doug Rupp <rupp@adacore.com>
28389 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28390 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28391 [VMS]: Add translations for g-enblsp.adb.
28393 * s-asthan-vms.adb: Removed.
28394 * s-asthan-vms-alpha.adb: Added.
28396 2005-02-09 Pascal Obry <obry@adacore.com>
28398 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28399 (LIBGNAT_OBJS): Add seh_init.o.
28401 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28404 * Makefile.in: Link all gnat tools with -static-libgcc, since
28405 -shared-libgcc is now used by default on some systems (e.g. linux with
28407 Remove references to Makefile.prolog/generic, no longer used.
28409 2005-02-09 Vincent Celier <celier@adacore.com>
28411 * prj-makr.adb (Process_Directory): Put file name in canonical case
28412 before matching against the patterns.
28413 If gnatname has been invoked as <prefix>-gnatname
28414 then invoke the compiler as <prefix>-gcc, not just "gcc".
28416 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28418 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28419 with expansion disabled. The actual subtype is needed among other
28420 places when the selected component appears in the context of a loop
28421 bound, and denotes a packed array.
28422 (Operator_Check): Always use the first subtype in the
28423 error message, to avoid the appearance of internal base types.
28424 (Transform_Object_Operation): Copy each actual in full
28425 to the parameter associations of the constructed call, rather than
28426 using the shallow copy mechanism of New_Copy_List. This ensures that
28427 the chaining of named associations is done properly.
28428 (Complete_Object_Operation): Rewrite node, rather than
28429 replacing it, so that we can trace back to the original selected
28432 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28433 and calls that use object notation, if the called function is not
28434 declared in a withed unit, place the elaboration constraint on the
28435 unit in the context that makes the function accessible.
28436 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28437 imposes an elaboration constraint between two packages.
28439 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28441 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28442 views of a private type after handling its private dependents, to
28443 maintain proper stack discipline between entry and exit from the
28446 2005-02-09 Cyrille Comar <comar@adacore.com>
28448 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28449 Minor reformatting.
28451 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28453 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28454 fields for foreign threads.
28456 2005-02-09 Doug Rupp <rupp@adacore.com>
28458 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28459 recursion warnings when compiled with -gnatdm.
28461 2005-02-09 Robert Dewar <dewar@adacore.com>
28463 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28464 Slight fix to documentation of -gnaty with no parameters
28466 * xr_tabls.ads: Add ??? comment for missing overall comment
28468 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28469 we now use by default.
28471 * xsnames.adb: Adjust end of file test to look for five space followed
28472 by '#' instead of six spaces. The format of xsnames.adb was modified
28473 in the last update.
28475 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28478 * clean.adb: Minor reformatting.
28480 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28481 gnatname.adb: Minor reformatting
28482 Add 2005 to copyright output when utility is run
28484 * csets.adb: Eliminate obsolete comment
28486 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28489 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28491 2005-02-09 Sergey Rybin <rybin@adacore.com>
28493 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28494 the difference between compact and incompact layout and add the record
28495 representation clause to the example illustrating different layouts.
28496 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28497 component clauses").
28499 2005-02-09 Florian Villoing <villoing@adacore.com>
28501 * gnat_ugn.texi: Fix typos.
28502 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28504 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28505 in the generated documentation.
28507 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28509 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28511 Update linker wrapper when linking with non GNU C++.
28513 2005-02-09 Pascal Obry <obry@adacore.com>
28516 Document the procedure to debug the DllMain routine on Windows.
28517 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28519 Document new BIND qualifer /RETURN_CODES=VMS.
28521 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28523 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28524 Edited gnatmetric chapter
28526 2005-02-09 Robert Dewar <dewar@adacore.com>
28529 Changes to document new wide wide character support
28531 Update documentation on Normalize_Scalars and Initialize_Scalars
28533 2005-02-09 Pascal Obry <obry@adacore.com>
28535 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28537 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28539 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28540 from the VxWorks kernel) that is needed for getting the active
28541 priority of the different tasks.
28543 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28544 Use a pragma Elaborate_Body in the spec file instead.
28545 Noticed by code reading.
28547 2005-02-09 Thomas Quinot <quinot@adacore.com>
28549 * exp_util.ads: Minor correction in comment.
28551 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28553 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28554 since this procedure is now too complex to be worth inlining.
28556 2005-02-09 Richard Henderson <rth@redhat.com>
28558 * utils.c (gnat_define_builtin): Remove.
28559 (gnat_install_builtins): Use build_common_builtin_nodes.
28561 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28563 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28564 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28565 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28566 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28567 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28568 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28569 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28570 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28571 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28572 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28573 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28574 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28575 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28576 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28577 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28578 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28579 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28580 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28581 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28582 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28583 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28584 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28585 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28586 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28587 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28588 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28589 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28590 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28591 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28592 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28593 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28594 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28595 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28596 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28599 2005-01-27 Laurent Guerby <laurent@guerby.net>
28601 * Makefile.in: Fix a-intnam.ads from previous commit,
28602 add 2005 to copyright.
28603 * a-intman-rtems.ads: Renamed to...
28604 * a-intnam-rtems.ads:
28606 2005-01-27 Laurent Guerby <laurent@guerby.net>
28608 * Makefile.in: Rename GNAT RTEMS specific files.
28609 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28610 5rosinte.ads, 5rparame.adb: Replaced by files below.
28611 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28612 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28614 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28615 Laurent Guerby <laurent@guerby.net>
28618 * 5rosinte.ads: Add No_Key constant.
28619 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28620 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28622 2005-01-26 Laurent Guerby <laurent@guerby.net>
28625 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28627 2005-01-20 Richard Henderson <rth@redhat.com>
28629 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28630 a-intnam-linux.ads and system-linux-alpha.ads.
28631 * a-intnam-linux-alpha.ads: Remove file.
28632 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28633 * system-linux-alpha.ads: New file.
28635 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28638 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28639 set to the new string.
28641 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28643 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28646 2005-01-18 Richard Henderson <rth@redhat.com>
28648 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28649 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28651 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28653 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28655 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28656 (GCC_ZCX_Support): Likewise.
28658 2005-01-11 Bastian Blank <waldi@debian.org>
28660 * system-linux-s390.ads: Define Preallocated_Stacks.
28661 * system-linux-s390x.ads: Likewise.
28663 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28665 * gnat_ugn.texi: Fix texi errors with null variables.
28667 2005-01-03 Thomas Quinot <quinot@adacore.com>
28669 * gen-soccon.c: New utility program to generate g-soccon.ads
28672 * socket.c, gsocket.h: Split inclusion of system header files into a
28673 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28675 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28676 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28677 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28678 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28679 should not be edited by hand anymore, but should be regenerated using
28682 2005-01-03 Robert Dewar <dewar@adacore.com>
28683 Ed Schonberg <schonberg@adacore.com>
28684 Vincent Celier <celier@adacore.com>
28686 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28687 on/off, since this is an obsolescent feature, for which we now generate
28690 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28691 warning mode is set and obsolescent usage of this attribute occurs.
28692 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28693 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28694 predates, and partly motivates, the adoption of the AI.
28695 Implement new Ada 2005 attribute Mod
28697 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28700 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28702 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28703 pragma restrictions.
28704 New entry for Ada 2005 attribute Mod.
28707 Add recognition of new pragma Restrictions No_Dependence
28708 Recognize restriction No_Obsolescent_Features at parse time
28710 * bcheck.adb: Add circuitry for checking for consistency of
28711 No_Dependence restrictions.
28713 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28716 * restrict.ads, restrict.adb: Add subprograms to deal with
28717 No_Dependence restrictions.
28719 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28722 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28723 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28725 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28726 dummy parameter to scng instantiation.
28727 Needed for new restriction No_Obsolescent_Features
28729 * scn.adb: (Obsolescent_Check): New procedure
28730 Needed for new restriction No_Obsolescent_Features
28732 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28733 specified by AI-285, needed for implementation of AI-388 (adding greek
28734 pi to Ada.Numerics).
28735 Add new generic formal to scng, needed for new restriction
28736 No_Obsolescent_Features.
28738 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28740 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28741 restrictions lines.
28742 (Scan_ALI): When finding an unexpected character on an R line, raise
28743 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28744 Ignore_Errors is True, default restrictions are set and scanning of the
28745 ALI file continues with the next line. Also, when Bad_R_Line is raised
28746 and Ignore_Errors is True, skip to the end of le line.
28748 * sem_ch10.adb: Check that explicit with's do not violate
28749 No_Dependence restrictions.
28750 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28751 illegal context clauses containing child units of instance.
28753 * sem_prag.adb: Processing and checking for new No_Dependence
28755 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28756 analyze and check the External argument.
28758 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28760 2005-01-03 Robert Dewar <dewar@adacore.com>
28762 * atree.adb: Add a fifth component to entities
28763 This allows us to add 32 flags and four new fields
28765 * atree.ads: Add a fifth component to entities
28766 This allows us to add 32 flags and four new fields
28768 * einfo.ads, einfo.adb: Document new fields and new flags now available
28769 Add routines for printing new fields
28771 * treepr.adb: Call routines to print out additional fields if present
28773 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28775 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28776 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28778 * Makefile.in: Add support to build shared Ada libraries on solaris x86
28779 Remove gpr2make, replaced by gprmake.
28780 Remove references to gnatmem and libaddr2line.
28781 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28782 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28783 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28784 a-numaux-darwin.ads and a-numaux-darwin.adb
28785 Enable mlib-tgt-lynxos.adb on lynxos.
28787 * Make-lang.in: Remove rules for gpr2make.
28788 When generating sdefault.adb, do not call Relocate_Path
28789 on S3 for function Target_Name, as it is not a path.
28790 Remove references to gnatmem and libaddr2line.
28792 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28795 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
28797 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28798 address is incompatible with its base type alignment constraints when
28799 this can be decided statically.
28801 2005-01-03 Olivier Hainque <hainque@adacore.com>
28803 * decl.c (compatible_signatures_p): New function. The intended purpose
28804 is to check if two function signatures for a call-site and a callee are
28805 compatible enough for the call to be valid. The underlying purpose is
28806 to check if a call to a mapped builtin is using the right interface.
28807 The current code actually does not check antyhing - this a placeholder
28808 for future refinements.
28809 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28810 builtin calls for convention Intrinsic.
28812 * gigi.h (builtin_decl_for): Declare (new function).
28814 * utils.c (gnat_install_builtins): Install the target specific builtins.
28815 (builtin_decl_for): New function, provide a dummy body for now.
28817 2005-01-03 Geert Bosch <bosch@adacore.com>
28819 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28820 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28821 (Pred): Implement in terms of Succ.
28823 * trans.c (convert_with_check): Reimplement conversion of float to
28826 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28827 Vincent Celier <celier@adacore.com>
28829 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28830 bounds can be negative, and must be declared Int, not Nat.
28832 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28833 array is checked after using the index in the array.
28835 * makegpr.adb (Add_Switches): Check if there is a package for the
28836 processor. If there is no package, do not look for switches.
28838 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28840 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28841 generation of predefined stream operations (specs and bodies) should
28842 proceed. Under various restrictions these subprograms must not be
28845 2005-01-03 Thomas Quinot <quinot@adacore.com>
28848 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28849 amount of PCS-specific code in RACW stubs generation.
28850 (Copy_Specification): Set Etype on copied formal parameter entities, as
28851 this information is needed for PolyORB stubs generation.
28852 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28853 variable Dynamic_Async.
28854 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28855 (Build_RPC_Receiver_Specification): Make generic again, as recent
28856 changes have allowed RPC receivers to have the same profile for both
28857 variants of the PCS.
28858 Reorganise RPC receiver generation to reduce differences between the
28859 structure of GARLIC and PolyORB RPC receivers.
28860 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28862 Simplify elaboration code for RCI packages.
28864 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28865 generation to reduce differences between the structure of GARLIC and
28866 PolyORB RPC receivers.
28868 * s-stratt.adb: Fix typo in comment.
28870 2005-01-03 Thomas Quinot <quinot@adacore.com>
28872 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28873 copied from Make_Init_Call).
28875 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28876 reads and assignments on a temporary variable declared with appropriate
28879 2005-01-03 Robert Dewar <dewar@adacore.com>
28881 * i-c.adb (To_C): Raise CE if string is null and Append_Null
28883 2005-01-03 Robert Dewar <dewar@adacore.com>
28885 * i-cstrin.adb (Update): Do not append a null in form called with a
28886 String. This avoids unintended behavior.
28888 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28891 * init.c: Fix warnings on Free BSD section.
28893 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28896 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28899 2005-01-03 Vincent Celier <celier@adacore.com>
28901 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28902 libraries when Unique_Compile is True (-u switch).
28905 2005-01-03 Robert Dewar <dewar@adacore.com>
28907 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28908 upper case letter or underscore after W, as allowed by spec.
28910 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28912 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28913 darwin port by using proper type definitions from header files.
28914 Use SIGTERM instead of SIGABRT for SIGADAABORT.
28916 2005-01-03 Robert Dewar <dewar@adacore.com>
28918 * par.adb: Enhance error message handling for configuration file
28921 2005-01-03 Robert Dewar <dewar@adacore.com>
28923 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28924 removed during the previous update (test properly for case of dividing
28925 largest negative number by -1, which generates overflow).
28927 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28928 Sergey Rybin <rybin@adacore.com>
28930 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28931 to use as the defining identifier for a formal package.
28932 (Remove_Parent): If the instance takes place within (an instance of)
28933 a sibling, preserve private declarations of common parent.
28935 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28937 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28938 to determine whether one of the operands is a fixed-point type for
28939 which a user-defined multiplication or division operation might be
28942 * sem_res.adb (Valid_Conversion): The legality rules for conversions
28943 of access types are symmetric in Ada 2005: either designated type can
28946 2005-01-03 Vincent Celier <celier@adacore.com>
28948 * s-fileio.adb (Temp_File_Record): Change length of string component
28949 Name from L_tmpnam + 1 to max_path_len + 1.
28951 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28953 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28954 Self_Id.Deferral_Level = 0.
28955 (Do_Pending_Action): Move this function to the spec.
28957 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28958 Do_Pending_Action explicitely when needed, in case we're using
28959 No_Abort restrictions.
28961 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28962 deferral level since it will not get changed by the generated code.
28963 Keeping a default value of 1 would prevent some operations (e.g.
28964 select or delay) to proceed successfully.
28966 2005-01-03 Ben Brosgol <brosgol@adacore.com>
28967 Robert Dewar <dewar@adacore.com>
28968 Cyrille Comar <comar@adacore.com>
28970 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28971 porting guide chapter (vms version).
28972 Revised doc title (removed "for native platforms") and subtitle.
28973 Add discussion on warning flag for obsolescent features. First we
28974 note that it applies to obsolete GNAT features, which was previously
28975 omitted. Second we contrast the behavior with that of the new
28976 Ada 2005 AI-368 restriction No_Obsolescent_Features.
28977 Preliminary rewriting of GNAT & libraries chapter in order to take
28978 into account default project locations & new project manager
28981 2005-01-03 Robert Dewar <dewar@adacore.com>
28983 * cstand.adb (Create_Operators): Clean up format and documentation of
28984 unary and binary operator result tables. No change in code, just
28985 reformatting and addition of comments.
28987 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28988 sem_ch2.adb: Minor reformatting
28990 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28991 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28992 comments for Tree_Read and Tree_Write.
28994 2005-01-03 Pascal Obry <obry@adacore.com>
28996 * exp_attr.ads: Minor reformatting.
28998 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29000 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29003 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29005 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29006 whether the ancestor type is private, as may be the case with nested
29009 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29012 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29014 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29016 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29017 * utils2.c (build_unary_op): Likewise.
29019 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29021 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29023 2004-12-19 Richard Henderson <rth@redhat.com>
29025 * trans.c (gigi): Update gimplify_body call.
29027 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29029 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29031 2004-12-07 Ed Falis <falis@adacore.com>
29033 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29034 current task being suspended.
29036 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29038 (__gnat_map_signal): removed test for current task being suspended.
29040 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29042 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29043 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29044 targets (such as AAMP).
29046 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29048 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29049 because the back-end may otherwise treat it as a redefinition of the
29052 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29054 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29056 * lang-specs.h: Accept --param.
29058 2004-12-07 Vincent Celier <celier@adacore.com>
29060 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29061 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29062 Current_Body_Suffix => Ada_Body_Suffix).
29063 Take into account Externally_Built attribute.
29065 * clean.adb (In_Extension_Chain): Always return False when one of the
29066 parameter is No_Project.
29067 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29068 Ada_Language_Index).
29069 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29070 Process_Languages for procedure Parse).
29072 * gnatcmd.adb (Carg_Switches): New table.
29073 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29074 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29075 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29077 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29078 Header_Num and function Hash are now declared in package Prj,
29081 * prj.adb (Suffix_Of): New function.
29082 (Set (Suffix)): New procedure.
29083 (Hash): One function moved from Prj.Com
29084 (Is_Present, Language_Processing_Data_Of): New functions
29085 (Set): Two new procedures
29086 (Add_Language_Name, Display_Language_Name): New procedures
29088 * prj.ads: (Suffix_Of): New function
29089 (Set (Suffix)): New procedure
29090 Add several types and tables for multi-language support.
29091 (Header_Num): Type moved from Prj.Com
29092 (Hash): Two functions moved from Prj.Com
29093 (Is_Present, Language_Processing_Data_Of): New functions
29094 (Set): Two new procedures
29095 (Add_Language_Name, Display_Language_Name): New procedures
29096 (Naming): Component name changes:
29097 Current_Spec_Suffix => Ada_Spec_Suffix,
29098 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29099 Impl_Suffixes, Supp_Suffixes.
29100 (Project_Data): New components: Externally_Built, Supp_Languages,
29101 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29102 Default_Linker_Path.
29104 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29105 new package Language_Processing with its attributes (Compiler_Driver,
29106 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29107 Binder_Driver, Default_Linker).
29109 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29110 (Header_Num): Type moved to package Prj
29112 * prj-env.adb: Adapt to name changes in package Prj
29113 (Current_Spec_Suffix => Ada_Spec_Suffix,
29114 Current_Body_Suffix => Ada_Body_Suffix).
29116 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29117 default to the project path, except the "-" is one of the directories
29118 in env var ADA_PROJECT_PATH.
29119 (Current_Project_Path): Global variable, replacing Project_Path
29120 that was in the body of Prj.Part.
29121 (Project_Path): New function
29122 (Set_Project_Path): New procedure
29123 Initialize Current_Project_Path during elaboration of the package
29124 Remove dependency on Prj.Com, no longer needed
29126 * prj-ext.ads (Project_Path): New function
29127 (Set_Project_Path): New procedure
29129 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29130 suffix is defined for language <lang>.
29131 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29132 accessing directly the components of Naming.
29133 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29134 Reorganise of this package.
29135 Break procedure Check in several procedures.
29137 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29138 Other_Languages_Check and Language_Independent_Check) with a single
29141 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29142 Process_Languages, no longer needed.
29144 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29145 Current_Project_Path.
29146 Remove elaboration code, moved to the body of Prj.Ext
29147 Use new function Prj.Ext.Project_Path instead of old variable
29149 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29150 When comparing with project paths on the stack, first put the resolved
29151 path in canonical case.
29152 (Parse_Single_Project): Set the path name of the project file in the
29153 tree to the normalized path.
29155 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29156 parameter Process_Languages, no longer needed.
29157 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29158 Other_Languages_Check.
29160 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29161 to store the resolved canonical path of the project file.
29162 Remove dependency to Prj.Com, no longer needed
29164 * prj-util.adb: Adapt to name changes in package Prj
29165 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29168 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29169 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29170 Externally_Built, Include_Option, Language_Processing.
29172 * makegpr.adb: Numerous changes due to changes in packages
29175 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29176 default to the project path, except whe "-" is one of the directories
29177 in env var ADA_PROJECT_PATH.
29178 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29180 2004-12-07 Robert Dewar <dewar@adacore.com>
29182 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29184 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29187 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29188 flag. No longer needed now that we handle this in gnat1drv.adb.
29190 * repinfo.ads: Minor reformatting
29192 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29193 Olivier Hainque <hainque@adacore.com>
29194 Eric Botcazou <ebotcazou@adacore.com>
29196 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29197 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29198 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29199 of a bitfield, which we know is useless and causes trouble because of
29200 alignment implications.
29202 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29204 (process_attributes): Clear DECL_COMMON again when a section attribute
29206 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29207 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29208 (create_field_decl): Special case ADDRESSABLE negative to mean
29209 "no bitfield creation", to be used by make_aligning_type. Don't
29210 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29211 fields claimed addressable still have to be bitfields. Use
29212 value_factor_p instead of a raw binop construction to check for the
29213 position's alignment.
29215 2004-12-07 Geert Bosch <bosch@adacore.com>
29217 * eval_fat.adb: Revert previous change.
29219 2004-12-07 Thomas Quinot <quinot@adacore.com>
29220 Ed Schonberg <schonberg@adacore.com>
29222 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29223 with an implicit dereference as its prefix, use
29224 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29225 an explicit dereference. This ensures that a reference to the original
29226 prefix is generated, if appropriate.
29228 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29229 dereference is rewritten to an explicit one, generate a reference to
29230 the entity denoted by its prefix using the original prefix node, so
29231 the dereference can be properly recorded as a read of the denoted
29232 access value, if appropriate.
29234 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29235 emitting 'assigned but never read' warning on a variable on the basis
29236 that it has an access type.
29237 (Check_References): Emit unreferenced warning when the scope is a
29240 2004-12-07 Robert Dewar <dewar@adacore.com>
29241 Ed Schonberg <schonberg@adacore.com>
29243 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29246 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29247 leaving call unchanged.
29248 This deals with the case where the pragma Import specified
29249 an external name, to be handled by the back end.
29251 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29252 subprogram which is Imported with convention Intrinsic if an
29253 External_Name argument is specified.
29254 (Process_Import_Or_Interface): Properly diagnose link name argument.
29255 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29256 with Sem_Ch6.Cannot_Inline.
29257 (Process_Inline): Provide separate warning for inapplicable inline
29259 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29260 treatment is uniform on different targets.
29262 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29264 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29265 construct is rewritten, preserve end label to permit source navigation.
29267 2004-12-07 Thomas Quinot <quinot@adacore.com>
29269 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29270 Specific_Build_Stub_Target): New subprograms.
29271 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29272 the PCS implementation used, using the above PCS-customized subprograms.
29273 Minor reformatting.
29274 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29275 for generation of DSA code targeted to the PolyORB PCS.
29276 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29277 implementation of the partition communication subsystem in ancillary
29279 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29280 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29281 PCS-specific part of Add_Stub_Type.
29282 (Insert_Partition_Check): Use runtime library function to perform
29285 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29286 (RE_Same_Partition): New entity, from s-parint.
29288 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29290 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29292 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29293 Output the copyright message on a separate line from the version
29296 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29298 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29299 compile-time warning.
29301 2004-12-07 Robert Dewar <dewar@adacore.com>
29303 * g-regpat.adb: (Match): Change a misuse of or to or else
29305 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29308 (Generate_Reference): Handle properly a reference to an entry formal,
29309 when an accept statement has a pragma Unreferenced for it.
29311 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29312 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29313 the body, to ensure that warnings are properly emitted for each accept
29314 statement of a given task entry.
29316 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29318 * Makefile.in: Add support for foreign threads on VMS.
29320 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29322 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29324 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29326 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29328 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29330 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29332 2004-12-07 Robert Dewar <dewar@adacore.com>
29334 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29336 (Remove_Next_Debug): Same fix
29338 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29339 maintain back pointers now, though we did not used to, and comments
29341 (Prepend): Remove pragma Inline.
29342 (Remove_Next): Same cleanup
29344 2004-12-07 Thomas Quinot <quinot@adacore.com>
29346 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29347 used to record an implicit dereference as a read operation on its
29348 prefix when operating under -gnatc. Necessary to avoid spurious
29349 'variable assigned but never read' warnings in that mode.
29350 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29351 is a non-overloaded implicit dereference, call the above subprogram to
29352 ensure proper recording of references.
29354 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29356 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29357 to be resolved later as part of Analyze_Iteration_Scheme's call to
29360 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29362 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29363 prefix is not a scalar type, place error message on prefix, not on
29366 2004-12-07 Bernard Banner <banner@adacore.com>
29368 * vxaddr2line.adb: Add support for x86 vxworks
29370 2004-12-07 Thomas Quinot <quinot@adacore.com>
29372 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29373 documentation of the behaviour of these functions when passed an IP
29374 address that has no record in the system hosts database and no reverse
29377 * cstand.adb, a-tags.ads: Fix typos in comment.
29379 2004-12-07 Robert Dewar <dewar@adacore.com>
29381 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29382 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29383 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29384 s-poosiz.ads: Minor reformatting
29386 * make.adb: Minor reformatting
29387 Add some ??? comments asking for more comments
29389 * s-poosiz.adb: Minor reformatting
29390 Add comments on alignment requirement
29392 * sinfo.ads: Remove obsolete comment and fix typo.
29394 2004-12-07 Vincent Celier <celier@adacore.com>
29395 Sergey Rybin <rybin@adacore.com>
29397 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29398 Files" with the new tool and package names.
29399 Reformatting to suppress most of the warnings for line too long
29400 Document the new section "Project Search Path:" in the output of
29402 Add gnatmetric section
29404 2004-12-07 Vincent Celier <celier@adacore.com>
29406 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29407 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29408 and -eit to -ept. Added qualifier
29409 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29411 2004-11-27 Andreas Schwab <schwab@suse.de>
29413 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29415 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29417 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29418 internal implementation unit GNAT.Sockets.Thin,
29419 as their usage for sockets is non-portable (using the read and write
29420 functions from the system runtime library is fine on UNIX but won't
29421 work under Windows).
29423 * mingw32.h: Update copyright notice.
29425 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29427 * ada-tree.h: Minor reformatting of previous change to avoid lines
29428 longer than 79 characters.
29430 2004-11-25 Olivier Hainque <hainque@adacore.com>
29432 * tb-gcc.c: GCC infrastructure based implementation of
29435 2004-11-24 Steven Bosscher <stevenb@suse.de>
29437 * misc.c (gnat_post_options): Don't clear
29438 flag_inline_functions.
29440 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29443 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29446 2004-11-21 Andreas Jaeger <aj@suse.de>
29448 * stylesw.adb: Change Style_Check_Subprogram_Order to
29449 Style_Check_Order_Subprograms.
29451 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29453 * adaint.h, adaint.c
29454 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29456 Add also a cast to kill another warning.
29457 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29458 parameter with the priority class of the parent process instead of
29459 always using the NORMAL_PRIORITY_CLASS.
29460 (__gnat_dup): New function.
29461 (__gnat_dup2): New function.
29462 (__gnat_is_symbolic_link): Enable the effective body of this
29463 function when __APPLE__ is defined.
29465 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29468 2004-11-18 Olivier Hainque <hainque@adacore.com>
29470 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29471 address of which may be used to represent "others" and "all others"
29472 choices in exception tables, instead of the current harcoded
29473 (void *)0 and (void *)1.
29474 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29476 * gigi.h (others_decl, all_others_decl): New decls representing the
29477 new Others_Value and All_Others_Value objects.
29478 (struct attrib): Rename "arg" component as "args", since GCC expects a
29479 list of arguments in there.
29481 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29482 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29485 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29486 others_decl and all_others_decl instead of hardcoded dummy addresses
29487 to represent "others" and "all others" choices, which is cleaner and
29488 more flexible with respect to the possible eh pointer encoding policies.
29490 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29491 (process_attributes): Account for the naming change of the "args"
29492 attribute list entry component.
29494 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29495 cumulating attributes for different entities into a single list.
29496 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29497 attributes for the current entity and propagate first subtype
29498 attributes to other subtypes.
29499 <E_Procedure>: Attribute arguments are attr->args and not
29500 attr->arg any more.
29501 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29502 argument provided, as this is what GCC expects. Use NULL_TREE instead
29505 2004-11-18 Robert Dewar <dewar@adacore.com>
29507 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29508 Minor reformatting througout (including new function specs)
29509 Add ??? comments asking for clarification.
29511 2004-11-18 Thomas Quinot <quinot@adacore.com>
29513 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29514 incomplete duplicate implementation of this subprogram from butil.
29516 2004-11-18 Thomas Quinot <quinot@adacore.com>
29518 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29519 procedures factors the common processing for building an RPC receiver
29520 for an RCI package or an RACW type.
29521 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29522 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29523 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29525 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29527 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29529 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29530 distribution subprogram identifiers that are either subprogram numbers
29532 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29533 string distribution identifiers assigned to a given subprogram.
29534 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29535 (Add_RAS_Dereference_TSS): Add comments.
29536 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29537 is not referenced yet because it will be used by the PolyORB DSA
29539 (Insert_Partition_Check): Remove fossile code.
29540 (First_RCI_Subprogram_Id): Document this constant.
29541 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29543 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29544 replaced with calls to Get_Library_Unit_Name_String. Previously there
29545 were several instances of the same code in different locations in the
29546 compiler; this checkin completes the replacement of all of these
29547 instances with calls to a common subprogram.
29548 Minor reformatting.
29550 * sem_dist.adb: Remove comment noting that RPC receiver generation
29551 should be disabled for RACWs that implement RASs.
29552 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29554 * sem_util.ads, sem_util.adb (Has_Stream): New function
29555 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29556 qualified name of a library unit into the name buffer.
29557 (Note_Possible_Modification): Generate a reference only
29558 if the context comes from source.
29560 * snames.ads (PCS_Names): New subtype corresponding to names of
29561 supported implementations of the Partition Communication Subsystem
29562 (PCS) (i.e. the runtime library support modules for the distributed
29565 2004-11-18 Robert Dewar <dewar@adacore.com>
29566 Ed Schonberg <schonberg@adacore.com>
29568 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29569 (Has_Rep_Pragma): New function
29570 (Has_Attribute_Definition_Clause): New function
29571 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29572 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29574 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29576 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29577 (Expand_Pragma_Psect_Object): New procedure
29578 These procedures contain the revised and cleaned up processing for
29579 these two pragmas. This processing was formerly in Sem_Prag, but
29580 is more appropriately moved here. The cleanup involves making sure
29581 that the pragmas are properly attached to the tree, and that no
29582 nodes are improperly shared.
29584 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29585 pragmas to Exp_Prag, which is more appropriate.
29586 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29587 check for duplicates Remove use of Is_Psected flag, no longer needed.
29588 Use new Make_String_Literal function with string.
29590 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29591 that are functions return universal values, that have to be converted
29592 to the context type.
29593 Use new Make_String_Literal function with string.
29594 (Get_Stream_Convert_Pragma): New function, replaces the use of
29595 Get_Rep_Pragma, which had to be kludged to work in this case.
29597 * freeze.adb: Use new Has_Rep_Pragma function
29599 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29600 function with string.
29601 Use new Has_Rep_Pragma function.
29603 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29606 2004-11-18 Robert Dewar <dewar@adacore.com>
29608 * errout.ads, errout.adb: (First_Sloc): New function
29610 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29611 check (-gnatyx) instead of being included as a redundant construct
29614 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29615 Style_Check_Order_Subprograms.
29617 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29618 stylesw.adb: Add Style_Check_Xtra_Parens
29620 * usage.adb: Add line for -gnatyx (check extra parens)
29622 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29624 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29625 Robert Dewar <dewar@adacore.com>
29627 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29628 discriminant of a constrained subtype, analyze the copy of the
29629 corresponding constraint, because in some cases it may be only
29630 partially analyzed.
29631 Removes long-lived ??? comments.
29633 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29634 handled controlled or secondary-stack expressions within the
29635 iteration_scheme of a loop.
29637 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29638 bounds that may contain functions calls, to prevent memory leaks when
29639 the bound contains a call to a function that uses the secondary stack.
29640 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29641 generate temporaries for loop bounds that might contain function calls
29642 that require secondary stack and/or finalization actions.
29644 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29645 selected component and the selector is overloadable (not just a
29646 function) treat as function call, Analyze_Call will disambiguate if
29648 (Analyze_Selected_Component): Do not generate an actual subtype for the
29649 selected component if expansion is disabled. The actual subtype is only
29650 needed for constraint checks.
29651 (Analyze_Allocator): If restriction No_Streams is set, then do
29652 not permit objects to be declared of a stream type, or of a
29653 composite type containing a stream.
29655 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29656 No_Streams no longer prohibits with'ing this package.
29658 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29659 discriminants, but the parent base has unknown discriminants, there is
29660 no discriminant constraint to inherit. Such a discrepancy can arise
29661 when the actual for a formal type with unknown discriminants is a
29662 similar private type whose full view has discriminants.
29663 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29664 do not permit objects to be declared of a stream type, or of a
29665 composite type containing a stream.
29667 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29669 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29670 protected operations.
29672 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29673 generated name, it complicates decoding in gdb and hinders debugging
29674 of protected operations.
29675 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29676 flag for the protected entry barrier function.
29677 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29678 flag for the protected entry function.
29680 2004-11-18 Nicolas Setton <setton@adacore.com>
29682 * expect.c: Define __unix__ when __APPLE__ is defined.
29684 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29685 Darwin-specific section.
29687 * lang-specs.h: Change the placement of the %1 marker.
29688 Works around the fact that gcc adds -fPIC by default under Darwin.
29690 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29692 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29693 type of the object with the packed array type, set the Analyzed flag
29694 on the object if it is an entity or simple indexed component, to avoid
29695 spurious type errors.
29697 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29699 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29700 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29701 separate line from the version message.
29703 2004-11-18 Ed Falis <falis@adacore.com>
29705 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29707 (init_float): Eliminate initialization of floating point status for
29708 AE653. The instructions have no effect for vThreads.
29710 2004-11-18 Vincent Celier <celier@adacore.com>
29712 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29713 gnatbind is invoked with -shared.
29715 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29717 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29718 for Detect_Blocking which is redundant with the check done within the
29719 procedure Protected_Single_Entry_Call.
29720 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29721 Detect_Blocking which is redundant with the check done within the
29722 procedure Protected_Single_Entry_Call.
29724 2004-11-18 Vincent Celier <celier@adacore.com>
29726 * makegpr.adb (Compile): Put the compiling switches (in package
29727 Compiler and on the command line) immediately after "-c", instead of
29728 at the end of the command line invocation of the compiler, when
29729 compiling a non-Ada file.
29730 (Build_Global_Archive): When there is no need to rebuild the archive,
29731 set Global_Archive_Exists, so that the archive is passed to the linker
29734 2004-11-18 Robert Dewar <dewar@adacore.com>
29735 Sergey Rybin <rybin@adacore.com>
29738 Remove extra paren check from list of checks for redundant constructs
29739 Add documentation of new -gnatyx style check (check extra parens)
29740 Remove paragraph about gnatelim debug options.
29742 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29743 objects rather than forbidding dependencies on the package Ada.Streams.
29745 * sinfo.ads: Add ??? note that we should document pragmas passed to
29748 * g-expect.ads: Fix a few typos in the comments.
29750 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29752 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29755 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29757 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29759 2004-11-07 Andreas Schwab <schwab@suse.de>
29761 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29763 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
29766 * Makefile.in (darwin): Set soext to .dylib.
29768 2004-10-26 Vincent Celier <celier@gnat.com>
29769 Thomas Quinot <quinot@act-europe.fr>
29771 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29772 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29773 there is no use of GNAT.Sockets.Constants.
29774 Remove remaining pragma Import for C_Write
29775 Remove C_Read and C_Write from internal implementation unit
29776 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29777 the read and write functions from the system runtime library is fine
29778 on UNIX but won't work under Windows).
29780 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29781 (Check_Selector): Use C_Recv instead of C_Read.
29782 Selectors are the GNAT.Sockets abstraction to perform a select()
29783 call on a set of descriptors. To allow abortion of an ongoing
29784 select operation, some data is written to a dedicated socket that
29785 is always monitored.
29786 Under Windows, the write and read library functions cannot operate
29787 on sockets, so we need to use send and recv instead, which is portable
29788 across all supported platforms.
29790 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29791 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29792 (using the read and write functions from the system runtime library is
29793 fine on UNIX but won't work under Windows).
29795 2004-10-26 Nicolas Setton <setton@act-europe.fr>
29797 * mlib-tgt-darwin.adb: New file.
29799 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29800 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29801 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29802 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29805 * Makefile.in: Add support for building shared libraries under Darwin.
29806 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29807 the low level EH init subprogram to be called from __gnat_initialize.
29809 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29810 indicates which options to pass to the archive indexer.
29812 * mlib-utl.adb: Add support for calling ranlib with additional
29813 options. This is needed for instance under Mac OS X.
29814 (Ranlib_Options): New global variable, used to store the potential
29815 options to pass to ranlib.
29816 (Ar): Use Ranlib_Options when spawning ranlib.
29817 (Initialize): Set the value of ranlib option.
29819 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29821 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29822 instead of 8K, to reflect the real potential needs for stack-checking
29825 2004-10-26 Pascal Obry <obry@gnat.com>
29827 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29829 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29830 Windows only the initial thread stack size can be set so it is good to
29831 start we a low stack size.
29832 The OS will adjust the size as needed.
29834 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29835 Nicolas Setton <setton@act-europe.fr>
29837 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29838 "__unix__" instead of "unix".
29839 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29840 sections were just mistakenly ignored. The former is
29841 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29842 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29843 of hpux. This prevents an unwanted definition of the symbol
29844 convert_addresses in adaint.o.
29846 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29848 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29849 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29851 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29853 * a-filico.ads, a-filico.adb: fix incorrect header.
29855 2004-10-26 Javier Miranda <miranda@gnat.com>
29857 * a-ststio.ads: Fix typo in identifier
29859 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29861 * sem_ch4.adb: Minor reformatting.
29863 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29865 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29866 enabled, check the result of unary and binary operations when the
29867 expression is the right-hand side of an assignment.
29869 2004-10-26 Vincent Celier <celier@gnat.com>
29871 * clean.adb (Delete): Do not output warnings when in quiet output and
29872 not in verbose mode.
29873 (Force_Deletions): New Boolean flag, defaulted to False
29874 (Delete): Only delete a file if it is writable, and when
29875 Force_Deletions is True.
29876 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29877 (Usage): Line for new switch -f
29878 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29881 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29883 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29884 JM type only if its size matches that of the wrapper. When a size is
29885 prescribed and the field is not aliased, remove the wrapper of a JM
29886 type only if the size is not greater than that of the packed array.
29887 (gnat_to_gnu_entity): Change the extension of packed array wrappers
29890 2004-10-26 Geert Bosch <bosch@gnat.com>
29892 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29893 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29894 (Pred): Implement in terms of Succ.
29896 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29898 * exp_aggr.adb (Safe_Component): An aggregate component that is an
29899 unchecked conversion is safe for in-place use if the expression of the
29900 conversion is safe.
29901 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29902 be expandable in place even if the aggregate does not come from source.
29903 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29904 designated object of an allocator in place, rather than building it
29905 first on the stack. The previous scheme forces a full copy of the array,
29906 and may be altogether unsusable if the size of the array is too large
29907 for stack allocation.
29909 2004-10-26 Robert Dewar <dewar@gnat.com>
29911 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29912 compares if the component is atomic.
29914 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29915 array assignment if the component type is atomic.
29917 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29918 Eric Botcazou <ebotcazou@act-europe.fr>
29920 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29921 is aliased and is a by_reference type, do not pass by copy.
29922 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29923 detect whether the call is in the right side of an assignment or
29924 the expression of an object declaration. Recurse on component
29925 association within aggregates.
29926 Call it in the condition that determines whether the temporary is
29927 necessary for correct stack-checking.
29929 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29931 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29932 RACW_Type, used in the PolyORB version.
29933 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29934 version and the GARLIC version.
29936 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29937 Rename RCI_Info to RCI_Locator for better consistency between the
29938 GARLIC and PolyORB versions of the distributed systems annex.
29939 (DSA_Implementation_Name): This enumeration lists the possible
29940 implementations of the Partition Communication Subsystem for the
29941 Distributed Systems Annex (DSA). The three available implementations
29942 are the dummy stub implementation (No_DSA), and two versions based on
29943 two different distribution runtime libraries: GARLIC and PolyORB. Both
29944 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29946 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29949 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29950 between the GARLIC and PolyORB versions of the distributed systems
29952 Remove RE_Unbounded_Reclaim_Pool since it is unused.
29954 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29956 * gnat1drv.adb: Suppress calling the back end when
29957 Frontend_Layout_On_Target is true.
29959 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29961 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29962 Set_Read_Only): New subprograms.
29963 These new routines allow the user to set or unset the Owner execute
29964 and Owner write permission flags on a file.
29966 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29967 GNAT.OS_Lib.Set_Executable instead of rolling our own.
29969 2004-10-26 Matthew Gingell <gingell@gnat.com>
29971 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29973 2004-10-26 Pascal Obry <obry@gnat.com>
29975 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29976 memory before the faulting page we properly test the process read
29977 access for this address using appropriate Win32 routine.
29978 (HPUX sections): guard with "__hpux__" instead of "hpux".
29980 2004-10-26 Robert Dewar <dewar@gnat.com>
29982 * lib-xref.adb (Generate_Reference): Don't complain about reference to
29983 entry parameter if pragma Unreferenced set, since we do not properly
29984 handle the case of multiple parameters.
29986 2004-10-26 Vincent Celier <celier@gnat.com>
29988 * prj-env.adb: (Contains_ALI_Files): New Boolean function
29989 (Ada_Objects_Path.Add): For a library project, add to the object path
29990 the library directory only if there is no object directory or if the
29991 library directory contains ALI files.
29992 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29994 2004-10-26 Vincent Celier <celier@gnat.com>
29996 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29997 extension of library projects.
29999 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30000 path defaults to ".:<prefix>/lib/gnat".
30001 (Parse): For an extending all project, allow direct import of a project
30002 that is virtually extended.
30004 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30005 the specified name is directly imported, return its ID. Otherwise, if
30006 an extension of this project is imported, return the ID of the
30009 2004-10-26 Robert Dewar <dewar@gnat.com>
30011 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30012 (Sub3): New procedure, used by Scaled_Divide
30013 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30014 correct more than one instance of failure to propagate carries
30016 (Double_Divide): Handle overflow case of largest negative number
30017 divided by minus one.
30019 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30020 the case of a quotient value out of range.
30023 2004-10-26 Robert Dewar <dewar@gnat.com>
30025 * s-bitops.adb (Bit_Eq): Remove redundant check.
30027 * s-bitops.ads: Minor comment updates
30028 Change some occurrences of Address to System.Address
30030 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30032 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30034 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30035 accessibility check to prefix that is a protected operation.
30037 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30039 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30040 empty, post message on stub.
30042 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30043 Javier Miranda <miranda@gnat.com>
30045 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30046 current instance appears within a unit that is directly in the context
30048 Used to determine whether the body of the instance should be analyzed
30049 immediately after its spec, to make its subprogram bodies available
30050 for front-end inlining.
30051 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30052 constraint is not allowed on the component type (AARM 12.5.3(3))
30054 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30056 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30057 'Storage_Pool): enhance, document & limit detection of non-sharable
30060 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30062 * s-pooglo.ads: Add more documentation now that this pool is properly
30065 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30067 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30068 or protected type with discriminants, do not constrain the
30069 corresponding record type if the subtype declaration has no
30070 discriminant constraints. This can be the case in source code, or in
30071 the subtype declaration created to rename an actual type within an
30074 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30076 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30077 different kind of stub (possibly wrong name for file), do not check
30079 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30080 includes call to some function that returns an unconstrained type, do
30083 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30085 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30086 appear in the code for the main unit. Dependencies among units in the
30087 context of the main unit are established when those other units are
30088 compiled. Otherwise spurious elaboration constraints can generate
30089 incorrect elaboration circularities.
30091 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30092 Ed Schonberg <schonberg@gnat.com>
30094 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30095 subprogram is called with a parameter that is not an object name. This
30096 situation arises for some cases of illegal code, which is diagnosed
30097 later, and in this case it is wrong to call Is_Aliased, as that might
30098 cause a compiler crash.
30099 (Explain_Limited_Type): Refine previous fix to include
30100 inherited components of derived types, to provide complete information.
30102 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30103 is the prival for a protected object.
30104 It is necessary to mark this entity as a variable, in addition to
30105 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30106 modified to avoid checking the Aliased flag on entities that are not
30107 objects. (Checking that flag for non-objects is erroneous and could
30108 lead to a compiler crash).
30110 2004-10-26 Robert Dewar <dewar@gnat.com>
30112 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30113 X_Frac = 0.5, then we know that the number X must be positive.
30114 (Succ): Remove the same redundant test, and also fix the primary test
30115 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30117 (Decompose): Add fuller comments to spec
30119 2004-10-26 Pascal Obry <obry@gnat.com>
30121 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30122 validity (process must have read access). Set to 0 in all other cases.
30123 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30124 violation on Win32.
30125 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30126 segmentation violation.
30128 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30130 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30131 whose type is a constructed subtype of an aliased object with an
30132 unconstrained nominal subtype, convert the actual to the constructed
30133 subtype before taking its address.
30135 2004-10-26 Vincent Celier <celier@gnat.com>
30137 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30138 (Is_Path_Name_Case_Sensitive): New function
30140 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30141 (Base_Name, Simple_Name, Current_Directory, Compose,
30142 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30145 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30146 Vasiliy Fofanov <fofanov@act-europe.fr>
30147 Vincent Celier <celier@gnat.com>
30149 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30150 "memory management issues" section and document some of the useful
30151 memory pools provided as part of the GNAT library.
30152 Remove "virtual" from declaration of A::method2 in
30153 the simple example of Ada/C++ mixed system.
30154 Library Projects may be virtually extended: their virtual extensions
30155 are not Library Projects.
30156 Added section on extending project hierarchies.
30158 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30160 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30162 (__gnat_portable_spawn): Remove const.
30164 * mingw32.h (MAXPATHLEN): Check for previous definition.
30166 2004-10-17 Matthias Klose <doko@debian.org>
30168 * gnatvsn.ads: Set gnat library version to 4.0.
30170 2004-10-05 Vincent Celier <celier@gnat.com>
30172 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30174 2004-10-04 Laurent Guerby <laurent@guerby.net>
30177 * Makefile.in: Define and use RANLIB_FLAGS.
30179 2004-10-04 Pascal Obry <obry@gnat.com>
30181 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30182 other x86 platforms).
30184 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30186 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30187 in general and triggers stack alignment adjustment for thread entry
30188 points on targets where this is necessary.
30190 2004-10-04 Bernard Banner <banner@gnat.com>
30193 * Makefile.in: Add section for powerpc linux
30194 Add variant i-vxwork-x86.ads
30196 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30198 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30200 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30201 table registration calls when need be. Ensures no reference to the crt
30202 ctors symbol are issued in the SJLJ case, which avoids possible
30203 undefined symbol errors in the case of modules to be statically linked
30206 2004-10-04 Javier Miranda <miranda@gnat.com>
30208 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30209 in-line the code corresponding to subprogram Analyze_Actuals. In
30210 addition, analyze the actuals only in case of subprogram call.
30212 2004-10-04 Ed Falis <falis@gnat.com>
30214 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30216 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30218 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30219 in the documentation.
30221 2004-10-04 Robert Dewar <dewar@gnat.com>
30223 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30225 (Analyze_Block_Statement): Add circuitry to detect following dead code
30226 (Check_Unreachable_Code): Handle case of block exit
30228 2004-10-04 Robert Dewar <dewar@gnat.com>
30230 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30231 (XMatchD): Avoid warning for Logic_Error call
30233 2004-10-04 Robert Dewar <dewar@gnat.com>
30235 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30236 consider expressions buried within a procedure actual to be an actual.
30237 This caused some blowups with uses of packed slices within a procedure
30240 2004-10-04 Robert Dewar <dewar@gnat.com>
30242 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30243 longer need to be initialized to zero.
30244 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30245 initialized to zero.
30247 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30248 considered valid, even if the representation is modular. That's correct
30249 now that we no longer initialize packed modular arrays to zero.
30251 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30252 suffixes. These are now documented as the only cases in which the
30253 debugger ignores outer records.
30254 Previously, the spec allowed arbitrary suffixes for this purpose.
30255 Change name of LJM to JM for packed array pad records
30256 Create separate section on packed array handling, and add a whole new
30257 set of comments to this section describing the situation with packed
30258 modular types and justification requirements depending on endianness.
30260 2004-10-04 Robert Dewar <dewar@gnat.com>
30262 * a-except.adb: Add a comment for last change
30264 * einfo.ads: Minor spelling correction in comment
30266 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30268 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30271 * sem_util.ads: Minor comment update
30273 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30275 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30276 Inline_Always when in Configurable_Run_Time mode.
30278 * sem_prag.adb (Process_Convention): If entity is an inherited
30279 subprogram, apply convention to parent subprogram if in same scope.
30280 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30281 when in Configurable_Run_Time mode.
30283 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30285 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30286 class_wide type after component list has been inherited.
30288 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30290 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30291 Denotes_Previous_Actual, to handle properly the case of a private
30292 actual that is also the component type of a subsequent array actual.
30293 The visibility status of the first actual is not affected when the
30294 second is installed.
30295 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30296 make fully recursive the treatment of formals of packages declared
30298 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30299 the above on exit from an instantiation.
30300 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30301 current instantiation which is now complete.
30302 (Analyze_Package_Instantiation): No instantiated body is needed if the
30303 main unit is generic. Efficient, and avoid anomalies when a instance
30304 appears in a package accessed through rtsfind.
30306 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30308 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30309 do not generate a declaration for a temporary if the call is part of a
30310 library-level instantiation.
30312 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30314 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30315 searching for a limited component to flag.
30317 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30318 expansion of Input, to account for the fact that the implicit call
30319 generated by the attribute reference must freeze the user-defined
30320 stream subprogram. This is only relevant to 'Input, because it can
30321 appear in an object declaration, prior to the body of the subprogram.
30323 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30324 expansion can proceed and further errors uncovered.
30325 (Minor clean up): Fix cases of using | instead of \ for continuation
30328 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30330 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30332 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30333 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30334 Use gcc_assert and gcc_unreachable.
30336 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30337 specified alignment before validating size.
30338 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30339 stripped-down declaration for the type of the inner field when making
30342 * utils.c (finish_record_type): Do not compute the size in units
30343 incrementally. Instead compute it once for the rep clause case.
30344 Use gcc_assert and gcc_unreachable.
30346 2004-10-04 Vincent Celier <celier@gnat.com>
30348 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30350 (Is_Valid_Path_Name): Take '/' as a directory separator.
30352 2004-10-04 Vincent Celier <celier@gnat.com>
30354 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30355 (Extended_Project) only if Extended_Project is defined, to avoid
30357 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30359 (Parse_Single_Project): Ditto.
30361 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30362 Add_To_Project_Path for virtual projects.
30364 2004-10-04 Vincent Celier <celier@gnat.com>
30366 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30367 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30368 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30369 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30370 parameter Options_2.
30372 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30373 Build_Dynamic_Library with an empty Options_2.
30375 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30378 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30379 directory separator, if any.
30380 (Gprmake): Do not allow mains on the command line for library projects.
30381 Do not attempt to link when the project is a library project.
30382 (Library_Opts): New table to store Library_Options.
30383 (Build_Library): If Library_Options is specified, pass these options
30384 when building a shared library.
30386 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30388 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30389 the end of this procedure now that the unlock operation was inserted
30392 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30394 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30395 corresponding to the Preallocated_Stacks flags in System.
30396 (Get_Target_Parameters): Including the processing for
30397 Preallocated_Stacks.
30399 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30400 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30401 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30402 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30403 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30404 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30405 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30406 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30407 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30408 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30409 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30410 used to signal whether the compiler creates the required stacks and
30411 descriptors for the different tasks (when True) or it is done by the
30412 underlying operating system at run time (when False).
30413 It is initially set to False in all targets.
30415 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30416 if it is supported by the target.
30417 (Make_Task_Create_Call): Pass the stack address if it has been
30418 previously created. Otherwise pass a Null_Address.
30420 * snames.adb: Add _stack.
30422 * snames.ads: Add Name_uStack. Required to allow the expander to
30423 statically allocated task stacks.
30425 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30426 Stack_Address argument.
30427 Check that its value is equal to Null_Address because this target does
30428 not support the static stack allocation.
30430 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30432 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30435 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30437 * exp_dist.adb: Split declaration of asynchronous flag out of
30438 Add_RACW_Read_Attribute.
30439 Minor reformatting for better alignment with PolyORB version.
30440 Store the entity for the asynchronous flag of an RACW, rather than the
30441 expression, in the asynchronous flags table. This will allow this flag
30442 to be used in other subprograms beside Add_RACW_Read_Attribute.
30444 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30446 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30447 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30448 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30449 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30450 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30451 sockets constant MSG_NOSIGNAL (Linux-specific).
30452 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30453 all Send operations.
30454 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30455 from trigerring SIGPIPE.
30456 Rename components to avoid clash with Ada 2005 possible reserved
30458 (Check_Selector): When the select system call returns with an error
30459 condition, propagate Socket_Error to the caller.
30461 2004-10-01 Jan Hubicka <jh@suse.cz>
30463 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30465 2004-09-23 Robert Dewar <dewar@gnat.com>
30468 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30469 instead do this at freeze time (we won't do it if there is an address
30471 Change "pragma inline" to "pragma Inline" in information and error
30473 Minor reformatting.
30475 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30476 right way of doing things after all.
30477 (Freeze_Entity): For object, set Is_Public for imported entities
30478 unless there is an address clause present.
30480 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30482 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30483 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30484 ensures proper handling of types with rep clauses, which might have
30485 their TYPE_SIZE set already.
30487 2004-09-21 Robert Dewar <dewar@gnat.com>
30489 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30490 packed array types in both little- and big-endian cases. This change
30491 ensures that we no longer count on the unused bits being initialized
30492 for such types (and in particular ensures that equality testing will
30493 only read the relevant bits).
30494 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30495 These changes mean that we no longer need to initialize small packed
30497 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30498 optimization to an LJM field as to its parent field.
30500 * ada-tree.h, trans.c, utils.c, utils2.c:
30501 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30503 2004-09-20 Jan Hubicka <jh@suse.cz>
30505 * utils.c (gnat_finalize): Remove.
30506 (end_subprog_body): Directly call cgraph_finalize_function;
30507 do not lower the nested functions.
30509 2004-09-20 Robert Dewar <dewar@gnat.com>
30512 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30513 if an address clause is present, since that means that the Import
30516 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30518 * 5tsystem.ads: Removed, no longer used.
30520 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30521 Zack Weinberg <zack@codesourcery.com>
30523 * ada-tree.def: Use tree_code_class enumeration constants
30524 instead of code letters.
30525 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30526 Update for new tree-class enumeration constants.
30528 2004-09-17 Vincent Celier <celier@gnat.com>
30530 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30531 capabilities of the general project manager.
30533 2004-09-09 Vincent Celier <celier@gnat.com>
30535 * a-direct.ads: Add pragma Ada_05
30536 (Directory_Entry_Type): Give default value to component Kind to avoid
30537 not initialized warnings.
30539 * a-direct.adb (Current_Directory): Remove directory separator at the
30541 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30542 an existing directory.
30543 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30544 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30545 Convert the result to File_Size.
30547 * prj.ads: (Project_Error): New exception
30549 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30550 Prj.Com, not from Osint.
30551 (Attrs, Package_Attributes): Tables moved to private part of spec
30552 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30554 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30555 Prj.Project_Error after call to Fail.
30556 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30557 Fail. Check that package name is not already in use.
30559 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30560 used by tools, not only by the project manager, and to indicate that
30561 exception Prj.Prj_Error may be raised in case of problem.
30562 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30564 (Attrs, Package_Attributes): Table instantiations moved from the body to
30565 the private part to be accessible from Prj.Attr.PM body.
30567 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30568 from new package Prj.Attr.PM.
30569 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30572 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30574 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30575 instead of Elaboration_Checks).
30577 * a-calend.adb: Minor reformatting
30579 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30581 * gigi.h (maybe_pad_type): New declaration.
30582 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30584 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30586 * cuintp.c: Convert to use buildN.
30588 * decl.c (maybe_pad_type): No longer static.
30589 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30591 Convert to use buildN.
30593 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30594 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30595 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30597 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30598 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30599 Convert to use buildN.
30601 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30602 TREE_READONLY for const.
30603 Convert to use buildN.
30605 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30606 (create_var_decl): Refine when TREE_STATIC is set.
30607 Convert to use buildN.
30609 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30611 * gnat_ugn.texi: Delete text relating to checking of ali and object
30614 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30617 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30619 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30620 pragmas recognized by GNAT.
30622 * gnat_rm.texi: Document pragma Detect_Blocking.
30624 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30625 raise Program_Error if called from a protected operation.
30627 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30628 the protected action nesting level.
30629 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30630 protected action nesting level.
30631 (Unlock): When pragma Detect_Blocking is active decrease the protected
30632 action nesting level.
30634 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30635 Protected_Action_Nesting.
30637 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30638 Common_ATCB record. It contains the dynamic level of protected action
30639 nesting for each task. It is needed for checking whether potentially
30640 blocking operations are called from protected operations.
30641 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30642 Detect_Blocking is active or not in the partition.
30644 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30645 raise Program_Error if called from a protected operation.
30646 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30647 Program_Error if called from a protected operation.
30648 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30649 Program_Error if called from a protected operation.
30651 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30652 raise Program_Error if called from a protected operation.
30654 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30655 raise Program_Error if called from a protected operation, and increase
30656 the protected action nesting level.
30657 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30658 Program_Error if called from a protected operation, and increase the
30659 protected action nesting level.
30660 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30661 protected action nesting level.
30663 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30664 raise Program_Error if called from a protected operation, and increase
30665 the protected action nesting level.
30666 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30667 Program_Error if called from a protected operation, and increase the
30668 protected action nesting level.
30669 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30670 raise Program_Error if called from a protected operation.
30671 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30672 active, raise Program_Error if called from a protected operation.
30673 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30674 protected action nesting level.
30676 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30677 insertion of the statement raising Program_Error. The run time
30678 contains the required machinery for handling that.
30680 * sem_util.ads: Change comment associated to procedure
30681 Check_Potentially_Blocking_Operation.
30682 This procedure does not insert a call for raising the exception because
30683 that is currently done by the run time.
30685 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30687 * init.c: Add the global variable __gl_detect_blocking that indicates
30688 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30689 making the pragma available at run time.
30690 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30692 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30693 pragma Detect_Blocking is active.
30695 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30697 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30698 DB is found in the ali file. Any unit compiled with pragma
30699 Detect_Blocking active forces its effect in the whole partition.
30701 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30702 Detect_Blocking is active and delay is called from a protected
30705 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30706 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30707 Detect_Blocking is active (0 otherwise).
30708 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30709 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30712 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30714 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30715 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30718 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30719 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30720 Update API in placeholder implemetation of s-parint to reflect changes
30721 in distribution runtime library.
30723 * sem_ch3.adb (Expand_Derived_Record): Rename to
30724 Expand_Record_Extension.
30726 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30727 primitive operations of potentially distributed object types that have
30728 non-controlling anonymous access formals.
30730 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30732 New implementation of expansion for remote access-to-subprogram types,
30733 based on the RACW infrastructure.
30734 This version of sem_dist is compatible with PolyORB/DSA as well as
30737 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30738 Asynchrronous that applies to a remote access-to-subprogram type, mark
30739 the underlying RACW type as asynchronous.
30741 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30742 __gnat_using_gnu_linker to 1.
30744 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30745 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30746 GNAT.Perfect_Hash_Generators, and remove the empty
30747 GNAT.Perfect_Hash package.
30749 * atree.adb: Minor reformatting
30751 * exp_ch3.adb (Expand_Derived_Record): Rename to
30752 Expand_Record_Extension.
30753 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30754 a component declaration must remain attached at that point in the
30755 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30756 It is therefore necessary to take a copy of the expression when building
30757 the corresponding assignment statement in the init proc.
30758 As a side effect, in the case of a derived record type, we now see the
30759 original expression, without any rewriting that could have occurred
30760 during expansion of the ancestor type's init proc, and we do not need
30761 to go back to Original_Node.
30763 * exp_ch3.ads (Expand_Derived_Record): Rename to
30764 Expand_Record_Extension.
30766 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30767 Returns the RACW type used to implement a remote access-to-subprogram
30769 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30770 New subprograms. Used to create a proxy tagged object for a remote
30771 subprogram. The proxy object is used as the designated object
30772 for RAS values on the same partition (unless All_Calls_Remote applies).
30773 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30774 System.Partition_Interface.Get_Unique_Remote_Pointer.
30775 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30776 Renamed from Add_RAS_*_Attribute.
30777 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30779 New implementation of expansion for remote access-to-subprogram types,
30780 based on the RACW infrastructure.
30782 * exp_dist.ads (Copy_Specification): Update comment to note that this
30783 function can copy the specification from either a subprogram
30784 specification or an access-to-subprogram type definition.
30786 2004-09-09 Ed Schonberg <schonberg@gnat.com>
30788 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30789 in an instance, between an explicit subprogram an one inherited from a
30790 type derived from an actual.
30792 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30793 add a polling call if the subprogram is to be inlined by the back-end,
30794 to avoid repeated calls with multiple inlinings.
30796 * checks.adb (Apply_Alignment_Check): If the expression in the address
30797 clause is a call whose name is not a static entity (e.g. a dispatching
30798 call), treat as dynamic.
30800 2004-09-09 Robert Dewar <dewar@gnat.com>
30802 * g-trasym.ads: Minor reformatting
30804 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30805 packed arrays, since unused bits are expected to be zero for a
30808 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
30810 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30813 2004-09-09 Pascal Obry <obry@gnat.com>
30815 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30816 enable map file generation. Add the right option to generate the map
30817 file if Map_File is set to True.
30819 * gnatdll.adb (Gen_Map_File): New variable.
30820 (Syntax): Add info about new -m (Map_File) option.
30821 (Parse_Command_Line): Add support for -m option.
30822 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30823 Minor reformatting.
30825 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
30827 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30828 new gnatdist implementation.
30829 Define a subpackage isolating the output routines specific to this
30832 2004-09-09 Joel Brobecker <brobecker@gnat.com>
30834 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30836 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30838 2004-09-09 Cyrille Comar <comar@act-europe.fr>
30840 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30843 * opt.ads: Add Ada_Version_Runtime constant used to decide which
30844 version of the language is used to compile the run time.
30846 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
30848 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30849 of variable length temporaries for function return now that the
30850 back-end and gigi support it.
30852 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30854 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30856 * trans.c (struct stmt_group): Delete field GLOBAL.
30857 (gnat_init_stmt_group): Do not initialize it.
30858 (call_to_gnu): Use save_expr, not protect_multiple_eval.
30859 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30860 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30861 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30862 (start_stmt_group): Likewise.
30863 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30865 * utils2.c (ggc.h): Include.
30866 (build_call_raise): Call build_int_cst, not build_int_2.
30868 * utils.c (gnat_init_decl_processing): Fix arg to
30869 build_common_tree_nodes.
30870 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30871 (gnat_define_builtin): Set built_in_decls.
30872 (init_gigi_decls): Call build_int_cst, not build_int_2.
30874 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30875 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30876 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30877 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30878 SET_TYPE_MODULE): Use them.
30879 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30880 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30881 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30882 SET_TYPE_ADA_SIZE): Likewise.
30883 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30884 (DECL_CONST_CORRESPONDING_VAR,
30885 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30886 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30887 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30888 (TYPE_RM_SIZE_NUM): New macro.
30889 (TYPE_RM_SIZE): Modified to use above.
30891 * cuintp.c: (build_cst_from_int): New function.
30892 (UI_To_gnu): Use it.
30894 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30895 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30896 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30897 MIN_EXPR for the size, copy it into new.
30899 2004-09-01 Robert Dewar <dewar@gnat.com>
30901 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30902 packed indexed component where array is an IN OUT formal. This
30903 generated garbage code previously.
30905 * gnat_ugn.texi: Document -fverbose-asm
30907 * gnat-style.texi: Minor updates (note that boolean constants and
30908 variables are joined with AND/OR rather than short circuit forms).
30910 2004-09-01 Ed Schonberg <schonberg@gnat.com>
30912 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30913 it is an upward conversion of an untagged type with no representation
30916 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
30918 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30919 System.Partition_Interface.
30921 * checks.adb (Apply_Access_Checks): Do not generate checks when
30922 expander is not active (but check for unset reference to prefix of
30925 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30926 pragma Debug as an if statement with a constant condition, for
30927 consistent treatment of entity references contained within the
30928 enclosed procedure call.
30930 2004-09-01 Vincent Celier <celier@gnat.com>
30932 * bindgen.adb: (Set_EA_Last): New procedure
30933 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30935 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30936 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30937 linked without errors.
30938 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30940 (Gen_Exception_Table_C): Correct same bugs
30942 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30944 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30945 on Windows, make sure that the drive letter is in upper case.
30947 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30948 Windows, when the drive letter is added and Case_Sensitive is True, the
30949 drive letter is forced to upper case.
30951 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30952 to Options_2 for the call to MLib.Utl.Gcc.
30954 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30955 directory separator when defining BASE_DIR.
30957 2004-09-01 Pascal Obry <obry@gnat.com>
30959 * gprcmd.adb (Extend): Do not output trailing directory separator. This
30960 is not needed and it confuses Windows GNU/make which does not report
30961 directory terminated by a slash as a directory.
30962 (gprcmd): Idem for "pwd" internal command.
30964 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30965 target names rewrite to fix regressions with recent version of
30966 GNU/make. Starting with GNU/make 3.80 the pipe character was not
30967 handled properly anymore.
30969 2004-09-01 Andreas Schwab <schwab@suse.de>
30971 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30972 * raise.c [!IN_RTS]: Undef abort.
30974 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
30976 * utils2.c (build_allocator): Use ssize_int.
30978 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30980 2004-08-27 Andreas Schwab <schwab@suse.de>
30982 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30984 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
30985 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30987 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30989 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
30991 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30992 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30993 * utils.c (init_gigi_decls): Likewise.
30994 * utils2.c (build_call_raise, build_allocator): Likewise.
30996 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
30998 * utils.c (gnat_init_decl_processing): Adjust
30999 build_common_tree_nodes call.
31001 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31003 * utils2.c (build_allocator): Use build_int_cst for negative
31006 2004-08-18 Richard Henderson <rth@redhat.com>
31008 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31010 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31012 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31014 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31015 (gnat_to_gnu): Likewise.
31017 2004-08-16 Pascal Obry <obry@gnat.com>
31019 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31020 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31021 option and not mdll anymore. Update comment.
31023 2004-08-16 Pascal Obry <obry@gnat.com>
31025 * bld.adb (Put_Include_Project): Properly handle directory separators
31028 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31030 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31031 decreasing the number of allocated junk nodes while searching for the
31032 appropriate subprogram.
31034 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31036 * cuintp.c (UI_To_gnu): Use build_int_cst..
31037 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31038 * utils.c (init_gigi_decls): Likewise.
31039 * utils2.c (build_call_raise): Likewise.
31041 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31043 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31044 for a global aliased object with a variable size and an unconstrained
31045 nominal subtype, pretend there is no initializer if the one we have is
31046 incomplete, and avoid referencing an inexistant component in there. The
31047 part we have will be rebuilt anyway and the reference may confuse
31048 further operations.
31050 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31052 * einfo.ads: Minor reformatting
31054 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31055 restrictions in the ALI if we only want to warn about violations.
31057 2004-08-13 Vincent Celier <celier@gnat.com>
31059 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31060 when creating a new Unit_Record in table Units.
31062 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31063 that are violated, if any.
31065 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31066 add directory separator if path already ends with a directory separator.
31068 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31070 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31071 unit, this is an attempt to inline a construct that is not available in
31072 the current restricted mode, so abort rather than trying to continue.
31074 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31075 discriminants that rename those of the parent, recover names of
31076 original discriminants for the constraint on the full view of the
31078 (Complete_Private_Subtype): Do not create a subtype declaration if the
31079 subtype is an itype.
31081 * gnat_rm.texi: Added section on implementation of discriminated
31082 records with default values for discriminants.
31084 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31087 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31088 the second operand is overloaded.
31090 2004-08-10 Richard Henderson <rth@redhat.com>
31092 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31093 add __builtin_alloca.
31095 2004-08-10 Richard Henderson <rth@redhat.com>
31097 * config-lang.in (boot_language): Yes.
31099 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31101 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31102 from complaining on potential uninitialized reference.
31103 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31104 new specification and test explicitly for non-zero return value.
31106 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31107 returning C.int, to avoid using a derived boolean type.
31109 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31110 Duplicate_Subexpr_No_Checks in preference to direct use of
31111 Remove_Side_Effects and New_Copy_Tree.
31112 Clear Comes_From_Source on prefix of 'Size attribute reference.
31114 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31115 g-socthi-vxworks.adb: Change calls to
31116 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31117 and test explicitly for non-zero return value.
31119 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31120 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31121 avoid using a derived boolean type.
31123 2004-08-09 Albert Lee <lee@gnat.com>
31125 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31127 2004-08-09 Pascal Obry <obry@gnat.com>
31129 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31130 GCC's -shared option.
31132 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31133 Options_2 parameter (options put after object files).
31135 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31137 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31138 ignore overflows on low and high bounds of an index to also account for
31139 differences in signedness between sizetype and gnu_index_subtype.
31140 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31143 2004-08-09 Robert Dewar <dewar@gnat.com>
31145 * s-solita.ads, s-solita.adb: Minor reformatting
31147 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31148 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31149 obsolescent section
31150 Add note that No_Implicit_Conditionals does not suppress
31151 run time constraint checks.
31153 * vms_conv.ads: Minor reformatting
31155 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31156 and necessary for following change).
31157 (Mark): Return new format Mark_Id containing sec stack address
31158 (Release): Use sec stack address from Mark_Id avoiding Self call
31160 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31161 pointer (cleanup and necessary for following change).
31162 Define Mark_Id as record containing address of secondary stack, that way
31163 Release does not need to find the stack again, decreasing the number of
31164 calls to Self and improving efficiency.
31166 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31168 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31169 case variable into the individual case branches when possible.
31171 * sem_ch11.adb: Minor reformatting
31173 * prj.ads: Correct spelling of suffixs
31175 * prj-nmsc.adb: Minor reformatting
31176 Correct spelling suffixs throughout (also in identifiers)
31178 * freeze.adb: Minor spelling correction
31180 * exp_ch2.adb: Cleanups to handling of Current_Value
31181 (no functional effect).
31183 * bld.adb: Correct spelling of suffixs
31185 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31187 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31190 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31191 package or of a child, private entities are both immediately_visible
31194 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31196 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31197 there are no range checks on the value of the literal.
31199 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31200 wrapped is the triggering alternative of an asynchronous select, action
31201 statements mustbe inserted before the select itself.
31203 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31204 case where the prefix is a protected function call.
31205 (Resolve_Attribute, case 'Access): The attribute reference on a
31206 subprogram is legal in a generic body if the subprogram is declared
31209 2004-08-09 Vincent Celier <celier@gnat.com>
31211 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31212 languages, otherwise building the library may fail with unresolved
31214 (Compile_Sources): Do not build libraries if -c switch is used
31216 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31217 (Write_Usage): If map file creation is supported, output new switches
31219 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31220 gcc call, when supported.
31222 * Makefile.in: Added indepsw.o to the object list for gnatlink
31223 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31225 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31226 indepsw.adb, indepsw.ads: New files.
31228 2004-08-09 Bernard Banner <banner@gnat.com>
31230 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31232 * Makefile.in: add section for vxworks x86
31234 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31236 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31237 per-object constrained components where the discriminant is of an
31239 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31240 the parent initialization procedure for derived Unchecked_Unions.
31241 Instead, derived Unchecked_Unions build their own initialization
31243 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31244 Check the body of the subprogram for details.
31245 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31246 functions for derived Unchecked_Union types by introducing a condition.
31247 Allow the creation of TSS equality functions for Unchecked_Unions.
31248 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31249 Add formal parameter Discr to function signature. Discr is used to
31250 control the generated case statement for Unchecked_Union types.
31251 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31253 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31255 Check the body of the subprogram for details.
31256 (Expand_Composite_Equality): Augment composite type equality to include
31257 correct handling of Unchecked_Union components.
31258 (Expand_N_In): Add condition to detect illegal membership tests when the
31259 subtype mark is a constrained Unchecked_Union and the expression lacks
31260 inferable discriminants, and build a Raise_Program_Error node.
31261 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31262 to detect types that contain components of unconstrained Unchecked_Union
31263 subtype. Add condition to detect equality between types that have an
31264 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31265 node. Add condition to detect equality between Unchecked_Union types
31266 that lack inferable discriminants, and build a Raise_Program_Error node.
31267 Otherwise build a TSS equality function call.
31268 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31269 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31270 with the operand lacking inferable discriminants, and build a Raise_
31271 Program_Error node.
31272 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31273 composite equality.
31274 (Has_Inferable_Discriminants): Implement new predicate for objects and
31275 expressions of Unchecked_Union type. Check the body of subprogram for
31277 (Has_Unconstrained_UU_Components): Add function
31278 Component_Is_Unconstrained_UU. It is used to detect whether a single
31279 component is of an unconstrained Unchecked_Union subtype. Add function
31280 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31281 component inside a variant is of an unconstrained Unchecked_Union type.
31283 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31284 inferred discriminant values. Add condition to generate a case
31285 statement with an inferred discriminant as the switch.
31286 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31287 the behaviour of the subprogram in the presence of an Unchecked_Union.
31288 Add condition to trigger the usage of the inferred discriminant value
31289 as the generated case statement switch.
31290 (Make_Field_Assign): Introduce a Boolean flag that determines the
31291 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31292 condition to trigger the usage of the inferred discriminant value as
31293 the right-hand side of the generated assignment.
31295 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31296 parameter generation when dealing with Unchecked_Unions.
31298 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31299 checks for Unchecked_Unions.
31301 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31303 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31304 Raise_Program_Error nodes for the execution of Read and Write
31305 attributes of Unchecked_Union types and the execution of Input and
31306 Output attributes of Unchecked_Union types that lack default
31307 discriminant values.
31309 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31310 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31311 per-object constrained components of Unchecked_Unions for being
31312 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31313 check individual components withing a variant.
31315 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31316 comparison of Unchecked_Unions.
31317 (Resolve_Equality_OP): Remove guard that prevents equality between
31320 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31321 of component subtypes for Unchecked_Union components.
31322 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31323 since it is the actual subtype.
31325 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31326 pass of Unchecked_Union subtypes as generic actuals to formal types
31327 that lack known_discriminant_parts or that are derived Unchecked_Union
31328 types, and do nothing. In any other case, produce an error message.
31330 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31331 Contains_POC. It determines whether a constraint uses the discriminant
31332 of an enclosing record type.
31333 Add condition to detect per-object constrained component and set the
31335 (Derived_Type_Declaration): Remove guard that prevents derivation from
31336 Unchecked_Union types.
31337 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31340 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31341 references to Unchecked_Union discriminants.
31343 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31344 formal generation when dealing with Unchecked_Unions.
31345 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31346 subtypes for Unchecked_Unions.
31348 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31349 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31350 completions of discriminated partial views by Unchecked_Unions and
31351 produce an error message.
31353 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31355 * trans.c (struct stmt_group): New field, GLOBAL.
31356 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31357 (struct elab_info): New struct.
31358 (elab_info_list, gnu_elab_proc_stack): New variables.
31359 (Compilation_Unit_to_gnu): New procedure.
31360 (gigi): Call it and also handle elaboration procs we've saved.
31361 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31362 global field from parent.
31363 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31364 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31365 (start_stmt_group): Initialize global field from parent.
31366 (add_decl_expr): Set to global for current statement group.
31367 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31370 * utils.c (global_bindings_p): True when no current_function_decl; no
31371 longer check current_binding_level.
31373 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31375 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31378 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31380 2004-08-06 Andreas Schwab <schwab@suse.de>
31382 * utils.c (gnat_define_builtin): Remove second parameter of
31384 (begin_subprog_body): Likewise.
31386 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31388 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31389 optimization, not supported by the tree-ssa back-end.
31391 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31393 * s-mastop-irix.adb: Update comments.
31395 * a-except.adb (Exception_Information): Raise Constraint_Error if
31396 exception Id is Null_Id.
31397 This is required behavior, which is more reliably and clearly checked
31398 at the top level interface level.
31400 2004-07-26 Javier Miranda <miranda@gnat.com>
31402 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31403 call if a component has no default_expression and the box is used.
31405 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31406 default_expression and you use box, it behaves as if you had declared a
31407 stand-alone object.
31408 (Resolve_Record_Aggregate): If a component has no default_expression and
31409 you use box, it behaves as if you had declared a stand-alone object.
31411 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31412 entities of private-with siblings.
31414 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31416 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31417 for a component of an itype, set the parent pointer for analysis,
31418 there is no list in which to insert it.
31420 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31421 bona-fide renamings, not for inherited operations.
31423 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31424 actual for a formal that is an access parameter, create local
31425 finalization list even if the expression is not an aggregate.
31427 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31430 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31431 Diagnose properly illegal subprogram renamings that are library units.
31433 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31436 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31437 conversion rewritten as an unchecked conversion, check that original
31438 expression is a variable.
31440 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31441 unchecked_conversion, create new node rather than rewriting in place,
31442 to preserve original construct.
31444 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31446 * gigi.h (gnat_expand_body): Deleted.
31448 * Make-lang.in: (trans.o): Depends on function.h.
31450 * misc.c: (gnat_expand_body): Moved to here.
31452 * trans.c (gnat_expand_body_1): Deleted.
31453 (gnat_expand_body): Moved from here.
31454 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31455 (add_stmt): Check for marked visited with global_bindings_p.
31456 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31457 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31459 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31460 VIEW_CONVERT_EXPR if not operation type.
31462 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31465 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31466 changes: reformatting of negation operators, removing unneeded
31467 inequality comparison with zero, converting equality comparisons with
31468 zero to negations, changing int/0/1 to bool/false/true, replace calls
31469 to gigi_abort with abort, and various other similar changes.
31471 2004-07-26 Vincent Celier <celier@gnat.com>
31473 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31476 * make.adb (Gnatmake): Fail when a library is not present and there is
31477 no object directory.
31479 * mlib-prj.adb (Check_Library): No need to check if the library needs
31480 to be rebuilt if there is no object directory, hence no object files
31481 to build the library.
31483 * opt.ads (Setup_Projects): New Boolean flag.
31485 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31487 Create directory when Kind /= "" and in "gnat setup". Report error if
31488 directory cannot be created.
31489 (Ada_Check): Create library interface copy dir if it does not exist
31490 and we are in "gnat setup".
31491 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31493 (Language_Independent_Check): Create object directory, exec directory
31494 and/or library directory if they do not exist and we are in
31497 * vms_conv.ads: (Command_Type): New command Setup.
31499 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31501 * vms_data.ads: Add qualifiers/switches for new built-in command
31504 2004-07-25 Richard Henderson <rth@redhat.com>
31506 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31507 DECL_IGNORED_P on RESULT_DECL.
31509 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31511 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31512 allocation and potentially overflowing update with
31513 Tailored_Exception_Information. Use the sec-stack free procedural
31514 interface to output Exception_Information instead.
31516 * a-except.adb (To_Stderr): New subprogram for character, and string
31517 version moved from a-exextr to be visible from other separate units.
31518 (Tailored_Exception_Information): Remove the procedural version,
31519 previously used by the default Last_Chance_Handler and not any more.
31520 Adjust various comments.
31522 * a-exexda.adb: Generalize the exception information procedural
31523 interface, to minimize the use of secondary stack and the need for
31524 local buffers when the info is to be output to stderr:
31525 (Address_Image): Removed.
31526 (Append_Info_Character): New subprogram, checking for overflows and
31527 outputing to stderr if buffer to fill is of length 0.
31528 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31529 (Append_Info_Address, Append_Info_Exception_Name,
31530 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31531 Append_Info_Basic_Exception_Traceback,
31532 Append_Info_Exception_Information): New subprograms.
31533 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31534 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31535 Exception_Info_Maxlength, Exception_Name_Length,
31536 Exception_Message_Length): New subprograms.
31537 (Exception_Information): Use Append_Info_Exception_Information.
31538 (Tailored_Exception_Information): Use
31539 Append_Info_Basic_Exception_Information.
31540 Export services for the default Last_Chance_Handler.
31542 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31543 other separate units.
31545 2004-07-20 Vincent Celier <celier@gnat.com>
31547 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31549 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31551 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31552 emit itype references for the designated types of component types that
31553 are declared outside of the full record declaration, and that may
31554 denote a partial view of that record type.
31556 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31559 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31560 which is the designated type in an access component declaration, to the
31561 list of incomplete dependents of the parent type, to avoid elaboration
31562 issues with out-of-scope subtypes.
31563 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31564 full view of the parent.
31566 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31569 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31570 entities that are hidden, such as references to generic actuals
31571 outside an instance.
31573 2004-07-20 Javier Miranda <miranda@gnat.com>
31575 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31576 support to the new notation.
31577 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31579 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31581 * s-taprob.adb: Adding the elaboration code required for initializing
31582 the tasking soft links that are common to the full and the restricted
31585 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31586 restricted run time has been moved to the package
31587 System.Soft_Links.Tasking.
31589 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31590 restricted run time has been moved to the package
31591 System.Soft_Links.Tasking.
31593 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31595 * s-solita.ads, s-solita.adb: New files.
31597 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31599 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31600 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31601 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31602 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31603 Exception_Handler_to_gnu_zcx): Likewise.
31605 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31607 * gigi.h (builtin_function): Declare.
31609 2004-07-15 Robert Dewar <dewar@gnat.com>
31611 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31614 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31615 access values as an example of a warning.
31617 * gnat_rm.texi: Document new attribute Has_Access_Values
31619 * gnat-style.texi: Document that box comments belong on nested
31622 * sem_util.ads (Has_Access_Values): Improved documentation
31624 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31626 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31627 (Process_Interface_Name): Call to this new procedure
31628 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31630 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31632 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31634 * einfo.ads: Minor comment typo fixed
31636 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31638 * snames.adb: Add _atcb.
31640 * snames.ads: Add Name_uATCB.
31642 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31643 (in the expanded code) when using the restricted run time.
31645 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31646 a in parameter in order to allow ATCBs to be preallocated (in the
31649 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31650 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31651 deallocated in System.Tasking.Stages.
31653 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31654 order to allow ATCBs to be preallocated.
31656 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31657 here. It was previously done in Initialize_ATCB.
31659 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31661 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31662 Restricted run time.
31664 * exp_ch3.adb: When using the Restricted run time, pass the
31665 preallocated Ada_Task_Control_Block when creating a task.
31667 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31669 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31670 function call that is itself an actual in an enclosing call, diagnose
31671 problem here rather than assuming that resolution will catch it.
31673 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31674 the local copy of a generic unit for a formal package, and the generic
31675 is a child unit, install private part of ancestors before compiling
31676 private part of spec.
31678 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31679 use scope entities rather than tree structures, to handle properly
31680 parent units that are instances rewritten as bodies for inlining
31683 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31684 Remove_Parents): Handle properly a parent unit that is an
31685 instantiation, when the unit has been rewritten as a body for inlining
31688 * par.adb (Goto_List): Global variable to collect goto statements in a
31689 given unit, for use in detecting natural loops.
31691 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31692 use in detecting natural loops.
31694 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31695 backwards goto's, and rewrite as a infinite loop, to improve locality
31698 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31699 subcomponent that includes an indexed reference, to prevent the
31700 generation of copies that would miscompile the desired assignment
31702 (Build_Task_Image_Decls): Add a numeric suffix to
31703 generated name for string variable, to avoid spurious conflicts with
31704 the name of the type of a single protected object.
31706 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31707 loop with an explicit exit statement, to avoid generating an
31708 out-of-range value with 'Succ leading to spurious constraint_errors
31709 when compiling with -gnatVo.
31711 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31713 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31714 might not be analyzed yet, even if its Etype is already set (case of an
31715 unchecked conversion built using Unchecked_Convert_To, for example).
31716 If the prefix has already been analyzed, this will be a nop anyway.
31718 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31719 controller type, or an assignment of a record type with controlled
31720 components, copy only user data, and leave the finalization chain
31721 pointers untouched.
31723 2004-07-15 Vincent Celier <celier@gnat.com>
31725 * make.adb (Collect_Arguments): Improve error message when attempting
31726 to compile a source not part of any project, when -x is not used.
31728 * prj.ads: (Defined_Variable_Kind): New subtype
31730 * prj-attr.adb (Register_New_Package): Two new procedures to register
31731 a package with or without its attributes.
31732 (Register_New_Attribute): Mew procedure to register a new attribute in a
31734 New attribute oriented subprograms: Attribute_Node_Id_Of,
31735 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31736 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31738 New package oriented subprograms: Package_Node_Id_Of,
31739 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31741 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31743 (Package_Node_Id): Now a private, self initialized type
31744 (Register_New_Package): New procedure to register a package with its
31746 New attribute oriented subprograms: Attribute_Node_Id_Of,
31747 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31748 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31750 New package oriented subprograms: Package_Node_Id_Of,
31751 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31753 * prj-dect.adb (Parse_Attribute_Declaration,
31754 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31756 * prj-makr.adb (Make): Parse existing project file before creating
31757 other files. Fail if there was an error during parsing.
31759 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31760 new spec of Prj.Attr.
31762 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31763 to new spec of Prj.Attr.
31765 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31767 * utils2.c: Fix typo in comment.
31769 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31771 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31772 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31774 2004-07-14 Andreas Schwab <schwab@suse.de>
31776 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31778 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31780 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31782 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31785 * misc.c (gnat_types_compatible_p): New function.
31786 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31787 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31789 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31790 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31791 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31792 (mark_visited): Don't mark dummy type.
31793 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31794 parameter, we must remove any LJM building from GNU_NAME.
31795 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31796 (pos_to_constructor): Use int_const_binop.
31797 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31800 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31801 (gnat_pushlevel): Set TREE_USE on BLOCK node.
31802 (gnat_install_builtins): Add __builtin_memset.
31804 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
31806 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31807 for a renaming, stabilize the initialization expression if we are at a
31808 local level. At the local level, uses of the renaming may be performed
31809 by a direct dereference of the initializing expression, and we don't
31810 want possible variables there to be evaluated for every use.
31812 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31813 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31814 them on the way. Account for the fact that we may introduce side
31815 effects in the process.
31817 2004-07-13 Richard Henderson <rth@redhat.com>
31819 * misc.c (default_pass_by_ref): Use pass_by_reference.
31821 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
31823 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31824 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31826 2004-07-08 Richard Henderson <rth@redhat.com>
31828 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31831 2004-07-06 Vincent Celier <celier@gnat.com>
31833 * vms_conv.ads: Minor reformatting.
31834 Alphabetical order for enumerated values of type Command_Type, to have
31835 the command in alphabetical order for the usage.
31837 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31838 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31840 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31842 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31843 (Add_Archive_Path): Only add the global archive if there is one.
31844 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31845 or not any object file to put in the global archive, and don't build
31846 a global archive if there is none.
31847 (X_Switches): New table
31848 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31849 in the X_Switches table, if any.
31850 (Initialize): Make sure the X_Switches table is empty
31851 (Scan_Arg): Record -X switches in table X_Switches
31853 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31855 * make.adb: Minor comment fix
31857 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31858 invoked with directory information, add the directory in front of the
31861 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31862 invoked with directory information, add the directory in front of the
31865 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31866 when Keep_Temporary_Files is False.
31867 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31868 directory information, add the directory in front of the path.
31869 When not on VMS, handle new switch -dn before the command to set
31870 Keep_Temporary_Files to True.
31871 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31874 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31875 invoked with directory information, add the directory in front of the
31878 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
31880 * snames.ads, snames.adb (Name_Stub): New name for the distributed
31883 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31884 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31886 * g-socket.adb (To_Timeval): Fix incorrect conversion of
31887 Selector_Duration to Timeval for the case of 0.0.
31889 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31890 documentation from Evolve_And_Then.
31892 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
31894 * s-taprop-tru64.adb, s-taprop-os2.adb,
31895 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31897 2004-07-06 Robert Dewar <dewar@gnat.com>
31899 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31900 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31901 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31902 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31903 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31904 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31905 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31906 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31907 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31908 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31909 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31910 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31911 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31912 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31913 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31914 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31915 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31916 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31917 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31918 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31919 vms_data.ads: Minor reformatting,
31920 Fix bad box comment format.
31922 * gnat_rm.texi: Fix minor grammatical error
31924 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31926 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31927 more cases of discriminated records to be recognized as not needing a
31929 (Has_Access_Values): New function.
31931 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31933 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31934 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31935 with LRM terminology).
31936 Change terminology in comments primitive type => elementary type.
31938 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31941 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31942 parameters do not impose any requirements on the presence of a body.
31944 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31947 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31948 compilation unit and is in an open scope at the point of instantiation,
31949 assume that a body may be present later.
31951 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31953 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31954 Improve error message when specified size is not supported.
31956 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31957 is never a primitive operation.
31959 2004-07-05 Andreas Schwab <schwab@suse.de>
31961 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31962 RECORD_OR_UNION_CHECK.
31963 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31965 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
31967 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31968 dependency on xgnatugn, instead build it via a submake.
31969 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31971 2004-07-04 Richard Henderson <rth@redhat.com>
31973 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31975 2004-07-01 Richard Henderson <rth@redhat.com>
31977 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31978 * utils.c (max_size): Likewise.
31980 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31982 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31983 and rest_of_type_compilation; add arg to create_*_decl.
31984 (annotate_decl_with_node): Deleted.
31985 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31986 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31987 (get_current_block_context, gnat_pushdecl): New declarations.
31988 (gnat_init_stmt_group): Likewise.
31989 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31990 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31991 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31992 (gnat_init): Call gnat_init_stmt_group.
31993 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31994 (gnu_pending_elaboration_list): Deleted.
31995 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31996 (gigi): Rearrange initialization calls and move some to last above.
31997 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31998 Delete calls to add_decl_expr; add arg to create_*_decl.
31999 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32000 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32001 begin_subprog_body and call it.
32002 Don't push and pop ggc context.
32003 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32004 (add_stmt): Remove handling of DECL_EXPR from here.
32005 If not in function, mark visited.
32006 (add_decl_expr): Put global at top level.
32007 Check for cases of DECL_INITIAL we have to handle here.
32008 (process_type): Add extra arg to create_type_decl.
32009 (build_unit_elab): Rework to just gimplify.
32010 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32011 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32012 (get_pending_elaborations, pending_elaborations_p): Likewise.
32013 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32014 (get_elaboration_location, insert_elaboration_list): Likewise.
32015 (gnat_binding_level): Renamed from ada_binding_level.
32016 (init_gnat_to_gnu): Don't clear pending_elaborations.
32017 (global_bindings_p): Treat as global if no current_binding_level.
32018 (set_current_block_context): New function.
32019 (gnat_pushdecl): Renamed from pushdecl; major rework.
32020 All callers changed.
32021 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32022 (finish_record_type): Call call pushdecl for stub decl.
32023 (function_nesting_depth): Deleted.
32024 (begin_subprog_body): Delete obsolete code.
32025 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32027 2004-06-28 Robert Dewar <dewar@gnat.com>
32029 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32030 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32031 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32032 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32033 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32035 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32036 deal with problem of inefficient slices on machines with strict
32037 alignment, when the slice is a component of a composite.
32039 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32040 machines, we need the check there as well.
32042 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32044 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32045 determine safe copying direction for overlapping slice assignments
32046 when component is controlled.
32048 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32049 formal derived type in the actual for a formal package are visible in
32050 the enclosing instance.
32052 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32055 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32056 circularity involving a private type whose completion includes a
32057 self-referential component.
32058 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32059 renaming or an instantiation from an implicit derived operation.
32061 2004-06-28 Pascal Obry <obry@gnat.com>
32063 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32065 (Library_File_Name_For): Idem.
32067 2004-06-28 Matthew Gingell <gingell@gnat.com>
32069 * g-traceb.ads: Add explanatory note on the format of addresses
32070 expected by addr2line.
32072 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32074 * Makefile.in: Force debugging information on s-tasdeb.adb,
32075 a-except.adb and s-assert.adb needed by the debugger.
32077 2004-06-28 Vincent Celier <celier@gnat.com>
32079 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32083 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32085 * prj.adb: Minor reformatting
32086 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32088 * prj.ads: Comment updates
32090 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32091 Remove Flag2: not used.
32093 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32096 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32098 * gnat_rm.texi: Document Empty declarations "null;".
32100 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32101 front of the linker options.
32102 (Link_Foreign): Put the global archives and the libraries in front of
32103 the linker options.
32105 2004-06-28 Javier Miranda <miranda@gnat.com>
32107 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32108 (RTU_Loaded): Code cleanup
32109 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32110 withed predefined units.
32112 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32113 explicitly withed predefined units.
32114 Fix typo in comment
32116 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32117 explicitly withed predefined units.
32119 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32121 * ada-tree.def (DECL_STMT): Deleted.
32122 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32123 (DECL_STMT_VAR): Deleted.
32124 * decl.c: add_decl_stmt now add_decl_expr.
32125 * gigi.h: Likewise.
32126 * trans.c: Likewise.
32127 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32128 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32129 (add_stmt): Only handle padded type here.
32130 (add_stmt_with_node): Allow gnat_node to not be present.
32131 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32132 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32133 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32134 make a SAVE_EXPR for the entire fat pointer.
32135 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32136 (create_index_type): Make a DECL_EXPR.
32137 (end_subprog_body): Don't call allocate_struct_function here but
32140 2004-06-25 Pascal Obry <obry@gnat.com>
32142 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32143 Relocatable from Build_Dynamic_Library call.
32145 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32146 Relocatable are now synonym.
32148 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32150 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32151 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32154 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32155 Lib_Address and Relocatable.
32156 (Default_DLL_Address): Removed.
32158 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32159 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32160 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32161 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32162 (Default_DLL_Address): Removed.
32164 * mlib-tgt-mingw.adb: Ditto.
32165 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32167 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32168 the initial thread stack size.
32170 * a-strmap.ads: Move package L to private part as it is not used in
32171 the spec. Found while reading code.
32173 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32175 * tracebak.c: Introduce support for a GCC infrastructure based
32176 implementation of __gnat_backtrace.
32178 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32179 any more. Use accessors instead. This eases maintenance and relaxes
32180 some alignment constraints.
32181 (_GNAT_Exception structure): Remove the Ada specific fields
32182 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32184 (is_handled_by, __gnat_eh_personality): Replace component references to
32185 exception structure by use of the new accessors.
32187 * init.c (__gnat_initialize): Adjust comments to match the just
32188 reverted meaning of the -static link-time option.
32190 * adaint.c (convert_addresses): Arrange not to define a stub for
32191 mips-irix any more, as we now want to rely on a real version from a
32192 recent libaddr2line.
32194 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32195 the personality routine can use them and not have to rely on a C
32196 counterpart of the record anymore. This simplifies maintenance and
32197 relaxes the constraint of having Standard'Maximum_Alignment match
32199 Update comments, and add a section on the common header alignment issue.
32201 2004-06-25 Geert Bosch <bosch@gnat.com>
32203 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32204 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32206 2004-06-25 Robert Dewar <dewar@gnat.com>
32208 * gnat_rm.texi: Fix section on component clauses to indicate that the
32209 restriction on byte boundary placement still applies for bit packed
32211 Add comment on stack usage from Initialize_Scalars
32213 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32215 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32216 limiting nesting level.
32218 * usage.adb: Add line for -gnatyLnnn switch
32220 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32221 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32223 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32224 type as well as on the subtype. This corrects a problem in freeze in
32225 setting alignments of atomic types.
32227 * sem_eval.ads: Minor comment typo fixed
32229 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32230 level. Minor reformatting.
32232 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32233 minus sign. This means that file names like a--b.adb will not be
32234 considered predefined.
32236 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32237 record Test new flag and give diagnostic for bad component clause.
32238 (Freeze_Entity): Set alignment of array from component alignment in
32239 cases where this is safe to do.
32241 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32244 * cstand.adb: (Create_Standard): Set alignment of String to 1
32246 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32248 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32249 code in the common constrained array cases.
32251 * a-storio.adb: Change implementation to avoid possible alignment
32252 problems on machines requiring strict alignment (data should be moved
32253 as type Buffer, not type Elmt).
32255 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32256 killing the overflow checks which we really do not need (64-bits is
32259 2004-06-25 Vincent Celier <celier@gnat.com>
32261 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32262 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32263 inconditionally for the main project.
32264 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32265 (Link_Executables.Check_Time_Stamps): New procedure
32266 (Link_Executables.Link_Foreign): New procedure
32267 Changes made to reduce nesting level of this package
32268 (Check): New procedure
32269 (Add_Switches): When not in quiet output, check that a switch is not
32270 the concatenation of several valid switches. If it is, issue a warning.
32271 (Build_Global_Archive): If the global archive is rebuilt, linking need
32273 (Compile_Sources): Rebuilding a library archive does not imply
32274 rebuilding the global archive.
32275 (Build_Global_Archive): New procedure
32276 (Build_Library): New name for Build_Archive, now only for library
32278 (Check_Archive_Builder): New procedure
32279 (Create_Global_Archive_Dependency_File): New procedure
32280 (Gprmake): Call Build_Global_Archive before linking
32281 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32283 (Scan_Arg): Display the Copyright notice when -v is used
32285 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32288 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32290 Add new GNAT LIST qualifier /FILES=
32291 Added qualifier /DIRECTORY= to GNAT METRIC
32292 Added qualifier /FILES= to GNAT METRIC
32293 Added qualifier /FILES to GNAT PRETTY
32295 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32296 to take into account both versions of the switch.
32298 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32299 always be the last switch to the gcc driver. Disable switch storing so
32300 that switches automatically added by the gcc driver are not put in the
32303 * prj.adb (Project_Empty): Take into account changes in components of
32306 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32308 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32309 used. Split Boolean component Ada_Sources_Present in two Boolean
32310 components Ada_Sources_Present and Other_Sources_Present.
32313 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32314 instead of Sources_Present.
32315 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32317 * prj-nmsc.adb: Minor reformatting
32318 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32319 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32320 Check_Ada_Naming_Scheme.
32321 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32324 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32326 Make sure that all cycles where there is at least one "limited with"
32328 (Parse_Single_Project): New Boolean parameter In_Limited
32330 * prj-proc.adb (Recursive_Check): When Process_Languages is
32331 All_Languages, call first Prj.Nmsc.Ada_Check, then
32332 Prj.Nmsc.Other_Languages_Check.
32334 * prj-proc.adb (Process): Use Ada_Sources_Present or
32335 Other_Sources_Present (instead of Sources_Present) depending on
32338 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32341 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32342 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32344 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32347 * lib.ads (Disable_Switch_Storing): New procedure.
32349 * make.adb: Modifications to reduce nesting level of this package.
32350 (Check_Standard_Library): New procedure
32351 (Gnatmake.Check_Mains): New procedure
32352 (Gnatmake.Create_Binder_Mapping_File): New procedure
32353 (Compile_Sources.Compile): Add switch -gnatez as the last option
32354 (Display): Never display -gnatez
32356 * Makefile.generic:
32357 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32359 * gnatcmd.adb (Check_Project): New function
32360 (Process_Link): New procedure to reduce nesting depth
32361 (Check_Files): New procedure to reduce the nesting depth.
32362 For GNAT METRIC, include the inherited sources in extending projects.
32363 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32364 add the list of files from the sources of the project file. If this list
32365 is too long, put it in a temp text files and use switch -files=
32366 (Delete_Temp_Config_Files): Delete the temp text file that contains
32367 a list of source for gnatpp or gnatmetric, if one has been created.
32368 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32369 in the project file is too large, create a temporary text file that
32370 list them and pass it to the tool with "-files=<temp text file>".
32371 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32373 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32374 generated file is in not in Ada.
32376 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32377 (Scan_Ls_Arg): Add processing for -files=
32378 (Usage): Add line for -files=
32380 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32381 (Normalize_Pathname): When on Windows and the path starts with a
32382 directory separator, make sure that the resulting path will start with
32385 * clean.adb (Clean_Archive): New procedure
32386 (Clean_Project): When there is non-Ada code, delete the global archive,
32387 the archive dependency files, the object files and their dependency
32388 files, if they exist.
32389 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32391 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32393 * sinfo.ads: Fix typo in comment.
32395 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32396 the TSS for remote access-to-subprogram types, since these TSS are
32397 always present once the type has been analyzed.
32398 (RAS_E_Dereference): Same.
32400 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32401 reference raises Bad_Attribute, mark the reference as analyzed so the
32402 node (and any children resulting from rewrites that could have occurred
32403 during the analysis that ultimately failed) is not analyzed again.
32405 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32407 * exp_dist.adb: Minor comment fix.
32409 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32410 type is an anonymous access type, no unchecked deallocation of the
32411 allocated object can occur. If the object is controlled, attach it with
32412 a count of 1. This allows attachment to the Global_Final_List, if
32413 no other relevant list is available.
32414 (Get_Allocator_Final_List): For an anonymous access type that is
32415 the type of a discriminant or record component, the corresponding
32416 finalisation list is the one of the scope of the type.
32418 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32420 * sem_ch3.adb (Replace_Type): When computing the signature of an
32421 inherited subprogram, use the first subtype if the derived type
32422 declaration has no constraint.
32424 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32425 before applying previous optimization. Minor code cleanup.
32427 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32428 placed at the beginning of an unpacked record without explicit
32429 alignment, a slice of it will be aligned and does not need a copy when
32432 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32436 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32437 reference is written with expressions mimicking parameters.
32439 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32442 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32443 STEP 2a. The constraints of a full type declaration of a derived record
32444 type are checked for conformance with those declared in the
32445 corresponding private extension declaration. The message
32446 "not conformant with previous declaration" is emitted if an error is
32449 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32451 * g-traceb.ads: Document the need for -E binder switch in the spec.
32453 * g-trasym.ads: Document the need for -E binder switch in the spec.
32455 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32457 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32459 * snames.h, snames.ads, snames.adb: Add entry for pragma
32462 * s-rident.ads: Change reference to pragma Detect_Blocking.
32464 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32467 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32468 to indicate whether pragma Detect_Blocking is active.
32470 * par-prag.adb: Add entry for pragma Detect_Blocking.
32472 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32473 of not handling WITH.
32474 Note that this replaces the previous update which was incorrect.
32476 2004-06-25 Javier Miranda <miranda@gnat.com>
32478 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32479 use-clauses to have a clean environment.
32481 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32482 the installation of the use-clauses to stablish a clean environment in
32483 case of compilation of a separate unit; otherwise the call to
32484 use_one_package is protected by the barrier Applicable_Use.
32486 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32487 the installation of the use-clauses to stablish a clean environment in
32488 case of compilation of a separate unit.
32489 (End_Use_Clauses): Minor comment cleanup.
32491 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32493 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32495 2004-06-23 Richard Henderson <rth@redhat.com>
32497 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32499 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32501 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32502 now bool instead of int.
32503 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32504 * trans.c (gnu_switch_label_stack): New function.
32505 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32506 elaboration of renamed entity returns.
32507 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32508 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32509 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32510 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32511 DECL_SIZE_UNIT and simplify variable-sized case.
32512 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32513 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32514 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32515 (build_unit_elab): Disable for now.
32516 * utils.c (mark_visited): New function.
32517 (pushdecl): Walk tree to call it for global decl.
32518 (update_pointer_to): Update all variants of pointer and ref types.
32519 Add arg to COMPONENT_REF.
32520 (convert): Likewise.
32521 Move check for converting between variants lower down.
32522 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32523 (build_allocator): Don't force type of MODIFY_EXPR.
32524 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32525 put_var_into_stack.
32527 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32529 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32530 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32531 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32533 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32534 all callers changed.
32535 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32536 the way that EXIT_STMT finds the loop label.
32537 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32538 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32539 (add_stmt): Use annotate_with_locus insted of setting directly.
32540 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32541 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32542 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32543 (build_vms_descriptor): Add extra args to ARRAY_REF.
32544 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32545 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32547 (build_binary_op): Don't make explicit CONVERT_EXPR.
32548 Add extra rgs to ARRAY_REF.
32550 2004-06-14 Pascal Obry <obry@gnat.com>
32552 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32553 Windows. Fix minor typo.
32555 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32556 which is now supported on Windows. With this implementation using the
32557 Library Project feature is no different on Windows than on UNIX.
32559 2004-06-14 Vincent Celier <celier@gnat.com>
32561 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32564 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32566 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32567 found, show the project name and the path of the previously parsed
32570 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32572 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32573 array, avoid copying the actual before the call.
32575 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32577 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32578 Instead, allocate memory on worst-case alignment assumptions, and then
32579 return an aligned address within the allocated zone.
32581 2004-06-14 Robert Dewar <dewar@gnat.com>
32583 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32584 elab entities in predefined units in No_Run_Time_Mode.
32585 (Gen_Adainit_C): Same fix
32586 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32587 units in No_Run_Time_Mode
32588 (Gen_Elab_Calls_C): Same fix
32590 * symbols-vms-alpha.adb: Minor reformatting
32592 * g-debpoo.ads: Minor reformatting
32594 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32596 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32598 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32601 * make.adb: Minor reformatting
32603 * par-ch12.adb: Minor reformatting
32605 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32607 * prj-strt.adb: Minor reformatting
32609 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32612 * sem_attr.adb: Minor reformatting
32614 * sem_ch7.adb: Minor reformatting
32616 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32617 for type in the same unit as the object declaration.
32619 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32620 static string expressions and not just string literals.
32622 (Set_Warning): Reset restriction warning flag for restriction pragma
32623 Implement pragma Profile_Warnings
32624 Implement pragma Profile (Restricted)
32625 Give obolescent messages for old restrictions and pragmas
32627 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32630 * s-rident.ads: Add declarations for restrictions required by profile
32631 Restricted and profile Ravenscar.
32633 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32635 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32636 configuration pragmas.
32638 2004-06-11 Vincent Celier <celier@gnat.com>
32640 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32641 gnatsym, when symbol policy is Restricted.
32643 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32644 gnatsym, when symbol policy is Restricted.
32646 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32647 read the symbol file.
32648 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32649 symbol file is not in the object files. Do not create a new symbol file
32650 when symbol policy is Restricted.
32652 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32655 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32657 (Usage): Line for new switch -R
32659 * make.adb (Initialize): When the platform is not VMS, add the
32660 directory where gnatmake is invoked in the front of the path, if
32661 gnatmake is invoked with directory information. Change the Scan_Args
32662 while loop to a for loop.
32663 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32664 if Depth is equal or greater than the proposed depth, there is nothing
32666 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32669 * prj.ads: Add new symbol policy Restricted.
32671 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32672 with the new parameters Check_All_Labels and Case_Location.
32674 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32675 (Library_Symbol_File needs to be defined).
32677 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32678 and Case_Location If Check_All_Labels is True, check that all values of
32679 the string type are used, and output warning(s) if they are not.
32681 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32684 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32686 * gnat_ugn.texi: Update documentation about the library directory in
32689 * makegpr.adb (Display_Command): In verbose mode, also display the
32690 value of the CPATH env var, when the compiler is gcc.
32691 (Initialize): Change the Scan_Args while loop to a for loop
32692 (Compile_Individual_Sources): Change directory to object directory
32693 before compilations.
32695 * symbols.ads: New symbol policy Restricted.
32697 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32699 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32700 is now taken care of internally in the Exception_Propagation package
32701 and does not require clients assistance any more.
32703 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32704 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32705 functions. Helpers to maintain a predicate required in the handling of
32706 occurrence transfer between tasks.
32707 This is now handled internally and does not require clients assistance
32708 for the setup/propagate separation anymore.
32709 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32710 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32713 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32714 raise_after_setup, now that everything is handled internally within the
32715 setup/propagation engine.
32717 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32719 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32720 Add additional conditions for the case of an actual being a simple
32721 name or literal. Improve inlining by preventing the generation
32722 of temporaries with a short lifetime (one use).
32724 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32727 * einfo.ads: Minor comment updates for Has_Completion and
32728 E_Constant list of flags.
32730 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32731 and constant redeclarations now set the Has_Completion flag of their
32732 defining identifiers.
32734 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32735 Inspect_Deferred_Constant_Completion.
32736 Used to detect private deferred constants that have not been completed
32737 either by a constant redeclaration or pragma Import. Emits error message
32738 "constant declaration requires initialization expression".
32740 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32741 completes a deferred constant.
32743 2004-06-11 Geert Bosch <bosch@gnat.com>
32745 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32747 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32748 calculating exponent for scaling denormal numbers.
32749 (Leading_Part): Properly raise Constraint_Error for zero or negative
32751 (Remainder): Properly raise Constraint_Error for zero divisor.
32753 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32755 * sem_util.adb: Minor reformatting.
32757 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32758 dereference when accessing the entry parameter record.
32759 (Check_Array_Type): Always check for possible implicit dereference.
32760 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32761 Abort if a pointer is still present (denoting that an implicit
32762 dereference was left in the tree by the front-end).
32764 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32765 dereference when accessing the entry parameter record.
32766 (Check_Array_Type): Always check for possible implicit dereference.
32767 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32768 Abort if a pointer is still present (denoting that an implicit
32769 dereference was left in the tree by the front-end).
32771 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
32773 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32774 message, like the compiler itself does. Easier to parse the output.
32776 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32778 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32779 be base names, and not includes directories.
32781 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32783 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32784 so that dependencies are properly taken into account by make.
32786 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32789 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32790 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32792 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
32794 * Makefile.in (install-gnatlib): install target-specific run-time files.
32796 * Make-lang.in: Remove obsolete targets.
32798 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32800 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32801 specification, to catch misuses of program unit names.
32803 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32804 superfluous conversions in an instance.
32806 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32809 * sem_ch12.adb (Save_References): If operator node has been folded to
32810 enumeration literal, associated_node must be discarded.
32812 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
32814 * s-stchop-vxworks.adb: Add required pragma Convention to
32815 Task_Descriptor because it is updated by a C function.
32817 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
32820 * Makefile.in: Remove target specific SO_OPT on IRIX
32822 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32824 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32825 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32826 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32827 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32828 (STMT_STMT, USE_STMT): New statement codes.
32829 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32830 * ada-tree.h: Reflect above changes.
32831 (struct tree_loop_id): Deleted.
32832 (union lang_tree_node, struct lang_decl, struct lang_type):
32833 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32834 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32835 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32836 (IS_ADA_STMT): New macro.
32837 * decl.c (annotate_decl_with_node): New function.
32838 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32839 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32840 Call add_stmt_with_node to do needed assignments.
32841 Add call to update setjmp buffer directly, not via EXPR_STMT.
32842 (maybe_variable): Argment GNAT_NODE deleted.
32843 * gigi.h (maybe_variable): Likewise.
32844 (make_transform, add_stmt_with_node, set_block_for_group): New.
32845 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32846 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32847 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32848 (set_lineno, set_lineno_from_sloc): Likewise.
32849 (record_code_position, insert_code_for): Likewise.
32850 (gnat_poplevel): Now returns void.
32851 (end_subprog_body): Now takes argument.
32852 * misc.c (cgraph.h, tree-inline.h): New includes.
32853 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32854 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32855 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32856 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32857 (gnat_parse_file): Don't set immediate_size_expand.
32858 Call cgraph functions.
32859 (gnat_expand_expr): Remove most cases.
32860 (record_code_position, insert_code_for): Remove from here.
32861 * trans.c (toplev.h, tree-gimple.h): Now included.
32862 (discard_file_names): Deleted.
32863 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32864 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32865 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32866 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32867 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32868 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32869 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32870 (set_block_for_group, add_stmt_list): Likewise.
32871 (start_stmt_group): Renamed from start_block_stmt.
32872 (end_stmt_group): Likewise, from end_block_stmt.
32873 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32874 (gigi): Don't set discard_file_names or call set_lineno.
32875 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32876 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32877 Numerous changes throughout to reflect new names and complete
32878 function-at-a-time implementation.
32879 (gnat_expand_stmt): Delete or comment out all cases.
32880 (process_inlined_subprograms): Use add_stmt.
32881 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32882 call set_lineno; also remove unneeded block handling.
32883 (process_type): Remove unneeded block handling.
32884 (build_unit_elab): Remove calls to deleted functions.
32885 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32886 (tree-dump.h): Likewise.
32887 (struct ada_binding_level): Add field jmpbuf_decl.
32888 (gnat_define_builtin, gnat_install_builtins): New.
32889 (gnat_gimplify_function, gnat_finalize): Likewise.
32890 (gnat_poplevel): No longer return BLOCK, set it instead.
32891 Remove code dealing with nested functions.
32892 (gnat_init_decl_processing): Also set size_type_node.
32893 Call gnat_install_builtins.
32894 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32895 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32896 Remove special-case for "main".
32897 (end_subprog_body): Add arg and rework for tree-ssa.
32898 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32899 Add case for BOOLEAN_TYPE.
32900 * utils2.c (rtl.h): Now include.
32901 (build_call_raise): Test Debug_Flag_NN directly.
32902 (build_call_alloc_dealloc): Don't use local stack allocation for now.
32903 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32904 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32906 2004-06-07 Robert Dewar <dewar@gnat.com>
32908 * a-direct.ads, einfo.ads: Minor comment updates
32910 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32911 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32912 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32913 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32914 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32916 * s-interr-sigaction.adb: Remove unreferenced variable
32917 (Attached_Interrupts). Minor reformatting.
32918 Avoid use of variable I (replace by J).
32920 * par-ch10.adb: Fix text of one error message
32922 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32923 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32924 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32925 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32926 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32927 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32928 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32929 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32930 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32931 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32932 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32935 2004-06-07 Doug Rupp <rupp@gnat.com>
32937 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32939 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32941 * mlib-tgt-vms-ia64.adb: New file.
32943 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32944 Add mlib-tgt-vms-ia64.adb
32945 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32946 Move to alpha specific ifeq section.
32947 Add VMS specific versions of symbols.adb
32948 Renaming of 5q vms files.
32950 * 5qsystem.ads renamed to system-vms_64.ads.
32952 2004-06-07 Vincent Celier <celier@gnat.com>
32954 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32955 explain that when a time of day corresponding to the non existing hour
32956 on the day switching to DST is specified, Split may return a different
32959 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32962 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32963 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32965 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32967 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32968 the linking options.
32969 (Build_Library.Check_Libs): On VMS, if there is a dependency on
32970 g-trasym.ads, set Gtrasymobj_Needed to True.
32972 * prj-attr.adb: Add new package Metrics for gnatmetric
32974 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32975 canonical case to take into account files with upper case characters on
32977 (Ada_Check): Load the reference symbol file name in the name buffer to
32978 check it, not the symbol file name.
32980 * snames.ads, snames.adb: Add standard name Metrics (name of project
32981 file package for gnatmetric).
32983 * vms_conv.ads: Add Metric to Comment_Type
32985 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32987 * vms_data.ads: Add qualifiers for GNAT METRIC
32989 * makegpr.adb (Link_Executables): Take into account the switches
32990 specified in package Linker of the main project.
32992 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
32994 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32995 the index of the last element is Units.Last, not Units.Table'Last
32996 (which is usually not a valid index within the actually allocated
32997 storage for the table).
32999 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33000 determines whether to generate a call to a checked storage pool
33001 Dereference action.
33002 Generate such a call only for a dereference that either comes from
33003 source, or is the result of rewriting a dereference that comes from
33006 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33008 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33010 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33012 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33013 file level, elaborate the stride for inner dimensions in alignment
33016 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33019 2004-06-07 Javier Miranda <miranda@gnat.com>
33021 * exp_ch6.adb: Correct wrong modification in previous patch
33023 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33025 * g-trasym.ads: Corrected comment to properly reflect level of support
33028 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33030 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33031 includes case of a variable referenced on the left hand side of an
33032 assignment, therefore remove redundant code. Variables and prefixes of
33033 indexed or selected components are now marked as referenced on left
33034 hand side. Warnings are now properly emitted when variables or prefixes
33035 are assigned but not read.
33037 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33038 left hand side referenced variables. Private access types do not
33039 produce the warning "variable ... is assigned but never read".
33040 Add also additional checks to left hand side referenced variables.
33041 Aliased, renamed objects and access types do not produce the warning
33042 "variable ... is assigned but never read" since other entities may read
33043 the memory location.
33045 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33047 * Makefile.in: In the powerpc/vxworks-specific section, restore
33048 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33051 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33053 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33054 predefined operators.
33055 Removes spurious type errors from g-trasym-vms.adb.
33057 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33058 distinct from the operator appearing in the source, call appropriate
33059 routine to insert conversions when needed, and complete resolution of
33061 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33062 interpretations for rewritten right operand.
33063 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33064 the other operand is overloaded and the context is a type conversion.
33066 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33068 * ada-tree.def (BLOCK_STMT): Now has two operands.
33071 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33073 * gigi.h: (gnat_poplevel): Now returns a tree.
33075 * trans.c (end_block_stmt): Add arg; all callers changed.
33076 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33077 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33078 (add_stmt): Set TREE_TYPE.
33079 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33080 (gnat_expand_stmt, case BREAK_STMT): New case.
33082 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33084 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33086 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33087 procedure Set_Stack_Size that is not needed.
33089 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33091 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33092 used for gnatpp input file and for the files upon which it depends
33094 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33096 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33098 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33100 * gnatvsn.ads: Bump version numbers appropriately.
33101 Add new build type.
33103 2004-06-07 Pascal Obry <obry@gnat.com>
33105 * gnat_ugn.texi: Improve comments about imported names and link names
33106 on Windows. Add a note about the requirement to use -k gnatdll's option
33107 when working with a DLL which has stripped stdcall symbols (no @nn
33110 2004-05-27 Vincent Celier <celier@gnat.com>
33112 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33113 COMMENTS_LAYOUT=UNTOUCHED
33115 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33116 symbols-vms-alpha.adb
33118 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33120 * sem.ads: Clarify documentation on checks suppression.
33122 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33124 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33126 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33127 the case of multiple derivations.
33128 (Is_Object_Reference): For a selected component, verify that the prefix
33129 is itself an object and not a value.
33131 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33132 Same_Instantiated_Entity.
33133 (Same_Instantiated_Variable): Subsidiary to
33134 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33135 formals that are obtained from a previous formal package.
33136 (Instantiate_Subprogram_Body): Emit proper error when
33137 generating code and the proper body of a stub is missing.
33139 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33140 has a universal interpretation, do the disambiguation here.
33142 * exp_ch4.adb (Expand_N_Type_Conversion,
33143 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33144 is Address, to avoid typing anomalies when Address is a visible integer
33147 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33148 to determine whether a subprogram should not be marked Pure, even when
33149 declared in a pure package.
33151 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33153 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33155 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33156 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33157 Update the documentation about the Ravenscar profile, following the
33158 definition found in AI-249.
33160 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33161 setting the Profile (Ravenscar). This must be done in addition to
33162 setting the required restrictions.
33164 * rtsfind.ads: Add the set of operations defined in package
33167 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33170 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33172 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33173 if -gnatc or -gnats is passed.
33175 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33177 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33178 a significant reference. Warnings are now properly emitted when a
33179 discriminated type is not referenced.
33181 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33182 record representation clause or record type discriminant does not
33183 produce a reference to its corresponding entity. Warnings are now
33184 properly emitted when deferred constants and record types are not
33187 2004-05-27 Geert Bosch <bosch@gnat.com>
33189 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33190 Fixes ACATS Annex G tests.
33192 2004-05-27 Robert Dewar <dewar@gnat.com>
33194 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33197 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33199 * s-interr.adb (Server_Task): Take into account case of early return
33200 from sigwait under e.g. linux.
33202 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33204 * gnat_ugn.texi: Add description for the new gnatpp options:
33205 -rnb - replace the original source without creating its backup copy
33206 -c0 - do not format comments
33208 2004-05-24 Geert Bosch <bosch@gnat.com>
33210 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33211 with 192 bits of precision, sufficient to reduce a double-extended
33212 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33213 in -2.0**32 .. 2.0**32.
33214 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33215 reduction by the processor, which only uses a 68-bit approximation of
33217 (Tan): Always reduce arguments and compute function either using
33218 the processor's fptan instruction, or by dividing sin and cos as needed.
33220 2004-05-24 Doug Rupp <rupp@gnat.com>
33222 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33223 gcc error on 32/64 bit VMS.
33225 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33227 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33228 since this is what we get for stack overflows although not documented
33230 Document the issues which may require adjustments to our signal
33233 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33235 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33236 enclosing dynamic scope if the instantiation is within a generic unit.
33238 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33240 * exp_dbug.ads: Fix typo.
33242 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33243 Rename it to its proper name: system-linux-ia64.ads
33244 (stamp-gnatlib1): Remove extra target specific run time files when
33245 setting up the rts directory.
33247 2004-05-24 Javier Miranda <miranda@gnat.com>
33249 * einfo.ads, einfo.adb (Limited_Views): Removed.
33250 (Limited_View): New attribute that replaces the previous one. It is
33251 now a bona fide package with the limited-view list through the
33252 first_entity and first_private attributes.
33254 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33255 limited-private-with clause.
33256 (Install_Limited_Withed_Unit): Install the private declarations of a
33257 limited-private-withed package. Update the installation of the shadow
33258 entities according to the new structure (see Build_Limited_Views)
33259 (Build_Limited_Views): Replace the previous implementation of the
33260 limited view by a package entity that references the first shadow
33261 entity plus the first shadow private entity (required for limited-
33262 private-with clause)
33263 (New_Internal_Shadow_Entity): Code cleanup.
33264 (Remove_Limited_With_Clause): Update the implementation to undo the
33265 new work carried out by Build_Limited_Views.
33266 (Build_Chain): Complete documentation.
33267 Replace Ada0Y by Ada 0Y in comments
33270 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33271 types the level of accessibility depends on the enclosing type
33274 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33275 entities. Complete documentation of previous change.
33277 2004-05-24 Robert Dewar <dewar@gnat.com>
33279 * namet.adb: Minor reformatting
33280 Avoid use of name I (replace by J)
33281 Minor code restructuring
33283 * sem_ch6.adb: Minor reformatting
33285 * lib-writ.adb: Do not set restriction as active if this is a
33286 Restriction_Warning case.
33288 * sem_prag.adb: Reset restriction warning flag if real pragma
33289 restriction encountered.
33291 * s-htable.adb: Minor reformatting
33292 Change rotate count to 3 in Hash (improves hash for small strings)
33294 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33296 * gnat_ugn.texi: Add new section of documentation "Code Generation
33297 Control", which describes the use of -m switches.
33299 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33301 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33302 through the DECL_INITIAL for renamed variables.
33304 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33306 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33308 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33310 * exp_dbug.ads: Correct comments concerning handling of overloading,
33311 since we no longer use $ anymore.
33313 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33315 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33316 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33317 with illegal subunits.
33319 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33321 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33322 body with front-end inlining enabled, check whether an inline pragma
33323 appears immediately after the body and applies to it.
33325 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33326 enabled and the pragma appears after the body of the subprogram.
33328 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33330 Part of function-at-a-time conversion
33332 * misc.c (adjust_decl_rtl): Deleted.
33333 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33336 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33337 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33338 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33340 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33341 when making a decl.
33342 (gnat_to_gnu_entity): Likewise.
33343 Use add_stmt to update setjmp buffer.
33344 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33346 No longer call adjust_decl_rtl.
33347 (DECL_INIT_BY_ASSIGN_P): New macro.
33348 (DECL_STMT_VAR): Likewise.
33350 * trans.c (gigi): Call start_block_stmt to make the outermost
33352 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33353 Call start_block_stmt and end_block_stmt temporarily.
33354 Use gnat_expand_stmt instead of expand_expr_stmt.
33355 (add_decl_stmt): New function.
33356 (tree_transform): Call it.
33357 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33358 (end_block_stmt): Set type and NULL_STMT.
33359 (gnat_expand_stmt): Make recursize call instead of calling
33361 (gnat_expand_stmt, case DECL_STMT): New case.
33362 (set_lineno_from_sloc): Do nothing if global.
33363 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33364 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33365 (build_block_stmt): Call them.
33366 (gnat_to_code): Don't expand NULL_STMT.
33367 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33369 (tree_transform): Likewise.
33370 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33371 (gnat_expand_stmt, case NULL_STMT): New case.
33372 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33375 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33378 * utils.c (create_var_decl): Do not call expand_decl or
33380 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33381 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33383 (struct e_stack): Add chain_next to GTY.
33384 (struct binding_level): Deleted.
33385 (struct ada_binding_level): New struct.
33386 (free_block_chain): New.
33387 (global_binding_level, clear_binding_level): Deleted.
33388 (global_bindings_p): Rework to see if no chain.
33389 (kept_level_p, set_block): Deleted.
33390 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33391 new data structure and work directly on BLOCK node.
33392 (gnat_poplevel): Similarly.
33393 (get_decls): Look at BLOCK_VARS.
33394 (insert_block): Work directly on BLOCK node.
33395 (block_has_var): New function.
33396 (pushdecl): Rework for new binding structures.
33397 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33399 (build_subprog_body): Likewise.
33400 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33402 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33404 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33405 (DECL_STMT_VAR): Likewise.
33407 2004-05-17 Robert Dewar <dewar@gnat.com>
33409 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33412 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33413 of restriction synonyums by using
33414 Restrict.Process_Restriction_Synonyms.
33416 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33418 * s-restri.ads (Tasking_Allowed): Correct missing comment
33420 * s-rident.ads: Add entries for restriction synonyms
33422 * ali.adb: Fix some problems with badly formatted ALI files that can
33423 result in infinite loops.
33425 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33426 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33427 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33428 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33429 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33430 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33431 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33432 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33433 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33434 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33435 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33436 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33437 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33438 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33439 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33440 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33441 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33442 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33443 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33444 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33445 to Task_Id (minor cleanup).
33447 2004-05-17 Vincent Celier <celier@gnat.com>
33449 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33450 directory separator.
33452 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33453 project being extended, if Languages is not declared in extending
33456 2004-05-17 Javier Miranda <miranda@gnat.com>
33458 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33459 limited view of a visible sibling.
33461 2004-05-14 Robert Dewar <dewar@gnat.com>
33463 * gnat_ugn.texi: Minor change to -gnatS documentation
33465 * sprint.adb: Remove some instances of Assert (False) and for this
33466 purpose replace them by output of a ??? string.
33468 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33471 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33472 flag processing. This was suppressing required dependencies in
33473 No_Run_Time mode and is not needed since the binder does not generate
33474 references for things in libgnat anyway.
33476 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33479 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33481 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33484 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33485 action for the case of an actual parameter in an init proc call.
33487 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33489 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33490 subtype, check visible entities in base type.
33492 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33493 actions if the object is a renaming.
33495 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33496 Check_Formal_Package_Instance, to determine more precisely when the
33497 formal and the actual denote the same entity.
33499 2004-05-14 Javier Miranda <miranda@gnat.com>
33501 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33503 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33504 corresponding to a private_with must be removed from visibility; it
33505 will be made visible later, just before we analyze the private part of
33507 (Check_Private_Child_Unit): Allow private_with clauses in public
33509 (Install_Siblings): Make visible the private entities of private-withed
33511 (Install_Withed_Unit): Do not install the private withed unit if we
33512 are compiling a package declaration and the Private_With_OK flag was
33513 not set by the caller. These declarations will be installed later,
33514 just before we analyze the private part of the package.
33516 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33517 during the evaluation of the expression that initializes the object,
33518 decorate it with the expected type to avoid cascade errors.
33521 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33522 subprogram we have to install the private_with clauses after its
33523 specification has been analyzed (as documented in AI-262.TXT).
33525 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33526 current compilation unit has a private with on a given entity.
33527 (Find_Direct_Name): Detect the Beaujolais problem described in
33530 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33531 provides the functionality of the function Is_Ancestor that was
33532 previously available in sem_ch10. It has been renamed to avoid
33535 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33537 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33539 * utils.c (build_vms_descriptor): Use SImode pointers.
33541 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33543 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33545 2004-05-14 GNAT Script <nobody@gnat.com>
33547 * Make-lang.in: Makefile automatically updated
33549 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33551 Renaming of target specific files for clarity
33553 * Makefile.in: Rename GNAT target specific files.
33555 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33556 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33557 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33558 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33559 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33560 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33561 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33562 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33563 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33564 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33565 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33566 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33567 51osinte.adb, 51osinte.ads, 51system.ads,
33568 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33569 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33570 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33571 56tpopsp.adb, 57system.ads, 58system.ads,
33572 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33573 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33574 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33575 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33576 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33577 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33578 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33579 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33580 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33581 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33582 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33583 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33584 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33585 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33586 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33587 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33588 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33589 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33590 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33591 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33592 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33593 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33594 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33595 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33596 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33597 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33598 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33599 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33600 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33601 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33602 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33603 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33604 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33605 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33606 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33607 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33608 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33609 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33610 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33611 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33613 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33614 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33615 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33616 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33617 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33618 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33619 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33620 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33621 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33622 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33623 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33624 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33625 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33626 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33627 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33628 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33629 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33630 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33631 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33632 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33633 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33634 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33635 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33636 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33637 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33638 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33639 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33640 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33641 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33642 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33643 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33644 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33645 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33646 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33647 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33648 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33649 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33650 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33651 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33652 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33653 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33654 s-osinte-vms.ads, s-osinte-vxworks.adb,
33655 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33656 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33657 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33658 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33659 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33660 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33661 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33662 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33663 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33664 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33665 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33666 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33667 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33668 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33669 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33670 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33671 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33672 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33673 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33674 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33675 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33676 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33677 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33678 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33679 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33680 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33681 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33682 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33683 system-irix-o32.ads, system-linux-x86_64.ads,
33684 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33685 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33686 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33687 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33688 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33689 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33690 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33693 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33695 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33697 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33699 Merge from tree-ssa-20020619-branch.
33701 * config-lang.in (boot_language, build_by_default): Set
33703 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33704 (max_size): Add static chain op for call_expr.
33706 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33709 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33711 2004-05-11 Roger Sayle <roger@eyesopen.com>
33713 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33716 2004-05-10 Doug Rupp <rupp@gnat.com>
33718 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33721 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33723 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33725 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33726 Fixes undefined symbols in IA64 gnatlib.
33728 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33730 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33731 Short_Address). This will be moved to system.auxdec.
33733 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33735 * sem_util.adb: Replace test for presence of a node that is always
33736 present with a call to Discard_Node.
33738 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33739 Analyze on the library unit node after generation of distribution stub
33740 constructs. The call was a no-op because Unit_Node has already been
33741 Analyzed, and the tree fragments for the distribution stubs are
33742 analyzed as they are inserted in Exp_Dist.
33743 Update comment regarding to distribution stubs to reflect that we
33744 do not generate stub in separate files anymore.
33746 * einfo.ads: Clarify the fact that a tagged private type has the
33747 E_Record_Type_With_Private Ekind.
33749 * erroutc.adb: Minor reformatting
33751 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33752 values if line length is increased using -gnatyM (noticed during code
33755 * eval_fat.adb: Minor reformatting
33756 Put spaces around exponentiation operator
33758 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33761 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33762 has been rewritten as an explicit dereference, retrieve type of
33763 original node to check for possibly unconstrained record type.
33765 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33767 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33768 overriding, use the operation of the parent unconditionally.
33770 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33771 operation when either operand is a literal, to avoid further
33774 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33775 overridden by a previous explicit declaration, mark the previous entity
33778 * sem_disp.adb (Check_Dispatching_Operation): New predicate
33779 Is_Visibly_Controlled, to determine whether a declaration of a
33780 primitive control operation for a derived type overrides an inherited
33781 one. Add warning if the explicit declaration does not override.
33783 2004-05-10 Vincent Celier <celier@gnat.com>
33785 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33786 some cases when the sources are no longer present.
33788 * make.adb (Collect_Arguments): Fail if an external source, not part
33789 of any project need to be compiled, when switch -x has not been
33792 * makeusg.adb: Document new switch -x
33794 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33795 defaulted to False.
33797 * switch-m.adb (Scan_Make_Switches): New switch -x
33799 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33800 gnatmake switch -x.
33802 * gnat_ugn.texi: Document new gnatmake switch -x
33804 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
33806 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33808 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33809 (process_attributes): Likewise.
33811 2004-05-10 Joel Brobecker <brobecker@gnat.com>
33813 * s-inmaop.ads: Fix spelling mistake in one of the comments.
33815 2004-05-10 Robert Dewar <dewar@gnat.com>
33817 * gnat_ugn.texi: Document that for config pragma files, the maximum
33818 line length is always 32767.
33820 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33821 literals is now allowed.
33823 * gnat-style.texi: Remove statement about splitting long lines before
33824 an operator rather than after, since we do not follow this rule at all.
33825 Clarify rule (really lack of rule) for spaces around exponentiation
33827 * sem_elim.adb: Allow concatenation of string literals as well as a
33828 single string literal for pragma arguments.
33830 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33832 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33833 written for append case.
33835 * frontend.adb: Changes to avoid checking max line length in config
33838 * g-os_lib.ads: Minor reformatting
33840 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33841 wrong in any case. Instead use standard value. Noticed during code
33844 * opt.ads (Max_Line_Length): New field, used to implement removal of
33845 limitation on length of lines when scanning config pragma files.
33847 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33848 makeutl.ads, makeutl.adb: Minor reformatting
33850 * scn.adb: Do not check line length while scanning config pragma files
33851 Do not check line length while scanning out license information
33853 * scng.adb: Changes to avoid line length checks while parsing config
33856 2004-05-10 GNAT Script <nobody@gnat.com>
33858 * Make-lang.in: Makefile automatically updated
33860 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
33862 * osint.adb (Find_Program_Name): Fix handling of VMS version
33865 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
33867 * g-os_lib.ads (Invalid_Time): New constant
33869 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33870 return OS_Time instead of time_t to match what is imported by Ada.
33871 Now return -1 if the file doesn't exist, instead of a random value
33873 2004-05-05 Robert Dewar <dewar@gnat.com>
33875 * usage.adb: Add line for -gnatR?s switch
33877 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33879 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33880 and for Match (Data_First, Data_last)
33882 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33883 written when we are dealing with multi-unit files.
33885 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
33887 * Makefile.in: Remove unused targets and variables.
33889 2004-05-05 Vincent Celier <celier@gnat.com>
33891 * switch-m.adb: New gnatmake switch -eI
33893 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33894 of new gnatmake switch -eInnn.
33896 * makegpr.adb: Take into account new parameters Index and Src_Index in
33899 * clean.adb: Implement support for multi-unit sources, including new
33902 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33905 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33906 (Extract_From_Q): New out parameter Index
33907 (Mark, Is_Marked): Subprograms moved to Makeutl
33908 (Switches_Of): New parameter Source_Index
33909 (Add_Switch): New parameter Index
33910 (Check): New parameter Source_Index
33911 (Collect_Arguments): New parameter Source_Index
33912 (Collect_Arguments_And_Compile): New parameter Source_Index
33913 (Compile): New parameter Source_Index
33914 Put subprograms in alphabetical order
33915 Add support for multi-source sources, including in project files.
33917 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33918 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33921 * makeusg.adb: New gnatmake switch -eInnn
33923 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33926 * opt.ads (Main_Index): New variable, defaulted to 0.
33928 * osint.ads, osinte.adb (Add_File): New parameter Index
33929 (Current_Source_Index): New function
33931 * prj.adb: Take into account new components Index and Src_Index
33933 * prj.ads (String_Element): New component Index
33934 (Variable_Value): New component Index
33935 (Array_Element): New component Src_Index
33937 * prj-attr.adb: Indicate that optional index may be specified for
33938 attributes Main, Executable, Spec, Body and some of Switches.
33940 * prj-attr.ads (Attribute_Kind): New values for optional indexes
33941 (Attribute_Record): New component Optional_Index
33943 * prj-com.ads (File_Name_Data): New component Index
33945 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33947 * prj-env.adb (Put): Output optional index
33949 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33950 attributes Spec and Body.
33952 * prj-nmsc.adb: Process optional indexes
33954 * prj-pp.adb: Ouput "at" for optional indexes
33956 * prj-proc.adb: Take into account optional indexes
33958 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33959 Optional_Index. For string literal,
33960 process optional index when Optional_Index is True.
33961 (Parse_Expresion): New Boolean parameter Optional_Index
33963 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33964 (Set_Source_Index_Of): New procedure
33966 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33969 * prj-util.ads (Executable_Of): New parameter Index
33970 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33971 New parameter Src_Index, defaulted to 0.
33973 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33976 * sem_ch3.adb (Access_Definition): If this is an access parameter
33977 whose designated type is imported through a limited_with clause, do
33978 not add the enclosing subprogram to the list of private dependents of
33981 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33984 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33985 a limited_with clause, and the other is its non-limited view.
33987 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
33989 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33991 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33992 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33993 Stand.Boolean_Literals to produce references to entities
33994 Standard_False and Standard_True from compile-time computed boolean
33997 * stand.ads (Boolean_Literals): New variable, provides the entity
33998 values for False and True, for use by the expander.
34000 2004-05-05 Doug Rupp <rupp@gnat.com>
34002 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34003 5vinmaop.adb: Unchecked convert Short_Address vice Address
34005 * adaint.c, raise.c: Caste CRTL function return value
34006 to avoid gcc error on 32/64 bit IVMS.
34008 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34011 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34013 * 5qsystem.ads (Address): Declare as Long_Integer
34014 (Short_Address): Declare as 32 bit subtype of Address
34015 Declare abstract address operations to avoid gratuitous ambiguities.
34017 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34019 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34020 instead of the old Boolean_Entry_Barriers.
34021 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34023 2004-05-05 GNAT Script <nobody@gnat.com>
34025 * Make-lang.in: Makefile automatically updated
34027 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34029 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34031 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34034 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34035 alone. Replacing object references by literals is inappropriate in a
34036 so low level context.
34038 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34040 * a-exexpr.adb: Add comments
34042 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34044 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34045 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34046 without risking a bounds check error when accessing one of its
34048 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34049 This prevents us from hitting a limitation during the debug info
34050 generation when using stabs.
34052 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34054 This prevents us from hitting a limitation during the debug info
34055 generation when using stabs.
34057 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34059 lang-specs.h: Remove -gnatz* from specs.
34061 2004-05-03 Vincent Celier <celier@gnat.com>
34063 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34065 * Make-lang.in, Makefile.in: Add gprmake
34067 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34069 * sem_aggr.adb: Fix typo in comment.
34071 2004-05-03 Robert Dewar <dewar@gnat.com>
34073 * make.adb: Minor reformatting
34075 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34077 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34078 so that it works when address is not a private type.
34080 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34081 properly with rewritten unchecked conversions. This prevents
34082 order-of-elaboration issues that can otherwise arise.
34083 (Minimum_Size): Don't check size of access types under VMS
34085 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34086 interpretations of integer literals as type System.Address.
34088 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34089 (Is_Descendent_Of): New function
34091 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34093 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34094 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34095 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34097 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34098 of the old Max_Entry_Queue_Depth.
34100 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34101 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34102 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34104 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34105 New entry for proper handling of Max_Entry_Queue_Depth.
34106 New entry for proper handling of No_Dynamic_Interrupts.
34108 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34109 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34110 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34111 the GNAT specific restriction Max_Entry_Queue_Depth.
34112 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34113 the GNAT specific restriction No_Dynamic_Interrupts.
34115 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34116 instead of the old Boolean_Entry_Barriers.
34117 Use the new restriction No_Dynamic_Attachment instead of the old
34118 No_Dynamic_Interrupts.
34120 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34121 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34123 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34124 of the old Max_Entry_Queue_Depth.
34126 2004-05-03 GNAT Script <nobody@gnat.com>
34128 * Make-lang.in: Makefile automatically updated
34130 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34132 * checks.adb (Enable_Range_Check): If the prefix of an index component
34133 is an access to an unconstrained array, perform check unconditionally.
34135 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34137 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34140 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34142 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34143 alternate stack setting. There was no support for the tasking cases
34144 and the changes eventually caused a number of side-effect failures in
34145 the non-tasking case too.
34147 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34149 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34152 2004-04-29 Vincent Celier <celier@gnat.com>
34154 * make.adb (Gnatmake): Increase max size of argument array for
34155 gnatbind for the potential addition of -F.
34156 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34157 be sure that elaboration flags will be checked.
34159 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34161 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34163 * sem_warn.adb (Check_References): Move '<access-variable> may be
34164 null' warning out of under Warn_On_No_Value_Assigned.
34166 2004-04-29 Ed Falis <falis@gnat.com>
34168 * gnat_ugn.texi: Fixed texi error
34170 2004-04-29 Robert Dewar <dewar@gnat.com>
34172 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34173 abstract operations if they come from predefined files.
34175 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34178 * s-addope.adb: Correct obvious error in mod function
34180 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34182 * Makefile.in: Add target pairs for powerpc darwin*
34185 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34186 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34188 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34190 * Makefile.in: Add target macro definitions for s390*-linux*.
34191 * system-linux-s390.ads: New file.
34192 * system-linux-s390x.ads: New file.
34194 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34196 * gnat_ugn.texi: Correct argument to @setfilename.
34198 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34200 * a-exexpr.adb (Unwind_Word): New data type.
34201 (Unwind_Exception): Use it as type of Private1 and Private2.
34203 * raise.c (db_action_for): Fix debug printf.
34205 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34207 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34210 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34212 * decl.c (gnat_to_gnu_entity, case object): Call
34213 __builtin_update_setjmp_buf.
34215 * gigi.h (update_setjmp_buf): Deleted.
34216 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34218 * misc.c: (update_setjmp_buf): Deleted.
34220 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34221 around block of RTL.
34223 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34225 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34227 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34228 subprogram for which no pragma All_Calls_Remote applies, store the
34229 address of the real subprogram in the underlying record type, so local
34230 dereferences do not go through the PCS.
34232 2004-04-26 Robert Dewar <dewar@gnat.com>
34234 * i-c.ads: Add some type qualifications to avoid ambiguities when
34235 compiling with s-auxdec.ads and a non-private address type.
34237 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34239 * Makefile.rtl: Fix error in previous check-in:
34240 Add s-addope.o to non tasking object list (rather than tasking object
34243 2004-04-26 Javier Miranda <miranda@gnat.com>
34245 * sem_aggr.adb: Fix typo in comments
34246 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34247 Required to check the null-exclusion attribute.
34249 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34250 case of anonymous access types in record and array components. For a
34251 component definition the level is the same of the enclosing composite
34254 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34255 that are anonymous access types the level of accessibility depends on
34256 the enclosing type declaration. In order to have this information, set
34257 the scope of the anonymous access type to the enclosing record type
34259 (Array_Type_Declaration): In case of components that are anonymous
34260 access types the level of accessibility depends on the enclosing type
34261 declaration. In order to have this information, set the scope of the
34262 anonymous access type to the enclosing array type declaration.
34264 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34267 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34268 renaming of anonymous access-to-constant types allowed if and only if
34269 the renamed object is access-to-constant.
34271 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34272 that are component_definition or discriminants of a nonlimited type,
34273 the level is the same as that of the enclosing component type.
34275 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34277 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34278 misprint in the function name (File_Name_Match).
34280 2004-04-23 Laurent Guerby <laurent@guerby.net>
34282 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34285 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34287 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34289 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34291 * adaint.c (__gnat_try_lock): No longer requires that the parent
34292 directory be writable, the directory itself is enough.
34293 (gnat_is_absolute_path): Change profile, so that the call from
34294 GNAT.OS_Lib can be made more efficient.
34296 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34297 from GNAT.OS_Lib can be made more efficient.
34299 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34300 one copy of the file name. Found by code reading.
34302 2004-04-23 Vincent Celier <celier@gnat.com>
34304 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34305 Correct documentation on gnatmake switches transmitted to the compiler
34307 * ali.ads: Minor comment fix
34309 2004-04-23 Javier Miranda <miranda@gnat.com>
34311 * sem_ch6.adb: (Confirming Types): Code cleanup
34313 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34314 subprogram types: E_Anonymous_Access_Subprogram_Type and
34315 E_Anonymous_Access_Protected_Subprogram_Type.
34317 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34319 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34320 whether a pragma All_Calls_Remote applies to the subprogram on which
34322 No functional change is introduced by this revision; the new parameter
34323 will be used to allow calls to local RCI subprograms to be optimized
34324 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34325 as is already done in the PolyORB implementation of the DSA.
34327 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34328 whether a pragma All_Calls_Remote applies to the subprogram on which
34330 No functional change is introduced by this revision; the new parameter
34331 will be used to allow calls to local RCI subprograms to be optimized
34332 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34333 as is already done in the PolyORB implementation of the DSA.
34335 2004-04-23 Robert Dewar <dewar@gnat.com>
34337 * Makefile.rtl: Add entry for s-addope.o in run time library list
34338 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34339 * s-addope.ads, s-addope.adb: New files.
34341 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34342 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34343 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34344 System.Address to be non-private and signed.
34346 * sem_elim.adb: Minor reformatting (fairly extensive)
34347 Some minor code reorganization from code reading
34348 Add a couple of ??? comments
34350 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34352 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34353 (tree_transform, case N_If_Statement): Remove non-determinism.
34355 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34357 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34359 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34360 Eliminate' section.
34362 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34363 no longer used as a parameter name for Eliminate pragma).
34365 2004-04-22 Laurent Guerby <laurent@guerby.net>
34367 PR optimization/14984
34368 PR optimization/14985
34369 * trans.c (gigi): Fix non determinism leading to bootstrap
34370 comparison failures.
34372 2004-04-21 Pascal Obry <obry@gnat.com>
34374 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34375 passed to spawnvp() to properly handle program pathname with spaces on
34378 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34380 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34381 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34382 unlocked in case of exceptions.
34384 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34386 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34387 This function does not exist anymore.
34389 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34391 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34393 * link.c: Move variables to the __gnat name space.
34395 * Makefile.in: list link.o explicitly when needed.
34397 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34399 2004-04-21 Javier Miranda <miranda@gnat.com>
34401 * einfo.adb (Original_Access_Type): New subprogram
34402 (Set_Original_Access_Type): New subprogram
34403 (Write_Field21_Name): Write the name of the new field
34405 * einfo.ads (Original_Access_Type): New field present in access to
34407 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34408 E_Anonymous_Access_Protected_Subprogram_Type.
34410 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34413 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34414 to anonymous access to subprogram types.
34416 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34417 to subprogram types.
34419 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34420 corresponding to anonymous access to subprogram types.
34421 (Analyze_Component_Declaration): Add new actual to the call to
34422 subprogram replace_anonymous_access_to_protected_subprogram.
34423 (Array_Type_Declaration): Add new actual to the call to subprogram
34424 replace_anonymous_access_to_protected_subprogram.
34425 (Process_Discriminants): Add new actual to the call to subprogram
34426 replace_anonymous_access_to_protected_subprogram.
34427 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34429 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34432 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34433 access to subprogram types.
34435 * sem_util.adb (Has_Declarations): Addition of package_specification
34438 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34440 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34441 inlined flags to renamed entity only if in current unit.
34443 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34445 * s-parint.ads: Add DSA implementation marker.
34447 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34448 value of System.Partition_Interface.DSA_Implementation to determine
34449 what version of the distributed systems annex is available (no
34450 implementation, GLADE, or PolyORB).
34452 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34454 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34456 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34458 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34459 with new type if alias sets differ.
34460 Fixes ACATS c41103b.
34462 2004-04-21 Vincent Celier <celier@gnat.com>
34464 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34465 Add array Lang_Args for the language specific compiling argument
34468 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34470 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34472 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34473 according to the recent changes in the format of the parameters of the
34474 pragma (replacing Homonym_Number with Source_Location).
34476 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34478 * 5isystem.ads: Removed, unused.
34480 * gnat_rm.texi: Redo 1.13 change.
34482 2004-04-19 Robert Dewar <dewar@gnat.com>
34484 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34485 definition is cleaner, avoids the kludge of explicit Standard operator
34486 references, and also is consistent with a visible System.Address with
34487 no visible operations.
34489 * s-geveop.adb: Add declarations to avoid assumption of visible
34490 operations on type System.Address (since these might not be available
34491 if Address is a non-private type for which the operations
34492 are made abstract).
34494 * sem_eval.adb: Minor reformatting
34496 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34497 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34498 reformatting (new function spec format).
34500 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34501 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34502 s-caun64.adb: Add declarations to avoid assumption of visible
34503 operations on type System.Address (since these might not be available
34504 if Address is a non-private type for which the operations are made
34507 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34509 * exp_intr.adb: Minor comment update
34511 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34513 * 5omastop.adb: Add declarations to avoid assumption of visible
34514 operations on type System.Address (since these might not be available
34515 if Address is a non-private type for which the operations
34516 are made abstract).
34518 2004-04-19 Vincent Celier <celier@gnat.com>
34520 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34522 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34525 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34527 Call Check with Process_Languages.
34528 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34529 with Process_Languages.
34530 (Recursive_Check): New Boolean parameter Process_Languages. Call
34531 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34534 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34536 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34537 parameter Ada_Main, defaulted to True.
34538 Check for Ada specific characteristics only when Ada_Main is True.
34540 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34542 * prj.adb: (Project_Empty): Add new Project_Data components.
34544 * prj.ads: New types and tables for non Ada languages.
34545 (Project_Data): New components Languages, Impl_Suffixes,
34546 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34547 Include_Path, Include_Data_Set.
34549 * prj-env.ads, prj-env.adb: Minor reformatting
34551 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34552 Put subprograms in alphabetical order
34554 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34555 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34558 * mlib-prj.adb: Back out modification in last version, as they are
34560 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34562 * make.adb: (Mains): Moved to package Makeutl
34563 (Linker_Opts): Moved to package Makeutl
34564 (Is_External_Assignment): Moved to package Makeutl
34565 (Test_If_Relative_Path): Moved to package Makeutl
34566 (Gnatmake): Move sorting of linker options to function
34567 Makeutl.Linker_Options_Switches.
34569 * makeutl.ads, makeutl.adb: New files.
34571 * Makefile.in: Add makeutl.o to the object files for gnatmake
34573 * makeusg.adb: Add line for new switch -eL.
34575 * gnatls.adb (Image): New function.
34576 (Output_Unit): If in verbose mode, output the list of restrictions
34577 specified by pragmas Restrictions.
34579 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34582 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34583 needed, to put it in the range 1970 (included) - 2026 (excluded).
34584 (Time_Of): Do not shift Unix_Min_Year (1970).
34585 Shift the date by multiple of 56 years, if needed, to put it in the
34586 range 1970 (included) - 2026 (excluded).
34588 * adaint.h, adaint.c (__gnat_set_executable): New function.
34590 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34592 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34593 and pop GC context.
34594 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34595 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34596 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34597 (tree_transform, case N_Code_Statement): Likewise.
34598 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34599 LABEL_STMT_FIRST_IN_EH.
34600 (gnat_expand_stmt, case ASM_STMT): New case.
34602 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34603 UNCONSTRAINED_ARRAY_REF.
34605 * utils.c (poplevel): Temporarily push/pop GC context around inline
34606 function expansion.
34608 * decl.c (maybe_variable): Properly set TREE_READONLY of
34609 UNCONSTRAINED_ARRAY_REF.
34610 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34612 * ada-tree.def: (ASM_STMT): New.
34614 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34615 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34616 ASM_STMT_INPUT): New.
34617 (ASM_STMT_CLOBBER): Likewise.
34619 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34621 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34622 general rcheck mechanism to raise Program_Error for E.4(18), instead
34623 of a custom raiser in System.Partition_Interface.
34624 Part of general cleanup work before PolyORB integration.
34626 * snames.ads, snames.adb: Add new runtime library entities and names
34629 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34631 (Build_Subprogram_Id): New subprogram provided by exp_dist
34632 Code reorganisation in preparation for PolyORB integration.
34634 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34636 (Build_Subprogram_Id): New subprogram provided by exp_dist
34638 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34639 actual parameter types for call to dereference of an
34640 access-to-subprogram type.
34642 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34645 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34646 instead, which has the same behaviour here since we never pass it a
34649 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34652 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34653 to account for new dependency upon Interfaces.C.Strings + link.o
34654 For x86 FreeBSD, use 86numaux.
34656 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34657 from Mlib.Tgt to Mlib.
34659 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34660 target-independent.
34662 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34663 target-specific versions of this subprogram, now implemented as a
34664 target-independent function in Mlib.
34666 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34667 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34668 (Linker_Library_Path_Option): Remove target-specific versions of this
34669 subprogram, now implemented as a target-independent function in Mlib.
34671 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34672 Factors out node table slots allocation.
34673 (Fix_Parents): New subprogram.
34674 Encapsulate the pattern of fixing up parent pointers for syntactic
34675 children of a rewritten node.
34676 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34677 (Rewrite): Use New_Copy when creating saved copy of original node.
34678 (Replace): Use Copy_Node to copy nodes.
34680 2004-04-19 Javier Miranda <miranda@gnat.com>
34682 * sprint.adb (Sprint_Node_Actual): Give support to the new
34683 Access_To_Subprogram node available in Access_Definition nodes. In
34684 addition, give support to the AI-231 node fields: null-exclusion,
34685 all-present, constant-present.
34687 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34689 * sinfo.ads, sinfo.adb:
34690 New field Access_To_Subprogram_Definition in Access_Definition nodes
34692 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34693 decorates internal subtype declaration corresponding to the
34694 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34695 In addition, carry out some code cleanup on this code. In case of
34696 access to protected subprogram call
34697 Replace_Anonymous_Access_To_Protected_Subprogram.
34698 (Set_Actual_Subtypes): Code cleanup.
34700 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34701 Find_Type in case of anonymous access renamings. Add warning in case of
34702 null-excluding attribute used in anonymous access renaming.
34704 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34707 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34709 (Access_Definition): In case of anonymous access to subprograms call
34710 the corresponding semantic routine to decorate the node.
34711 (Access_Subprogram_Declaration): Addition of some comments indicating
34712 some code that probably should be added here. Detected by comparison
34713 with the access_definition subprogram.
34714 (Analyze_Component_Declaration): In case of access to protected
34715 subprogram call Replace_Anonymous_Access_To_Protected.
34716 (Array_Type_Declaration): In case of access to protected subprogram call
34717 Replace_Anonymous_Access_To_Protected_Subprogram.
34718 (Process_Discriminants): In case of access to protected subprogram call
34719 Replace_Anonymous_Access_To_Protected_Subprogram.
34721 * par.adb (P_Access_Definition): New formal that indicates if the
34722 null-exclusion part was present.
34723 (P_Access_Type_Definition): New formal that indicates if the caller has
34724 already parsed the null-excluding part.
34726 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34727 (P_Identifier_Declarations): Code cleanup and give support to renamings
34728 of anonymous access to subprogram types.
34729 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34730 (P_Array_Type_Definition): Give support to AI-254.
34731 (P_Component_Items): Give support to AI-254.
34732 (P_Access_Definition): New formal that indicates if the header was
34733 already parsed by the caller.
34734 (P_Access_Type_Definition): New formal that indicates if the caller has
34735 already parsed the null-excluding part.
34737 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34738 call to P_Access_Definition.
34740 2004-04-19 Geert Bosch <bosch@gnat.com>
34742 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34743 the delicate semantics of floating-point to integer conversion.
34744 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34746 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34747 (Machine_Radix): New function.
34749 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34751 (Machine_Radix): New function also for use in conversion checks.
34753 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34755 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34757 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34758 to decorate the access-to-protected subprogram and the equivalent type.
34760 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34761 to anonymous access to subprogram types.
34763 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34764 constant-folding, for legality checks in contexts that require an RM
34767 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34768 temporary but stack checking is not enabled, increment serial number
34769 to so that symbol generation is consistent with and without stack
34772 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34773 independent on whether stack checking is enabled, caller must check
34774 the corresponding flag.
34776 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34778 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34779 parent if it has discriminants.
34780 (Build_Derived_Private_Type): Constructed full view does
34781 not come from source.
34782 (Process_Discriminants): Default discriminants on a tagged type are
34783 legal if this is the internal completion of a private untagged
34786 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34787 no constraint checks, because it corresponds to an existing object.
34789 * sem_prag.adb (Process_Convention): Pragma applies
34790 only to subprograms in the same declarative part, i.e. the same unit,
34791 not the same scope.
34793 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34794 ignore type mismatch on a numeric conversion if expression comes from
34797 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
34799 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34800 Homonym_Number parameter, add processing for Source_Location parameter
34802 (Check_Eliminated): Remove the check for homonym numbers, add the check
34803 for source location traces.
34805 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34806 with Arg_Source_Location corresponding to the changes in the format of
34809 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34810 Eliminate pragma corresponding to the changes in the format of the
34811 pragma: Homonym_Number is replaced with Source_Location, two ways of
34812 distinguishing homonyms are mutially-exclusive.
34814 2004-04-19 Joel Brobecker <brobecker@gnat.com>
34816 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34818 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34819 No_Dollar_In_Label, no longer necessary, as it is always True.
34820 (Strip_Suffixes): Likewise.
34822 2004-04-19 Gary Dismukes <dismukes@gnat.com>
34824 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34825 modulus for compatibility with size clause on targets with 16-bit
34828 * layout.adb (Discrimify): In the case of private types, set Vtyp to
34829 full type to fix type mismatches on calls to size functions for
34830 discriminant-dependent array components.
34832 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
34834 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34837 2004-04-19 Pascal Obry <obry@gnat.com>
34839 * mdll-utl.adb (Locate): New version is idempotent.
34841 2004-04-17 Laurent Guerby <laurent@guerby.net>
34843 PR ada/14988 (partial)
34844 * impunit.adb: Fix typo.
34846 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
34848 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34849 and install-rts-cert targets. Remove all gnatlib and gnattools
34850 targets and all other rts-* targets (moved to libada). Remove (now)
34851 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34852 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34854 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34856 * trans.c (tree_transform): Shortcut returning error_mark_node for
34857 statements in annotate_only_mode.
34858 (tree_transform, case N_Label, case N_Return_Statement,
34859 N_Goto_Statement): Make statement tree instead of generating code.
34860 (tree_transform, case N_Assignment_Statement): No longer check
34861 type_annotate_only.
34862 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34864 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34866 (gnat_to_gnu): Collect any RTL generated and deal with it.
34867 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34868 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34869 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34871 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34873 * ada-tree.def (EXPR_STMT): Fix typo in name.
34874 (BLOCK_STMT, IF_STMT): New nodes.
34876 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34877 LABEL_STMT_FIRST_IN_EH): New macros.
34878 (RETURN_STMT_EXPR): Likewise.
34880 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34881 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34883 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34885 * atree.ads: Correct documentation on extended nodes.
34887 * link.c: Set run_path_option for FreeBSD.
34889 2004-04-08 Vincent Celier <celier@gnat.com>
34891 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34892 one of the ALI file, do not link with DEC lib.
34894 * par.adb Remove the last two characters ("%s" or "%b") when checking
34895 if a language defined unit may be recompiled.
34897 2004-04-08 Ed Schonberg <schonberg@gnat.com>
34899 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34900 removal of abstract operation leaves no possible interpretation for
34903 * sem_eval.adb (Eval_Qualified_Expression): Use
34904 Set_Raises_Constraint_Error on node when needed, so that it does not
34905 get optimized away by subsequent optimizations.
34907 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34908 operands even when they are not wrapped in a type conversion.
34910 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
34912 * sem_prag.adb (Set_Exported): Warn about making static as result of
34913 export only when the export is coming from source. This may be not
34914 be true e.g. on VMS where we expand export pragmas for exception codes
34915 together with imported or exported exceptions, and we don't want the
34916 user to be warned about something he didn't write.
34918 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34920 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34921 duplication between normal entities and those declared as renamings.
34922 No functional change.
34924 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34925 inline functions returning an unconstrained result.
34927 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
34929 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34930 conform to what other front-ends do.
34932 2004-04-08 Doug Rupp <rupp@gnat.com>
34934 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34937 2004-04-06 Pascal Obry <obry@gnat.com>
34939 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34941 * osint.adb (Program_Name): Do not look past a directory separator.
34943 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
34945 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34947 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34948 requirement for preserving a copy of the original assignment node.
34950 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34952 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
34954 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34957 2004-04-06 Ed Schonberg <schonberg@gnat.com>
34959 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34960 operator calls in functional notation, and apply
34961 Universal_Interpretation to operands, not to their type.
34963 2004-04-06 Robert Dewar <dewar@gnat.com>
34965 * 5wdirval.adb: Minor reformatting
34967 2004-04-06 Ed Falis <falis@gnat.com>
34969 * gnat_rm.texi: Improve a reference to the GCC manual
34971 2004-04-05 Vincent Celier <celier@gnat.com>
34973 * adaint.h, adaint.c: Add function __gnat_named_file_length
34975 * impunit.adb: Add Ada.Directories to the list
34977 * Makefile.in: Add VMS and Windows versions of
34978 Ada.Directories.Validity package body.
34980 * Makefile.rtl: Add a-direct and a-dirval
34982 * mlib-tgt.ads: Minor comment update.
34984 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34985 a-direct.ads, a-direct.adb: New files.
34987 2004-04-05 Vincent Celier <celier@gnat.com>
34990 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34991 just to the compiler.
34993 2004-04-05 Robert Dewar <dewar@gnat.com>
34995 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34996 returned string is 1.
34998 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35000 * eval_fat.ads: Minor reformatting
35002 * g-curexc.ads: Document that lower bound of returned string values
35005 * gnatlink.adb: Add ??? comment for previous change
35006 (need to document why this is VMS specific)
35008 * s-stoele.ads: Minor reformatting
35010 * tbuild.ads: Minor reformatting throughout (new function specs)
35012 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35015 * scng.adb: Minor reformatting
35017 2004-04-05 Geert Bosch <bosch@gnat.com>
35019 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35020 (Leading_Part): Still perform truncation to machine number if the
35021 specified radix_digits is greater or equal to machine_mantissa.
35023 2004-04-05 Javier Miranda <miranda@gnat.com>
35025 * par-ch3.adb: Complete documentation of previous change
35026 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35027 (aliased must appear before constant).
35029 * par-ch4.adb: Complete documentation of previous change.
35031 * par-ch6.adb: Complete documentation of previous change.
35033 * sinfo.ads: Fix typo in commment.
35035 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35037 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35038 stored discriminants, use its discriminants to constrain parent type,
35039 as is done for non-private derived record types.
35041 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35042 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35043 candidate interpretation in an overloaded call.
35045 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35046 expression is Null and target type is not an access type (e.g. a
35047 non-private address type).
35049 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35051 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35052 statement whose right-hand side is an inlined call, save a copy of the
35053 original assignment subtree to preserve enough consistency for
35054 Analyze_Assignment to proceed.
35056 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35057 complete assignment subtree which is now unnecessary, as the expansion
35058 of inlined call has been improved to preserve a consistent assignment
35059 tree. Note_Possible_Modification must be called only
35060 after checks have been applied, or else unnecessary checks will
35063 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35064 of explicit dereferences that do not Come_From_Source:
35065 - be selective on cases where we must go back to the dereferenced
35066 pointer (an assignment to an implicit dereference must not be
35067 recorded as modifying the pointer);
35068 - do not rely on Original_Node being present (Analyze_Assignment
35069 calls Note_Possible_Modification on a copied tree).
35071 * sem_warn.adb (Check_References): When an unset reference to a pointer
35072 that is never assigned is encountered, prefer '<pointer> may be null'
35073 warning over '<pointer> is never assigned a value'.
35075 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35077 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35080 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35082 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35083 libexc. We currently don't reference anything in this library and
35084 linking it in triggers linker warnings we don't want to see.
35086 * init.c: Update comments.
35088 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35090 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35091 * utils.c (create_field_decl): Likewise.
35092 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35094 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35096 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35097 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35098 Add info directory entry and category.
35100 2004-04-02 Jan Hubicka <jh@suse.cz>
35102 * utils.c: Include function.h
35103 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35105 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35108 * Make-lang.in: Clean up generation of documentation
35110 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35112 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35114 * xgnatugn.adb: Replaces xgnatug.adb
35116 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35118 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35120 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35121 gnat_ug_wnt.texi: Removed.
35123 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35125 * utils2.c: Update copyright notice.
35127 2004-04-01 Robert Dewar <dewar@gnat.com>
35129 * checks.adb: Minor reformatting throughout
35130 Note that prev checkin added RM reference to alignment warning
35132 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35134 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35135 non-static when building aggregate for bit-packed array.
35137 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35138 function call that is itself the actual in a procedure call, build
35141 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35142 a string literal, create a temporary for it, constant folding only
35143 handles scalars here.
35145 2004-04-01 Vincent Celier <celier@gnat.com>
35147 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35148 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35149 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35151 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35152 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35153 and get the checksum.
35155 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35157 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35158 instead of at the beginning.
35160 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35162 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35165 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35167 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35170 * par.adb: Remove test on file name to detect language defined units.
35171 Add test on unit name, after parsing, to detect language defined units
35172 that are not compiled with -gnatg (except System.RPC and its children)
35174 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35175 following units without style checking.
35177 * switch-c.adb: Change -gnatC to -gnateI
35179 * usage.adb: Document new switch -gnateInnn
35181 * scng.adb (Accumulate_Token_Checksum): New procedure
35182 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35183 word or literal number.
35184 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35187 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35190 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35191 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35192 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35193 5vtpopde.adb: Add missing 'constant' keywords.
35195 2004-04-01 Javier Miranda <miranda@gnat.com>
35197 * par-ch4.adb: (P_Allocator): Code cleanup
35199 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35202 * sinfo.ads: Complete documentation of previous change
35204 2004-04-01 Pascal Obry <obry@gnat.com>
35206 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35207 only on VMS. This special handling was done because an old GNU/ld bug
35208 on Windows which has been fixed.
35210 2004-04-01 GNAT Script <nobody@gnat.com>
35212 * Make-lang.in: Makefile automatically updated
35214 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35216 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35217 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35218 * trans.c (tree_transform, convert_with_check): Likewise.
35219 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35220 (build_vms_descriptor, unchecked_convert): Likewise.
35221 * utils2.c (nonbinary_modular_operation): Likewise.
35223 2004-03-29 Javier Miranda <miranda@gnat.com>
35225 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35226 (Install_Null_Excluding_Check): Local subprogram that determines whether
35227 an access node requires a runtime access check and if so inserts the
35228 appropriate run-time check.
35229 (Apply_Access_Check): Call Install_Null_Excluding check if required
35230 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35232 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35234 * einfo.ads: Fix typo in comment
35236 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35237 null-excluding type to force the corresponding run-time check.
35238 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35239 type to force the corresponding run-time check.
35241 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35242 the null-excluding type to force the corresponding run-time check.
35244 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35245 case of access types unless they have the null-excluding attribute.
35247 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35250 * exp_util.ads: Fix typo in comment
35252 * par.adb (P_Null_Exclusion): New subprogram
35253 (P_Subtype_Indication): New formal that indicates if the null-excluding
35254 part has been scanned-out and it was present
35256 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35258 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35259 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35260 type to force the corresponding run-time check
35261 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35263 (Resolve_Array_Aggregate): Carry out some static checks
35264 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35266 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35267 attribute must be set only if specified by means of the null-excluding
35268 part. In addition, we must also propagate the access-constant attribute
35270 (Access_Subprogram_Declaration, Access_Type_Declaration,
35271 Analyze_Component_Declaration, Analyze_Object_Declaration,
35272 Array_Type_Declaration, Process_Discriminants,
35273 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35274 and carry out some static checks.
35275 (Build_Derived_Access_Type): Set the null-excluding attribute
35276 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35279 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35281 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35283 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35284 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35285 null-excluding part was present; it is not required to be done here in
35286 case of anonymous access types.
35287 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35290 * sem_res.adb (Resolve_Actuals): Carry out some static check
35291 (Resolve_Null): Allow null in anonymous access
35293 * sinfo.adb: New subprogram Null_Exclusion_Present
35294 All_Present and Constant_Present available on access_definition nodes
35296 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35297 object_declaration, derived_type_definition, component_definition,
35298 discriminant_specification, access_to_object_definition,
35299 access_function_definition, allocator, access_procedure_definition,
35300 access_definition, parameter_specification, All_Present and
35301 Constant_Present flags available on access_definition nodes.
35303 2004-03-29 Robert Dewar <dewar@gnat.com>
35305 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35306 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35307 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35308 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35309 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35310 sem_prag.adb: Updates to handle multiple units/file
35312 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35314 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35315 sem_util.adb: Minor reformatting
35317 * sem_ch12.adb: Add comment for previous change
35319 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35321 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35322 executable name when not initialized. Otherwise, use its current value.
35324 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35325 initialize it to another executable name than the current one. This
35326 allows to configure paths for an executable name (gnatmake) different
35327 from the current one (gnatdist).
35329 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35331 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35332 current unit cannot be inlined if it appears in the body of a withed
35333 unit, to avoid order of elaboration problems in gigi.
35335 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35336 information for protected (wrapper) operation as well, to simplify gdb
35339 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35340 protected body, indicate that the entity for the generated spec comes
35341 from source, to ensure that references are properly generated for it.
35342 (Build_Body_To_Inline): Do not inline a function that returns a
35345 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35346 apply convention to homonyms that are declared explicitly.
35348 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35349 that renames an equality operator and the operands are overloaded,
35350 resolve them with the declared formal types, before rewriting as an
35353 2004-03-29 GNAT Script <nobody@gnat.com>
35355 * Make-lang.in: Makefile automatically updated
35357 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35359 * memtrack.adb: Log realloc calls, which are treated as free followed
35362 2004-03-25 Vincent Celier <celier@gnat.com>
35364 * prj-makr.adb (Process_Directories): Detect when a file contains
35365 several units. Do not include such files in the config pragmas or
35366 in the naming scheme.
35368 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35369 Resolve links only when not in Trusted_Mode.
35370 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35371 Do not resolve links for the display names.
35373 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35374 resolve links when computing the display names.
35376 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35378 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35379 attribute reference does not denote a subtype, it can be any
35380 expression that has a classwide type, potentially after an implicit
35381 dereference. In particular, the prefix can be a view conversion for
35382 a classwide type (for which Is_Object_Reference holds), but it can
35383 also be a value conversion for an access-to-classwide type. In the
35384 latter case, there is an implicit dereference, and the original node
35385 for the prefix does not verify Is_Object_Reference.
35387 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35388 conversion of a discriminant-dependent component of a mutable object
35391 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35393 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35394 inherited, has convention C, and has unconstrained array parameters,
35395 place the corresponding warning on the derived type declaration rather
35396 than the original subprogram.
35398 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35399 indication on renaming declaration, if formal has a box and actual
35402 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35403 determine whether to generate an implicit or explicit reference to
35404 the renamed entity.
35406 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35407 subprogram renaming comes from a defaulted formal subprogram in an
35410 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35412 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35413 value expressions to ensure that calls within a component definition
35414 will be checked (since those are evaluated during the record type's
35417 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35419 * s-tpobop.adb: Code clean up:
35420 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35422 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35424 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35426 * Makefile.in: Clean up in the ravenscar run time.
35428 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35430 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35431 of No_Strict_Aliasing to build_pointer_type_for_mode.
35432 * utils.c (update_pointer_to): Walk pointer and ref chains.
35434 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35436 * ali.ads: Fix Comment about Dynamic_Elab.
35438 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35439 Has_RACW, Is_Generic, etc.)
35440 (Output_Object, Gnatls): Take into account ALI files not attached to
35443 2004-03-22 Vincent Celier <celier@gnat.com>
35445 * gprep.adb: Change all String_Access to Name_Id
35446 (Is_ASCII_Letter): new function
35447 (Double_File_Name_Buffer): New procedure
35448 (Preprocess_Infile_Name): New procedure
35449 (Process_Files): New procedure
35450 (Gnatprep): Check if output and input are existing directories.
35451 Call Process_Files to do the real job.
35453 2004-03-22 Robert Dewar <dewar@gnat.com>
35455 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35456 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35458 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35460 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35461 case when the source contains only comments.
35463 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35465 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35466 declaration for a child subprogram body that acts as a spec, indicate
35467 that the entity in the declaration needs debugging information.
35469 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35470 full view if the subtype is created for a constrained record component;
35471 gigi has enough information to construct the record, and there is no
35472 place in the tree for the declaration.
35474 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35475 serial number for the dummy body that is built for analysis, to avoid
35476 inconsistencies in the generation of internal names when compiling
35479 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35481 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35484 2004-03-22 GNAT Script <nobody@gnat.com>
35486 * Make-lang.in: Makefile automatically updated
35488 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35490 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35491 * trans.c (tree_transform, emit_index_check): Likewise.
35492 * utils.c (build_template): Likewise.
35493 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35494 (maybe_unconstrained_array, unchecked_convert): Likewise.
35495 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35496 (build_unary_op): Likewise.
35497 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35498 (fill_vms_descriptor): Likewise.
35499 (build_call_alloc_dealloc): Likewise.
35501 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35503 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35506 * gnat_ug.texi: Add info directory category and entry.
35507 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35508 gnat_ug_wnt.texi: Regenerate.
35510 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35512 * ada-tree.h: Update copyright notice.
35513 Minor reformatting.
35515 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35517 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35518 as regular exception objects and not as mere integers representing the
35519 condition code. The latter approach required some dynamics to mask off
35520 severity bits, which did not fit well into the GCC table based model.
35521 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35522 exception data objects. We don't it and it would conflict with the other
35523 external symbol we have to generate for such exceptions.
35525 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35526 the special code for VMS exceptions, since these are now represented
35527 as regular exceptions objects.
35529 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35531 * decl.c (debug_no_type_hash): Remove.
35532 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35533 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35535 2004-03-19 Laurent Guerby <laurent@guerby.net>
35537 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35538 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35540 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35542 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35543 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35544 (TYPE_RM_SIZE_INT): Directly use type.values.
35545 (TREE_LOOP_ID): Clean up check.
35546 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35547 TYPE_VALUES, not TYPE_FIELDS.
35548 * trans.c (convert_with_check): Delay access of bounds of basetype
35549 until sure is numeric.
35551 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35553 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35556 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35557 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35558 Specific.Set instead of direct call to e.g pthread_setspecific.
35560 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35562 * adaint.c: Update comments.
35564 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35565 GNATLIB_SHARED for FreeBSD.
35567 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35569 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35570 When needed (stack checking) the stack size is retrieved
35571 from the VxWorks kernel.
35573 * Makefile.in: Flag -nostdinc is required when building the run time
35574 for avoiding looking for files in the base compiler.
35575 Add the VxWorks specific version of the package body for
35576 System.Stack_checking.Operations (5zstchop.adb).
35578 * Make-lang.in: Add the object file for
35579 System.Stack_Checking.Operations.
35581 * Makefile.rtl: Add object file for the package
35582 System.Stack_Checking.Operations.
35584 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35586 * s-stache.ads, s-stache.adb: Move the operations related to stack
35587 checking from this package to package System.Stack_Checking.Operations.
35588 This way, stack checking operations are only linked in the final
35589 executable when using the -fstack-check flag.
35591 2004-03-18 Doug Rupp <rupp@gnat.com>
35593 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35596 * 5qsystem.ads, 5xcrtl.ads: New files.
35598 2004-03-18 Vincent Celier <celier@gnat.com>
35600 * prj.adb (Reset): Reset hash table Files_Htable
35602 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35603 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35604 the procedures Add_To_Path_File.
35605 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35606 making sure that each directory is present only once and, for object
35607 dirs, when a directory already present is added, the duplicate is
35608 removed and the directory is always put as the last in the table.
35609 Write the path files at the end of these accumulations.
35611 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35612 Files_Htable for all sources.
35614 * prj-proc.adb (Process): Remove restrictions between not directly
35615 related extending projects.
35617 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35619 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35620 (Find_Sources): Minor speed optimization.
35622 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35623 parameter Trusted_Mode.
35625 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35627 * scn.adb (Determine_License): Take into account a degenerated case
35628 when the source contains only comments.
35630 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35632 * sem_warn.adb (Check_References): For a warning on a selected
35633 component that does not come from source, locate an uninitialized
35634 component of the record type to produce a more precise error message.
35636 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35638 * 3zsoccon.ads: Fix multicast options.
35640 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35643 2004-03-15 Robert Dewar <dewar@gnat.com>
35645 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35646 pragma used for a private type.
35648 * lib-xref.adb (Generate_Reference): Do not generate warning if
35649 reference is in a different unit from the pragma Unreferenced.
35651 * 5vtpopde.adb: Minor reformatting
35652 Fix casing of To_Task_ID
35654 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35655 flag if we have an unchecked conversion to an access type in the same
35658 2004-03-15 Geert Bosch <bosch@gnat.com>
35660 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35661 imaginary parts, use Double precision throughout.
35663 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35664 we want to be able to compile run-time with -gnata for testing, but
35665 this may also be instantiated in user code that is compiled with -gnata.
35667 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35669 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35670 codes. Having a separate type for this is useful to enforce consistency
35671 throughout the various run-time units.
35672 (Exception_Data): Use Exception_Code for Import_Code.
35674 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35675 Natural and Integer in various places.
35676 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35677 with the severity bits masked off.
35678 (Register_VMS_Exception): Handle the additional exception data pointer
35681 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35682 component, now reflected by an exported accessor.
35683 (is_handled_by): New routine to compute whether the propagated
35684 occurrence matches some handler choice specification. Extracted out of
35685 get_action_description_for, and expanded to take care of the VMS
35687 (get_action_description_for): Use is_handled_by instead of an explicit
35688 complex condition to decide if the current choice at hand catches the
35689 propagated occurrence.
35691 * raise.h (Exception_Code): New type for C.
35693 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35694 System.Standard_Library.Exception_Code, to allow references from the
35695 pragma import/export expander.
35697 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35698 New accessors to allow easy access to GNAT exception data
35700 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35701 redundant Handled_By_Others component, helper for the personality
35702 routine which will now be able to call the appropriate exception data
35705 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35706 component of Standard_Exception_Type to be the closest possible to
35707 Exception_Code in System.Standard_Library, that we cannot get at this
35708 point. Expand a ??? comment to notify that this type node should
35709 probably be rewritten later on.
35711 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35712 registration call to include a pointer to the exception object in the
35715 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35716 instead of int and explicit bitmasks.
35718 2004-03-15 Vincent Celier <celier@gnat.com>
35720 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35721 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35723 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35724 longer needed now that it is in the spec of
35725 System.Tasking.Task_Attributes.
35727 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35729 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35731 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35733 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35734 taken care of in Scan_Make_Arg.
35735 (Scan_Make_Arg): Add the executable suffix only if the argument
35736 following -o, in canonical case, does not end with the executable
35737 suffix. When in verbose mode and executable file name does not end
35738 with executable suffix, output the executable name, in canonical case.
35740 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35741 to avoid warnings when instantiating Ada.Task_Attributes.
35744 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35745 in the correct order.
35747 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35748 redirect standard output and error to a file for the invocation of the
35749 compiler, then read the file.
35751 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35752 directory, instead of the Value.
35753 (Find_Source_Dirs): Remove useless code & comments.
35755 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35757 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35758 tagged type is inherited, and the parent operation is not frozen yet,
35759 force generation of a freeze node for the inherited operation, so the
35760 corresponding dispatch entry is properly initialized.
35761 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35762 when looking for user-defined equality operation.
35764 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35765 boolean when locating primitive equality of tagged component.
35767 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35768 bit-aligned field and the right-hand side a string literal, introduce
35769 a temporary before expanding assignment into a loop.
35771 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35772 priority in full, to ensure that any expanded subepxressions of it are
35773 elaborated in the scope of the init_proc.
35775 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35776 after object declaration, skipping over code that may have been
35777 generated for validity checks.
35779 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35780 discriminants, ignore the known discriminants of its full view, if
35781 any, to check legality.
35783 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35784 component if type has unknown discriminants.
35785 (Analyze_Private_Extension_Declaration): Discriminant constraint is
35786 null if type has unknown discriminants.
35788 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35789 for end label when present.
35791 * s-fileio.adb (Open): When called with a C_Stream, use given name for
35792 temporary file, rather than an empty string.
35794 2004-03-15 Ed Falis <falis@gnat.com>
35796 * s-thread.adb: Removed, no longer used.
35798 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35800 * decl.c (target.h): Now include.
35801 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35802 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35803 (validate_size): For POINTER_TYPE, get smallest size permitted on
35806 * fe.h: Sort Einfo decls and add Set_Mechanism.
35808 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35809 (ada/decl.o): Depends on target.h.
35811 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35812 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35814 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
35816 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35818 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35819 Insert_Dereference_Action when rewriting an implicit dereference into
35820 an explicit one, this will be taken care of during expansion of the
35821 explicit dereference.
35822 (Expand_N_Slice): Same. Always do the rewriting, even for the case
35823 of non-packed slices, since the dereference action generated by
35824 expansion of the explicit dereference is needed in any case.
35825 (Expand_N_Selected_Component): When rewriting an implicit dereference,
35826 analyze and resolve the rewritten explicit dereference so it is seen
35828 (Insert_Dereference_Action): This procedure is now called only for the
35829 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35830 dereferences that do not come from source (including explicit
35831 dereferences resulting from rewriting implicit ones), but do not
35832 recursively insert a check for the dereference nodes contained within
35834 (Insert_Dereference_Action): Clarify and correct comment.
35836 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
35839 Move language detection to the top level.
35840 * config-lang.in: Build by default.
35842 2004-03-05 Robert Dewar <dewar@gnat.com>
35844 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35846 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35847 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35848 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35849 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35850 unchecked conversion to spec to avoid warnings.
35852 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35855 * 7stpopsp.adb: Correct casing in To_Task_ID call
35857 * a-strsea.ads, a-strsea.adb: Minor reformatting
35859 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35861 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35862 Adjust Max_Msg_Length to be clearly large enough.
35864 * fe.h: Define In_Same_Source_Unit
35866 * osint.adb: Add pragma Warnings Off to suppress warnings
35867 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35870 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35872 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35874 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35876 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35878 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35880 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35881 node. We now do generate them for gcc back end.
35883 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35886 * sinput-c.adb: Fix bad name in header.
35887 Add pragma Warnings Off to suppress aliasing warning.
35889 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35891 * snames.h, snames.ads, snames.adb: Add entry for pragma
35892 No_Strict_Aliasing.
35894 2004-03-05 Vincent Celier <celier@gnat.com>
35896 * prj-com.ads: Add hash table Files_Htable to check when a file name
35897 is already a source of another project.
35899 * prj-nmsc.adb (Record_Source): Before recording a new source, check
35900 if its file name is not already a source of another project. Report an
35903 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35904 source file name, call gnatpp with all the sources of the main project.
35906 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35909 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35910 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35911 /RUNTIME_SYSTEM=, converted to --RTS=
35912 /NOTABS, converted to -notabs
35914 2004-03-05 Pascal Obry <obry@gnat.com>
35916 * make.adb: Minor reformatting.
35918 2004-03-05 Ed Schonberg <schonberg@gnat.com>
35920 Part of implemention of AI-262.
35921 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35923 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35926 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35927 when component type is a partially constrained class-wide subtype.
35928 (Constrain_Discriminated_Type): If parent type has unknown
35929 discriminants, a constraint is illegal, even if full view has
35931 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35932 with unknown discriminants whose full view is a discriminated record.
35934 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35935 flag, to handle properly derivations of tagged types with unknown
35937 (Analyze_Package_Spec, Analyze_Package_Body): Install
35938 Private_With_Clauses before analyzing private part or body.
35940 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35941 Has_Discriminants can be true for a given type (documentation).
35943 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
35945 * s-restri.ads: Fix license (GPL->GMGPL).
35947 * s-tassta.adb: Minor reformatting.
35949 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35950 by calls to Exit_One_ATC_Level, since additional clean up is performed
35953 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35954 by calls to Exit_One_ATC_Level, since additional clean up is performed
35957 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35959 * trans.c: Reflect GCC changes to fix bootstrap problem.
35960 Add warning for suspicious aliasing unchecked conversion.
35962 2004-03-05 GNAT Script <nobody@gnat.com>
35964 * Make-lang.in: Makefile automatically updated
35966 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
35968 * ali.adb (Read_Instantiation_Instance): Do not modify the
35969 current_file_num when reading information about instantiations, since
35970 this corrupts files in later references.
35972 2004-03-02 Vincent Celier <celier@gnat.com>
35974 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35975 before checking if it is read-only.
35977 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35978 of SRC_DIRS and eliminate duplicates.
35980 * gprcmd.adb: Replace command "path" with command "path_sep" to return
35981 the path separator.
35982 (Usage): Document path_sep
35984 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35985 C++ compiler. No need for a script.
35986 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35987 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35990 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35991 where there are Ada sources.
35992 (Set_Ada_Paths): Only add to the include path the source dirs of project
35994 (Add_To_Path): Add the Display_Values of the directories, not their
35997 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36000 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36002 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36003 Value is canonicalized.
36004 (Language_Independent_Check): Do not copy Value to Display_Value when
36005 canonicalizing Value.
36007 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36008 path to find limited with cycles.
36009 (Parse_Single_Project): Use canonical cased path to find the end of a
36012 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36014 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36015 and not a child unit.
36017 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36018 appear in a with_clause.
36020 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36021 only happen in type_annotate mode, do not try to elaborate it.
36023 * exp_util.adb (Force_Evaluation): If expression is a selected
36024 component on the left of an assignment, use a renaming rather than a
36025 temporary to remove side effects.
36027 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36028 inlined instance body, which is analyzed before the end of the
36031 2004-03-02 Robert Dewar <dewar@gnat.com>
36033 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36034 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36036 * errout.ads, errout.adb: Implement new circuit for substitution of
36039 * sem_case.adb (Analyze_Choices): Place message properly when case is
36040 a subtype reference rather than an explicit range.
36042 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36044 2004-03-02 Doug Rupp <rupp@gnat.com>
36046 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36048 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36050 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36052 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36054 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36057 2004-02-25 Robert Dewar <dewar@gnat.com>
36059 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36060 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36061 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36062 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36063 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36064 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36065 the defining instance of the type to avoid aliasing problems.
36066 Fix copyright header. Fix bad comments in package header.
36068 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36070 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36072 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36073 rewritten as references when aliased through an address clause.
36075 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36076 whether call can be interpreted as an indirect call to the result of a
36077 parameterless function call returning an access subprogram.
36079 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36082 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36083 Unlock[_Entries], since this is now done by Service_Entries directly.
36085 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36087 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36088 Requeue_Call for better code readability. Change spec and update calls:
36089 PO_Service_Entries now unlock the PO on exit.
36090 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36091 PO_Service_Entries.
36093 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36095 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36097 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36099 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36100 protected subprogram call and analyzing the result of such expanding
36101 in case when the called protected subprogram is eliminated.
36103 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36106 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36108 * Makefile.in: Clean ups.
36110 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36112 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36113 protected operations if original subprogram is flagged as eliminated.
36114 (Expand_N_Subprogram_Body): For a protected operation, create
36115 discriminals for next operation before checking whether the operation
36118 * exp_ch9.adb (Expand_N_Protected_Body,
36119 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36120 for internal protected operations if the original subprogram is
36123 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36124 declared in a single protected object.
36126 2004-02-23 Vincent Celier <celier@gnat.com>
36128 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36129 case insensitive if file names are case insensitive, instead of a
36130 standard associative array.
36132 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36133 them as case insensitive on platforms where the file names are case
36136 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36137 project file has already been parsed that canonical path are compared.
36139 2004-02-23 Robert Dewar <dewar@gnat.com>
36141 * sinput-c.ads: Correct bad unit title in header
36143 * freeze.adb: Minor reformatting
36145 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36147 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36148 nonaddressable COMPONENT_REF that is removing padding that we are
36149 taking the address of, take the address of the padded record instead
36150 if item is variable size.
36152 2004-02-20 Robert Dewar <dewar@gnat.com>
36154 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36156 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36158 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36159 itype references for the constrained designated type of a component
36160 whose base type is already frozen.
36162 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36164 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36165 avoid GCC warnings.
36167 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36169 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36170 identifier for a phantom package that rewrites the formal package
36171 declaration with a box. The Add semantic decorations for the defining
36172 identifier from the original node (that represents the formal package).
36174 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36176 * Make-lang.in (ada/stamp-sdefault): Use the top level
36179 2004-02-19 Richard Henderson <rth@redhat.com>
36181 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36183 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36185 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36186 Scan_ALI can be used for multiple ALI files without reinitializing
36189 2004-02-18 Robert Dewar <dewar@gnat.com>
36191 * debug.adb: Minor reformatting.
36193 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36195 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36196 to zero if there is an address clause.
36198 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36200 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36202 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36204 * layout.adb (Layout_Component_List): Revise generation of call to
36205 discriminant-checking function to pass selections of all of the type's
36206 discriminants rather than just the variant-controlling discriminant.
36208 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36210 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36211 fail in the current setup and triggers spurious system error messages.
36212 Pretend it occurred and failed instead.
36214 2004-02-18 Vincent Celier <celier@gnat.com>
36216 * bld.adb: Mark FLDFLAGS as saved
36217 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36218 it is not the root project. Put each directory to be
36219 extended between double quotes to prevent it to be expanded on Windows.
36220 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36221 the project file. Set them back to their initial values if they have not
36222 been set in the project file.
36224 * gprcmd.adb: (Gprdebug, Debug): New global variables
36225 (Display_Command): New procedure
36226 (Usage): Document new command "linkopts"
36227 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36228 Implement new command "linkopts"
36229 Remove quotes that may be around arguments for "extend"
36230 Always call Normalize_Pathname with arguments formatted for the platform
36232 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36233 Change @echo to @$(display) in target clean to be able to clean silently
36235 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36237 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36240 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36241 = Extending_All when current project is an extending all project.
36243 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36244 set to True only for LINK command, after Unix switch -o.
36245 (Process_Arguments): Set Output_File_Expected to True for LINK command
36246 after Unix switch -o. When Output_File_Expected is True, never add an
36247 extension to a file name.
36249 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36250 option file name, only to the --for-linker= switch.
36251 (Option_File_Name): If option file name do not end with ".opt", append
36254 2004-02-18 GNAT Script <nobody@gnat.com>
36256 * Make-lang.in: Makefile automatically updated
36258 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36260 * Make-lang.in (stamp-sdefault): Do not depend on
36263 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36265 * config-lang.in: Disable Ada by default until probe logic for
36266 a bootstrap Ada compiler can be moved to the top level configure
36269 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36271 * decl.c (components_to_record): Don't claim that the internal fields
36272 we make to hold the variant parts are semantically addressable, because
36275 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36276 adjust the comment describing the modular type form when we can use it.
36277 (Install_PAT): Account for the Esiz renaming.
36279 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36280 sc_onstack context indication before raising the exception to which
36281 the signal is mapped. Allows better handling of later signals possibly
36282 triggered by the resumed user code if the exception is handled.
36284 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36286 * 5zinit.adb: Removed, no longer used.
36288 2004-02-12 Robert Dewar <dewar@gnat.com>
36290 * ali.adb: Remove separating space between parameters on R line. Makes
36291 format consistent with format used by the binder for Set_Globals call.
36293 * atree.ads, atree.adb: Minor reformatting (new function header format)
36295 * bindgen.adb: Add Run-Time Globals documentation section containing
36296 detailed documentation of the globals passed from the binder file to
36299 * gnatls.adb: Minor reformatting
36301 * init.c (__gnat_set_globals): Add note pointing to documentation in
36304 * lib-writ.ads, lib-writ.adb: Remove separating space between
36305 parameters on R line.
36306 Makes format consistent with format used by the binder for Set_Globals
36309 * osint.ads: Add 2004 to copyright notice
36312 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36313 Noticed during code reading, documentation issue only
36315 * usage.adb: Remove junk line for obsolete C switch
36316 Noticed during code reading
36318 2004-02-12 Vincent Celier <celier@gnat.com>
36320 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36321 extend for each directory, so that multiple /** directories are
36322 extended individually.
36323 (Recursive_Process): Set the default for LANGUAGES to ada
36325 * gprcmd.adb: Define new command "ignore", to do nothing.
36326 Implement new comment "path".
36328 * Makefile.generic: Suppress output when SILENT is set
36329 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36330 used, so that the correct compiler is invoked.
36331 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36332 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36334 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36336 * Makefile.in: Clean ups and remove obsolete targets.
36338 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36340 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36341 predicate declared in exp_util.
36343 * exp_util.adb: Add comments.
36345 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36346 visibility before compiling context of the subunit.
36348 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36349 value but the name is a procedure, do not attempt to analyze as a call,
36350 in order to obtain more telling diagnostics.
36352 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36353 'Access on parameterless function calls.
36354 (Normalize_Actuals): For a parameterless function call with missing
36355 actuals, defer diagnostic until resolution of enclosing call.
36357 * sem_util.adb (Wrong_Type): If the context type is an access to
36358 subprogram and the expression is a procedure name, suggest a missing
36361 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36362 Nathanael Nerode <neroden@gcc.gnu.org>
36366 Merge with libada-branch:
36367 * config-lang.in: Build libada only when ada is built.
36369 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36371 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36372 for a tagged type, verify that both formals have the same type.
36374 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36375 temporary when the formal is an in-parameter and the actual a possibly
36378 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36379 when expansion is disabled, to ensure proper name capture with
36380 overloaded literals. Condition can be of any boolean type, resolve
36383 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36384 renaming is for a formal subprogram with a default operator name, and
36385 there is a usable operator that is visible at the point of
36388 2004-02-09 Robert Dewar <dewar@gnat.com>
36390 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36391 rewrite to ignore errors in ali files, intended to allow tools downward
36392 compatibility with new versions of ali files.
36394 * ali.ads: Add new parameter Ignore_Errors
36396 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36397 duplicating the error message giving the file with restrictions.
36399 * debug.adb: Add debug flag I for gnatbind
36401 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36402 operators for the case where the operator is a defining operator.
36404 * exp_ch3.adb: Minor reformatting (new function spec format).
36406 * exp_ch4.adb: Add comment for previous change, and make minor
36407 adjustment to loop to always check for improper loop termination.
36408 Minor reformatting throughout (new function spec format).
36410 * gnatbind.adb: Implement -di debug flag for gnatbind
36412 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36414 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36416 * lib-load.adb: Fix bad assertion.
36417 Found by testing and code reading.
36418 Minor reformatting.
36420 * lib-load.ads: Minor reformatting.
36422 * lib-writ.adb: There is only one R line now.
36424 * lib-writ.ads: Add documentation on making downward compatible changes
36425 to ali files so old tools work with new ali files.
36426 There is only one R line now.
36427 Add documentation on format incompatibilities (with special GPS note)
36429 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36431 * par-load.adb: Minor reformatting
36433 * sem_ch8.adb: Fix to error message from last update
36434 Minor reformatting and restructuring of code from last update
36436 * par-prag.adb, snames.adb, snames.ads, snames.h,
36437 sem_prag.adb: Implement pragma Profile.
36439 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36442 * usage.adb: Add line for -gnatyN switch
36444 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36446 2004-02-09 Albert Lee <lee@gnat.com>
36448 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36450 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36452 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36455 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36456 is nested in an instance that is not frozen yet, to avoid
36457 order-of-elaboration problems in gigi.
36459 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36460 body the attribute is legal.
36462 2004-02-09 Robert Dewar <dewar@gnat.com>
36464 * s-rident.ads: Minor comment correction
36466 * targparm.adb: Remove dependence on uintp completely. There was
36467 always a bug in Make in that it called Targparm before initializing
36468 the Uint package. The old code appeared to get away with this, but
36469 the new code did not! This caused an assertion error in gnatmake.
36471 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36472 are indeed fully supported.
36474 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36476 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36478 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36480 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36481 with targetm.calls.promote_prototypes.
36483 2004-02-04 Robert Dewar <dewar@gnat.com>
36485 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36486 ali.ads, gprcmd.adb: Minor reformatting
36488 * bindgen.adb: Output restrictions string for new style restrictions
36491 * impunit.adb: Add s-rident.ads (System.Rident) and
36492 s-restri (System.Restrictions)
36494 * lib-writ.adb: Fix bug in writing restrictions string (last few
36497 * s-restri.ads, s-restri.adb: Change name Restrictions to
36498 Run_Time_Restrictions to avoid conflict with package name.
36499 Add circuit to read and acquire run time restrictions.
36501 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36503 * restrict.ads, restrict.adb: Use the new restriction
36504 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36506 * sem_prag.adb: No_Task_Attributes is a synonym of
36507 No_Task_Attributes_Package.
36509 * snames.ads, snames.adb: New entry for proper handling of
36510 No_Task_Attributes.
36512 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36513 (AI-00249) that supersedes the GNAT specific restriction
36514 No_Task_Attributes.
36516 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36519 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36520 body, an identifier may be wrapped in an unchecked conversion.
36522 2004-02-04 Vincent Celier <celier@gnat.com>
36524 * lib-writ.ads: Comment update for the W lines
36526 * bld.adb: (Expression): An empty string list is static
36528 * fname-uf.adb: Minor comment update
36530 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36532 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36533 restrictions on the target.
36535 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36537 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36540 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36542 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36544 2004-02-02 Vincent Celier <celier@gnat.com>
36546 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36547 comment before the usage.
36548 Gprcmd: Fail when command is not recognized.
36549 (Usage): Document command "prefix"
36551 * g-md5.adb (Digest): Process last block.
36552 (Update): Do not process last block. Store remaining characters and
36555 * g-md5.ads (Update): Document that several call to update are
36556 equivalent to one call with the concatenated string.
36557 (Context): Add fields to allow new Update behaviour.
36559 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36560 defaulted to False.
36561 When May_Fail is True and no existing file can be found, return No_File.
36563 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36566 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36567 spec file name instead on the W line.
36569 2004-02-02 Robert Dewar <dewar@gnat.com>
36571 * ali.adb: Read and acquire info from new format restrictions lines
36573 * bcheck.adb: Add circuits for checking restrictions with parameters
36575 * bindgen.adb: Output dummy restrictions data
36576 To be changed later
36578 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36579 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36580 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36581 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36582 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36584 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36585 the warning message on access to possibly uninitialized variable S)
36586 Minor changes for new restrictions handling.
36588 * gnatbind.adb: Minor reformatting
36589 Minor changes for new restrictions handling
36590 Move circuit for -r processing here from bcheck (cleaner)
36592 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36594 * lib-writ.adb: Output new format restrictions lines
36596 * lib-writ.ads: Document new R format lines for new restrictions
36599 * s-restri.ads/adb: New files
36601 * Makefile.rtl: Add entry for s-restri.ads/adb
36603 * par-ch3.adb: Fix bad error messages starting with upper case letter
36606 * restrict.adb: Major rewrite throughout for new restrictions handling
36607 Major point is to handle restrictions with parameters
36609 * restrict.ads: Major changes in interface to handle restrictions with
36610 parameters. Also generally simplifies setting of restrictions.
36612 * snames.ads/adb: New entry for proper handling of No_Requeue
36614 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36615 restriction counting.
36616 Other minor changes for new restrictions handling
36618 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36619 Restriction_Warnings now allows full parameter notation
36620 Major rewrite of Restrictions for new restrictions handling
36622 2004-02-02 Javier Miranda <miranda@gnat.com>
36624 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36625 syntax rule for object renaming declarations.
36626 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36627 component definitions.
36629 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36631 (Array_Type_Declaration): Give support to access components. In addition
36632 it was also modified to reflect the name of the object in anonymous
36633 array types. The old code did not take into account that it is possible
36634 to have an unconstrained anonymous array with an initial value.
36635 (Check_Or_Process_Discriminants): Allow access discriminant in
36637 (Process_Discriminants): Allow access discriminant in non-limited types
36638 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36639 node. Change Ada0Y to Ada 0Y in comments
36641 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36642 equality operators.
36643 Change Ada0Y to Ada 0Y in comments
36645 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36646 renamings Change Ada0Y to Ada 0Y in comments
36648 * sem_type.adb (Find_Unique_Type): Give support to the equality
36649 operators for universal access types
36650 Change Ada0Y to Ada 0Y in comments
36652 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36654 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36656 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36657 Change Ada0Y to Ada 0Y in comments
36659 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36660 component definition and object renaming nodes
36661 Change Ada0Y to Ada 0Y in comments
36663 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36665 * restrict.adb: Use the new restriction identifier
36666 No_Requeue_Statements instead of the old No_Requeue for defining the
36667 restricted profile.
36669 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36670 No_Requeue_Statements.
36672 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36673 that supersedes the GNAT specific restriction No_Requeue. The later is
36674 kept for backward compatibility.
36676 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36678 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36679 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36680 pragma and fix incorrect ones.
36682 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36683 warning if the pragma is redundant.
36685 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36687 * 5staprop.adb: Add missing 'constant' keywords.
36689 * Makefile.in: use consistent value for SYMLIB on
36690 platforms where libaddr2line is supported.
36692 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36694 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36697 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36699 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36700 handlers in the environment thread. This allows proper propagation of
36701 an exception on stack overflows in this thread even when the builtin
36702 ABI stack-checking scheme is used without support for a stack reserve
36705 * utils.c (create_field_decl): Augment the head comment about bitfield
36706 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36707 here, because the former is not accurate enough at this point.
36708 Let finish_record_type decide instead.
36709 Don't make a bitfield if the field is to be addressable.
36710 Always set a size for the field if the record is packed, to ensure the
36711 checks for bitfield creation are triggered.
36712 (finish_record_type): During last pass over the fields, clear
36713 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36714 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36715 from DECL_BIT_FIELD.
36717 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36719 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36720 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36721 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36723 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36725 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36727 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36728 (ZCX_By_Default): Likewise.
36729 (Front_End_ZCX_Support): Likewise.
36731 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36732 (Initialize_Lock): Mark Level unreferenced.
36733 (Sleep): Mark Reason unreferenced.
36734 (Timed_Sleep): Likewise.
36735 (Wakeup): Likewise.
36736 (Exit_Task): Use Result.
36737 (Check_No_Locks): Mark Self_ID unreferenced.
36739 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36740 (Bound_Thread_Attributes): Make Sproc constant.
36741 (New_Bound_Thread_Attributes): Likewise.
36743 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36745 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36746 one-dimensional array an slice assignments, when component type is
36749 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36750 component type is controlled, and control_actions are in effect, use
36751 TSS procedure rather than generating inline code.
36753 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36754 arrays with controlled components.
36756 2004-01-26 Vincent Celier <celier@gnat.com>
36758 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36759 command line for the non VMS case.
36761 * gnatlink.adb (Process_Binder_File): When building object file, if
36762 GNU linker is used, put all object paths between quotes, to prevent ld
36763 error when there are unusual characters (such as '!') in the paths.
36765 * Makefile.generic: When there are sources in Ada and the main is in
36766 C/C++, invoke gnatmake with -B, instead of -z.
36768 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36769 from VMS_Conversion.
36770 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36771 specification of argument file on the command line.
36773 2004-01-26 Bernard Banner <banner@gnat.com>
36775 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36777 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36779 * snames.adb: Update copyright notice.
36780 Add info on slice assignment for controlled arrays.
36782 2004-01-23 Robert Dewar <dewar@gnat.com>
36784 * exp_aggr.adb: Minor reformatting
36786 * exp_ch9.adb: Minor code clean up
36788 Fix bad character in comment
36791 * targparm.adb (Get_Target_Parameters): Give clean abort error on
36792 unexpected end of file, along with more detailed message.
36794 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36796 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36799 * decl.c (copy_alias_set): New function.
36800 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36802 2004-01-23 Doug Rupp <rupp@gnat.com>
36804 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36805 lib$${file} in case subsequent character is not a separator.
36807 2004-01-23 Vincent Celier <celier@gnat.com>
36809 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36810 when the GCC version is at least 3.
36812 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36813 Remove all "Opt.", to prepare for opt split
36815 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36816 Extends_All. Set to True when the project parsed is an extending all
36817 project. Fails for importing an extending all project only when the
36818 imported project is an extending all project.
36819 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36820 depending on the value of Extends_All returned.
36822 * prj-proc.adb (Process): Check that no project shares its object
36823 directory with a project that extends it, directly or indirectly,
36824 including a virtual project.
36825 Check that no project extended by another project shares its object
36826 directory with another also extended project.
36828 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36829 Kind = N_With_Clause
36831 * prj-tree.ads: Minor reformatting
36832 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36834 2004-01-23 Ed Schonberg <schonberg@gnat.com>
36836 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36837 applies to a type with an incomplete view, use full view in Name of
36838 clause, for consistency with uses of Get_Attribute_Definition_Clause.
36840 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
36842 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36843 SCHED_RR, since other values are not supported by this policy.
36844 (Initialize): Move initialization of mutex attribute to package
36845 elaboration, to prevent early access to this variable.
36847 * Makefile.in: Remove mention of Makefile.adalib, unused.
36849 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36850 1ssecsta.ads: Removed, unused.
36852 2004-01-21 Javier Miranda <miranda@gnat.com>
36854 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36855 entity if already built in the current scope.
36857 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36858 reminder in internal scopes. Required for nested limited aggregates.
36860 2004-01-21 Doug Rupp <rupp@gnat.com>
36862 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36863 VMS. Replace all occurences of libgnat- and libgnarl- with
36864 libgnat$(hyphen) and libgnarl$(hyphen).
36865 Fixed shared library build problem on VMS.
36867 2004-01-21 Robert Dewar <dewar@gnat.com>
36869 * mlib-prj.adb: Minor reformatting
36871 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
36873 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36874 'constant' keywords for declaration of pointers that are not modified.
36876 * exp_pakd.adb: Fix English in comment.
36878 2004-01-21 Ed Schonberg <schonberg@gnat.com>
36881 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36882 copy all attributes of the parent, including the foreign language
36885 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
36888 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36889 for 'delay until' statement.
36891 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
36893 * Make-lang.in: Replace $(docdir) with doc.
36894 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36895 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36896 to use consistent MAKEINFO rule.
36897 (ada.man, ada.srcman): Dummy entry.
36898 (ADA_INFOFILES): Define.
36899 (ada.info, ada.srcinfo): New rules.
36901 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
36903 * utils.c: Update copyright notice, missed in previous change.
36905 2004-01-19 Vincent Celier <celier@gnat.com>
36907 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36908 args if Bind is True. Set First_ALI, if not already done.
36909 (Build_Library): For Stand Alone Libraries, extract from one ALI file
36910 an eventual --RTS switch, for gnatbind, and all backend switches +
36911 --RTS, for linking.
36913 2004-01-19 Robert Dewar <dewar@gnat.com>
36915 * sem_attr.adb, memtrack.adb: Minor reformatting
36917 2004-01-19 Ed Schonberg <schonberg@gnat.com>
36919 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36920 that rename enumeration literals. This is properly done in sem_eval.
36922 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36923 to functions that rename enumeration literals.
36925 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36926 functions that rename enumeration literals.
36928 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
36930 * Make-lang.in (utils.o): Depend on target.h.
36931 * utils.c: Include target.h.
36932 (process_attributes): Use targetm.have_named_sections instead
36933 of ASM_OUTPUT_SECTION_NAME.
36935 2004-01-16 Andreas Jaeger <aj@suse.de>
36937 * Makefile.in: Add $(DESTDIR).
36939 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
36941 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36942 also when not defining if a Size clause applies. That information is
36945 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
36947 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36948 symbolic links for the shared gnat run time when needed.
36950 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
36952 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36953 for writing, and terminate with an error message if not.
36955 2004-01-15 Ed Schonberg <schonberg@gnat.com>
36957 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36958 warning on an access to subprogram in an instance, when the target
36959 type is declared in the same generic unit.
36960 (Eval_Attribute): If 'access is known to fail accessibility check,
36961 rewrite as a raise statement.
36963 2004-01-15 GNAT Script <nobody@gnat.com>
36965 * Make-lang.in: Makefile automatically updated
36967 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
36969 * Make-lang.in (ada.srcextra): Dummy entry.
36971 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
36973 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36975 2004-01-13 Ed Schonberg <schonberg@gnat.com>
36977 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36978 components that are initialized with aggregates.
36980 2004-01-13 Vincent Celier <celier@gnat.com>
36982 * gnatlink.adb (Process_Binder_File): To find directory of shared
36983 libgcc, if "gcc-lib" is not a subdirectory, look for the last
36984 subdirectory "lib" in the path of the shared libgnat or libgnarl.
36986 * make.adb (Gnatmake): If GCC version is at least 3, link with
36987 -shared-libgcc, when there is at least one shared library project.
36989 * opt.ads (GCC_Version): New integer constant.
36991 * adaint.c (get_gcc_version): New function.
36993 2004-01-13 Robert Dewar <dewar@gnat.com>
36995 * sem_dist.adb, sem_res.adb, sem_util.adb,
36996 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36997 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36999 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37001 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37002 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37005 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37007 * misc.c: Remove trailing spaces.
37008 Update copyright notice missed in previous change.
37011 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37014 * Makefile.generic: Update copyright.
37015 Add license notice.
37017 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37018 of prefix/share/make.
37020 * Makefile.prolog: Update copyright.
37021 Add license notice.
37023 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37025 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37026 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37027 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37030 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37033 2004-01-12 Javier Miranda <miranda@gnat.com>
37035 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37036 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37037 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37038 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37039 Component_Definition node.
37041 2004-01-12 Ed Falis <falis@gnat.com>
37043 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37045 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37047 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37049 2004-01-12 Bernard Banner <banner@gnat.com>
37051 * Makefile.in: map 86numaux to a-numaux for x86_64
37053 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37055 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37056 generated to rename a generic actual, go to the actual itself, the
37057 subtype is not a user-visible entity.
37059 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37060 part is a private subtype, reset the visibility of its full view, if
37061 any, to be consistent.
37064 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37065 to use a generic package G as a formal package for another generic
37068 2004-01-12 Robert Dewar <dewar@gnat.com>
37070 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37072 * usage.adb: Remove mention of obsolete -gnatwb switch
37073 Noticed during code reading
37075 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37077 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37079 2004-01-12 GNAT Script <nobody@gnat.com>
37081 * Make-lang.in: Makefile automatically updated
37083 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37085 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37087 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37089 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37091 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37093 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37094 Update comment and copyright date.
37095 * stamp-xgnatug: Delete.
37097 2004-01-05 Robert Dewar <dewar@gnat.com>
37099 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37100 be modified by the binder generated main program if the -D switch is
37103 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37104 imported functions (since now we expect this to be done for imported
37107 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37108 Minor reformatting throughout
37110 * 5zinit.adb: Minor reformatting
37111 Add 2004 to copyright date
37112 Minor changes to avoid -gnatwa warnings
37113 Correct some instances of using OR instead of OR ELSE (noted while
37114 doing reformatting)
37116 * sprint.adb: Minor updates to avoid -gnatwa warnings
37118 * s-secsta.ads, s-secsta.adb:
37119 (SS_Get_Max): New function to obtain high water mark for ss stack
37120 Default_Secondary_Stack is not a constant since it may be modified by
37121 the binder generated main program if the -D switch is used.
37123 * switch-b.adb: New -Dnnn switch for binder
37126 Make -gnatg imply all warnings currently in -gnatwa
37128 * vms_conv.adb: Minor reformatting
37129 Add 2004 to copyright notice
37130 Add 2004 to printed copyright notice
37132 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37133 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37134 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37135 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37136 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37137 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37138 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37139 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37140 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37141 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37142 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37143 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37144 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37145 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37146 checks.adb, clean.adb, cstand.adb, einfo.ads,
37147 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37148 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37149 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37150 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37151 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37152 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37153 Minor reformatting and code clean ups.
37154 Minor changes to prevent -gnatwa warnings
37156 * ali.adb: Minor reformatting and cleanup of code
37157 Acquire new SS indication of secondary stack use from ali files
37159 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37160 (since now we expect this to be done for imported functions)
37162 * bindgen.adb: Generate call to modify default secondary stack size if
37165 * bindusg.adb: Add line for new -D switch
37167 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37168 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37169 Add circuitry for both records and arrays to avoid gigi
37170 processing if the type involved has non-bit-aligned components
37172 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37173 N_String_Literal node always references an E_String_Literal_Subtype
37174 entity. This may not be true in the future.
37175 (Possible_Bit_Aligned_Component): Move processing of
37176 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37178 * exp_ch6.adb (Expand_Thread_Body): Pick up
37179 Default_Secondary_Stack_Size as variable so that we get value modified
37180 by possible -Dnnn binder parameter.
37182 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37183 (Type_May_Have_Bit_Aligned_Components): New function.
37185 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37186 (Type_May_Have_Bit_Aligned_Components): New function.
37188 * fe.h: (Set_Identifier_Casing): Fix prototype.
37189 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37190 Minor reformatting.
37192 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37193 importing constant atomic/volatile objects.
37194 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37195 unless explicit Pure_Function pragma given, to avoid insidious bug of
37196 call to non-pure imported function getting eliminated.
37198 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37199 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37200 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37201 Add 2004 to printed copyright notice
37203 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37206 * Makefile.rtl: Add entry for g-sestin.o
37207 g-sestin.ads: New file.
37209 * mdll.adb: Minor changes to avoid -gnatwa warnings
37211 * mlib-tgt.adb: Minor reformatting
37213 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37214 New switch Sec_Stack_Used (GNAT, GNATBIND)
37215 Make Default_Secondary_Stack_Size a variable instead of a constant,
37216 so that it can be modified by the new -Dnnn bind switch.
37218 * rtsfind.adb (Load_Fail): Give full error message in configurable
37219 run-time mode if all_errors mode is set. This was not done in the case
37220 of a file not found, which was an oversight.
37221 Note if secondary stack unit is used by compiler.
37223 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37224 ineffective elaborate all pragmas on non-visible packages (this
37225 happened when a renamed subprogram was called). Now the elaborate all
37226 always goes on the package containing the renaming rather than the one
37227 containing the renamed subprogram.
37229 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37230 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37232 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37233 has an Etype that references an E_String_Literal.
37234 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37235 always references an E_String_Literal_Subtype entity. This may not
37236 be true in the future.
37238 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37241 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37244 2004-01-05 Ed Falis <falis@gnat.com>
37246 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37249 2004-01-05 Vincent Celier <celier@gnat.com>
37251 * bld.adb: Minor comment updates
37252 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37255 * make.adb (Gnatmake): Special process for files to compile/check when
37256 -B is specified. Fail when there are only foreign mains in attribute
37257 Main of the project file and -B is not specified. Do not skip bind/link
37258 steps when -B is specified.
37260 * makeusg.adb: Document new switch -B
37262 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37264 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37266 * vms_data.ads: Add new GNAT PRETTY qualifier
37267 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37269 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37271 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37274 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37275 Set_Identifier_Casing.
37277 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37278 has size that overflows.
37280 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37282 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37283 -gnatwa warning on static condition.
37285 2004-01-05 Doug Rupp <rupp@gnat.com>
37287 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37289 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37291 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37292 all attributes, including read-only attribute.
37294 2004-01-05 Pascal Obry <obry@gnat.com>
37296 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37297 library naming scheme.
37299 * mlib-prj.adb (Build_Library): Generate different names for the static
37300 or dynamic version of the GNAT runtime. This is needed to support the
37301 new shared library naming scheme.
37302 (Process_Binder_File): Add detection of shared library in binder file
37303 based on the new naming scheme.
37305 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37306 scheme for the shared runtime libraries.
37309 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37311 (install-gnatlib): Do not create symlinks for shared libraries.
37312 (gnatlib-shared-default): Idem.
37313 (gnatlib-shared-dual-win32): New target. Not used for now as the
37314 auto-import feature does not support arrays/records.
37315 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37316 (gnatlib-shared-vms): Fix shared runtime libraries names.
37318 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37319 dependent runtime shared library name.
37321 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37323 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37326 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37328 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37329 protected objects when allocator has a subtype indication, not a
37330 qualified expression. Note that qualified expressions may have to be
37331 checked when limited aggregates are implemented.
37333 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37334 pure, emit warning.
37335 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37336 subprogram is imported, remove warning.
37338 2004-01-05 Geert Bosch <bosch@gnat.com>
37340 * s-poosiz.adb: Update copyright notice.
37341 (Allocate): Use Task_Lock to protect against concurrent access.
37342 (Deallocate): Likewise.
37344 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37346 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37349 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37351 * gnat_ug.texi: Force a CVS commit by updating copyright.
37352 * gnat_ug_vxw.texi: Regenerate.
37353 * gnat_ug_wnt.texi: Regenerate.
37354 * gnat_ug_vms.texi: Regenerate.
37355 * gnat_ug_unx.texi: Regenerate.
37357 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37359 * trans.c: Remove uses of "register" specifier in
37360 declarations of local variables.
37362 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37364 * stamp-xgnatug: New stamp file.
37365 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37366 (ada/doctools/xgnatug): Add $(build_exeext).
37367 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37368 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37370 2003-12-17 Ed Falis <falis@gnat.com>
37372 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37375 * a-exextr.adb: Add context clause for
37376 Ada.Exceptions.Last_Chance_Handler.
37378 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37380 * cstand.adb (Create_Standard): Change the way how the declaration of
37381 the Duration type is created (making it the same way as it is for all
37382 the other standard types).
37384 2003-12-17 Robert Dewar <dewar@gnat.com>
37386 * s-crtl.ads: Fix header format
37387 Change Pure to Preelaborate
37389 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37391 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37392 the expression type only if it is declared in the current unit.
37394 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37395 are universal and already analyzed, as can occur in constrained
37396 subcomponents that depend on discriminants, when one constraint is a
37399 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37400 type Any_Fixed is legal as the argument of a conversion, if only one
37401 fixed-point type is in context.
37403 2003-12-17 GNAT Script <nobody@gnat.com>
37405 * Make-lang.in: Makefile automatically updated
37407 2003-12-15 Robert Dewar <dewar@gnat.com>
37409 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37412 2003-12-15 Vincent Celier <celier@gnat.com>
37414 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37415 (Gnatchop): Do not set failure status when reporting the number of
37418 2003-12-15 Doug Rupp <rupp@gnat.com>
37420 * s-ctrl.ads: New file.
37422 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37424 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37425 (GNATBIND_OBJS): Add ada/s-crtl.o.
37427 * Makefile.in [VMS]: Clean up ifeq rules.
37429 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37430 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37431 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37432 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37433 s-tasdeb.adb: Update copyright.
37434 Import System.CRTL.
37435 Make minor modifications to use System.CRTL declared functions instead
37436 of importing locally.
37438 2003-12-15 GNAT Script <nobody@gnat.com>
37440 * Make-lang.in: Makefile automatically updated
37442 2003-12-11 Ed Falis <falis@gnat.com>
37444 * 5zinit.adb: Clean up.
37446 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37447 to __gnat_map_signal, imported from init.c to support
37448 signal -> exception mappings that depend on the vxWorks version.
37451 Created and exported __gnat_map_signal to support signal -> exception
37452 mapping that is dependent on the VxWorks version.
37453 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37455 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37457 * 5wosinte.ads: Link with -mthreads switch.
37459 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37461 * init.c (__gnat_install_handler [NetBSD]): Set
37462 __gnat_handler_installed, as done on all other platforms.
37463 Remove duplicated code.
37465 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37467 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37469 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37471 * sinfo.ads: Fix inconsistent example code in comment.
37473 2003-12-11 Robert Dewar <dewar@gnat.com>
37475 * a-tiinau.adb: Add a couple of comments
37477 * sem_ch3.adb: Minor reformatting
37480 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37481 Minor reformatting throughout
37483 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37485 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37486 bounds of a loop, create a separate block in order to generate proper
37487 cleanup actions to prevent memory leaks.
37489 * sem_res.adb (Resolve_Call): After a call to
37490 Establish_Transient_Scope, the call may be rewritten and relocated, in
37491 which case no further processing is needed.
37493 * sem_util.adb: (Wrong_Type): Refine previous fix.
37494 Fixes ACATS regressions.
37497 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37500 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37502 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37503 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37506 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37509 2003-12-08 Robert Dewar <dewar@gnat.com>
37511 * 7sintman.adb: Minor reformatting
37513 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37514 standard linker options to get standard libraries linked. We now plan
37515 to provide dummy versions of these libraries to match the appropriate
37516 configurable run-time (e.g. if a library is not needed at all, provide
37517 a dummy empty library).
37519 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37520 options (-L parameters and standard libraries). What we plan to do is
37521 to provide dummy libraries where the libraries are not required.
37523 * gnatbind.adb: Minor comment improvement
37525 2003-12-08 Javier Miranda <miranda@gnat.com>
37527 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37528 aggregate in the parent. Otherwise constants with limited aggregates
37529 are not supported. Add new formal to pass the component type (Ctype).
37530 It is required to call the corresponding IP subprogram in case of
37531 default initialized components.
37532 (Gen_Assign): In case of default-initialized component, generate a
37533 call to the IP subprogram associated with the component.
37534 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37535 of aggregate with default initialized components.
37536 (Has_Default_Init_Comps): Improve implementation to recursively check
37537 all the present expressions.
37539 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37540 to indicate that the initialization call corresponds to a
37541 default-initialized component of an aggregate.
37542 In case of default initialized aggregate with tasks this parameter is
37543 used to generate a null string (this is just a workaround that must be
37544 improved later). In case of discriminants, this parameter is used to
37545 generate a selected component node that gives access to the discriminant
37548 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37549 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37550 allocated aggregates with default-initialized components.
37552 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37553 the box notation is used in positional aggregates.
37555 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37557 * lib.ads: Fix typo in comment
37559 2003-12-08 Vincent Celier <celier@gnat.com>
37561 * prj.adb (Project_Empty): New component Unkept_Comments
37562 (Scan): Remove procedure; moved to Prj.Err.
37564 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37565 (Scan): Remove procedure; moved to Prj.Err.
37567 * prj-dect.adb: Manage comments for the different declarations.
37569 * prj-part.adb (With_Record): New component Node
37570 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37571 Set the scanner to return ends of line and comments as tokens, if
37572 Store_Comments is True.
37573 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37574 comments are associated with these nodes. Store the node IDs in the
37576 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37578 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37579 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37580 current project. Call Tree.Restore afterwards. Set the various nodes
37581 for comment storage (Next_End, End_Of_Line, Previous_Line,
37584 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37585 defaulted to False.
37587 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37588 to False. When Truncated is True, truncate the string, never go to the
37590 (Write_End_Of_Line_Comment): New procedure
37591 (Print): Process comments for nodes N_With_Clause,
37592 N_Package_Declaration, N_String_Type_Declaration,
37593 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37594 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37595 Process nodes N_Comment.
37597 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37598 without comments and there are some comments, set the flag
37599 Unkept_Comments to True.
37600 (Scan): If there are comments, set the flag Unkept_Comments to True and
37601 clear the comments.
37602 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37603 (Next_End_Nodes: New table
37604 (Comment_Zones_Of): New function
37605 (Scan): New procedure; moved from Prj. Accumulate comments in the
37606 Comments table and set end of line comments, comments after, after end
37608 (Add_Comments): New procedure
37609 (Save, Restore, Seset_State): New procedures
37610 (There_Are_Unkept_Comments): New function
37611 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37612 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37614 (First_Comment_After, First_Comment_After_End): New functions
37615 (First_Comment_Before, First_Comment_Before_End): New functions
37616 (Next_Comment): New function
37617 (End_Of_Line_Comment, Follows_Empty_Line,
37618 Is_Followed_By_Empty_Line): New functions
37619 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37620 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37621 (Set_Next_Comment): New procedure
37622 (Default_Project_Node): Associate comment before if the node can store
37625 * scans.ads (Token_Type): New enumeration value Tok_Comment
37626 (Comment_Id): New global variable
37628 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37629 defaulted to False.
37630 (Scan): Store position of start of comment. If comments are tokens, set
37631 Comment_Id and set Token to Tok_Comment when scanning a comment.
37632 (Set_Comment_As_Token): New procedure
37634 * sinput-p.adb: Update Copyright notice
37635 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37636 that no longer exists.
37638 2003-12-08 Javier Miranda <miranda@gnat.com>
37640 * sem_aggr.adb: Add dependence on Exp_Tss package
37641 Correct typo in comment
37642 (Resolve_Aggregate): In case of array aggregates set the estimated
37643 type of the aggregate before calling resolve. This is needed to know
37644 the name of the corresponding IP in case of limited array aggregates.
37645 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37646 in case of default initialized array components.
37648 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37649 types. Required to give support to limited aggregates in generic
37652 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37654 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37655 inlined body functions like an instantiation.
37656 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37657 until bounds are analyzed, to diagnose premature use of type.
37659 * sem_util.adb (Wrong_Type): Improve error message when the type of
37660 the expression is used prematurely.
37662 2003-12-08 GNAT Script <nobody@gnat.com>
37664 * Make-lang.in: Makefile automatically updated
37666 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37668 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37669 they are automatically generated by Make-lang.in and cause nothing but
37670 maintenance troubles.
37672 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37674 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37675 version of this unit).
37677 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37679 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37680 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37681 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37682 the body of System.Interrupt_Management common to several targets.
37683 Update copyright notice when appropriate.
37685 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37688 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37689 to ensure that the kernel fills in the interrupted context structure
37690 before calling a signal handler, which is necessary to be able to
37691 unwind past it. Update the copyright notice.
37693 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37695 * a-elchha.ads: New file.
37697 * a-elchha.adb: New default last chance handler. Contents taken from
37698 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37700 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37701 is moved to a-elchha.adb to provide a target-independent default last
37704 * Makefile.rtl: Add a-elchha.o
37706 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37708 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37710 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37711 declared in an instance, do not inline the call if the instance is not
37712 frozen yet, to prevent order of elaboration problems.
37714 * sem_prag.adb: Add comments for previous fix.
37716 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37718 * g-table.adb: Use the right variable in Set_Item.
37719 Update copyright notice.
37721 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37723 * Makefile.in: Remove unused rules.
37725 2003-12-05 Vincent Celier <celier@gnat.com>
37727 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37728 -nostdlib. Not needed here after all.
37730 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37733 * adaint.h, adaint.c, g-os_lib.ads:
37734 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37735 on some platforms (including FreeBSD), it is a 64 bit value.
37736 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37738 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37740 * gnatvsn.ads (Library_Version): Now contain only the relevant
37742 (Verbose_Library_Version): New constant.
37744 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37745 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37746 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37748 * gnatlbr.adb: Clean up: replace Library_Version by
37749 Verbose_Library_Version.
37751 * make.adb, lib-writ.adb, exp_attr.adb:
37752 Clean up: replace Library_Version by Verbose_Library_Version.
37754 * 5lintman.adb: Removed.
37757 Update and simplify computation of LIBRARY_VERSION.
37758 Fix computation of GSMATCH_VERSION.
37759 5lintman.adb is no longer used: replaced by 7sintman.adb.
37761 2003-12-03 Robert Dewar <dewar@gnat.com>
37764 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37765 name. Modified to consider small non-bit-packed arrays as troublesome
37766 and in need of component-by-component assigment expansion.
37768 2003-12-03 Vincent Celier <celier@gnat.com>
37770 * lang-specs.h: Process nostdlib as nostdinc
37772 * back_end.adb: Update Copyright notice
37773 (Scan_Compiler_Arguments): Process -nostdlib directly.
37775 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
37778 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37779 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37780 included in HIE_NONE_TARGET_PAIRS.
37782 2003-12-03 Ed Schonberg <schonberg@gnat.com>
37785 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37786 is legal in an instance, because legality is cheched in the template.
37789 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37790 appplied to an unchecked conversion of a formal parameter.
37793 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37796 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
37798 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37799 routines. The second one is new functionality to deal with backtracing
37800 through signal handlers.
37801 (unwind): Split into the two separate subroutines above.
37802 Update the documentation, and deal properly with sizeof (REG) different
37803 from sizeof (void*).
37805 2003-12-01 Nicolas Setton <setton@act-europe.fr>
37807 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37808 so that the debugger can reliably access the value of the parameter,
37809 and therefore is able to display the exception name when an exception
37810 breakpoint is reached.
37812 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
37814 * fmap.adb: Fix typo in warning message.
37816 * g-socket.ads, g-socket.adb: Make Free a visible instance of
37817 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37819 2003-12-01 Vincent Celier <celier@gnat.com>
37821 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37823 (Build_Library): Get the switches only if Default_Switches is declared
37826 2003-12-01 Ed Schonberg <schonberg@gnat.com>
37828 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37829 actuals that are indexed components, reanalyze actual to ensure that
37830 packed array references are properly expanded.
37832 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37833 attempted assignment to a discriminant.
37835 2003-12-01 Robert Dewar <dewar@gnat.com>
37837 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37840 * switch-c.adb: Minor reformatting of comments
37842 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37844 * Makefile.in: Clean ups.
37846 2003-12-01 GNAT Script <nobody@gnat.com>
37848 * Make-lang.in: Makefile automatically updated
37850 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37852 * 5wsystem.ads: Disable zero cost exception, not ready yet.
37854 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
37856 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37857 to force serialization.
37859 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
37861 * g-socket.ads, g-socket.adb:
37862 Clarify documentation of function Stream. Introduce a Free procedure
37863 to release the returned Stream once it becomes unused.
37865 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37867 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
37869 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37870 since NT 4 cannot handle timeout values that are too large,
37871 e.g. DWORD'Last - 1.
37873 2003-11-26 Ed Schonberg <schonberg@gnat.com>
37876 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37877 in procedure calls and whose expansion must be deferred.
37879 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37883 (Build_Derived_Array_Type): Create operator for unconstrained type
37884 if ancestor is unconstrained.
37886 2003-11-26 Vincent Celier <celier@gnat.com>
37888 * make.adb (Project_Object_Directory): New global variable
37889 (Change_To_Object_Directory): New procedure
37890 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37891 of Change_Dir directly. Do not change working directory to object
37892 directory of main project after each compilation.
37893 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37895 Change to object directory of main project before binding step.
37896 (Initialize): Initialize Project_Object_Directory to No_Project
37899 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37900 binding a Stand-Alone Library.
37902 * output.adb: Update Copyright notice
37903 (Write_Char): Output buffer when full
37905 2003-11-26 Robert Dewar <dewar@gnat.com>
37907 * sem_ch13.adb: (Check_Size): Reset size if size is too small
37910 (Check_Size): Fix documentation to include bit-packed array case
37912 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37914 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37916 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37918 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
37921 * utils.c (init_gigi_decls): Change name of built-in setjmp to
37922 __builtin_setjmp, since this is apparently needed by recent
37925 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37927 * adadecode.c: Only include ctype.h if not IN_GCC.
37928 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37930 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
37933 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37934 signals and interrupts.
37936 * 5zintman.ads: New File.
37938 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37939 add exception signals to the set of unmasked signals.
37942 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37943 between signals and interrupts.
37944 Add to Unblocked_Signal_Mask the set of signals that are in
37948 Adding a check to see whether the Interrupt_ID we want to unmask is in
37949 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37950 reason is that the index type of the Keep_Unmasked array is not always
37951 Interrupt_ID; it may be a subtype of Interrupt_ID.
37953 2003-11-24 Gary Dismukes <dismukes@gnat.com>
37956 (Remove_Side_Effects): Condition constantness of object created for a
37957 an unchecked type conversion on the constantness of the expression
37958 to ensure the correct value for 'Constrained when passing components
37959 of view-converted class-wide objects.
37961 2003-11-24 Robert Dewar <dewar@gnat.com>
37963 * par-load.adb (Load): Improve handling of misspelled and missing units
37964 Removes several cases of compilation abandoned messages
37966 * lib.adb: (Remove_Unit): New procedure
37968 * lib.ads: (Remove_Unit): New procedure
37970 * lib-load.adb: Minor reformatting
37972 2003-11-24 Vincent Celier <celier@gnat.com>
37975 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37976 (Marking_Label): Label to mark processed source files. Incremented for
37978 (Gnatmake): Increase Marking_Labet for each executable
37979 (Is_Marked): Compare against marking label
37980 (Mark): Mark with marking label
37982 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
37985 Move the declaration of the TSD for System.Threads to System.Soft_Links.
37988 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37989 (rts-cert): build a single relocatable object for the run-time lib.
37992 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
37995 Use gnatls rather than gcc to obtain the location of GNAT RTL for
37998 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38000 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38001 can not use it as before (that is, as a variable) when dumping it into
38002 the tree file. Add a local variable to store the result of this
38003 function and to be used as the string to be written into the tree.
38005 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38008 * sinput.adb (Source_First, Source_Last): In case of
38009 Internal_Source_File, replace returning attributes of
38010 Internal_Source_Ptr (which is wrong) with returning attributes of
38013 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38016 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38017 used for implicit concatenation operators.
38021 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38022 task bodies that are in the scope of a Suppress pragma.
38023 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38025 * sinfo.ads, sinfo.adb:
38026 New flag No_Elaboration_Check on function/procedure calls, to properly
38027 suppress checks on calls in task bodies that are within a local suppress
38031 (Expand_Concatenate_Other): Use the proper integer type for the
38032 expression for the upper bound, to avoid universal_integer computations
38035 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38037 * .cvsignore: Delete.
38039 2003-11-21 Andreas Schwab <schwab@suse.de>
38041 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38043 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38045 * 5wsystem.ads: Enable zero cost exception.
38047 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38049 * 5ztiitho.adb: Remove an unreferenced variable.
38051 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38053 * adaint.c: For FreeBSD, use mkstemp.
38055 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38057 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38059 2003-11-21 Robert Dewar <dewar@gnat.com>
38061 * bld.adb: Remove useless USE of gnatvsn
38063 * gnatchop.adb: Minor reformatting
38064 Clean up version handling to be more consistent
38066 * gnatxref.adb: Minor reformatting
38068 * gprcmd.adb: Minor reformatting
38069 Fix output of copyright to be more consistent with other tools
38071 2003-11-21 Vincent Celier <celier@gnat.com>
38073 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38075 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38077 * atree.adb (Initialize): Add initializations for global variables
38078 used in New_Copy_Tree.
38080 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38081 Internal_Source_File as the actual).
38082 Put the set of statements creating Any_Character before the set of
38083 statements creating Any_Array to have Any_Character fully initialized
38084 when it is used in creating Any_Array.
38086 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38087 not call Scan in case if the actual is Internal_Source_File
38088 Add 2003 to copyright note.
38090 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38091 processing Internal_Source_File.
38093 * types.ads: Add the constant Internal_Source_File representing the
38094 source buffer for artificial source-code-like strings created within
38095 the compiler (the definition of Source_File_Index is changed).
38097 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38099 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38100 56system.ads: New file, FreeBSD version.
38102 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38104 * Make-lang.in (ada.extraclean): Delete.
38106 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38108 * gnatmem.adb: Clean up verbose output.
38110 * gprcmd.adb: Change copyright to FSF.
38112 2003-11-19 Vincent Celier <celier@gnat.com>
38114 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38115 and Version (ignored).
38117 * symbols.ads: (Policy): New type
38118 (Initialize): New parameter Reference, Symbol_Policy and
38120 Remove parameter Force.
38121 Minor reformatting.
38123 * snames.ads, snames.adbadb: New standard names
38124 Library_Reference_Symbol_File and Library_Symbol_Policy
38127 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38131 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38133 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38135 * prj.adb: (Project_Empty): New component Symbol_Data
38137 * prj.ads: (Policy, Symbol_Record): New types
38138 (Project_Data): New component Symbol_Data
38141 New attributes Library_Symbol_File, Library_Symbol_Policy and
38142 Library_Reference_Symbol_File.
38145 (Ada_Check): When project is a Stand-Alone library project, process
38146 attribute Library_Symbol_File, Library_Symbol_Policy and
38147 Library_Reference_Symbol_File.
38149 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38150 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38151 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38152 Symbol_Data (ignored).
38154 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38155 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38156 functions Option_File_Name and Version_String. Set new options of
38157 gnatsym related to symbol file, symbol policy and reference symbol
38161 Extensive modifications to take into account the reference symbol file,
38162 the symbol policy, the library version and to put in the symbol file the
38163 minor and major IDs.
38165 * bld.adb (Process_Declarative_Items): Put second argument of
38166 gprcmd to_absolute between single quotes, to avoid problems with
38169 * bld-io.adb: Update Copyright notice.
38170 (Flush): Remove last character of a line, if it is a back slash, to
38171 avoid make problems.
38174 Implement new scheme with reference symbol file and symbol policy.
38176 * g-os_lib.ads: (Is_Directory): Clarify comment
38178 2003-11-19 Robert Dewar <dewar@gnat.com>
38180 * atree.adb: Move New_Copy_Tree global variables to head of package
38182 * errout.adb: Minor reformatting
38184 2003-11-19 Javier Miranda <miranda@gnat.com>
38186 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38187 Add reference to Ada0Y (AI-50217)
38189 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38190 sem_util.adb: Add reference to AI-50217
38192 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38194 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38196 * sem_aggr.adb: Complete documentation of AI-287 changes
38198 * par-ch4.adb: Document previous changes.
38200 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38201 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38204 * exp_aggr.adb: Add references to AI-287 in previous changes
38206 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38209 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38210 in the rewriting is the result of an inlined call.
38212 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38213 parameter is a type conversion, use original node to construct the
38214 post-call assignment, because expression may have been rewritten, e.g.
38215 if it is a packed array.
38218 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38219 body, just as it is in an instance.
38220 Categorization routines
38222 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38223 Instantiate_Object): Set proper sloc reference for message on missing
38226 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38228 * Makefile.in: Add FreeBSD libgnat pairs.
38230 * usage.adb: Fix typo in usage message.
38232 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38234 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38235 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38236 pragma Thread_Body.
38237 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38239 * s-thread.adb: This file is now a dummy implementation of
38242 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38244 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38246 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38248 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38249 instanciation references in the parent type description.
38251 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38253 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38255 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38256 TYPE_PRECISION directly from esize.
38258 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38261 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38263 * init.c: Initialization routines for FreeBSD
38265 * link.c: Link info for FreeBSD
38267 * sysdep.c: Add the case of FreeBSD
38269 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38271 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38272 already called in System.Threads.
38274 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38275 environment task, as it has been moved to System.Threads.Initialization.
38277 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38279 * adaint.c (__gnatlib_install_locks): Only reference
38280 __gnat_install_locks on VMS, since other platforms can avoid using
38281 --enable-threads=gnat
38283 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38285 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38287 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38288 TYPE_PACKED_ARRAY_TYPE_P.
38289 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38291 Part of PR ada/12806
38292 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38293 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38295 2003-11-17 Vincent Celier <celier@gnat.com>
38297 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38299 Do not set exit status to Failure when Warning is True.
38300 (Gnatchop): Make errors "no compilation units found" and
38301 "no source files written" warnings only.
38303 * make.adb (Gnatmake): When using a project file, set
38304 Look_In_Primary_Dir to False.
38305 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38306 and Local_Configuration_Pragmas in the project where they are declared
38307 not an extending project which might have inherited them.
38309 * osint.adb (Locate_File): If Name is already an absolute path, do not
38310 look for a directory.
38312 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38313 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38315 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38316 in objects of type Variable_Value.
38318 * prj.ads: (Variable_Value): New component Project
38320 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38321 is in a project extended by Project.
38323 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38324 Project of Variable_Values to this new parameter value.
38325 (Expression): Set component Project of Variable_Values.
38326 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38327 Set the component Project in array elements.
38329 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38331 * errout.adb: (Initialize): Add initialization for error nodes.
38333 * sem_ch12.adb (Initialize): Add missing initializations for
38334 Exchanged_Views and Hidden_Entities.
38336 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38338 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38339 already instantiated tree for use in subsequent inlining.
38340 (Analyze_Associations, Instantiate_Formal_Subprogram,
38341 Instantiate_Object): improve error message for mismatch in
38344 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38345 instantiations of subprograms declared in instances.
38347 2003-11-17 Javier Miranda <miranda@gnat.com>
38349 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38350 executed only under the Extensions_Allowed flag.
38352 2003-11-17 Robert Dewar <dewar@gnat.com>
38354 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38356 (Address_Image): Fix bug of returning 0x instead of 0x0
38357 Minor reformatting (function specs).
38359 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38360 (missed case of 33-63)
38362 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38364 * s-thread.adb: Add comments for pragma Restriction
38366 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38367 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38369 2003-11-17 Ed Falis <falis@gnat.com>
38371 * s-thread.adb: Added No_Tasking restriction for this implementation.
38373 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38375 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38376 instanciation references in the parent type description.
38378 2003-11-17 GNAT Script <nobody@gnat.com>
38380 * Make-lang.in: Makefile automatically updated
38382 2003-11-16 Jason Merrill <jason@redhat.com>
38384 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38385 and TAGS files that include them for each front end.
38387 2003-11-14 Andreas Jaeger <aj@suse.de>
38389 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38390 is the canonical version.
38391 * misc.c (gnat_handle_option): Likewise.
38393 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38395 * 5nsystem.ads: New file for x86_64-linux-gnu.
38397 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38399 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38401 * comperr.adb: Fix logic in previous change.
38403 2003-11-13 Vincent Celier <celier@gnat.com>
38405 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38406 Osint.Include_Dir_Default_Prefix instead of
38407 Sdefault.Include_Dir_Default_Name.
38409 * gnatlbr.adb: Update Copyright notice
38410 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38411 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38412 instead of Sdefault.Object_Dir_Default_Name
38415 (Process_Binder_File): Never suppress the option following -Xlinker
38418 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38419 Sdefault.Object_Dir_Default_Name.
38421 * osint.ads, osint.adb:
38422 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38423 Minor reformatting.
38425 * vms_conv.ads: Minor reformating
38426 Remove GNAT STANDARD and GNAT PSTA
38429 Allow GNAT MAKE to have several files on the command line.
38430 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38431 Sdefault.Object_Dir_Default_Name.
38433 Remove data for GNAT STANDARD
38436 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38437 Remove data for GNAT STANDARD
38438 Remove options and documentation for -gnatwb/-gnatwB: these warning
38439 options no longer exist.
38441 2003-11-13 Ed Falis <falis@gnat.com>
38443 * 5zthrini.adb: (Init_RTS): Made visible
38446 (Register): Removed unnecessary call to taskVarGet that checked whether
38447 an ATSD was already set as a task var for the argument thread.
38450 Updated comment to reflect that this is a VxWorks version
38451 Added context clause for System.Threads.Initialization
38452 Added call to System.Threads.Initialization.Init_RTS
38454 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38457 (Init_RTS): New procedure, for the initialization of the run-time lib.
38460 Remove dependancy on System.Init, so that this file can be used in the
38461 AE653 sequential run-time lib.
38463 2003-11-13 Robert Dewar <dewar@gnat.com>
38465 * bindgen.adb: Minor reformatting
38467 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38470 (Apply_Discriminant_Check): Do no apply check if target type is derived
38471 from source type with no applicable constraint.
38474 (Ensure_System_Dependency): Do not apply the style checks that may have
38475 been specified for the main unit.
38478 (Find_Selected_Component): Further improvement in error message, with
38482 (Resolve): Handle properly the case of an illegal overloaded protected
38485 2003-11-13 Javier Miranda <miranda@gnat.com>
38488 (Has_Default_Init_Comps): New function to check the presence of
38489 default initialization in an aggregate.
38490 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38491 extension aggregate of a limited record. In addition, a new formal
38492 was added to do not initialize the record controller (if any) during
38493 this recursive expansion of ancestors.
38494 (Init_Controller): Add support for limited record components.
38495 (Expand_Record_Aggregate): In case of default initialized components
38496 convert the aggregate into a set of assignments.
38498 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38499 describing the new syntax.
38500 Nothing else needed to be done because this subprogram delegates part of
38501 its work to P_Precord_Or_Array_Component_Association.
38502 (P_Record_Or_Array_Component_Association): Give support to the new
38503 syntax for default initialization of components.
38506 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38507 limited aggregates.
38508 (Resolve_Record_Aggregate): Give support to default initialized
38510 (Get_Value): In case of default initialized components, duplicate
38511 the corresponding default expression (from the record type
38512 declaration). In case of default initialization in the *others*
38513 choice, do not check that all components have the same type.
38514 (Resolve_Extension_Aggregate): Give support to limited extension
38518 (Check_Initialization): Relax the strictness of the front-end in case
38519 of aggregate and extension aggregates. This test is now done in
38520 Get_Value in a per-component manner.
38522 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38523 expression corresponds to a limited aggregate. This test is now done
38526 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38529 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38530 present in an N_Component_Association node
38532 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38534 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38535 type-conformant entry only if they are homographs.
38537 2003-11-13 GNAT Script <nobody@gnat.com>
38539 * Make-lang.in: Makefile automatically updated
38541 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38543 * adadecode.c: Use <> form of include for ctype.h.
38544 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38546 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38548 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38549 Works around PR middle-end/6552.
38551 2003-11-10 Ed Falis <falis@gnat.com>
38553 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38555 * 5zinit.adb: (Install_Handler): Moved back to spec
38556 (Install_Signal_Handlers): Deleted
38558 * 5zthrini.adb: Added context clause for System.Storage_Elements
38559 (Register): Only handles creation of taskVar; initialization moved to
38561 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38562 Added declaration of environment task secondary stack and
38565 * s-thread.adb: Implement bodies for thread body processing
38568 Added comment identifying supported targets for pragma Thread_Body.
38570 2003-11-10 Pascal Obry <obry@gnat.com>
38572 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38576 (Open): Properly check for string length before copying into the buffer.
38577 Raises Name_Error if buffer is too small. Note that this was a potential
38580 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38582 * bindgen.adb, comperr.adb: Code clean ups.
38583 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38585 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38587 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38589 2003-11-10 Vincent Celier <celier@gnat.com>
38592 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38595 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38597 * prj.adb: (Project_Empty): Add new boolean component Virtual
38599 * prj.ads: (Virtual_Prefix): New constant string
38600 (Project_Data): New boolean component Virtual
38602 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38603 a library project is extended by a virtual extending project.
38606 Modifications throughout to implement extending-all project, including:
38607 (Virtual_Hash, Processed_Hash): New hash tables
38608 (Create_Virtual_Extending_Project): New procedure
38609 (Look_For_Virtual_Projects_For): New procedure
38612 (Process): After checking the projects, if main project is an
38613 extending-all project, set the object directory of all virtual extending
38614 project to the object directory of the main project.
38615 Adjust error message when a virtual extending project has the same
38616 object directory as an project being extended.
38617 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38618 to True in the project data.
38621 (Default_Project_Node): Add new boolean component Extending_All
38622 (Is_Extending_All): New function
38623 (Set_Is_Extending_All): New procedure
38625 * prj-tree.ads: (Is_Extending_All): New function
38626 (Set_Is_Extending_All): New procedure
38627 (Project_Node_Record): New boolean component Extending_All
38629 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38632 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38634 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38635 "gprcmd prefix" to define it.
38637 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38639 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38642 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38643 created dummy package to Standard_Standard, not to itself, to
38644 defend other parts of the front-end against encoutering a cycle in
38648 (Analyze_With_Clause): When setting the entities for the successive
38649 N_Expanded_Names that constitute the name of a child unit, do not
38650 attempt to go further than Standard_Standard in the chain of scopes.
38651 This case arises from the placeholder units created by
38652 Create_Dummy_Package_Unit in the case of a with_clause for a
38653 nonexistent child unit.
38655 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38658 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38659 declarations are given the proper scope.
38662 (Check_Expr_Constants): Reject an expression that contains a constant
38663 created during expansion, and that appears after the object to which
38664 the address clause applies.
38666 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38667 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38668 that uses 'Range of a function call with controlled components, so
38669 that the function result can be finalized before starting the loop.
38672 (Find_Selected_Component): Improve error message when prefix is
38673 an implicit dereference of an incomplete type.
38675 2003-11-10 Robert Dewar <dewar@gnat.com>
38677 * opt.ads: New Print_Standard flag for -gnatS switch
38679 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38681 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38684 * debug.adb: Update doc for -gnatds to discuss relationship with new
38687 * sinfo.adb: Add new field Entity_Or_Associated_Node
38689 * sinfo.ads: Add new field Entity_Or_Associated_Node
38690 Update documentation for Associated_Node and Entity fields to clarify
38691 relationship and usage.
38694 (Write_Id): Properly process Associated_Node field in generic template
38697 Recognize new -gnatS switch for printing package Standard
38698 This replaces gnatpsta
38701 Add line for new -gnatS switch for printing package Standard
38702 This replaces gnatpsta
38704 2003-11-10 Andreas Jaeger <aj@suse.de>
38706 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38709 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38711 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38714 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38716 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38719 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38721 * sysdep.c: Add handling of cygwin.
38723 2003-11-10 GNAT Script <nobody@gnat.com>
38725 * Make-lang.in: Makefile automatically updated
38727 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38730 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38731 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38732 Replace GNAT_ROOT by GCC_ROOT.
38734 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38736 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38738 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38739 and update for changed meaning of GET_MODE_BITSIZE.
38741 2003-11-04 Doug Rupp <rupp@gnat.com>
38743 * sysdep.c: Problem discovered during IA64 VMS port.
38744 [VMS] #include <unixio.h> to get proper prototypes.
38747 Issues discovered/problems fixed during IA64 VMS port.
38748 [VMS] #define _POSIX_EXIT for proper semantics.
38749 [VMS] #include <unixio.h> for proper prototypes.
38750 [VMS] (fork): #define IA64 version.
38751 (__gnat_os_exit): Remove unnecessary VMS specific code.
38753 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38755 Part of PR ada/12806
38756 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38760 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38763 * targtyps.c, decl.c, misc.c,
38764 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38765 routines to work around change in FP sizing semantics in GCC.
38768 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38770 * gigi.h: (enumerate_modes): New function.
38772 * Make-lang.in: (ada/misc.o): Add real.h.
38774 * misc.c: (enumerate_modes): New function.
38776 2003-11-04 Robert Dewar <dewar@gnat.com>
38778 * 3vtrasym.adb: Minor reformatting
38779 Use terminology encoded/decoded name, rather than C++ specific notion
38780 of mangling (this is the terminology used throughout GNAT).
38782 * einfo.h: Regenerated
38784 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38787 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38789 * par-prag.adb: Add dummy entry for Thread_Body pragma
38792 Add entries for System.Threads entities for thread body processing
38795 (Analyze_Pragma, Access attributes): Check these are not applied to a
38796 thread body, since this is not permitted
38798 * sem_prag.adb: Add processing for Thread_Body pragma.
38802 (Resolve_Call): Check for incorrect attempt to call a thread body
38803 procedure with a direct call.
38805 * snames.ads, snames.adb: Add entry for Thread_Body pragma
38806 Add names associated with thread body expansion
38808 * snames.h: Add entry for Thread_Body pragma
38810 * s-thread.adb: Add entries for thread body processing
38811 These are dummy bodies so far
38813 * s-thread.ads: Add documentation on thread body handling.
38814 Add entries for thread body processing.
38816 2003-11-04 Javier Miranda <miranda@gnat.com>
38819 (Build_Limited_Views): Return after posting an error in case of limited
38820 with_clause on subprograms, generics, instances or generic renamings
38821 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38822 on subprograms, generics, instances or generic renamings
38824 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
38826 * raise.c (setup_to_install): Correct mistake in last revision; two
38827 arguments out of order.
38829 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38830 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38831 notice, missed in previous change.
38832 Remove trailing blanks and other style errors introduced in previous
38835 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
38837 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38838 rid of the wrapper for a LJM type, ensuring we don't do that if the
38839 field is addressable. This avoids potential low level type view
38840 mismatches later on, for instance in a by-reference argument passing
38843 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38845 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38846 aligned at byte boundary.
38848 2003-11-04 Joel Brobecker <brobecker@gnat.com>
38850 * decl.c (components_to_record): Do not delete the empty variants from
38851 the end of the union type.
38853 2003-11-04 Ed Schonberg <schonberg@gnat.com>
38855 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38856 operation for a derived type, an explicit declaration may use a local
38857 subtype of Boolean.
38859 2003-11-04 Vincent Celier <celier@gnat.com>
38861 * make.adb (Gnatmake): Allow main sources on the command line with a
38862 library project when it is only for compilation (no binding or
38865 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38867 * Makefile.in: Remove many duplicate variables.
38869 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
38871 * Make-lang.in (dvi): Move targets to $(docobjdir).
38872 (gnat_ug_vms.dvi): Simplify rule and adjust target.
38873 (gnat_ug_wnt.dvi): Likewise.
38874 (gnat_ug_unx.dvi): Likewise.
38875 (gnat_ug_vxw.dvi): Likewise.
38876 (gnat_rm.dvi): Likewise.
38877 (gnat-style.dvi): Likewise.
38879 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38881 * gigi.h: Missed commit from update for C90.
38883 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38885 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38887 2003-10-31 Andreas Schwab <schwab@suse.de>
38889 * raise.c (get_action_description_for): Fix typo in last change.
38891 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
38894 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38895 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38897 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
38899 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38900 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38901 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38902 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38903 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38905 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
38908 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38909 numbers when symbol name is too long.
38911 2003-10-30 Ed Falis <falis@gnat.com>
38913 * g-signal.ads, g-signal.adb: New files
38915 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38917 * Makefile.rtl: Introduce GNAT.Signals
38919 2003-10-30 Robert Dewar <dewar@gnat.com>
38921 * freeze.adb: Minor reformatting
38923 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38925 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38926 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38927 New handling of Id_Check parameter to improve recognition of keywords
38928 used as identifiers.
38929 Update copyright notice to include 2003
38931 2003-10-29 Robert Dewar <dewar@gnat.com>
38933 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38934 sem_ch10.adb: Minor reformatting
38936 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38937 (Expand_Assign_Record): Test right hand side for bit unaligned as well
38939 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
38941 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38942 Support for TBK$SYMBOLIZE-based symbolic traceback.
38944 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
38947 Revert previous change, that did not work well when pragma No_Run_Time
38948 was used in conjunction with a run-time other than ZFP.
38950 2003-10-29 Vincent Celier <celier@gnat.com>
38953 (Gnatmake): When there are no Ada mains in attribute Main, disable the
38954 bind and link steps only is switch -z is not used.
38956 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
38958 * Makefile.generic: Remove duplicated setting of CC.
38960 * Makefile.prolog: Set CC to gcc by default, to override make's
38963 * einfo.h: Regenerated.
38965 2003-10-29 Ed Schonberg <schonberg@gnat.com>
38967 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38968 current body, after compiling subunit.
38970 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38971 when in deleted code, because gigi needs properly ordered freeze
38972 actions to annotate types.
38974 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38975 prevent the premature freezing of record type that contains
38976 subcomponents with a private type that does not yet have a completion.
38978 2003-10-29 Javier Miranda <miranda@gnat.com>
38981 (Analyze_Package_Instantiation): Check that instances can not be used in
38982 limited with_clauses.
38985 (Analyze_Package_Renaming): Check that limited withed packages cannot
38986 be renamed. Improve text on error messages related to limited
38989 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38991 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38992 Update copyright notice.
38994 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38995 (Install_Limited_Context_Clauses): New subprogram that isolates all the
38996 checks required for limited context_clauses and installs the limited
38998 (Install_Limited_Withed_Unit): Complete its documentation.
38999 (Analyze_Context): Check that limited with_clauses are only allowed in
39001 (Install_Context): Call Install_Limited_Context_Clauses after the
39002 parents have been installed.
39003 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39004 package as 'From_With_Type'; this mark indicates that the limited view
39005 is installed. Used to check bad usages of limited with_clauses.
39006 (Build_Limited_Views): Do not add shadow entities to the scope's list
39007 of entities. Do not add real entities to the Non_Limited_Views chain.
39008 Improve error notification.
39009 (Remove_Context_Clauses): Remove context clauses in two phases:
39010 limited views first and regular views later (to maintain the
39012 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39013 its visible entities.
39015 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39017 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39018 with any type that Is_Fixed_Point_Type.
39020 * sinfo.ads: Fix documentation for Associated_Node attribute.
39022 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39024 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39025 both '-gnatc' and '-gnatt' are specified.
39027 * atree.adb (Initialize): Add initialization for Node_Count (set to
39030 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39032 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39033 do not consider as Pure.
39035 Part of implementation of function-at-a-time:
39037 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39038 (tree_transform): Add new argument to build_component_ref.
39039 (tree_transform, case N_Assignment_Statement): Make and return an
39041 (tree_transform): If result IS_STMT, set flags and return it.
39042 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39044 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39046 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39047 (build_allocator): Likewise.
39049 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39050 Add new arg to build_component_ref.
39051 (maybe_unconstrained_array, unchecked_convert): Likewise.
39053 * ada-tree.def (EXPR_STMT): New code.
39055 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39057 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39058 build_component_ref calls.
39060 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39062 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39063 (build_component_ref): Add new argument, NO_FOLD_P.
39065 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39067 * Makefile.generic: Add missing substitution on object_deps handling.
39070 * Make-lang.in (check-ada): Enable ACATS test suite.
39072 2003-10-27 Robert Dewar <dewar@gnat.com>
39075 (Freeze_Array_Type): We do not need an initialization routine for types
39076 derived from String or Wide_String. They should be treated the same
39077 as String and Wide_String themselves. This caused problems with the
39078 use of Initialize_Scalars.
39081 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39082 composites. This allows use of component clauses that are not byte
39086 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39087 is an attempt to pack an array of atomic objects.
39089 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39091 2003-10-27 Pascal Obry <obry@gnat.com>
39094 (Basename): Check for drive letters in a pathname only on DOS based OS.
39096 2003-10-27 Vincent Celier <celier@gnat.com>
39099 (Gnatmake): When unable to change dir to the object dir, display the
39100 content of the parent dir of the obj dir, to try to understand why this
39103 2003-10-27 GNAT Script <nobody@gnat.com>
39105 * Make-lang.in: Makefile automatically updated
39107 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39110 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39111 should not be done in Save/Restore_Scope_Stack, because it is performed
39115 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39116 whether use clauses should be removed/restored.
39119 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39120 whether use clauses should be removed/restored.
39122 2003-10-26 Andreas Jaeger <aj@suse.de>
39124 * Makefile.in: Remove duplicated lines.
39126 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39128 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39129 minimize the differences with ACT tree.
39131 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39132 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39133 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39136 2003-10-24 Pascal Obry <obry@gnat.com>
39139 * adadecode.c (ostrcpy): New function.
39140 (__gnat_decode): Use ostrcpy of strcpy.
39141 (has_prefix): Set first parameter a const.
39142 (has_suffix): Set first parameter a const.
39143 Update copyright notice. Fix source name in header.
39144 Removes a trailing space.
39146 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39149 Remove the test against being in No_Run_Time_Mode before generating a
39150 call to Register_Tag. It is redundant with the test against the
39151 availability of the function Register_Tag.
39153 2003-10-24 Vincent Celier <celier@gnat.com>
39155 * g-catiio.adb: (Month_Name): Correct spelling of February
39157 * make.adb: (Mains): New package
39158 (Initialize): Call Mains.Delete
39159 (Gnatmake): Check that each main on the command line is a source of a
39160 project file and, if there are several mains, each of them is a source
39161 of the same project file.
39162 (Gnatmake): When a foreign language is specified in attribute Languages,
39163 no main is specified on the command line and attribute Mains is not
39164 empty, only build the Ada main. If there is no Ada main, just compile
39165 the Ada sources and their closure.
39166 (Gnatmake): If a main is specified on the command line with directory
39167 information, check that the source exists and, if it does, that the path
39168 is the actual path of a source of a project.
39171 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39172 Full_Path is True, return the full path instead of the simple file name.
39173 (Project_Of): New function
39176 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39177 defaulted to False.
39178 (Project_Of): New function
39180 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39182 * Makefile.generic:
39183 Ensure objects of main project are always checked and rebuilt if needed.
39184 Set CC to gcc by default.
39185 Prepare new handling of link by creating a global archive (not activated
39188 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39189 stringt.h: Update copyright notice. Remove trailing blanks.
39190 Fix source name in header.
39192 2003-10-24 Robert Dewar <dewar@gnat.com>
39194 * sem_ch12.adb: Minor reformatting
39197 Minor reformatting (including new function return style throughout)
39200 Minor reformatting (including new function return style throughout)
39202 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39204 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39205 stringt.h: Update copyright notice. Remove trailing blanks.
39206 Fix source name in header.
39208 2003-10-24 GNAT Script <nobody@gnat.com>
39210 * Make-lang.in: Makefile automatically updated
39212 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39214 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39215 stringt.h: Convert to ISO C90 declarations and definitions.
39217 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39220 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39221 External_Tag attribute definition clauses.
39223 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39226 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39227 child unit, generate a fully qualified name to avoid spurious errors
39228 when the context contains renamings of different child units with
39229 the same simple name.
39231 * exp_dbug.ads: Add documentation on name qualification for renamings
39234 2003-10-23 Robert Dewar <dewar@gnat.com>
39236 * g-regpat.ads, g-regpat.adb: Minor reformatting
39238 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39240 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39242 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39244 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39247 * urealp.h: (Machine): Update to proper definition.
39249 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39251 * init.c, adaint.c: Minor reformatting.
39253 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39255 * adaint.c (w32_epoch_offset): Define static const at file level.
39256 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39257 rather than t_create, t_access in call to GetFileTime. Use union
39258 to convert between FILETIME and unsigned long long.
39259 (__gnat_file_time_name): Test for invalid file handle.
39260 (__gnat_set_filetime_name): Support win32 targets using
39261 w32api SetFileTime.
39263 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39265 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39267 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39269 * decl.c (creat_concat_name): Const-ify prefix.
39271 * adaint.c: Include ctype.h if __MINGW32__.
39272 (__gnat_readlink): Mark arguments as possibly unused.
39273 (__gnat_symlink): Likewise.
39274 (__gnat_is_symbolic_link): Likewise.
39275 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39277 (__gnat_file_time_name): Don't declare struct stat statbuf when
39279 (__gnat_is_absolute_path): Add parenthesis around condition of
39280 'if' statement to avoid warning.
39281 (__gnat_plist_init): Specify void as parameter.
39282 (plist_enter): Likewise.
39283 (plist_leave): Likewise.
39284 (remove_handle): Make static. Initialize prev.
39286 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39289 * Makefile.in: Disable build of gnatpsta.
39290 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39291 of previous change.
39293 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39295 * tracebak.c (MAX): Avoid redefinition warning.
39297 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39298 Change msg to const char *.
39299 (__gnat_install_handler): Remove ss, unused.
39300 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39302 * cstreams.c (__gnat_full_name): Declare p only when used.
39303 (__gnat_full_name) [sgi] Return buffer.
39305 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39307 * mingw32.h: New file.
39308 * gnat_wrapper.adb: New file.
39310 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39312 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39313 string match a pre compiled regular expression (the corresponding
39314 version of the function working on a raw regular expression)
39315 Fix typos in various comments
39316 Update copyright notice in spec
39318 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39321 (Component_Needs_Simple_Initialization): Return False when the type is a
39322 packed bit array. Revise spec comments to document this case.
39325 (Expand_Pragma_Import): Set any expression on the imported object to
39326 empty to avoid initializing imported objects (in particular this
39327 covers the case of zero-initialization of bit arrays).
39328 Update copyright notice.
39330 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39333 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39334 a subunit is missing.
39335 (Instantiate_Subprogram_Body): If body of function is missing, set type
39336 of return expression explicitly in dummy body, to prevent cascaded
39337 errors when a subunit is missing.
39341 (Access_Subprogram_Declaration): Verify that return type is valid.
39345 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39350 (Corresponding_Discriminant): If the scope of the discriminant is a
39351 private type without discriminant, use its full view.
39354 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39356 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39357 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39358 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39359 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39360 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39361 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39362 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39363 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39364 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39365 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39366 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39367 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39368 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39369 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39370 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39371 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39372 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39373 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39374 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39375 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39376 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39377 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39378 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39379 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39380 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39381 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39382 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39383 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39384 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39385 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39386 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39387 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39388 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39389 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39390 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39391 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39392 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39393 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39394 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39395 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39396 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39397 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39398 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39399 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39400 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39401 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39402 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39403 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39404 vms_conv.ads, vms_conv.adb, vms_data.ads,
39405 vxaddr2line.adb: Files added. Merge with ACT tree.
39407 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39408 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39409 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39410 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39411 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39412 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39413 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39414 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39415 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39416 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39418 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39419 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39420 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39421 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39422 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39423 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39424 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39425 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39426 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39427 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39428 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39429 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39430 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39431 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39432 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39433 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39434 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39435 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39436 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39437 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39438 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39439 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39440 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39441 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39442 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39443 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39444 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39445 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39446 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39447 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39448 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39449 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39450 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39451 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39452 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39453 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39454 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39455 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39456 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39457 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39458 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39459 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39460 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39461 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39462 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39463 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39464 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39465 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39466 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39467 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39468 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39469 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39470 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39471 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39472 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39473 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39474 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39475 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39476 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39477 checks.adb, checks.ads, cio.c, comperr.adb,
39478 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39479 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39480 einfo.adb, einfo.ads, errout.adb, errout.ads,
39481 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39482 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39483 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39484 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39485 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39486 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39487 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39488 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39489 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39490 fe.h, fmap.adb, fmap.ads, fname.adb,
39491 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39492 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39493 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39494 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39495 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39496 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39497 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39498 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39499 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39500 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39501 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39502 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39503 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39504 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39505 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39506 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39507 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39508 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39509 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39510 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39511 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39512 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39513 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39514 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39515 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39516 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39517 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39518 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39519 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39520 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39521 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39522 layout.adb, lib.adb, lib.ads, lib-list.adb,
39523 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39524 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39525 link.c, live.adb, make.adb, make.ads,
39526 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39527 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39528 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39529 misc.c, mkdir.c, mlib.adb, mlib.ads,
39530 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39531 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39532 namet.adb, namet.ads, namet.h, nlists.ads,
39533 nlists.h, nmake.adt, opt.adb, opt.ads,
39534 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39535 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39536 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39537 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39538 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39539 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39540 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39541 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39542 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39543 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39544 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39545 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39546 prj-util.adb, prj-util.ads, raise.c, raise.h,
39547 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39548 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39549 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39550 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39551 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39552 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39553 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39554 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39555 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39556 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39557 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39558 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39559 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39560 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39561 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39562 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39563 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39564 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39565 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39566 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39567 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39568 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39569 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39570 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39571 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39572 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39573 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39574 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39575 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39576 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39577 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39578 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39579 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39580 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39581 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39582 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39583 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39584 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39585 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39586 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39587 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39588 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39589 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39590 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39591 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39592 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39593 stringt.adb, stringt.ads, stringt.h, style.ads,
39594 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39595 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39596 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39597 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39598 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39599 table.adb, table.ads, targparm.adb, targparm.ads,
39600 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39601 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39602 ttypes.ads, types.ads, types.h, uintp.adb,
39603 uintp.ads, uintp.h, uname.adb, urealp.adb,
39604 urealp.ads, urealp.h, usage.adb, utils2.c,
39605 utils.c, validsw.adb, validsw.ads, widechar.adb,
39606 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39607 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39608 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39609 gnatvsn.ads: Merge with ACT tree.
39611 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39613 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39615 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39616 (gnat_ug_vmx.info): Likewise.
39617 (gnat_ug_vxw.info): Likewise.
39618 (gnat_ug_wnt.info): Likewise.
39619 (gnat_rm.info): Likewise.
39620 (gnat-style.info): Likewise.
39622 * Make-lang.in (ada.install-info): Remove target.
39623 (info): New target.
39624 (install-info): Likewise.
39625 (gnat_ug_unx.info): Simplify rule.
39626 (gnat_ug_vmx.info): Likewise.
39627 (gnat_ug_vxw.info): Likewise.
39628 (gnat_ug_wnt.info): Likewise.
39629 (gnat_rm.info): Likewise.
39630 (gnat-style.info): Likewise.
39632 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39634 * Make-lang.in: Replace uses of $(target_alias) with
39635 $(target_noncanonical).
39636 * ada/Makefile.in: Remove unused mention of $(target_alias).
39638 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39640 * Make-lang.in (ada.info): Replace with ...
39642 (ada.dvi): Replace with ...
39645 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39647 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39648 initialize dconstp5 and dconstmp5.
39650 2003-09-28 Richard Henderson <rth@redhat.com>
39652 * trans.c (tree_transform): Update call to expand_asm_operands.
39654 2003-09-21 Richard Henderson <rth@redhat.com>
39656 * trans.c, utils.c: Revert.
39658 2003-09-21 Richard Henderson <rth@redhat.com>
39660 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39663 2003-09-04 Michael Matz <matz@suse.de>
39665 * misc.c: Include "target.h".
39666 * Make-lang.in (misc.o): Add dependency on target.h.
39668 2003-09-03 DJ Delorie <dj@redhat.com>
39670 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39673 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39675 * Makefile.in: Update substitutions to match changes to
39676 configure. Use include directives instead of @-insertions
39677 to read in host and target fragments. Add a rule to
39678 regenerate ada/Makefile.
39680 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39682 * lang-options.h: Remove.
39683 * lang.opt: Add help text.
39685 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39687 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39690 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39692 * misc.c (gnat_handle_option): Don't handle filenames.
39694 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39696 * Make-lang.in: Replace PWD with PWD_COMMAND.
39697 * Makefile.adalib: Likewise.
39698 * Makefile.in: Likewise.
39700 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39702 * misc.c (gnat_argv): Revert last change.
39703 (gnat_handle_option, gnat_init_options): Copy arguments.
39705 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39707 * misc.c (gnat_argv): Make const.
39709 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39711 * misc.c (save_argc, save_argv): Keep non-static!
39713 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39715 * misc.c (save_argc, save_argv): Make static.
39716 (gnat_init_options): New prototype.
39717 (gnat_init_options): Update.
39719 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39721 * gnat_ug.texi: Remove unlikely characters from @vars.
39722 * gnat_ug_vms.texi: Regenerate.
39724 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39726 * misc.c (record_code_position): Adjust emit_note call.
39728 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39730 * misc.c (gnat_handle_option): Don't check for missing arguments.
39732 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39734 * utils.c (end_subprog_body): Adjust expand_function_end call.
39736 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39738 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39741 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39743 * lang.opt: Declare Ada.
39744 * misc.c (gnat_init_options): Update.
39746 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39748 * utils.c (begin_subprog_body): Adjust init_function_start call.
39750 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39752 * Make-lang.in: Update to use options.c and options.h.
39753 * misc.c: Include options.h not aoptions.h.
39754 (gnat_handle_option): Abort on unrecognized switch.
39755 (gnat_init_options): Request Ada switches.
39757 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39759 * lang.opt: Add -Wall.
39760 * misc.c (gnat_handle_option): Handle it.
39762 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
39764 * misc.c (gnat_handle_option): Fix warnings.
39766 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
39768 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39770 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
39772 * Make-lang.in: Update to handle command-line options.
39773 * lang.opt: New file.
39774 * misc.c: Include aoptions.h.
39775 (cl_options_count, cl_options): Remove.
39776 (gnat_handle_option): New.
39777 (gnat_decode_option): Remove.
39778 (LANG_HOOKS_DECODE_OPTION): Remove.
39779 (LANG_HOOKS_HANDLE_OPTION): Override.
39781 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
39783 * init.c, misc.c, trans.c, utils.c: Remove dead code.
39785 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
39787 * Makefile.in: Replace "host_canonical" with "host" for autoconf
39790 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
39792 * Make-lang.in: Update.
39793 * misc.c: Include opts.h. Define cl_options_count and cl_options.
39795 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
39797 * misc.c (gnat_init_options): Update.
39799 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39801 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39802 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39803 __attribute__ ((__unused__)).
39805 2003-06-05 Jan Hubicka <jh@suse.cz>
39807 * Make-lang.in: Add support for stageprofile and stagefeedback
39809 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39811 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39812 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39814 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
39816 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39817 Remove non-VMS directive.
39818 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39820 (Examples of gnatls Usage): Remove VMS alternative.
39822 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
39825 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39826 and turn ZCX_By_Default back to False since the underlying support
39827 is not quite there yet.
39829 2003-06-01 Andreas Jaeger <aj@suse.de>
39831 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39832 and ROUND_TYPE_SIZE_UNIT.
39834 2003-05-22 Geert Bosch <bosch@gnat.com>
39836 * gnat_rm.texi : Remove reference to Ada Core Technologies.
39838 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
39840 * trans.c (tree_transform): Use location_t and input_location
39842 (build_unit_elab): Likewise.
39843 * utils.c (create_label_decl): Likewise.
39845 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
39847 * trans.c (tree_transform, build_unit_elab,
39848 set_lineno): Rename lineno to input_line.
39849 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39850 end_subprog_body): Likewise.
39851 * utils2.c (build_call_raise): Likewise.
39853 2003-05-01 Laurent Guerby <guerby@acm.org>
39856 * 5iosinte.ads: Increase pthread_cond_t size to match recent
39857 LinuxThread and NPTL version, merge from ACT.
39859 2003-04-28 Zack Weinberg <zack@codesourcery.com>
39861 * utils.c (convert): No need to clear TREE_CST_RTL.
39863 2003-04-23 Geert Bosch <bosch@gnat.com>
39865 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39866 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39867 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39868 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39869 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39870 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39871 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39872 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39873 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39874 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39875 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39876 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39877 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39878 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39879 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39880 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39881 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39882 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39883 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39884 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39885 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39886 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39887 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39888 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39889 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39890 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39891 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39892 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39893 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39894 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39895 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39896 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39897 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39898 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39899 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39900 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39901 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39902 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39903 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39904 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39905 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39906 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39907 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39908 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39909 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39910 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39911 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39912 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39913 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39914 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39915 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39916 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39917 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39918 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39919 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39920 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39921 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39922 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39923 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39924 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39925 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39926 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39927 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39928 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39929 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39930 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39931 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39932 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39933 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39934 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39935 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39936 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39937 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39938 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39939 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39940 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39941 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39942 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39943 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39944 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39945 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39946 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39947 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39948 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39949 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39950 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39951 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39952 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39953 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39954 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39955 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39956 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39957 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39958 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39959 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39960 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39961 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39962 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39963 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39964 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39965 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39966 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39967 ali.adb, ali.ads, alloc.ads, argv.c,
39968 atree.adb, atree.ads, atree.h, aux-io.c,
39969 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39970 binde.adb, binde.ads, binderr.adb, binderr.ads,
39971 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39972 butil.adb, butil.ads, cal.c, calendar.ads,
39973 casing.adb, casing.ads, ceinfo.adb, checks.adb,
39974 checks.ads, cio.c, comperr.adb, comperr.ads,
39975 config-lang.in, csets.adb, csets.ads, csinfo.adb,
39976 cstand.adb, cstand.ads, cuintp.c, debug.adb,
39977 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39978 dec-io.ads, dec.ads, deftarg.c, directio.ads,
39979 einfo.adb, einfo.ads, elists.adb, elists.ads,
39980 elists.h, errno.c, errout.adb, errout.ads,
39981 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39982 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39983 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39984 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39985 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39986 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39987 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39988 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39989 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39990 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39991 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39992 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39993 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39994 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39995 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39996 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39997 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39998 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39999 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40000 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40001 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40002 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40003 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40004 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40005 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40006 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40007 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40008 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40009 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40010 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40011 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40012 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40013 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40014 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40015 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40016 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40017 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40018 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40019 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40020 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40021 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40022 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40023 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40024 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40025 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40026 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40027 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40028 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40029 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40030 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40031 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40032 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40033 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40034 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40035 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40036 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40037 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40038 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40039 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40040 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40041 lib.adb, lib.ads, live.adb, live.ads,
40042 machcode.ads, make.adb, make.ads, makeusg.adb,
40043 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40044 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40045 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40046 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40047 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40048 mlib.ads, namet.adb, namet.ads, nlists.adb,
40049 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40050 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40051 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40052 osint.ads, output.adb, output.ads, par-ch10.adb,
40053 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40054 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40055 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40056 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40057 par-tchk.adb, par-util.adb, par.adb, par.ads,
40058 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40059 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40060 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40061 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40062 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40063 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40064 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40065 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40066 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40067 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40068 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40069 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40070 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40071 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40072 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40073 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40074 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40075 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40076 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40077 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40078 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40079 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40080 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40081 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40082 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40083 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40084 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40085 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40086 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40087 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40088 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40089 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40090 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40091 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40092 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40093 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40094 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40095 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40096 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40097 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40098 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40099 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40100 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40101 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40102 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40103 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40104 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40105 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40106 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40107 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40108 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40109 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40110 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40111 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40112 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40113 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40114 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40115 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40116 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40117 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40118 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40119 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40120 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40121 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40122 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40123 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40124 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40125 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40126 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40127 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40128 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40129 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40130 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40131 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40132 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40133 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40134 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40135 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40136 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40137 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40138 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40139 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40140 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40141 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40142 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40143 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40144 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40145 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40146 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40147 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40148 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40149 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40150 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40151 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40152 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40153 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40154 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40155 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40156 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40157 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40158 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40159 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40160 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40161 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40162 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40163 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40164 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40165 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40166 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40167 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40168 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40169 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40170 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40171 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40172 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40173 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40174 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40175 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40176 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40177 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40178 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40179 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40180 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40181 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40182 snames.ads, sprint.adb, sprint.ads, stand.adb,
40183 stand.ads, stringt.adb, stringt.ads, style.adb,
40184 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40185 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40186 switch-m.ads, switch.adb, switch.ads, system.ads,
40187 table.adb, table.ads, targparm.adb, targparm.ads,
40188 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40189 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40190 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40191 ttypef.ads, ttypes.ads, types.adb, types.ads,
40192 uintp.adb, uintp.ads, uname.adb, uname.ads,
40193 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40194 usage.adb, usage.ads, validsw.adb, validsw.ads,
40195 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40196 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40197 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40198 formatting and other trivial changes from ACT.
40200 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40202 * gigi.h, utils2.c (build_constructor):
40203 Rename gnat_build_constructor. Use build_constructor.
40204 * decl.c (gnat_to_gnu_entity)
40205 * trans.c (tree_transform, pos_to_constructor, extract_values)
40206 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40207 (unchecked_convert)
40208 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40209 (fill_vms_descriptor):
40212 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40214 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40215 * misc.c (gnat_tree_size): New function.
40216 (LANG_HOOKS_TREE_SIZE): Override.
40218 2003-04-03 Jason Merrill <jason@redhat.com>
40220 * misc.c (gnat_adjust_rli): #if 0.
40222 2003-03-31 Geert Bosch <bosch@gnat.com>
40225 * link.c : Fix misspelled "const" keyword
40227 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40230 * utils2.c: Adjust calls to put_var_into_stack.
40232 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40234 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40236 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40238 * misc.c (gnat_init): Update for new prototype.
40240 2003-03-05 Olivier Hainque <hainque@gnat.com>
40243 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40244 warning, and fix return type for the IN_RTS && !SJLJ case.
40246 2003-03-04 Tom Tromey <tromey@redhat.com>
40248 * Make-lang.in (ada.tags): New target.
40250 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40253 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40254 wrapper, which name remains constant whatever underlying GCC
40257 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40258 the stable interface needed for a-except.
40260 2003-03-02 Andreas Jaeger <aj@suse.de>
40262 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40263 gnat_ug_wnt.texi: Regenerate.
40265 2003-03-02 Laurent Guerby <guerby@acm.org>
40267 * Makefile.in (install-gnatlib): Match previous change there
40270 2003-02-28 Andreas Schwab <schwab@suse.de>
40272 * Make-lang.in (install-gnatlib): Change to ada directory before
40273 running make instead of using ada/Makefile directly.
40275 2003-02-18 Ben Elliston <bje@redhat.com>
40277 Part of PR ada/9406
40278 * gnat_ug.texi (Binder output file): Grammar fix.
40280 2003-02-18 Ben Elliston <bje@redhat.com>
40283 * 5qtaprop.adb (Sleep): Fix typo in comment.
40285 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40287 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40288 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40289 gnat_ug_wnt.texi: Regenerate.
40291 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40293 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40294 be created if necessary.
40295 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40296 if necessary. Remove erroneous and redundant gnatchop
40297 installation commands. Test for gnatdll before attempting
40299 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40300 and gnatdll from all plausible locations.
40302 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40304 * utils2.c (build_unary_op): Don't check flag_volatile.
40305 * gnat_ug.texi: Remove -fvolatile from example.
40306 * gnat_ug_vxw.texi: Likewise.
40308 2003-01-29 Laurent Guerby <guerby@acm.org>
40311 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40312 * Makefile.in: match previous change.
40313 * Make-lang.in: match previous change.
40315 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40317 * 5rosinte.ads: Add SIGXCPU.
40318 * 5rtpopsp.adb: New file.
40319 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40320 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40321 specific file 5rtpopsp.adb.
40322 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40323 is likely needed for all newlib targets.
40324 * init.c: Add RTEMS specific version of __gnat_initialize().
40326 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40328 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40330 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40332 * init.c (__gnat_error_handler): Make msg const.
40334 * gmem.c (convert_addresses): Move declaration ...
40335 * adaint.h: ... here.
40336 * adaint.c (convert_addresses): Adapt addrs type to match
40339 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40341 2003-01-24 Andreas Schwab <schwab@suse.de>
40343 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40344 size_t to avoid warning.
40346 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40348 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40350 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40352 * gnat_rm.texi: Remove RCS version number.
40354 * ada-tree.h (union lang_tree_node): Add chain_next option.
40356 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40358 * Make-lang.in (ada.install-info, ada.install-common,
40359 ada.uninstall): Prepend $(DESTDIR) to the destination
40360 directory in all (un)installation commands.
40361 * Makefile.in (install-gnatlib, install-rts): Ditto.
40363 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40365 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40366 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40367 gnat_ug_wnt.texi: Regenerate.
40369 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40371 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40373 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40374 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40375 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40376 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40377 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40378 $(srcdir)/doc/include/gcc-common.texi.
40380 2002-12-15 Geert Bosch <bosch@gnat.com>
40382 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40384 2002-12-14 Geert Bosch <bosch@gnat.com>
40387 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40388 case of a body created for a Renaming_As_Body, on which
40389 conformance checks are not performed.
40391 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40393 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40394 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40395 not already included.
40396 * Make-lang.in: Update dependencies.
40398 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40399 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40400 solution to buffer overflow bug on GNU/Linux.
40402 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40406 * bindgen.adb: Remove all references to Public_Version.
40407 * comperr.adb: Remove all references to Public_Version and
40408 GNATPRO_Version; correct bug reporting instructions.
40409 * comperr.ads: Change to match bug box.
40410 * gnatvsn.ads: Remove all references to Public version and
40413 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40416 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40420 * config-lang.in: Remove diff_excludes.
40422 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40425 * trans.c (gnu_pending_elaboration_lists): New GC root.
40426 (build_unit_elab): Use..
40428 2002-10-30 Geert Bosch <bosch@gnat.com>
40431 * misc.c : Include optabs.h
40433 * Make-lang.in (misc.o): Add dependency on optabs.h
40435 2002-10-29 Geert Bosch <bosch@gnat.com>
40438 * Make-lang.in (gnatbind): Depend on CONFIG_H
40440 2002-10-29 Geert bosch <bosch@gnat.com>
40443 * misc.c: Unrevert misc.c (1.13)
40445 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40447 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40448 maintainership comments.
40450 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40453 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40454 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40455 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40456 7staprop.adb: Correct statements in comments about
40457 maintainership of GNAT.
40460 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40461 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40462 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40463 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40464 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40465 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40466 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40467 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40468 comments about maintainership of GNAT.
40470 PR ada/6919 (forward port of patch for PR ada/5904)
40471 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40472 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40473 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40474 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40475 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40476 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40477 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40478 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40479 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40480 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40481 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40482 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40483 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40484 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40485 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40486 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40487 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40488 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40489 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40490 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40491 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40492 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40493 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40494 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40495 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40496 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40497 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40498 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40499 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40500 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40501 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40502 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40503 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40504 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40505 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40506 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40507 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40508 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40509 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40510 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40511 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40512 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40513 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40514 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40515 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40516 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40517 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40518 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40519 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40520 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40521 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40522 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40523 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40524 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40525 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40526 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40527 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40528 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40529 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40530 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40531 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40532 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40533 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40534 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40535 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40536 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40537 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40538 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40539 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40540 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40541 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40542 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40543 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40544 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40545 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40546 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40547 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40548 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40549 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40550 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40551 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40552 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40553 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40554 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40555 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40556 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40557 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40558 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40559 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40560 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40561 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40562 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40563 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40564 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40565 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40566 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40567 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40568 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40569 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40570 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40571 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40572 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40573 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40574 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40575 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40576 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40577 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40578 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40579 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40580 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40581 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40582 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40583 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40584 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40585 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40586 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40587 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40588 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40589 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40590 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40591 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40592 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40593 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40594 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40595 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40596 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40597 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40598 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40599 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40600 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40601 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40602 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40603 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40604 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40605 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40606 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40607 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40608 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40609 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40610 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40611 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40612 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40613 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40614 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40615 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40616 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40617 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40618 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40619 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40620 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40621 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40622 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40623 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40624 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40625 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40626 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40627 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40628 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40629 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40630 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40631 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40632 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40633 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40634 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40635 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40636 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40637 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40638 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40639 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40640 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40641 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40642 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40643 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40644 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40645 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40646 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40647 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40648 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40649 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40650 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40651 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40652 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40653 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40654 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40655 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40656 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40657 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40658 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40659 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40660 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40661 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40662 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40663 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40664 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40665 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40666 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40667 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40668 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40669 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40670 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40671 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40672 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40673 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40674 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40675 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40676 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40677 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40678 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40679 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40680 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40681 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40682 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40683 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40684 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40685 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40686 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40687 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40688 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40689 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40690 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40691 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40692 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40693 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40694 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40695 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40696 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40697 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40698 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40699 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40700 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40701 stringt.ads stringt.h style.adb style.ads stylesw.adb
40702 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40703 table.adb table.ads targparm.adb targparm.ads targtyps.c
40704 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40705 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40706 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40707 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40708 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40709 usage.ads utils.c utils2.c validsw.adb validsw.ads
40710 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40711 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40712 xtreeprs.adb: Correct statements in comments about maintainership
40715 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40717 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40718 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40719 * gnatvsn.ads: Gnat_Version_String is now a function.
40720 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40721 copy the C version_string into a String and return it.
40722 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40723 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40724 Remove pragma Ident (Gnat_Version_String). If this was the
40725 sole use of package Gnatvsn, remove the with statement too.
40726 * gnat1drv.adb: Tweak -gnatv output.
40728 2002-09-17 Richard Henderson <rth@redhat.com>
40730 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40731 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40732 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40733 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40734 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40735 and real_2expN instead of a loop.
40736 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40737 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40739 2002-08-25 Andre Leis <a.leis@gmx.net>
40740 David Billinghurst <David.Billinghurst@riotinto.com>
40742 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40744 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40746 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40747 Remove $(CONFIG_H) dependency.
40749 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40751 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40753 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40755 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40757 * misc.c (gnat_decode_option): Likewise.
40759 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
40761 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40762 function approach did not work well because of a side effect (the
40763 function call could reallocate the table which was being indexed
40764 using its result). Fixes ada/4851. [RESURRECTED]
40766 2002-07-01 Roger Sayle <roger@eyesopen.com>
40768 * ada/utils.c (builtin_function): Accept an additional parameter.
40770 2002-06-28 Andreas Jaeger <aj@suse.de>
40773 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40776 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40778 * Makefile.in (SHELL): Set to @SHELL@.
40780 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40782 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40783 array size calculation.
40785 2002-06-04 Andreas Jaeger <aj@suse.de>
40787 * Make-lang.in (gnatbind): Readd rule that has been lost in last
40790 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
40792 Merge from pch-branch:
40794 * config-lang.in (gtfiles): Add ada-tree.h.
40795 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40796 (SET_TYPE_MODULUS): New.
40797 (SET_TYPE_INDEX): New.
40798 (SET_TYPE_DIGITS_VALUE): New.
40799 (SET_TYPE_RM_SIZE): New.
40800 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40801 (SET_TYPE_ADA_SIZE): New.
40802 (SET_TYPE_ACTUAL_BOUNDS): New.
40803 (SET_DECL_CONST_CORRESPONDING_VAR): New.
40804 (SET_DECL_ORIGINAL_FIELD): New.
40805 (TREE_LOOP_ID): Correct typo.
40806 * decl.c: Use new macros.
40807 * utils.c: Include debug.h, use new macros.
40808 * utils2.c: Use new macros.
40810 * ada-tree.h: Update all macros for new tree description.
40811 (struct tree_loop_id): New.
40812 (union lang_tree_node): New.
40813 (struct lang_decl): New.
40814 (struct lang_type): New.
40815 * misc.c (gnat_mark_tree): Delete.
40816 (LANG_HOOKS_MARK_TREE): Delete.
40817 * trans.c (tree_transform): No longer any need to cast
40820 * utils.c (struct language_function): New dummy structure.
40822 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40823 (misc.o): Likewise.
40824 (utils.o): Likewise; also gtype-ada.h.
40825 * Make-lang.in (gnat1): Add dependency on s-gtype.
40826 (gnatbind): Add dependency on $(CONFIG_H).
40827 * utils.c: Correct last #include.
40828 (stuct e_stack): Remove unnecessary 'static'.
40829 (mark_e_stack): Remove unused prototype.
40831 * scn-nlit.adb: Remove whitespace after version number to
40832 keep lines under 80 chars.
40833 * snames.adb: Likewise.
40834 * treepr.ads: Likewise.
40836 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40837 (misc.o): Likewise.
40838 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40839 * config-lang.in (gtfiles): New.
40840 * decl.c: Use gengtype for roots.
40841 * gigi.h: Use gengtype for roots.
40842 * trans.c: Use gengtype for roots.
40843 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
40845 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
40847 * misc.c (gnat_init): Adjust setting of internal_error_function.
40849 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
40851 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40852 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40853 gnat_ug_wnt.texi: Regenerate.
40855 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
40857 * 5ntaprop.adb (with System.OS_Primitives): Remove.
40859 * cstreams.c (max_path_len): Move from here ...
40860 * adaint.c (__gnat_max_path_len): ... to here.
40861 * adaint.c (__gnat_max_path_len): Declare.
40862 * g-dirope.adb (Max_Path): Adjust.
40863 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40864 * i-cstrea.ads (max_path_len): Adjust.
40865 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40866 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40868 * Makefile.in, Make-lang.in: Documentation is now built in
40869 Make-lang.in. Store Info and generated Texinfo files in the
40871 * gnat_ug.texi: Remove CVS keywords, correct version number.
40872 Set file name correctly.
40874 * gnat_ug_*.texi: Add.
40875 * .cvsignore: Ignore generated Texinfo files.
40877 2002-05-30 Zack Weinberg <zack@codesourcery.com>
40879 * ada.h: Add MI guard macro.
40880 (SUBTYPE): Define constants with an anonymous enum, not static
40882 (IN): Cast constants to appropriate type before use.
40884 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
40886 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40889 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40891 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40892 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40893 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40894 (ALL_ADA_CFLAGS): Likewise.
40895 (ADA_INCLUDES): Likewise.
40896 Adapt for new working dir.
40897 (GNATBIND): Use Makefile.in version.
40898 (.SUFFIXES): Copy from Makefile.in.
40899 (ada-warn): Define.
40900 (.adb.o, .ads.o): Copy from Makefile.in.
40901 Added $(OUTPUT_OPTION).
40902 (GNAT1_C_OBJS): Moved from Makefile.in.
40903 Prefix with ada subdir.
40904 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40905 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40906 Adapt for new working dir.
40907 (EXTRA_GNATBIND_OBJS): Likewise.
40908 (ADA_BACKEND): Moved from Makefile.in.
40909 Renamed to avoid conflict with global BACKEND.
40911 (TARGET_ADA_SRCS): Moved from Makefile.in.
40912 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40914 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40915 (ada_extra_files): Moved from Makefile.in.
40916 Prefix with ada subdir.
40917 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40918 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40919 (ada/nmake.ads): Likewise.
40920 (update-sources): Moved from Makefile.in.
40921 Prefix with ada subdir.
40922 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40923 (ADA_TREE_H): Likewise.
40924 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40925 (ada/memtrack.o): Likewise.
40926 (ada/adadecode.o): Likewise.
40927 Update dependencies.
40928 (ada/adaint.o): New.
40929 (ada/argv.o): Moved from Makefile.in.
40930 Prefix with ada subdir.
40931 Update dependencies.
40932 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40933 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40934 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40935 Prefix with ada subdir.
40936 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40937 (GNAT DEPENDENCIES): Regenerate.
40938 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40939 toplevel Makefile.in.
40940 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40941 (TARGET_ADA_SRCS): Removed.
40942 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40943 (GNATBIND_OBJS): Likewise.
40944 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40945 (BACKEND): Removed.
40946 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40947 (TREE_H): Likewise.
40948 (ada_extra_files): Likewise.
40949 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40950 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40951 (update-sources): Likewise.
40952 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40953 (ADA_TREE_H): Likewise.
40954 (adadecoce.o): Likewise.
40955 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40956 (GNAT DEPENDENCIES): Likewise.
40958 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40960 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40961 * Makefile.in: Likewise.
40963 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40965 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40966 Restore $(CONFIG_H) and prefix.o dependencies.
40967 (ada.stage[1-4]): Depend on stage?-start.
40969 * Makefile.in (b_gnatb.c): Depend on interfac.o.
40971 2002-05-02 Jim Wilson <wilson@redhat.com>
40973 * utils.c (finish_record_type): Change record_size to record_type.
40975 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
40977 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40978 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40979 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40981 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
40983 * misc.c (gnat_parse_file): Update.
40985 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
40987 * misc.c (gnat_init): Don't set lang_attribute_common.
40989 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
40991 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40993 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
40995 * gnat_ug.texi: New file.
40997 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
40998 instead of gfdl.texi
41000 * xgnatug.adb, ug_words: New files.
41002 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41003 gnat_rm and gnat-style manuals.
41005 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41007 * gigi.h (incomplete_type_error): Remove.
41008 * utils.c (incomplete_type_error): Remove.
41010 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41012 * trans.c (tree_transform): Add has_scope argument to
41013 expand_start_stmt_expr.
41015 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41017 * gigi.h (truthvalue_conversion): Rename.
41018 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41019 * trans.c (tree_transform): Update.
41020 * utils2.c (truthvalue_conversion): Rename, update.
41021 (build_binary_op, build_unary_op): Update.
41023 2002-04-04 Laurent Guerby <guerby@acm.org>
41025 * make.adb: Implement -margs, remove restriction about file name placement.
41026 * makeusg.adb: Documentation update.
41027 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41028 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41030 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41032 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41033 (builtin_function): Similarly.
41035 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41037 * decl.c (gnat_to_gnu_entity): Update.
41038 * gigi.h (mark_addressable): Rename.
41039 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41040 * trans.c (tree_transform): Update.
41041 * utils.c (create_var_decl): Update.
41042 * util2.c (build_binary_op, build_unary_op,
41043 fill_vms_descriptor): Update.
41044 (mark_addressable): Rename, update.
41046 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41048 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41050 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41051 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41052 * trans.c (tree_transform, convert_with_check): Update.
41053 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41056 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41058 * gigi.h (finish_incomplete_decl): Rename.
41059 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41060 * utils.c (gnat_init_decl_processing): Don't set hook.
41061 (finish_incomplete_decl): Rename.
41063 2002-03-29 Andreas Schwab <schwab@suse.de>
41065 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41068 2001-03-28 Robert Dewar <dewar@gnat.com>
41071 (Remove_Checks): New procedure
41074 (Remove_Checks): New procedure
41077 Use new Duplicate_Subexpr functions
41078 (Duplicate_Subexpr_No_Checks): New procedure
41079 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41080 (Duplicate_Subexpr): Restore original form (checks duplicated)
41081 (Duplicate_Subexpr): Call Remove_Checks
41084 (Duplicate_Subexpr_No_Checks): New procedure
41085 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41086 Add 2002 to copyright notice
41088 * sem_util.adb: Use new Duplicate_Subexpr functions
41091 (Eval_Indexed_Component): This is the place to call
41092 Constant_Array_Ref and to replace the value. We simply merge
41093 the code of this function in here, since it is now no longer
41094 used elsewhere. This fixes the problem of the back end not
41095 realizing we were clever enough to see that this was
41097 (Expr_Val): Remove call to Constant_Array_Ref
41098 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41100 (Constant_Array_Ref): Deal with string literals (patch
41101 suggested by Zack Weinberg on the gcc list)
41103 2001-03-28 Ed Schonberg <schonber@gnat.com>
41105 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41106 Duplicate_Subexpr_Move_Checks.
41108 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41109 Duplicate_Subexpr_Move_Checks.
41111 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41112 value of array exists before retrieving it (it may a private
41113 protected component in a function).
41115 2002-03-28 Geert Bosch <bosch@gnat.com>
41117 * prj-pp.adb : New file.
41119 * prj-pp.ads : New file.
41121 2002-03-28 Andreas Jaeger <aj@suse.de>
41123 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41125 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41127 * misc.c (gnat_expand_expr): Move prototype.
41129 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41131 * misc.c (insert_default_attributes): Remove.
41133 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41135 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41136 (gnat_init): Don't set hook.
41137 (gnat_expand_expr): Fix prototype.
41139 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41141 * misc.c (ggc_p): Remove.
41143 2002-03-27 Geert Bosch <bosch@gnat.com>
41145 * prj-makr.ads, prj-makr.adb : New files.
41147 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41149 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41150 (lang_mark_tree): Make static, rename.
41152 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41154 * misc.c (maybe_build_cleanup): Remove.
41156 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41158 * gigi.h (yyparse): Remove.
41160 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41162 From Ben Brosgol <brosgol@gnat.com>
41163 * gnat_rm.texi: Sync with ACT version.
41165 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41167 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41168 (gnat_init): Remove old hook.
41170 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41172 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41173 (yyparse): Rename gnat_parse_file.
41175 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41177 Delete all lines containing "$Revision:".
41178 * xeinfo.adb: Don't look for revision numbers.
41179 * xnmake.adb: Likewise.
41180 * xsinfo.adb: Likewise.
41181 * xsnames.adb: Likewise.
41182 * xtreeprs.adb: Likewise.
41184 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41186 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41187 gnat_tree_code_name): Delete.
41188 (tree_code_type, tree_code_length, tree_code_name): Define.
41189 (gnat_init): Don't try to copy into the various tree_code
41192 2002-03-11 Richard Henderson <rth@redhat.com>
41194 * Makefile.in (.NOTPARALLEL): Add fake tag.
41196 2002-03-07 Geert Bosch <bosch@gnat.com>
41198 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41199 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41200 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41201 switch-m.adb, switch-m.ads : New files.
41203 2002-03-07 Geert Bosch <bosch@gnat.com>
41205 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41206 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41207 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41208 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41209 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41210 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41211 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41212 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41213 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41214 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41215 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41216 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41217 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41218 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41219 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41220 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41221 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41222 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41223 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41224 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41225 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41226 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41227 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41228 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41229 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41230 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41231 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41232 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41233 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41234 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41235 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41236 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41237 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41238 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41239 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41240 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41241 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41242 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41243 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41244 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41245 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41246 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41247 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41248 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41249 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41250 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41251 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41252 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41253 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41254 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41255 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41256 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41257 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41258 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41259 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41260 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41261 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41262 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41263 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41264 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41265 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41266 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41267 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41268 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41269 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41270 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41271 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41272 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41273 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41274 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41275 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41276 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41277 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41278 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41279 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41280 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41281 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41282 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41283 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41284 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41285 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41286 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41287 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41288 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41289 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41290 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41291 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41292 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41293 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41294 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41295 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41296 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41297 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41298 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41299 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41300 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41301 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41303 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41304 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41305 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41306 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41308 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41309 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41311 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41312 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41314 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41315 from mdllfile.ad[bs] and mdlltool.ad[bs]
41317 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41319 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41320 lieu of explicit sizeof/sizeof.
41322 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41324 * misc.c (copy_lang_decl): Remove.
41326 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41328 * misc.c: Delete traditional-mode-related code copied from the
41329 C front end but not used, or used only to permit the compiler
41332 2002-02-07 Richard Henderson <rth@redhat.com>
41334 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41335 * adaint.h (__gnat_to_gm_time): Update prototype.
41337 2002-01-30 Richard Henderson <rth@redhat.com>
41339 * trans.c (tree_transform) [N_Loop_Statement]: Use
41340 expand_exit_loop_top_cond.
41342 2001-12-23 Richard Henderson <rth@redhat.com>
41344 * utils.c (end_subprog_body): Push GC context around
41345 rest_of_compilation for nested functions.
41347 2001-12-23 Richard Henderson <rth@redhat.com>
41349 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41351 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41353 * gnat-style.texi (Declarations and Types): Remove ancient style
41354 rule which was mandated by code generation issues.
41356 * gnat-style.texi (header): Add @dircategory, @direntry.
41357 (title page): Remove date.
41358 (general) Add @./@: where approriate, and two spaces after the
41359 full stop at the end of a sentence. Use @samp markup when
41360 referring concrete lexical entities (keywords, attribute names
41361 etc.), and @syntax for ARM grammar elements. Use @r for English
41362 text in comments. Use @emph for emphasis. Change "if-statements"
41363 etc. to "if statements" (without @samp). Break long lines. Make
41364 casing of section names consistent.
41365 (Identifiers): Use @samp markup for variable names.
41366 (Comments): Use @samp markup for comment characters. Line-end
41367 comments may follow any Ada code, not just statements. Fix
41368 misspelling of "Integer" as "integer".
41369 (Loop statements): Do not use variable name "I", use "J".
41370 (Subprogram Declarations): Document alignment.
41371 (Subprogram Bodies, Block statements): Document empty line before
41374 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41376 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41377 function approach did not work well because of a side effect (the
41378 function call could reallocate the table which was being indexed
41379 using its result). Fixes ada/4851.
41381 2001-12-19 Robert Dewar <dewar@gnat.com>
41383 * bindgen.adb: Minor reformatting
41385 * cstand.adb: Minor reformatting
41387 * fmap.adb: Minor reformatting
41388 Change name from Add for Add_To_File_Map (Add is much too generic)
41389 Change Path_Name_Of to Mapped_Path_Name
41390 Change File_Name_Of to Mapped_File_Name
41391 Fix copyright dates in header
41394 Change name from Add for Add_To_File_Map (Add is much too generic)
41395 Change Path_Name_Of to Mapped_Path_Name
41396 Change File_Name_Of to Mapped_File_Name
41397 Fix copyright dates in header
41399 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41400 Add use clause for Fmap.
41402 * make.adb: Minor reformatting
41404 * osint.adb: Minor reformatting. Change of names in Fmap.
41405 Add use clause for Fmap.
41407 * prj-env.adb: Minor reformatting
41409 * prj-env.ads: Minor reformatting
41411 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41412 error found (there were odd exceptions to this general rule in
41413 -gnatec/-gnatem processing)
41415 2001-12-19 Olivier Hainque <hainque@gnat.com>
41417 * raise.c (__gnat_eh_personality): Exception handling personality
41418 routine for Ada. Still in rough state, inspired from the C++ version
41419 and still containing a bunch of debugging artifacts.
41420 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41421 inspired from the C++ library.
41423 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41424 exception handling integration.
41426 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41428 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41429 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41430 (HIE_OBJS): Add s-fat*.o
41431 (RAVEN_SOURCES): Remove files that are no longer required. Add
41432 interrupt handling files.
41433 (RAVEN_MOD): Removed, no longer needed.
41435 2001-12-19 Robert Dewar <dewar@gnat.com>
41437 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41438 Add 2001 to copyright date
41440 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41441 need to force universal inlining for these cases.
41443 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41445 * s-taprob.adb: Minor clean ups so that this unit can be used in
41448 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41449 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41451 2001-12-19 Vincent Celier <celier@gnat.com>
41453 * prj-tree.ads (Project_Node_Record): Add comments for components
41454 Pkg_Id and Case_Insensitive.
41456 2001-12-19 Pascal Obry <obry@gnat.com>
41458 * g-socket.adb: Minor reformatting. Found while reading code.
41460 2001-12-19 Robert Dewar <dewar@gnat.com>
41462 * prj-tree.ads: Minor reformatting
41464 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41466 * config-lang.in (diff_excludes): Remove.
41468 2001-12-17 Ed Schonberg <schonber@gnat.com>
41470 * sem_res.adb (Resolve_Selected_Component): do not generate a
41471 discriminant check if the selected component is a component of
41472 the argument of an initialization procedure.
41474 * trans.c (tree_transform, case of arithmetic operators): If result
41475 type is private, the gnu_type is the base type of the full view,
41476 given that the full view itself may be a subtype.
41478 2001-12-17 Robert Dewar <dewar@gnat.com>
41480 * sem_res.adb: Minor reformatting
41482 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41483 parameter in call to Machine (unknown horrible effects from this
41486 * urealp.h: Add definition of Round_Even for call to Machine
41487 Add third parameter for Machine
41489 2001-12-17 Ed Schonberg <schonber@gnat.com>
41491 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41492 predefined units in No_Run_Time mode.
41494 2001-12-17 Richard Kenner <kenner@gnat.com>
41496 * misc.c (insn-codes.h): Now include.
41498 2001-12-17 Olivier Hainque <hainque@gnat.com>
41500 * a-except.adb: Preparation work for future integration of the GCC 3
41501 exception handling mechanism
41502 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41503 to factorize previous code sequences and make them externally callable,
41504 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41505 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41506 Use the new notification routines.
41508 2001-12-17 Emmanuel Briot <briot@gnat.com>
41510 * prj-tree.ads (First_Choice_Of): Document the when others case
41512 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41514 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41515 HI-E mode, in order to support Ravenscar profile properly.
41517 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41518 mode on 32 bits targets.
41520 2001-12-17 Vincent Celier <celier@gnat.com>
41522 * fmap.adb: Initial version.
41524 * fmap.ads: Initial version.
41526 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41527 If search is successfully done, add to mapping.
41529 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41532 (Gnatmake): Add new local variable Mapping_File_Name.
41533 Create mapping file when using project file(s).
41534 Delete mapping file before exiting.
41536 * opt.ads (Mapping_File_Name): New variable
41538 * osint.adb (Find_File): Use path name found in mapping, if any.
41540 * prj-env.adb (Create_Mapping_File): New procedure
41542 * prj-env.ads (Create_Mapping_File): New procedure.
41544 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41547 * usage.adb: Add entry for new switch -gnatem.
41549 * Makefile.in: Add dependencies for fmap.o.
41551 2001-12-17 Ed Schonberg <schonber@gnat.com>
41553 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41554 is a package instantiation rewritten as a package body.
41555 (Install_Withed_Unit): Undo previous change, now redundant.
41557 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41560 (Compute_Length): Move conversion to Unsigned to callers.
41561 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41562 Compute_Length and Determine_Range.
41563 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41564 Compute_Length and Determine_Range.
41565 Above changes fix problem with length computation for supernull arrays
41566 where Max (Len, 0) wasn't getting applied due to the Unsigned
41567 conversion used by Compute_Length.
41569 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41572 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41573 System.Secondary_Stack.
41574 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41576 Remove unused entity RE_Exception_Data.
41578 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41580 * rident.ads (No_Secondary_Stack): New restriction.
41582 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41584 * gnat_rm.texi: Fix minor typos. Found while reading the section
41585 regarding "Bit_Order Clauses" that was sent to a customer.
41586 Very interesting documentation!
41588 2001-12-17 Robert Dewar <dewar@gnat.com>
41590 * sem_case.adb (Choice_Image): Avoid creating improper character
41591 literal names by using the routine Set_Character_Literal_Name. This
41592 fixes bombs in certain error message cases.
41594 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41596 * a-reatim.adb: Minor reformatting.
41598 2001-12-17 Ed Schonberg <schonber@gnat.com>
41600 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41601 case where the formal is an extension of another formal in the current
41602 unit or in a parent generic unit.
41604 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41606 * s-tposen.adb: Update comments. Minor reformatting.
41607 Minor code clean up.
41609 * s-tarest.adb: Update comments. Minor code reorganization.
41611 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41613 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41616 2001-12-17 Robert Dewa <dewar@gnat.com>
41618 * exp_attr.adb: Minor reformatting
41620 2001-12-17 Ed Schonberg <schonber@gnat.com>
41622 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41623 derivations nested within a child unit: verify that the parent
41624 type is declared in an outer scope.
41626 2001-12-17 Robert Dewar <dewar@gnat.com>
41628 * sem_ch12.adb: Minor reformatting
41630 2001-12-17 Ed Schonberg <schonber@gnat.com>
41632 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41633 warning if current unit is a predefined one, from which bodies may
41636 2001-12-17 Robert Dewar <dewar@gnat.com>
41638 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41639 Fix header format. Add 2001 to copyright date.
41641 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41642 which caused CE during compilation if checks were enabled.
41644 2001-12-17 Vincent Celier <celier@gnat.com>
41647 (Switches_Of): New function
41648 (Test_If_Relative_Path): New procedure
41649 (Add_Switches): Use new function Switches_Of
41650 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41651 When using a project file, test if there are any relative
41652 search path. Fail if there are any.
41653 (Gnatmake): Only add switches for the primary directory when not using
41654 a project file. When using a project file, change directory to the
41655 object directory of the main project file. When using a project file,
41656 test if there are any relative search path. Fail if there are any.
41657 When using a project file, fail if specified executable is relative
41658 path with directory information, and prepend executable, if not
41659 specified as an absolute path, with the exec directory. Make sure
41660 that only one -o switch is transmitted to the linker.
41662 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41665 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41666 when using a non standard naming scheme.
41667 (Check_Ada_Naming_Scheme): Make sure that error messages
41668 do not raise exceptions.
41669 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41670 (Language_Independent_Check): Check the exec directory.
41672 * prj.adb (Project_Empty): Add new component Exec_Directory
41675 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41676 (Project_Data): Add component Exec_Directory
41678 * snames.adb: Updated to match snames.ads revision 1.215
41680 * snames.ads: Added Exec_Dir
41682 2001-12-17 Robert Dewar <dewar@gnat.com>
41684 * make.adb: Minor reformatting
41686 * prj-nmsc.adb: Minor reformatting
41688 * snames.adb: Updated to match snames.ads
41690 * snames.ads: Alphebetize entries for project file
41692 2001-12-17 Ed Schonberg <schonber@gnat.com>
41694 * trans.c (process_freeze_entity): Do nothing if the entity is a
41695 subprogram that was already elaborated.
41697 2001-12-17 Richard Kenner <kenner@gnat.com>
41699 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41700 and Esize if object is referenced via pointer.
41702 2001-12-17 Ed Schonberg <schonber@gnat.com>
41704 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41705 is discrete before analyzing choices.
41707 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41709 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41710 containing the name of the Ada Main Program. This string is mainly
41711 intended for the debugger.
41712 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41714 2001-12-17 Robert Dewar <dewar@gnat.com>
41716 * ali.adb: Set new Dummy_Entry field in dependency entry
41718 * ali.ads: Add Dummy_Entry field to source dependency table
41720 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41722 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41724 * lib-writ.ads: Document dummy D lines for missing files.
41726 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41728 2001-12-17 Robert Dewar <dewar@gnat.com>
41730 * ali.adb: Type reference does not reset current file.
41732 * ali.adb: Recognize and scan renaming reference
41734 * ali.ads: Add spec for storing renaming references.
41736 * lib-xref.ads: Add documentation for handling of renaming references
41738 * lib-xref.adb: Implement output of renaming reference.
41741 (Determine_Range): Document local variables
41742 (Determine_Range): Make sure Hbound is initialized. It looks as though
41743 there could be a real problem here with an uninitialized reference
41744 to Hbound, but no actual example of failure has been found.
41746 2001-12-17 Laurent Pautet <pautet@gnat.com>
41749 Fix comment of Shutdown_Socket and Close_Socket. These functions
41750 should not fail silently because if they are called twice, this
41751 probably means that there is a race condition in the user program.
41752 Anyway, this behaviour is consistent with the rest of this unit.
41753 When an error occurs, an exception is raised with the error message
41754 as exception message.
41756 2001-12-17 Robert Dewar <dewar@gnat.com>
41758 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41759 that it happens before modification of Sloc values for -gnatD.
41761 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41762 so that it happens before modification of Sloc values for -gnatD.
41764 * switch.adb: Minor reformatting
41766 2001-12-15 Richard Henderson <rth@redhat.com>
41768 * sem_ch7.adb: Wrap comment.
41770 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41772 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41773 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41774 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41775 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41776 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41777 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41778 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41779 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41780 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41781 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41782 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41783 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41784 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41785 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41786 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41787 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41788 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41789 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41790 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41791 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41792 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41793 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41794 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41795 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41798 2001-12-14 Vincent Celier <celier@gnat.com>
41800 * osint.adb(Create_Debug_File): When an object file is specified,
41801 put the .dg file in the same directory as the object file.
41803 2001-12-14 Robert Dewar <dewar@gnat.com>
41805 * osint.adb: Minor reformatting
41807 * lib-xref.adb (Output_Instantiation): New procedure to generate
41808 instantiation references.
41810 * lib-xref.ads: Add documentation of handling of generic references.
41812 * ali.adb (Read_Instantiation_Ref): New procedure to read
41813 instantiation references
41815 * ali.ads: Add spec for storing instantiation references
41817 * bindusg.adb: Minor reformatting
41819 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41821 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41823 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41825 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41829 Add 2001 to copyright date
41830 Add entry for Latin-5 (Cyrillic ISO-8859-5)
41832 2001-12-14 Matt Gingell <gingell@gnat.com>
41834 * adaint.c: mktemp is a macro on Lynx and can not be used as an
41837 2001-12-14 Richard Kenner <kenner@gnat.com>
41839 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41840 if operand is CONSTRUCTOR.
41842 2001-12-14 Ed Schonberg <schonber@gnat.com>
41844 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41845 before emiting check on right-hand side, so that exception information
41848 2001-12-14 Richard Kenner <kenner@gnat.com>
41850 * utils.c (create_var_decl): Throw away initializing expression
41851 if just annotating types and non-constant.
41853 2001-12-14 Vincent Celier <celier@gnat.com>
41855 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41858 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41860 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41862 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41864 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41866 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41868 * ChangeLog: Remove piece of diff output.
41870 2001-12-14 Geert Bosch <bosch@gnat.com>
41872 * config-lang.in: Update copyright notice
41874 * layout.adb: Remove commented out code.
41876 * mdllfile.ads: Update copyright notice. Fix header format.
41878 * sem_case.ads: Likewise.
41880 * sem_ch3.adb: Minor reformatting.
41882 2001-12-12 Geert Bosch <bosch@gnat.com>
41884 * freeze.ads: Update copyright date.
41886 * g-comlin.ads: Minor reformatting.
41888 * gnat-style.texi: Fix typo.
41890 2001-12-12 Geert Bosch <bosch@gnat.com>
41892 * einfo.h: Regenerate.
41894 2001-12-12 Ed Schonberg <schonber@gnat.com>
41896 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41897 on known node types, rather than untyped fields. Further cleanups.
41899 2001-12-12 Robert Dewar <dewar@gnat.com>
41902 (Save_Entity_Descendant): Minor comment update.
41903 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41904 of an N_Attribute_Reference node. As per note below, this does not
41905 eliminate need for Associated_Node in attribute ref nodes.
41906 (Associated_Node): Documentation explicitly mentions attribute
41907 reference nodes, since this field is used in such nodes.
41909 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41911 2001-12-12 Robert Dewar <dewar@gnat.com>
41913 * s-stalib.adb: Add more comments on with statements being needed
41915 * par-ch12.adb: Minor reformatting
41917 * prj-dect.ads: Fix copyright header
41919 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41920 inputs fit in 32 bits, but the result still overflows.
41922 * s-fatgen.ads: Minor comment improvement
41924 2001-12-12 Ed Schonberg <schonber@gnat.com>
41926 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41927 formal derived type, look for an inherited component from the full
41928 view of the parent, if any.
41930 2001-12-12 Robert Dewar <dewar@gnat.com>
41932 * checks.ads (Apply_Alignment_Check): New procedure.
41934 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41935 ensure that the alignment of objects with address clauses is
41936 appropriate, and raise PE if not.
41938 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41939 Exp_Pakd.Known_Aligned_Enough
41941 * mdllfile.ads: Minor reformatting
41943 * mlib-fil.ads: Minor reformatting
41945 2001-12-12 Ed Schonberg <schonber@gnat.com>
41947 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41948 fix to any component reference if enclosing record has non-standard
41951 2001-12-12 Vincent Celier <celier@gnat.com>
41953 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41956 2001-12-12 Ed Schonberg <schonber@gnat.com>
41958 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41961 2001-12-12 Robert Dewar <dewar@gnat.com>
41963 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41965 2001-12-12 Emmanuel Briot <briot@gnat.com>
41967 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41968 and it adds dependencies to system.io.
41970 2001-12-12 Pascal Obry <obry@gnat.com>
41972 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41975 2001-12-11 Ed Schonberg <schonber@gnat.com>
41977 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41978 that is the parent of other generics, the instance body replaces the
41979 instance node. Retrieve the instance of the spec, which is the one
41980 that is visible in clients and within the body.
41982 2001-12-11 Vincent Celier <celier@gnat.com>
41984 * gnatmain.adb: Initial version.
41986 * gnatmain.ads: Initial version.
41988 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41990 * snames.adb: Updated to match snames.ads.
41992 * snames.ads: Added Gnatstub.
41994 2001-12-11 Vincent Celier <celier@gnat.com>
41996 * prj-attr.adb (Initialization_Data): Change name from
41997 Initialisation_Data.
41999 2001-12-11 Emmanuel Briot <briot@gnat.com>
42001 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42002 + and * applied to backslashed expressions like \r.
42004 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42006 * g-os_lib.ads: String_List type added, Argument_List type is now
42007 subtype of String_List.
42009 2001-12-11 Robert Dewar <dewar@gnat.com>
42011 * g-os_lib.ads: Change copyright to FSF
42012 Add comments for String_List type
42014 2001-12-11 Vincent Celier <celier@gnat.com>
42016 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42017 string to the buffer).
42019 2001-12-11 Ed Schonberg <schonber@gnat.com>
42021 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42024 * sem_attr.adb: Simplify previous fix for Address.
42025 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42026 to avoid anomalies where the bound of the type appears to raise
42029 2001-12-11 Robert Dewar <dewar@gnat.com>
42031 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42034 2001-12-11 Ed Schonber <schonber@gnat.com>
42036 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42037 renamed unit before checking for recursive instantiations.
42039 2001-12-11 Emmanuel Briot <briot@gnat.com>
42041 * prj.ads: Add comments for some of the fields.
42043 2001-12-11 Robert Dewar <dewar@gnat.com>
42045 * lib-xref.adb (Output_Refs): Don't output type references outside
42046 the main unit if they are not otherwise referenced.
42048 2001-12-11 Ed Schonberg <schonber@gnat.com>
42050 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42051 code and diagnose additional illegal uses
42053 * sem_util.adb (Is_Object_Reference): An indexed component is an
42054 object only if the prefix is.
42056 2001-12-11 Vincent Celier <celier@gnat.com>
42058 * g-diopit.adb: Initial version.
42060 * g-diopit.ads: Initial version.
42063 (Expand_Path): Avoid use of Unbounded_String
42064 (Find, Wildcard_Iterator): Moved to child package Iteration
42066 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42068 2001-12-11 Robert Dewar <dewar@gnat.com>
42070 * sem_attr.adb: Minor reformatting
42072 2001-12-11 Ed Schonberg <schonber@gnat.com>
42074 * sem_ch3.adb: Clarify some ???.
42076 2001-12-11 Robert Dewar <dewar@gnat.com>
42078 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42079 Exp_Pakd.Known_Aligned_Enough
42081 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42082 version is moved to Exp_Ch13.
42084 2001-12-11 Robert Dewar <dewar@gnat.com>
42086 * einfo.ads: Minor reformatting
42088 * exp_ch5.adb: Add comment for previous.change
42090 * ali.adb: New interface for extended typeref stuff.
42092 * ali.ads: New interface for typeref stuff.
42094 * checks.adb (Apply_Alignment_Check): New procedure.
42096 * debug.adb: Add -gnatdM for modified ALI output
42098 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42100 * lib-xref.adb: Extend generation of <..> notation to cover
42101 subtype/object types. Note that this is a complete rewrite,
42102 getting rid of the very nasty quadratic algorithm previously
42103 used for derived type output.
42105 * lib-xref.ads: Extend description of <..> notation to cover
42106 subtype/object types. Uses {..} for these other cases.
42107 Also use (..) for pointer types.
42109 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42111 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42112 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42114 2001-12-11 Vincent Celier <celier@gnat.com>
42117 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42118 Changed /BIND_ONLY to /ACTIONS=BIND
42119 Changed /LINK_ONLY to /ACTIONS=LINK
42121 2001-12-11 Ed Schonberg <schonber@gnat.com>
42123 * sem_ch8.adb (Find_Selected_Component): improved search for a
42124 candidate package in case of error.
42126 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42127 chain back on scope stack before reinstalling use clauses.
42129 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42130 is enabled, do not kill the code for the condition, to preserve
42133 2001-12-11 Robert Dewar <dewar@gnat.com>
42135 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42136 of conversion, not to result of conversion.
42138 2001-12-11 Ed Schonberg <schonber@gnat.com>
42140 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42141 before freezing parent. If the declarations are mutually recursive,
42142 an access to the current record type may be frozen before the
42143 derivation is complete.
42145 2001-12-05 Vincent Celier <celier@gnat.com>
42147 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42148 -c /COMPILE_ONLY, -l /LINK_ONLY
42151 (Bind_Only): New Flag
42152 (Link_Only): New flag
42154 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42157 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42160 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42161 (Gnatmake): Set the step flags. Only perform a step if the
42162 corresponding step flag is True.
42163 (Scan_Make_Arg): Reset the bind and link step flags when -u
42164 or -gnatc has been specified.
42166 2001-12-05 Ed Schonberg <schonber@gnat.com>
42168 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42169 get bounds from right operand.
42171 * sem_eval.adb: Minor reformatting
42173 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42174 than Index'First, its lower bound may be different from 1.
42176 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42179 2001-12-05 Vincent Celier <celier@gnat.com>
42181 * prj-nmsc.adb Minor reformatting
42183 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42184 set and libraries are not supported.
42186 2001-12-05 Ed Schonberg <schonber@gnat.com>
42188 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42189 private view explicitly, so the back-end can treat as a global
42192 2001-12-05 Ed Schonberg <schonber@gnat.com>
42194 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42195 unit, always replace instance node with new body, for ASIS use.
42197 2001-12-05 Vincent Celier <celier@gnat.com>
42199 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42200 libraries are not supported and both attributes Library_Name and
42201 Library_Dir are specified.
42203 * prj-proc.adb (Expression): Set location of Result to location of
42206 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42207 (prj-nmsc is now importing MLib.Tgt)
42209 * prj-proc.adb: Put the change indicated above that was forgotten.
42211 2001-12-05 Robert Dewar <dewar@gnat.com>
42213 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42215 2001-12-05 Ed Schonberg <schonber@gnat.com>
42217 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42218 constraint, introduce explicit subtype declaration and derive from it.
42220 * sem_ch3.adb: Minor reformatting
42222 2001-12-05 Robert Dewar <dewar@gnat.com>
42224 * checks.adb (Determine_Range): Increase cache size for checks.
42227 * exp_ch6.adb: Minor reformatting
42228 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42229 a parameter whose root type is System.Address, since treating such
42230 subprograms as pure in the code generator is almost surely a mistake
42231 that will lead to unexpected results.
42233 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42234 change handling of conversions.
42236 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42238 2001-12-05 Ed Schonberg <schonber@gnat.com>
42240 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42241 aggregate with static wrong size, attach generated Raise node to
42244 2001-12-05 Robert Dewar <dewar@gnat.com>
42246 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42247 Fixes compilation abandoned bomb in B24009B.
42249 2001-12-05 Ed Schonberg <schonber@gnat.com>
42252 Document use of Associated_Node on Selected_Components.
42253 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42254 to clarify use of untyped descendant fields.
42256 2001-12-05 Robert Dewar <dewar@gnat.com>
42258 * prj-dect.ads: Add ??? comment
42259 Add 2001 to copyright notice (was not done in after all)
42261 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42263 * prj.ads: Minor reformatting throughout, and add some ??? comments
42265 * snames.ads: Minor reformatting
42267 2001-12-05 Geert Bosch <bosch@gnat.com>
42269 * snames.adb: Autoupdate
42271 2001-12-05 Vincent Celier <celier@gnat.com>
42273 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42275 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42277 * prj-env.adb: Minor comment changes (modifying -> extends).
42279 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42281 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42284 * prj.adb (Initialize): Change Modifying to Extends.
42286 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42288 * prj.ads: Minor comment change (Modifying -> extending).
42290 * snames.ads: Change modifying to extends.
42292 2001-12-05 Robert Dewar <dewar@gnat.com>
42294 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42297 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42298 do this after all. Add 2001 to copyright notice
42300 2001-12-04 Geert Bosch <bosch@gnat.com>
42302 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42304 2001-12-04 Robert Dewar <dewar@gnat.com>
42306 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42307 location if we already have errors. Stops some cases of cascaded
42310 * errout.adb: Improve comment.
42312 2001-12-04 Robert Dewar <dewar@gnat.com>
42315 (Analyze_Formal_Type_Definition): Defend against Error.
42316 (Analyze_Formal_Subprogram): Defend against Error.
42318 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42319 remove following semicolon if present. Removes cascaded error.
42321 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42324 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42325 exceptions equals 0.
42326 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42327 Fixes PIWG E tests (which have to be run with -gnatL).
42329 2001-12-04 Robert Dewar <dewar@gnat.com>
42331 * einfo.ads: Minor reformatting
42333 2001-12-04 Ed Schonberg <schonber@gnat.com>
42335 * einfo.ads: Block_Node points to the identifier of the block, not to
42336 the block node itself, to preserve the link when the block is
42337 rewritten, e.g. within an if-statement with a static condition.
42339 * inline.adb (Cleanup_Scopes): recover block statement from block
42340 entity using new meaning of Block_Node.
42342 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42343 identifier of block node, rather than to node itself.
42345 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42348 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42349 (Discrimify): Go back to setting the Etypes of the selected component
42350 because the Vname component does not exist at this point and will
42351 fail name resolution. Also set Analyzed.
42352 Remove with and use of Sem_Res.
42354 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42356 * Makefile.in: (HIE_SOURCES): add s-fat*.
42358 2001-12-04 Robert Dewar <dewar@gnat.com>
42361 (Compile_Time_Known_Attribute): New procedure.
42362 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42363 proper range check.
42365 2001-12-04 Ed Schonberg <schonber@gnat.com>
42367 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42368 processing discriminants to diagnose illegal default values.
42370 2001-12-04 Ed Schonberg <schonber@gnat.com>
42372 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42373 access discriminant within a type extension that constrains its
42374 parent discriminants.
42376 2001-12-04 Ed Schonberg <schonber@gnat.com>
42378 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42379 is malformed, use instance of Any_Id to allow analysis to proceed.
42381 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42382 type definition is illegal.
42383 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42386 2001-12-04 Ed Schonberg <schonber@gnat.com>
42388 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42391 2001-12-04 Robert Dewar <dewar@gnat.com>
42393 * errout.adb: Minor reformatting
42395 2001-12-04 Robert Dewar <dewar@gnat.com>
42397 * exp_util.adb: Minor reformatting from last change
42399 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42400 which is a rewriting of an expression, traverse the original
42401 expression to remove warnings that may have been posted on it.
42403 2001-12-04 Ed Schonberg <schonber@gnat.com>
42405 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42406 record that has other packed components.
42408 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42410 * adaint.c: Minor cleanups.
42412 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42414 * adaint.c: Do not use utime.h on vxworks.
42416 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42418 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42419 more confusion than it solves.
42421 2001-12-04 Geert bosch <bosch@gnat.com>
42423 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42425 2001-12-04 Geert Bosch <bosch@gnat.com>
42427 * Makefile.in (update-sources): New target.
42428 For use by gcc_release script.
42430 2001-12-04 Ed Schonberg <schonber@gnat.com>
42432 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42433 a configuration pragma, it is now legal wherever a pragma can appear.
42435 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42437 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42438 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42439 is now @CROSS@ -DIN_GCC; update comment.
42441 2001-12-04 Robert Dewar <dewar@gnat.com>
42443 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42444 Fix problem that stopped ceinfo from working
42446 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42448 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42450 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42453 (File_Time_Stamp): New procedure.
42454 (Preserve_Mode): New boolean.
42455 (Write_Unit): Pass time stamp.
42456 Implement -p switch (preserve time stamps).
42458 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42460 * gnatchop.adb: Do usage info for -p switch
42462 * adaint.h (__gnat_set_file_time_name): New function
42464 * adaint.c (__gnat_set_file_time_name): Implement
42466 * adaint.h: Fix typo
42468 2001-12-03 Robert Dewar <dewar@gnat.com>
42470 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42471 have Associated_Node.
42473 2001-12-03 Robert Dewar <dewar@gnat.com>
42475 * prj-proc.adb: Minor reformatting
42477 * make.adb: Minor reformatting
42479 2001-12-03 Geert Bosch <bosch@gnat.com>
42481 * make.adb: Minor reformatting.
42483 2001-12-03 Robert Dewar <dewar@gnat.com>
42485 * sem_ch12.adb: Minor reformatting
42487 2001-12-03 Ed Schonberg <schonber@gnat.com>
42489 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42490 push Standard on the stack before analyzing the instance body,
42491 in order to have a clean visibility environment.
42493 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42495 2001-12-03 Ed Schonberg <schonber@gnat.com>
42497 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42498 instantiation of a body that contains an inlined body.
42500 2001-12-03 Ed Schonberg <schonber@gnat.com>
42503 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42504 to prevent freezing within formal packages.
42505 (Freeze_Subprogram_Body): If body comes from another instance that
42506 appeared before its own body, place freeze node at end of current
42507 declarative part, to prevent a back-end crash.
42508 (Inline_Instance_Body): Handle properly a package instance within
42509 a subprogram instance that is a child unit.
42511 2001-12-01 Graham Stott <grahams@redhat.com>
42513 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42514 and add optabs.h dependency.
42516 * misc.c: Include optabs.h
42517 (gnat_tree_code_type): Make static and const.
42518 (gnat_tree_code_length): Likewise.
42519 (gnat_tree_code_name): Likewise.
42520 (update_setjmp_buf): Obtain operands mode from insn_data.
42522 2001-11-29 Richard Henderson <rth@redhat.com>
42524 * init.c: Remove obsolete dwarf2 frame.h section.
42526 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42528 * Make-lang.in (ada.generated-manpages): New dummy target.
42530 2001-11-29 Ed Schonberg <schonber@gnat.com>
42532 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42533 into Command, an array conversion is illegal here. Uncovered by
42536 2001-11-28 Geert Bosch <bosch@gnat.com>
42538 * init.c: Minor whitespace changes.
42540 2001-11-28 Doug Rupp <rupp@gnat.com>
42542 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42545 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42547 * misc.c (gnat_expand_constant): Move declaration above
42548 definition of lang_hooks.
42549 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42550 (gnat_init): lang_expand_constant no longer exists.
42552 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42553 always have vprintf.
42554 (gnat_init): Always call set_internal_error_function.
42556 2001-11-27 Andreas Jaeger <aj@suse.de>
42558 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42560 2001-11-27 Laurent Guerby <guerby@acm.org>
42562 * Makefile.in: Regenerate Ada dependencies.
42564 2001-11-26 Richard Henderson <rth@redhat.com>
42566 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42567 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42568 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42570 2001-11-25 Laurent Guerby <guerby@acm.org>
42572 * sysdep.c (rts_get_*): Fix style.
42574 2001-11-19 Laurent Guerby <guerby@acm.org>
42576 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42577 since it is of no apparent use and cause warnings.
42579 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42581 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42583 (gnat_init): Don't return NULL.
42584 (finish_parse): Remove.
42586 2001-11-17 Laurent Guerby <guerby@acm.org>
42588 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42589 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42590 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42591 * lang-spec.h: Add missing struct field to silence warnings.
42592 * sysdep.c (rts_get_*): Provide K&R prototype.
42593 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42594 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42595 * tracebak.c (__gnat_backtrace): Remove unused variable.
42596 * utils.c (end_subprog_body): Move to K&R style.
42598 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42600 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42602 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42604 * misc.c (gnat_init): Change prototype. Include the
42605 functionality of the old init_parse and init_decl_processing.
42606 (gnat_init_decl_processing): New prototype.
42607 (init_parse): Remove.
42608 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42610 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42612 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42613 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42614 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42615 set_yydebug): Remove.
42617 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42619 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42620 (struct lang_hooks): Constify.
42621 (language_string, lang_identify): Remove.
42622 * utils.c (init_decl_processing): Update.
42624 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42626 * misc.c: Include langhooks-def.h.
42627 * Makefile.in: Update.
42629 2001-10-30 Robert Dewar <dewar@gnat.com>
42632 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42633 in the upper half of ASCII.
42634 (Check_Identifier): Minor reformatting
42636 2001-10-30 Geert Bosch <bosch@gnat.com>
42638 * (Associated_Node, Set_Associated_Node): Do not check for
42641 2001-10-30 Robert Dewar <dewar@gnat.com>
42643 * a-reatim.ads: Minor reformatting
42645 2001-10-30 Robert Dewar <dewar@gnat.com>
42647 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42648 undocumented declarations.
42650 2001-10-30 Pascal Obry <obry@gnat.com>
42652 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42653 to the binder and linker.
42656 * mdll.ads: Fix layout. Update copyright notice.
42658 * mdll.adb: Fix layout. Update copyright notice.
42660 2001-10-30 Robert Dewar <dewar@gnat.com>
42662 * usage.adb: Minor fix to output for -gnaty.
42664 2001-10-30 Ed Schonberg <schonber@gnat.com>
42666 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42667 to accommodate all its possible values.
42669 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42670 and of small absolute values of T.
42672 2001-10-30 Richard Kenner <kenner@gnat.com>
42674 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42675 set_mem_attributes since not needed and wrong if RESULT if a REG;
42676 fixes ACATS failures.
42678 2001-10-30 Geert Bosch <bosch@gnat.com>
42680 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42681 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42683 2001-10-30 Robert Dewar <dewar@gnat.com>
42685 * bindusg.adb: Undocument -f switch.
42687 * gnatcmd.adb: Remove /FULL_ELABORATION.
42689 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42692 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42694 * gnatbind.adb: Minor update of warning msg.
42696 2001-10-30 Vincent Celier <celier@gnat.com>
42698 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42699 for project file switches (-P (/PROJECT_FILE=),
42700 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42703 2001-10-30 Geert Bosch <bosch@gnat.com>
42705 * decl.c: Minor whitespace fixes.
42707 2001-10-30 Richard Kenner <kenner@gnat.com>
42709 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42711 2001-10-30 Geert Bosch <bosch@gnat.com>
42713 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42714 Found due to GCC 3.0 warning of using uninitialized value.
42717 (Get_Max_Size): Use variant record for tracking value/expression.
42718 Makes logic clearer and prevents warnings for uninitialized variables.
42719 (Layout_Array_Type): Use variant record for tracking value/expression.
42720 Makes logic clearer and prevents warnings for uninitialized variables.
42722 2001-10-30 Robert Dewar <dewar@gnat.com>
42724 * lib.adb: Minor reformatting
42726 * s-taprop.ads: Minor reformatting
42728 2001-10-29 Laurent Guerby <guerby@acm.org>
42731 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42733 (_gnat_error_handler): Make MSG const.
42735 2001-10-29 Richard Kenner <kenner@gnat.com>
42737 * sysdep.c: Fix localtime_r problem on LynxOS.
42738 Also remove #elif to avoid warnings.
42740 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42743 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42745 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42747 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42748 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42749 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42750 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42751 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42752 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42753 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42754 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42755 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42756 types.ads, urealp.adb: Fix spelling errors.
42758 2001-10-27 Laurent Guerby <guerby@acm.org>
42760 * trans.c (gigi): Fix non determinism leading to bootstrap
42761 comparison failures for debugging information.
42763 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
42765 * gnat_rm.texi: Use @./@: where appropriate.
42767 2001-10-26 Robert Dewar <dewar@gnat.com>
42769 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42771 2001-10-26 Richard Kenner <kenner@gnat.com>
42773 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42775 2001-10-26 Richard Kenner <kenner@gnat.com>
42777 * decl.c (validate_size): Modify message for bad size to avoid
42778 implication that compiler is modifying the size.
42780 2001-10-26 Robert Dewar <dewar@gnat.com>
42782 * prj-util.adb: Minor reformatting. Fix bad header format.
42784 2001-10-26 Robert Dewar <dewar@gnat.com>
42786 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42788 * sinfo.ads: Clarify use of Associated_Node (documentation only).
42790 * sem_ch12.adb: Change Node4 to Associated_Node. Change
42791 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42792 much more narrowly in places where needed. These are cleanups.
42794 2001-10-26 Joel Brobecker <brobecke@gnat.com>
42796 * 5zosinte.ads (null_pthread): new constant.
42799 (Initialize_TCB): Initialize thread ID to null, to be able to verify
42800 later that this field has been set.
42801 (Finalize_TCB): ditto.
42802 (Suspend_Task): Verify that the thread ID is not null before using it.
42803 (Resume_Task): ditto.
42806 (Resume_All_Tasks): Lock the tasks list before using it.
42807 (Suspend_All_Tasks): ditto.
42809 2001-10-26 Richard Kenner <kenner@gnat.com>
42811 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42812 Make constant variant of designated type for Is_Access_Constant.
42813 Call update_pointer_to with main variant.
42815 * trans.c (process_freeze_entity, process_type):
42816 Call update_pointer_to on main variant.
42818 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42819 If main variant, update all other variants.
42821 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42824 2001-10-26 Robert Dewar <dewar@gnat.com>
42826 * prj-util.adb: Minor reformatting
42828 2001-10-26 Robert Dewar <dewar@gnat.com>
42830 * prj-util.adb: Minor reformatting
42832 2001-10-26 Robert Dewar <dewar@gnat.com>
42834 * prj-attr.adb: Minor reformatting throughout
42836 2001-10-26 Robert Dewar <dewar@gnat.com>
42838 * prj-attr.ads: Minor reformatting
42839 Add ??? comment (this whole spec has almost no comments)
42841 2001-10-26 Vincent Celier <celier@gnat.com>
42843 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42844 ("//") that precede the drive letter on Interix.
42846 2001-10-26 Geert Bosch <bosch@gnat.com>
42848 * gnat_rm.texi: Add GNAT Reference Manual.
42850 2001-10-25 Robert Dewar <dewar@gnat.com>
42852 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42853 is Error. Similar change for other renaming cases.
42855 2001-10-25 Robert Dewar <dewar@gnat.com>
42857 * s-atacco.ads: Add pragma Inline_Always for functions.
42858 Fix header format. Add copyright 2001
42860 2001-10-25 Ed Schonberg <schonber@gnat.com>
42862 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42863 return Error rather than Empty so that analysis can proceed.
42865 2001-10-25 Ed Schonberg <schonber@gnat.com>
42867 * sem_util.adb (Enter_Name): better handling of cascaded error
42868 messages when a unit appears in its own context.
42870 2001-10-25 Ed Schonberg <schonber@gnat.com>
42872 * sem_util.adb (Defining_Entity): in case of error, attach created
42873 entity to specification, so that semantic analysis can proceed.
42875 2001-10-25 Robert Dewar <dewar@gnat.com>
42878 (Defining_Entity): Deal with Error.
42879 (Process_End_Label): Deal with bad end label for.
42881 2001-10-25 Ed Schonberg <schonber@gnat.com>
42883 * sem_elab.adb (Check_A_Call): refine message when call is in an
42884 instance but callee is not declared in the generic unit.
42886 2001-10-25 Ed Schonberg <schonber@gnat.com>
42888 * sem_elab.adb (Check_A_Call): check for renaming before finding the
42889 enclosing unit, which may already be different from the calling unit.
42891 2001-10-25 Geert Bosch <bosch@gnat.com>
42893 * 4gintnam.ads: fix header format.
42895 2001-10-25 Ed Schonberg <schonber@gnat.com>
42897 * sem_res.adb (Resolve_Call): if the call is actually an indexing
42898 operation on the result of a parameterless call, perform elaboration
42899 check after the node has been properly rewritten.
42901 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42902 inlined within the generic tree, the defining identifier is not a
42905 2001-10-25 Ed Schonberg <schonber@gnat.com>
42907 * sem_res.adb (Resolve): special-case resolution of Null in an
42908 instance or an inlined body to avoid view conflicts.
42910 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42911 compatibility by retrieving the access type of the generic copy.
42913 2001-10-25 Robert Dewar <dewar@gnat.com>
42916 (Analyze_Number_Declaration): Handle error expression.
42917 (Signed_Integer_Type_Declaration): Handle error bound.
42918 (Analyze_Subtype_Indication): Handle error range.
42920 * sem_util.adb (Get_Index_Bounds): Check for Error.
42922 2001-10-25 Robert Dewar <dewar@gnat.com>
42924 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42925 in no run time mode.
42927 2001-10-25 Pascal Obry <obry@gnat.com>
42929 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42930 mode case for ALLOC case.
42932 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42933 all platforms. Improvement of last change.
42935 2001-10-25 Robert Dewar <dewar@gnat.com>
42937 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42939 2001-10-25 Geert Bosch <bosch@gnat.com>
42941 * osint.adb (Is_Relative): Remove duplicate.
42943 2001-10-25 Pascal Obry <obry@gnat.com>
42945 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42946 pathnames in UNIX and DOS style with drive letter.
42947 (Is_Relative): new routine.
42949 * osint.adb: Minor reformatting
42951 * osint.adb (Is_Relative): implementation using
42952 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42954 2001-10-25 Pascal Obry <obry@gnat.com>
42956 * g-dirope.adb (Basename): correctly compute offset between the
42957 original Path and the translated one.
42959 * g-dirope.adb: (Base_Name): add some comments.
42961 2001-10-25 Robert Dewar <dewar@gnat.com>
42963 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42964 in HIE mode, avoids compilation abandoned message
42966 * exp_imgv.adb: Correct typo in previous change
42968 * exp_imgv.adb: Correct typo in previous change (not my day!)
42970 2001-10-25 Robert Dewar <dewar@gnat.com>
42972 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42974 2001-10-25 Pascal Obry <obry@gnat.com>
42976 * g-awk.ads: Move all pragma inlines next to the routine
42977 declarations. This is more uniform with other GNAT spec.
42979 2001-10-22 Geert Bosch <bosch@gnat.com>
42981 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42983 2001-10-19 Geert Bosch <bosch@gnat.com>
42985 * Makefile.in (tools, gnattools): Remove gnatmem.
42987 2001-10-17 Richard Henderson <rth@redhat.com>
42989 * Makefile.in (misc.o): Depend on langhooks.h.
42990 * misc.c: Include it.
42991 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42992 (LANG_HOOKS_DECODE_OPTION): New.
42993 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42995 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
42997 * trans.c (tree_transform): Adjust to recent change in
42998 expand_asm_operands to implement named asm operands.
43000 2001-10-11 Ed Schonberg <schonber@gnat.com>
43002 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43003 renaming of discriminant for mutable record type.
43005 2001-10-11 Robert Dewar <dewar@gnat.com>
43007 * validsw.adb: Properly save -gnatVn status.
43009 2001-10-11 Robert Dewar <dewar@gnat.com>
43011 * usage.adb: Add lines for V switch.
43013 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43014 (/VALIDITY_CHECKING).
43016 2001-10-11 Ed Schonberg <schonber@gnat.com>
43018 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43019 an extension of System is known to be visible.
43021 2001-10-11 Ed Schonberg <schonber@gnat.com>
43023 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43024 properly. Fixes regression on ACATS C34005G.
43026 2001-10-11 Robert Dewar <dewar@gnat.com>
43028 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43029 loop in generic instance, since this is likely not very useful.
43031 2001-10-11 Robert Dewar <dewar@gnat.com>
43033 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43034 the error message for high integrity mode.
43036 * rtsfind.adb (RTE): Give message if we try to find an entity that
43037 is not available in high integrity mode.
43040 (OK_To_Use_In_HIE_Mode): New array.
43041 (RTE): May return Empty in high integrity mode.
43043 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43044 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43046 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43047 unit if not inlined always and in no runtime mode. Fixes problem
43048 caused by new Rtsfind changes.
43050 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43053 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43054 giving message for entity not available in high integrity mode.
43056 2001-10-11 Pascal Obry <obry@gnat.com>
43058 * impunit.adb: Add GNAT.CRC32.
43060 2001-10-11 Ed Schonberg <schonber@gnat.com>
43062 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43063 properly the case where one universal operand in a non-static
43064 exponentiation of a real literal.
43066 2001-10-11 Ed Schonberg <schonber@gnat.com>
43068 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43069 clause, return the gobal finalization list, for lack of anthing else.
43071 2001-10-11 Ed Schonberg <schonber@gnat.com>
43073 * exp_ch7.adb (Make_Transient_Block): if statement is within
43074 exception handler, always use new transient scope to place Clean
43077 2001-10-11 Pascal Obry <obry@gnat.com>
43080 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43081 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43082 (GNATLS_RTL_OBJS): add g-crc32.o
43083 (GNATMAKE_RTL_OBJS): add g-crc32.o
43086 (CRC_Match): new function.
43087 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43088 instead of the previous simple checksum algorithm.
43089 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43090 (Set_Source_Table): idem.
43093 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43094 instead of simple checksum.
43095 (CRC_Match): new function.
43096 (CRC_Error): new constant.
43098 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43099 a CRC now and not a simple checksum. A CRC uses lower-case hex
43100 letters, fixes ambiguity in parsing.
43102 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43103 is what this variable will store.
43105 * bcheck.adb: Change reference to chechsum in comments by CRC.
43106 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43107 rename All_Checksum_Match to All_CRC_Match. Change due to API
43108 renaming since now GNAT does not use a simple checksum but a
43109 CRC using GNAT.CRC32.
43111 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43112 now and not anymore a simple checksum.
43114 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43117 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43120 (Restore_Scan_State): rename Checksum to CRC.
43121 (Save_Scan_State): idem.
43125 (Checksum): rename to CRC.
43126 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43128 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43129 GNAT.CRC32). Update copyright notice.
43131 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43132 GNAT.CRC32). Update copyright notice.
43135 (Accumulate_Checksum): removed.
43136 (Update): new procedure. Add a wide-character into the CRC.
43139 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43140 (Load_File): fix initialization of S (change Source_Checksum to
43143 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43144 Source_CRC in S initialization.
43146 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43148 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43149 Update comments for the CRC.
43151 * types.adb (Hex): Use lowercase for the letter part.
43153 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43154 for a word. This is currently used only for CRC. In previous version,
43155 the checksum was using a representation with all letter being
43156 upper-case. With the new implementation (using CRC) we do not remove
43157 the 32th bit of the CRC, so we can have an upper-case starting letter
43158 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43159 It is ambigous since the CRC was optional and could be followed by
43160 options like EB, EE. So now this routines uses lower-case letter for
43161 the hexadecimal representation. Strange enough only lower case letters
43162 where checked in Scan_ALI (even if this was not a possible case).
43164 * gnatvsn.ads (Library_Version): changed to 3.15a.
43166 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43169 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43172 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43173 Add 2001 to copyright notice
43174 (Accumulate_Checksum): Modify to use System.CRC32.
43176 * ali-util.ads: Redo changes of previous revision to continue to use
43177 the word Checksum. Add 2001 to copyright notice.
43179 * ali.adb: Undo some of previous changes, not needed.
43180 Keep the change for lower case letters in the checksum.
43182 * ali.ads: Undo previous change not needed.
43184 * bcheck.adb: Undo most of previous change, not needed.
43185 But do use Checksums_Match for checksum comparison.
43187 * gnatls.adb: Undo most of previous change, not needed.
43188 But do use Checksums_Match for comparing checksums.
43190 * lib-load.adb: Undo previous change, not needed.
43192 * lib-writ.adb: Undo previous change, not needed.
43194 * lib-writ.ads: Document that checksums use lower case,
43195 not upper case letters.
43197 * scans.adb: Undo previous change, not needed
43199 * scans.ads: Undo previous change, not needed.
43201 * scn-nlit.adb: Undo previous changes, not needed.
43203 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43206 (Accumulate_Checksum): Use System.CRC32.
43207 (Initialize_Checksum): New procedure.
43208 Remove other changes of previous revision.
43210 * sinput-p.adb: Undo previous change, not needed.
43212 * sinput.adb: Undo previous change, not needed.
43214 * sinput-l.adb: Undo previous change, not needed.
43216 * sinput.ads: Undo previous change, not needed. Keep only comment
43217 on new checksum algorithm
43219 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43220 Also remove a-tags and a-stream from GNAT sources.
43222 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43224 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43226 2001-10-11 Geert Bosch <bosch@gnat.com>
43228 * einfo.h: Regenerate.
43230 * nmake.ads: Regenerate.
43232 * nmake.adb: Regenerate.
43234 * sinfo.h: Regenerate.
43236 * treeprs.adb: Regenerate.
43238 2001-10-10 Geert Bosch <bosch@gnat.com>
43240 * gnat-style.texi: New file describing coding guidelines for Ada.
43242 2001-10-10 Ed Schonberg <schonber@gnat.com>
43244 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43247 2001-10-10 Geert Bosch <bosch@gnat.com>
43249 * snames.ads: Add new names for project facility.
43251 * snames.adb: Update to reflect snames.ads changes.
43253 * snames.h: Update to reflect snames.ads changes.
43255 2001-10-10 Vincent Celier <celier@gnat.com>
43258 (Add_Switches): reflect the changes for the switches attributes
43259 Default_Switches indexed by the programming language,
43260 Switches indexed by the file name.
43261 (Collect_Arguments_And_Compile): Idem.
43262 Reflect the attribute name changes.
43265 (Initialisation_Data): Change the names of some packages and
43267 (Initialize): process case insensitive associative arrays.
43270 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43273 (Parse_Attribute_Declaration): For case insensitive associative
43274 arrays, set the index string to lower case.
43277 Reflect the changes of the project attributes.
43280 Replace Check_Naming_Scheme by Ada_Check and
43281 Language_Independent_Check.
43284 Replaced Check_Naming_Scheme by 2 procedures:
43285 Ada_Check and Language_Independent_Check.
43288 (Process_Declarative_Items): For case-insensitive associative
43289 arrays, set the index string to lower case.
43290 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43291 Prj.Nmsc.Check_Naming_Scheme.
43294 (Case_Insensitive): New function
43295 (Set_Case_Insensitive): New procedure
43298 (Case_Insensitive): New function
43299 (Set_Case_Insensitive): New procedure
43300 (Project_Node_Record): New flag Case_Insensitive.
43303 (Value_Of): new function to get the string value of a single
43304 string variable or attribute.
43307 (Value_Of): new function to get the string value of a single
43308 string variable or attribute.
43311 (Ada_Default_Spec_Suffix): New function
43312 (Ada_Default_Impl_Suffix): New function
43313 Change definitions of several constants to reflect
43314 new components of record types.
43317 (Naming_Data): Change several components to reflect new
43318 elements of naming schemes.
43319 (Project_Data): New flags Sources_Present and
43320 Language_Independent_Checked.
43321 (Ada_Default_Spec_Suffix): New function.
43322 (Ada_Default_Impl_Suffix): New function.
43325 Modification of predefined names for project manager: added
43326 Implementation, Specification_Exceptions, Implementation_Exceptions,
43327 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43328 Default_Switches, _Languages, Builder, Cross_Reference,
43329 Finder. Removed Body_Part, Specification_Append, Body_Append,
43330 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43333 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43336 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43337 not that it is Nil_Variable_Value.
43339 * prj.ads: Add ??? for uncommented declarations
43341 2001-10-10 Ed Schonberg <schonber@gnat.com>
43343 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43344 constant, do not indicate possible modification, so that gigi can
43345 treat it as a bona fide constant.
43347 2001-10-10 Robert Dewar <dewar@gnat.com>
43349 * sem_prag.adb: Add processing for pragma External.
43351 * snames.ads: Add entry for pragma External.
43353 * par-prag.adb: Add pragma External.
43355 * snames.adb: Updated to match snames.ads.
43357 2001-10-10 Ed Schonberg <schonber@gnat.com>
43359 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43360 a dynamic task if the allocator appears in an indexed assignment
43361 or selected component assignment.
43363 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43364 For a dynamic task in an assignment statement, use target of
43365 assignment to generate meaningful name.
43367 2001-10-10 Ed Schonberg <schonber@gnat.com>
43369 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43372 * einfo.ads: Body_Entity is also defined for generic package.
43373 Documentation change only
43375 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43376 others_choice for a discriminated component initialization,
43377 convert discriminant references into the corresponding discriminals.
43379 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43380 only if original type is private and expression has to be wrapped
43384 (Apply_Constraint_Check): Do not perform length check
43385 if expression is an aggregate with only an others_choice.
43386 (Length_N_Cond): two references to the same in_parameter
43387 (typically the discriminal in an init_proc) denote the same value.
43388 Two useful optimization uncovered by bugfixes above.
43390 2001-10-10 Robert Dewar <dewar@gnat.com>
43392 * xeinfo.adb: Change int to char in translation of enumeration types.
43393 This fixes a problem in the C representation of component alignment.
43394 Add 2001 to copyright notice
43396 2001-10-10 Richard Kenner <kenner@gnat.com>
43398 * decl.c: (validate_size): Do check size of object of integral type
43399 if it is a packed array type.
43401 2001-10-10 Richard Kenner <kenner@gnat.com>
43403 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43404 VAR_DECL for constant if not Is_Public but -O0.
43406 2001-10-10 Richard Kenner <kenner@gnat.com>
43408 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43410 2001-10-10 Geert Bosch <bosch@gnat.com>
43412 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43413 use '/' as switch character, allowing for absolute file names.
43415 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43417 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43420 2001-10-08 Geert Bosch <bosch@gnat.com>
43422 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43423 Automatically build utilities when files need to be regenerated.
43425 2001-10-08 Geert Bosch <bosch@gnat.com>
43427 * xsnames.adb: New utility for updating snames.ads and snames.adb
43429 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43431 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43432 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43433 (gnat1): Also depend on attribs.o.
43434 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43435 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43436 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43437 (ADAFLAGS): Add -W -Wall.
43438 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43441 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43442 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43443 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43444 Use $(ADAC), not $(CC), as compilation command.
43446 (gnattools): Depend directly on tools to build, don't use
43448 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43450 * einfo.h, sinfo.h: New files (autogenerated).
43452 2001-10-08 Richard Henderson <rth@redhat.com>
43454 * comperr.adb (Abort_In_Progress): New.
43455 (Compiler_Abort): Use it to prevent recursion.
43457 2001-10-08 Robert Dewar <dewar@gnat.com>
43459 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43461 * par-endh.adb (Output_End_Expected): We should also not test
43462 Error_Posted on the Error node, since now it is always set.
43464 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43465 to help error recovery. Part of general work on 9407-004.
43467 * par.adb: Add ??? for misuse of error
43470 (Resolve): Defend against Error, fixes 9407-003.
43471 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43473 * sinfo.ads (N_Error): Now has Etype field (which will be set
43474 to Any_Type to help error recovery).
43476 2001-10-08 Richard Kenner <kenner@gnat.com>
43478 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43479 Consistently set MEM attributes from expression; fixes
43480 bootstrap failure on x86.
43482 2001-10-08 Geert Bosch <bosch@gnat.com>
43484 * 5oosinte.adb: Add 2001 to copyright notice.
43486 2001-10-08 Geert Bosch <bosch@gnat.com>
43488 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43490 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43492 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43494 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43496 2001-10-05 Geert Bosch <bosch@gnat.com>
43498 * adaint.h: Small formatting fix.
43500 2001-10-04 Geert Bosch <bosch@gnat.com>
43502 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43503 Arg is int, not FILE *, in dummy version of functions.
43505 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43506 Arg is int, not FILE *.
43508 2001-10-04 Geert Bosch <bosch@gnat.com>
43510 * 3lsoccon.ads: Added file, missed with initial check ins.
43512 * 4lintnam.ads: Fix header format.
43513 Change Linux to GNU/Linux.
43515 * 5iosinte.adb: Change Linux to GNU/Linux.
43517 * 5iosinte.ads: Change Linux to GNU/Linux.
43519 * 5itaprop.adb: Change Linux to GNU/Linux.
43521 * 5itaspri.ads: Change Linux to GNU/Linux.
43522 Update copyright notice.
43524 * 5lintman.adb: Change Linux to GNU/Linux.
43526 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43528 * 5losinte.ads: Change Linux to GNU/Linux.
43530 * 5lsystem.ads: Change Linux to GNU/Linux.
43532 * 5qosinte.adb: Change Linux to GNU/Linux.
43534 * 5qosinte.ads: Change Linux to GNU/Linux.
43536 * 5qparame.ads: Change Linux to GNU/Linux.
43538 * 5qtaprop.adb: Change Linux to GNU/Linux.
43540 * 5qtaspri.ads: Change Linux to GNU/Linux.
43541 Add 2001 to copyright notice.
43543 * 5vintman.ads: Change Linux to GNU/Linux.
43544 Fix header format. Add 2001 to copyright notice.
43546 * g-soccon.ads: Change Linux to GNU/Linux.
43548 * g-trasym.ads: Change Linux to GNU/Linux.
43549 Add 2001 to copyright notice.
43551 * memtrack.adb: Change Linux to GNU/Linux.
43553 * s-intman.ads: Change Linux to GNU/Linux.
43554 Add 2001 to copyright notice. Fix header format.
43556 * s-stache.adb: Change Linux to GNU/Linux.
43558 * adaint.c: Change Linux to GNU/Linux.
43560 * cio.c: Change Linux to GNU/Linux.
43562 * cstreams.c: Change Linux to GNU/Linux.
43564 * init.c: Change Linux to GNU/Linux.
43566 * gmem.c: Change Linux to GNU/Linux.
43568 * tracebak.c: Change Linux to GNU/Linux.
43571 2001-10-02 Geert Bosch <bosch@gnat.com>
43573 * misc.c (insert_default_attributes): Add dummy version.