1 2009-03-30 Joseph Myers <joseph@codesourcery.com>
3 PR rtl-optimization/323
4 * gcc-interface/misc.c (gnat_post_options): Set
5 flag_excess_precision_cmdline. Give an error for
6 -fexcess-precision=standard for processors where the option is
9 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
12 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
15 2009-03-11 Olivier Hainque <hainque@adacore.com>
17 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
18 checks processing, remove unintended TREE_TYPE walk on index type.
20 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
23 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
24 call make_packable_type on fat pointer types.
25 <E_Array_Subtype>: Likewise.
26 <E_Record_Subtype>: Call make_packable_type on all record types
27 except for fat pointer types.
28 (make_packable_type): Likewise.
29 (gnat_to_gnu_field): Likewise.
31 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
33 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
34 EH_MECHANISM change made on 2007-12-06.
36 2009-02-26 Andreas Schwab <schwab@suse.de>
39 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
40 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
41 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
43 (target_cpu_default): Substitute.
45 2009-02-25 Laurent GUERBY <laurent@guerby.net>
48 * a-teioed.adb (Expand): Fix Result overflow.
50 2009-02-25 Laurent GUERBY <laurent@guerby.net>
52 * gcc-interface/Makefile.in: Fix multilib handling for
55 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
57 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
59 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
61 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
63 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
65 * gcc-interface/deftarg.c: Remove.
67 2009-02-10 Olivier Hainque <hainque@adacore.com>
68 Eric Botcazou <ebotcazou@adacore.com>
70 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
71 (copy_alias_set): Rename into...
72 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
73 underlying array of unconstrained arrays for the new type as well.
74 If the old and new alias sets don't conflict, make one a subset of
75 the other as per the OP parameter.
76 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
77 <E_Record_Type>: Do not copy the alias set for derived types.
78 For all types, make the alias set of derived types a superset of
79 that of their parent type.
80 (make_aligning_type): Adjust calls to copy_alias_set.
81 (make_packable_type): Likewise.
82 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
83 Check for alias set conflict instead of strict equality to issue the
86 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
88 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
89 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
90 (copy_alias_set): Assert that arrays have the same aliasing settings.
91 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
93 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
95 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
96 Set TYPE_NONALIASED_COMPONENT on the array type.
98 2009-01-31 Laurent GUERBY <laurent@guerby.net>
100 * gcc-interface/Makefile.in: Fix mipsel linux handling.
102 2009-01-16 Jakub Jelinek <jakub@redhat.com>
104 * gcc-interface/Makefile.in: Fix multilib handling for
107 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
109 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
110 only useless conversions around renamed objects.
112 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
114 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
115 the _Tag field before any discriminants in the field list.
116 (components_to_record): Remove obsolete comment.
118 2008-12-09 Jakub Jelinek <jakub@redhat.com>
121 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
122 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
125 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
128 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
130 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
133 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
135 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
137 * gcc-interface/decl.c: Fix various nits.
139 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
141 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
143 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
146 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
147 special-case boolean types. Propagate the name.
148 * gcc-interface/targtyps.c: Tweak comment.
150 2008-11-15 Geert Bosch <bosch@adacore.com>
152 * gcc-interface/trans.c (emit_check): Put back a final save_expr
153 to prevent exponential expansion during gimplification.
155 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
157 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
159 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
161 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
162 initialized to a static constant to be statically allocated even if
163 they are of a padding type, provided the original type also has
166 2008-11-15 Laurent Guerby <laurent@guerby.net>
169 * gcc-interface/Makefile.in: Add multilib handling for x86_64
171 * system-darwin-x86_64.ads: New file.
173 2008-11-13 Olivier Hainque <hainque@adacore.com>
175 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
176 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
177 are explicit to the middle-end. Tidy.
179 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
181 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
182 (MINUS_NOMOD_EXPR): Likewise.
183 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
185 <PLUS_NOMOD_EXPR>: New case.
186 <MINUS_NOMOD_EXPR>: Likewise.
187 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
188 assignment statement instead of using an increment operator.
190 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
192 * system-irix-n64.ads: New file.
193 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
196 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
199 * system-solaris-x86_64.ads: New file.
200 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
202 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
203 Eric Botcazou <ebotcazou@adacore.com>
206 * lib.ads: (Enable_Switch_Storing): Declare.
207 * lib.adb: (Enable_Switch_Storing): New procedure.
208 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
209 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
210 (Display): Never display -gnatea
211 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
213 2008-11-07 Thomas Quinot <quinot@adacore.com>
215 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
216 for empty range in original base type, not converted result type.
218 2008-11-07 Geert Bosch <bosch@adacore.com>
220 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
221 and result for call to __gnat_mulv64.
223 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
225 * gcc-interface/trans.c: Fix formatting nits.
227 2008-11-07 Geert Bosch <bosch@adacore.com>
229 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
230 overflow check for constant result.
232 2008-11-07 Geert Bosch <bosch@adacore.com>
234 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
235 overflow check for addition/subtraction if neither operand is constant.
237 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
239 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
240 files for the target-dependent part of the runtime.
241 (SPARC/Linux): Likewise.
243 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
245 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
246 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
249 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
251 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
254 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
257 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
258 Generate a call to memmove for an assignment between overlapping
261 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
264 * gcc-interface/Makefile.in: Add multilib handling for
265 s390-linux and s390x-linux.
267 2008-10-24 Jakub Jelinek <jakub@redhat.com>
269 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
270 check-acats-subtargets and check-gnat-subtargets.
271 (check_acats_targets): New variable.
272 (check-acats-subtargets, check-acats%): New targets.
273 (check-acats): If -j is used and CHAPTERS is empty, run the testing
274 in multiple make goals, possibly parallel, and afterwards run
275 dg-extract-results.sh to merge the sum and log files.
277 2008-10-17 Geert Bosch <bosch@adacore.com>
279 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
280 to use only a single check instead of three, and avoid unnecessary
282 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
283 creating more opportunities for optimizations.
285 2008-10-13 Jakub Jelinek <jakub@redhat.com>
288 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
291 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
293 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
294 dealing with volatileness to after code dealing with renaming.
296 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
298 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
299 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
301 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
303 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
304 (unchecked_convert): Use it to disable problematic folding with
305 VIEW_CONVERT_EXPR in the general case. Always disable it for the
306 special VIEW_CONVERT_EXPR built for integral types and cope with
307 its addressability issues by preserving the first conversion.
309 2008-10-01 Andreas Schwab <schwab@suse.de>
311 * system-linux-ppc64.ads: New file.
312 * gcc-interface/Makefile.in: Add multilib handling for
315 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
317 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
318 to that of ptr_mode instead of word_mode.
320 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
323 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
325 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
328 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
329 instead of deprecated FILE_WRITE_PROPERTIES.
331 2008-09-22 Olivier Hainque <hainque@adacore.com>
333 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
334 are never assigned, volatile entities are not constant for code
337 2008-09-21 Laurent Guerby <laurent@guerby.net>
340 * gcc-interface/Makefile.in: Add multilib handling for x86_64
342 * system-linux-sparcv9.ads: New file.
344 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
346 * exp_dbug.ads: Document new convention for the XVZ variable.
347 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
348 debug info if necessary for the type padding the component type.
349 <E_Array_Subtype>: Likewise.
350 (maybe_pad_type): Emit the XVZ variable in units.
351 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
352 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
353 on statements generated to initialize the parameter attributes cache.
354 Set the source line of the end label of the body on the special return
355 statement built for a procedure with copy-in copy-out parameters.
357 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
360 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
361 inlined external functions if they contain a nested function not
364 2008-09-18 Jan Hubicka <jh@suse.cz>
366 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
367 (end_subprog_body): Do not set DECL_INLINE.
369 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
372 * gnat_ugn.texi: Use proper format in direntry.
374 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
376 * gcc-interface/trans.c (gigi): Declare the name of the compilation
377 unit as the first global name.
379 2008-09-14 Jan Hubicka <jh@suse.cz>
381 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
383 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
385 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
386 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
387 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
388 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
389 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
390 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
391 gcc-interface/gigi.h, gcc-interface/trans.c,
392 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
393 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
394 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
395 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
396 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
397 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
398 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
399 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
401 * gnathtml.pl: Fix typos.
403 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
405 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
406 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
407 layer. RTEMS binds to OS provided adapter routines so there are
408 no modifications to s-osinte-rtems.adb.
410 2008-09-09 Arnaud Charlet <charlet@adacore.com>
411 Joel Sherrill <joel.sherrill@oarcorp.com>
413 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
415 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
417 * s-interr-hwint.adb: New file.
419 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
420 needed by s-interr-hwint.adb.
422 * s-osinte-vxworks-kernel.adb: New file.
424 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
426 * s-stchop-rtems.adb: Add file missed in early commit. Already
427 referenced in gcc-interface/Makefile.in.
429 2008-08-30 Thomas Quinot <quinot@adacore.com>
431 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
432 be built even without a separate libada directory.
434 2008-08-22 Arnaud Charlet <charlet@adacore.com>
436 * lib-xref.ads: Fix typo in subprogram reference definition.
438 2008-08-22 Robert Dewar <dewar@adacore.com>
440 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
443 * g-trasym.adb: Ditto
445 * s-utf_32.adb (Get_Category): Fix obvious typo
447 * s-wwdcha.adb: Minor code reorganization
450 2008-08-22 Robert Dewar <dewar@adacore.com>
452 * checks.adb (Determine_Range): Deal with values that might be invalid
454 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
455 configuration switches.
457 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
459 * sem_prag.adb: Implement pragma Assume_No_Default_Values
461 * snames.adb, snames.ads, snames.h:
462 Add entries for pragma Assume_No_Invalid_Values
464 * switch-c.adb: Add processing for -gnatB switch
466 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
468 2008-08-22 Javier Miranda <miranda@adacore.com>
470 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
471 init procedure all the expanded code associated with the spec of
472 task types and protected types.
474 2008-08-22 Gary Dismukes <dismukes@adacore.com>
476 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
477 component expression copies rather than directly setting Etype and
478 Is_Static_Expression.
480 2008-08-22 Gary Dismukes <dismukes@adacore.com>
482 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
483 private types to allow for types derived from a private type with
484 preelaborable initialization, but return False for a private extension
485 (unless it has the pragma).
487 2008-08-22 Robert Dewar <dewar@adacore.com>
489 * opt.ads: Minor code reorganization (put entries in alpha order)
491 2008-08-22 Pascal Obry <obry@adacore.com>
493 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
496 2008-08-22 Geert Bosch <bosch@adacore.com>
498 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
499 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
501 2008-08-22 Doug Rupp <rupp@adacore.com>
503 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
507 (__gnat_set_features): New function.
508 (__gnat_features_set): New tracking variable.
509 (__gl_no_malloc_64): New feature global variable
511 2008-08-22 Ed Schonberg <schonberg@adacore.com>
513 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
514 use_type_clause in an instance.
516 2008-08-22 Bob Duff <duff@adacore.com>
518 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
520 2008-08-22 Robert Dewar <dewar@adacore.com>
522 * exp_ch6.adb: Minor reformatting
524 * exp_ch7.adb: Minor reformatting
526 * exp_ch7.ads: Put routines in proper alpha order
528 * exp_dist.adb: Minor reformatting
530 2008-08-22 Vincent Celier <celier@adacore.com>
532 * prj.ads: Minor comment update
534 2008-08-22 Robert Dewar <dewar@adacore.com>
536 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
538 2008-08-22 Ed Schonberg <schonberg@adacore.com>
541 (Base_Init_Proc): For a protected subtype, use the base type of the
542 corresponding record to locate the propoer initialization procedure.
544 2008-08-22 Robert Dewar <dewar@adacore.com>
547 (In_Subrange_Of): New calling sequence
548 (Determine_Range): Prepare for new processing using base type
551 (Compile_Time_Compare): Use new calling sequence
554 (Compile_Time_Compare): Use new calling sequence
557 (Compile_Time_Compare): New calling sequence allows dealing with
559 (In_Subrange_Of): Ditto
562 (Compile_Time_Compare): New calling sequence allows dealing with
564 (In_Subrange_Of): Ditto
566 2008-08-22 Pascal Obry <obry@adacore.com>
568 * adaint.c: Fix possible race condition on win32_wait().
570 2008-08-22 Bob Duff <duff@adacore.com>
572 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
573 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
574 exp_intr.adb, exp_ch3.adb: Rename:
575 Exp_Ch7.Controlled_Type => Needs_Finalization
576 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
577 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
579 (Has_Some_Controlled_Component): Fix bug in array case.
581 2008-08-22 Robert Dewar <dewar@adacore.com>
583 * sem_ch8.adb: Minor reformatting
585 2008-08-22 Kevin Pouget <pouget@adacore.com>
587 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
588 Shared_Var_Close procedure specifications from package spec to package body.
590 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
591 RE_Shared_Var_WOpen entries.
593 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
594 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
596 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
598 * init.c: adjust EH support code on Alpha/Tru64 as well.
600 * raise-gcc.c: Add back a couple of comments.
602 2008-08-22 Ed Schonberg <schonberg@adacore.com>
604 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
605 involved and the return type is class-wide, use the type of the expression
606 for the generated access type. Suppress useless discriminant checks on the
609 2008-08-22 Bob Duff <duff@adacore.com>
611 * exp_ch7.adb: Minor comment fix
613 * exp_ch6.ads: Minor comment fix
615 2008-08-22 Thomas Quinot <quinot@adacore.com>
617 * sem_ch8.adb: Minor reformatting
618 Minor code reorganization (introduce subprogram to factor duplicated
621 2008-08-22 Sergey Rybin <rybin@adacore.com>
623 * gnat_ugn.texi: Change the description of gnatcheck default rule
626 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
628 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
629 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
630 do not adjust the PC anymore.
631 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
632 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
634 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
635 instead of _Unwind_GetIP.
637 2008-08-22 Gary Dismukes <dismukes@adacore.com>
639 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
640 with a range is transformed into a positional aggregate, any copied
641 component literals should be marked Is_Static_Expression.
643 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
644 not being known at at compile time when Configurable_Run_Time_Mode is
647 2008-08-22 Robert Dewar <dewar@adacore.com>
650 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
651 Read or Input attribute.
653 2008-08-22 Ed Schonberg <schonberg@adacore.com>
655 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
656 clauses in related units is redundant, if one of the units is a package
657 instantiation, use its instance_spec to determine which unit is the
658 ancestor of the other.
660 2008-08-22 Javier Miranda <miranda@adacore.com>
662 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
663 attributes add missing support to handle designated types that come
664 from the limited view.
666 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
668 2008-08-22 Sergey Rybin <rybin@adacore.com>
670 * vms_data.ads: Add entry for new gnatcheck -mNNN option
672 * gnat_ugn.texi: Add description for gnatcheck option '-m'
674 2008-08-22 Sergey Rybin <rybin@adacore.com>
676 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
677 acoording to the latest changes in the metric rule interface
679 2008-08-22 Vincent Celier <celier@adacore.com>
681 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
682 (Check): Check if the file names registered in the ALI file for the
683 spec, the body and each of the subunits are the ones expected.
685 2008-08-22 Robert Dewar <dewar@adacore.com>
687 * g-catiio.adb: Code cleanup.
689 2008-08-20 Vincent Celier <celier@adacore.com>
691 * make.adb (Gnatmake): Remove extra space in version line
694 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
695 as the name may already have been entered in the table by the Project
698 2008-08-20 Jose Ruiz <ruiz@adacore.com>
700 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
701 weak symbols so we use the version provided by MaRTE when available.
703 2008-08-20 Emmanuel Briot <briot@adacore.com>
705 * g-catiio.ads, g-catiio.adb:
706 (Value): Avoid an unnecessary system call to Clock in most cases.
707 This call is only needed when only the time is provided in the string,
708 and ignored in all other cases. This is more efficient.
710 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
712 * raise-gcc.c: Fix formatting nits.
714 2008-08-20 Robert Dewar <dewar@adacore.com>
717 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
718 non-existing component clause.
720 * exp_ch5.adb: Minor reformatting
722 * g-comlin.adb: Minor reformatting
724 * make.adb: Minor reformatting
726 * prj-proc.adb: Minor reformatting
728 * stylesw.ads: Minor reformatting
730 2008-08-20 Vincent Celier <celier@adacore.com>
732 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
733 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
734 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
735 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
736 and a switch is not recognized by gnatmake.
737 (Gnatmake): Implement new scheme for gnatmake switches and global
738 compilation switches.
739 (Switches_Of): Try successively Switches (<file name>),
740 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
742 2008-08-20 Ed Schonberg <schonberg@adacore.com>
744 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
745 implement style check that overriding operations are explicitly marked
748 * style.ads (Missing_Overriding): new procedure that provides interface
751 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
752 that the declaration or body of overriding operations carries an
753 explicit overriding indicator.
756 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
757 explicit indicator should be present.
759 * sem_ch6.adb (Verify_Overriding_Indicator,
760 Check_Overriding_Indicator): If operation is overriding, check whether
761 declaration and/or body of subprogram should be present
763 2008-08-20 Vincent Celier <celier@adacore.com>
765 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
766 gprbuild when casing is MixedCase, whatever the casing of the letters
769 2008-08-20 Gary Dismukes <dismukes@adacore.com>
771 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
772 creating dummy init proc.
773 (Requires_Init_Proc): Return False in the case No_Default_Initialization
774 is in force and the type does not have associated default
775 initialization. Move test of Is_Public (with tests of restrictions
776 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
777 for default initialization.
779 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
781 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
782 of any alias or prefix but having attached parameters (as \"-O2\").
784 2008-08-20 Robert Dewar <dewar@adacore.com>
786 * s-fileio.adb: Minor reformatting
788 2008-08-20 Thomas Quinot <quinot@adacore.com>
790 * exp_strm.adb (Build_Elementary_Input_Call,
791 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
792 selects the stream attribute routines for long float types.
794 2008-08-20 Vincent Celier <celier@adacore.com>
796 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
798 * prj.ads (Array_Data): Add a component Location
800 2008-08-20 Ed Schonberg <schonberg@adacore.com>
803 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
804 argument for ASIS and navigation use.
806 2008-08-20 Ed Schonberg <schonberg@adacore.com>
808 * einfo.ads: Add comment.
810 2008-08-20 Bob Duff <duff@adacore.com>
812 * sem_eval.ads: Minor comment fix.
814 2008-08-20 Bob Duff <duff@adacore.com>
816 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
817 folding. We were folding things like "False and then ...", but not
818 "X and then ..." where X is a constant whose value is known at compile
821 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
823 * exp_ch5.adb (Controlled_Type): New routine.
824 (Expand_N_Extended_Return_Statement): When generating a move of the
825 final list in extended return statements, check the type of the
826 function and in the case of double expanded return statements, the type
827 of the returned object.
828 (Expand_Simple_Function_Return): Perform an interface conversion when
829 the type of the returned object is an interface and the context is an
830 extended return statement.
832 2008-08-20 Ed Schonberg <schonberg@adacore.com>
834 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
835 and the full view is visible, set flag on full view as well.
837 2008-08-20 Thomas Quinot <quinot@adacore.com>
839 * g-comlin.adb: Minor reformatting
840 Minor code reorganization.
842 * freeze.adb: Minor reformatting
844 2008-08-20 Vincent Celier <celier@adacore.com>
846 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
847 source of another project.
849 2008-08-20 Pascal Obry <obry@adacore.com>
851 * s-os_lib.ads: Minor reformatting.
853 2008-08-20 Arnaud Charlet <charlet@adacore.com>
855 * gnatvsn.ads: Minor reformatting.
857 2008-08-20 Arnaud Charlet <charlet@adacore.com>
859 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
860 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
861 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
862 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
863 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
864 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
865 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
866 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
867 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
868 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
869 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
870 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
871 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
872 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
873 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
874 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
875 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
876 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
877 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
878 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
879 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
880 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
881 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
882 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
883 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
884 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
885 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
886 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
887 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
888 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
889 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
890 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
891 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
892 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
893 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
894 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
895 s-poosiz.adb, link.c: Fix copyright notice.
897 2008-08-20 Arnaud Charlet <charlet@adacore.com>
899 * g-comlin.ads: Update comments.
901 2008-08-20 Ed Schonberg <schonberg@adacore.com>
903 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
905 2008-08-20 Gary Dismukes <dismukes@adacore.com>
908 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
909 Make_Implicit_Exception_Handler when rewriting an exception handler with
910 a choice parameter, and pass the handler's Sloc instead of that of the
911 handled sequence of statements. Make_Implicit_Exception_Handler sets the
912 Sloc to No_Location (unless debugging generated code), which we don't
913 want for the case of a user handler.
915 2008-08-20 Robert Dewar <dewar@adacore.com>
917 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
920 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
921 now labeled as info msgs, not warnings.
923 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
925 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
927 * a-textio.adb: Remove redundant test.
929 * a-witeio.adb: Minor code reorganization
930 Remove redundant test found working on another issue
932 * a-ztexio.adb: Minor code reorganization
933 Remove redundant test found working on another issue
935 2008-08-20 Thomas Quinot <quinot@adacore.com>
937 * s-fileio.adb (Open) Use C helper function to determine whether a
938 given errno value corresponds to a "file not found" error.
940 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
942 2008-08-20 Jose Ruiz <ruiz@adacore.com>
944 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
945 to get access to the per-task errno variable.
946 (__set_errno for MaRTE): Do not redefine this function here since it is
947 already defined in MaRTE.
949 2008-08-20 Tristan Gingold <gingold@adacore.com>
951 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
953 2008-08-20 Robert Dewar <dewar@adacore.com>
955 * freeze.adb: Minor reformatting
957 * g-comlin.adb: Minor reformatting
959 * g-socket.adb: Minor reformatting
961 * g-socthi-mingw.adb: Minor reformatting
963 * g-stheme.adb: Minor reformatting
965 2008-08-20 Ed Schonberg <schonberg@adacore.com>
967 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
968 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
969 confusion between partial and full views of an ancestor of the context
970 type when the parent is a private extension declared in a parent unit,
971 and full views are available for the context type.
973 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
974 Robert Dewar <dewar@adacore.com>
977 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
979 Move comment in the right place.
980 * g-comver.adb (Version): Look for a zero-termination in
981 addition to a closing parenthesis.
983 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
985 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
986 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
987 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
988 Is_Package_Or_Generic_Package instead of hand-crafted tests.
990 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
993 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
996 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
998 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
1000 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1002 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
1003 for back-copy statements in lieu of that of the actual.
1005 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1008 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
1009 setjmp test consistently. Adjust for new behavior of flag_stack_check.
1010 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
1011 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
1013 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
1016 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
1017 * sem_attr.adb (Check_Type): The current instance of a protected
1018 object is not a type name.
1019 (Analyze_Access_Attribute): Accept instances of protected objects.
1020 (Analyze_Attribute, Attribute_Address clause): Ditto.
1021 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
1022 the prefix as being the current instance if needed.
1024 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1026 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
1027 Remove duplicate s-win32.o. Add s-winext.o.
1029 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1031 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
1032 with SOSC.SOCK__STREAM.
1033 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
1036 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
1038 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
1039 * gsocket.h, socket.c: Update to support RTEMS.
1040 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
1042 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
1043 Robert Dewar <dewar@adacore.com>
1045 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
1046 left argument even when right argument is 0.
1047 (Expand_N_Op_Mod): Ditto when right argument is 1.
1048 (Expand_N_Op_Multiply): Ditto when any argument is 0.
1049 (Expand_N_Op_Rem): Ditto when right argument is 1.
1051 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1053 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1056 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1058 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1059 from Freeze_Entity. Used to generate cross-reference information for
1060 types declared in generic packages.
1062 2008-08-08 Thomas Quinot <quinot@adacore.com>
1064 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1067 2008-08-08 Thomas Quinot <quinot@adacore.com>
1070 On Windows, include <errno.h> and redefine only selected errno values
1071 from their <winsock2.h> definitions.
1073 * s-osinte-freebsd.ads: Minor reformatting
1075 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1077 * g-soccon.ads: New file.
1079 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1080 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1081 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1082 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1083 unit, to allow building software that depends on this internal unit
1084 with both older and newer compilers.
1086 2008-08-08 Robert Dewar <dewar@adacore.com>
1088 * s-strxdr.adb: Minor reformatting
1090 2008-08-08 Bob Duff <duff@adacore.com>
1092 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1093 checking for integer operations (including division by zero)", which
1094 is wrong -- divide by zero is not part of overflow checking.
1095 Also added misc clarification about what check-suppression means.
1097 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1099 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
1101 * g-comlin.adb (Add_Switch): Handle addition of switches at the
1102 begining of the command line.
1103 (Append, Add): Renaming of Append to Add as this now allows addition
1104 at the begining of the list.
1106 * g-comlin.ads (Add_Switch): Handle addition of switches at the
1107 begining of the command line.
1109 2008-08-08 Thomas Quinot <quinot@adacore.com>
1112 (Name): Document application scope (only legacy PC serial ports on
1115 2008-08-08 Thomas Quinot <quinot@adacore.com>
1117 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1118 previous change, not needed after all.
1120 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1122 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1123 exclusion indicator is present
1125 2008-08-08 Robert Dewar <dewar@adacore.com>
1127 * g-comlin.adb: Minor code reorganization
1130 * g-comlin.ads: Minor reformatting
1132 * s-fileio.adb: Minor reformatting
1134 * sem_attr.adb: Minor code reorganization (use Nkind_In)
1137 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1139 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1140 with s-oscons-tmplt.i.
1142 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1144 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1146 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1148 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1151 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1152 of a formal parameter of an incomplete type. Improve error message for
1153 other improper uses of incomplete types.
1155 2008-08-06 Robert Dewar <dewar@adacore.com>
1157 * gnat_ugn.texi: Clarify -gnato documentation
1159 2008-08-06 Thomas Quinot <quinot@adacore.com>
1161 * gcc-interface/Makefile.in,
1162 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1163 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1164 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1165 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1166 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1167 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1168 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1169 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1170 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1171 Remove GNAT.Sockets.Constants. This internal package is replaced by
1172 System.OS_Constants.
1174 2008-08-06 Thomas Quinot <quinot@adacore.com>
1176 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1177 Remove obsolete targets referencing gen-soccon
1178 When generating s-oscons.ads, use a file name that includes the
1179 THREAD_KIND, to ensure that the (potentially different) version from a
1180 previous build with a different threads flavour does not get reused.
1182 2008-08-06 Thomas Quinot <quinot@adacore.com>
1184 * sem_res.adb: Minor reformatting
1186 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1187 only when the operating system reports a non-existing file or directory
1188 (ENOENT), otherwise raise Name_Error.
1190 * exp_ch11.adb: Minor reformatting
1192 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1194 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1195 incomplete, add the access_to_subprogram type to the list of private
1196 dependents only if the incomplete type will be completed in the current
1198 (Build_Discriminant_Constraints): If the type of the discriminant is
1199 access_to_variable, reject a constraint that is access_to_constant.
1201 2008-08-06 Thomas Quinot <quinot@adacore.com>
1203 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1204 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1205 g-sttsne-dummy.ads: New files.
1207 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1208 with pragma Unimplemented_Unit for sockets packages on Nucleus.
1210 2008-08-06 Pascal Obry <obry@adacore.com>
1212 * adaint.c: Another fix for ACL support on Windows.
1214 2008-08-06 Javier Miranda <miranda@adacore.com>
1216 * exp_disp (Expand_Interface_Actuals): Adds missing support for
1217 expansion of calls to subprograms using selected components.
1219 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1221 * sem_res.adb (Resolve_Call): Use base type to determine whether a
1222 dereference is needed because a subtype of an access_to_subprogram is
1223 simply an access-subtype
1225 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1227 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1228 parameters, always specify the expected separator.
1230 2008-08-06 Thomas Quinot <quinot@adacore.com>
1232 * xnmake.adb: Use new XUtil package for platform independent text
1235 2008-08-06 Vincent Celier <celier@adacore.com>
1237 * gnat_ugn.texi: Document compiler switch -gnateG
1239 2008-08-06 Quentin Ochem <ochem@adacore.com>
1241 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1242 in the case of an empty pattern size.
1243 (Compute_Result): Do not do any computation in the case of an empty
1245 (Report_Result): Fixed computation of the overflow guard.
1247 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1249 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1250 finalization routine to prevent elaboration order anomalies in new
1251 finalization scheme.
1253 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1255 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1256 declaration for the same type.
1258 2008-08-06 Thomas Quinot <quinot@adacore.com>
1260 * sem.adb: Minor rewording (comment)
1262 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1264 * g-comlin.adb (Define_Switch, Get_Switches): New.
1265 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1266 ungrouping switches.
1267 (For_Each_Simple_Switch): Allow more control over parameters handling.
1268 This generic method now allows ungrouping of switches with parameters
1269 and switches with more than one letter after the prefix.
1270 (Set_Command_Line): Take care of switches that are prefixed with a
1271 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1273 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1274 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1276 (Start, Alias_Switches, Group_Switches): Take care of parameters
1277 possibly present inside a group.
1279 * g-comlin.ads (Define_Switch): New method used to define a list of
1280 expected switches, that are necessary for correctly ungrouping switches
1281 with more that one character after the prefix.
1282 (Get_Switches): Method that builds a getopt string from the list of
1283 switches as set previously by Define_Switch.
1284 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1285 status of the operation. Also allow the removal of switches with
1287 (Command_Line_Configuration_Record): Maintain a list of expected
1290 2008-08-06 Doug Rupp <rupp@adacore.com>
1292 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1293 TARGET_MALLOC64 clear.
1295 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1296 if TARGET_MALLOC64 clear.
1298 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1299 (TARGET_MALLC64): New macro. Default to clear.
1301 2008-08-06 Doug Rupp <rupp@adacore.com>
1303 * gcc-interface/utils2.c (snames.h) Include
1304 (TARGET_ABI_OPEN_VMS): Initialize.
1305 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1308 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1310 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1311 null exclusion in a discriminant declaration
1313 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1314 indicators when type is not an access type.
1316 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1317 indicators when type is not an access type.
1319 2008-08-06 Javier Miranda <miranda@adacore.com>
1321 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1322 with the target interface before expanding the code of the interface
1325 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1328 (Freeze_Entity): A deferred constant does not violate the restriction
1329 No_Default_Initialization,
1331 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1332 can carry a null exclusion indicator, and on which an error may be
1333 posted if the indicator is redundant.
1335 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1336 does not apply to a subtype mark that already excludes null.
1338 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1339 exclusion does not apply to a subtype mark that already excludes null.
1341 2008-08-05 Thomas Quinot <quinot@adacore.com>
1343 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1345 2008-08-05 Doug Rupp <rupp@adacore.com>
1347 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1349 2008-08-05 Thomas Quinot <quinot@adacore.com>
1351 * gsocket.h: Make this file includable in a Nucleus environment, which
1352 does not support sockets.
1354 * socket.c: Remove Nucleus-specific hack.
1356 2008-08-05 Pascal Obry <obry@adacore.com>
1358 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1360 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1363 (Analyze_Attribute, case 'Result): handle properly the case where some
1364 operand of the expression in a post-condition generates a transient
1367 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1368 right-hand side when it is an anonymous access_to_subprogram, to force
1369 static accessibility check when needed.
1371 2008-08-05 Sergey Rybin <rybin@adacore.com>
1373 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1374 rule according to the change in the rule option.
1375 Add documentation for -gnatw.b/-gnatw.B
1377 2008-08-05 Robert Dewar <dewar@adacore.com>
1379 * ug_words: Add entries for -gnatw.b/-gnatw.B
1381 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1383 2008-08-05 Vincent Celier <celier@adacore.com>
1385 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1388 * a-ztdeio.adb: Ditto.
1390 2008-08-05 Pascal Obry <obry@adacore.com>
1392 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1395 2008-08-05 Vincent Celier <celier@adacore.com>
1398 (Wide_String_To_String): Returns a String with the same 'First as its
1400 (Wide_Wide_String_To_String): Ditto
1403 (Wide_String_To_String): Document that the lowest index of the returned
1404 String is equal to S'First.
1406 2008-08-05 Thomas Quinot <quinot@adacore.com>
1408 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1410 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1413 2008-08-05 Robert Dewar <dewar@adacore.com>
1415 * opt.ads (Warn_On_Biased_Representation): New flag
1418 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1419 representation is required.
1420 (Minimum_Size): Don't allow biasing if enum rep clause case
1423 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1424 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1426 * usage.adb: Add lines for -gnatw.b/B switches
1428 2008-08-05 Pascal Obry <obry@adacore.com>
1430 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1432 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1434 2008-08-05 Thomas Quinot <quinot@adacore.com>
1436 * socket.c: Minor reformatting.
1438 2008-08-05 Robert Dewar <dewar@adacore.com>
1440 * sem_ch3.adb: Minor reformatting
1442 * prj-nmsc.adb: Minor reformatting
1444 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1446 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1447 visibility check on the component type if the simple test fails.
1449 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1451 * init.c (__gnat_install_handler for linux): If we are building the
1452 Xenomai run time then we need to do two additional things: avoid
1453 memory swapping and transform the Linux environment task into a native
1456 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1457 time): Use interface to Xenomai native skin and avoid linux-specific
1458 way of setting CPU affinity.
1459 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1461 2008-08-05 Bob Duff <duff@adacore.com>
1463 * checks.ads: Minor comment fix
1465 2008-08-05 Thomas Quinot <quinot@adacore.com>
1467 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1468 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1471 2008-08-05 Robert Dewar <dewar@adacore.com>
1473 * mlib.adb: Minor code reorganization
1476 * make.adb: Minor reformatting
1478 * prj-attr.ads: Minor reformatting
1480 * s-os_lib.adb: Minor reformatting
1482 * s-fileio.adb: Minor code reorganization
1485 * prj.ads: Minor reformatting
1487 2008-08-05 Bob Duff <duff@adacore.com>
1489 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1490 unresolved initial value of "null", because it causes implicitly
1491 generated "=" operators to be ambiguous, and because this type should
1492 not be passed to gigi.
1494 2008-08-05 Vincent Celier <celier@adacore.com>
1496 * mlib.adb: Update comments.
1498 * make.adb (Switches_Of): Check for Switches (others), before checking
1499 for Default_Switches ("Ada").
1500 (Gnatmake): Use Builder'Switches (others) in preference to
1501 Builder'Default_Switches ("Ada") if there are several mains.
1504 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1508 Add markers to indicates that attributes Switches allow others as index
1509 (Others_Allowed_For): New Boolean function, returning True for
1510 attributes with the mark.
1511 (Initialize): Recognize optional letter 'O' as the marker for
1512 associative array attributes where others is allowed as the index.
1515 (Others_Allowed_For): New Boolean function
1516 (Attribute_Record): New Boolean component Others_Allowed
1519 (Parse_Attribute_Declaration): For associative array attribute where
1520 others is allowed as the index, allow others as an index.
1523 (Process_Binder): Skip associative array attributes with index others
1524 (Process_Compiler): Ditto
1527 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1528 index is All_Other_Names.
1531 (All_Other_Names): New constant
1534 (Process_Declarative_Items): Skip associative array attribute when index
1535 is reserved word "others".
1537 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1539 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1541 2008-08-05 Thomas Quinot <quinot@adacore.com>
1543 * a-rttiev.adb: Minor reformatting (comments)
1545 * gen-soccon.c: Rename to gen-oscons.c
1547 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1548 GNAT.Sockets.Constants.
1549 Add new constants for GNAT.Serial_Communications and System.File_IO.
1551 2008-08-05 Javier Miranda <miranda@adacore.com>
1553 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1554 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1555 implementation of this routine has been simplified.
1557 2008-08-05 Pascal Obry <obry@adacore.com>
1559 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1560 Set_Read_Only Win32 implementation.
1562 2008-08-05 Thomas Quinot <quinot@adacore.com>
1564 * exp_strm.adb: Minor reformatting (comments)
1566 * sem_ch12.adb: Minor reformatting.
1568 2008-08-05 Robert Dewar <dewar@adacore.com>
1570 * sem_ch3.adb: Minor reformatting
1572 * checks.adb: Minor reformatting
1574 2008-08-05 Thomas Quinot <quinot@adacore.com>
1576 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1577 restriction on Prefix.
1579 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1581 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1582 methods needed to handle switch sections when building a command line.
1583 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1584 Current_Section): New public methods or methods modified to handle
1585 building command lines with sections.
1586 (Set_Command_Line): Take into account sections when analysing a switch
1588 (Start): Sort the switches by sections before iterating the command line
1591 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1592 Is_New_Section, Current_Section): New methods or methods modified to
1593 handle building command lines with sections.
1595 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1597 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1598 discriminants, indicate that the corresponding object declaration has
1599 no initialization, to prevent spurious warnings when the access type is
1602 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1604 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1605 Abort_Task, warn if the call appears within a protected operation.
1607 2008-08-04 Robert Dewar <dewar@adacore.com>
1609 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1611 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1614 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1615 anonymous access to protected subprogram that is the return type of the
1616 specification of a subprogram body.
1619 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1620 subprogram, freeze it now to prevent access anomalies in the back-end.
1622 * exp_ch9.adb: Minor code cleanup.
1623 Make sure that new declarations are inserted into the tree before
1624 analysis (from code reading).
1626 2008-08-04 Robert Dewar <dewar@adacore.com>
1629 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1632 2008-08-04 Thomas Quinot <quinot@adacore.com>
1634 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1636 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1638 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1640 2008-08-04 Javier Miranda <miranda@adacore.com>
1642 * sem_prag.adb (Process_Convention): Add missing support for
1643 N_Private_Extension_Declaration nodes.
1645 2008-08-04 Robert Dewar <dewar@adacore.com>
1647 * exp_ch4.adb: Minor reformatting
1649 2008-08-04 Pascal Obry <obry@adacore.com>
1651 * adaint.h: Add missing prototype.
1653 * adaint.c: Refine support for Windows file attributes.
1655 2008-08-04 Robert Dewar <dewar@adacore.com>
1658 (Valid_Conversion): Catch case of designated types having different
1659 sizes, even though they statically match.
1661 2008-08-04 Javier Miranda <miranda@adacore.com>
1663 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1664 added in previous patch to handle access to subprograms.
1666 2008-08-04 Robert Dewar <dewar@adacore.com>
1669 (Freeze_Entity): Only check No_Default_Initialization restriction for
1670 constructs that come from source
1672 2008-08-04 Thomas Quinot <quinot@adacore.com>
1674 * exp_ch6.adb: Minor comment fix.
1676 * sem_ch4.adb: Minor reformatting.
1678 2008-08-04 Robert Dewar <dewar@adacore.com>
1680 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1682 2008-08-04 Pascal Obry <obry@adacore.com>
1684 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1687 2008-08-04 Javier Miranda <miranda@adacore.com>
1689 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1690 for N_Formal_Object_Declaration nodes. Adding kludge required by
1691 First_Formal to provide its functionality with access to functions.
1692 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1693 for anonymous access types returned by functions.
1695 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1696 conversion of null-excluding access types (required only once to force
1697 the generation of the required runtime check).
1699 * sem_type.adb (Covers): minor reformating
1701 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1702 with internally generated nodes. Avoid generating the error inside init
1705 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1706 (Resolve_Null): Generate the null-excluding check in case of assignment
1707 to a null-excluding object.
1708 (Valid_Conversion): Add missing support for anonymous access to
1711 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1712 anonymous access types whose designated type is an itype. This case
1713 occurs with anonymous access to protected subprograms types.
1714 (Analyze_Return_Type): Add missing support for anonymous access to
1715 protected subprogram.
1717 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1718 subprograms addition of missing check on matching convention. Required
1719 to properly handle access to protected subprogram types.
1721 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1722 null excluding access types.
1724 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1726 * sem_ch12.adb: Add comments
1728 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1729 access type and the allocator is not initialized, warn rather than
1732 2008-08-04 Robert Dewar <dewar@adacore.com>
1734 * exp_ch4.adb: Minor reformatting
1736 * exp_dist.adb: Minor reformatting
1738 * g-comlin.adb: Minor reformatting
1740 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1742 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1743 target to the type of the aggregate in the case where the target object
1746 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1747 result type is class-wide and inherently limited, and the expression
1748 has a specific type, create a return object of the specific type, for
1749 more efficient handling of returns of build-in-place aggregates (avoids
1750 conversions of the class-wide return object to the specific type on
1751 component assignments).
1753 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1754 about a type mismatch for a class-wide function with a return object
1755 having a specific type when the object declaration doesn't come from
1756 source. Such an object can result from the expansion of a simple return.
1758 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1760 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1762 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1763 compiling for 64bit windows.
1765 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1767 * g-comlin.adb (Group_Switches): Preserve the switch order when
1768 grouping and allow switch grouping of switches with more than one
1769 character extension (e.g. gnatw.x).
1770 (Args_From_Expanded): Remove this now obsolete method.
1772 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1774 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1775 chain at once, to ensure that type is properly decorated for back-end,
1776 when allocator appears within a loop.
1778 2008-08-04 Kevin Pouget <pouget@adacore.com>
1780 * snames.h, snames.adb, snames.ads:
1781 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1783 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1784 Build_To_Any_Call and Build_TypeCode_Call procedures.
1786 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1788 * rtsfind.ads: Add corresponding names.
1790 * tbuild.adb: Update prefix restrictions to allow '_' character.
1792 2008-08-04 Doug Rupp <rupp@adacore.com>
1794 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1795 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1796 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1797 use it. Calculate pointer range overflow using 64bit types.
1799 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1801 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1802 legal context for an anonymous access to subprogram.
1804 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1805 indirect call, report success to the caller to include possible
1808 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1810 of the extended return is an anonymous access_to_subprogram type.
1813 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1814 access_to_subprogram and the context requires its return type, and a
1815 dereference has not been introduced previously.
1817 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1819 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1820 gnatcheck support in GPS.
1822 2008-08-04 Vincent Celier <celier@adacore.com>
1824 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1827 2008-08-04 Vincent Celier <celier@adacore.com>
1829 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1830 variable, but don't check the resulting value as it has no impact on
1834 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1835 when switch -gnateG is used.
1838 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1839 when the source is modified by the preprocessor and there is no
1840 preprocessing errors.
1842 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1845 (Load_File): Output the result of preprocessing if the source text was
1848 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1850 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1852 * ug_words: Add VMS equivalent for -gnateG
1855 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1857 2008-08-04 Doug Rupp <rupp@adacore.com>
1859 * gcc-interface/utils2.c:
1860 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1861 in 32bit descriptor.
1863 2008-08-04 Robert Dewar <dewar@adacore.com>
1865 * par-ch10.adb: Minor reformatting
1867 * i-cobol.adb: Minor reformatting.
1869 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1871 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1872 anonymous access return type of a regular function that is not a
1875 2008-08-04 Vincent Celier <celier@adacore.com>
1877 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1879 * snames.adb: New standard name Global_Compilation_Switches
1881 * snames.ads: New standard name Global_Compilation_Switches
1883 * make.adb: Correct spelling error in comment
1885 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1887 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1890 2008-08-04 Thomas Quinot <quinot@adacore.com>
1892 * sem_ch10.adb: Minor comment fix.
1894 2008-08-04 Robert Dewar <dewar@adacore.com>
1896 * restrict.adb: Improved messages for restriction warnings
1898 * restrict.ads: Improved messages for restriction messages
1900 * s-rident.ads (Profile_Name): Add No_Profile
1902 2008-08-04 Robert Dewar <dewar@adacore.com>
1904 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1906 2008-08-04 Robert Dewar <dewar@adacore.com>
1908 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1910 2008-08-04 Vincent Celier <celier@adacore.com>
1913 (Copy_Package_Declarations): When inheriting package Naming from a
1914 project being extended, do not inherit source exception names.
1916 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1918 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1919 list of declaration to find previous subprogram, do not go to the
1920 original node of a generic unit.
1922 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1924 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1925 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1927 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1929 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1930 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1931 and adjust for above renaming.
1932 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1933 gnu_expr_alt_type parameter. Convert the expression to it instead
1934 of changing its type in place.
1935 (build_function_stub): Adjust call to above function.
1937 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1939 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1940 code. Do not get full definition of deferred constants with address
1941 clause for a use. Do not ignore deferred constant definitions with
1942 address clause. Ignore constant definitions already marked with the
1944 <object>: Remove obsolete comment. For a deferred constant with
1945 address clause, get the initializer from the full view.
1946 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1947 Rework and remove obsolete comment.
1948 <N_Object_Declaration>: For a deferred constant with address clause,
1949 mark the full view with the error node.
1950 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1953 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1955 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1957 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1958 sem_prag.adb, snames.adb, snames.ads, snames.h,
1959 par-prag.adb: Undo previous stream related changes.
1961 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1963 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1964 Define enumeration type to designate different IO mechanisms.
1965 Enchance generic package Stream_Ops_Internal to include an
1966 implementation of Input and Output.
1968 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1969 No_Stream_Optimization is active, choose the default byte IO
1970 implementations of stream attributes for Strings.
1971 Otherwise use the corresponding block IO version.
1973 2008-08-01 Olivier Hainque <hainque@adacore.com>
1975 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1976 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1978 2008-08-01 Robert Dewar <dewar@adacore.com>
1980 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1981 convert plain identifier into defining identifier.
1983 2008-08-01 Robert Dewar <dewar@adacore.com>
1985 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1988 * lib-xref.adb: Add error defense.
1990 2008-08-01 Bob Duff <duff@adacore.com>
1992 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1994 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1996 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1997 correct accessibility levels. In the "when others" case, retrieve the
1998 access level of the Etype of Prev rather than Prev_Orig, because the
1999 original exression has not always been analyzed.
2001 2008-08-01 Robert Dewar <dewar@adacore.com>
2003 * prj-nmsc.adb: Minor reformatting
2005 * sem_ch4.adb: Minor reformatting
2006 Minor code reorganization
2008 * prj.ads: Minor reformatting
2010 * s-os_lib.adb: Minor reformatting
2012 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
2015 * scans.ads: Minor reformatting.
2017 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2018 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
2021 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2023 * sem_ch12.adb: Minor comment reformatting
2025 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
2028 2008-08-01 Robert Dewar <dewar@adacore.com>
2030 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
2033 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2035 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
2036 converted is a real literal and the target type has static bounds,
2037 perform the conversion exactly to prevent floating-point anomalies on
2040 2008-08-01 Vincent Celier <celier@adacore.com>
2042 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
2044 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
2046 * prj.adb (Object_Exist_For): Use Object_Generated, not
2047 Objects_Generated that is removed and was never modified anyway.
2050 (Path_Syntax_Kind): New enumeration type
2051 (Language_Config): New component Path_Syntax, defaulted to Host.
2052 Components PIC_Option and Objects_Generated removed, as they are not
2055 * snames.adb: New standard name Path_Syntax
2057 * snames.ads: New standard name Path_Syntax
2059 2008-08-01 Vincent Celier <celier@adacore.com>
2062 (Adalib_Path): New variable to store the path of the adalib directory
2063 when procedure Specify_Adalib_Dir is called.
2064 (Lib_Directory): If Adalib_Path is not null, return its value
2065 (Specify_Adalib_Dir): New procedure
2067 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2069 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2072 (Check_Precondition_Postcondition): If not generating code, analyze the
2073 expression in a postcondition that appears in a subprogram body, so that
2074 it is properly decorated for ASIS use.
2076 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2078 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2079 Orig_Prev to Prev in the case where the actual is N_Function_Call or
2080 N_Identifier. This was interfering with other cases that are rewritten
2081 as N_Identifier, such as allocators, resulting in passing of the wrong
2082 accessibility level, and based on testing this code is apparently no
2083 longer needed at all.
2085 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2087 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2088 procedure call whose prefix
2089 is a parameterless function call that returns an access_to_procedure.
2091 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2093 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2094 for RTX. Adding a suffix that is incremented at each iteration.
2096 2008-08-01 Robert Dewar <dewar@adacore.com>
2098 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2101 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
2103 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2104 paths, which are authorized by Windows but can lead to errors when used
2107 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2109 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2110 a pending instantiation for the body of a subprogram that is to be
2114 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2116 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2117 create a pending instance for its body, so that calls to the subprogram
2118 can be inlined by the back-end.
2120 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2122 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2125 2008-08-01 Robert Dewar <dewar@adacore.com>
2127 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2129 2008-08-01 Doug Rupp <rupp@adacore.com>
2131 * gnat_rm.texi: Document new mechanism Short_Descriptor.
2133 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2136 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2137 mechanism and Short_Descriptor mechanism values.
2139 * snames.adb (preset_names): Add short_descriptor entry.
2141 * snames.ads: Add Name_Short_Descriptor.
2143 * types.h: Add new By_Short_Descriptor mechanism values.
2145 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2146 mechanism and Short_Descriptor mechanism values.
2148 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2150 (Descriptor_Codes): Modify range for new mechanism values.
2152 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2155 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2156 (gnat_to_gnu_param): Handle By_Short_Descriptor.
2158 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2159 (build_vms_descriptor32): New prototype.
2160 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2162 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2163 argument in call fill_vms_descriptor.
2165 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2166 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2167 (build_vms_descriptor): Renamed from build_vms_descriptor64.
2168 (convert_vms_descriptor32): New function.
2169 (convert_vms_descriptor64): New function.
2170 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2173 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2176 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2178 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2179 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2182 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2184 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2185 current directory so only fully qualified names are allowed.
2187 2008-08-01 Robert Dewar <dewar@adacore.com>
2190 Minor editing, remove uncomfortable use of semicolon
2192 * s-ststop.adb: Add some ??? comments
2194 * sem_ch10.adb: Minor reformatting
2197 Minor comment fixes, some pragmas were not properly
2198 categorized in the comments, documentation change only
2200 * xref_lib.adb: Minor reformatting
2202 * sinput.adb: Minor reformatting
2204 * gnatchop.adb: Minor reformatting
2206 * sem_util.ads: Minor reformatting.
2208 * opt.ads: Minor documentation fix
2210 * scng.adb: Minor reformatting
2212 * prj-part.adb: Update comments
2214 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2216 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2217 tagged synchronized type, use corresponding record type.
2219 2008-08-01 Doug Rupp <rupp@adacore.com>
2221 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2222 dummy transfer address for debugging.
2224 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2226 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2228 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2230 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2231 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2233 2008-07-31 Pascal Obry <obry@adacore.com>
2235 * prj-nmsc.adb: Keep Object and Exec directory casing.
2237 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2239 * system-rtx-rtss.ads
2240 Change the default stack size. It is important to set the commit part.
2243 (Initialize): Get the clock resolution.
2244 (RT_Resolution): Return the clock resolution that is indicated by the
2247 * s-parame-vxworks.adb
2248 Document that this body is used for RTX in RTSS (kernel) mode.
2250 * gcc-interface/Makefile.in
2251 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2252 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2253 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2254 cannot ask for too big values.
2256 2008-07-31 Robert Dewar <dewar@adacore.com>
2258 * exp_aggr.adb: Minor reformatting
2260 * makeutl.adb: Minor reformatting
2262 * prj-env.adb: Minor reformatting
2264 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2266 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2267 tagged type is completed by a concurrent type.
2269 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2272 (Resolve_Record_Aggregate): Bypass error that a type without
2273 components must have a "null record" aggregate when compiling for Ada
2274 2005, since it's legal to give an aggregate of form (others => <>)
2277 2008-07-31 Javier Miranda <miranda@adacore.com>
2279 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2280 handle synchronized types. Required to handle well the object.operation
2281 notation applied to synchronized types.
2283 2008-07-31 Quentin Ochem <ochem@adacore.com>
2285 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2286 anymore - just used internally.
2287 Added handling of very small tasks - when the theoretical size is
2288 already full at the point of the call.
2289 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2290 not need to be added to the result.
2292 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2294 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2295 corresponding spec is a primitive wrapper. Update comment.
2297 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2299 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2300 (Gen_Adainit_Ada): Add the declaration, import and value set for
2301 configuration flag Canonical_Streams.
2302 (Gen_Adainit_C): Add the declaration and initial value of external
2303 symbol __gl_canonical_streams.
2305 * init.c: Update the list of global values computed by the binder.
2307 * opt.ads: Add flag Canonical_Streams.
2309 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2310 semantically handled pragmas.
2312 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2313 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2315 * snames.adb: Add character value for name Canonical_Streams.
2318 Add Name_Canonical_Streams to the list of configuration pragmas.
2319 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2321 * snames.h: Add a definition for Pragma_Canonical_Streams.
2324 Add a flag and import to seize the value of external symbol
2325 __gl_canonical_streams. Update comment and initial value of constant
2328 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2331 Add pragma Canonical_Streams to the list of configuration pragmas.
2333 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2335 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2336 has the form A.B.C and B is a unit renaming, analyze its compilation
2337 unit and add a with_clause on A.b to the context.
2339 2008-07-31 Vincent Celier <celier@adacore.com>
2341 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2342 return the empty string, instead of raising Constraint_Error.
2344 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2346 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2348 * checks.adb (Apply_Accessibility_Check): Insert the check on
2352 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2353 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2354 Necessary to distinguish the insertion node because the dereferenced
2355 formal may come from a rename, but the check must be inserted in
2356 front of the attribute.
2359 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2360 call to Apply_Accessibility_Check.
2361 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2362 on call to Apply_Accessibility_Check.
2365 2008-07-31 Javier Miranda <miranda@adacore.com>
2367 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2368 types when the candidate type is a synchronized type.
2370 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2371 types, and complete management of synchronized types adding missing
2372 code to handle formal that is a synchronized type.
2374 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2375 are not available and cause the compiler to blowup. Found compiling
2376 test with switch -gnatc
2378 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2379 Has_Correct_Formal_Mode plus code cleanup.
2381 2008-07-31 Bob Duff <duff@adacore.com>
2383 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2384 recognized as two end-of-lines, but it should be just one.
2386 2008-07-31 Thomas Quinot <quinot@adacore.com>
2388 * exp_ch9.adb: Minor reformatting
2390 * tbuild.ads: Fix several occurrences of incorrectly referring to
2391 Name_Find as Find_Name.
2393 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2395 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2396 and the context is an object declaration with non-static bounds, treat
2397 the aggregate as non-static.
2399 2008-07-31 Vincent Celier <celier@adacore.com>
2401 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2402 Move back spec of Parse_Single_Project to body, as it is not called
2403 outside of package Prj.Part.
2404 (Project_Data): Remove components Linker_Name, Linker_Path and
2405 Minimum_Linker_Options as they are no longer set.
2406 Remove function There_Are_Ada_Sources from package Prj and move code
2407 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2409 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2411 * mlib-utl.ads: Fix typo.
2413 2008-07-31 Robert Dewar <dewar@adacore.com>
2415 * sem_ch12.adb: Minor reformatting
2417 2008-07-31 Sergey Rybin <rybin@adacore.com>
2419 * gnat_ugn.texi: Change the description of the
2420 Overly_Nested_Control_Structures: now the rule always requires a
2421 positive parameter for '+R' option
2423 2008-07-31 Thomas Quinot <quinot@adacore.com>
2425 * g-pehage.adb: Minor reformatting
2427 2008-07-31 Pascal Obry <obry@adacore.com>
2429 * s-finimp.ads: Minor reformatting.
2431 2008-07-31 Vincent Celier <celier@adacore.com>
2433 * s-regexp.ads: Minor comment fix
2435 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2437 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2438 so that we can compile this file successfully with -gnatc.
2440 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2442 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2443 of the type when looking for stream subprograms for type String,
2444 Wide_String and Wide_Wide_String.
2446 * s-ststop.adb: Change the initialization expression of constant
2449 2008-07-31 Geert Bosch <bosch@adacore.com>
2452 New file implementing __gnat_mulv64 signed integer multiplication with
2455 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2457 * gcc-interface/gigi.h:
2458 (standard_types): Add ADT_mulv64_decl
2459 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2461 * gcc-interface/utils.c:
2462 (init_gigi_decls): Add initialization of mulv64_decl
2464 * gcc-interface/trans.c:
2465 (build_unary_op_trapv): New function
2466 (build_binary_op_trapv): New function
2467 (gnat_to_gnu): Use the above functions instead of
2468 build_{unary,binary}_op
2470 * gcc-interface/Makefile.in
2471 (LIBGNAT_SRCS): Add arit64.c
2472 (LIBGNAT_OBJS): Add arit64.o
2474 2008-07-31 Vincent Celier <celier@adacore.com>
2476 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2477 Linker'Default_Switches are declared. Warn if they are declared.
2479 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2481 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2482 Insert_Actions to place the pointer declaration in the code, rather
2483 than Insert_Before_And_Analyze, so that insertions of temporaries are
2484 kept in the proper order when transient scopes are present.
2487 2008-07-31 Robert Dewar <dewar@adacore.com>
2489 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2491 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2493 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2496 2008-07-31 Vincent Celier <celier@adacore.com>
2498 * s-os_lib.adb: Minor comment fix
2500 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2502 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2503 transfer pre/postconditions from generic copy to original tree, so that
2504 they will appear in each instance.
2505 (Process_PPCs): Do not transform postconditions into a procedure in a
2506 generic context, to prevent double expansion of check pragmas.
2508 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2509 can be the renaming of the
2510 current instance, so check validity of the name accordingly.
2512 2008-07-31 Robert Dewar <dewar@adacore.com>
2514 * mlib-utl.ads: Minor reformatting
2516 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2518 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2519 from context. This attribute must be usable in Ada95 mode.
2520 The attribute can appear in the body of a function marked
2521 Inline_Always, but in this case the postocondition is not enforced.
2523 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2524 of an inlined call pre- and postconditions are legal
2526 2008-07-31 Vincent Celier <celier@adacore.com>
2528 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2529 were for gprmake only
2531 2008-07-31 Robert Dewar <dewar@adacore.com>
2533 * gnat_ugn.texi: Update -gnatN documentation.
2535 * gnat_rm.texi: Add note about pre/postcondition
2536 pragmas not checked in conjunction with front-end inlining.
2538 2008-07-31 Robert Dewar <dewar@adacore.com>
2540 * g-pehage.adb, g-pehage.ads: Minor reformatting
2542 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2544 * mlib-utl.ads, prj-makr.ads: Add comments.
2546 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2548 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2549 [WINDOWS]: Add s-winext.o.
2551 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2554 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2555 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2556 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2557 Set precision to 1 for subtype of BOOLEAN_TYPE.
2558 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2559 (make_type_from_size): Deal with BOOLEAN_TYPE.
2560 * gcc-interface/misc.c (gnat_print_type): Likewise.
2561 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2562 Set boolean_type_node as its translation in the table, as well
2563 as boolean_false_node for False and boolean_true_node for True.
2564 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2565 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2566 (create_param_decl): Deal with BOOLEAN_TYPE.
2567 (build_vms_descriptor): Likewise.
2568 (build_vms_descriptor64): Likewise.
2569 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2571 2008-07-30 Robert Dewar <dewar@adacore.com>
2573 * exp_ch9.adb: Minor reformatting
2575 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2576 if no primitive operation is found.
2578 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2580 * sem_ch8.adb: Minor reformatting
2582 2008-07-30 Laurent Pautet <pautet@adacore.com>
2585 Remove a limitation on the length of the words handled by the minimal
2586 perfect hash function generator.
2589 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2592 2008-07-30 Robert Dewar <dewar@adacore.com>
2594 * gnatlink.adb: Minor reformatting
2596 2008-07-30 Thomas Quinot <quinot@adacore.com>
2598 * rtsfind.adb (Check_RPC): Check version consistency even when not
2599 generating RCI stubs. Provide more detailed error message in case of
2602 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2604 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2605 as a actual in an instance, check for a missing attribute to prevent
2606 program_error on an illegal program.
2608 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2609 error if primitive is not found, so that exception can be handled
2610 elsewhere on illegal programs.
2612 2008-07-30 Robert Dewar <dewar@adacore.com>
2614 * uintp.adb (UI_GCD): Fix potential overflow
2616 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2618 * einfo.adb: Flag245 is now used.
2619 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2620 check to include functions.
2621 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2622 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2624 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2625 to the list of displayed flags.
2627 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2628 Wrapped_Entity. These two flags are now present in functions.
2629 New flag Is_Private_Primitive.
2630 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2633 (Build_Wrapper_Bodies): New subprogram.
2634 (Build_Wrapper_Body): The spec and body have been moved to in
2635 Build_Wrapper_ Bodies. Code cleanup.
2636 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2637 Wrappers are now generated for primitives declared between the private
2638 and full view of a concurrent type that implements an interface.
2639 (Build_Wrapper_Specs): New subprogram.
2640 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2641 creation mechanism with a call to Build_Wrapper_Bodies.
2642 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2643 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2644 (Expand_N_Task_Body): Replace the wrapper body creation
2645 mechanism with a call to Build_Wrapper_Bodies.
2646 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2647 creation mechanism with a call to Build_Wrapper_Specs.
2648 (Is_Private_Primitive_Subprogram): New subprogram.
2649 (Overriding_Possible): Code cleanup.
2650 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2652 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2654 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2655 (Process_Full_View): Build wrapper specs for all primitives
2656 that belong to a private view completed by a concurrent type
2657 implementing an interface.
2659 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2661 concurrent type with a private view that implements an interface, try to
2662 find the proper spec.
2663 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2664 primitive if the type of its first parameter is a non-generic tagged
2666 (Analyze_Subprogram_Specification): Code reformatting.
2667 (Disambiguate_Spec): New routine.
2668 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2669 (Is_Private_Concurrent_Primitive): New routine.
2672 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2674 2008-07-30 Doug Rupp <rupp@adacore.com>
2676 * gigi.h (build_vms_descriptor64): New function prototype.
2677 (fill_vms_descriptor): Modified function prototype.
2679 * utils.c (build_vms_descriptor64): New function.
2681 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2683 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2686 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2687 64bit and 32bit descriptor and save the 64bit version as an alternate
2688 TREE_TYPE in the parameter.
2689 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2692 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2694 2008-07-30 Robert Dewar <dewar@adacore.com>
2696 * make.adb: Minor reformatting
2698 * mlib-utl.adb: Minor reformatting
2700 * osint.ads: Minor reformatting
2702 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2705 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2706 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2707 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2710 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2711 the function RtPrintf for console output.
2713 * argv.c Do not use the environ variable for RTX.
2715 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2716 been moved before the call to Osint.Add_Default_Search_Dirs in order
2717 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2718 from the appropriate run time.
2721 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2722 target is a RTSS module for RTX.
2724 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2725 RTX_RTSS_Kernel_Module
2726 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2728 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2729 exception handling mechanism for Windows and RTX in Win32 mode, but
2730 not for RTX in kernel mode (RTSS).
2731 (LIBGNAT_SRCS): Remove ada.h
2733 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2735 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2736 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2737 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2738 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2739 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2740 ALL_ADA_CFLAGS): Remove.
2741 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2742 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2743 (GCC_CFLAGS): Remove X_CFLAGS.
2744 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2745 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2746 (ADA_CFLAGS): Substitute.
2748 2008-07-30 Laurent Guerby <laurent@guerby.net>
2751 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2752 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2753 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2754 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2755 by stamp-gnatlib2-rts.
2757 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2759 PR documentation/15479
2760 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2761 statement for GNAT. Add @copying stanza, use it. Update to
2762 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2763 title as Front-Cover Text.
2764 * gnat_rm.texi: Likewise.
2765 * gnat_ugn.texi: Likewise.
2767 2008-07-29 Jan Hubicka <jh@suse.cz>
2769 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2772 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2774 * gcc-interface: New directory.
2776 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2777 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2778 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2779 to gcc-interface subdirectory.
2781 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2783 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2785 2008-07-28 Jan Hubicka <jh@suse.cz>
2787 * misc.c (gnat_post_options): Do not set flag_no_inline.
2789 2008-07-28 Richard Guenther <rguenther@suse.de>
2791 Merge from gimple-tuples-branch.
2793 2008-07-22 Olivier Hainque <hainque@adacore.com>
2795 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2796 this is called for an elab proc to be discarded if empty.
2797 * utils.c (end_subprog_body): Honor ELAB_P.
2798 (build_function_stub): Adjust call to end_subprog_body.
2799 * trans.c (Subprogram_Body_to_gnu): Likewise.
2800 (gigi): Reorganize processing of elab procs to prevent
2801 gimplifying twice, using the new end_subprog_body argument.
2803 2008-07-19 Richard Guenther <rguenther@suse.de>
2805 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2806 (utils.o): Likewise.
2807 * trans.c: Include tree-iterator.h.
2808 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2809 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2810 (set_expr_location_from_node): Likewise.
2812 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2814 * utils.c: Include tree-iterator.h.
2815 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2817 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2819 * trans.c: Include gimple.h instead of tree-gimple.h.
2822 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2824 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2826 2008-07-25 Jan Hubicka <jh@suse.cz>
2828 * utils.c (end_subprog_body): Remove inline trees check.
2829 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2831 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2833 * raise-gcc.c: Move tsystem.h before tm.h.
2835 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2837 * gnathtml.pl: New file.
2839 2008-07-19 Olivier Hainque <hainque@adacore.com>
2841 * targtyps.c (get_target_default_allocator_alignment): Use
2842 MALLOC_ABI_ALIGNMENT.
2844 2008-07-17 Olivier Hainque <hainque@adacore.com>
2846 * adaint.c (__MINGW32__ section): Include ctype.h and define
2847 a fallback ISALPHA if IN_RTS.
2848 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2850 2008-07-17 Olivier Hainque <hainque@adacore.com>
2852 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2853 argument, to apply to references in addition to definitions. Prevent
2854 setting TREE_STATIC on externals.
2855 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2857 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2859 PR documentation/15479
2860 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2861 Replace backets around optional parameters with @ovar
2862 where possible, use @r{[}, @r{]} otherwise.
2863 Replace some @r, @i, and @emph with @var where appropriate.
2865 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2867 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2869 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2871 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2872 -Wc++-compat warnings.
2873 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2874 __gnat_locate_exec_on_path): Likewise.
2875 * decl.c (annotate_value): Likewise.
2876 * misc.c (gnat_handle_option): Likewise.
2877 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2878 post_error_ne_tree): Likewise.
2880 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2882 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2883 version of its type, attempt to first convert its elements.
2885 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2887 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2889 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2891 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2893 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2895 * utils2.c (known_alignment): Derive the alignment from pointed-to
2896 types only if it is otherwise unknown.
2897 <INTEGER_CST>: Tidy.
2898 <MULT_EXPR>: Likewise.
2899 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2902 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2905 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2907 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2909 * gnat_rm.texi (Implementation Defined Characteristics)
2910 (Standard Library Routines): Use @smallexample for indented
2911 text. Drop Indentation outside examples.
2912 * gnat_ugn.texi: Likewise.
2914 2008-06-13 Olivier Hainque <hainque@adacore.com>
2916 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2918 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2919 realignment with force_align_arg_pointer attribute on foreign
2920 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2922 2008-06-13 Olivier Hainque <hainque@adacore.com>
2924 * utils.c (rest_of_record_type_compilation): When computing
2925 encodings for the components of a variable size type, early
2926 strip conversions on the current position expression to make
2927 sure it's shape is visible. Use remove_conversions for this
2930 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2932 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2933 constrained subtype of a discriminated type, discard the fields that
2934 are beyond its limits according to its size.
2936 2008-06-10 Olivier Hainque <hainque@adacore.com>
2938 * utils.c (create_subprog_decl): If this is for the 'main' entry
2939 point according to the asm name, redirect main_identifier_node.
2941 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2943 * decl.c (components_to_record): Adjust the packedness for the
2944 qualified union as well.
2946 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2948 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2951 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2953 * sem_res.adb (Large_Storage_Type): A type is large if it
2954 requires as many bits as Positive to store its values and its
2955 bounds are known at compile time.
2956 * sem_ch13.adb (Minimum_Size): Note that this function returns
2957 0 if the size is not known at compile time.
2959 2008-06-06 Nicolas Setton <setton@adacore.com>
2960 Olivier Hainque <hainque@adacore.com>
2962 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2963 attribute, parallel descriptive type attached to another
2964 type for debug info generation purposes.
2965 * utils.c (add_parallel_type): New function, register
2966 parallel type to be attached to a type.
2967 (get_parallel_type): New function, fetch a registered
2968 parallel type, if any.
2969 (rest_of_record_type_compilation): Register the parallel
2970 type we make for variable size records.
2971 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2972 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2973 parallel debug types we make.
2974 * trans.c (extract_encoding, decode_name): New functions.
2975 (gigi): If the DWARF attribute extensions are available, setup
2977 * lang.opt: Register language specific processing request
2979 * misc.c (gnat_dwarf_extensions): New global variable. How much
2980 do we want of our DWARF extensions. 0 by default.
2981 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2982 (gnat_post_options): Map gnat_dwarf_extensions to the
2983 commonuse_gnu_debug_info_extensions for later processing.
2985 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2987 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2989 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2991 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2992 * gnat_ugn.texi (Style Checking)
2993 (Adding the Results of Compiler Checks to gnatcheck Output)
2994 (Example of Binder Output File): Fix typos.
2995 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2996 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2997 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2998 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2999 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
3000 sinfo.ads, utils.c: Fix typos in comments.
3001 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
3003 2008-05-29 Thomas Quinot <quinot@adacore.com>
3005 * sem_eval.adb: Minor reformatting
3007 2008-05-29 Ed Schonberg <schonberg@adacore.com>
3009 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
3010 is abstract, do not apply abstractness check on subprogram if this is
3011 a renaming declaration.
3013 2008-05-29 Arnaud Charlet <charlet@adacore.com>
3016 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
3017 allow recognition of program suffix in addition to prefix.
3019 * gnatchop.adb (Locate_Executable): Add support for prefix.
3021 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
3022 mlib-utl.adb: Adjust calls to Program_Name.
3024 2008-05-29 Robert Dewar <dewar@adacore.com>
3026 * sem_ch3.adb: Minor reformatting
3027 * sem_prag.adb: Minor reformatting
3028 * sem_res.adb: Minor reformatting
3029 * sinput-p.ads: Minor reformatting
3031 2008-05-29 Javier Miranda <miranda@adacore.com>
3034 (Abstract_Interface_List): Add missing support for full type-declaration
3035 associated with synchronized types.
3037 2008-05-29 Robert Dewar <dewar@adacore.com>
3039 * sem_eval.adb (Is_Same_Value): Take care of several more cases
3041 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3043 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
3044 access type, wrap the expression in a conversion to force an
3045 accessibility check.
3047 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
3048 accessibility checks even when expansion is disabled in order to
3049 generate messages in the presence of previous errors or in
3050 semantics-only mode.
3052 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
3054 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3055 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3057 2008-05-28 Vincent Celier <celier@adacore.com>
3060 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3061 preprocessing expressions
3063 2008-05-28 Vincent Celier <celier@adacore.com>
3065 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3068 * sinput-p.ads: Minor comment update and reformatting
3070 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3072 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3073 type has a deeper level than any master only when it is the type of an
3076 2008-05-28 Javier Miranda <miranda@adacore.com>
3078 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3080 2008-05-28 Javier Miranda <miranda@adacore.com>
3082 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3083 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3084 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3085 Add code that was previously located in
3086 Find_Overridden_Synchronized_Primitive because it is only used here.
3088 2008-05-28 Sergey Rybin <rybin@adacore.com>
3090 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3091 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3093 2008-05-28 Robert Dewar <dewar@adacore.com>
3096 Add missing restrictions, and properly label all GNAT defined ones
3099 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3100 Add entry for Ada.Task_Termination.Set_Specific_Handler
3101 Add entry for Ada.Task_Termination.Specific_Handler
3104 Add missing restrictions and properly mark all gnat defined ones
3107 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3110 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3112 * gnat_rm.texi: Add missing restrictions, and properly label all
3115 2008-05-28 Robert Dewar <dewar@adacore.com>
3118 (Check_Restriction): violation of restriction No_Finalization is
3119 treated as a serious error to stop expansion
3121 2008-05-28 Robert Dewar <dewar@adacore.com>
3123 * exp_util.adb: Minor reformatting
3124 * exp_util.ads: Minor reformatting.
3126 2008-05-28 Arnaud Charlet <charlet@adacore.com>
3128 * Make-lang.in: Remove gprmake.
3130 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3132 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3134 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3135 improper progenitor names, and avoid cascaded errors.
3137 2008-05-28 Robert Dewar <dewar@adacore.com>
3139 * gnat_rm.texi: Add note on Old giving warning when applied to constant
3141 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3144 2008-05-28 Robert Dewar <dewar@adacore.com>
3146 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3149 2008-05-28 Robert Dewar <dewar@adacore.com>
3152 (Expand_Simple_Function_Return): Copy unaligned result into temporary
3154 2008-05-28 Javier Miranda <miranda@adacore.com>
3156 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3157 for user-defined predefined primitives.
3159 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3160 (Find_Overridden_Synchronized_Primitive): Ditto.
3162 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3164 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3166 * a-ststio.adb, s-direio.adb:
3167 Further code clean up of previous change.
3170 2008-05-27 Vincent Celier <celier@adacore.com>
3172 * prj-nmsc.adb: Minor reformatting
3174 2008-05-27 Bob Duff <duff@adacore.com>
3176 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3177 untagged private type with a tagged full type, where the full type has
3178 a self reference, create the corresponding class-wide type early, in
3179 case the self reference is "access T'Class".
3181 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3183 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3184 tasks and context is an object declaration. create master entity before
3187 2008-05-27 Robert Dewar <dewar@adacore.com>
3189 * mlib-prj.adb: Minor reformatting
3191 * prj-part.adb: Minor reformatting
3193 * prj.ads: Minor reformatting
3195 * exp_ch3.adb: Minor reformatting.
3197 * sem_ch3.ads: Minor reformatting
3199 * sem_eval.adb: Minor reformatting
3201 2008-05-27 Vincent Celier <celier@adacore.com>
3204 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3206 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3208 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3209 tasks, create an activation chain now, before the expansion into
3210 assignments and build-in-place calls that require the presence of an
3212 (Backend_Processing_Possible): If the component type is inherently
3213 limited, the aggregate must be expanded into individual built-in-place
3216 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3217 determine whether an allocation extra parameter must be built, to
3218 handle case of a private type whose full type is a discriminated type
3221 2008-05-27 Bob Duff <duff@adacore.com>
3224 Document the new behavior regarding trampolines.
3226 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3228 * a-direio.adb, a-sequio.adb: Replace address clause by
3229 unrestricted_access, simpler and compatible with .NET.
3231 2008-05-27 Vincent Celier <celier@adacore.com>
3234 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3235 a project file, so that symbolic links are not resolved.
3237 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3239 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3240 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3241 portable across GNAT targets, since this kind of address clause is not
3242 supported by VM back-ends (.NET/JGNAT).
3244 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3246 * bindgen.adb: Update comments.
3248 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3250 2008-05-27 Vincent Celier <celier@adacore.com>
3252 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3253 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3254 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3255 (Path_Information): New record type
3256 Use component of type Path_Information when there are two paths, one in
3257 canonical format and one in display format.
3258 Update the project manager to these new components.
3260 2008-05-27 Robert Dewar <dewar@adacore.com>
3262 * makeutl.adb: Minor reformatting
3263 * prj-nmsc.adb: Minor reformatting
3264 * s-stausa.adb: Minor reformatting
3265 * s-stausa.ads: Minor reformatting
3266 * sem_ch6.adb: Minor reformatting
3268 2008-05-27 Thomas Quinot <quinot@adacore.com>
3270 * sem_res.adb: Minor comment fixes
3272 2008-05-27 Thomas Quinot <quinot@adacore.com>
3274 * makeutl.adb: Minor code reorganization
3276 * exp_aggr.adb: Add ??? comment
3279 * exp_ch6.adb: Minor reformatting
3281 2008-05-27 Quentin Ochem <ochem@adacore.com>
3283 * s-stausa.adb (Initialize): Updated result initialization, and
3284 initialization of environment stack.
3285 (Fill_Stack): Improved computation of the pattern zone, taking into
3286 account already filled at the calling point.
3287 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3288 Measure and Overflow_Guard.
3289 (Report_Result): Fixed computation of the result using new fields of
3292 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3293 params by more explicit Stack_Size / Max_Pattern_Size params.
3294 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3295 Added Stack_Used_When_Filling field.
3296 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3297 Min_Measure and Max_Measure fields.
3299 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3301 2008-05-27 Vincent Celier <celier@adacore.com>
3304 (Check_File): Make sure that a unit that replaces the same unit in a
3305 project being extended is properly processed.
3307 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3310 (Get_Discr_Value): Remove obsolete code that failed to find the value
3311 of a discriminant for an inherited task component appearing in a type
3314 2008-05-27 Thomas Quinot <quinot@adacore.com>
3316 (System.File_IO.{Close, Delete, Reset}):
3317 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3319 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3320 Pass File parameter by reference.
3322 2008-05-27 Vincent Celier <celier@adacore.com>
3325 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3326 sources of the same project that have the same object file name.
3327 (Find_Explicit_Sources): Always remove a source exception that was not
3330 2008-05-27 Thomas Quinot <quinot@adacore.com>
3332 * sem_ch3.adb: Minor reformatting
3334 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3337 (Is_Interface_Conformant): Handle properly a primitive operation that
3338 overrides an interface function with a controlling access result.
3339 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3340 inherited and overriding operations, omit as well the conformance check
3341 on result types, to prevent spurious errors.
3343 2008-05-27 Vincent Celier <celier@adacore.com>
3345 * makeutl.ads, makeutl.adb:
3346 (Set_Location): New procedure
3347 (Get_Location): New function
3348 (Update_Main): New procedure
3350 2008-05-27 Vincent Celier <celier@adacore.com>
3353 (Check_Library): Allow standard project to be extended as a static
3355 (Get_Mains): Do not inherit attribute Main in an extending library
3358 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3360 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3361 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3362 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3363 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3364 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3365 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3366 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3367 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3368 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3369 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3371 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3373 * sem_attr.adb: add guard to previous patch.
3375 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3377 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3378 a synchronized tagged type, do not attempt to build dispatch table for
3379 full view. The table is built for the corresponding record type, which
3380 has its own declaration.
3382 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3384 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3385 to the known type entity E, rather than setting it to Any_Type. Fixes
3386 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3387 for objects whose type had an illegal constraint.
3389 2008-05-27 Vincent Celier <celier@adacore.com>
3392 Add succinct documentation for attribute Excluded_Source_List_File
3394 2008-05-27 Vincent Celier <celier@adacore.com>
3396 * prj-attr.adb: Add new project level attribute Map_File_Option
3398 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3400 * prj.ads: Minor reformatting and comment update
3401 (Project_Configuration): New component Map_File_Option
3403 * snames.adb: New standard name Map_File_Option
3405 * snames.ads: New standard name Map_File_Option
3407 2008-05-27 Vincent Celier <celier@adacore.com>
3409 * xsnames.adb: Remove unused variable Oname
3411 2008-05-27 Doug Rupp <rupp@adacore.com>
3414 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3417 (Expand_Vax_Foreign_Return): Fix comments.
3419 2008-05-27 Thomas Quinot <quinot@adacore.com>
3421 * exp_dist.adb: Minor reformating
3423 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3425 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3426 No_Default_Initialization, which is now delayed until the freeze point
3427 of the object. Add a comment about deferral of the check.
3429 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3430 on objects is moved here.
3432 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3434 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3435 (Compare_Array_S16): Adjust for above change.
3436 * s-casi32.adb (Uword): Likewise.
3437 (Compare_Array_S32): Likewise.
3438 * s-casi64.adb (Uword): Likewise.
3439 (Compare_Array_S64): Likewise.
3440 * s-caun16.adb (Uhalf): Likewise.
3441 (Compare_Array_U16): Likewise.
3442 * s-caun32.adb (Uword): Likewise.
3443 (Compare_Array_U32): Likewise.
3444 * s-caun64.adb (Uword): Likewise.
3445 (Compare_Array_U64): Likewise.
3447 2008-05-26 Robert Dewar <dewar@adacore.com>
3449 * exp_ch6.adb: Add ??? comment for previous change
3451 * exp_vfpt.adb: Minor reformatting
3453 * exp_vfpt.ads: Add ??? comment for last change
3455 * sem_attr.adb: Add some ??? comments for previous change
3457 * s-vaflop.ads: Add comments for previous change
3459 2008-05-26 Doug Rupp <rupp@adacore.com>
3461 * s-vaflop-vms-alpha.adb:
3462 Remove System.IO use clause, to prevent spurious ambiguities when
3463 package is access through rtsfind.
3465 2008-05-26 Sergey Rybin <rybin@adacore.com>
3467 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3470 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3473 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3474 converted to S (A)'address only if A .. B is known to be a non-null
3477 2008-05-26 Doug Rupp <rupp@adacore.com>
3480 (Return_D, Return_F, Return_G): New functions.
3483 (Return_D, Return_F, Return_G): New functions.
3486 (Expand_Vax_Foreign_Return): New procedure
3489 (Expand_Vax_Foreign_Return): New procedure
3492 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3493 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3497 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3499 * s-vaflop-vms-alpha.adb:
3500 (Return_D, Return_F, Return_G): New functions.
3502 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3504 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3505 init proc entity when there is actual default initialization associated
3506 with the component type, to avoid spurious errors on objects of scalar
3507 array types that are marked Is_Public when No_Default_Initialization
3510 2008-05-26 Thomas Quinot <quinot@adacore.com>
3512 * rtsfind.ads, rtsfind.adb:
3513 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3514 (Check_RPC): Support per-PCS-kind API versioning.
3516 exp_dist.ads, exp_dist.adb:
3517 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3518 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3519 library function Get_RACW.
3520 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3521 library function Get_Reference.
3522 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3523 through an intermediate Any.
3524 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3525 going through an intermediate Any.
3527 * sem_dist.adb: Minor reformatting.
3529 2008-05-26 Javier Miranda <miranda@adacore.com>
3531 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3532 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3533 (Is_Internal): Adding documentation on internal entities that have
3534 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3536 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3537 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3538 Added assertion to force entities with this attribute to have
3539 attribute Is_Internal set to True.
3540 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3542 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3543 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3544 a new implementation.
3545 (Add_Interface_Tag_Components): Remove special management of
3546 synchronized interfaces.
3547 (Analyze_Interface_Declaration): Minor reformating
3548 (Build_Derived_Record_Type): Minor reformating
3549 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3550 predefined primitive inherited from interface type because the body of
3551 internally generated predefined primitives of tagged types are generated
3552 later by Freeze_Type
3553 (Derive_Subprogram): Avoid generating an internal name if the parent
3554 subprogram overrides an interface primitive.
3555 (Derive_Subprograms): New implementation that keeps separate the
3556 management of tagged types not implementing interfaces, from tagged
3557 types that implement interfaces.
3558 (Is_Progenitor): New implementation.
3559 (Process_Full_View): Add documentation
3560 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3561 by call to Derive_Progenitor_Subprograms.
3563 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3564 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3565 Skip_Controlling_Formals.
3567 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3568 (Check_Conventions): New implementation. Remove local subprogram
3569 Skip_Check. Remove formal Search_From of routine Check_Convention.
3570 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3571 Skip_Controlling_Formals.
3572 (New_Overloaded_Entity): Enable addition of predefined dispatching
3576 (Find_Primitive_Covering_Interface): New subprogram.
3578 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3579 the task body procedure as a primitive of the corresponding tagged
3581 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3582 to the list of primitives.
3583 (Find_Primitive_Covering_Interface): New subprogram.
3584 (Override_Dispatching_Operation): Add documentation.
3586 * sem_type.adb (Covers): Minor reformatings
3588 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3591 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3592 (Implements_Interface): New subprogram.
3593 (Is_Parent): Removed.
3594 (Primitive_Names_Match): New subprogram.
3595 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3596 (Ultimate_Alias): New subprogram.
3598 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3600 Remove special management for synchronized types. Rename formal. Remove
3601 internal subprograms Interface_Present_In_Parent and Add_Interface.
3602 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3603 on non-record types by code to return false in such case.
3604 (Implements_Interface): New subprogram.
3605 (Is_Parent): Removed. No special management is now required for
3606 synchronized types covering interfaces.
3607 (Primitive_Names_Match): New subprogram.
3608 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3609 (Ultimate_Alias): New subprogram.
3611 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3612 Add internal entities associated with secondary dispatch tables to
3613 the list of tagged type primitives that are not interfaces.
3614 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3615 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3616 the management of predefined equality operator. In addition, if
3617 the type has an equality function corresponding with a primitive
3618 defined in an interface type, the inherited equality is abstract
3619 as well, and no body can be created for it.
3621 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3622 exp_util to exp_disp.
3623 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3624 an entity corresponds with one of the predefined primitives required
3625 to implement interfaces.
3626 Update copyright notice.
3628 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3629 final check on abstract subprograms all the primitives associated with
3630 interface primitives because they must be visible in the public and
3632 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3633 interface type. This allows the use of this routine, for debugging
3634 purposes, when the tagged type is not fully decorated.
3635 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3636 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3637 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3638 entity corresponds with one of the predefined primitives required to
3639 implement interfaces.
3641 * exp_util.adb (Find_Interface_ADT): New implementation
3642 (Find_Interface): Removed.
3644 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3645 list of interfaces associated with nodes
3646 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3648 2008-05-26 Thomas Quinot <quinot@adacore.com>
3650 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3651 condition for assignment to temporary.
3653 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3655 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3656 checks on the upper bound if the index type is a modular type, to
3657 prevent wrap-around computations when size is close to upper bound of
3660 2008-05-26 Robert Dewar <dewar@adacore.com>
3662 * sem_ch3.adb: Minor reformatting
3664 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3666 * sem_ch12.adb (Remove_Parent): Use specification of instance
3667 to retrieve generic parent,
3668 to handle properly the case where the instance is a child unit.
3669 Add guard to handle properly wrapper packages.
3672 2008-05-26 Thomas Quinot <quinot@adacore.com>
3674 * sinfo.ads: Minor reformatting
3676 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3678 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3679 Generate a tag check when the result subtype of a function, defined by
3680 an access definition, designates a specific tagged type.
3681 (Make_Tag_Check): New routine.
3683 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3685 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3687 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3689 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3690 (builtin_decl_for): Likewise.
3691 * trans.c (gigi): Likewise.
3692 * utils.c (def_builtin_1): Fix formatting.
3694 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3696 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3697 Create the statements which map a string name to protected or task
3700 * exp_ch9.adb: Add with and use clause for Stringt.
3701 Minor code reformatting.
3702 (Build_Entry_Names): New routine.
3703 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3704 for flag Build_Entry_Names which controls the allocation of the data
3705 structure for the string names of entries.
3707 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3709 * exp_util.adb (Entry_Names_OK): New function.
3711 * exp_util.ads (Entry_Names_OK): New function.
3713 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3714 enumerations RE_Id and RE_Unit_Table.
3716 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3717 (Free_Entry_Names_Array): New routine.
3719 * s-taskin.ads: Comment reformatting.
3720 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3721 Add component Entry_Names to record Ada_Task_Control_Block.
3722 (Free_Entry_Names_Array): New routine.
3724 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3725 dynamically allocate an array
3726 of string pointers. This structure holds string entry names.
3727 (Free_Entry_Names): New routine.
3728 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3729 (Set_Entry_Names): New routine.
3732 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3733 control the allocation of the data structure which stores entry names.
3734 (Set_Entry_Name): New routine.
3737 Add with and use clause for Ada.Unchecked_Conversion.
3738 (Finalize): Deallocate the entry names array.
3739 (Free_Entry_Names): New routine.
3740 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3741 create an array of string pointers to hold the entry names.
3742 (Set_Entry_Name): New routine.
3745 Add field Entry_Names to record Protection_Entries.
3746 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3747 (Set_Entry_Name): New routine.
3749 2008-05-26 Vincent Celier <celier@adacore.com>
3752 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3755 (Project_Configuration): New component Shared_Lib_Driver
3757 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3760 (Cleanup_Scopes): For a protected operation, transfer finalization list
3761 to protected body subprogram, to force cleanup actions when needed.
3763 2008-05-26 Robert Dewar <dewar@adacore.com>
3765 * sem_cat.adb: Minor reformatting
3767 * gnatname.adb: Minor reformatting
3769 * osint.ads: Minor reformatting
3771 * s-carun8.ads: Minor reformatting
3773 * g-heasor.ads: Minor comment fix (unit is now pure)
3775 2008-05-26 Robert Dewar <dewar@adacore.com>
3778 (Expand_Current_Value): Properly type generated integer literal
3780 2008-05-26 Sergey Rybin <rybin@adacore.com>
3782 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3783 Separate_Numeric_Error_Handlers.
3785 2008-05-26 Pascal Obry <obry@adacore.com>
3787 * sem_aggr.adb: Minor reformatting.
3789 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3792 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3793 the scheduling policy to FIFO within priorities or round-robin
3795 Hence, the priority must be set in this case to the one selected by the
3798 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3801 (Remove_Parent): If the enclosing scope is an instance whose generic
3802 parent is declared within some parent scope of the just completed
3803 instance, make full views of the entities in that parent visible, when
3806 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3808 * mingw32.h (STD_MINGW): Set to true for target w64.
3810 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3812 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3813 instead of TREE_STATIC on the ADDR_EXPR.
3815 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3817 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3818 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3819 GNAT standard locations.
3821 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3823 * gigi.h (mark_visited): Declare.
3824 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3825 only the topmost node of expressions.
3826 (elaborate_expression_1): Look deeper for read-only variables.
3827 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3828 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3829 (mark_visited_r): New function.
3831 2008-05-23 Vincent Celier <celier@adacore.com>
3833 * snames.adb: New standard name Excluded_Source_List_File.
3835 * snames.ads: New standard name Excluded_Source_List_File.
3837 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3839 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3840 Get excluded sources from
3841 file indicated by attribute Excluded_Source_List_File, when present and
3842 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3844 2008-05-23 Robert Dewar <dewar@adacore.com>
3846 * exp_dist.adb: Minor reformatting
3848 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3850 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3851 slice, convert it to an indexed component, which is equivalent, more
3852 efficient, and usable even if the slice itself is not addressable.
3854 2008-05-23 Olivier Hainque <hainque@adacore.com>
3856 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3857 convention also allows access to named compiler built-in subprograms
3858 such as the GCC __builtin family.
3860 2008-05-23 Vincent Celier <celier@adacore.com>
3862 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3863 sep. If there are several possibilities, choose the one with the
3866 2008-05-23 Vincent Celier <celier@adacore.com>
3868 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3869 back end switches when executable specified with --GCC= is same as
3870 default, even if there are additional options.
3873 Document when the back end switches from the ALI file are taken into
3874 account when gnatlink is invoked with --GCC=
3876 2008-05-23 Thomas Quinot <quinot@adacore.com>
3879 (copy_File): Do not open destination file if source file is unreadable.
3881 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3883 * utils.c (handle_type_generic_attribute): Adjust to accept
3884 fixed arguments before an elipsis.
3886 2008-05-21 Thomas Quinot <quinot@adacore.com>
3888 * g-sothco.ads, g-sothco.adb: New files.
3890 2008-05-20 Thomas Quinot <quinot@adacore.com>
3892 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3894 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3895 Add missing "with" of Ada.Unchecked_Conversion
3897 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3898 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3899 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3900 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3901 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3902 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3903 Move common code out of GNAT.Sockets.Thin implementations and into
3905 New constant SIZEOF_fd_set
3906 New flag Has_Sockaddr_Len
3907 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3909 * g-stsifd-sockets.adb
3910 (Create): Remove call to Set_Length; use Set_Family to set the family
3911 and (on appropriate platforms) length fields in struct sockaddr.
3913 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3914 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3915 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3916 Move common code out of GNAT.Sockets.Thin implementations and into
3919 * g-socket.ads, g-socket.adb:
3920 Move common code out of GNAT.Sockets.Thin implementations and into
3922 (Connect_Socket, Accept_Socket): Provide new versions of these two
3923 routines that operate with a user specified timeout.
3924 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3925 this is now handled automatically by Set_Family on platforms that
3929 Move common code out of GNAT.Sockets.Thin implementations and into
3931 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3932 this constant to 0 (not -1) because we use it to initialize an
3933 unsigned_char value.
3934 Align values for numeric constants only.
3935 Handle the case of systems that do not support AF_INET6.
3936 New constant SIZEOF_fd_set
3937 New flag Has_Sockaddr_Len
3938 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3940 * gsocket.h: New flag Has_Sockaddr_Len
3941 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3943 2008-05-20 Santiago Uruena <uruena@adacore.com>
3945 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3947 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3949 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3950 the underlying issue with malloc/free has been fixed. Remove associated
3953 Related to PR ada/24533
3955 2008-05-20 Robert Dewar <dewar@adacore.com>
3957 * ali.adb: Correct casing of ASCII.NUL
3959 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3962 2008-05-20 Robert Dewar <dewar@adacore.com>
3963 Gary Dismukes <dismukes@adacore.com>
3965 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3966 overflow if result converted to wider integer type.
3967 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3968 discriminated types when discriminant checks are suppressed.
3970 2008-05-20 Vincent Celier <celier@adacore.com>
3972 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3973 Wide_Wide_Character.
3975 2008-05-20 Tristan Gingold <gingold@adacore.com>
3977 * decl.c: Do not emit a variable for a object that has an address
3978 representation clause whose value is known at compile time.
3979 When a variable has an address clause whose value is known at compile
3980 time, refer to this variable by using directly the address instead of
3981 dereferencing a pointer.
3983 2008-05-20 Robert Dewar <dewar@adacore.com>
3986 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3987 subtypes, always False for non-modular types.
3988 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3989 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3990 for Shared_Storage package.
3991 (Is_RACW_Stub_Type): New entity flag.
3994 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3995 case where we have a modular type with a non-binary modules.
3996 Comments reformattings.
3998 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
4001 2008-05-20 Javier Miranda <miranda@adacore.com>
4004 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
4005 tests did not covered the case in which the type of the aggregate has
4006 no progenitors but some its parents has progenitors.
4008 2008-05-20 Gary Dismukes <dismukes@adacore.com>
4009 Hristian Kirtchev <kirtchev@adacore.com>
4012 (Expand_N_Object_Declaration): Correct the condition which triggers the
4013 generation of a call to Displace when initializing a class-wide object.
4014 (Build_Dcheck_Functions): Build discriminant-checking for null variants
4015 when Frontend_Layout_On_Target is true to ensure that they're available
4016 for calling when a record variant size function is built in Layout.
4018 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4020 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4021 procedure for a derived type retrieve the discriminant values from the
4022 parent using the corresponding discriminant.
4023 (Expand_N_Assignment_Statement): Skip generation of implicit
4024 if-statement associated with controlled types if we are
4025 compiling with restriction No_Finalization.
4027 2008-05-20 Vincent Celier <celier@adacore.com>
4029 * prj.adb (Hash (Project_Id)): New function
4030 (Project_Empty): Add new component Interfaces_Defined
4032 * prj.ads (Source_Data): New component Object_Linked
4033 (Language_Config): New components Object_Generated and Objects_Linked
4034 (Hash (Project_Id)): New function
4035 (Source_Data): New Boolean components In_Interfaces and
4036 Declared_In_Interfaces.
4037 (Project_Data): New Boolean component Interfaces_Defined
4040 New project level attribute Object_Generated and Objects_Linked
4041 Add new project level attribute Interfaces
4043 * prj-dect.adb: Use functions Present and No throughout
4044 (Parse_Variable_Declaration): If a string type is specified as a simple
4045 name and is not found in the current project, look for it also in the
4046 ancestors of the project.
4049 Replace procedure Make with procedures Initialize, Process and Finalize
4050 to implement H414-023: process different directories with different
4052 Use functions Present and No throughout
4055 Replace procedure Make with procedures Initialize, Process and Finalize
4058 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4059 the language configuration.
4060 (Process_Project_Level_Array_Attributes): Process new attributes
4061 Object_Generated and Object_Linked.
4062 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4063 False, to indicate that the erreor/warning is a continuation.
4064 (Check): Call Report_No_Sources with Contnuation = True after the first
4066 (Error_Msg): Process successively contnuation character and warning
4068 (Find_Explicit_Sources): Check that all declared sources have been found
4069 (Check_File): Indicate in hash table Source_Names when a declared source
4071 (Check_File): Set Other_Part when found
4072 (Find_Explicit_Sources): In multi language mode, check if all exceptions
4073 to the naming scheme have been found. For Ada, report an error if an
4074 exception has not been found. Otherwise, disregard the exception.
4075 (Check_Interfaces): New procedure
4076 (Add_Source): When Other_Part is defined, set mutual pointers in spec
4078 (Check): In multi-language mode, call Check_Interfaces
4079 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4080 for an excluded source.
4081 (Remove_Source): A source replacing a source in the interfaces is also
4084 * prj-pars.adb: Use function Present
4086 * prj-part.adb: Use functions Present and No throughout
4087 (Parse_Single_Project): Set the parent project for child projects
4088 (Create_Virtual_Extending_Project): Register project with no qualifier
4089 (Parse_Single_Project): Allow an abstract project to be extend several
4090 times. Do not allow an abstract project to extend a non abstract
4093 * prj-pp.adb: Use functions Present and No throughout
4094 (Print): Take into account the full associative array attribute
4097 * prj-proc.adb: Use functions Present and No throughout
4098 (Expression): Call itself with the same From_Project_Node for the
4099 default value of an external reference.
4101 * prj-strt.adb: Use functions Present and No throughout
4102 (Parse_Variable_Reference): If a variable is specified as a simple name
4103 and is not found in the current project, look for it also in the
4104 ancestors of the project.
4106 * prj-tree.ads, prj-tree.adb (Present): New function
4108 Use functions Present and No throughout
4109 (Parent_Project_Of): New function
4110 (Set_Parent_Project_Of): New procedure
4112 * snames.ads, snames.adb:
4113 Add new standard names Object_Generated and Objects_Linked
4115 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4117 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4118 and the derived type are of the same kind.
4119 (Expand_Call): Generate type conversions for actuals of
4120 record or array types when the parent and the derived types differ in
4121 size and/or packed status.
4123 2008-05-20 Javier Miranda <miranda@adacore.com>
4124 Ed Schonberg <schonberg@adacore.com>
4126 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4127 generating dispatch tables of locally defined tagged types statically.
4128 Remove implicit if-statement that is no longer required.
4129 (Expand_Dispatching_Call): If this is a call to an instance of the
4130 generic dispatching constructor, the type of the first argument may be
4131 a subtype of Tag, so always use the base type to recognize this case.
4133 2008-05-20 Thomas Quinot <quinot@adacore.com>
4136 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4137 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4138 assigning NULL into the result, to avoid a spurious warning.
4139 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4141 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4143 (Build_From_Any_Function, Build_To_Any_Function,
4144 Build_TypeCode_Function): For a type that has user-specified stream
4145 attributes, use an opaque sequence of octets as the representation.
4147 2008-05-20 Kevin Pouget <pouget@adacore.com>
4149 * exp_smem.ads, exp_smem.adb: Construction of access and assign
4150 routines has been replaced by an instantiation of
4151 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4152 shared variable declaration.
4153 Calls to access and assign routines have been replaced by calls to
4154 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4155 instantiated package.
4157 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4158 It identifies the new generic package added in s-shasto.
4160 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4161 is instantiated for each shared passive variable. It provides
4162 supporting procedures called upon each read or write access by the
4166 For this runtime unit (always compiled in GNAT mode), we allow
4167 stream attributes references for limited types for the case where
4168 shared passive objects are implemented using stream attributes,
4169 which is the default in GNAT's persistent storage implementation.
4171 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4174 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4175 convention from its base type, do not set the type to that of integer,
4176 because it may inherit a size clause.
4177 Warn on a size clause with a size different
4178 from that of Integer, if the type has convention C.
4180 2008-05-20 Vincent Celier <celier@adacore.com>
4183 (Scan_Args): Rewrite to take into account new switch --and to separate
4184 arguments into sections.
4185 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4186 section, then Finalize.
4188 2008-05-20 Tristan Gingold <gingold@adacore.com>
4190 * init.c: Enable stack probing on ppc-linux.
4192 * tracebak.c: Add symbolic traceback for ppc-linux.
4194 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4196 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4199 (common-tools): New rule, to avoid parallel build failure on gnat tools.
4200 Reenable parallel builds on this Makefile.
4202 * Make-lang.in: Update dependencies.
4204 2008-05-20 Robert Dewar <dewar@adacore.com>
4206 * opt.ads (Treat_Restrictions_As_Warnings): New switch
4208 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4209 Treat_Restrictions_As_Warnings.
4211 * switch-c.adb: Recognize new switch -gnatr
4213 * usage.adb: Add line for -gnatr
4215 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4218 (P_Access_Definition): Change the error message when parsing "access
4219 all" in Ada 95 mode. The message no longer forces the user to recompile
4220 in 05 mode only to discover that anonymous access types are not allowed
4223 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4226 (P_Protected): Update the error message on missing "-gnat05" switch when
4227 using interfaces in conjunction with protected types. Remove the
4228 incorrect error message associated with the presence of "private" after
4231 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4233 * sem_aggr.adb: Update comments.
4234 Improve previous change for PR ada/17985
4236 2008-05-20 Thomas Quinot <quinot@adacore.com>
4239 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4240 the visible part of the spec of a remote types unit.
4241 (Validate_Remote_Access_Object_Type_Declaration):
4242 New local subprogram Is_Valid_Remote_Object_Type, replaces
4243 Is_Recursively_Limited_Private.
4244 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4245 non-controlling formals (and the return type, even though this is not
4246 explicit in the standard) must support external streaming.
4247 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4248 as above for of RAS types and RCI subprograms. (The return type is not
4250 Update comments related to RACWs designating limited interfaces per
4251 ARG ruling on AI05-060.
4253 * sem_util.ads, sem_util.adb
4254 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4255 Is_Remote_Call_Interface to identify RACW types in a stable and
4256 consistent way. We used to rely in this predicate on the privateness of
4257 the designated type and its ancestors, but depending on the currently
4258 visible private parts, this caused false negatives. We now uniformly
4259 rely on checks made at the point where the RACW type is declared.
4260 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4262 2008-05-20 Javier Miranda <miranda@adacore.com>
4263 Ed Schonberg <schonberg@adacore.com>
4264 Hristian Kirtchev <kirtchev@adacore.com>
4267 (Analyze_Object_Declaration): Fix over-conservative condition
4268 restricting use of predefined assignment with tagged types that have
4270 (Analyze_Object_Declaration): Relax the check regarding deferred
4271 constants declared in scopes other than packages since they can be
4272 completed with pragma Import.
4273 Add missing escaping of all-caps word 'CPP' in error messages.
4274 (Build_Discriminated_Subtype): Do not inherit representation clauses
4275 from parent type if subtype already carries them, because they are
4276 inherited earlier during derivation and already include those that may
4277 come from a partial view.
4279 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4280 Check the declarations of a subprogram body for proper deferred
4281 constant completion.
4283 * sem_ch7.ads, sem_ch7.adb
4284 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4286 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4287 Thomas Quinot <quinot@adacore.com>
4290 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4291 F is a parameterless function that returns an array, and S is a subtype
4293 (Analyze_Call): Insert dereference when the prefix is a parameterless
4294 function that returns an access to subprogram and the call has
4296 Reject a non-overloaded call whose name resolves to denote
4297 a primitive operation of the stub type generated to support a remote
4298 access-to-class-wide type.
4300 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4303 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4304 when there is a use clause for the same entity in the context.
4305 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4306 created for a stream attribute of an abstract type or interface type.
4308 2008-05-20 Thomas Quinot <quinot@adacore.com>
4310 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4314 (Add_One_Interp): Ignore any interpretation that is a primitive
4315 operation of an RACW stub type (these primitives are only executed
4316 through dispatching, never through static calls).
4317 (Collect_Interps): When only one interpretation has been found, set N's
4318 Entity and Etype to that interpretation, otherwise Entity and Etype may
4319 still refer to an interpretation that was ignored by Add_One_Interp,
4320 in which case would end up with being marked as not overloaded but with
4321 an Entity attribute not pointing to its (unique) correct interpretation.
4323 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4326 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4327 denotes the whole array of its prefix.
4329 2008-05-20 Robert Dewar <dewar@adacore.com>
4331 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4333 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4336 (Print_Itype): Do not modify the sloc of the component type of a
4337 (packed) array itype, because it is an unrelated type whose source
4338 location is independent of the point of creation of the itype itself.
4340 2008-05-20 Thomas Quinot <quinot@adacore.com>
4342 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4345 2008-05-20 Robert Dewar <dewar@adacore.com>
4346 Vincent Celier <celier@adacore.com>
4348 * vms_data.ads: Add entry for -gnatr
4349 Put GNAT SYNC section in proper alpha order
4350 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4352 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4353 Update the style checks section
4354 Add documentation of -gnatr
4355 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4356 subsection the explanation how compiler checks should be disabled for
4358 Update the list of Ada 95 reserved words used by in the project language
4359 Add documentation for project qualifiers.
4360 Document that abstract projects may be extended by different projects in
4361 the same project tree.
4362 Add documentation for gnatmake switch -d
4364 * ug_words: Add -gnatyy VMS equivalence string.
4365 Add entry for -gnatr
4367 2008-05-20 Bob Duff <duff@adacore.com>
4370 (Set_Handler): Remove code from both of these that implements
4371 RM-D.15(15/2), because it causes a race condition and potential
4373 (Process_Queued_Events): Add comment explaining "exception when others
4374 => null". Add clarifying ".all", even though implicit .all is legal
4377 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4379 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4380 equivalent representation, but has the advantage of allowing
4381 compilation of this file under 64 bits platforms.
4383 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4385 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4388 Don't define dummy implementation of convert_addresses on ppc-linux.
4390 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4393 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4394 if expression is aggregate component.
4396 2008-05-20 Robert Dewar <dewar@adacore.com>
4398 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4399 sem_ch12.adb: Update comments. Minor reformatting.
4403 * s-unstyp.ads: Fixed some typos in comments.
4405 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4407 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4410 * g-socthi-vxworks.ads: Update to latest socket changes.
4412 * a-caldel-vms.adb: Resync with a-caldel spec.
4414 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4417 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4419 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4420 for dummy types pointed to by the converted pointer types.
4422 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4424 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4425 of records and unions.
4426 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4428 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4429 Robert Dewar <dewar@adacore.com>
4431 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4432 restrictions to the prefix of 'Old.
4433 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4434 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4437 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4441 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4442 expression to an integral type with lower precision, use NOP_EXPR
4443 directly in a couple of special cases.
4445 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4446 Ed Schonberg <schonberg@adacore.com>
4448 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4449 constraint expressions.
4451 2008-05-12 Tomas Bily <tbily@suse.cz>
4453 * utils2.c (known_alignment, contains_save_expr_p)
4454 (gnat_mark_addressable): Use CASE_CONVERT.
4455 * decl.c (annotate_value): Likewise.
4456 * trans.c (maybe_stabilize_reference): Likewise.
4457 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4458 * utils.c (rest_of_record_type_compilation): Likewise.
4459 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4460 (protect_multiple_eval): Likewise.
4462 2008-05-08 Andreas Schwab <schwab@suse.de>
4464 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4465 DECL_IS_PURE to DECL_PURE_P.
4467 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4469 * decl.c (maybe_pad_type): Add ??? comment.
4471 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4473 * decl.c (components_to_record): Zero the alignment of the qualified
4474 union built for the variant part upon creating it.
4476 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4478 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4479 mode even if the alignment is not a factor of the original size. But
4480 make sure to create the inner field with the original size. Reorder.
4481 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4482 record as always addressable.
4483 * utils.c (convert): Deal specially with conversions between original
4484 and packable versions of a record type.
4485 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4486 recognizing an assignment between padded objects.
4488 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4490 * decl.c (make_packable_type): Resize the last component to its RM size
4491 only if it is of an aggregate type.
4492 * trans.c (call_to_gnu): Fix nit in comment.
4493 (gnat_to_gnu): Likewise.
4495 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4497 * Makefile.in: Adapt sh4-linux target.
4499 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4502 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4503 tagged type by an untagged protected or task type.
4505 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4506 Tristan Gingold <gingold@adacore.com>
4509 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4510 of aliased objects with an unconstrained nominal subtype.
4511 Cap the promotion to the effective alignment of the word mode.
4513 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4515 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4516 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4517 Use '&&' instead of ';'.
4519 2008-04-24 Olivier Hainque <hainque@adacore.com>
4521 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4522 doesn't require signed arithmetic anymore.
4524 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4526 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4527 (call_to_gnu): Don't set TREE_INVARIANT.
4528 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4530 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4532 * s-osinte-rtems.adb: Add sigalstack function.
4533 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4534 function. Add Alternate_Stack and Alternate_Stack_Size.
4535 Add missing process_shared field to pthread_condattr_t
4536 and change ss_low_priority to int from timespec.
4538 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4540 * i-forbla.adb: Link against -llapack and -lblas by default
4541 instead of the private -lgnalasup.
4543 2008-04-21 Olivier Hainque <hainque@adacore.com>
4545 Access to most C builtins from Ada
4546 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4547 (handle_pure_attribute, handle_novops_attribute,
4548 handle_nonnull_attribute, handle_sentinel_attribute,
4549 handle_noreturn_attribute, handle_malloc_attribute,
4550 handle_type_generic_attribute): New attribute handlers, from C fe.
4551 (gnat_internal_attribute_table): Map the new handlers.
4552 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4553 (init_gigi_decls): ... here.
4554 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4555 Move to a section dedicated to builtins processing.
4556 (build_void_list_node, builtin_type_for_size): New functions.
4557 (def_fn_type, get_nonnull_operand): Likewise.
4558 (install_builtin_elementary_type, install_builtin_function_types,
4559 install_builtin_attributes): Likewise.
4560 (fake_attribute_handler): Fake handler for attributes we don't
4562 (def_builtin_1): New function, worker for DEF_BUILTIN.
4563 (install_builtin_functions): New function.
4564 (gnat_install_builtins): Move to the builtins processing section.
4565 Now calling the newly introduced installers.
4567 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4569 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4570 constant objects, but not exceptions.
4571 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4573 * utils.c (create_var_decl_1): Likewise.
4574 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4575 the type when copying to padded object and the source is a constructor.
4577 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4579 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4580 alignment, reset it to zero if it would end up not being greater
4581 than that of the type.
4583 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4585 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4586 the padded type has a variable size.
4588 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4590 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4591 target pointer mechanism as soon as the size is not constant.
4593 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4595 * gigi.h (create_var_decl_1): Declare.
4596 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4597 (create_true_var_decl): Likewise.
4598 * utils.c (create_var_decl_1): Make global and reorder parameters.
4599 (create_var_decl): Delete.
4600 (create_true_var_decl): Likewise.
4602 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4604 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4606 * fe.h (Debug_Flag_Dot_A): Delete.
4607 * debug.adb (-gnatd.a): Update documentation.
4609 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4611 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4612 "not null" parameter.
4614 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4616 * g-socket.adb: Add a message "IPv6 not supported" to the
4617 Socket_Error exception.
4619 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4622 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4623 the type is known instead of the underlying type.
4625 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4628 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4629 procedure for a derived type retrieve the discriminant values from
4630 the parent using the corresponding discriminant.
4632 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4633 Gary Dismukes <dismukes@adacore.com>
4636 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4637 which is not an entity (and hence not a package).
4638 (End_Use_Package): Ditto.
4640 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4643 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4644 protected operation that matches the signature, not only an entry, a
4645 regular subprogram or a literal.
4647 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4649 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4650 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4651 if a size or alignment is specified. Do not take into account
4652 alignment promotions for the computation of the object's size.
4653 <type>: Call maybe_pad_type only if a size or alignment is specified.
4654 (maybe_pad_type): Really reuse the RM_Size of the original type if
4656 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4657 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4658 statements. Use the padded view of the type when copying between
4659 padded objects of the same underlying type.
4661 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4663 * vms_data.ads: Fix typo in constant.
4664 * gen-soccon.c: Fix typo in error string.
4665 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4667 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4668 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4669 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4670 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4671 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4672 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4673 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4674 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4675 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4676 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4677 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4678 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4679 sinfo.ads: Fix typos in comments.
4681 2008-04-14 Robert Dewar <dewar@adacore.com>
4683 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4684 to every non-object and change error message.
4686 2008-04-14 Robert Dewar <dewar@adacore.com>
4688 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4689 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4692 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4695 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4696 apply pragma Linker_Section on type.
4698 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4701 * sem_prag.adb (Error_Pragma_Ref): New.
4702 (Process_Convention): Specialized message for non-local
4703 subprogram renaming. Detect the problem in homonyms as well.
4705 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4708 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4709 * sem_ch12.adb (Instantiate_Object): Use it.
4710 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4711 storage pool denotes a variable as per RM 13.11(15).
4713 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4715 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4716 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4718 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4721 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4722 line endings even on non-Unix platforms.
4724 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4727 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4728 renaming information.
4730 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4733 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4736 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4738 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4739 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4740 snames.ads, sprint.adb, stand.ads, stringt.ads,
4741 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4742 switch.ads, sysdep.c, table.adb, table.ads,
4743 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4744 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4745 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4746 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4747 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4748 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4751 * sem_ch10.adb, sem_ch10.ads,
4752 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4753 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4754 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4755 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4756 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4757 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4758 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4759 sem_warn.ads: Fix comment typos.
4761 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4762 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4763 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4764 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4765 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4766 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4767 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4768 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4769 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4770 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4771 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4772 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4773 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4774 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4775 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4776 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4777 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4778 sem_cat.adb, sem_cat.ads: Fix comment typos.
4780 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4783 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4785 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4787 * s-linux-hppa.ads: Fix syntax errors.
4789 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4791 * gnat_ugn.texi: Fix typos.
4792 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4793 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4794 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4795 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4796 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4797 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4798 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4799 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4800 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4801 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4802 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4803 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4804 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4805 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4806 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4807 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4808 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4809 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4810 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4811 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4812 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4813 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4814 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4815 s-rident.ads: Fix comment typos.
4817 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4820 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4821 environment if generic instance is a top-level one.
4823 2008-04-09 Doug Rupp <rupp@adacore.com>
4825 * decl.c (validate_size): Set minimum size for fat pointers same as
4826 access types. Code clean ups.
4828 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4829 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4831 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4833 * s-crtl.ads (malloc32) New function, alias for malloc
4834 (realloc32) New function, alias for realloc
4836 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4838 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4839 allocator size is 32 and default pointer size is 64.
4840 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4841 lhs type if smaller, whatever the modes.
4843 * gigi.h (malloc32_decl): New macro definition
4845 * utils.c (init_gigi_decls): New malloc32_decl
4846 Various code clean ups.
4848 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4849 Task_Address vice System.Address.
4851 * s-taspri-vms.ads: Import System.Aux_DEC
4852 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4853 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4855 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4856 Task_Address vice System.Address.
4858 * s-inmaop-vms.adb: Import System.Task_Primitives
4859 (To_Address): Unchecked convert to Task_Address vice System.Address
4861 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4863 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4864 (To_Address) Unchecked convert to Task_Address vice System.Address
4866 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4868 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4870 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4872 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4873 (fdesc_type_node): Define.
4874 (null_fdesc_node): Likewise.
4875 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4876 uses descriptors for vtables and the type comes from a dispatch table,
4877 return the descriptor type.
4878 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4879 uses descriptors for vtables and the type comes from a dispatch table,
4880 build a descriptor in the static case and copy the existing one in the
4882 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4883 the type is a pointer-to-subprogram coming from a dispatch table,
4884 return the null descriptor.
4885 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4886 vtables, the source type is the descriptor type and the target type
4887 is a pointer type, first build the pointer.
4888 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4889 build the descriptor type and the null descriptor.
4891 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4893 * decl.c (prepend_attributes): Fix typo.
4894 * trans.c (Pragma_to_gnu): Likewise.
4895 * utils.c (gnat_genericize): Likewise.
4897 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4898 Richard Kenner <kenner@adacore.com>
4900 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4901 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4902 <E_Record_Type>: Try to get a better form of the component for
4903 packing, even if it has an integral mode.
4904 <E_Record_Subtype>: Likewise.
4905 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4906 exception suppressing the final conversion between record types.
4908 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4910 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4911 alignment for space, promote the alignment of non-scalar variables with
4912 no size and alignment.
4913 * gigi.h (gnat_types_compatible_p): Declare.
4914 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4915 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4916 * utils.c (gnat_types_compatible_p) : New predicate.
4917 (convert): Use it throughout to test for cases where a mere view
4918 conversion is sufficient.
4919 * utils2.c (build_binary_op): Minor tweaks.
4920 (build_unary_op): Likewise.
4922 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4924 * decl.c (adjust_packed): Expand comment.
4926 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4928 * s-tasuti.ads: Use Task_Address instead of System.Address.
4930 * makeutl.adb (Path_Or_File_Name): New function
4932 * nlists.ads, itypes.ads: Update comments.
4934 * s-crtl.ads (malloc32, realloc32): New functions.
4936 * s-auxdec.ads (Short_Address_Size): New constant.
4938 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4940 * s-ststop.ads, s-ststop.adb: New file.
4942 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4945 2008-04-08 Pascal Obry <obry@adacore.com>
4947 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4948 (Stop_Bits_Number): New type.
4949 (Parity_Check): Likewise.
4950 (Set): Add parameter to set the number of stop bits and
4951 the parity. Parameter timeout is now a duration instead
4954 * g-sercom-linux.adb:
4955 Implement the stop bits and parity support for GNU/Linux.
4956 Fix handling of timeout, it must be given in tenth of seconds.
4958 * g-sercom-mingw.adb:
4959 Implement the stop bits and parity support for Windows.
4960 Use new s-win32.ads unit instead of declaring Win32 services
4961 directly into this body.
4962 Update handling of timeout as now a duration.
4964 * s-win32.ads, s-winext.ads: New files.
4966 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4967 Arnaud Charlet <charlet@adacore.com>
4969 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4971 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4972 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4974 * s-osinte-lynxos-3.ads,
4975 (Alternate_Stack): Remove when not needed. Simplify declaration
4977 (Alternate_Stack_Size): New constant.
4979 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4980 'Unrestricted_Access.
4982 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4983 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4984 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4985 s-osinte-solaris.ads, s-osinte-vms.ads
4986 (SA_ONSTACK): New constant.
4987 (stack_t): New record type.
4988 (sigaltstack): New imported function.
4989 (Alternate_Stack): New imported variable.
4990 (Alternate_Stack_Size): New constant.
4992 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4994 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4995 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4996 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4997 (Task_Address_Size): New constant size of System.Address
4998 (Alternate_Stack_Size): New constant.
5000 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
5001 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
5002 Establish the alternate stack if the platform makes use of n alternate
5003 signal stack for stack overflows.
5004 (Create_Task): Take into account the alternate stack in the stack size.
5005 (Initialize): Save the address of the alternate stack into the ATCB for
5006 the environment task.
5007 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
5009 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
5011 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
5013 * s-intman-posix.adb:
5014 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
5015 alternate signal stack for stack overflows.
5017 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
5018 x86-64, adjust the saved value of the stack pointer if the signal was
5019 raised by a stack checking probe.
5020 (HP-UX section): Use global __gnat_alternate_stack as signal handler
5021 stack and only for SIGSEGV.
5022 (Linux section): Likewise on x86 and x86-64.
5024 (__gnat_map_signal): Now static.
5025 (__gnat_error_handler): Not static any more.
5026 (__gnat_adjust_context_for_raise): New function. Signal context
5027 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
5028 propagation circuitry.
5029 (__gnat_error_handler): Second argument of a sigaction handler is a
5030 pointer, not an int, and is unused.
5031 Adjust signal context before mapping to exception.
5032 Install signal handlers for LynxOS case.
5034 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
5035 (Task_Id): Set size to Task_Address_Size
5036 (To_Task_id): Unchecked convert from Task_Address vice System.Address
5037 (To_Address): Unchecked convert to Task_Address vice System.Address
5039 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
5040 address into the ATCB if the platform makes use of an alternate signal
5041 stack for stack overflows.
5042 (Free_Task): Add call to Finalize_Attributes_Link.
5043 Add argument Relative_Deadline to pass the value specified for
5044 the task. This is not yet used for any target.
5046 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
5047 the value specified for the task.
5049 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5051 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5052 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5053 s-vxwext-rtp.adb): New files.
5055 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
5056 Minor updates to accomodate changes above.
5058 2008-04-08 Pascal Obry <obry@adacore.com>
5060 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5061 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5062 Use new s-win32.ads unit instead of declaration
5063 from s-osinte-mingw.ads.
5065 * s-osinte-mingw.ads:
5066 Move all non tasking based interface to s-win32.ads.
5068 * s-osprim-mingw.adb:
5069 Remove duplicated declarations and use s-win32.ads
5072 2008-04-08 Vincent Celier <celier@adacore.com>
5073 Arnaud Charlet <charlet@adacore.com>
5075 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5076 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5077 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5078 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5079 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5081 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5082 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5083 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5084 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5085 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5086 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5087 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5088 mlib-tgt-specific-mingw.adb: New names.
5091 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5093 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5094 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5095 Minor updates for VMS
5097 * gnatbl.c: Removed.
5099 2008-04-08 Thomas Quinot <quinot@adacore.com>
5101 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5102 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5103 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5104 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5105 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5106 ASCII.NUL throughout.
5108 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5109 Matthew Heaney <heaney@adacore.com>
5111 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5114 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5115 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5116 to convention for non-RM specs.
5117 Add descriptive header, and documented each operation
5118 document each operation
5120 2008-04-08 Robert Dewar <dewar@adacore.com>
5121 Bob Duff <duff@adacore.com>
5122 Gary Dismukes <dismukes@adacore.com>
5123 Ed Schonberg <schonberg@adacore.com>
5125 * alloc.ads: Add entries for Obsolescent_Warnings table
5127 * einfo.ads, einfo.adb: Minor reformatting.
5128 (Is_Discriminal): New subprogram.
5129 (Is_Prival): New subprogram.
5130 (Is_Protected_Component): New subprogram.
5131 (Is_Protected_Private): Removed.
5132 (Object_Ref, Set_Object_Ref): Removed.
5133 (Prival, Set_Prival): Change assertion.
5134 (Privals_Chain, Set_Privals_Chain): Removed.
5135 (Prival_Link, Set_Prival_Link): New subprogram.
5136 (Protected_Operation, Set_Protected_Operation): Removed.
5137 (Protection_Object, Set_Protection_Object): New subprogram.
5138 (Write_Field17_Name): Remove case for Object_Ref.
5139 (Write_Field20_Name): Add case for Prival_Link.
5140 (Write_Field22_Name): Remove case for Protected_Operation,
5142 Add case for Protection_Object.
5143 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5145 (Overlays_Constant): New flag
5146 (Is_Constant_Object): New predicate
5147 (Is_Standard_Character_Type): New predicate
5148 (Optimize_Alignment_Space): New flag
5149 (Optimize_Alignment_Time): New flag
5150 (Has_Postconditions): New flag
5151 (Obsolescent_Warrning): Field removed
5152 (Spec_PPC_List): New field
5153 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5154 subprograms to get and set the relative deadline associated to a task.
5156 * exp_attr.adb (May_Be_External_Call): Account for the case where the
5157 Access attribute is part of a named parameter association.
5158 (Expand_Access_To_Protected_Op): Test for the attribute occurring
5159 within an init proc and use that directly as the scope rather than
5160 traversing up to the protected operation's enclosing scope. Only apply
5161 assertion on Is_Open_Scopes in the case the scope traversal is done.
5162 For the init proc case use the address of the first formal (_init) as
5163 the protected object reference.
5164 Implement Invalid_Value attribute
5165 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5166 contents of the dispatch table there is no need to duplicate the
5167 itypes associated with record types (i.e. the implicit full view
5169 Implement Enum_Val attribute
5170 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5171 within _Postconditions procedure
5172 (Expand_N_Attribute_Reference, case Result): Implement new attribute
5174 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5175 a return statement calls a function that is not available in
5176 configurable runtime.
5177 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5178 (Expand_Non_Function_Return): Generate call to _Postconditions proc
5179 (Expand_Simple_Function_Return): Ditto
5181 * frontend.adb: Add call to Sem_Aux.Initialize
5183 * sem_aux.ads, sem_aux.adb: New file.
5185 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5186 Add new Pragma_Relative_Deadline.
5187 Add support for pragmas Check and Check_Policy
5189 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5190 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5191 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5192 missing check because they are not allowed in CPP tagged types.
5193 Add Sure parameter to Note_Possible_Modification calls
5194 Add implementation of Invalid_Value attribute
5195 Implement new attribute Has_Tagged_Values
5196 Implement Enum_Val attribute
5197 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5198 generated attributes.
5199 (Analyze_Attribute, case Result): If prefix of the attribute is
5200 overloaded, it always resolves to the enclosing function.
5201 (Analyze_Attribute, case Result): Properly deal with analysis when
5202 Postconditions are not active.
5203 (Resolve_Attribute, case Result): Properly deal with appearence during
5204 preanalysis in spec.
5205 Add processing for attribute Result
5207 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5209 (Analyze_Subprogram_Body): Install private_with_clauses when the body
5211 (Check_Inline_Pragma): recognize an inline pragma that appears within
5212 the subprogram body to which it applies.
5213 (Analyze_Function_Return): Check that type of the expression of a return
5214 statement in a function with a class-wide result is not declared at a
5215 deeper level than the function.
5216 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5217 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5218 user- defined operators.
5219 (Install_Formals): Moved to spec to allow use from Sem_Prag for
5220 analysis of precondition/postcondition pragmas.
5221 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5222 Last_Formal, along with lots of comments on what this is about
5223 (Analyze_Subprogram_Body): Fix case where we move entities from the
5224 spec to the body when there are no body entities (now possible with
5225 precondition and postcondition pragmas).
5226 (Process_PPCs): New procedure
5227 (Analyze_Subprogram_Body): Add call to Process_PPCs
5229 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5231 (Pop_Scope): Restore Check_Policy_List on scope exit
5232 (Push_Scope): Save Check_Policy_List on scope entry
5233 Change name In_Default_Expression => In_Spec_Expression
5234 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5235 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5236 (Analyze_Object_Renaming): Allow 'Reference as object
5237 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5238 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5239 of restriction identifier.
5240 Add Sure parameter to Note_Possible_Modication calls
5242 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5243 Don't check for primitive operations when calling Rep_Item_Too_Late.
5244 (Process_Import_Or_Interface): Do not place flag on formal
5246 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5247 propagate information to full view, which is the one elaborated by the
5249 (Make_Inline): the pragma is effective if it applies to an internally
5250 generated subprogram declaration for a body that carries the pragma.
5251 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5252 Optimize_Alignment_Local.
5253 (Analyze_PPC_In_Decl_Part): New procedure
5254 (Get_Pragma_Arg): Moved to outer level
5255 (Check_Precondition_Postcondition): Change to allow new visibility
5256 rules for package spec
5257 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5258 same as pragma Suppress/Unsuppress.
5259 Change name In_Default_Expression => In_Spec_Expression
5260 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5261 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5262 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5263 for the case of these pragmas appearing in the spec.
5264 (Check_Enabled): New function
5265 (Initialize): New procedure
5266 (Tree_Read): New procedure
5267 (Tree_Write): New procedure
5268 (Check_Precondition_Postcondition): New procedure
5269 Implement pragmas Check and Check_Policy
5270 Merge Assert processing with Check
5272 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5273 New warning flag -gnatw.e
5275 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5276 returning whether a task (or main procedure) has a pragma
5278 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5279 (or main procedure) has a pragma Relative_Deadline.
5280 Add Next_Pragma field to N_Pragma node
5281 (PPC_Enabled): New flag
5282 (Next_Pragma): Now used for Pre/Postcondition processing
5284 * snames.h, snames.ads, snames.adb: New standard name
5286 Add entry for 'Invalid_Value attribute
5287 Add entry for new attribute Has_Tagged_Values
5288 Add entry for Enum_Val attribute
5289 Add new standard names Aggregate, Configuration and Library.
5292 Add Pragma_Precondition
5293 Add Pragma_Postcondition
5294 Add Attribute_Result
5295 New standard name Archive_Builder_Append_Option
5296 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5297 There was also a missing non_preemptive_within_priorities.
5298 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5300 Add support for pragmas Check and Check_Policy
5302 * tree_gen.adb: Call Sem_Aux.Tree_Write
5304 * tree_in.adb: Call Sem_Aux.Tree_Read
5306 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5309 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5312 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5313 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5315 (Expand_Pragma_Check): New procedure
5317 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5320 * sinfo.adb (PPC_Enabled): New flag
5322 2008-04-08 Robert Dewar <dewar@adacore.com>
5323 Gary Dismukes <dismukes@adacore.com>
5324 Javier Miranda <miranda@adacore.com>
5325 Ed Schonberg <schonberg@adacore.com>
5327 * fe.h: Remove global Optimize_Alignment flag, no longer used
5329 * layout.adb: Test Optimize_Alignment flags rather than global switch
5331 * lib.ads, lib.adb: New OA_Setting field in library record
5333 * lib-load.adb: New OA_Setting field in library record
5335 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5336 units mentioned in limited_with_ clauses in the ali file, with an
5338 New Ox fields in U line
5340 * opt.adb: New flag Optimize_Alignment_Local
5341 (Check_Policy_List[_Config]): New flags
5343 * opt.ads (Invalid_Value_Used): New flag
5344 New switch Optimize_Alignment_Local
5345 (Warn_On_Parameter_Order): New flag
5346 (Check_Policy_List[_Config]): New flags
5348 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5349 limited_with clauses.
5350 New data structures for Optimize_Alignment
5352 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5354 (Check_Consistent_Optimize_Alignment): Rework for new structure
5355 (Check_Consistent_Restrictions): Fix incorrect error message
5357 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5358 created class-wide type (to the Parent field of the specific type).
5359 (Install_Siblings): Handle properly private_with_clauses on subprogram
5360 bodies and on generic units.
5361 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5362 illegal limited_with_clause that names a non-existent package.
5363 (Check_Body_Required): Determine whether a unit named a limited_with
5364 clause needs a body.
5365 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5366 Capture Optimize_Alignment settings to set new OA_Setting field in
5368 (Build_Limited_Views): Include task and protected type declarations.
5370 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5371 case of a possible constant redeclaration where the current object is
5372 an entry index constant.
5373 (Analyze_Object_Declaration): Generate an error in case of CPP
5374 class-wide object initialization.
5375 (Analyze_Object_Declaration): Add extra information on warnings for
5376 declaration of unconstrained objects.
5377 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5378 conflicts with the setting of Stored_Constraint in the case where the
5379 access type entity has already been created as an E_Incomplete_Type due
5380 to a limited with clause.
5381 Use new Is_Standard_Character_Type predicate
5382 (Analyze_Object_Declaration): Apply access_constant check only after
5383 expression has been resolved, given that it may be overloaded with
5384 several access types.
5385 (Constant_Redeclaration): Additional legality checks for deferred
5386 constant declarations tha involve anonymous access types and/or null
5387 exclusion indicators.
5388 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5389 (Analyze_Subtype_Declaration): Ditto
5390 (Analyze_Object_Declaration): Ditto
5391 (Analyze_Object_Declaration): Don't count tasks in generics
5392 Change name In_Default_Expression => In_Spec_Expression
5393 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5394 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5395 (Process_Discriminants): Additional check for illegal use of default
5396 expressions in access discriminant specifications in a type that is not
5398 (Check_Abstract_Overriding): If an inherited function dispaches on an
5399 access result, it must be overridden, even if the type is a null
5401 (Derive_Subprogram): The formals of the derived subprogram have the
5402 names and defaults of the parent subprogram, even if the type is
5403 obtained from the actual subprogram.
5404 (Derive_Subprogram): In the presence of interfaces, a formal of an
5405 inherited operation has the derived type not only if it descends from
5406 the type of the formal of the parent operation, but also if it
5407 implements it. This is relevant for the renamings created for the
5408 primitive operations of the actual for a formal derived type.
5409 (Is_Progenitor): New predicate, to determine whether the type of a
5410 formal in the parent operation must be replaced by the derived type.
5412 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5413 predicate recursive to handle components that have a user-defined
5414 Initialize procedure. Handle controlled derived types whose ancestor
5415 has a user-defined Initialize procedured.
5416 (Note_Possible_Modification): Add Sure parameter, generate warning if
5417 sure modification of constant
5418 Use new Is_Standard_Character_Type predicate
5419 (Find_Parameter_Type): when determining whether a protected operation
5420 implements an interface operation, retrieve the type of the formal from
5421 the entity when the formal is an access parameter or an
5422 anonymous-access-to-subprogram.
5423 Move Copy_Parameter_List to sem_util, for use when building stubbed
5425 (Has_Access_Values): Tagged types now return False
5426 (Within_HSS_Or_If): New procedure
5427 (Set_Optimize_Alignment_Flags): New procedure
5428 Change name In_Default_Expression => In_Spec_Expression
5429 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5430 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5432 2008-04-08 Tristan Gingold <gingold@adacore.com>
5434 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5436 2008-04-08 Tristan Gingold <gingold@adacore.com>
5440 * cuintp.c: Fix 16 bits issue for AVR.
5441 On AVR, integer is 16 bits, so it can't be used to do math with
5443 So use long_integer instead.
5445 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5447 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5448 System.OS_Primitives.
5449 Change type of various constants, parameters and local variables from
5450 Time to representation type OS_Time.
5451 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5452 Remove the declaration of constant Mili_F from several routines. New
5453 body for internal package Conversions_Operations.
5454 (Time_Of): Add default parameters for several formals.
5456 * a-caldel.adb: Minor reformatting
5458 * a-calend.ads, a-calend.adb: New body for internal package
5459 Conversions_Operations.
5460 (Time_Of): Add default parameters for several formals.
5462 * Makefile.rtl: Add a-ststop
5463 Add Ada.Calendar.Conversions to the list of runtime files.
5466 * a-calcon.adb, a-calcon.ads: New files.
5468 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5469 Tristan Gingold <gingold@adacore.com>
5471 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5472 (Install_Restricted_Handlers): New procedure
5473 which is a simplified version of Install_Handlers that does not store
5474 previously installed.
5476 * s-interr-vxworks.adb: Fix ACATS cxc3001
5477 On VxWorks interrupts can't be detached.
5478 (Install_Restricted_Handlers): New procedure.
5480 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5483 2008-04-08 Olivier Hainque <hainque@adacore.com>
5485 * s-intman-vxworks.ads, s-intman-vxworks.adb
5486 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5487 required services already implemented elsewhere.
5488 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5489 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5490 argument passed to the handler, which we need for ZCX propagation
5493 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5495 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5497 * g-timsta.adb, g-timsta.ads: New files.
5499 2008-04-08 Robert Dewar <dewar@adacore.com>
5501 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5502 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5503 (Raise_Exception_Always): Fix documentation accordingly
5505 2008-04-08 Robert Dewar <dewar@adacore.com>
5507 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5510 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5513 2008-04-08 Javier Miranda <miranda@adacore.com>
5514 Robert Dewar <dewar@adacore.com>
5515 Ed Schonberg <schonberg@adacore.com>
5517 * a-tags.adb (Register_Interface_Offset): New subprogram.
5518 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5519 (To_Predef_Prims_Table_Ptr): Removed.
5520 (Acc_Size): Removed.
5521 (To_Acc_Size): Removed.
5522 (Parent_Size): Modified to the call the subprogram returning the size of
5523 the parent by means of the new TSD component Size_Func.
5525 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5526 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5527 code referencing the Offset_To_Top component of the dispatch table's
5529 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5530 use of 'address to initialize dispatch table slots.
5531 (Size_Func): New component of the TSD. Used by the run-time to call the
5532 size primitive of the tagged type.
5534 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5535 Offset_To_Top component of a dispatch table.
5536 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5537 deferred constant declaration. do not add a null expression, to prevent
5538 spurious errors when full declaration is analyzed.
5539 (Apply_Discriminant_Check): If both discriminant constraints share a
5540 node which is not static but has no side effects, do not generate a
5541 check for that discriminant.
5542 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5543 subexpr, since the prefix of an attribute is a name.
5545 * checks.ads: Fix nit in comment.
5547 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5548 and body of predefined primitives in case of CPP tagged type
5550 (Freeze_Type): Deal properly with no storage pool case
5551 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5552 primitive Deep_Adjust if a nonlimited interface is derived from a
5554 (Build_Dcheck_Functions): Create discriminant-checking functions only
5555 for variants that have some component(s).
5556 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5557 properly the case where the slice bounds extend to the last value of the
5558 underlying representation.
5559 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5560 (Is_Variable_Size_Record): An array component has a static size if
5561 index bounds are enumeration literals.
5563 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5564 an external tag has been specified for the type.
5565 (Building_Static_DT): Add missing support for private types.
5566 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5567 to the entity associated with the parent of Typ. This is done to
5568 avoid wrong access when the parent is a private type.
5569 (Expand_Interface_Conversion): Improve error message when the
5570 configurable runtime has no support for dynamic interface conversion.
5571 (Expand_Interface_Thunk): Add missing support to interface types in
5572 configurable runtime.
5573 (Expand_Dispatching_Call): remove obsolete code.
5574 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5575 ensure that all subtypes and aggregates associated with dispatch
5576 tables have the attribute Is_Dispatch_Table_Entity set to true.
5577 (Register_Primitive): Rename one variable to improve code reading.
5578 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5579 of the pointer to the 'size primitive in the TSD.
5581 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5582 (RE_Offset_To_Top_Ptr): New entity.
5583 (RE_Register_Interface_Offset): New entity.
5584 (RE_Set_Dynamic_Offset_To_Top): New entity.
5585 (RE_Set_Offset_To_Top): Removed entity.
5586 (RE_Prim_Ptr): New entity
5587 (RE_Size_Func): New entity
5588 (RE_Size_Ptr): New entity
5589 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5590 (Ada_Dispatching_Child): Define this new subrange.
5591 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5592 RE_Time_Span, and RE_Time_Span_Zero).
5593 (RE_Unit_Table): Add new required run-time calls
5595 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5598 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5599 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5600 initializes the Offset_To_Top component of a dispatch table.
5601 (Build_Predef_Prims): Removed.
5602 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5604 (Build_Set_Size_Function): New subprogram.
5606 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5607 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5609 2008-04-08 Robert Dewar <dewar@adacore.com>
5611 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5612 computing Fore when Exp > 0
5614 2008-04-08 Robert Dewar <dewar@adacore.com>
5616 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5618 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5619 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5621 * fmap.adb: Remove Big_String declarations (now in Types)
5622 (No_Mapping_File): New Boolean global variable
5623 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5625 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5626 tables were empty before adding entries, open the mapping file
5627 with Truncate = True, instead of delete/re-create.
5629 * fname-sf.adb: Remove Big_String declarations (now in Types)
5631 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5632 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5635 * table.ads: Add for Table_Ptr'Storage_Size use 0
5637 * types.ads: Add Big_String declarations
5638 Add Size_Clause of zero for big pointer types
5640 2008-04-08 Vincent Celier <celier@adacore.com>
5642 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5643 (Usage): Add line for switch --subdirs=
5644 Add new switch -eL, to follow symbolic links when processing project
5647 * gnatcmd.adb: Process switches -eL and --subdirs=
5648 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5649 Program_Name to get proper tool names when AAMP_On_Target is set.
5650 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5651 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5652 Osint.Program_Name).
5654 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5655 (Usage): Add lines for switches -eL and --subdirs=
5657 * makeusg.adb: Add line for switch --subdirs=
5660 (Source_Data): New Boolean component Compiled, defaulted to True
5661 (Empty_File_Name: New global variable in private part, initialized in
5662 procedure Initialize.
5663 (Subdirs_Option): New constant string
5664 (Subdirs): New String_Ptr global variable
5665 (Language_Config): New component Include_Compatible_Languages
5666 (Project_Qualifier): New type for project qualifiers
5667 (Project_Data): New component Qualifier
5668 (Project_Configuration): New component Archive_Builder_Append_Option
5670 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5671 another imported project indicate the name of this imported project.
5672 (Check_File): When a unit is in two project files, indicate the project
5673 names and the paths of the source files for each project.
5674 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5675 set object, dependency and switches file names if Compiled is True.
5676 (Process_Compiler): Allow the empty string for value of attribute Driver
5677 (Get_Directories): When Subdirs is not null and Object_Dir is not
5678 specified, locate and create if necessary the actual object dir.
5679 (Locate_Directory): When Subdirs is not empty and Create is not the
5680 empty string, locate and create if necessary the actual directory
5681 as a subdirectory of directory Name.
5682 (Check_Library_Attributes.Check_Library): Allow a project where the only
5683 "sources" are header files of file based languages to be imported by
5684 library projects, in multi-language mode (gprbuild).
5685 (Check_Library_Attributes.Check_Library): In multi-language mode
5686 (gprbuild), allow a library project to import a project with no
5687 sources, even when this is not declared explicitly.
5688 (Check_If_Externally_Built): A virtual project extending an externally
5689 built project is also externally built.
5690 (Check_Library_Attributes): For a virtual project extending a library
5691 project, inherit the library directory.
5692 (Process_Project_Level_Array_Attributes): Process new attribute
5693 Inherit_Source_Path.
5694 For projects with specified qualifiers "standard", "library" or
5695 "abstract", check that the project conforms to the qualifier.
5696 (Process_Project_Level_Simple_Attributes): Process new attribute
5697 Archive_Builder_Append_Option.
5699 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5700 (Normalize_Compiler_Switches): Only keep compiler switches that are
5701 passed to gnat1 by the gcc driver and that are stored in the ALI file
5703 Do not take into account switc -save-temps
5705 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5706 gprmake is called with -eL.
5707 (Scan_Arg): Recognize switch -eL
5708 (Usage): Add line for switch -eL
5710 * prj.adb (Initialize): Initialize Empty_File_Name
5711 (Project_Empty): New component Qualifier
5713 * prj-attr.ads, prj-attr.adb: New project level attribute
5714 Inherit_Source_Path.
5715 New project level attribute Archive_Builder_Append_Option
5717 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5719 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5720 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5721 upward compatibility.
5723 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5724 each Trying ..." on different lines.
5725 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5726 is "configuration" when not in configuration. Fail when in configuration
5727 when a specified qualifier is other than "configuration".
5729 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5730 full associative array together.
5731 (Recursive_Process): Put the project qualifier in the project data
5733 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5734 (Set_Project_Qualifier_Of): New procedure
5736 2008-04-08 Robert Dewar <dewar@adacore.com>
5738 * errout.ads: Update comments for new handling of info: messages
5740 * erroutc.adb (Matches): New procedure
5741 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5742 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5743 info messages as well as style messages.
5745 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5747 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5749 (Check_A_Call): Special "info: " warnings now have ? in the text
5750 (Elab_Warning): Use info message in static case
5752 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5754 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5755 whether an array aggregate with static bounds and scalar components
5756 should be expanded into a static constant.
5758 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5759 Ed Schonberg <schonberg@adacore.com>
5760 Robert Dewar <dewar@adacore.com>
5762 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5763 Has_Stream_Attribute_ Definition when checking for available stream
5764 attributes on parameters of a limited type in Ada 2005. Necessary for
5765 proper recognition of visible stream attribute clauses.
5766 (Has_Stream_Attribute_Definition): If the type is derived from a
5767 private type, then use the derived type's underlying type for checking
5768 whether it has stream attributes.
5769 (Validate_Object_Declaration): The check for a user-defined Initialize
5770 procedure applies also to types with controlled components or a
5771 controlled ancestor.
5772 Reject an object declaration in a preelaborated unit if the type is a
5773 controlled type with an overriding Initialize procedure.
5774 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5775 checking when the parent of a dereference is a selected component and
5776 the name has not been analyzed.
5778 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5779 prefixes that are invalid explicit dereferences of remote
5780 access-to-class-wide values, first checking whether the selected
5781 component is a prefixed form of call to a tagged operation.
5782 (Analyze_Call): Remove code that issues an error for limited function
5783 calls in illegal contexts, as we now support all of the contexts that
5784 were forbidden here.
5785 Allow a function call that returns a task.and appears as the
5786 prefix of a selected component.
5787 (Analyze_Reference): Give error message if we try to make a 'Reference
5788 for an object that is atomic/aliased without its type having the
5789 corresponding attribute.
5790 (Analyze_Call): Remove condition checking for attributes to allow
5791 calls to functions with inherently limited results as prefixes of
5792 attributes. Remove related comment about Class attributes.
5793 (Analyze_Selected_Component): If the prefix is a remote type, check
5794 whether this is a prefixed call before reporting an error.
5795 (Complete_Object_Operation): If the controlling formal is an access to
5796 variable reject an actual that is a constant or an access to one.
5797 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5798 primitive operations from base type.
5800 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5802 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5803 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5804 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5805 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5806 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5807 (Analyze_Call): Remove code that issues an error for limited function
5808 calls in illegal contexts, as we now support all of the contexts that
5809 were forbidden here.
5810 New calling sequence for Get_Simple_Init_Val
5811 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5812 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5814 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5815 Ed Schonberg <schonberg@adacore.com>
5816 Robert Dewar <dewar@adacore.com>
5818 * exp_ch2.adb: Minor reformatting.
5819 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5820 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5821 (Expand_Protected_Component): New routine.
5822 (Expand_Protected_Private): Removed.
5823 Add Sure parameter to Note_Possible_Modification calls
5825 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5826 generated subprogram declaration must inherit the overriding indicator
5827 from the instantiation node.
5828 (Validate_Access_Type_Instance): If the designated type of the actual is
5829 a limited view, use the available view in all cases, not only if the
5830 type is an incomplete type.
5831 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5832 and the actual subtype does not exclude null.
5833 (Process_Default): Handle properly abstract formal subprograms.
5834 (Check_Formal_Package_Instance): Handle properly defaulted formal
5835 subprograms in a partially parameterized formal package.
5836 Add Sure parameter to Note_Possible_Modification calls
5837 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5838 actual cannot be limited.
5839 (Collect_Previous_Instances): Generate instance bodies for subprograms
5842 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5844 Add Sure parameter to Note_Possible_Modification calls
5845 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5846 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5847 constant overlaid by variable and issue warning.
5848 Use new Is_Standard_Character_Type predicate
5849 (Analyze_Record_Representation_Clause): Check that the specified
5850 Last_Bit is not less than First_Bit - 1.
5851 (Analyze_Attribute_Definition_Clause, case Address): Check for
5852 self-referential address clause
5854 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5855 detection mechanism when the lhs is a prival.
5856 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5857 assignment of a pointer to protected data, to an object declared
5858 outside of the protected object.
5859 (Analyze_Loop_Statement): Check for unreachable code after loop
5860 Add Sure parameter to Note_Possible_Modication calls
5861 Protect analysis from previous syntax error such as a scope mismatch
5863 (Analyze_Assignment_Statement): The assignment is illegal if the
5864 left-hand is an interface.
5866 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5867 violation of restriction No_Implicit_Conditionals
5868 Add Sure parameter to Note_Possible_Modication calls
5869 Use new Is_Standard_Character_Type predicate
5870 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5871 call as operator. Fixes problems (e.g. validity checking) which
5872 come from the result looking as though it does not come from source).
5873 (Resolve_Call): Check case of name in named parameter if style checks
5875 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5876 from the checking that such calls should not occur from an entry body.
5877 (Resolve_Call): If the return type of an Inline_Always function
5878 requires the secondary stack, create a transient scope for the call
5879 if the body of the function is not available for inlining.
5880 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5881 that are actuals for in-out formals.
5882 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5883 primitive operations from base type.
5884 (Analyze_Selected_Component): If the context is a call to a protected
5885 operation the parent may be an indexed component prior to expansion.
5886 (Resolve_Actuals): If an actual is of a protected subtype, use its
5887 base type to determine whether a conversion to the corresponding record
5889 (Resolve_Short_Circuit): Handle pragma Check
5891 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5892 Use new Is_Standard_Character_Type predicate
5893 (Eval_Relational_Op): Catch more cases of string comparison
5895 2008-04-08 Robert Dewar <dewar@adacore.com>
5896 Gary Dismukes <dismukes@adacore.com>
5898 * s-rident.ads: Add No_Default_Initialization restriction
5901 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5902 (Set_TSS): Handle No_Default_Initialization case
5904 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5905 No_Default_Initialization
5906 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5907 parameters when Normalize_Scalars is active.
5908 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5909 Fix casing error in formal parameter name in call
5910 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5911 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5912 dispatching call on VM targets.
5914 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5915 Thomas Quinot <quinot@adacore.com>
5917 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5918 selected component from an access type's Associated_Final_Chain to
5919 check for the presence of that field, rather than assuming it exists
5920 for all named access types.
5921 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5922 procedure to call at the end of the generated cleanup procedure.
5923 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5924 and an At_End_Proc already exists in the handled sequence of statements
5925 for which cleanup actions are being expanded, the original cleanup
5926 action must be preserved.
5928 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5929 Ed Schonberg <schonberg@adacore.com>
5930 Robert Dewar <dewar@adacore.com>
5931 Gary Dismukes <dismukes@adacore.com>
5933 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5934 Build_Unprotected_Subprogram_Body): Generate debug info for
5935 declarations related to the handling of private data in task and
5937 (Debug_Private_Data_Declarations): New subprogram.
5938 (Install_Private_Data_Declarations): Remove all debug info flagging.
5939 This is now done by Debug_Private_Data_Declarations at the correct
5941 (Build_Simple_Entry_Call): If the task name is a function call, expand
5942 the prefix into an object declaration, and make the surrounding block a
5944 (Build_Master_Entity): An internal block is a master if it wraps a call.
5945 Code reformatting, update comments. Code clean up.
5946 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5947 (Replicate_Entry_Formals): If the formal is an access parameter or
5948 anonymous access to subprogram, copy the original tree to create new
5949 entities for the formals of the subprogram.
5950 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5951 for tasks to store the value passed using pragma Relative_Deadline.
5952 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5953 run-time call to create a task.
5954 (Build_Wrapper_Spec): If the controlling argument of the interface
5955 operation is an access parameter with a non-null indicator, use the
5956 non-null indicator on the wrapper.
5958 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5959 present, which it may not be in the case where the type entity is an
5960 incomplete view brought in by a limited with.
5961 (Analyze_Task_Type): Only retrieve the full view when present, which it
5962 may not be in the case where the type entity is an incomplete view brought
5963 in by a limited with.
5964 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5965 private components of a protected type, to prevent the generation of freeze
5966 nodes for which there is no proper scope of elaboration.
5968 * exp_util.ads, exp_util.adb
5969 (Remove_Side_Effects): If the expression is a function call that returns a
5970 task, expand into a declaration to invoke the build_in_place machinery.
5971 (Find_Protection_Object): New routine.
5972 (Remove_Side_Effects): Also make a copy of the value
5973 for attributes whose result is of an elementary type.
5974 (Silly_Boolean_Array_Not_Test): New procedure
5975 (Silly_Boolean_Array_Xor_Test): New procedure
5976 (Is_Volatile_Reference): New function
5977 (Remove_Side_Effects): Use Is_Volatile_Reference
5978 (Possible_Bit_Aligned_Component): Handle slice case properly
5980 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5981 case test to Exp_Util
5982 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5984 2008-04-08 Thomas Quinot <quinot@adacore.com>
5986 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5988 (Add_RACW_Features): When processing an RACW in another unit than the
5989 main unit, set Body_Decls to No_List to indicate that the bodies of
5990 the type's TSS must not be generated.
5991 (GARLIC_Support.Add_RACW_Read_Attribute,
5992 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5993 Body_Decls is No_List.
5994 (PolyORB_Support.Add_RACW_Read_Attribute,
5995 PolyORB_Support.Add_RACW_Write_Attribute,
5996 PolyORB_Support.Add_RACW_From_Any,
5997 PolyORB_Support.Add_RACW_To_Any,
5998 PolyORB_Support.Add_RACW_TypeCode): Same.
5999 (Transmit_As_Unconstrained): New function.
6000 (Build_Ordered_Parameters_List): Use the above to order parameters.
6001 (GARLIC_Support.Build_General_Calling_Stubs):
6002 Use the above to determine which parameters to unmarshall using 'Input
6003 at the point where their temporary is declared (as opposed to later on
6005 (PolyORB_Support.Build_General_Calling_Stubs):
6006 Use the above to determine which parameters to unmarshall using From_Any
6007 at the point where their temporary is declared (as opposed to later on
6008 with an assignment).
6010 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6012 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
6013 an Input function for an access type, do not perform default
6014 initialization on the local variable that receives the value, to
6015 prevent spurious warnings when the type is null-excluding.
6017 2008-04-08 Robert Dewar <dewar@adacore.com>
6018 Ed Schonberg <schonberg@adacore.com>
6020 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
6022 (Size_Known): Generic formal scalar types have known at compile
6023 time size, so remove check.
6024 Fix casing error in formal parameter name in call
6025 (Freeze_Subprogram): If the subprogram is a user-defined operator,
6026 recheck its overriding indication.
6028 2008-04-08 Vincent Celier <celier@adacore.com>
6030 * gnat1drv.adb: Send all messages indicating an error to standard error
6032 2008-04-08 Robert Dewar <dewar@adacore.com>
6034 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
6035 (List_Applicable_Restrictions): Do not list existing restrictions
6037 2008-04-08 Thomas Quinot <quinot@adacore.com>
6039 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
6040 add a pointer to generic sockets literature
6041 do not mention that the given example is "typical" usage.
6042 Remove obsolete comment about multicast not being supported on Windows.
6043 (Connect_Socket): Make Server mode IN rather than IN OUT
6044 since this formal is never modified.
6046 2008-04-08 Robert Dewar <dewar@adacore.com>
6048 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6049 the declaration for some different entity.
6050 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6051 list is precent (following the parent subtype indication), display
6052 appropriate "and" keyword.
6054 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6055 Remove unnecessary calls to Init_Size_Align and Init_Esize.
6056 Add notes on use of Parent field of an Itype
6058 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6059 Robert Dewar <dewar@adacore.com>
6060 Gary Dismukes <dismukes@adacore.com>
6062 * lib-xref.adb (Is_On_LHS): Remove dead code
6063 (Output_Overriden_Op): If the overridden operation is itself inherited,
6064 list the ancestor operation, which is the one whose body or absstract
6065 specification is actually being overridden. For source navigation
6068 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6069 operation is primitive for the type.
6070 (Declare_Inherited_Private_Subprograms): If the new operation overrides
6071 an inherited private subprogram, set properly the Overridden_Operation
6072 attribute, for better cross-reference information.
6073 (Analyze_Package_Specification): Do late analysis of spec PPCs
6074 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6075 properly the full view and underlying full views of a private type in a
6076 child unit, whose full view is derived from a private type in a parent
6077 unit, and whose own full view becomes visible in the child body.
6079 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6080 primitive operation after the type has been frozen, add an explicit
6081 reference to the type and the operation, because other primitive
6082 references have been emitted already.
6083 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6084 dispatching call on VM targets.
6086 2008-04-08 Vincent Celier <celier@adacore.com>
6087 Thomas Quinot <quinot@adacore.com>
6089 * make.adb: (Gnatmake_Called): Remove, no longer necessary
6090 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6091 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6092 (Insert_Project_Sources): Take into account index in multi-unit source
6094 After building a library project, delete all temporary files.
6095 (Initialize): Reset current output after parsing project file.
6096 (Collect_Arguments_And_Compile): Never insert in the queue the sources
6097 of library projects that are externally built.
6098 Put file name in error and inform messages if -df is used
6099 (Display): If invoked with -d7, do not display path names, but only
6102 * makeutl.ads (Path_Or_File_Name): New function
6103 (Path_Or_File_Name): New function
6105 2008-04-08 Arnaud Charlet <charlet@adacore.com>
6107 * Make-lang.in: Disable warnings during first stage of bootstrap
6109 Update dependencies.
6111 2008-04-08 Vincent Celier <celier@adacore.com>
6113 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6114 case to decide if ALI object file is included in library.
6115 (Build_Library): Never attempt to build a library if the project is
6118 2008-04-08 Thomas Quinot <quinot@adacore.com>
6120 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6121 (No_List) is defined to return Empty.
6123 2008-04-08 Jose Ruiz <ruiz@adacore.com>
6125 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6128 (Read_Default_Search_Dirs): Do not consider spaces as path separators
6129 because spaces may be part of legal paths.
6131 2008-04-08 Robert Dewar <dewar@adacore.com>
6133 * par-ch11.adb (P_Exception_Handler): Check indentation level for
6136 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6138 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6139 in a type declaration, if this is not an interface declaration or
6140 private type extension.
6142 2008-04-08 Vincent Celier <celier@adacore.com>
6144 * prj-util.adb (Executable_Of): New String parameter Language. When
6145 Ada_Main is False and Language is not empty, attempt to remove the body
6146 suffix or the spec suffix of the language to get the base of the
6147 executable file name.
6148 (Put): New Boolean parameter Lower_Case, defauilted to False. When
6149 Lower_Case is True, put the value in lower case in the name list.
6150 (Executable_Of): If there is no executable suffix in the configuration,
6151 then do not modify Executable_Extension_On_Target.
6153 * prj-util.ads (Executable_Of): New String parameter Language,
6154 defaulted to the empty string.
6155 (Put): New Boolean parameter Lower_Case, defauilted to False
6157 2008-04-08 Robert Dewar <dewar@adacore.com>
6159 * scng.adb (Scan_Identifier): Handle case of identifier starting with
6160 wide character using UTF-8 encoding.
6162 2008-04-08 Javier Miranda <miranda@adacore.com>
6164 * sem.adb (Analyze): Consider case in which we analyze an empty node
6165 that was generated by a call to a runtime function that is not
6166 available under the configurable runtime.
6168 * sem.ads (Inside_Freezing_Actions): New flag.
6169 (Save_Check_Policy_List): New field in scope stack entry
6171 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6172 Robert Dewar <dewar@adacore.com>
6174 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6175 the ancestor part of an extension aggregate for a limited type.
6176 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6177 enumeration index bounds.
6178 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6179 when array is too short.
6180 (Check_Expr_OK_In_Limited_Aggregate): Move function
6181 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6183 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6184 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6185 component associations.
6186 (Check_Non_Limited_Type): Moved to outer level and renamed.
6187 (Resolve_Record_Aggregate): In an extension aggregate, an association
6188 with a box initialization can only designate a component of the
6189 extension, not a component inherited from the given ancestor
6191 * sem_case.adb: Use new Is_Standard_Character_Type predicate
6193 2008-04-08 Robert Dewar <dewar@adacore.com>
6195 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6197 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6198 Properly handle case where Aft > Scale and input number is less than
6201 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6203 * s-stoele.ads, s-soflin.ads: Move the location of
6204 Dummy_Communication_Block from System.Storage_Elements to
6207 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6208 emulate Communication_Block in certain scenarios.
6210 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6212 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6214 Add new subtype S_WWC, unchecked conversion routines From_WWC and
6216 (I_WWC, O_WWC): New routines for input and output of
6217 Wide_Wide_Character.
6219 2008-04-08 Robert Dewar <dewar@adacore.com>
6221 * stringt.adb (Write_String_Table_Entry): Handle wide characters
6224 2008-04-08 Robert Dewar <dewar@adacore.com>
6226 * styleg.adb (Check_Comment): Allow special char after -- in
6227 non-end-of-line case
6229 2008-04-08 Robert Dewar <dewar@adacore.com>
6231 * stylesw.adb: Implement -gnaty + - y options
6232 (Set_GNAT_Style_Check_Options): Includ I in style check string
6234 * stylesw.ads: Add comments for new style switch options
6236 2008-04-08 Sergey Rybin <rybin@adacore.com>
6238 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6239 to the set of the GNAT components needed by ASIS.
6241 2008-04-08 Bob Duff <duff@adacore.com>
6243 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6245 2008-04-08 Tristan Gingold <gingold@adacore.com>
6247 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6248 Improve error message generation.
6250 2008-04-08 Vincent Celier <celier@adacore.com>
6252 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6253 Use_Error, as specified in the RM. Check if directory is open and raise
6254 Use_Error if it is not.
6256 2008-04-08 Vincent Celier <celier@adacore.com>
6257 Robert Dewar <dewar@adacore.com>
6259 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6260 AAMP_On_Target is set.
6262 * vms_data.ads: Add NOxxx to style check switch list
6263 Add entry COMPONENTS for -gnatVe
6264 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6266 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6267 Add qualifiers for gnatmetric coupling options
6268 Add note that -gnata enables all checks
6269 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6270 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6271 New warning flag -gnatw.e
6273 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6274 Add entry for -gnatyN (forgotten before)
6275 Line for new warning switch -gnatw.p
6276 New warning flag -gnatw.e
6278 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6279 Document -gnaty - + y
6280 Replace occurences of "package specification" with "package spec"
6281 Define preprocessing symbols in documentation of gnatprep
6282 Clarify reason for distinguishing overflow checking
6283 Add documentation for project-aware tool switches -eL and --subdirs=
6284 Complete list of configuration pragmas
6285 Specify that, even when gnatmake switch -x is used, mains on the command
6286 line need to be sources of project files.
6287 Editing of gnatcheck/gnatmetric doc.
6288 Add documentation for -gnatw.p/-gnatw.P
6289 Add missing documentation for -fno-inline-functions.
6290 Add documentation for -gnatw.e
6292 * gnat_rm.texi: Add documentation for No_Default_Initialization
6293 Replace occurences of "package specification" with "package spec"
6294 Document use of * in Warnings Off string
6295 Update documentation of alignment/component clauses.
6296 Add documentation for Invalid_Value
6297 Document new consistency rule for Optimize_Alignment
6298 Add documentation for Precondition and Postcondition pragmas
6299 Add documentation for Check and Check_Policy pragmas
6300 Document new Enum_Val attribute
6301 Remove requirement for static string in pragma Assert
6302 Add documentation on GNAT.Time_Stamp
6304 * ug_words: add entry for -gnatVe
6305 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6306 Add entry for -gnatw.e
6308 * debug.adb: Add missing documentation for d.a flag
6309 Document new -gnatd.a switch.
6310 Add documentation for new gnatmake debug switch -df
6312 2008-04-08 Thomas Quinot <quinot@adacore.com>
6314 * gen-soccon.c: Bump year in copyright notices.
6316 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6318 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6320 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6323 2008-04-08 Robert Dewar <dewar@adacore.com>
6324 Bob Duff <duff@adacore.com>
6326 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6327 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6329 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6331 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6333 * g-trasym.ads: Minor comment improvements
6335 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6337 * a-sequio.ads, a-direio.ads: improve message for tagged type
6339 * a-strunb.ads: Minor reformatting
6341 * a-tifiio.adb: Minor reformatting
6343 * atree.adb (Fix_Parents): Use clearer names for formals
6344 Cleanup and simplify code
6345 Use named notation in calls
6347 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6350 * uintp.adb: Used named notation for some confusing calls
6352 * bindusg.adb: Minor change in one line of output
6354 * cstand.adb: Minor reformatting of src representation of Standard
6356 * a-assert.ads: Add comment.
6358 * g-decstr.adb: Fix bad indentation
6360 * expander.ads, expander.adb: Code clean up.
6362 * sem_dist.ads: Minor comment improvement
6364 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6365 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6367 * i-cstrin.adb: Fix casing error in formal parameter name in call
6369 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6371 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6372 mentioned in limited_with_clauses to do create semantic dependencies
6373 even though they appear in the ali file.
6375 2008-04-08 Emmanuel Briot <briot@adacore.com>
6377 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6379 (Get_Configuration): New subprogram.
6381 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6382 These optional parameters help preserve the casing of the project's name
6383 when pretty-printing.
6385 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6386 Arnaud Charlet <charlet@adacore.com>
6388 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6389 then use __gnat_set_exit_status to report the returned status code.
6391 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6392 messages on .NET, since some constructs of the language are not
6395 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6396 .NET linker, gnatlink now concatenate all .il files and pass this to
6399 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6400 Xavier Grave <grave@ipno.in2p3.fr>
6402 * Makefile.in: Add make ifeq define for mips/mipsel support.
6403 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6404 system-linux-mips.ads: New files.
6406 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6408 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6409 detect systems using GNU libc.
6415 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6417 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6418 constant constant for sysconf call.
6419 (bit_field): New packed boolean type used by cpu_set_t.
6420 (cpu_set_t): New type corresponding to the C type with
6421 the same name. Note that on the Ada side we use a bit
6422 field array for the affinity mask. There is not need
6423 for the C macro for setting individual bit.
6424 (pthread_setaffinity_np): New imported routine.
6425 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6428 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6430 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6432 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6434 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6435 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6436 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6437 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6438 Return by Depressed Stack Pointer.
6440 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6442 * decl.c (is_variable_size): Do not unconditionally return false
6443 on non-strict alignment platforms.
6445 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6447 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6448 used to process all the variants of the specified type.
6449 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6450 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6451 (rest_of_type_decl_compilation): Likewise.
6452 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6454 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6456 * gigi.h (insert_block): Kill.
6457 * utils.c (insert_block): Kill.
6459 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6461 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6462 type has self-referential size, get the size from the initializing
6463 expression directly if it is also a constant whose nominal type
6464 has self-referential size.
6466 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6469 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6472 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6473 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6475 2008-04-01 Andreas Jaeger <aj@suse.de>
6477 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6480 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6482 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6483 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6484 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6485 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6486 gnatlink.adb, gnatmem.adb, gprep.adb,
6487 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6488 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6489 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6490 lib-xref.ads, lib.adb, link.c, live.ads,
6491 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6492 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6493 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6494 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6495 namet.adb, namet.h, nlists.adb, nlists.ads,
6496 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6497 osint-c.ads, osint.adb, osint.ads, output.ads,
6498 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6499 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6500 par-endh.adb, par-labl.adb, par-prag.adb,
6501 par-sync.adb, par-tchk.adb, par-util.adb,
6502 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6503 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6504 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6505 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6507 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6509 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6510 size if it has overflowed.
6512 2008-03-31 Olivier Hainque <hainque@adacore.com>
6513 Eric Botcazou <ebotcazou@adacore.com>
6515 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6516 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6518 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6520 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6521 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6522 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6523 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6524 exp_tss.ads, exp_util.adb, exp_util.ads,
6525 exp_vfpt.adb, freeze.adb, freeze.ads,
6526 frontend.adb, g-alleve.adb, g-altcon.adb,
6527 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6528 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6529 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6530 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6531 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6532 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6533 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6534 g-except.ads, g-expect.ads, g-heasor.adb,
6535 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6536 g-locfil.ads, g-md5.adb, g-md5.ads,
6537 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6538 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6539 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6540 g-soccon-aix.ads, g-soccon-darwin.ads,
6541 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6542 g-soccon-hpux.ads, g-soccon-irix.ads,
6543 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6544 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6545 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6546 g-soccon-solaris.ads, g-soccon-tru64.ads,
6547 g-soccon-vms.ads, g-soccon-vxworks.ads,
6548 g-soccon.ads, g-socket.adb, g-socket.ads,
6549 g-socthi-mingw.adb, g-socthi-vms.adb,
6550 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6551 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6552 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6555 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6557 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6558 if the procedure is imported.
6560 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6562 * adaint.c: Fix warnings.
6564 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6566 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6568 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6570 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6571 Fix problem of status check for null file
6573 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6575 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6576 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6577 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6578 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6579 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6582 2008-03-26 Thomas Quinot <quinot@adacore.com>
6585 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6586 Get_Socket_Option): Add support for Receive_Packet_Info.
6588 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6589 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6590 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6591 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6592 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6593 new constants SO_REUSEPORT and IP_PKTINFO
6595 2008-03-26 Robert Dewar <dewar@adacore.com>
6597 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6598 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6599 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6600 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6601 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6602 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6603 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6604 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6605 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6606 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6607 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6608 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6609 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6610 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6611 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6612 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6613 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6614 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6615 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6616 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6617 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6618 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6619 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6620 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6621 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6622 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6623 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6624 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6625 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6626 s-tasloc.adb: Minor reformatting.
6628 Remove "used for" sections from comments.
6630 2008-03-26 Robert Dewar <dewar@adacore.com>
6632 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6633 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6634 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6635 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6636 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6637 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6638 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6639 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6640 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6641 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6642 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6643 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6644 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6645 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6646 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6647 double spaced if it fits on one line and otherwise single spaced.
6649 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6651 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6652 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6653 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6654 or task info if the thread could not be created.
6656 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6658 * gnatvsn.ads (Library_Version): Bump to 4.4.
6659 (Current_Year): Bump to 2008.
6661 2008-03-26 Robert Dewar <dewar@adacore.com>
6663 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6665 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6667 * debug.adb: Add debug flags d.r and d.v
6668 Add debug flag .T (Optimize_Alignment (Time))
6669 Add debug flag .S (Optimize_Alignment (Space))
6671 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6672 depending on setting of relevant debug flags.
6673 Replace use of Warnings_Off by Has_Warnings_Off
6674 (Freeze_Entity): In circuit for warning on suspicious convention
6675 actuals, do not give warning if subprogram has same entity as formal
6676 type, or if subprogram does not come from source.
6677 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6678 if Optimize_Alignment set to Space.
6680 * frontend.adb: Add call to Sem_Warn.Initialize
6681 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6682 Reset Optimize_Alignment mode from debug switches .S and .T
6684 * layout.adb (Layout_Composite_Object): Rewritten for
6685 Optimize_Aligment pragma.
6687 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6690 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6692 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6693 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6694 this change. Add entry for pragma Optimize_Alignment
6696 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6697 (Pragma_Identifier (..
6698 instead, adjustments throughout to accomodate this change.
6699 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6700 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6701 Add implementation of pragma Optimize_Alignment
6703 2008-03-26 Vincent Celier <celier@adacore.com>
6705 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6706 Improve memory usage to avoid use of stack.
6708 2008-03-26 Robert Dewar <dewar@adacore.com>
6710 * a-teioed.ads: Correct value of Default_Fill
6712 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6714 2008-03-26 Robert Dewar <dewar@adacore.com>
6716 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6717 with Current_Output (introduce Self).
6719 2008-03-26 Robert Dewar <dewar@adacore.com>
6721 * checks.adb (Ensure_Valid): Capture valid status if possible
6724 2008-03-26 Robert Dewar <dewar@adacore.com>
6726 * stand.ads: Deal with reordering of package standard declarations
6728 * cstand.adb: Put package Standard declarations in proper order
6730 2008-03-26 Robert Dewar <dewar@adacore.com>
6732 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6733 (Pragma_Identifier (.. instead.
6734 (OK_To_Reorder_Components): New flag
6735 (Has_Entries): Code cleanup.
6736 (Warnings_Off_Used): New flag
6737 (Warnings_Off_Used_Unmodified): New flag
6738 (Warnings_Off_Used_Unreferenced): New flag
6739 (Has_Warnings_Off): New function
6740 (Has_Unmodified): New function
6741 (Has_Unreferenced): New function
6742 (Is_Trivial_Subprogram): New flag
6743 (Is_Static_Dispatch_Table_Entity): New attribute.
6744 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6745 (more consistent with other similar names)
6746 (Access_Subprogram_Type): New classification function
6748 2008-03-26 Robert Dewar <dewar@adacore.com>
6750 * errout.ads: Document new !! insertion sequence
6752 * errout.adb (N_Pragma): Chars field removed, use Chars
6753 (Pragma_Identifier (.. instead.
6754 Replace use of Warnings_Off by Has_Warnings_Off
6755 (Error_Msg_Internal): Don't delete warning ending in !!
6757 2008-03-26 Robert Dewar <dewar@adacore.com>
6759 * par.adb (Check_No_Right_Paren): Removed no longer used
6761 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6762 (Pragma_Identifier (.. instead.
6764 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6766 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6767 par-ch4.adb: Minor improvements in error recovery and messages.
6769 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6772 * par-ch9.adb: Minor improvements in error recovery and messages
6773 (P_Protected): Better error recovery for "protected type x;"
6775 * par-util.adb: Minor improvements in error recovery and messages
6776 (Check_No_Right_Paren): Removed no longer used
6778 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6780 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6781 that the prefix of an attribute is the type of the aggregate being
6784 2008-03-26 Javier Miranda <miranda@adacore.com>
6785 Robert Dewar <dewar@adacore.com>
6787 * exp_attr.adb (N_Pragma): Chars field removed.
6788 (Expand_N_Attribute_Reference): If the designated type associated with
6789 attribute 'Unrestricted_Access is a subprogram entity then replace it
6790 by an E_Subprogram_Type itype.
6791 Implement attribute Old
6793 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6795 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6797 New_Internal_Entity by call to Create_Itype to centralize calls
6798 building itypes, ad propagate the convention of the designated
6799 subprogram. In addition, disable the machinery cleaning constant
6800 indications from all entities in current scope when 'Unrestricted_Access
6801 corresponds with a node initializing a dispatch table slot.
6802 (Analyze_Attribute): Parameterless attributes returning a string or a
6803 type will not be called with improper arguments, so we can remove junk
6804 code that was dealing with this case.
6805 Implement attribute Old
6807 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6808 Add entry for pragma Optimize_Alignment
6809 New standard names Sync and Synchronize
6811 2008-03-26 Robert Dewar <dewar@adacore.com>
6812 Arnaud Charlet <charlet@adacore.com>
6814 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6816 (No_Exception_Propagation_Active): New function.
6817 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6818 Update comments, and review all uses of No_Exception_Propagation, which
6819 are now correct and in sync with what gigi expects.
6821 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6823 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6824 Update comments, and review all uses of No_Exception_Propagation, which
6825 are now correct and in sync with what gigi expects.
6827 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6829 * sem_ch3.adb (Access_Definition): If the access type is the return
6830 result of a protected function, create an itype reference for it
6831 because usage will be in an inner scope from the point of declaration.
6832 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6833 OK_To_Reorder_Components.
6834 (Make_Index): If an overloaded range includes a universal integer
6835 interpretation, resolve to Standard.Integer.
6836 (Analyze_Subtype_Indication): Copy Convention to subtype
6837 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6838 limited an synchronized progenitors in type declaration and private
6839 extension declarations.
6841 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6842 protected subprogram body, determine proper scope from subprogram
6845 2008-03-26 Robert Dewar <dewar@adacore.com>
6847 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6850 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6852 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6853 of a heap allocator for a limited unconstrained function return when
6854 resstriction No_Allocators is active.
6855 (Analyze_Allocator): The restriction No_Allocators is now only checked
6856 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6858 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6859 of a heap allocator for a limited unconstrained function return when
6860 resstriction No_Allocators is active.
6861 (Analyze_Allocator): The restriction No_Allocators is now only checked
6862 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6863 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6864 operands are fixed-point types, the universal_fixed predefined operation
6865 is used, regardless of whether the operand type (s) have a primitive
6866 operation of the same name.
6868 2008-03-26 Javier Miranda <miranda@adacore.com>
6870 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6871 Is_Static_Dispatch_Table
6872 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6873 to Exchange_Declarations to exchange the private and full-view. Bug
6874 found working in this issue.
6875 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6876 to the subprogram pointer type.
6877 (Make_Secondary_DT): Replace generation of Prim'Address by
6878 Address (Prim'Unrestricted_Access)
6879 (Make_DT): Replace generation of Prim'Address by
6880 Address (Prim'Unrestricted_Access)
6881 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6882 simple call form for single entry.
6883 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6884 tables of predefined primitives).
6885 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6886 predefined primitives.
6887 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6888 access to dispatch tables containing predefined primitives.
6890 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6891 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6893 (Register_Predefined_DT_Entry): Updated to handle the new contents
6894 of attribute Access_Disp_Table (pointers to dispatch tables containing
6895 predefined primitives).
6897 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6899 (Find_Interface_ADT): Updated to skip the new contents of attribute
6900 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6903 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6905 (Set_Convention): Use new function Is_Access_Subprogram_Type
6906 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6907 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6910 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6911 expanded code avoiding calls to Build_Predef_Prims.
6912 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6913 call to Build_Get_Predefined_Prim_Op_Address.
6915 2008-03-26 Javier Miranda <miranda@adacore.com>
6917 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6918 subprogram Corresponding_Runtime_Package to know the runtime package
6919 that will provide support to a given protected type.
6921 * exp_ch9.adb (Add_Private_Declarations,
6922 Build_Protected_Subprogram_Call,
6923 Build_Protected_Entry, Build_Simple_Entry_Call,
6924 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6925 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6926 cleanup using the new centralized subprogram Corresponding_Runtime
6927 Package to know the runtime package that provides support to
6928 a given protected type.
6930 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6932 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6933 assignment is within the initialization procedure for a packed array,
6934 and Initialize_Scalars is enabled, compile right-hand side with checks
6935 off, because the value is purposely out of range.
6937 2008-03-26 Vincent Celier <celier@adacore.com>
6939 * gnatcmd.adb: Add processing for GNAT SYNC
6941 * vms_conv.ads: (Command_Type): Add command Sync
6943 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6945 * vms_data.ads: Add entries for -gnatw.w
6946 Add qualifier for gnatstub --header-file option
6947 Add switches for GNAT SYNC
6949 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6950 (Add_Package_Name): New procedure
6951 (Package_Name_List): New function
6952 (Initialize): Add known package names to the list
6953 (Register_New_Package): Add the new package name to the list
6955 2008-03-26 Robert Dewar <dewar@adacore.com>
6957 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6958 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6959 Raise_Exception by "raise with" construct.
6961 2008-03-26 Pascal Obry <obry@adacore.com>
6963 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6964 supported platforms.
6966 * Makefile.rtl: Add g-sercom.o.
6968 * impunit.adb: Add g-sercom.adb.
6970 * s-crtl.ads (open): New routine.
6974 * s-osinte-mingw.ads (BYTE): New type.
6976 (OVERLAPPED): Likewise.
6977 (GENERIC_READ): New constant.
6978 (GENERIC_WRITE): Likewise.
6979 (OPEN_EXISTING): Likewise.
6980 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6982 (CreateFile): New routine.
6983 (WriteFile): Likewise.
6984 (ReadFile): Likewise.
6985 (CloseHandle): Move next to the other file oriented routines.
6987 * g-sercom.ads: New unit.
6989 * g-sercom.adb: Default implementation, calls to this unit will raise
6990 a program error exception.
6992 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6993 GNU/Linux implementations.
6995 2008-03-26 Robert Dewar <dewar@adacore.com>
6997 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6999 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
7000 unchecked conversion for different conventions only for subprogram
7003 2008-03-26 Vincent Celier <celier@adacore.com>
7005 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
7006 to check if the specified object file is correct.
7008 2008-03-26 Thomas Quinot <quinot@adacore.com>
7010 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
7011 Comes_From_Source to exclude primitives from being checked. We want to
7012 exclude predefined primitives only, so use the appropriate specific
7013 predicate. Also, flag a formal parameter of an anonymous
7014 access-to-subprogram type as illegal for a primitive operation of a
7015 remote access to class-wide type.
7017 2008-03-26 Vincent Celier <celier@adacore.com>
7019 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
7020 known, check if it may be a missspelling of a known package name. In
7021 not verbose, not mode, issue warnings only if the package name is a
7022 possible misspelling.
7023 In verbose mode, always issue a warning for a not known package name,
7024 plus a warning if the name is a misspelling of a known package name.
7026 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
7027 limited withs or limited withs are parse during one call.
7028 (Parse_Single_Project): Post parse context clause in two passes: non
7029 limited withs before current project and limited withs after current
7032 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
7033 project with the name With_Name, even if it is only extended indirectly.
7034 (Recursive_Process): Process projects in order: first single withs, then
7035 current project, then limited withs.
7037 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
7038 project with the name With_Name, even if it is only extended indirectly.
7040 2008-03-26 Robert Dewar <dewar@adacore.com>
7042 * scn.adb (Initialize_Scanner): Format messages belong on standard error
7044 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7046 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
7047 a generic subprogram that is imported, do not attempt to compile
7050 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7051 imported, do not generate a raise_program_error for the non-existent
7053 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7054 perform minimal name resolution on the generic to avoid spurious
7056 (Find_Actual_Type): the designated type of the actual in a child unit
7057 may be declared in a parent unit without being an actual.
7059 2008-03-26 Robert Dewar <dewar@adacore.com>
7061 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7062 * sinfo.ads, sinfo.adb (From_At_End): New flag
7064 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7066 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7067 operations that have an interface parameter.
7068 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7069 Don't treat No_Return call as raise.
7071 * sem_disp.adb (Check_Dispatching_Operations): apply check for
7072 non-primitive interface primitives to access parameters, not to all
7073 parameters of an access type.
7075 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7077 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7078 declarations of a parent unit are made visible when compiling a child
7079 instance, the parent is not a hidden open scope, even though it may
7080 contain other pending instance.
7082 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7083 hidden open scope for some child instance, it does affect the
7084 visibility status of other stach entries.
7085 (Analyze_Object_Renaming): Check that a class-wide object cannot be
7086 renamed as an object of a specific type.
7088 2008-03-26 Robert Dewar <dewar@adacore.com>
7090 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7091 recursion and raise SE directly.
7092 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7093 set for formal type for IN mode parameter.
7095 2008-03-26 Robert Dewar <dewar@adacore.com>
7097 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7098 (Initialize): New procedure
7099 (Output_Warnings_Off_Warnings): New procedure
7100 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7101 (Output_Non_Modifed_In_Out_Warnings): Ditto
7102 (Warn_On_Unreferenced_Entity): Ditto
7104 2008-03-26 Vincent Celier <celier@adacore.com>
7106 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7109 2008-03-26 Matthew Heaney <heaney@adacore.com>
7111 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7112 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7113 Marked with clauses as private, and controlled operations as overriding
7115 2008-03-26 Robert Dewar <dewar@adacore.com>
7117 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7119 2008-03-26 Robert Dewar <dewar@adacore.com>
7121 * back_end.adb, back_end.ads: Minor reformatting
7123 * bindgen.adb: Minor clarification of comments
7125 * fname.ads: Minor comment fixes
7127 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7128 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7130 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7131 xsnames.adb: Remove warnings off pragma no longer needed
7133 * a-catizo.ads, a-calari.ads, a-calfor.adb,
7134 a-calfor.ads: Fix header.
7136 2008-03-26 Tristan Gingold <gingold@adacore.com>
7138 * init.c: Do not adjust pc for HPARITH on alpha/vms.
7140 2008-03-26 Robert Dewar <dewar@adacore.com>
7142 * lib-xref.adb: (OK_To_Set_Reference): New function
7143 (Generate_Reference): Don't set referenced from occurrence in Warnings,
7144 Unmodified, or Unreferenced pragma
7146 2008-03-26 Robert Dewar <dewar@adacore.com>
7148 * alloc.ads: Add entries for Warnings_Off_Pragmas table
7150 2008-03-26 GNAT Script <nobody@adacore.com>
7152 * Make-lang.in: Makefile automatically updated
7154 2008-03-26 Robert Dewar <dewar@adacore.com>
7156 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7157 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7158 removed, use Chars (Pragma_Identifier (.. instead, adjustments
7159 throughout to accomodate this change.
7161 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7163 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7164 Einfo.Set_Needs_Debug_Info)
7166 2008-03-26 Robert Dewar <dewar@adacore.com>
7168 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7169 Add description for the new gnatstub option '--header-file'
7170 clarification of -gnatwz/-gnatwZ
7171 Add a "Irix-Specific Considerations" section to document the need to
7172 set LD_LIBRARY_PATH when using the default shared runtime library.
7173 Added documentation for both gcov and gprof.
7175 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7176 messages that are not suppressed when clients are compiled.
7177 Add documentation of s-pooglo s-pooloc
7178 Document the new GNAT.Serial_Communications API.
7179 Add documentation for 'Old attribute
7180 Add description of pragma Optimize_Alignment
7182 * ug_words: Add entries for -gnatw.w -gnatw.W
7184 * usage.adb: Add line for -gnatw.w (warn on warnings off)
7186 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7189 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7191 * decl.c (maybe_pad_type): Avoid padding an integral type when
7192 bumping its alignment is sufficient.
7194 2008-03-25 Arnaud Charlet <charlet@adacore.com>
7196 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7197 Fix wrong formatting (lines too long)
7199 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7201 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7202 a-calend-vms.adb, a-calend.adb, a-calend.ads,
7203 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7204 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7205 a-cohama.ads, a-comlin.ads, a-coorse.adb,
7206 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7207 a-except-2005.ads, a-except.adb, a-except.ads,
7208 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7209 a-exextr.adb, a-filico.ads, a-finali.ads,
7210 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7211 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7212 a-sequio.ads, a-strbou.ads, a-strfix.adb,
7213 checks.adb, exp_ch3.adb, exp_ch4.adb,
7214 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7215 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7216 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7217 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7218 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7220 2008-03-24 Robert Dewar <dewar@adacore.com>
7222 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7223 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7224 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7225 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7226 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7227 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7228 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7229 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7230 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7231 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7232 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7233 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7234 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7235 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7236 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7237 double spaced if it fits on one line and otherwise single spaced.
7239 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7241 PR documentation/15479
7242 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7243 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7244 (doc/gnat_ugn.info): Renamed from ...
7245 (doc/gnat_ugn_unw.info): ... this.
7246 (doc/gnat_ugn.dvi): Renamed from ...
7247 (doc/gnat_ugn_unw.dvi): ... this.
7248 (doc/gnat_ugn.pdf): Renamed from ...
7249 (doc/gnat_ugn_unw.pdf): ... this.
7250 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7252 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7253 unconditionally to gnat_ugn.info. Fix cross references to the
7254 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7255 and GNU make manuals to be proper texinfo links.
7256 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7258 2008-03-21 Olivier Hainque <hainque@adacore.com>
7260 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7261 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7263 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7265 * trans.c (addressable_p): Add notes on addressability issues.
7267 2008-03-21 Olivier Hainque <hainque@adacore.com>
7268 Ed Schonberg <schonberg@adacore.com>
7270 * trans.c (addressable_p): Accept COND_EXPR when both arms
7272 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7273 (call_to_gnu): Do not use name reference in the error message
7274 for a misaligned by_reference_parameter. The actual may be a
7277 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7279 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7281 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7283 * gnat_rm.texi (Implementation Defined Characteristics)
7284 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7286 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7287 (Switches for gnatchop, Installing a library): Likewise.
7289 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7291 * trans.c (emit_range_check): Do not emit the check if the base type
7292 of the expression is the type against which its range must be checked.
7294 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7296 * decl.c (maybe_pad_type): Use value_factor_p.
7298 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7300 * lang.opt (nostdlib): Move around.
7301 * misc.c (gnat_handle_option): Fix formatting.
7302 (gnat_dwarf_name): Move around.
7303 * trans.c (Case_Statement_to_gnu): Fix formatting.
7304 (gnat_to_gnu): Likewise.
7305 * utils.c (aggregate_type_contains_array_p): Likewise.
7306 (create_subprog_decl): Likewise.
7308 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7310 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7311 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7313 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7315 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7316 BIGGEST_ALIGNMENT when capping the alignment of records with
7317 strict alignment and size clause.
7319 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7321 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7322 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7323 and -Wuninitialized.
7324 (gnat_post_options): Clear warn_unused_parameter.
7326 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7328 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7329 aligned bit-fields, bumping the alignment of the record type if deemed
7331 (value_factor_p): Return false instead of 0.
7333 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7335 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7336 for scalar types with small alignment.
7338 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7340 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7341 from that of the front-end's end label.
7342 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7343 from that of the loop label.
7345 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7347 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7348 comment for the packed array type case.
7349 * utils.c (build_template): Use a loop to strip padding or
7350 containing records for justified modular types.
7352 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7354 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7355 large alignments specified for types.
7356 (validate_alignment): Minor cleanup.
7358 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7360 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7361 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7362 the component for packing, if possible, as well as if a component
7363 size clause is specified.
7364 <E_Record_Subtype>: For an array type used to implement a packed
7365 array, get the component type from the original array type.
7366 Try to get a smaller form of the component for packing, if possible,
7367 as well as if a component size clause is specified.
7368 (round_up_to_align): New function.
7369 (make_packable_type): Add in_record parameter.
7370 For a padding record, preserve the size. If not in_record and the
7371 size is too large for an integral mode, attempt to shrink the size
7372 by lowering the alignment.
7373 Ditch the padding bits of the last component.
7374 Compute sizes and mode manually, and propagate the RM size.
7375 Return a BLKmode record type if its size has shrunk.
7376 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7377 Use Original_Array_Type to retrieve the type in case of an error.
7378 Adjust call to make_packable_type.
7379 (gnat_to_gnu_field): Likewise.
7380 (concat_id_with_name): Minor tweak.
7381 * trans.c (larger_record_type_p): New predicate.
7382 (call_to_gnu): Compute the nominal type of the object only if the
7383 parameter is by-reference. Do the conversion actual type -> nominal
7384 type if the nominal type is a larger record.
7385 (gnat_to_gnu): Do not require integral modes on the source type to
7386 avoid the conversion for types with identical names.
7387 (addressable_p): Add gnu_type parameter. If it is specified, do not
7388 return true if the expression is not addressable in gnu_type.
7389 Adjust recursive calls.
7390 * utils.c (finish_record_type): Remove dead code.
7392 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7395 * decl.c (maybe_pad_type): Avoid padding an integral type when
7396 bumping its alignment is sufficient.
7398 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7400 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7401 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7403 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7404 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7405 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7406 code output strings.
7407 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7408 system-vms_64.ads: Fix typos in ada source code comments.
7409 * sinfo-cn.adb: Remove incomplete sentence.
7411 PR documentation/15479
7412 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7414 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7417 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7419 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7422 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7423 that underlying type is present.
7425 2008-02-26 Tom Tromey <tromey@redhat.com>
7427 * misc.c (internal_error_function): Remove test of
7428 USE_MAPPED_LOCATION.
7429 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7430 (Sloc_to_locus): Remove old location code.
7432 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7434 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7435 `i.e.' by adding comma or `@:' as appropriate.
7436 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7437 plain characters `C', use `@samp{C}'.
7438 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7439 (Krunching Method): Likewise.
7441 * gnat_ugn.texi (Conventions): List environment variables and
7442 metasyntactic variables.
7443 (Compiling Programs): Fix notation of metasyntactic variables.
7444 Add @file where appropriate. Use @file for file extensions,
7446 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7447 instead of @file, @env instead of @code.
7449 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7451 PR documentation/15479
7452 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7453 and `...' with `@dots{}' or `@enddots{}'.
7455 PR documentation/15479
7456 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7457 use @command instead of @code, @option instead of @samp or @code,
7458 @code instead of @var, @samp instead of @file.
7460 PR documentation/15479
7461 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7462 in Makefile rules, by using `&&' rather than `;'.
7464 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7466 PR documentation/15479
7467 * gnat_ugn.texi: In non-code, avoid space before colon.
7468 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7469 (Examples of gnatxref Usage): Use @command{vi} instead of
7471 (Character Set Control): Do not use @code for UTF-8.
7472 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7474 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7476 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7478 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7481 * env.c: Add __rtems__ to if defined.
7482 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7483 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7484 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7485 pragma Convention as required.
7486 * gsocket.h: Make compile in and out of RTS.
7487 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7488 Use g-soccon-rtems.ads.
7489 * g-soccon-rtems.ads, system-rtems.ads: New files.
7491 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7494 * Make-lang.in (gnat1): Add $(GMPLIBS).
7496 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7498 * decl.c (components_to_record): Improve comment.
7500 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7502 * decl.c (components_to_record): Do not reuse the empty union type
7503 if there is a representation clause on the record.
7504 * trans.c (addressable_p): Return true for INTEGER_CST.
7506 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7508 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7509 in pointer arithmetics.
7510 * utils2.c (build_allocator): Likewise.
7512 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7514 * utils.c (build_function_stub): Properly build the call expression.
7516 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7518 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7519 before converting the expression to the type of the object.
7520 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7521 Stabilize constructors for special wrapping types.
7523 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7525 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7526 when necessary. Merge some conditional statements. Update comments.
7527 Rename unchecked_convert_p local variable to suppress_type_conversion.
7528 Do not suppress conversions in the In case.
7529 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7530 into account on non strict-alignment platforms.
7532 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7534 * utils.c (aggregate_type_contains_array_p): New predicate.
7535 (create_field_decl): In a packed record, force byte alignment
7536 for fields without specified position that contain an array.
7538 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7540 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7542 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7545 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7547 (bit_field): New packed boolean type used by cpu_set_t.
7548 (cpu_set_t): New type corresponding to the C type with
7549 the same name. Note that on the Ada side we use a bit
7550 field array for the affinity mask. There is not need
7551 for the C macro for setting individual bit.
7552 (pthread_setaffinity_np): New imported routine.
7554 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7557 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7558 on OpenBSD as is done on other BSD systems.
7561 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7562 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7566 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7570 * init.c (__gnat_error_handler, __gnat_install_handler,
7571 __gnat_init_float): Define for OpenBSD.
7573 * initialize.c (__gnat_initialize): Define for OpenBSD.
7575 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7578 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7579 instead of mktemp() or tmpnam() on NetBSD.
7581 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7583 * trans.c (call_to_gnu): Make the temporary for non-addressable
7584 In parameters passed by reference.
7585 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7587 2007-12-19 Robert Dewar <dewar@adacore.com>
7589 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7590 Add pragma Warnings (Off) for unassigned IN OUT arguments
7592 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7593 (Check_References): Extensive changes to tune up warnings
7594 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7595 (Has_Pragma_Unmodifed_Check_Spec): New function
7596 (Check_References): Implement pragma Unmodified
7597 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7599 * par-prag.adb: Dummy entry for pragma Unmodified
7601 * sem_prag.adb: Implement pragma Unmodified
7603 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7604 (Proc_Next_Component_Or_Discriminant): Fix typo.
7607 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7609 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7610 because the former already takes care of discarding the result.
7611 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7614 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7616 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7618 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7619 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7620 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7621 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7622 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7623 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7624 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7625 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7626 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7627 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7628 (Dynamic_Trampolines_Used): Delete.
7630 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7631 Turn on stack probing mechanism on LynxOS.
7633 2007-12-19 Bob Duff <duff@adacore.com>
7635 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7636 the resulting tail recursion by hand. This prevents running out of
7637 memory on deeply nested concatenations, since Field2 is where the left
7638 operand of concatenations is stored.
7639 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7640 clarify that it can only return OK or Abandon.
7642 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7643 operand by iteration, in order to avoid running out of memory on
7644 deeply-nested concatenations. Use the Parent pointer to get back up the
7646 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7647 Resolve_Op_Concat_Rest): New procedures split out of
7648 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7651 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7652 Traverse_Func, because the former already takes care of discarding the
7655 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7656 because the former already takes care of discarding the result.
7657 (Remove_Warning_Messages): Use appropriate subtype for Status and
7660 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7662 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7663 discriminants forces expansion of the aggregate into assignments.
7664 (Init_Record_Controller): If the type of the aggregate is untagged and
7665 is not inherently limited, the record controller is not limited either.
7667 2007-12-19 Robert Dewar <dewar@adacore.com>
7669 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7670 handling compile time known size of record or array (case of front end
7671 layout active, e.g. in GNAAMP).
7673 2007-12-19 Javier Miranda <miranda@adacore.com>
7675 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7676 that forces the construction of static dispatch tables in case of
7679 2007-12-19 Robert Dewar <dewar@adacore.com>
7681 * exp_ch9.adb (Null_Statements): Moved to library level
7682 (Trivial_Accept_OK): New function
7683 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7684 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7686 2007-12-19 Robert Dewar <dewar@adacore.com>
7688 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7689 in complex case where array is Volatile.
7691 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7693 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7694 properly the Ada2005 rules concerning when the current instance of a
7695 record type is aliased.
7697 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7699 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7701 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7703 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7705 2007-12-19 Vincent Celier <celier@adacore.com>
7707 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7708 package is not known
7710 * prj-attr.ads (Unknown_Package): New constant
7711 Do not crash when an unknown package is in several projects
7713 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7716 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7717 existing package Language_Processing.
7719 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7720 Gary Dismukes <dismukes@adacore.com>
7721 Samuel Tardieu <sam@rfc1149.net>
7723 PR ada/15803, ada/15805
7724 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7725 illegal access subtypes when there is a constrained partial view.
7726 (Check_For_Premature_Usage): New procedure inside
7727 Access_Subprogram_Declaration for checking that an access-to-subprogram
7728 type doesn't reference its own name within any formal parameters or
7729 result type (including within nested anonymous access types).
7730 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7731 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7732 context is an access_to_variable, the expression cannot be an
7735 2007-12-19 Bob Duff <duff@adacore.com>
7737 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7738 (Analyze_Concatenation): Use iteration instead of recursion in order
7739 to avoid running out of stack space for deeply nested concatenations.
7741 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7742 Gary Dismukes <dismukes@adacore.com>
7744 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7745 whose renamed entity is a subprogram that requires overriding.
7746 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7747 issuing an error for premature usage and issue a message that says
7748 'type' rather than 'object'.
7750 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7753 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7754 presence of a statically tagged operand (Present (Static_Tag)) with
7755 test for Indeterm_Ancestor_Call when determining whether to propagate
7756 the static tag to tag-indeterminate operands (which forces dispatching
7758 (Check_Controlling_Formals): Ada2005, access parameters can have
7760 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7761 not insert subprogram in list of primitive operations if already there.
7763 2007-12-19 Tristan Gingold <gingold@adacore.com>
7765 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7768 2007-12-19 Thomas Quinot <quinot@adacore.com>
7770 Part of PR ada/33688
7771 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7772 datagram info on Linux.
7774 2007-12-19 Vincent Celier <celier@adacore.com>
7776 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7777 that the source path name is always found in the dependencies.
7779 2007-12-19 Robert Dewar <dewar@adacore.com>
7781 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7782 Fix name of Wide_Wide_Latin_1/9 file names
7783 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7784 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7785 Add missing documentation for Ada.Command_Line.Response_File
7786 Update list of warning letters for Warnings pragma
7787 Add documentation for pragma Unmodified
7789 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7791 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7793 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7795 * s-vxwork-alpha.ads: Removed, no longer used.
7797 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7799 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7801 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7804 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7805 mlib-tgt-specific.adb.
7807 2007-12-13 Bob Duff <duff@adacore.com>
7809 * trans.c (Attribute_to_gnu): Check for violations of the
7810 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7811 the front end, but is moved here so we can make it more accurate.
7813 2007-12-13 Pascal Obry <obry@adacore.com>
7815 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7816 version is provided for older GNU/Linux distribution not
7817 supporting thread affinity sets.
7819 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7821 (bit_field): New packed boolean type used by cpu_set_t.
7822 (cpu_set_t): New type corresponding to the C type with
7823 the same name. Note that on the Ada side we use a bit
7824 field array for the affinity mask. There is not need
7825 for the C macro for setting individual bit.
7826 (pthread_setaffinity_np): New imported routine.
7828 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7830 (Create_Task): Set the processor affinity mask if information
7833 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7835 2007-12-13 Robert Dewar <dewar@adacore.com>
7837 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7838 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7839 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7840 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7841 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7842 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7843 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7844 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7845 for subprogram pointers.
7847 * g-ctrl_c.adb: New file.
7849 * g-ctrl_c.ads (Install_Handler): New body.
7851 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7852 instead of obsolete function Is_Always_Inlined.
7853 (Freeze_Entity): check for tagged type in imported C subprogram
7854 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7855 (Freeze_Entity): check for convention Ada subprogram pointer in
7856 imported C subprogram.
7857 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7858 bound would be chopped off and go from negative to zero, force
7859 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7860 bound) so that the size computation for the base type will take
7861 negative values into account.
7863 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7864 Bob Duff <duff@adacore.com>
7865 Tristan Gingold <gingold@adacore.com>
7867 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7868 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7869 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7870 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7871 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7872 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7873 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7874 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7875 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7876 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7877 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7878 (Always_Compatible_Rep): New flag to control trampolines globally.
7879 (Dynamic_Trampolines_Used): New flag for implementing the
7880 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7881 and not yet set correctly for some targets).
7883 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7884 Simply indirectly call s-stchop when a task is created.
7887 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7888 appears as an argument (entries A) in an ALI file.
7890 * fe.h (Stack_Check_Limits): Declare new target parameter.
7891 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7893 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7894 This variable is declared in C to be sure not subject to elaboration
7896 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7899 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7900 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7902 * s-stchop.ads: Add comments.
7904 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7905 limit method of stack checking.
7907 * s-stchop-limit.ads: New file.
7909 2007-12-13 Robert Dewar <dewar@adacore.com>
7911 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7912 a-cihama.adb, g-awk.adb,
7913 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7916 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7918 * sem.adb: Update handling of assigned value/unreferenced warnings
7920 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7922 * lib-xref.ads: Improve documentation for k xref type
7925 Update handling of assigned value/unreferenced warnings
7926 (Generate_Reference): Warning for reference to entity for which a
7927 pragma Unreferenced has been given should be unconditional.
7928 If the entity is a discriminal, mark the original
7929 discriminant as referenced.
7931 * sem_warn.ads, sem_warn.adb
7932 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7933 no entities referenced in package
7934 (Check_One_Unit): Don't give message about no entities referenced in
7935 a package if a pragma Unreferenced has appeared.
7936 Handle new warning flag -gnatw.a/-gnatw.A
7937 Update handling of assigned value/unreferenced warnings
7939 * atree.h: Add flags up to Flag247
7940 (Flag231): New macro.
7942 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7944 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7946 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7949 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7950 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7951 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7952 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7955 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7957 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7958 since we only have problems with Windows 95/98, which are not
7960 (__gnat_ttyname): Return the empty string on Nucleus, just as
7963 2007-12-13 Robert Dewar <dewar@adacore.com>
7965 * a-textio.adb, a-textio.ads:
7966 Extensive changes to private part for wide character encoding
7968 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7969 (Look_Ahead): Fix mishandling of encoded sequences
7970 Move declaration of Wch_Con to private part (should not be visible)
7972 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7973 UTF-8. Probably this is never used, but if it is, brackets is
7976 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7977 setting wide character encoding for no main program case and when
7978 encoding is specified using -W?
7979 Initialize stack limit of environment task if stack limit method of
7980 stack checking is enabled.
7981 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7982 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7983 (Get_Main_Unit_Name): New function.
7984 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7985 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7987 * bindusg.adb: Add line for -Wx switch
7989 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7991 Add new useful constant WC_Longest_Sequences
7993 * switch-b.adb: Clean up handling of -Wx switch
7994 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7996 * switch-c.adb: -gnatg activates warning on assertion errors
7997 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7999 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
8001 2007-12-13 Robert Dewar <dewar@adacore.com>
8002 Ed Schonberg <schonberg@adacore.com>
8004 * a-ngcoty.adb: New pragma Fast_Math
8006 * opt.adb: New pragma Fast_Math
8009 Add Implemented_By_Entry to the list of pragmas which do not require any
8011 (Favor_Top_Level): New pragma.
8012 New pragma Fast_Math
8014 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
8015 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8016 Expand_Allocator_Expression): Take into account VM_Target
8017 (Expand_Attribute, case 'Identity): Handle properly the case where
8018 the prefix is a task interface.
8019 New pragma Fast_Math
8021 * par.adb (Next_Token_Is): New function
8022 (P_Pragma): Add Skipping parameter
8023 (U_Left_Paren): New procedure
8024 (U_Right_Paren): New procedure
8025 New pragma Fast_Math
8027 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
8029 New pragma Fast_Math
8031 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
8032 Implemented_By_Entry.
8033 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
8034 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
8035 items, since it can apply to more than one overloadable entity. Set
8036 new flag Has_Pragma_Inline_Always for Inline_Always case.
8037 (Analyze_Pragma, case Complex_Representation): Improve error message.
8038 (Analyze_Pragma, case Assert): When assertions are disabled build the
8039 rewritten code with Sloc of expression rather than pragma, so new
8040 warning about failing is not deleted.
8041 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
8042 protected types and update error message to reflect that. Test whether
8043 the protected type is allowed for the pragma (an error is issued if the
8044 type has any entries, or components that do not have preelaborable
8046 New pragma Fast_Math
8047 (Analyze_Pragma, case No_Return): Handle generic instance
8049 * snames.h, snames.ads, snames.adb:
8050 Add new predefined name for interface primitive _Disp_Requeue.
8051 New pragma Fast_Math
8053 * a-tags.ads, a-tags.adb: New calling sequence for
8054 String_To_Wide_[Wide_]String
8055 (Secondary_Tag): New subprogram.
8057 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8059 New calling sequence for String_To_Wide_[Wide_]String
8060 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8061 the use of the secondary stack for image routines.
8063 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8064 calling sequence for String_To_Wide_[Wide_]String
8066 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8068 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8069 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8071 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8072 (P_Formal_Part): Use Skipping parameter in P_Pragma call
8073 to improve error recovery
8075 * par-util.adb (Next_Token_Is): New function
8076 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8078 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8079 semicolon if missing
8080 (P_Pragma): Implement new Skipping parameter
8081 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8082 Fix location of flag for unrecognized pragma message
8084 * par-tchk.adb (U_Left_Paren): New procedure
8085 (U_Right_Paren): New procedure
8087 2007-12-13 Geert Bosch <bosch@adacore.com>
8090 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8091 the second or later Scaled_Divide would omit leading zeroes,
8092 resulting in too few digits produced and a Layout_Error as result.
8093 (Put): Initialize Pos.
8095 2007-12-13 Robert Dewar <dewar@adacore.com>
8097 atree.ads, atree.adb (Flag231..Flag247): New functions
8098 (Set_Flag231..Set_Flag247): New procedures
8099 (Basic_Set_Convention): Rename Set_Convention to be
8100 Basic_Set_Convention
8101 (Nkind_In): New functions
8102 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8104 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8106 of obsolete function Is_Always_Inlined
8107 (Register_Predefined_DT_Entry): Initialize slots of the second
8108 secondary dispatch table.
8109 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8110 (Expand_N_Function_Call): Remove special provision for stack checking.
8112 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8113 Include _Disp_Requeue in the list of predefined operations.
8114 (Find_Interface_ADT): Modified to fulfill the new specification.
8115 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8117 * par-ch4.adb, nlists.ads, nlists.adb:
8118 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8120 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8121 Fix location of flag for unrecognized pragma message
8123 * sem_ch7.adb: Use Nkind_In
8125 2007-12-13 Vincent Celier <celier@adacore.com>
8128 Indicate what flags are used by the Project Manager, gprbuild and
8130 (Opt.Follow_Links_For_Dirs): New flag
8131 (Warn_On_Assertion_Failure): New flag
8132 (Wide_Character_Encoding_Method_Specified): New flag
8133 (Suppress_All_Inlining): New switch set by -fno-inline
8134 (Real_VMS_Target): New flag
8135 New pragma Fast_Math
8137 2007-12-13 Robert Dewar <dewar@adacore.com>
8139 * back_end.adb: Recognize -fno-inline
8141 2007-12-13 Robert Dewar <dewar@adacore.com>
8143 * checks.adb: Fix optimization problem with short-circuited form
8145 2007-12-13 Bob Duff <duff@adacore.com>
8147 * clean.adb (Usage): Add line for -aP
8148 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8149 with a parameter "procedure Usage", instead of passing a pointer to a
8150 procedure. This is to eliminate trampolines (since the Usage procedure
8151 is often nested in a main procedure, and it would be inconvenient to
8154 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8155 to be generic, with a parameter "procedure Callback (...)", instead of
8156 passing a pointer to a procedure. This is to eliminate trampolines
8157 (since the Callback procedure is usually nested).
8159 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8160 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8161 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8163 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8164 Use the generic Heap_Sort_G instead of Heap_Sort_A.
8166 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8168 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8169 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8170 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8171 (Renamed_In_Spec): New flag
8172 (Has_Pragma_Inline_Always): New flag
8173 Add missing doc for pragma Obsolescent_Warning
8174 Add missing doc for 17 additional unused flags (230-247)
8175 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8176 Alphabetize with clauses.
8177 Separate Is_Thunk and Has_Thunks flags
8178 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8179 (Related_Interface): Renamed to Related_Type.
8180 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8181 (Set_Is_Flag): Restrict the assertion.
8183 2007-12-13 Vincent Celier <celier@adacore.com>
8185 * errout.adb (Output_Source_Line): Do not keep a trailing space after
8186 the source line number if the source line is empty.
8188 2007-12-13 Geert Bosch <bosch@adacore.com>
8190 * eval_fat.adb (Decompose_Int): Handle argument of zero.
8191 (Compose): Remove special casing of zero.
8192 (Exponent): Likewise.
8193 (Fraction): Likewise.
8194 (Machine): Likewise.
8195 (Decompose): Update comment.
8197 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8199 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8200 limited ancestor part, initialize controllers of enclosing record
8201 before expanding ancestor aggregate.
8202 (Gen_Assign): If a component of the aggregate is box-initialized, add
8203 code to call Initialize if the component is controlled, and explicit
8204 assignment of null if the component is an access type.
8206 Handle properly aggregates for limited types that appear in object
8207 declarations when the aggregate contains controlled values such as
8209 When expanding limited aggregates into individual components, do not
8210 call Adjust on controlled components that are limited.
8212 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8214 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8216 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8218 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8219 predefined primitive _Disp_Requeue.
8220 (Make_Predefined_Primitive_Specs): Create the spec for predefined
8221 primitive _Disp_Requeue.
8222 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8223 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8224 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8225 an interface type. In case of limited interfaces we now declare all the
8226 predefined primitives associated with synchronized interfaces as
8228 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8230 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8231 tagged type is an interface type and there is no user-defined equality
8233 Add also bodies of predefined primitives associated with synchronized
8235 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8236 interface types because they are now defined abstract.
8237 Add missing documentation.
8238 (Expand_Record_Controller): Update occurrence of Related_Interface
8240 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8241 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8242 class wide interface object declaration.
8243 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8244 if the access type already has one.
8245 (Expand_N_Object_Declaration): Defend against attempt to validity check
8246 generic types. Noticed for -gnatVcf specified with previous errors.
8248 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8250 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8251 Expand_Allocator_Expression): Take into account VM_Target
8253 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8254 secondary stack when VM_Target /= No_VM
8256 2007-12-13 Javier Miranda <miranda@adacore.com>
8257 Ed Schonberg <schonberg@adacore.com>
8259 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8260 Is_Complation_Unit by Is_Library_Level_Entity in the code
8261 that decides if the static dispatch tables need to be built.
8262 (Wrap_Transient_Declaration): Do not generate a finalization call if
8263 this is a renaming declaration and the renamed object is a component
8264 of a controlled type.
8266 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8268 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8269 In the case where the renamed subprogram is a dereference, call
8270 Force_Evaluation on the prefix.
8272 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8273 Ed Schonberg <schonberg@adacore.com>
8275 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8276 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8277 comment reformatting.
8278 (Set_Privals): Inherit aliased flag from formal. From code reading.
8279 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8280 by copy and initialized from the actual. This includes entry parameters.
8281 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8282 and Ada 2005 models of requeue.
8283 (Null_Statements): Still connsider do-end block null if it contains
8284 Unreferenced and Warnings pragmas.
8285 (Expand_N_Accept_Statement): Do not optimize away null do end if
8286 dispatching policy is other than defaulted.
8287 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8288 dispatching call, manually analyze the delay statement.
8289 (Find_Parameter_Type): Move subprogram to Sem_Util.
8291 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8292 Javier Miranda <miranda@adacore.com>
8294 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8295 _Disp_Requeue occupies dispatch table slot number 15. Move
8296 _Disp_Timed_Select to slot 16.
8297 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8298 generate the spec and body of _Disp_Reqeueue.
8299 (Make_DT): Build and initialize the second dispatch table.
8300 Handle initialization of RC_Offset when the parent
8301 is a private type with variable size components.
8302 (Make_Secondary_DT): Complete documentation. Add support to
8303 initialize the second dispatch table.
8304 (Make_Tags): Generate the tag of the second dispatch table.
8305 (Register_Primitive): Add support to register primitives in the
8306 second dispatch table.
8308 2007-12-13 Pascal Obry <obry@adacore.com>
8310 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8311 Windows. This signal is used by gnatmake to kill child processes for
8314 2007-12-13 Javier Miranda <miranda@adacore.com>
8316 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8317 support for generic dispatching constructor calls in which we need to
8318 locate the tag of a secondary dispatch table associated with an
8319 interface type to properly dispatch the call.
8320 (Expand_N_Attribute_Reference [case Address],
8321 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8322 handling of VM targets.
8324 2007-12-13 Robert Dewar <dewar@adacore.com>
8325 Ed Schonberg <schonberg@adacore.com>
8327 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8330 * ug_words: Add entries for -gnatw.a -gnatw.A
8332 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8333 literal is a subtype with non-static constraints, use the base type of
8334 the context as the base of the string subtype, to prevent type
8336 (Resolve_Actuals): If the actual is an entity name, generate a
8337 reference before the actual is resolved and expanded, to prevent
8338 spurious warnings on formals of enclosing protected operations.
8339 (Analyze_Overloaded_Selected_Component): If type of prefix if
8340 class-wide, use visible components of base type.
8341 (Resolve_Selected_Component): Ditto.
8342 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8343 evaluating to False, and issue warning message.
8345 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8347 2007-12-13 Emmanuel Briot <briot@adacore.com>
8349 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8352 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8354 (Month_Name_To_Number): New subprogram
8356 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8357 letter to upper-case.
8359 2007-12-13 Robert Dewar <dewar@adacore.com>
8360 Ed Schonberg <schonberg@adacore.com>
8362 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8364 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8365 context is a limited view, use non-limited view when available. If the
8366 non-limited view is an unconstrained array, this enforces consistency
8367 requirements in 3.10.2 (27).
8368 (Layout_Type): For an access type whose designated type is a limited
8369 view, examine its declaration to determine if it is an unconstrained
8370 array, and size the access type accordingly.
8371 (Layout_Type): Do not force 32-bits for convention c subprogram
8372 pointers in -gnatdm mode, only if real vms target.
8374 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8375 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8376 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8377 violations of the No_Implicit_Dynamic_Code restriction.
8378 (Resolve_Attribute, case 'Access): If designated type of context is a
8379 limited view, use non-limited view when available. If the non-limited
8380 view is an unconstrained array, this enforces consistency requirements
8382 (Layout_Type): For an access type whose designated type is a limited
8383 view, examine its declaration to determine if it is an unconstrained
8384 array, and size the access type accordingly.
8386 2007-12-13 Vincent Celier <celier@adacore.com>
8388 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8389 object directory of main project does not exist.
8390 On VMS, correctly set then environment variable for the source
8393 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8395 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8396 set to True this procedure will create the value of type REG_EXPAND_SZ.
8397 It was only possible to create REG_SZ values before.
8399 2007-12-13 Robert Dewar <dewar@adacore.com>
8401 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8402 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8403 namet-sp.adb, namet-sp.ads: New files.
8405 * g-speche.adb: Use generic routine in g-spchge
8407 * s-wchcnv.ads, s-wchcnv.adb:
8408 Minor code cleanup (make formal type consistent with spec)
8410 * namet.adb: Update comments.
8412 * par-endh.adb (Evaluate_End_Entry): Use new
8413 Namet.Sp.Is_Bad_Spelling_Of function
8415 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8417 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8418 ancestor is an access type initialized with a box, set its type
8419 explicitly, for use in subsequent expansion.
8420 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8423 2007-12-13 Robert Dewar <dewar@adacore.com>
8425 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8428 2007-12-13 Robert Dewar <dewar@adacore.com>
8430 * inline.adb (Back_End_Cannot_Inline): Use new flag
8431 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8433 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8434 Has_Pragma_Inline_Always instead.
8435 of obsolete function Is_Always_Inlined
8436 (Build_Body_To_Inline): Same change
8437 (Cannot_Inline): Same change
8438 Do not give warning on exception raise in No_Return function
8440 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8441 component has two inconsistent component clauses in the same record
8442 representation clause, favor the message that complains about
8443 duplication rather than inconsistency.
8445 (Record_Representation_Clause): Do not warn on missing component
8446 clauses for inherited components of a type extension.
8447 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8448 an overloadable item if it is a pragma that can apply to multiple
8449 overloadable entities (e.g. Inline) because a pragma cannot be on
8450 more than one chain at a time.
8451 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8452 conversion where one of the operands is Ada.Calendar.Time.
8453 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8454 For now, ignore Component_Size clause on VM targets, as done for
8457 2007-12-13 Emmanuel Briot <briot@adacore.com>
8458 Vincent Celier <celier@adacore.com>
8460 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8462 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8464 (Hash): Move instantiation of System.HTable.Hash from spec to body
8465 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8466 systems, since we do not need to recompute the Name_Id for the canonical
8468 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8469 as a parameter. This parameter is in fact always "ada" in all calls, and
8470 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8471 while loading a project with 40000 files
8473 * prj-attr.adb: Fix name of attribute Dependency_Driver
8474 Change the kind of indexing for attribute Root
8476 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8477 variables already declared, in case constructions.
8479 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8480 Current_Object_Path_File to No_Path.
8482 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8483 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8485 * prj-makr.adb: new parameter Current_Dir
8487 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8488 Ada sources when language is not Ada.
8489 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8490 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8491 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8492 (Locate_Directory): Always resolve links when computing Canonical_Path
8493 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8494 in Source_Files before checking for the presence of a directory
8496 Optimize calls to Name_Find when on case sensitive systems.
8497 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8499 (Prj.Nmsc.Check): new parameter Current_Dir
8500 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8501 cannot be empty and the spec suffix cannot be the same as the body or
8503 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8504 subunit), always consider the longest suffix.
8505 (Check_Configuration): Do not issue an error if there is no compiler
8506 for a language. Just issue a warning and ignore the sources for the
8508 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8510 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8511 (Unit_Exceptions): New hash table
8512 (Check_Naming_Schemes): Check if a file that could be a unit because of
8513 the naming scheme is not in fact a source because there is an exception
8515 (Look_For_Sources): Put the unit exceptions in hash table
8517 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8518 Other_Part to avoid exception when code is compiled with validity
8520 (Get_Sources_From_File): Check that there is no directory information
8522 (Look_For_Sources): Check that there is no directory information in the
8523 list of file names in Source_Files.
8524 (Look_For_Sources): In multi-language mode, do not allow exception file
8525 names that are excluded.
8526 (Excluded_Sources_Htable): New hash table
8527 (Search_Directories.Check_File): New procedure to simplify
8529 (Search_Directories): Do not consider excluded sources
8530 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8532 (Get_Exceptions): Set component Lang_Kind of Source_Data
8533 (Get_Unit_Exceptions): Ditto
8534 (Search_Directories): Ditto
8536 * prj-pars.adb: new parameter Current_Dir
8538 * prj-part.ads, prj-part.adb:
8539 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8540 (Opt.Follow_Links_For_Dirs): New flag
8541 (Project_Path_Name_Of): Cache information returned by this routine as
8542 Locate_Regular_File is a costly routine. The code to output a log
8543 information and the effective call to Locate_Regular_File is now
8544 factorized into a routine (code clean-up).
8545 (Parse, Parse_Single_Project): new parameter Current_Dir
8546 When main project file cannot be found, indicate in the error
8547 message the project path that was used to do the search.
8549 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8550 (Prj.Proc.Process*): new parameter Current_Dir
8552 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8554 2007-12-13 Bob Duff <duff@adacore.com>
8556 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8557 procedure to be called from the back end to check the
8558 No_Implicit_Dynamic_Code restriction.
8560 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8562 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8563 Fixes another case where RTE_Available_Call was ignored instead of being
8567 * rtsfind.ads: Add new entries.
8569 2007-12-13 Robert Dewar <dewar@adacore.com>
8571 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8572 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8574 * scn.adb: Implement BOM recognition
8576 2007-12-13 Thomas Quinot <quinot@adacore.com>
8577 Ed Schonberg <schonberg@adacore.com>
8579 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8580 subprogram body that acts as its own spec may not have a non-private
8581 WITH clause on a private sibling.
8582 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8583 child unit is a renaming, create an implicit with_clause on that
8584 parent, and not on the unit it renames, to prevent visibility errors
8585 in the current unit.
8587 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8589 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8590 renaming declaration, use the Slocs of the formal parameters from the
8591 declaration of the formal subprogram when creating the formal parameter
8592 entities in the renaming declaration.
8593 (Analyze_Formal_Type_Declaration): Change the placement of the error
8594 message concerning illegal known discriminants. It is now posted on the
8595 type rather than on the first discriminant. This change ensures early
8597 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8598 the package body that contains the instance, do not generate an
8599 out-of-place freeze node for the enclosing package.
8600 (Collect_Previous_Instantiations): Ignore internal instantiations
8601 generated for formal packages.
8602 (Validate_Derived_Type_Instance): Add a check that when a formal
8603 derived type is Known_To_Have_Preelab_Init then the actual type must
8604 have preelaborable initialization, and issue an error when this
8605 condition is violated.
8607 2007-12-13 Robert Dewar <dewar@adacore.com>
8609 * s-imenne.adb, s-imenne.ads: New files.
8611 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8612 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8613 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8614 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8615 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8618 2007-12-13 Javier Miranda <miranda@adacore.com>
8619 Ed Schonberg <schonberg@adacore.com>
8621 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8622 generation of spurious error if parent is an interface type; caused
8623 because predefined primitive bodies will be generated later by
8625 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8627 (Derive_Subprograms): Handle derivations of predefined primitives
8628 after all the user-defined primitives to ensure that they are
8629 found in proper order in instantiations.
8630 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8631 of Related_Interface to Related_Type.
8632 (Record_Type_Declaration): Minor reordering of calls to decorate the
8633 Tag component because the entity must have set its Ekind attribute
8634 before setting its Is_Tag attribute.
8635 (Analyze_Subtype_Declaration): In the case of subtypes with
8636 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8638 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8639 Ed Schonberg <schonberg@adacore.com>
8641 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8642 statement to the list of contexts where a selected component with a
8643 concurrent tagged type prefix should yield a primitive operation.
8644 (Find_Primitive_Operation): Handle case of class-wide types.
8645 (Analyze_Overloaded_Selected_Component): If type of prefix is
8646 class-wide, use visible components of base type.
8647 (Resolve_Selected_Component): Ditto.
8648 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8649 formal of a generic subprogram. find candidate interpretations by
8650 scanning the list of generic formal declarations.:
8651 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8652 type from a limited_with_clause, and the full view is available, use it
8653 for subsequent semantic checks.
8654 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8655 (Find_Primitive_Operation): New function.
8656 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8657 only once if several interpretations of the prefix yield an access type.
8658 (Try_Object_Operation): Code and comment cleanup.
8659 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8660 code reformatting. When the type of the prefix is tagged concurrent, a
8661 correct interpretation might be available in the primitive and
8662 class-wide operations of the type.
8664 2007-12-13 Robert Dewar <dewar@adacore.com>
8665 Ed Schonberg <schonberg@adacore.com>
8667 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8668 renaming entry as subprogram using rename-as-body if subprogram spec
8670 (Use_One_Type): The clause is legal on an access type whose designated
8671 type has a limited view.
8672 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8673 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8674 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8675 operation denoted by a selected component.
8676 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8677 it can be an expression, possibly overloaded, that returns a task or
8680 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8681 Gary Dismukes <dismukes@adacore.com>
8683 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8684 requeue statement is dispatching. Do not emit an error when the name is
8685 not an entry and the context is a dispatching select. Add code to
8686 perform subtype conformance between the formals of the current entry
8687 and those of the target interface primitive.
8688 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8689 Timed_Entry_Call): Analyze the triggering statement as the first step of
8690 the processing. If this is a dispatching select, postpone the analysis
8691 of all select statements until the Expander transforms the select. This
8692 approach avoids generating duplicate identifiers after the Expander has
8693 replicated some of the select statements. In case the Expander is
8694 disabled, perform regular analysis.
8695 (Check_Triggering_Statement): New routine.
8696 (Analyze_Requeue): Exclude any interpretations that are not entries when
8697 checking overloaded names in a requeue. Also test type conformance for
8698 matching interpretations rather than requiring subtype conformance at
8699 that point to conform with the RM's resolution rule for requeues.
8701 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8703 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8704 inherited operation is a defaulted tag-indeterminate call, and there is
8705 a statically tagged actual, use the static tag as a controlling actual
8706 for the defaulted actual.
8708 2007-12-13 Geert Bosch <bosch@adacore.com>
8710 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8711 context, so do not call Check_Non_Static_Context.
8713 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8715 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8716 whether formal E is an entity which may have parameters.
8718 2007-12-13 Bob Duff <duff@adacore.com>
8719 Javier Miranda <miranda@adacore.com>
8720 Robert Dewar <dewar@adacore.com>
8722 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8723 (Set_Convention): New procedure to set the Convention flag, and in
8724 addition make sure the Favor_Top_Level flag is kept in sync (all
8725 foreign-language conventions require Favor_Top_Level = True).
8726 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8728 (Collect_Interfaces_Info): Minor update to handle the two secondary
8729 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8730 (Generate_Parent_Ref): Add parameter to specify entity to check
8731 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8732 initialize a component of a type with preelaborable initialization.
8733 This includes the case of a discriminal used in such a context.
8734 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8735 latest Ada 2005 rules about renaming and 'Access of
8736 discriminant-dependent components.
8737 (Check_Nested_Access): Add handling when there are no enclosing
8738 subprograms (e.g. case of a package body).
8739 (Find_Parameter_Type): Factor routine from several other compiler files.
8740 Remove routine from Find_Overridden_Synchronized_Primitive.
8742 2007-12-13 Thomas Quinot <quinot@adacore.com>
8744 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8745 an invalid access to an uninitialized slot in the
8746 Source_File_Index_Table.
8748 2007-12-13 Thomas Quinot <quinot@adacore.com>
8750 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8752 2007-12-13 Bob Duff <duff@adacore.com>
8754 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8755 access-to-subprogram types in this package.
8757 2007-12-13 Olivier Hainque <hainque@adacore.com>
8759 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8760 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8761 Stack_Overlay_Address and document that we are using an internal
8763 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8764 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8765 consistently throughout the various implementation pieces.
8767 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8768 overlay we are using to fill the stack area with patterns.
8769 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8770 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8771 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8773 2007-12-13 Robert Dewar <dewar@adacore.com>
8775 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8777 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8780 (Create_Task): Take into account tasks created by foreign threads.
8781 Code clean up: use constants instead of hard coded values.
8783 2007-12-13 Robert Dewar <dewar@adacore.com>
8785 * styleg.adb (Check_Comment): More liberal rules for comment placement
8787 2007-12-13 Olivier Hainque <hainque@adacore.com>
8789 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8790 of Procedure Value instead of Frame Pointer as the invocation
8791 identifier associated with the instruction pointer in each traceback
8794 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8795 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8796 Pointer as the invocation identifier passed to tbk$symbolize.
8798 * s-traent-vms.ads, s-traent-vms.adb
8799 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8800 Procedure Value instead of Frame Pointer as the invocation identifier
8801 passed to tbk$symbolize.
8803 2007-12-13 Robert Dewar <dewar@adacore.com>
8805 * tbuild.ads, tbuild.adb:
8806 Fix location of flag for unrecognized pragma message
8808 2007-12-13 Robert Dewar <dewar@adacore.com>
8810 * treepr.ads, treepr.adb: (pl): implement use of positive value
8813 2007-12-13 Robert Dewar <dewar@adacore.com>
8815 * xeinfo.adb: Remove warnings
8816 * xnmake.adb: Remove warnings
8817 * xsinfo.adb: Remove warnings
8818 * xtreeprs.adb: Remove warnings
8819 * xsnames.adb: Remove warnings
8821 * a-ngcoar.adb: Fix typo.
8822 * s-interr.adb: Minor reformatting
8823 * env.c: Minor reformatting.
8824 * g-bytswa.adb: Minor reformatting.
8825 * g-rannum.ads: Minor documentation improvements
8826 * s-tasinf-mingw.adb: Minor header fix
8827 * a-clrefi.adb: Minor reformatting
8828 * g-sttsne.ads: Minor documentation improvement
8829 * g-sttsne-locking.ads: Minor documentation improvement
8830 * g-soliop-solaris.ads: Minor documentation improvement
8831 * g-soliop-mingw.ads: Minor documentation improvement
8832 * g-soliop.ads: Minor documentation improvement
8833 * exp_aggr.ads: Minor reformatting
8834 * debug.adb: Add documentation for the gprbuild debug flags
8835 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8836 * exp_pakd.adb: Minor reformatting
8838 * g-altive.ads, g-alleve.adb: Remove assertions.
8839 Add comment about minor differences between targets regarding
8840 floating-point operations.
8842 * g-thread.adb: Remove pragma unreferenced.
8843 * lib.ads: Minor reformatting
8844 * par-ch9.adb: Minor reformatting of error messages
8845 * sem_case.adb: Minor reformatting
8846 * s-fileio.adb: Minor reformattinng
8847 * s-vmexta.ads: Minor typo
8849 Take into account 'Success' value as per new GNAT warning.
8851 2007-12-13 Vincent Celier <celier@adacore.com>
8853 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8856 2007-12-13 Robert Dewar <dewar@adacore.com>
8857 Bob Duff <duff@adacore.com>
8859 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8860 Document that suffixes may be terminations of each others
8861 Add doc for -gnatw.a and -gnatw.A
8862 Document gnatbind -Wx switch
8863 Document BOM recognition
8864 Document pragma Implemented_By_Entry.
8867 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8868 Add doc for pragma Unreferenced suppressing no entities referenced msg
8869 Add documentation of GNAT.Directory_Operations.Iteration
8870 Add documentation of GNAT.Random_Numbers
8871 Add documentation for pragma Shared.
8872 Correct documentation for Bit_Order
8873 Add documentation for the Pool_Address attribute.
8874 Fix and improve documentation of pragma machine_attribute.
8875 New pragma Fast_Math
8876 Document BOM recognition
8878 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8879 Add /Wide_Character_Encoding for binder
8880 Add qualifier for the new gnatpp option --no-separate-loop-then
8882 2007-12-13 Matthew Heaney <heaney@adacore.com>
8884 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8885 which generic formal operations are called for each operation.
8887 2007-12-13 Olivier Hainque <hainque@adacore.com>
8889 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8890 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8892 2007-12-13 Emmanuel Briot <briot@adacore.com>
8894 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8895 Reference_Dir unless we actually need it.
8897 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8898 Tristan Gingold <gingold@adacore.com>
8900 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8903 a-calend-vms.adb: Remove pragma warning off and add pragma
8906 2007-12-13 Robert Dewar <dewar@adacore.com>
8908 * impunit.adb: Add entries for missing units
8910 * Makefile.rtl: Add new run-time units.
8912 * Make-lang.in: Update dependencies.
8914 2007-12-13 Bob Duff <duff@adacore.com>
8916 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8917 types, set Can_Use_Internal_Rep appropriately, based on
8918 Always_Compatible_Rep_On_Target.
8920 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8921 Arnaud Charlet <charlet@adacore.com>
8923 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8924 it to the front end and setting the aamp_target environment variable
8925 to the switch's argument to ensure that gnaampbind and gnaamplink will
8926 take the specified library into account.
8927 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8928 target, since the CIL compiler supports an "object" file (.il files).
8930 2007-12-13 Vincent Celier <celier@adacore.com>
8932 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8933 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8935 2007-12-13 Geert Bosch <bosch@adacore.com>
8937 * s-parame-vxworks.adb:
8938 Update comments to reflect usage of this package by Nucleus.
8940 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8942 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8943 spec would break code.
8945 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8947 * system-vxworks-alpha.ads: Removed.
8949 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8951 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8953 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8956 * sem_ch3.adb (Designates_T): New function.
8957 (Mentions_T): Factor reusable part of the logic into Designates_T.
8958 Consider non-access parameters and access and non-access result.
8959 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8960 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8962 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8964 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8967 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8968 the new implementation of target-specific calls.
8970 2007-12-07 Olivier Hainque <hainque@adacore.com>
8972 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8973 the designated full view, only follow a second level Full_View link
8974 for Non_Limited_Views of from_limited_with references.
8976 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8979 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8980 to be initialized with an access to constant object.
8982 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8983 when an access to constant is used to initialize an access
8987 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8989 2007-12-07 Olivier Hainque <hainque@adacore.com>
8992 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8993 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8994 this is from an alignment clause on the GNAT entity.
8995 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8996 to distinguish the case where we set it from the type's alignment.
8997 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8998 whether this alignment was set from an explicit alignment clause.
9000 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
9002 * decl.c (make_packable_type): Revert last change.
9003 (gnat_to_gnu_field): Avoid setting size and position multiple times.
9004 * utils.c (finish_record_type): Retrieve the real name of the type.
9006 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
9008 * trans.c (lvalue_required_p): Take base node directly instead
9009 of its parent. Rename second parameter to 'gnu_type'.
9010 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
9011 <N_Slice>: Likewise.
9012 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
9013 Adjust calls to lvalue_required_p.
9015 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
9018 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
9019 parameters of an entry call.
9021 2007-12-03 Robert Dewar <dewar@adacore.com>
9022 Samuel Tardieu <sam@rfc1149.net>
9025 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
9026 of variables declared in a library-level package.
9028 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
9030 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
9031 of Empty_String'Unchecked_Access.
9033 * Makefile.in: Add support for sh4-linux.
9035 * system-linux-sh4.ads: New file.
9037 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
9040 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
9041 and its argument must not be free()ed.
9043 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
9045 * decl.c (make_packable_type): Retrieve the real name of the type.
9046 (maybe_pad_type): Simplify similar code.
9048 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
9051 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9052 than an identifier is used after "case" in a variant_part.
9055 * par-ch4.adb (Is_Parameterless_Attribute): New map.
9056 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9057 attribute name or not depending on the new map.
9059 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9060 returning a string or a type will not be called with improper
9063 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9065 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9068 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9069 Signal an error when attribute argument is a fixed-point value of
9073 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9074 a derived ordinary fixed point type.
9076 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9077 RM_Size when a Small clause is found.
9079 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
9082 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9083 Pass 'false' for the new allocate_struct_function parameter.
9084 * utils.c (build_function_stub): Likewise.
9086 2007-11-25 Richard Guenther <rguenther@suse.de>
9088 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9089 (gnat_poplevel): Likewise.
9091 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
9093 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9094 strict alignment, no alignment clause and a known static size, cap
9095 the type alignment to the greatest power of 2 factor of the size.
9096 (gnat_to_gnu_field): If the field has a component clause, is aliased
9097 or of a type with strict alignment, require that its size be equal to
9099 (validate_size): Use the type size as the minimum size for a type with
9102 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
9104 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9105 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9106 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9107 Use 'Access instead of 'Unchecked_Access in second and third
9108 arguments of pthread_sigmask.
9110 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
9112 * decl.c (ceil_alignment): New function.
9113 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9114 (make_packable_type): Likewise.
9116 2007-11-22 Olivier Hainque <hainque@adacore.com>
9118 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9119 to fit in 80 columns.
9121 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
9123 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9124 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9126 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
9129 * misc.c (gnat_adjust_rli): Delete.
9130 (gnat_init): Do not initialize the translation code here.
9131 Do not call set_lang_adjust_rli.
9132 * trans.c (init_code_table): Make static.
9133 (gnat_init_stmt_group): Delete.
9134 (gigi): Initialize the translation code entirely here.
9135 Emit debug info for the common types here instead of...
9136 * utils.c (gnat_init_decl_processing): ...here.
9137 * gigi.h (init_code_table): Delete.
9138 (gnat_init_stmt_group): Likewise.
9140 2007-11-16 Olivier Hainque <hainque@adacore.com>
9142 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9143 retrieving an allocator return value from a super-aligned address from
9145 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9146 expect a super-aligned address for a fat or thin pointer.
9148 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
9150 * trans.c (call_to_gnu): Always set the source location on the call
9151 expression. If the function returns-by-target, also set it on the
9154 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
9156 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9157 sections of non-supported Interix target.
9159 * s-osinte-interix.ads: Removed.
9161 * i-cstrin.ads (chars_ptr): Make it a C convention type.
9163 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
9165 * a-tasatt.adb: Add a comment at the beginning of the package
9166 explaining why in general 'Unchecked_Access must be used instead
9169 * sem_prag.adb (Process_Convention): Move the test for the
9170 entity on which the Convention pragma applies down to also
9171 forbid pragma Convention on enumeration literals reached
9174 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
9176 * a-tasatt.adb: Revert previous change for this file as it will
9177 generate an error when this package is instantiated from a
9180 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
9182 * a-tasatt.adb: Type Wrapper should be declared in comment instead
9183 of already declared type Node_Access.
9184 Use 'Access instead of 'Unchecked_Access when applicable. Local
9185 lifetime is the one of the package.
9186 (Set_Value): W is allocated on the heap.
9188 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9190 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9192 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9195 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9197 (elaboration code): Timer_Queue lifetime is the one of the
9200 * tracebak.c (i386 alternative): Remove useless comparaison
9201 which is always false; LOWEST_ADDRESS is 0 and is never greater
9202 than an unsigned integer.
9204 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9205 embedded check for "Ada_Version >= Ada_05".
9207 2007-11-07 Olivier Hainque <hainque@adacore.com>
9209 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9210 craft and expand comment.
9212 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
9214 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9216 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
9218 * misc.c (gnat_handle_option): Replace call to abort with
9219 call to gcc_unreachable.
9220 (gnat_init): Likewise.
9221 (gnat_expand_expr): Likewise.
9222 (fp_prec_to_size): Likewise.
9223 (fp_size_to_prec): Likewise.
9225 2007-10-23 Richard Guenther <rguenther@suse.de>
9228 * tracebak.c: #undef abort after including system.h.
9230 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9232 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9233 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9235 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9237 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9239 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9240 Set the protection status of the guard page based on the value of On.
9242 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9244 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9245 (Exit_Task): Pass False to Hide_Yellow_Zone.
9247 2007-10-15 Robert Dewar <dewar@adacore.com>
9249 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9250 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9251 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9252 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9253 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9254 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9255 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9256 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9257 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9258 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9259 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9260 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9261 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9262 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9263 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9264 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9266 Add Unreferenced and Warnings (Off) pragmas for cases of
9267 variables modified calls where they are IN OUT or OUT parameters and
9268 the resulting values are not subsequently referenced. In a few cases,
9269 we also remove redundant code found by the new warnings.
9271 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9272 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9273 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9274 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9275 warning controlled by -gnatw.o that warns on cases of out parameter
9276 values being ignored.
9278 2007-10-15 Geert Bosch <bosch@adacore.com>
9280 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9282 * expect.c: Initial port to arm-mentor-nucleus.
9283 Use kill for __gnat_kill() on VMS.
9285 2007-10-15 Emmanuel Briot <briot@adacore.com>
9287 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9289 (Xref_Record): Change type for Line, since in the case of a reference to
9290 a predefined entity (as happens for array index types), the line is set
9292 Add support for parsing multiple array index types info, or
9293 multiple inherited interfaces info. This information cannot be stored
9294 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9295 and is therefore stored in the list of references instead. It has a
9296 special treatement later on in tools that use this information.
9298 2007-10-15 Tristan Gingold <gingold@adacore.com>
9300 * debug.adb: Document use of -gnatd.a and -gnatd.I
9302 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9304 2007-10-15 Javier Miranda <miranda@adacore.com>
9306 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9307 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9308 care of access to class-wide interface types plus removal of bizarre
9309 conversion of tagged object to access type (reported by Gary
9310 Dismukes). After this patch there is no need to perform any
9311 additional management on these nodes in Expand_Interface_Actuals.
9313 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9314 that handles use of 'Access and 'Unchecked_Access applied to
9315 actuals covering interface types. Such code is now
9316 centralized in Expand_N_Attribute_Reference.
9318 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9320 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9321 of tagged types whose ultimate ancestor is a CPP type.
9322 (Freeze_Array_Type): For a packed array type, generate an initialization
9323 procedure if the type is public, to handle properly a client that
9324 specifies Normalize_Scalars.
9326 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9328 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9329 inside a generic body, retrieve the full view of the entry family
9330 discrete subtype if available.
9332 2007-10-15 Thomas Quinot <quinot@adacore.com>
9334 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9335 attempt to generate stubs for hidden primitive operations.
9337 2007-10-15 Vincent Celier <celier@adacore.com>
9339 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9340 returning None, used when there is no platform specific body for
9343 2007-10-15 Bob Duff <duff@adacore.com>
9345 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9346 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9347 the generic Heap_Sort_G, in order to avoid trampolines.
9349 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9350 Jose Ruiz <ruiz@adacore.com>
9352 * vx_stack_info.c: New file.
9354 * i-forbla-unimplemented.ads: New file.
9356 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9357 for unsupported configurations; use it on VMS targets instead of the
9359 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9360 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9361 used by VxWorks targets to have access to task-specific data and be
9362 able to extract the stack boundaries for stack checking.
9363 Use system-vms-ia64.ads on ivms.
9365 * Make-lang.in: Update dependencies.
9367 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9370 2007-10-15 Vincent Celier <celier@adacore.com>
9372 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9374 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9376 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9378 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9379 the source is unknown.
9381 * prj-ext.adb: Spelling error fix
9383 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9384 95 reserved word in its name.
9385 (Process_Project_Level_Array_Attributes): Process new attribute
9386 Runtime_Library_Dir.
9388 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9389 config project against the user project names.
9391 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9392 not include a dot are always case insensitive.
9393 (Process_Declarative_Items): Ditto
9394 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9397 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9398 True, compare both indexes in lower case.
9400 2007-10-15 Robert Dewar <dewar@adacore.com>
9402 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9404 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9406 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9407 association for an access component, add an association with null as
9408 the expression. Remove testing for array subtypes and the setting in
9409 that case of Ctyp to the array component type, which prevented proper
9410 inclusion of an association for null-initialized arrays. Collapse
9411 condition that tests for array subtypes into just a test of
9412 Is_Partially_Initialized_Type (which already covers arrays anyway).
9414 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9416 * sem_ch12.adb: Minor code reformatting.
9417 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9418 find the parent package which may have been hidden by local
9421 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9423 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9424 flag of derived concurrent types, taking into account the flag setting
9425 on the parent subtype and any new set of discriminants.
9427 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9429 * sem_ch4.adb: Minor code and comment reformatting.
9430 (Analyze_Allocator): When the designated type of an unconstrained
9431 allocator is a record with unknown discriminants or an array with
9432 unknown range bounds, emit a detailed error message depending on the
9433 compilation mode and whether the designated type is limited.
9435 2007-10-15 Tristan Gingold <gingold@adacore.com>
9437 * system-vms-ia64.ads: New file.
9439 * system-vms_64.ads: Minor comment fix.
9441 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9443 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9444 body generated for a function with a controlling result that is a null
9445 extension, discard the generated body in favor of the current explicit
9448 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9450 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9451 examining its original form, to handle properly operator calls that
9452 have been rewritten.
9454 2007-10-15 Olivier Hainque <hainque@adacore.com>
9456 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9457 instead of a procedure value in each traceback entry.
9459 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9460 instead of procedure value to TBK$SYMBOLIZE.
9462 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9464 (TB_Entry_For): Account for the PV/FP renaming.
9466 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9468 (Null_TB_Entry): Account for change of component name.
9469 (PV_For): Rename as FP_For.
9471 2007-10-15 Tristan Gingold <gingold@adacore.com>
9473 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9474 This optimize assignment to over-aligned record.
9476 2007-10-15 Emmanuel Briot <briot@adacore.com>
9478 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9481 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9482 type, for dispatching calls.
9484 2007-10-15 Vincent Celier <celier@adacore.com>
9485 Robert Dewar <dewar@adacore.com>
9487 * gnat_ugn.texi: Add documentation for switches --version and --help
9488 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9489 gnatxref, gnatfind, gnatls, and gnatclean.
9491 Mention attribute Excluded_Source_Dirs
9492 Replace obsolescent attribute Locally_Removed_Files with attribute
9493 Excluded_Source_Files.
9494 Improve documentation of -u (gnatbind)
9495 Document how to do reliable stack checking for the environmental task
9498 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9499 Document attribute Excluded_Source_Files and indicate that attribute
9500 Locally_Removed_Files is obsolescent.
9502 2007-10-15 Thomas Quinot <quinot@adacore.com>
9504 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9507 Update documentation to note that OpenVMS 8.3 or later must be used
9508 to generate g-soccon-vms.ads.
9510 * atree.adb: Add ??? comment
9512 * exp_util.adb: Minor reformatting.
9513 Add ??? comment in Kill_Dead_Code.
9515 2007-10-15 Robert Dewar <dewar@adacore.com>
9517 * errout.ads: Comment clarification
9519 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9520 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9522 * lib.ads: Comment update
9524 * init.c: Minor reformatting.
9526 * sem_attr.adb: Minor formatting
9528 * osint-b.ads: Minor reformatting
9530 * sem_ch9.adb: Implement -gnatd.I switch
9532 * g-comlin.adb: (Start): Fix handling of empty command line.
9534 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9535 even when -rules follows the -cargs section.
9537 2007-10-08 Ollie Wild <aaw@google.com>
9539 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9541 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9543 (gnat_eh_runtime_type): Removed.
9544 (gnat_return_tree): New function.
9546 2007-10-08 Ben Elliston <bje@au.ibm.com>
9550 2007-08-31 Ben Elliston <bje@au.ibm.com>
9552 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9553 when compiling for powerpc64-*-linux.
9554 * system-linux-ppc64.ads: New file.
9556 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9558 Mapped location support
9559 * back_end.adb (Call_Back_End): Pass information about source
9560 files instead of units to gigi.
9561 * gigi.h (struct File_Info_Type): New.
9562 (gigi): Rename and change type of number_units parameter, change
9563 type of file_info_ptr parameter.
9564 * trans.c (number_files): New global variable.
9565 (gigi): Rename and change type of number_units parameter, change
9566 type of file_info_ptr parameter.
9567 If mapped location support is enabled, create the isomorphic mapping
9568 between source files and line maps.
9569 (Sloc_to_locus): If mapped location support is enabled, translate
9570 source location into mapped location.
9571 (annotate_with_node): Rename into set_expr_location_from_node.
9572 Call set_expr_location instead of annotate_with_locus.
9573 (Pragma_to_gnu): Adjust for above change.
9574 (Loop_Statement_to_gnu): Likewise.
9575 (call_to_gnu): Likewise.
9576 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9577 (gnat_to_gnu): Likewise.
9578 (add_stmt_with_node): Likewise.
9579 (add_cleanup): Likewise.
9580 * utils.c (gnat_init_decl_processing): Do not set input_line.
9582 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9584 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9585 (Applicable_Use): Emit a warning when a package tries to use itself.
9586 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9587 is already in use or the package where it is declared is in use or is
9588 declared in the current package.
9589 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9591 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9592 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9593 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9595 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9597 * a-calend-vms.adb, a-calend.adb:
9598 Add a section on leap seconds control along with two entities used to
9599 enable and disable leap seconds support. The array Leap_Second_Times is
9600 now constant and contains hard time values pre-generated. Remove
9601 all elaboration code used to populate the table of leap seconds.
9604 Add entity Leap_Seconds_Support to the list of global run-time variables
9605 along with a comment on its usage and values.
9606 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9607 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9608 or one (enabled) depending on the presence of binder switch "-y".
9609 (Gen_Adainit_C): Add code to generate the declaration of external int
9610 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9611 (enabled) depending on the presence of binder switch "-y".
9613 * init.c: Add __gl_leap_seconds_support to the list of global values
9614 computed by the binder.
9616 2007-09-26 Jerome Guitton <guitton@adacore.com>
9618 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9619 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9620 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9621 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9623 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9625 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9626 function which can be called by the debugger to interrupt the tasks of
9627 an Ada application asynchronously, as needed on VxWorks.
9628 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9630 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9631 renamed from Stop_All_Tasks. Update comments.
9632 (Stop_All_tasks): New function declaration.
9634 2007-09-26 Olivier Hainque <hainque@adacore.com>
9636 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9637 #include <utime.h> and #define GCC_RESOURCE_H before
9638 #include <sys/wait.h>.
9639 Add more protections in __gnat_translate_vms.
9641 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9642 #include <sys/wait.h>.
9644 2007-09-26 Thomas Quinot <quinot@adacore.com>
9645 Sergey Rybin <rybin@adacore.com>
9647 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9649 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9652 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9654 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9657 * sem_dist.ads: Minor comment fix
9659 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9661 2007-09-26 Javier Miranda <miranda@adacore.com>
9662 Eric Botcazou <ebotcazou@adacore.com>
9665 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9666 indirection added to the HT_Link component of the TSD. This is required
9667 to statically allocate the TSD.
9670 Minor reordering of the declarations in the private part. Required to
9671 add a level of indirection to the contents of the TSD component HT_Link.
9672 This is required to statically allocate the TSD.
9674 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9675 Is_Statically_Allocated set from constant objects.
9676 Do not make exported constants created by the compiler volatile.
9677 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9680 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9681 before returning them.
9683 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9684 public part of the package.
9685 (Make_DT): Move HT_Link component out of the TSD record. For this
9686 purpose Make_DT now declares a separate object that stores the
9687 HT_Link value, and initializes the TSD component with the address
9688 of this new object. The addition of this level of indirection is
9689 required to statically allocate the TSD because the TSD cannot
9690 have variable components.
9691 (Expand_Interface_Conversion): Improve the expanded code.
9692 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9694 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9695 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9696 if we are building static dispatch tables then we must not generate
9697 extra code to register the primitive because the dispatch table will
9698 be built at the end of the library package; otherwise we notify that
9699 we cannot build the static dispatch table.
9701 2007-09-26 Robert Dewar <dewar@adacore.com>
9703 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9706 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9707 (Analyze_Record_Representation_Clause): Suppress junk warning for
9708 missing component clause.
9709 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9710 tests for controlled type overlay to composites with controlled
9712 (Analyze_Record_Representation_Clause): Add reference for component name
9714 2007-09-26 Javier Miranda <miranda@adacore.com>
9715 Gary Dismukes <dismukes@adacore.com>
9717 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9718 for thunks associated with interface types.
9720 * einfo.ads: Improve documentatation of Is_Internal
9721 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9722 associated with interface types.
9723 Extensive comment fixes regarding flags that appear in all entities. The
9724 documentation is now consistent for all such flags (there were a number
9725 of errors in the documentation in this regard).
9727 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9729 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9730 of these procedures are passed a function call that already has
9731 build-in-place actuals (testing new flag
9732 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9733 the case where processing continues.
9734 (Expand_Call): If the call is generated from a thunk body then we
9735 propagate the extra actuals associated with the accessibility
9736 level of the access type actuals.
9738 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9739 of each extra formal of a protected operation to reference the
9740 corresponding extra formal of the subprogram denoted by the
9741 operation's Protected_Body_Subprogram.
9743 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9744 N_Function_Call nodes.
9746 2007-09-26 Robert Dewar <dewar@adacore.com>
9748 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9750 * debug.adb: Add d.s flag.
9752 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9754 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9755 debug variable so that it won't be initialized when pragma
9756 Initialize_Scalars is in effect.
9758 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9760 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9761 initialization of a full view. This is moved to
9762 Analyze_Package_Specification.
9764 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9765 preelaborable initialization of a full view in entity loop.
9766 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9767 its child units are use-visible only if they are visible child units.
9769 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9770 whether an expression can be used within a type declaration that
9771 requires preelaborable init.
9772 (Check_Components): Replace inline code that does partial checking for
9773 preelaborable default expressions with call to
9774 Is_Preelaborable_Expression.
9775 (Has_Preelaborable_Initialization): In the case of a generic actual
9776 subtype, (that is, Is_Generic_Actual is True), return the result of
9777 applying Has_Preelaborable_Initialization to the generic actual's base
9780 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9782 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9783 call to Jan_1_Day _Of_Week to optimize its performance.
9784 (Is_Leap): Move the routine to the scope of Week_In_Year.
9785 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9786 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9787 avoids calling Time_Of and Split, thus making it more efficent.
9788 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9790 * g-calend.ads (Week_In_Year): Change comment to reflect new
9793 2007-09-26 Emmanuel Briot <briot@adacore.com>
9795 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9796 Command_Line): New types
9797 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9798 support for defining how switches can be grouped on a command line (as
9799 is the case for -gnatw... for GNAT), and how simple switches can be
9800 used as aliases for more complex switches (-gnatwa is same as
9802 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9803 (Start, Current_*): New subprograms
9804 Added support for parsing an array of strings in addition to the real
9806 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9807 be moved from the body to the private part of the spec.
9808 (*): All subprograms now have an extra parameter with default value to
9809 specify which parser should be used. For backward compatibility, it
9810 defaults to parsing the command line of the application. They were also
9811 modified to properly handle cases where each of the argument does not
9812 start at index 1 (which is always true for Ada.Command_Line, but not
9813 when processing any Argument_List).
9814 (Free): New subprogram
9815 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9816 Argument): New subprograms
9817 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9818 special characters like ':', '=',... are now handled in a single place,
9819 which makes the code more extensible eventually.
9820 (Getopt, Full_Switch): When the switch was returned as part of the
9821 special character '*', make sure it is prepended by the switch character
9822 ('-' in general), so that the application knows whether "foo" or "-foo"
9823 was specified on the command line.
9825 2007-09-26 Florian Villoing <villoing@adacore.com>
9827 * g-dirope.adb (Remove_Dir): In case we are removing directories
9828 recursively, make sure that if an exception is raised during the
9829 processing, the current working directory is reset to its initial
9830 value before propagating the exception.
9832 2007-09-26 Vincent Celier <celier@adacore.com>
9834 * gnatbind.adb: If there are several ALI files specified and there is
9835 a main program to bind, the first ALI is expected to contain the main
9836 subprogram and the names of the binder generated files will be derived
9837 from the first ALI file name.
9838 (Gnatbind): Fix insertion character in invocation of Error_Msg
9840 2007-09-26 Vincent Celier <celier@adacore.com>
9842 * gnatcmd.adb (Check_Files): Do not include sources that have been
9843 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9845 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9847 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9848 information about each of its index types, following the type
9849 reference for its component type.
9851 2007-09-26 Vincent Celier <celier@adacore.com>
9853 * make.adb: (Kill): New procedure (__gnat_kill imported)
9854 (Running_Compile, Outstanding_Compiles): Global variables that
9855 were previously local to procedure Compile_Sources.
9856 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9857 compilation processes.
9859 (Gnatmake): If project files are used, create the mapping of all the
9860 sources, so that the correct paths will be found.
9862 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9864 2007-09-26 Vincent Celier <celier@adacore.com>
9866 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9868 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9869 Replace components Compiler_Min_Options and Binder_Min_Options with
9870 Compiler_Required_Switches and Binder_Required_Switches in record
9872 Remove components Default_Language and Config in Project_Tree_Data,
9875 * prj-attr.adb: New attributes Required_Switches (<language>) in
9876 packages Compiler and Binder.
9878 * prj-nmsc.adb: Major rewrite of the processing of configuration
9879 attributes for gprbuild. No impact on GNAT tools.
9881 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9882 process configuration attributes: this is done in Prj.Nmsc.Check.
9883 (Recursive_Process): Make a full copy of packages inherited from project
9884 being extended, instead of a shallow copy.
9885 (Process_Project_Tree_Phase_1): New procedure
9886 (Process_Project_Tree_Phase_1): New procedure
9887 (Process): Implementation now uses the two new procedures
9889 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9890 from the project config, not the tree config that no longer exists.
9892 2007-09-26 Vincent Celier <celier@adacore.com>
9894 * Make-lang.in: Update dependencies..
9896 2007-09-26 Vincent Celier <celier@adacore.com>
9898 * osint.adb, osint.ads: Minor reformatting
9900 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9902 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9904 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9905 message to cite use of <> in aggregate component associations rather
9906 than wrongly indicating use of limited aggregates.
9908 2007-09-26 Robert Dewar <dewar@adacore.com>
9910 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9913 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9915 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9916 ancestor of the derived type, the operations are inherited from the
9917 primary dispatch table of the parent.
9918 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9919 when the context is an explicit type conversion.
9921 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9923 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9924 rule for qualified expressions properly, to detect improper conversions
9925 and resolve some cases of overloading.
9927 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9929 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9930 proper kind of reference to the primitive operation, for better source
9932 (Valid_Conversion): A tagged conversion is legal if both operands are
9935 2007-09-26 Robert Dewar <dewar@adacore.com>
9937 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9940 2007-09-26 Vincent Celier <celier@adacore.com>
9942 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9944 2007-09-26 Robert Dewar <dewar@adacore.com>
9946 * s-wchstw.adb: provide messages for run time unit exceptions
9948 * a-witeio.adb: Minor reformatting
9950 * exp_ch13.adb: Minor reformatting
9952 2007-09-26 Sergey Rybin <rybin@adacore.com>
9954 * vms_data.ads: Revise gnatmetric qualifiers.
9955 Add qualified for the new gnatbind option '-y'
9957 * gnat_ugn.texi: Revise the gnatmetric section.
9958 Add entry for new gnatbind option '-y'.
9960 * gnat_rm.texi: Minor spelling correction.
9961 Document restriction on overlaying controlled types
9963 2007-09-26 Vincent Celier <celier@adacore.com>
9965 * makegpr.adb (Link_Executables): Do not fail when the root project has
9966 no sources, but is an extending project.
9968 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9970 * trans.c: Fix misplaced #define.
9972 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9974 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9975 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9977 2007-09-21 Olivier Hainque <hainque@adacore.com>
9979 * utils.c (type_for_nonaliased_component_p): Return false for
9980 all AGGREGATE_TYPEs.
9982 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9984 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9985 object covered by 13.3(19) volatile.
9987 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9991 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9992 in the special VIEW_CONVERT_EXPR case.
9994 2007-09-12 Robert Dewar <dewar@adacore.com>
9996 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9998 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9999 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
10000 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
10001 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
10002 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
10003 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
10004 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
10005 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
10006 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
10007 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
10008 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
10009 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
10010 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
10011 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
10012 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
10013 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
10014 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
10015 pragma Compiler_Unit and adds it to relevant library units.
10017 2007-09-12 Ed Schonberg <schonberg@adacore.com>
10019 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
10020 a box need not correspond to any component.
10022 2007-09-12 Robert Dewar <dewar@adacore.com>
10024 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
10025 the tasking version of the Ada run time when foreign threads are
10026 present and there are no explicit Ada tasks or tasking constructs.
10028 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
10030 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
10032 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
10033 the usage of switch -y.
10035 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
10036 when switch -y is present.
10038 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
10039 leap seconds in Ada.Calendar and its children.
10041 2007-09-12 Jose Ruiz <ruiz@adacore.com>
10043 * a-extiti.ads (Timer): The discriminant is a "not null access
10044 constant" in the Reference Manual.
10045 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
10047 2007-09-12 Robert Dewar <dewar@adacore.com>
10049 * a-swuwha.adb: Remove junk RM header
10051 2007-09-12 Vincent Celier <celier@adacore.com>
10053 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10056 * g-bytswa.ads: Minor reformatting
10058 2007-09-12 Thomas Quinot <quinot@adacore.com>
10060 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
10061 Add new constant Thread_Blocking_IO, always True by default, set False
10062 on a per-runtime basis.
10063 (Need_Netdb_Buffer): New constant.
10065 2007-09-12 Arnaud Charlet <charlet@adacore.com>
10067 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10068 Added renames for corresponding functions in System.Partition_Interface.
10070 2007-09-12 Doug Rupp <rupp@adacore.com>
10072 * Makefile.in: Remove VMS specific System.CRTL packages which are no
10075 * s-crtl-vms64.ads: Removed.
10077 2007-09-12 Olivier Hainque <hainque@adacore.com>
10079 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10080 with discriminant constraints, generalize the code for BIT_FIELDs
10081 to PACKED fields of constant size and propagate DECL_PACKED.
10083 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
10085 * decl.c (array_type_has_nonaliased_component): New predicate.
10086 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10087 set the TYPE_NONALIASED_COMPONENT flag on the type.
10088 <E_Array_Subtype>: Likewise.
10089 * gigi.h (type_for_nonaliased_component_p): Declare.
10090 * utils.c (type_for_nonaliased_component_p): New predicate.
10091 (create_field_decl): Invoke the above predicate to set the
10092 DECL_NONADDRESSABLE_P flag on the field.
10094 2007-09-11 Javier Miranda <miranda@adacore.com>
10096 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10097 in library level record type entities if we are generating statically
10098 allocated dispatch tables.
10100 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10101 importing/exporting the _tag declaration by new code
10102 importing/exporting the dispatch table wrapper. This change allows us
10103 to statically allocate of the TSD.
10104 (Make_DT.Export_DT): New procedure.
10105 (Build_Static_DT): New function.
10106 (Has_DT): New function.
10108 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10109 True_Constant and Current_Value. Required to statically
10110 allocate the dispatch tables.
10111 (Check_Allocator): Make function iterative instead of recursive.
10112 Also return inner allocator node, when present, so that we do not have
10113 to look for that node again in the caller.
10115 2007-09-11 Jan Hubicka <jh@suse.cz>
10117 * misc.c (gnat_expand_body): Kill.
10118 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10120 2007-09-10 Robert Dewar <dewar@adacore.com>
10122 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10123 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10124 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10125 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10126 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10127 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10128 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10129 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10130 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10131 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10132 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10133 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10134 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10135 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10136 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10137 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10138 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10139 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10140 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10141 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10142 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10143 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10144 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10145 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10146 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10147 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10148 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10149 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10150 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10151 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10152 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10153 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10154 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10155 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10156 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10157 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10158 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10159 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10160 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10161 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10162 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10163 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10164 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10165 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10166 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10167 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10168 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10169 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10170 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10171 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10172 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10173 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10174 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10175 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10176 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10177 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10178 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10179 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10180 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10181 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10182 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10183 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10184 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10185 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10186 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10187 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10188 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10189 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10190 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10191 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10192 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10193 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10194 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10195 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10196 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10197 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10198 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10199 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10200 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10201 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10202 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10203 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10204 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10206 2007-09-10 Emmanuel Briot <briot@adacore.com>
10208 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10211 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
10213 * adaint.c (__gnat_translate_vms): new function.
10215 2007-09-10 Gary Dismukes <dismukes@adacore.com>
10216 Thomas Quinot <quinot@adacore.com>
10218 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10219 create an abstract subprogram in the case of 'Input. For 'Output we now
10220 create a real spec/body when the type is abstract, since it can
10221 potentially be called.
10222 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10223 body for 'Output when the type is abstract (only the creation of the
10224 body for 'Input is excluded when the type is abstract).
10225 (Stream_Operation_OK): Add an additional condition in the return
10226 statement, so that False will be returned for TTS_Stream_Input if the
10227 associated tagged type is an abstract extension. Add comments for
10229 (Expand_N_Object_Declaration): For the case of a shared passive
10230 variable, insert init proc call only after the shared variable
10231 procedures have been processed, because the IP call needs to undergo
10232 shared passive variable reference expansion, which requires these
10233 procedures to be available (and elaborated).
10235 2007-09-10 Vincent Celier <celier@adacore.com>
10237 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10238 parameter Runtime_Project.
10240 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10242 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10243 given a box association, the type of the component is discriminated,
10244 and the value of the discriminant is the discriminant of the enclosing
10245 type, retrieve its value from the aggregate itself, where it must have
10248 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10249 to remove other spurious ambiguities on arithmetic operations involving
10250 literals and addresses, on systems where Address is a visible integer
10251 type, when the operator is called in functional notation.
10252 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10253 is legal when the types match, even if the operation is currently
10256 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10258 * sem_ch12.adb (Build_Local_Package): A formal package with no
10259 associations is legal if all formals have defaults. It is not
10260 equivalent to a formal declared with a box.
10262 2007-09-10 Sergey Rybin <rybin@adacore.com>
10264 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10266 2007-09-10 Sergey Rybin <rybin@adacore.com>
10268 * gnat_ugn.texi: Add description of the new '-lratio' option
10269 Update 7.3.1 section about availability of the feature.
10271 2007-09-10 Thomas Quinot <quinot@adacore.com>
10273 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10276 2007-09-10 Olivier Hainque <hainque@adacore.com>
10278 * Makefile.in: (mips-irix section): Activate build of libgmem.
10280 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10282 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10285 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10287 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10288 a debug renaming declaration specially.
10290 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10292 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10293 which a constant renaming is treated as a normal object declaration.
10294 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10295 the N_Indexed_Component case.
10296 <N_Indexed_Component>: Fall through to above case.
10297 <N_Object_Renaming_Declaration>: Return true for all composite types.
10299 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10301 * decl.c (make_packable_type): If the new type has been given BLKmode,
10302 try again to get an integral mode for it.
10304 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10306 Re-apply accidentally reverted change:
10308 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10310 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10311 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10312 and _Unwind_SWord with _sleb128_t.
10314 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10316 * trans.c (convert_with_check): Update call to real_2expN.
10318 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10320 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10321 * utils.c (end_subprog_body): Likewise.
10323 2007-09-03 Nick Clifton <nickc@redhat.com>
10325 * Make-lang.in: Change copyright header to refer to version 3 of
10326 the GNU General Public License and to point readers at the
10327 COPYING3 file and the FSF's license web page.
10328 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10329 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10330 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10331 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10334 2007-08-31 Vincent Celier <celier@adacore.com>
10338 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10339 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10340 (Check_Version_And_Help): New procedure in package Switch to process
10341 switches --version and --help.
10342 Use Check_Version_And_Help in GNAT tools
10345 (Compile_Sources): Make sure that sources that are "excluded" are not
10347 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10348 project file is used.
10349 (Version_Switch): Remove, moved to Switch
10350 (Help_Switch): Remove, moved to Switch
10351 (Display_Version): Remove, moved to Switch
10353 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10354 package Switch to process switches --version and --help.
10355 (Display_Version): New procedure
10357 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10359 2007-08-31 Javier Miranda <miranda@adacore.com>
10361 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10364 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10366 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10367 (Mark_Non_Null): If the node for which we just generated an access check
10368 is a reference to an *in* parameter and the reference appears in the
10369 declarative part of a subprogram body, mark the node as known non null.
10371 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10373 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10374 structure of E_Exception to reflect the new flag.
10375 (Is_Raised, Set_Is_Raised): New inlined routines.
10376 Update the usage of available flag to reflect the addition of Is_Raised.
10377 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10378 (Write_Entity_Flags): Write the status of flag Is_Raised.
10379 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10380 spurious ambiguities when integer literals appear in the context of an
10381 address type that is a visible integer type.
10383 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10384 exceptions never being raised.
10385 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10388 2007-08-31 Javier Miranda <miranda@adacore.com>
10390 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10391 statement when compiling under restriction No_Exceptions_Proparation.
10393 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10395 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10396 initialization aggregate for the type, generate itype references for
10397 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10399 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10401 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10402 library-level package renaming, pass the declaration associated with
10403 the renaming's special debug variable to Qualify_Entity_Names to ensure
10404 that its encoded name is properly qualified.
10406 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10407 occurring in the list of entities to qualify, and do not attempt to
10408 traverse an entity list in that case. Variables associated with
10409 ` library-level package renamings can now occur in the table.
10411 * exp_dbug.ads: Revise documentation of the encoding for renaming
10414 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10416 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10417 access type points to an unconstrained array.
10419 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10421 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10424 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10425 simple redundant qualifications. The check is performed whenever the
10426 expression is a non-overloaded identifier.
10427 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10428 to include loop parameters.
10429 (Valid_Conversion): Avoid generation of spurious error message.
10431 2007-08-31 Bob Duff <duff@adacore.com>
10433 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10434 concatenations of string literals into a single literal, in order to
10435 avoid very deep recursion in the front end, which was causing stack
10438 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10439 string, and the right operand is a string literal (the case of "" &
10440 "..."), optimize by avoiding copying the right operand -- just use the
10441 value of the right operand directly.
10443 * stringt.adb (Store_String_Chars): Optimize by growing the
10444 String_Chars table all at once, rather than appending characters one by
10446 (Write_String_Table_Entry): If the string to be printed is very long,
10447 just print the first few characters, followed by the length. Otherwise,
10448 doing "pn(n)" in the debugger can take an extremely long time.
10450 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10451 Store_String_Char with Store_String_Chars.
10453 2007-08-31 Vincent Celier <celier@adacore.com>
10455 * prj-attr.adb: Add new attribute Excluded_Source_Files
10457 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10458 Locally_Removed_Files.
10460 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10462 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10464 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10465 clauses of subunits, ignore limited_with_clauses that are illegal and
10466 have not been fully analyzed.
10468 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10470 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10471 flag, for effiency. It is called when analyzing arithmetic operators
10472 and also for actuals in calls that are universal_integers. The flag is
10473 set for the predefined type address, and for any type or subtype
10476 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10477 Universal_Integer, when the formal is a descendent of address and the
10478 call appears in user code.
10479 (Analyze_Selected_Component): if the prefix is a private extension, the
10480 tag component is visible.
10482 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10485 2007-08-31 Robert Dewar <dewar@adacore.com>
10487 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10488 sensitive file name systems to avoid unexpected mismatch in Vista.
10490 2007-08-31 Vincent Celier <celier@adacore.com>
10492 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10494 2007-08-31 Vincent Celier <celier@adacore.com>
10496 * symbols-vms.adb (Initialize): Read symbol files with continuation
10498 (Finalize): If symbol is long, split the line
10500 2007-08-31 Vincent Celier <celier@adacore.com>
10502 * fmap.ads: Minor comment updates
10504 2007-08-31 GNAT Script <nobody@adacore.com>
10506 * Make-lang.in: Makefile automatically updated
10508 2007-08-31 Bob Duff <duff@adacore.com>
10510 * sinfo.ads: Minor comment fix.
10512 2007-08-31 Thomas Quinot <quinot@adacore.com>
10514 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10515 with implementation.
10516 Documentation cleanup only.
10518 2007-08-31 Sergey Rybin <rybin@adacore.com>
10520 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10521 gnatpp '--separate-stmt-name' option.
10522 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10525 * gnat_ugn.texi: Add description for the new gnatpp
10526 '--separate-stmt-name' and '--use-on-new-line' options.
10528 2007-08-31 Ben Elliston <bje@au.ibm.com>
10530 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10531 when compiling for powerpc64-*-linux.
10532 * system-linux-ppc64.ads: New file.
10534 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10536 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10539 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10541 * misc.c (gnat_type_max_size): Constify.
10543 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10545 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10546 associated with Standard_Debug_Renaming_Type, to be used as the type of
10547 the special variables whose names provide debugger encodings for
10548 renaming declarations.
10550 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10551 (Set_Debug_Renaming_Link): Change to set Node25.
10552 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10553 (Write_Field25_Name): Add case for E_Variable to output
10554 "Debug_Renaming_Link".
10555 (Write_Field23_Name): Correct the output string for "Limited_View".
10557 * exp_dbug.adb: Add with and use of Tbuild.
10558 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10559 and literal with creation of a variable of type
10560 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10561 and the entity of the renaming declaration.
10562 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10563 part of the name of a variable that has a Debug_Renaming_Link.
10565 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10566 special type to be associated with variables that provide debugger
10567 encodings for renaming declarations.
10569 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10570 Ed Schonberg <schonberg@adacore.com>
10571 Javier Miranda <miranda@adacore.com>
10573 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10574 ancestor part given by an aggregate to test for an unchecked conversion,
10575 since this can occur in some cases when the ancestor part is a function
10576 call, and we don't want to fall into the recursive call to this
10577 procedure in that case.
10579 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10580 stream attributes on limited types to account for user-specified
10581 attributes as well as whether Input (resp. Output) becomes available
10582 due to Read (resp. Write) being available for the type. Change Boolean
10583 variable to the more accurate name
10584 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10585 double-"not" predicate at beginning of return statement to more
10586 understandable form.
10588 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10589 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10590 in a block statement and use that as the first statement of the
10591 expanded return rather than incorrectly using the handled sequence as
10592 the first statement.
10594 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10595 operation, generate an explicit freeze node for it rather than
10596 generating extra formals, to ensure that gigi has the proper order of
10597 elaboration for anonymous subtypes in the signature of the subprograms.
10598 (Build_In_Place_Formal): Move assertion to beginning of loop.
10599 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10600 applied to a function call (occurs for some cases of 'Input).
10601 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10602 applied to a function call (occurs for some cases of 'Input).
10604 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10605 2005, generate an extended return statement enclosing the result object
10608 * freeze.adb (Freeze_Record_Type): Extend the current management of
10609 components that are access type with an allocator as default value: add
10610 missing support to the use of qualified expressions of the
10611 allocator (which also cause freezing of the designated type!)
10612 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10613 dispatching operation, since extra formals may be needed by calls to
10614 build-in-place functions (such as stream 'Input).
10616 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10617 formals for 'Constrained and accessibility level in the case of a
10618 predefined dispatching operation.
10620 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10621 point, no need to find the parent node.
10623 2007-08-16 Javier Miranda <miranda@adacore.com>
10625 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10626 and entry barriers.
10628 2007-08-16 Javier Miranda <miranda@adacore.com>
10630 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10631 is not really required and can introduce regression with the debugger.
10632 The original problem is fixed with the patch written for checks.adb.
10634 2007-08-16 Thomas Quinot <quinot@adacore.com>
10636 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10637 Range_Check on Allocated_Table.
10639 2007-08-16 Vincent Celier <celier@adacore.com>
10641 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10642 Including_Non_Switch set to False.
10643 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10644 Including_Non_Switch set to False.
10646 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10647 parameter Including_Non_Switch, defaulted to True. When
10648 Including_Non_Switch is False, options that are not switches and
10649 appear as relative path are not converted to absolute paths.
10651 2007-08-16 Nicolas Roche <roche@adacore.com>
10653 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10656 * Make-lang.in: Update dependencies
10658 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10660 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10661 currently inspected is a selected component, retrieve the entity of
10663 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10664 from the immediate ancestor of Main_Unit_Entity.
10665 (Install_Limited_Withed_Unit): Do not install the limited view of
10666 package P if P is reachable through an ancestor chain from package C
10667 and C also has a with clause for P in its body.
10668 (Has_Limited_With_Clause): New routine.
10669 (Has_With_Clause): New routine.
10671 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10673 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10674 generic for an enclosing instance is a global reference, even though
10675 its scope is the enclosing instance.
10677 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10678 Javier Miranda <miranda@adacore.com>
10680 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10681 initialize a limited object.
10682 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10684 Make sure Has_Complex_Representation is inherited by derived type.
10686 2007-08-16 Robert Dewar <dewar@adacore.com>
10688 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10691 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10693 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10694 implements an operation inherited from a progenitor interface, verify
10695 that they are subtype-conformant.
10697 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10698 Bob Duff <duff@adacore.com>
10699 Nicolas Setton <setton@adacore.com>
10701 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10702 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10703 the statement which is being resolved comes from a predefined library
10704 unit, all non-predefined library interpretations are skipped.
10705 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10706 but the "&" is user defined, give an error, because the folding would
10709 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10710 the parser has folded a long sequence of concatenations of string
10713 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10714 and "JMP_BUF" variables as artificial.
10715 (N_String_Literal): Do not use alloca for very long string literals. Use
10716 xmalloc/free instead. Otherwise the stack might overflow.
10718 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10721 2007-08-16 Vincent Celier <celier@adacore.com>
10723 * vms_conv.adb (Process_Argument): Ensure that project related options
10724 are not put in the -cargs section when using GNAT COMPILE.
10726 2007-08-16 Robert Dewar <dewar@adacore.com>
10728 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10730 2007-08-16 Thomas Quinot <quinot@adacore.com>
10732 * a-tags.adb: Minor reformatting.
10734 2007-08-16 Bob Duff <duff@adacore.com>
10736 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10738 2007-08-14 Thomas Quinot <quinot@adacore.com>
10740 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10741 s-osinte-interix.ads, system-interix.ads: Removed.
10743 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10745 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10746 calls to Check_Within_Time_Bounds.
10747 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10748 (Difference): Account for possible rounding of the resulting difference
10750 2007-08-14 Robert Dewar <dewar@adacore.com>
10752 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10753 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10754 s-osinte-solaris.adb, s-osinte-solaris.ads,
10755 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10757 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10758 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10760 2007-08-14 Robert Dewar <dewar@adacore.com>
10761 Ed Schonberg <schonberg@adacore.com>
10763 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10764 Suppress unmodified in-out parameter warning in some cases
10765 This patch is a also fairly significant change to the way suppressible
10766 checks are handled.
10768 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10769 needed for access to concurrent record types generated by the expander.
10770 (Generate_Range_Check): When generating a temporary to capture the
10771 value of a conversion that requires a range check, set the type of the
10772 temporary before rewriting the node, so that the type is always
10773 properly placed for back-end use.
10774 (Apply_Float_Conversion_Check): Handle case where the conversion is
10776 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10777 for a protected type in order to examine its discriminants.
10779 2007-08-14 Robert Dewar <dewar@adacore.com>
10780 Gary Dismukes <dismukes@adacore.com>
10781 Ed Schonberg <schonberg@adacore.com>
10782 Thomas Quinot <quinot@adacore.com>
10784 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10785 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10786 tests optimized out.
10788 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10789 (Get_Allocator_Final_List): For the case of an anonymous access type
10790 that has a specified Associated_Final_Chain, do not go up to the
10792 (Expand_N_Type_Conversion): Test for the case of renamings of access
10793 parameters when deciding whether to apply a run-time accessibility
10795 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10796 aggregate code before allocator, and ahead of declaration for
10797 temporary, to prevent access before elaboration when the allocator is
10798 an actual for an access parameter.
10799 (Expand_N_Type_Conversion): On an access type conversion involving an
10800 access parameter, do not apply an accessibility check when the
10801 operand's original node was an attribute other than 'Access. We now
10802 create access conversions for the expansion of 'Unchecked_Access and
10803 'Unrestricted_Access in certain cases and clearly accessibility should
10804 not be checked for those.
10806 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10807 includes a type conversion of a packed component that has been expanded,
10808 recover the original expression for the object, and use this expression
10809 in the post-call assignment statement, so that the assignment is made
10810 to the object and not to a back-end temporary.
10811 (Freeze_Subprogram): In case of primitives of tagged types not defined
10812 at the library level force generation of code to register the primitive
10813 in the dispatch table. In addition some code reorganization has been
10814 done to leave the implementation clear.
10815 (Expand_Call): When expanding an inherited implicit conversion,
10816 preserve the type of the inherited function after the intrinsic
10817 operation has been expanded.
10819 * exp_ch2.ads, exp_ch2.adb
10820 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10821 of an entry formal appearing in an assignment statement does not assign
10823 (Expand_Current_Value): Instead of calling a routine to determine
10824 whether the prefix of an attribute reference should be optimized or
10825 not, prevent the optimization of such prefixes all together.
10827 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10828 component whose prefix is known to be of an access type is an implicit
10829 dereference and does not assign to the prefix.
10831 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10832 Robert Dewar <dewar@adacore.com>
10834 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10835 itype is visited, make an entry into table to link associated node and
10837 Add comments and correct harmless error in Build_NCT_Hash_Tables
10838 (Array_Aggr_Subtype): Associate each itype created for an index type to
10839 the corresponding range construct, and not to the aggregate itself. to
10840 maintain a one-to-one correspondence between itype and its associated
10841 node, to prevent errors when complex expression is copied.
10842 Fix mishandling of multiple levels of parens
10844 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10845 treatment of limited views uniform for all visible declarations in a
10846 limited_withed package.
10847 (New_Copy_Tree): If hash table is being used and itype is visited,
10848 make an entry into table to link associated node and new itype.
10849 (Resolve_Record_Aggregate): Do not add an others box association for a
10850 discriminated record component that has only discriminants, when there
10851 is a box association for the component itself.
10853 * par-ch4.adb: Fix mishandling of multiple levels of parens
10855 2007-08-14 Robert Dewar <dewar@adacore.com>
10857 * comperr.adb: Fix problem with suppressing warning messages from gigi
10859 * erroutc.ads, erroutc.adb, errout.ads,
10860 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10861 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10862 possible trailing spaces.
10863 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10864 Fix problem with suppressing warning messages from back end
10865 Improve handling of deleted warnings
10868 Fix problem with suppressing warning messages from back end
10869 Handle setting of Static_Dispatch_Tables flag.
10872 Fix problem with suppressing warning messages from back end
10874 * exp_intr.adb: Improve handling of deleted warnings
10876 2007-08-14 Robert Dewar <dewar@adacore.com>
10878 * debug.adb: Improve -gnatdI to cover all cases of serialization
10879 Add documentation of dZ, d.t
10881 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10883 (Sprint_Node_Actual): Generate new output associated with implicit
10884 importation and implicit exportation of object declarations.
10886 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10887 Robert Dewar <dewar@adacore.com>
10888 Javier Miranda <miranda@adacore.com>
10889 Gary Dismukes <dismukes@adacore.com>
10891 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10892 to make treatment of limited views uniform for all visible declarations
10893 in a limited_withed package.
10894 Improve warnings for in out parameters
10895 (Set_Related_Interaface/Related_Interface): Allow the use of this
10896 attribute with constants.
10897 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10898 Warn on duplicate pragma Preelaborable_Initialialization
10900 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10901 generation of a freezing node to ensure proper management of null
10902 excluding access types in the backend.
10903 (Create_Extra_Formals): Test base type of the formal when checking for
10904 the need to add an extra accessibility-level formal. Pass the entity E
10905 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10906 originally being done in a couple of cases), to ensure that the
10907 Extra_Formals list gets set on the entity E when the first entity is
10909 (Conforming_Types): Add missing calls to Base_Type to the code that
10910 handles anonymous access types. This is required to handle the
10911 general case because Process_Formals builds internal subtype entities
10912 to handle null-excluding access types.
10913 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10914 functions that need it, even when not marked Requires_Overriding.
10915 Improve warnings for in out parameters
10916 (Analyze_Function_Return): Warn for disallowed null return
10917 Warn on return from procedure with unset out parameter
10918 Ensure consistent use of # in error messages
10919 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10920 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10921 the implicit conversion of the expression done for anonymous access
10922 types. This is required to generate the code of the null excluding
10923 check (if required).
10925 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10926 A formal parameter is never publicly referenceable outside of its body.
10927 (Check_References): For an unreferenced formal parameter in an accept
10928 statement, use the same warning circuitry as for subprogram formal
10930 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10931 Output_Unreferenced_Messages, containing the part of that routine that
10932 is now reused for entry formals as described above.
10933 (Goto_Spec_Entity): New function
10934 (Check_References): Do not give IN OUT warning for dispatching operation
10935 Improve warnings for in out parameters
10936 (Test_Ref): Check that the entity is not undefinite before calling
10937 Scope_Within, in order to avoid infinite loops.
10938 Warn on return from procedure with unset out parameter
10939 Improved warnings for unused variables
10941 2007-08-14 Robert Dewar <dewar@adacore.com>
10942 Javier Miranda <miranda@adacore.com>
10943 Gary Dismukes <dismukes@adacore.com>
10945 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10946 (Expand_N_Attribute_Reference): Further unify the handling of the
10947 three forms of access attributes, using common code now for all three
10948 cases. Add a test for the case of applying an access attribute to
10949 an explicit dereference when the context is an access-to-interface
10950 type. In that case we need to apply the conversion to the prefix
10951 of the explicit dereference rather than the prefix of the attribute.
10952 (Attribute_Version, UET_Address): Set entity as internal to ensure
10953 proper dg output of implicit importation.
10954 (Expand_Access_To_Type): Removed.
10955 (Expand_N_Attribute_Reference): Merge the code from the three cases
10956 of access attributes, since the processing is largely identical for
10957 these cases. The substantive fix here is to process the case of a
10958 type name prefix (current instance case) before handling the case
10959 of interface prefixes.
10961 2007-08-14 Thomas Quinot <quinot@adacore.com>
10962 Ed Schonberg <schonberg@adacore.com>
10963 Javier Miranda <miranda@adacore.com>
10964 Robert Dewar <dewar@adacore.com>
10966 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10967 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10968 type that is an anonymous access to controlled object, establish
10969 an associated finalization chain to avoid corrupting the global
10970 finalization list when a dynamically allocated object designated
10971 by such a component is deallocated.
10972 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10973 functions that need it, even when not marked Requires_Overriding.
10974 (Initialize_Tag): Replace call to has_discriminants by call to
10975 Is_Variable_Size_Record in the circuitry that handles the
10976 initialization of secondary tags.
10977 (Is_Variable_Size_Record): New implementation.
10978 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10979 Suppress_Initialization pragma for a derived type.
10980 (Is_Variable_Size_Record): New subprogram.
10981 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10982 initial version of this routine and also fixes problems causing
10983 incomplete initialization of the table of interfaces.
10984 (Build_Init_Procedure): Improve the generation of code to initialize the
10985 the tag components of secondary dispatch tables.
10986 (Init_Secondary_Tags): New implementation that simplifies the previous
10987 version of this routine.
10988 (Make_DT): Add parameter to indicate when type has been frozen by an
10989 object declaration, for diagnostic purposes.
10990 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10991 diagnose attemps to freeze a subprogram when some untagged type of its
10992 profile is a private type whose full view has not been analyzed yet.
10993 (Freeze_Array_Type): Generate init proc for packed array if either
10994 Initialize or Normalize_Scalars is set.
10995 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10996 constructing the new profile, copy the null_exclusion indicator for each
10997 parameter, to ensure full conformance of the new body with the spec.
10999 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
11000 Create wrappers for constructor functions that need it, even when not
11001 marked Requires_Overriding.
11002 (Covers): Handle properly designated types of anonymous access types,
11003 whose non-limited views are themselves incomplete types.
11004 (Add_Entry): Use an entity to store the abstract operation which hides
11006 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
11007 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
11008 initialization aggregate.
11009 (Function_Interp_May_Be_Hidden): Rename to
11010 Function_Interp_Has_Abstract_Op.
11011 (Has_Compatible_Type): Remove machinery that skips interpretations if
11012 they are labeled as potentially hidden by an abstract operator.
11013 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
11014 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
11015 (Write_Overloads): Output the abstract operator if present.
11016 (Add_Entry): Before inserting a new entry into the interpretation table
11017 for a node, determine whether the entry will be disabled by an abstract
11019 (Binary_Op_Interp_May_Be_Hidden): New routine.
11020 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
11022 (Function_Interp_May_Be_Hidden): New routine.
11023 (Has_Compatible_Type): Do not consider interpretations hidden by
11024 abstract operators when trying to determine whether two types are
11026 (Has_Hidden_Interp): New routine.
11027 (Set_May_Be_Hidden_Interp): New routine.
11028 (Write_Overloads): Write the status of flag May_Be_Hidden.
11030 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11031 Javier Miranda <miranda@adacore.com>
11033 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
11034 types declared in the declarative part of a nested package body or in
11035 the proper body of a stub.
11036 (Set_All_DT_Position): Add missing check to avoid wrong assignation
11037 of the same dispatch table slot to renamed primitives.
11038 (Make_Select_Specific_Data_Table): Handle private types.
11039 (Tagged_Kind): Handle private types.
11040 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
11041 output of implicit importation and exportation.
11042 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
11043 first formal of the thunk is always associated with the controlling
11044 type. In addition perform the following code cleanup: remove formal
11045 Thunk_Alias which is no longer required, cleanup evaluation of the
11046 the controlling type, and update the documentation.
11047 Replace occurrence of Default_Prim_Op_Count by
11048 Max_Predef_Prims. Addition of compile-time check to verify
11049 that the value of Max_Predef_Prims is correct.
11050 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11051 (Make_DT): Add parameter to indicate when type has been frozen by an
11052 object declaration, for diagnostic purposes.
11053 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11054 construction of statically allocated dispatch tables.
11055 (Make_DT): In case of library-level tagged types export the declaration
11056 of the primary tag. Remove generation of tags (now done by Make_Tags).
11057 Additional modifications to handle non-static generation of dispatch
11058 tables. Take care of building tables for asynchronous interface types
11059 (Make_Tags): New subprogram that generates the entities associated with
11060 the primary and secondary tags of Typ and fills the contents of Access_
11061 Disp_Table. In case of library-level tagged types imports the forward
11062 declaration of the primary tag that will be declared later by Make_DT.
11063 (Expand_Interface_Conversion): In case of access types to interfaces
11064 replace an itype declaration by an explicit type declaration to avoid
11065 problems associated with the scope of such itype in transient blocks.
11067 2007-08-14 Robert Dewar <dewar@adacore.com>
11068 Ed Schonberg <schonberg@adacore.com>
11069 Javier Miranda <miranda@adacore.com>
11071 * exp_util.ads, exp_util.adb:
11072 This patch replaces a number of occurrences of explicit tests for N_Null
11073 with calls to Known_Null. This improves tracking of null values, since
11074 Known_Null also catches null constants, and variables currently known to
11075 be null, so we get better tracking.
11076 (Ensure_Defined): create an itype reference only in the scope of the
11078 (Side_Effect_Free): A selected component of an access type that
11079 denotes a component with a rep clause must be treated as not
11080 side-effect free, because if it is part of a linked structure its
11081 value may be affected by a renaming.
11082 (Expand_Subtype_From_Expr): For limited objects initialized with build
11083 in place function calls, do nothing; otherwise we prematurely introduce
11084 an N_Reference node in the expression initializing the object, which
11085 breaks the circuitry that detects and adds the additional arguments to
11086 the called function. Bug found working in the new patch for statically
11087 allocated dispatch tables.
11088 (Is_Library_Level_Tagged_Type): New subprogram.
11089 (Remove_Side_Effects): If the expression of an elementary type is an
11090 operator treat as a function call.
11091 (Make_Literal_Range): If the index type of the array is not integer, use
11092 attributes properly to compute the constraint on the resulting aggregate
11095 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11096 class-wide type whose base type is an incomplete private type, leave
11097 class-wide type unfrozen so that freeze nodes can be generated
11098 properly at a later point.
11099 (Freeze_Entity, array case): Handle case of pragma Pack and component
11100 size attributre clause for same array.
11102 2007-08-14 Vincent Celier <celier@adacore.com>
11104 * prj.ads, prj.adb: Update Project Manager to new attribute names for
11106 Allow all valid declarations in configuration project files
11107 (Reset): Initialize all tables and hash tables in the project tree data
11108 Major update of the Project Manager and of the project aware tools,
11109 including gprmake, so that the same sources in the GNAT repository
11110 can be used by gprbuild.
11111 (Slash_Id): Change type to be Path_Name_Type
11112 (Slash): Return a Path_Name_Type instead of a File_Name_Type
11114 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11116 Update Project Manager to new attribute names for ghprbuild
11117 Allow all valid declarations in configuration project files
11118 Major update of the Project Manager and of the project aware tools,
11119 including gprmake, so that the same sources in the GNAT repository
11120 can be used by gprbuild.
11123 Major update of the Project Manager and of the project aware tools,
11124 including gprmake, so that the same sources in the GNAT repository
11125 can be used by gprbuild.
11127 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11128 insensitive flag for attributes with optional index.
11129 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11130 array attribute, put the index in lower case.
11131 Update Project Manager to new attribute names for ghprbuild
11132 Allow all valid declarations in configuration project files
11133 Major update of the Project Manager and of the project aware tools,
11134 including gprmake, so that the same sources in the GNAT repository
11135 can be used by gprbuild.
11137 * prj-env.ads, prj-env.adb:
11138 Major update of the Project Manager and of the project aware tools,
11139 including gprmake, so that the same sources in the GNAT repository
11140 can be used by gprbuild.
11141 (Get_Reference): Change type of parameter Path to Path_Name_Type
11143 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11144 removing '-' from the path to start with the first character of the
11146 Major update of the Project Manager and of the project aware tools,
11147 including gprmake, so that the same sources in the GNAT repository
11148 can be used by gprbuild.
11149 Major update of the Project Manager and of the project aware tools,
11150 including gprmake, so that the same sources in the GNAT repository
11151 can be used by gprbuild.
11153 * prj-nmsc.ads, prj-nmsc.adb:
11154 Update Project Manager to new attribute names for ghprbuild
11155 Allow all valid declarations in configuration project files
11156 (Search_Directories): Detect subunits that are specified with an
11157 attribute Body in package Naming. Do not replace a source/unit in the
11158 same project when the order of the source dirs are known. Detect
11159 duplicate sources/units in the same project when the order of the
11160 source dirs are not known.
11161 (Check_Ada_Name): Allow all identifiers that are not reserved words
11163 Major update of the Project Manager and of the project aware tools,
11164 including gprmake, so that the same sources in the GNAT repository
11165 can be used by gprbuild.
11166 (Look_For_Sources): If the list of sources is empty, set the object
11167 directory of non extending project to nil.
11168 Change type of path name variables to be Path_Name_Type
11169 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11170 otherwise creating missing directories will fail.
11172 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11173 prj-part.ads, prj-part.adb:
11174 Major update of the Project Manager and of the project aware tools,
11175 including gprmake, so that the same sources in the GNAT repository
11176 can be used by gprbuild.
11178 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11179 insensitive flag for attributes with optional index.
11180 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11181 array attribute, put the index in lower case.
11182 (Parse_Variable_Reference): Allow the current project name to be used in
11183 the prefix of an attribute reference.
11185 * prj-util.ads, prj-util.adb
11186 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11187 defaulted to False. When True, always check against indexes in lower
11190 * snames.ads, snames.h, snames.adb:
11191 Update Project Manager to new attribute names for gprbuild
11192 Allow all valid declarations in configuration project files
11194 2007-08-14 Robert Dewar <dewar@adacore.com>
11195 Ed Schonberg <schonberg@adacore.com>
11197 * opt.ads: Warning for non-local exception propagation now off by
11199 New switch -gnatI to disable representation clauses
11200 Implement new pragma Implicit_Packing
11203 Warning for non-local exception propagation now off by default
11204 Add warning for unchecked conversion of pointers wi different
11206 New switch -gnatI to disable representation clauses
11208 * usage.adb: new switch -gnatyS
11210 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11211 note that aggregates of anonymous array types are not flagged.
11212 -gnatwc now includes membership tests optimized away
11213 -gnatw.x warnings are now off by default
11214 Added conditional compilation Appendix
11215 Add documentation of -gnatI
11216 Add documentation for new -gnatyS style check
11217 Update documentation about SAL and auto-init on Windows.
11220 Add documentation for pragma Check_Name and 'Enabled attribute
11221 Document that Eliminate on dispatching operation is ignored
11222 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11223 Document pragma Main
11224 Document pragma Implicit_Packing
11226 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11227 different conventions
11228 New switch -gnatI to disable representation clauses
11230 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11231 recognized, report the invalid characters including "-gnat" instead of
11232 just the first character in the switch.
11233 New switch -gnatI to disable representation clauses
11234 Set Warn_On_Object_Renames_Function true for -gnatg
11236 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11237 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11238 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11239 to switch -aP (add directory to project search dir).
11241 * par-prag.adb: Implement new pragma Implicit_Packing
11243 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11244 type as having a non-standard representation, to force expansion on
11245 conversion to related types.
11246 (Analyze_Pragma): Warn on misspelled pragma
11247 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11248 Ensure consistent use of # in error messages
11249 Implement pragma Implicit_Packing
11251 2007-08-14 Olivier Hainque <hainque@adacore.com>
11252 Eric Botcazou <ebotcazou@adacore.com>
11254 * targtyps.c (get_target_maximum_default_alignment): New function.
11256 that the compiler might choose by default for a type or object.
11257 (get_target_default_allocator_alignment): New function. Alignment known
11258 to be honored by the target default allocator.
11259 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11260 we might accept for any type or object on the target.
11261 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11263 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11264 (get_target_default_allocator_alignment): Likewise.
11265 (get_target_maximum_allowed_alignment): Likewise.
11268 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11269 result of a function call, first try to use a stabilized reference for
11270 a constant renaming too.
11271 (validate_alignment): Use target_maximum_allowed_alignment instead of
11272 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11273 (gnat_to_gnu_entity): Use common nodes directly.
11274 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11275 alignment and size for the object.
11276 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11277 and N_Procedure_Call_Statement.
11278 (takes_address): Rename to lvalue_required_p, add third parameter
11279 'aliased' and adjust recursive calls.
11280 <N_Indexed_Component>: Update 'aliased' from the array type.
11281 <N_Selected_Component>: New case.
11282 <N_Object_Renaming_Declaration>: New Likewise.
11283 (Identifier_to_gnu): Adjust for above changes.
11284 (maybe_stabilize_reference) <CONST_DECL>: New case.
11286 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11287 between type variants.
11288 (build_simple_component_ref): Likewise.
11289 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11290 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11291 aligning type circuitry for allocations from the default storage pool.
11292 (build_allocator): Likewise.
11293 (build_simple_component_ref): Manually fold the reference for a
11294 constructor if the record type contains a template.
11296 * utils.c (value_zerop): Delete.
11297 (gnat_init_decl_processing): Emit debug info for common types.
11298 (rest_of_record_type_compilation): If a union contains a field
11299 with a non-constant qualifier, treat it as variable-sized.
11300 (finish_record_type): Give the stub TYPE_DECL a name.
11301 (rest_of_record_type_compilation): Likewise.
11302 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11303 types are equivalent array types.
11304 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11305 even if the type is not passed by reference.
11306 (static_ctors, static_dtors): Delete.
11307 (end_subprog_body): Do not record constructors and destructors.
11308 (build_global_cdtor): Delete.
11309 (gnat_write_global_declarations): Do not call build_global_cdtor.
11311 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11312 -fRTS=rtp is specified.
11313 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11316 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11317 of the personality function with SJLJ exceptions.
11319 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11320 the name of the personality function with SJLJ exceptions.
11322 2007-08-14 Robert Dewar <dewar@adacore.com>
11323 Ed Schonberg <schonberg@adacore.com>
11325 * par.ads, par.adb: Improve handling of extra right parens.
11326 (Par): Remove flag From_Limited_With_Clause.
11328 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11329 Improve handling of extra right parens.
11331 2007-08-14 Robert Dewar <dewar@adacore.com>
11333 * par-tchk.adb (TF_Semicolon): Improve error recovery
11335 2007-08-14 Robert Dewar <dewar@adacore.com>
11336 Ed Schonberg <schonberg@adacore.com>
11338 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11339 enumeration type, mark all literals as referenced.
11340 (Eval_Attribute, case 'Image): If the argument is an enumeration
11341 literal and names are available, constant-fold but mark nevertheless as
11343 Clean up function names.
11344 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11346 (Requires_Simple_Name_Prefix): Removed.
11348 2007-08-14 Robert Dewar <dewar@adacore.com>
11349 Ed Schonberg <schonberg@adacore.com>
11351 * sem_ch11.adb: Improved warnings for unused variables
11353 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11354 is a synchronized interface, the derived type is limited.
11355 (Analyze_Object_Declaration): Mark the potential coextensions in the
11356 definition and expression of an object declaration node.
11357 (Build_Derived_Type): For the completion of a private type declaration
11358 with a derived type declaration, chain the parent type's representation
11359 items to the last representation item of the derived type (not the
11360 first one) if they are not present already.
11361 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11362 object declaration of forward references to tags.
11363 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11364 subprogram types can appear as access discriminants of synchronized
11366 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11367 given in prefixed form as a selected component.
11368 (Process_Discriminants): If not all discriminants have defaults, place
11369 error message on a default that is present.
11370 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11371 extend a synchronized tagged type.
11372 Improved warnings for unused variables
11373 (Is_Visible_Component): Fix a visibility hole on a component inherited
11374 by a private extension when parent is itself declared as a private
11375 extension, and the derivation is in a child unit.
11376 (Find_Hidden_Interface): Move spec from the package body.
11378 2007-08-14 Robert Dewar <dewar@adacore.com>
11379 Ed Schonberg <schonberg@adacore.com>
11381 * sem_ch5.adb: Improve warnings on redundant assignments
11383 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11385 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11386 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11387 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11388 is set to False. Improves handling of Known_[Not_]Null.
11389 (Wrong_Type): Special case address arithmetic attempt
11390 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11391 abstract interfaces just using the partial view of private types.
11392 (Has_Abstract_Interfaces): Add new formal to allow checking types
11393 covering interfaces using the partial view of private types.
11394 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11395 component still needs to be defined in this case, but is never
11396 initialized as VMs are using other dispatching mechanisms.
11397 (Abstract_Interface_List): For a protected type, use base type to get
11398 proper declaration.
11399 Improve warnings on redundant assignments
11400 (Is_Variable): Handle properly an implicit dereference of a prefixed
11402 (Build_Actual_Subtype): If this is an actual subtype for an
11403 unconstrained formal parameter, use the sloc of the body for the new
11404 declaration, to prevent anomalises in the debugger.
11406 2007-08-14 Robert Dewar <dewar@adacore.com>
11408 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11409 dispatching operation
11411 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11412 Gary Dismukes <dismukes@adacore.com>
11415 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11416 expanded aggregate code before allocator, and ahead of declaration for
11417 temporary, to prevent access before elaboration when the allocator is
11418 an actual for an access parameter.
11419 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11420 the TSD and the table of interfaces.
11421 (Convert_To_Assignments): Augment the test for delaying aggregate
11422 expansion for limited return statements to include the case of extended
11423 returns, to prevent creation of an unwanted transient scope.
11424 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11425 (Expand_Array_Aggregate): Handle aggregates associated with
11426 statically allocated dispatch tables.
11427 (Expand_Record_Aggregate): Handle aggregates associated with
11428 statically allocated dispatch tables.
11429 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11430 of anonymous access type.
11432 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11434 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11435 is a variable that renames a slice, use the variable itself in the
11436 expannsion when the renamed expression itself may be modified between
11437 the declaration of the renaming and the array assignment.
11439 2007-08-14 Jerome Guitton <guitton@adacore.com>
11441 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11442 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11443 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11444 New functions; dummy implementations.
11446 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11447 functions, used to implement the multi-tasks mode routines on VxWorks.
11449 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11450 New functions, thin
11451 binding to the VxWorks routines which have changed between VxWorks 5
11453 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11454 which are not callable from a RTP.
11456 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11457 implemented for the multi-tasks mode on VxWorks 5 and 6.
11459 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11461 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11464 2007-08-14 Vincent Celier <celier@adacore.com>
11466 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11467 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11468 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11469 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11470 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11471 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11472 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11474 (Major_Id_Name): New function.
11475 mlib-tgt.ads/mlib.tgt.adb:
11476 (Library_Major_Minor_Id_Supported): New function, default returns True
11477 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11478 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11479 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11480 Implementation of Library_Major_Minor_Id_Supported returns False
11482 (Clean_Library_Directory): If major/minor ids are supported, clean all
11484 Major update of the Project Manager and of the project aware tools,
11485 including gprmake, so that the same sources in the GNAT repository
11486 can be used by gprbuild.
11488 2007-08-14 Olivier Hainque <hainque@adacore.com>
11490 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11491 (GCC_ZCX_Support): Switch to True.
11493 * s-intman-solaris.adb (Notify_Exception): Call
11494 Adjust_Context_For_Raise before raising, as expected for signal
11495 handlers in general.
11497 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11498 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11499 to other implementation bodies.
11501 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11502 be visible by multiple implementation bodies.
11504 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11505 only for conditions coming from hardware.
11506 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11507 adjustments to signal context prior to exception raise from signal
11509 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11511 Solaris section: (__gnat_adjust_context_for_raise): New function.
11512 Implementation of the machine context adjustments to perform prior to
11513 raise from a signal handler. Version for both sparc and x86.
11514 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11515 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11516 prior to raising as expected for any handler, before possible nested
11517 faults to make sure all the contexts in a chain have been adjusted by
11518 the time we propagate.
11520 2007-08-14 Pascal Obry <obry@adacore.com>
11522 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11523 (SYSTEM_INFO): New record.
11524 (SetThreadIdealProcessor): New imported routine needed for supporting
11525 task_info pragma on Windows.
11527 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11528 info can be applied to the current host.
11529 (Create_Task): Set the ideal processor if information is present.
11531 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11532 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11534 2007-08-14 Olivier Hainque <hainque@adacore.com>
11536 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11537 stack size and initial stack pointer value for a given task.
11538 (Enter_Task): Get the stack attributes of the task we are entering and
11539 let the stack checking engine know about them.
11541 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11542 Let the stack-checking engine know about the initial sp value and stack
11543 size associated with the current task.
11544 (Set_Stack_Info): If a stack base has been notified for the current
11545 task, honor it. Fallback to the previous less accurate method otherwise.
11547 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11549 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11551 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11552 treatment of limited views uniform for all visible declarations in a
11553 limited_withed package.
11554 Set flag indicating that a subprogram body for a child unit has a
11556 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11557 separate declaration, remove the unit name from visibility after
11558 compilation, so that environment is clean for subsequent compilations.
11559 (Install_Limited_Context_Clauses): Do not install a
11560 limited_private_with_clause unless the current unit is a body or a
11561 private child unit.
11562 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11563 in the same fashion.
11564 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11565 it applies to the declaration of the current package body.
11566 (Remove_Private_With_Clauses): If there is a regular with_clause for
11567 the unit, delete Private_With_Clause from context, to prevent improper
11568 hiding when processing subsequent nested packages and instantiations.
11570 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11572 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11573 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11574 representing absolute path names.
11575 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11577 * cstreams.c (__gnat_full_name for VxWorks): Use
11578 __gnat_is_absolute_path to detect whether we need to add the current
11579 directory to normalize the path.
11581 2007-08-14 Javier Miranda <miranda@adacore.com>
11584 a-tags.adb (Displace): Associate a message with the raised CE
11586 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11587 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11588 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11590 (Default_Prim_Op_Count): Removed.
11591 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11592 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11593 Remove pragma Inline_Always.
11595 * rtsfind.ads (Default_Prim_Op_Count): Removed
11596 (Max_Predef_Prims): New entity
11597 (RE_Expanded_Name): Removed
11598 (RE_HT_Link): Removed
11599 (RE_Iface_Tag): Remmoved
11600 (RE_Ifaces_Table): Removed
11601 (RE_Interfaces_Array): Removed
11602 (RE_Interface_Data_Element): Removed
11603 (RE_Nb_Ifaces): Removed
11604 (RE_RC_Offset): Removed
11605 (RE_Static_Offset_To_Top): Removed
11607 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11609 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11610 Prim_Op_Count by Max_Predef_Prims.
11612 2007-08-14 Thomas Quinot <quinot@adacore.com>
11613 Vincent Celier <celier@adacore.com>
11615 * binde.adb (Elab_All_Links): Remove unnecessary call to
11616 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11617 won't be an associated Afile).
11618 (Elab_All_Links): Fail if a referenced unit cannot be found
11621 Fix comments in bindgen regarding consistency checks done in Bcheck:
11622 the checks are made across units within a partition, not across several
11624 Fix generation of C binder file for VxWorks.
11626 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11627 Generic_May_Lack_ALI, more descriptive of the current use of the
11628 predicate, and update documentation.
11630 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11631 reorganization and documentation update for the case of predefined
11632 library generics (for which we do not reference an Afile).
11634 2007-08-14 Robert Dewar <dewar@adacore.com>
11636 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11637 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11638 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11639 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11640 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11641 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11642 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11643 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11644 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11645 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11646 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11647 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11648 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11649 g-altcon.adb: Minor reformatting
11651 ada-tree.h: Delete empty line.
11653 ali.ads: Minor reformatting
11654 Clarification of comments.
11655 Minor spelling correction
11657 * exp_dbug.adb: Add Warnings Off to suppress new warning
11659 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11662 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11665 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11667 * a-textio.ads: Reorder the standard input/output/error declarations
11670 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11672 * par-ch2.adb: Recognize RM specially in errout
11673 Change 'R'M to RM in all error messages
11675 * scng.adb: Recognize RM specially in errout
11677 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11678 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11680 * s-direio.adb: Add missing routine header box.
11682 * sem_attr.ads: Add ??? comments
11684 * sem_eval.adb: Recognize RM specially in errout
11685 Change 'R'M to RM in all error messages
11687 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11689 * s-tasinf.ads: Fix minor comment typo.
11691 * a-cihama.adb: Minor comment addition
11693 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11696 * s-tasinf-tru64.ads: Fix minor comment typo.
11698 * itypes.ads: Comment update.
11700 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11703 * argv.c: Added protection against null gnat_argv and gnat_envp.
11705 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11706 warning message when Tolerate_Consistency_Errors is True.
11708 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11709 Any_Id, as this subprogram is only applicable to *type* entities (it
11710 sets RM_Size). Instead initialize just Esize and Alignment.
11712 2007-08-14 Bob Duff <duff@adacore.com>
11714 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11715 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11716 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11717 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11718 a-coorse.ads (Next): Applied pragma Inline.
11719 Make all Containers packages Remote_Types (unless they are already
11721 (Previous): applied pragma Inline
11722 (Elements_Type): is now a record instead of an array
11724 2007-08-14 Thomas Quinot <quinot@adacore.com>
11726 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11728 (Set_Item): When the new item is an element of the currently allocated
11729 table passed by reference, save a copy on the stack if we're going
11730 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11731 variable to determine whether to call Set_Last.
11733 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11734 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11735 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11736 some occurrences of the pattern
11738 T.Table (T.Last) := Value;
11739 with a cleaner call to
11742 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11743 Gary Dismukes <dismukes@adacore.com>
11744 Thomas Quinot <quinot@adacore.com>
11746 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11747 derived type with interface progenitors use the analyzed formal as the
11748 parent of the actual, to create renamings for all the inherited
11749 operations in Derive_Subprograms.
11750 (Collect_Previous_Instances): new procedure within of
11751 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11752 unit being loaded, to ensure that the generation of global symbols is
11753 consistent in different compilation modes.
11754 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11755 takes progenitor types into account.
11756 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11757 traversing over the primitives of the formal and actual types to locate
11758 any abstract subprograms of the actual type that correspond to a
11759 nonabstract subprogram of the formal type's ancestor type(s), and issue
11760 an error if such is found.
11761 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11762 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11763 Remove bogus guard around calls to Inherit_Context.
11764 (Reset_Entity): If the entity is the selector of a selected component
11765 that denotes a named number, propagate constant-folding to the generic
11766 template only if the named number is global to the generic unit.
11767 (Set_Instance_Env): Only reset the compilation switches when compiling
11768 a predefined or internal unit.
11770 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11772 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11773 parameter to determine whether operation applies to the prefix.
11774 (Complete_Object_Operation): If actual has an access type and
11775 controlling formal is not an in_parameter, reject the actual if it is
11776 an access_to_constant type.
11777 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11778 type, the candidate operations are found in the scope of declaration of
11779 the type, because the type has no primitive subprograms.
11780 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11781 a private extension, only examine visible components before trying to
11782 analyze as a prefixed call.
11783 Change Entity_List to Type_To_Use, for better readability.
11784 (Has_Fixed_Op): Use base type when checking whether the type of an
11785 operator has a user-defined multiplication/division
11786 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11787 user-defined operators are available for fixed-point types.
11789 2007-08-14 Thomas Quinot <quinot@adacore.com>
11790 Ed Schonberg <schonberg@adacore.com>
11792 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11793 formal At_Any_Place indicating, when True, that we want to test for
11794 availability of the stream attribute at any place (as opposed to the
11795 current visibility context only).
11796 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11797 purpose of enforcing E.2.2(8) only if it is not available at any place.
11798 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11799 when checking the legality of an extension aggregate in a preelaborable
11800 package. Treat the literal null as a valid default expression in a
11801 component declaration for a type with preelaborable initialization.
11802 A limited interface is a legal progenitor for the designated type of a
11803 remote access to class-wide type.
11805 2007-08-14 Thomas Quinot <quinot@adacore.com>
11806 Ed Schonberg <schonberg@adacore.com>
11808 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11809 reference): Use correct entity as denoted entity for the selector of
11810 the rewritten node.
11811 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11812 setting the Referenced_As_LHS flag for entities that are implicitly
11814 (Find_Type): If the type is an internally generated incomplete type,
11815 mark the full view as referenced, to prevent spurious warnings.
11816 (Find_Selected_Component, Has_Components): Handle properly non-limited
11817 views that are themselves incomplete types.
11818 Handle interfaces visible through limited-with clauses.
11819 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11820 subprogram generic actual for which we have generated a renaming.
11821 Warn when the renaming introduces a homonym of
11822 the renamed entity, and the renamed entity is directly visible.
11824 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11825 Hristian Kirtchev <kirtchev@adacore.com>
11827 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11828 appear in the subtree to the current allocator if it is not a static
11830 (Resolve_Allocator): Perform cleanup if resolution has determined that
11831 the allocator is not a coextension.
11832 (Resolve): Skip an interpretation hidden by an abstract operator only
11833 when the type of the interpretation matches that of the context.
11834 (Resolve): When looping through all possible interpretations of a node,
11835 do not consider those that are hidden by abstract operators.
11836 (Resolve_Actuals): When verifying that an access to class-wide object
11837 is an actual for a controlling formal, ignore anonymous access to
11838 subprograms whose return type is an access to class_wide type.
11839 (Resolve_Slice): If the prefix of the slice is a selected component
11840 whose type depends on discriminants, build its actual subtype before
11841 applying range checks on the bounds of the slice.
11842 (Valid_Conversion): In an instance or inlined body, compare root types,
11843 to prevent anomalies between private and public views.
11844 (Resolve): Improve error message for ambiguous fixed multiplication
11845 expressions that involve universal_fixed multiplying operations.
11847 2007-08-14 Javier Miranda <miranda@adacore.com>
11848 Hristian Kirtchev <kirtchev@adacore.com>
11850 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11851 location to allow the correct generation of errors in case of
11852 restrictions applied to the expanded code.
11853 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11854 function if the condition does not reference them.
11855 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11858 2007-08-14 Thomas Quinot <quinot@adacore.com>
11859 Pablo Oliveira <oliveira@adacore.com>
11861 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11862 typecode parameters for a union (in a variant record), remove
11863 extraneous layer of Any wrapping for member label.
11864 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11865 elabration statements, register the package with the name server
11866 at the beginning, not at the end, of the elaboration statements so
11867 that they can create remote access to subprogram values that designate
11868 remote subprograms from the package.
11870 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11872 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11873 values to compute the number of seconds since the Unix Epoc in order to
11874 account for Daylight Savings Time. Perform special processing for dates
11875 that are earlier than the Unix Epoc to obtain a negative number.
11877 2007-08-14 Emmanuel Briot <briot@adacore.com>
11879 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11882 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11884 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11885 binder-generated file is not in Ada.
11886 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11887 recorded in the ALI file.
11888 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11890 2007-08-14 Vincent Celier <celier@adacore.com>
11892 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11893 (Output_Source): Do nothing if parameter is No_Sdep_Id
11895 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11896 shared library it imports has a later time stamp.
11897 (Check): Resolve the symbolic links in the path name of the object
11899 Check that the ALI file is in the correct object directory
11900 Check if a file name does not correspond to the mapping of units
11902 (Display_Version): New procedure
11903 (Initialize): Process switches --version and --help
11904 Use type Path_Name_Type for path name
11906 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11908 * impunit.adb: Re-organize System.Random_Numbers and
11909 GNAT.Random_Numbers and add to builds.
11911 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11913 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11915 * a-assert.ads, a-assert.adb: New files.
11917 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11919 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11920 if AAMP_On_Target is True, then the size of the type encompasses two
11921 addresses (a static link and a subprogram address), except in the case
11922 of library-level access types.
11924 2007-08-14 Vincent Celier <celier@adacore.com>
11926 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11928 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11929 possible trailing spaces.
11930 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11932 2007-08-14 Javier Miranda <miranda@adacore.com>
11934 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11935 null-excluding access types.
11937 2007-08-14 Javier Miranda <miranda@adacore.com>
11939 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11940 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11941 of private types add missing check on matching interfaces in the
11942 partial and full declarations.
11943 (Analyze_Protected_Type): Code cleanup.
11944 (Analyze_Task_Type): Code cleanup.
11946 2007-08-14 Javier Miranda <miranda@adacore.com>
11948 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11949 generated interface thunk.
11951 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11953 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11954 obsolescent warning on application of 'Class to an incomplete type.
11956 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11957 prevent obsolescent warning on application of 'Class to an incomplete
11960 2007-08-14 Pascal Obry <obry@adacore.com>
11962 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11965 2007-08-14 Cyrille Comar <comar@adacore.com>
11967 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11968 since it is potentially used in cases implying double finalization of
11971 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11973 * s-tasini.adb (Get_Stack_Info): Move this function to
11974 System.Soft_Links.Tasking because it is common to the full and the
11975 restricted run times.
11976 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11977 in SSL.Tasking.Init_Tasking_Soft_Links.
11979 * s-solita.adb (Get_Stack_Info): Function moved from
11980 System.Tasking.Initialization because it is common to the full and the
11981 restricted run times.
11982 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11984 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11986 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11987 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11988 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11991 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11994 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11996 * s-veboop.adb (SU): New named number initialized to
11997 System.Storage_Unit.
11998 (True_Val): The initialization expression is revised to use SU (=
11999 Storage_Unit) rather than assuming 8 for the component size of an
12000 unpacked Boolean array.
12002 2007-08-14 Tristan Gingold <gingold@adacore.com>
12004 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
12006 * tb-ivms.c: New file.
12008 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
12010 2007-08-14 Geert Bosch <bosch@adacore.com>
12012 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
12013 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
12014 Add required linker pragmas for automatically linking with the gnalasup
12015 linear algebra support library, and the systems math library.
12016 Rename cdot to cdotu and zdot to zdotu.
12017 Update header comment to describe purpose of package.
12019 2007-08-14 Thomas Quinot <quinot@adacore.com>
12021 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
12022 an explicitly specified Associated_Final_Chain, use that list.
12023 (Expand_N_Package_Body): Build dispatch tables of library level tagged
12025 (Expand_N_Package_Declaration): Build dispatch tables of library level
12026 tagged types. Minor code cleanup.
12028 2007-08-14 Vincent Celier <celier@adacore.com>
12030 * gnatchop.adb (Terminate_Program): Remove exception and use
12031 Types.Terminate_Program instead.
12033 * osint.ads, osint.adb (Current_Exit_Status): New global variable
12034 (Find_Program_Name): Added protection against empty name.
12035 (OS_Exit_Through_Exception): New procedure
12037 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
12038 (OS_Exit_Default): New procedure that contains the previous
12039 implementation of procedure OS_Exit.
12040 (Final_Value): Remove obsolete Interix stuff.
12042 2007-08-14 Thomas Quinot <quinot@adacore.com>
12044 * g-socket.ads: Reorganize example code so that it also works on
12047 2007-08-14 Tristan Gingold <gingold@adacore.com>
12049 * g-trasym.ads: AIX now supports symbolic backtraces.
12051 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12053 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12054 units being loaded to detect circularities. A circularity may be
12055 present even if the current chain of pending units to load starts from
12056 a limited_with_clause.
12058 * lib-load.ads: Change profile of Load_Unit to use a with_clause
12059 rather than a boolean flag, in order to detect circularities in
12062 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12063 than propagating the From_Limited_With flag, in order to handle
12064 properly circularities involving with_clauses.
12066 2007-08-14 Nicolas Setton <setton@adacore.com>
12068 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12071 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12073 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12074 to build for libgnala.
12075 libgnat: Add rules to build libgnala.a
12076 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12077 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12078 Add s-osinte-vxworks-kernel.adb to the target pairs of the
12079 kernel run-time lib for VxWorks 6, which would provide a different
12080 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12081 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12082 running ZCX by default.
12083 Add g-sttsne-locking to LynxOS version.
12084 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12085 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12087 * system-darwin-x86.ads: New file.
12089 * Make-lang.in: Delete files before copying onto them, so if they are
12090 read-only, the copy won't fail.
12091 Update dependencies
12093 2007-08-14 Pascal Obry <obry@adacore.com>
12095 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12098 2007-08-14 Vincent Celier <celier@adacore.com>
12100 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12101 (Gcc): Initialize Gcc_Name at the first call
12103 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12105 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12106 with_clauses of the enclosing unit when analyzing the package
12107 specification of a nested instance.
12109 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12111 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12112 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12113 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12114 layout of N_Allocator.
12116 2007-08-14 Thomas Quinot <quinot@adacore.com>
12118 * rtsfind.adb (Check_RPC): Add PCS version check.
12120 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12121 (Gnat_Free_Software): New function.
12123 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12124 the PCS_Version value from s-parint, used to check that it is consistent
12125 with what exp_dist expects.
12127 * s-parint.ads (PCS_Version): New entity for checking consistency
12128 between exp_dist and PCS.
12130 * gen-soccon.c: (SO_REUSEPORT): New constant.
12132 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12134 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12135 variable Sub_Second to Duration in order to accomodate a larger range
12136 of arithmetic operations.
12138 2007-08-14 Bob Duff <duff@adacore.com>
12140 * g-sttsne-locking.ads: Move comments from spec to body.
12141 * g-sttsne-locking.adb: Move comments from spec to body.
12142 * g-sttsne-vxworks.ads: Removed.
12143 * g-sttsne-vxworks.adb: Removed.
12145 2007-08-11 Ian Lance Taylor <iant@google.com>
12147 * misc.c (gnat_get_alias_set): Change return type to
12150 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12152 * decl.c, utils2.c: Fix whitespace in last change.
12154 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12156 * decl.c (compare_field_bitpos): Constify.
12157 * utils2.c (compare_elmt_bitpos): Likewise.
12159 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
12161 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12162 anonymous access type.
12163 (pthread_sigmask): Now take an access sigset_t.
12165 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12167 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12169 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
12171 PR tree-optimization/25737
12172 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12174 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12176 * trans.c (Attribute_to_gnu): When subtracting an
12177 offset from a pointer, use POINTER_PLUS_EXPR with
12178 NEGATE_EXPR instead of MINUS_EXPR.
12179 (gnat_to_gnu): Likewise.
12180 * utils.c (convert): When converting between
12181 thin pointers, use POINTER_PLUS_EXPR and sizetype
12183 * utils2.c (known_alignment): POINTER_PLUS_EXPR
12184 have the same semantics as PLUS_EXPR for alignment.
12185 (build_binary_op): Add support for the semantics of
12186 POINTER_PLUS_EXPR's operands.
12187 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12189 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
12191 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12192 of get_signed_or_unsigned_type.
12193 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12195 2007-06-11 Bob Duff <duff@adacore.com>
12196 Thomas Quinot <quinot@adacore.com>
12198 * g-stsifd-sockets.adb (Create): Work around strange behavior of
12199 'bind' on windows that causes 'connect' to fail intermittently, by
12200 retrying the 'bind'.
12201 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12203 2007-06-10 Duncan Sands <baldrick@free.fr>
12205 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12206 than to void, for the fields when making a new fat pointer type.
12207 (gnat_substitute_in_type): Now substitute_in_type.
12208 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
12209 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12210 * utils.c (update_pointer_to): Update fat pointers by updating the
12211 dummy node pointers used for the fields.
12213 2007-06-06 Thomas Quinot <quinot@adacore.com>
12214 Bob Duff <duff@adacore.com>
12216 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12217 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12218 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
12219 constant Thread_Blocking_IO, always True by default, set False
12220 on a per-runtime basis.
12221 (Need_Netdb_Buffer): New constant.
12223 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12224 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12227 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12228 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12229 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12230 child package Task_Safe_NetDB
12231 (Host_Error_Messages): Add stub body.
12232 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12234 * g-soccon-mingw.ads: Add Windows-specific constants.
12235 (Need_Netdb_Buffer): New constant.
12236 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12237 wrapper and import inet_addr(3) from the standard sockets library
12239 (In_Addr): Add alignment clause.
12240 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12242 2007-06-06 Robert Dewar <dewar@adacore.com>
12244 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12245 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12246 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12247 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12248 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12249 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12250 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12251 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12252 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12253 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12254 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12255 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12256 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12257 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12258 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12259 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12260 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12261 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12262 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12263 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12264 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12265 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12266 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12267 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12268 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12269 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12270 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12271 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12272 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12273 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12274 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12275 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12276 Unchecked_* by Ada.Unchecked_*
12278 2007-06-06 Robert Dewar <dewar@adacore.com>
12280 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12281 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12282 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12283 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12284 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12285 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12287 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12288 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12289 s-tasloc.adb, s-tasloc.ads: New files.
12291 2007-06-06 Bob Duff <duff@adacore.com>
12293 * g-expect-vms.adb:
12294 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12295 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12296 (Send_Signal, Close): Raise Invalid_Process if the process id is
12298 (Pattern_Matcher_Access): Is now a general access type to be able to
12299 use aliased string.
12301 2007-06-06 Thomas Quinot <quinot@adacore.com>
12302 Arnaud Charlet <charlet@adacore.com>
12304 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12305 (SIGEMT is now used instead of SIGTERM on AIX).
12307 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12308 (Time_Slice_Supported): Set to True.
12309 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12311 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12313 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12314 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12315 express the bounds of Duration as Time. Raise Time_Error when the
12316 result is greater or equal to the higher bound of Duration (on the
12318 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12319 Ada_High_And_Leaps.
12320 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12321 Ada_High_And_Leaps.
12322 ("-" (Time, Time)): Reorder code.
12323 (All_Leap_Seconds): Removed.
12324 (Arithmetic_Operations.Add): Remove sign related kludge.
12325 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12326 with flag Leap_Support.
12327 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12328 (Check_Within_Time_Bounds): New procedure.
12329 (Clock): Control the leap seconds processing with flag Leap_Support.
12330 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12331 (Formatting_Operations.Split): Control the leap seconds processing with
12333 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12334 with flag Leap_Support. Adjust the year, month and day (if applicable)
12335 when the value of day seconds designates a new day.
12336 (Split): Use parameter associations for better readability. Integrate
12338 (Time_Of): Use parameter associations for better readability. Integrate
12341 * a-calfor.adb (Split): Use parameter associations for better
12342 readability. Integrate flag Is_Ada_05.
12343 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12344 better readability. Integrate flag Is_Ada_05.
12346 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12348 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12349 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12350 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12351 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12352 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12353 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12354 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12355 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12356 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12357 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12358 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12359 time when entering this routine to detect a backward clock setting
12360 (manual setting or DST adjustment), to avoid waiting for a longer delay
12362 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12363 Remove handling of deferred priority change, and replace by setting the
12364 task priority directly, as required by AI-188.
12366 (Max_Task_Image_Length): New constant.
12367 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12368 (Dynamic_Priority_Support): Removed, no longer needed.
12369 (Poll_Base_Priority_Change): Ditto.
12370 (Set_Ceiling): Add this procedure to change the ceiling priority
12371 associated to a lock. This is a dummy implementation because dynamic
12372 priority ceilings are not supported by the underlying system.
12374 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12375 accepting a RV with its priority boosted.
12376 Remove handling of deferred priority change, and replace by setting the
12377 task priority directly, as required by AI-188.
12379 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12381 Remove handling of deferred priority change, and replace by setting the
12382 task priority directly, as required by AI-188.
12383 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12384 of Self_Id earlier.
12386 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12387 (Poll_Base_Priority_Change): Removed.
12388 Code clean up: use SSL.Current_Target_Exception.
12390 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12391 to run as this is a potentially dispatching point.
12392 (Call_Synchronous): Use Local_Defer_Abort.
12393 (Callable): Relax assertion.
12394 (Selective_Wait): Relax assertion in case abort is not allowed.
12395 Remove handling of deferred priority change, and replace by setting the
12396 task priority directly, as required by AI-188.
12398 * s-tasuti.adb (Make_Passive): Adjust assertions.
12399 Remove handling of deferred priority change, and replace by setting the
12400 task priority directly, as required by AI-188.
12402 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12404 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12405 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12406 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12407 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12408 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12409 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12410 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12411 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12412 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12413 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12414 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12415 This patch changes the largest non-binary modulus from 2**31-1 to
12417 (Compiler_System_Version): Removed, no longer used.
12418 Clean up system files by removing flags only used on a single target.
12419 Also remove obsolete flags, only used during bootstrap from system.ads
12420 (Address): Add a pragma Preelaborable_Initialization.
12422 * system-aix.ads: Ditto.
12423 (GCC_ZCX_Support): Set to true.
12424 Update priority range on AIX and map Ada priorities to target
12425 priorities appropriately for different scheduling policies.
12427 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12429 2007-06-06 Vincent Celier <celier@adacore.com>
12431 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12432 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12434 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12435 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12436 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12437 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12438 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12439 MLib.Tgt, containing the default versions of the exported subprograms.
12440 For each platform, create a specific version of the body of new child
12441 package MLib.Tgt.Specific that contains only the body of subprograms
12442 that are different from the default.
12443 (Archive_Builder_Append_Options): New function.
12445 2007-06-06 Matthew Gingell <gingell@adacore.com>
12447 * s-osinte-aix.adb: Map Ada priorities to target priorities
12448 appropriately for different scheduling policies.
12450 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12452 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12454 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12455 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12457 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12459 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12460 Noop on VMS, added for interface commonality.
12462 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12463 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12464 Olivier Hainque <hainque@adacore.com>
12466 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12467 renamed expression of a full renaming at toplevel.
12468 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12469 the values the constant is initialized to if it is an N_Allocator.
12470 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12471 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12472 (make_aligning_type): Accept an extra ROOM argument for storage to be
12473 made available before the aligned field, and an extra BASE_ALIGN
12474 argument for callers to pass the alignment guaranteed to be honored for
12475 the whole aligning object. Avoid call to finish_record_type, which only
12476 interferes with the sizes we want to set.
12477 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12478 make_aligning_type for super-aligned objects on stack.
12479 (components_to_record): Pass the adjusted size of the type when creating
12480 fields in the qualified union for the variant part.
12481 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12482 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12484 (maybe_pad_type): Set TYPE_USER_ALIGN.
12485 (make_aligning_type): Likewise.
12486 ALIGN argument is unsigned int.
12487 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12488 (gnat_to_gnu_param): Likewise, for parameters.
12489 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12490 if it is constant and stems from a function call.
12491 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12492 of the record is specified. Adjust accordingly.
12493 (adjust_packed): New static function.
12494 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12495 (components_to_record): Likewise.
12496 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12497 side-effects if the object is deemed constant.
12498 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12499 type instead of merely finalizing it. Tidy.
12500 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12501 <E_Access_Type>: Likewise.
12502 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12503 (defer_debug_level): Delete.
12504 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12505 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12507 <E_Record_Type>: Do not explicitly defer finalizing the type.
12508 Adjust for write_record_type_debug_info renaming.
12509 <E_Subprogram_Type>: Likewise.
12510 Finalize deferred types right after deferred incomplete types are
12512 (rest_of_type_decl_compilation): New global function.
12513 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12514 (components_to_record): Propagate the packedness to the fields of the
12515 qualified union type if there is a variant part.
12516 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12517 instead of inline code to adjust the XUT field offsets.
12518 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12519 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12520 and write the debug info if the type derives from a discriminated one.
12521 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12522 <E_Array_Subtype>: Likewise.
12523 <E_String_Literal_Subtype>: Likewise.
12524 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12525 an alignment clause.
12526 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12527 before giving warning.
12528 (prepend_one_attribute_to): New function, helper to prepend an attribute
12529 to an attribute list.
12530 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12531 (prepend_attributes): Likewise.
12532 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12533 <E_Array_Type>: Declare the padding type for the element type, if any.
12534 <E_Array_Subtype>: Likewise.
12535 (defer_limited_with): New variable.
12536 (Gigi_Equivalent_Type): New function.
12537 (gnat_to_gnu_entity): Use it at start and use result throughout.
12538 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12539 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12540 indirection, precompute if unconstrained array to simplify logic, and
12541 use defer_limited_with to defer elaboration of some types from limited
12543 (finalize_from_with_types): New function.
12545 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12546 Eric Botcazou <ebotcazou@adacore.com>
12547 Tristan Gingold <gingold@adacore.com>
12548 Olivier Hainque <hainque@adacore.com>
12550 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12551 adding guard that the entity is an E_Constant before testing presence
12552 of Full_view (and remove unnecessary test that entity is not a type).
12553 For a CONST_DECL used by reference, manually retrieve
12554 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12555 (struct language_function): Move from utils.c to here.
12556 (struct parm_attr): New structure.
12557 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12558 (f_parm_attr_cache): New macro.
12559 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12560 expressions for the 'First, 'Last and 'Length attributes of the
12561 unconstrained array IN parameters.
12562 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12563 Allocate the information structure for the function earlier, as well
12564 as the language-specific part.
12565 If the parameter attributes cache has been populated, evaluate the
12566 cached expressions on entry.
12567 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12568 N_Procedure_Call_Statement and N_Indexed_Component.
12569 (Pragma_to_gnu): Translate inspection_point to an asm statement
12570 containaing a comment and a reference to the object (either its address
12571 for BLKmode or its value).
12572 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12573 to go to DECL_INITIAL. Together with the size constraint relaxation
12574 in create_var_decl, enlarges the set of situations in which an
12575 identifier may be used as an initializer without implying elaboration
12577 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12578 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12580 (maybe_stabilize_reference): Remove lvalues_only parameter.
12581 (gnat_stabilize_reference): Adjust for above change.
12582 (gnat_to_gnu): Do not set location information on the result
12583 if it is a reference.
12584 (add_cleanup): Add gnat_node parameter and set the location of the
12586 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12587 (Exception_Handler_to_gnu_zcx): Likewise.
12588 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12589 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12590 the former right after the latter.
12591 (start_stmt_group): Make global.
12592 (end_stmt_group): Likewise.
12593 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12595 (gnu_program_error_label_stack): Likewise.
12596 (gigi): Initialize them.
12597 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12598 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12600 (push_exception_label_stack): New function.
12601 (takes_address): New function.
12603 * utils.c (struct language_function): Move to trans.c from here.
12604 (unchecked_convert): Do not wrap up integer constants in
12605 VIEW_CONVERT_EXPRs.
12606 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12607 the latter for aggregate types, unexpected by later passes, and relax an
12608 arbitrary size constraint on the former.
12609 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12610 to compare the sizes.
12611 (convert_vms_descriptor): When converting to a fat pointer type, be
12612 prepared for a S descriptor at runtime in spite of a SB specification.
12613 (shift_unc_components_for_thin_pointers): New function.
12614 (write_record_type_debug_info): For variable-sized fields, cap the
12615 alignment of the pointer to the computed alignment.
12616 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12617 If REP_LEVEL is 2, do not compute the sizes.
12618 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12619 (build_unc_object_type): Likewise.
12620 (declare_debug_type): New function.
12622 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12624 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12625 no statement is expandable anymore.
12626 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12627 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12628 when the user requested it explicitely.
12629 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12631 (get_alias_set): Return alias set 0 for a type if
12632 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12634 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12635 (DECL_FUNCTION_STUB): New accessor macro.
12636 (SET_DECL_FUNCTION_STUB): New setter macro.
12638 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12640 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12643 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12645 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12646 Rename to Abort_Task_Interrupt to be able to keep the same interface
12647 as the rest of the targets.
12649 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12650 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12652 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12655 2007-06-06 Robert Dewar <dewar@adacore.com>
12657 * a-chahan.ads: Remove obsolescent pragmas
12659 * a-chlat1.ads: Minor reformatting
12661 2007-06-06 Robert Dewar <dewar@adacore.com>
12663 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12666 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12669 * errout.ads (Finalize): Changed interface
12670 (Output_Messages): New procedure
12671 (Compilation_Errors): New Interface
12673 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12674 Finalize/Output_Messages interface for Errout
12675 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12678 2007-06-06 Thomas Quinot <quinot@adacore.com>
12679 Olivier Hainque <hainque@adacore.com>
12680 Robert Dewar <dewar@adacore.com>
12682 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12684 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12685 propagation starts, to let debuggers know about the event in a reliable
12687 (Local_Raise): Moved to System.Exceptions
12688 More convenient to have this as a separate unit
12690 * s-except.adb, s-except.ads: New files.
12692 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12693 Debug_Unhandled_Exception in System.Exceptions where it belongs
12694 together with a couple of other debug helpers.
12695 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12696 the former Unhandled_Exception.
12698 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12699 (Warn_No_Exception_Propagation): New procedure
12700 (Warn_If_No_Propagation): Rewritten for new warning generation
12701 (Expand_Exception_Handlers): New warning generation
12702 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12703 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12704 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12705 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12706 even if restriction is set (makes life easier in Check_Returns)
12707 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12708 checking exception identities.
12709 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12710 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12711 block for handler (used by Check_Returns)
12712 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12713 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12714 remove all exception handlers when optimizing local raise statements.
12715 (Find_Local_Handler): Use Get_Renamed_Entity
12716 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12717 marked analyzed after expanding exception handlers, do not generate
12718 redundant cleanup actions, because they have been constructed already.
12720 2007-06-06 Thomas Quinot <quinot@adacore.com>
12722 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12723 presence of this categorization pragma is mandated by the language.
12724 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12727 2007-06-06 Vincent Celier <celier@adacore.com>
12728 Robert Dewar <dewar@adacore.com>
12730 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12731 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12732 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12733 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12734 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12735 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12736 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12737 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12738 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12739 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12740 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12742 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12743 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12744 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12745 Use variables of types File_Name_Type and Unit_Name_Type in error
12747 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12748 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12750 Define flags Flag217-Flag230 with associated subprograms
12751 (Flag_Word5): New record type.
12752 (Flag_Word5_Ptr): New access type.
12753 (To_Flag_Word5): New unchecked conversion.
12754 (To_Flag_Word5_Ptr): Likewise.
12755 (Flag216): New function.
12756 (Set_Flag216): New procedure.
12758 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12760 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12763 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12765 2007-06-06 Javier Miranda <miranda@adacore.com>
12767 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12769 (Object_Specific_Data_Array): This is now internal to the package.
12770 (Object_Specific_Data): This is now internal to the package.
12771 (Select_Specific_Data_Element): This is now internal to the package.
12772 (Select_Specific_Data_Array): This is now internal to the package.
12773 (Select_Specific_Data): This is now internal to the package.
12774 (Offset_To_Top_Function_Ptr): This is now public.
12775 (To_Offset_To_Top_Function_Ptr): Removed.
12776 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12777 local to subprogram Offset_To_Top.
12778 (Predefined_DT): Removed.
12779 (Typeinfo_Ptr): Removed.
12780 (OSD): This function is now internal to this package.
12781 (SSD): This function is now internal to this package.
12782 (DT): New function that displaces the pointer to the table of primitives
12783 to get access to the enclosing wrapper record.
12784 (IW_Membership): Code cleanup.
12785 (Offset_To_Top): Code cleanup.
12786 (Predefined_DT): Removed.
12787 (Register_Interface_Tag): Removed.
12788 (Set_Interface_Table): Removed.
12789 (Set_Offset_Index): Removed.
12790 (Set_Offset_To_Top): Code cleanup.
12791 (Set_OSD): Removed.
12792 (Set_Signature): Removed.
12793 (Set_SSD): Removed.
12794 (Set_Tagged_Kind): Removed.
12795 (Typeinfo_Ptr): Removed.
12797 (Displace): Add missing check on null actual.
12799 * exp_disp.ads, exp_disp.adb
12800 (Select_Expansion_Utilities): Removed.
12801 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12802 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12803 the interface requires a new parameter.
12804 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12805 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12806 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12807 Done to remove package Select_Expansion_Utilities.
12808 (Make_DT): New implementation for statically allocated dispatch tables.
12809 (Make_Secondary_DT): Moved to the scope of Make_DT.
12810 (Register_Primitive): Code cleanup plus incoporate the use of the new
12811 function DT_Address_Attribute.
12812 (Expand_Interface_Thunk): The profile of this subprogram has been
12813 changed to return the Thunk_Id and the corresponding code.
12814 (Fill_DT_Entry): Removed. Its functionality is now provided by
12815 subprogram Register_Primitive.
12816 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12817 subprogram Register_Primitive.
12818 (Register_Primitive): New subprogram that incorporates the previous
12819 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12820 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12821 was only required to call Make_DT_Access_Action, which is now removed.
12822 (Ada_Actions): Removed
12823 (Action_Is_Proc): Removed
12824 (Action_Nb_Arg): Removed
12825 Replace all the calls to Make_DT_Access_Action by direct calls to
12826 Make_Procedure_Call_Statement or Make_Function_Call.
12827 (Set_DTC_Entity_Value): New subprogram.
12828 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12829 (Expand_Interface_Thunk): Add missing support for primitives that are
12830 functions with a controlling result (case in which there is no need
12831 to generate the thunk).
12833 * exp_atag.ads, exp_atag.adb
12834 (Build_DT): New subprogram that displaces the pointer to reference the
12835 base of the wrapper record.
12836 (Build_Typeinfo_Offset): Removed.
12837 (RTE_Tag_Node): Removed.
12838 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12839 (Build_Get_RC_Offset): Removed.
12840 (Build_Inherit_Predefined_Prims): Removed.
12841 (Build_Inherit_TSD: Removed.
12842 (Build_New_TSD): Removed.
12843 (Build_Set_External_Tag): Removed.
12844 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12845 (Build_Set_Prim_Op_Address): Add documentation.
12846 (Build_Set_TSD): Removed.
12848 * rtsfind.ads, rtsfind.adb
12849 (Load_Fail): If load fails and we are not in configurable run-time
12850 mode, then raise Unrecoverable_Error.
12851 (Text_IO_Kludge): Generate an error message if a run-time library is
12852 not available in a given run-time (ie. zfp run-time).
12853 (RTE_Record_Component): Add code to check that the component we search
12854 for is not found in two records in the given run-time package.
12855 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12856 (RE_DT_Predef_Prims_Offset): New entity
12857 (RE_Static_Offset_To_Top): New entity
12858 (RE_HT_Link): New entity.
12859 (System_Address_Image): Addition of this run-time package.
12860 (RE_Address_Image): New entity.
12861 (RE_Abstract_Interface): Removed.
12862 (RE_Default_Prim_Op_Count): Removed.
12863 (RE_DT_Entry_Size): Removed.
12864 (RE_DT_Min_Prologue_Size): Removed.
12865 (RE_DT_Prologue_Size): Removed.
12866 (RE_Ifaces_Table_Ptr): Removed.
12867 (RE_Interface_Data_Ptr): Removed.
12868 (RE_Type_Specific_Data): Removed.
12869 (RE_Primary_DT): Removed.
12870 (RE_Register_Interface_Tag): Removed.
12871 (RE_Set_Offset_Index): Removed.
12872 (RE_Set_OSD): Removed.
12873 (RE_Set_SSD): Removed.
12874 (RE_Set_Signature): Removed.
12875 (RE_Set_Tagged_Kind): Removed.
12876 (RE_Address_Array): New entity.
12877 (RE_DT): New entity.
12878 (RE_Iface_Tag): New entity.
12879 (RE_Interfaces_Table): New entity.
12880 (RE_No_Dispatch_Table): New entity.
12881 (RE_NDT_Prims_Ptr): New entity.
12882 (RE_NDT_TSD): New entity.
12883 (RE_Num_Prims): New entity.
12884 (RE_Offset_To_Top_Function_Ptr): New entity.
12885 (RE_OSD_Table): New entity.
12886 (RE_OSD_Num_Prims): New entity.
12887 (RE_Predef_Prims): New entity
12888 (RE_Predef_Prims_Table_Ptr): New entity.
12889 (RE_Primary_DT): New entity.
12890 (RE_Signature): New entity.
12891 (RE_SSD): New entity.
12892 (RE_TSD): New entity.
12893 (RE_Type_Specific_Data): New entity.
12894 (RE_Tag_Kind): New entity.
12896 2007-06-06 Thomas Quinot <quinot@adacore.com>
12898 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12899 C imported variable.
12900 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12903 2007-06-06 Robert Dewar <dewar@adacore.com>
12905 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12908 2007-06-06 Vincent Celier <celier@adacore.com>
12910 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12911 is room for at least one digit and the minus sign.
12912 (Put.Put_Character): Never put a character outside of the range of
12915 2007-06-06 Olivier Hainque <hainque@adacore.com>
12916 Eric Botcazou <ebotcazou@adacore.com>
12918 * utils2.c (build_allocator): Provide the extra arguments to
12919 make_aligning_type for super-aligned objects allocated from the default
12920 pool. Leave enough room for a pointer before the aligning field, and
12921 store the system's allocator return value there.
12922 (build_call_alloc_dealloc): When releasing a super-aligned object,
12923 retrieve the system's allocator return value from where build_allocator
12924 has stored it, just ahead of the adjusted address we are passed.
12925 (build_call_raise): Handle properly the generation of line numbers when
12926 the node is marked No_Location.
12927 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12928 by using DECL_UID on ties.
12929 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12931 (build_call_raise): Handle converting exception into goto; support new
12933 (build_component_ref): Add new arg to build_call_raise.
12935 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12937 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12938 "." in the case of nnn.xxx when nnn terminates with an underscore.
12939 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12941 2007-06-06 Robert Dewar <dewar@adacore.com>
12943 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12945 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12946 Vincent Celier <celier@adacore.com>
12947 Robert Dewar <dewar@adacore.com>
12949 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12951 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12952 ((destructor)) for adafinal, even when switch -a is used.
12953 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12955 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12956 Output_Linker_Option_List is set. Suppress this formatting when
12957 Zero_Formatting is set.
12958 Add case for CLI_Target.
12959 (System_Restrictions_Used): New flag, used to avoid generating with of
12960 System_Restrictions and initialization of the data unless there is
12961 some use of System.Restrictions in the partition.
12962 (Check_System_Restrictions_Used): New procedure
12964 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12965 since we only with this unit in the binder file if it is used elsewhere
12968 2007-06-06 Vincent Celier <celier@adacore.com>
12970 * bindusg.adb: Add line for @<response file>
12971 Add lines for new switches -R and -Z
12973 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12974 hierarchy in the list of files of the closure when -R is used
12975 (Gnatbind): Accept arguments starting with '@' to indicate response
12976 files and take the arguments from the response files.
12977 If List_Closure is set, display the referenced files
12979 2007-06-06 Javier Miranda <miranda@adacore.com>
12980 Robert Dewar <dewar@adacore.com>
12981 Ed Schonberg <schonberg@adacore.com>
12983 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12984 which the address-clause is applied to in-mode actuals (allowed by
12986 (Apply_Discriminant_Check): Do not generate a check if the type is
12987 constrained by a current instance.
12988 (Activate_Division_Check): New procedure
12989 (Activate_Overflow_Check): New procedure
12990 (Activate_Range_Check): New procedure
12991 Call these new Activate procedures instead of setting flags directly
12992 (Apply_Array_Size_Check): Removed, no longer needed.
12993 Code clean up: remove obsolete code related to GCC 2.
12994 (Get_E_Length): Protect against bomb in case scope is standard
12995 (Selected_Range_Checks): If the node to be checked is a conversion to
12996 an unconstrained array type, and the expression is a slice, use the
12997 bounds of the slice to construct the required constraint checks.
12998 Improve NOT NULL error messages
12999 (Apply_Constraint_Check): If the context is a null-excluding access
13000 type, diagnose properly the literal null.
13002 2007-06-06 Pascal Obry <obry@adacore.com>
13004 * clean.adb (Clean_Archive): Use untouched casing for the archive name
13005 and the corresponding .deps file.
13006 (Clean_Interface_Copy_Directory): Use untouched casing for the library
13007 src directory. Minor code-clean-up. Use untouched casing for files
13008 read into the library src dir.
13009 (Clean_Library_Directory): Idem.
13010 (Parse_Cmd_Line): Accept new switch -aP
13012 2007-06-06 Javier Miranda <miranda@adacore.com>
13013 Ed Schonberg <schonberg@adacore.com>
13014 Robert Dewar <dewar@adacore.com>
13015 Eric Botcazou <ebotcazou@adacore.com>
13016 Arnaud Charlet <charlet@adacore.com>
13018 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
13019 applicable to types that have the With_Type flag set. Returns the
13020 non-limited view of the type, if available, otherwise the type itself.
13021 For class-wide types, there is no direct link in the tree, so we have
13022 to retrieve the class-wide type of the non-limited view of the Etype.
13023 New attributes Static_Initialization and Static_Elaboration_Desired.
13024 Remove the pragma Thread_Body, and the associated flag
13025 Is_Thread_Body in entities, and all related code.
13026 (Suppress_Value_Tracking_On_Call): New flag
13027 E_Exception has Esize and Alignment fields
13028 (Universal_Aliasing): New function.
13029 (Set_Universal_Aliasing): New procedure.
13030 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
13031 (Check_Nested_Access): New procedure.
13032 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13033 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13034 (Related_Interface): New attribute. Present in dispatch table pointer
13035 components of records. Set to point to the entity of the corresponding
13037 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
13038 (Original_Access_Type): Remove, not needed.
13039 (Root_Type): Handle properly subtypes of class-wide-types.
13042 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
13043 class-wide types visible through limited-with clauses.
13044 (Try_Primitive_Operation): When examining all primitive operations of a
13045 tagged type, do not consider subprograms labeled as hidden unless they
13046 belong to a private generic type with a tagged parent.
13047 (Try_Object_Operation): Extensive rewriting, to handle properly various
13048 overloading cases, when several ancestors may have class-wide operations
13049 that are possible candidates, and when the overloaded functions return
13050 array types and have defaulted parameters so that the call may be
13051 interpreted as an indexing.
13052 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13053 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13054 successive actuals before analyzing the call itself.
13055 (Try_Primitive_Operation): A primitive operation is compatible with the
13056 prefix if the prefix has a synchronized type and the type of the formal
13057 is its corresponding record, as can be the case when the primitive
13058 operation is declared outside of the body of the type.
13059 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13060 perform homonym traversal, looking for class-wide operation matches
13061 (formerly done in statements of Try_Class_Wide_Operation). Matches on
13062 access parameters are now restricted to anonymous access types.
13063 (Mark_Allocator): An allocator with a discriminant association parent is
13065 (Try_One_Prefix_Interpretation): If the type of the object is
13066 incomplete, as can be happen when it is a limited view obtained through
13067 a limited_with_clause, the selected component is not part of a prefixed
13069 (Complete_Object_Operation): Diagnose properly an object that is not
13070 aliased when the corresponding controlling formal is an access
13072 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13073 ambiguous calls in prefixed notation, where two primitives differ only
13074 in that the controlling argument of one is an access parameter.
13076 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13077 whether a function that returns an unconstrained type can be inlined.
13078 (Process_Formals): Diagnose properly the illegal use of an incomplete
13079 type in the profile of an access_to_subprogram declaration.
13080 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13081 operations are attached to the corresponding record.
13082 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13083 When processing a primitive of a concurrent type which implements an
13084 interface change the type of all controlling formals to that of the
13085 corresponding record type.
13086 (Check_Synchronized_Overriding): Relax the conditional logic when trying
13087 to determine the tagged type to which a primitive belongs.
13088 (Check_Conventions): Capture condition to ignore a primitive operation
13089 (which is shared between the loop in Check_Conventions and the one in
13090 Check_Convention) in a new local function Skip_Check.
13091 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13092 confusion with Check_Conventions' own Prim_Op local variable.
13093 (Create_Extra_Formals): Test for a tagged result type rather than a
13094 controlling result when determining whether to add a BIP_Alloc_Form
13095 formal and a BIP_Final_List formal to the function.
13096 (Check_Conformance); For parameters that are anonymous access types,
13097 subtype conformance requires that the not null and the constant
13098 indicators must match
13099 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13100 to retrieve the appropriate type when processing a concurrent type
13101 declared within a generic. Minor comment reformatting. Change invocation
13102 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13104 (Analyze_Subprogram_Body): If the return type of a function is an
13105 anonymous access to the limited view of a class-wide type, and the
13106 non-limited view of the type is available, update the type of the
13107 function so that code can be generated.
13108 (Process_Formals): In case of access-subtype itype whose designated
13109 type is also an itype (situation that happens now with access to
13110 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13111 attribute to avoid backend problems.
13112 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13113 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13114 anonymous types' designated types are same before testing
13115 Subtypes_Statically_Match.
13116 (Create_Extra_Formals): Test for a named access parameter that is a
13117 controlling formal as an additional condition for adding an
13118 accessibility level formal. This can occur in the subp type created for
13119 dispatching calls in Expand_Dispatching_Call, and allows calling
13120 Create_Extra_Formals from that procedure rather than special-casing the
13121 extra formals there.
13122 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13123 when the function has a controlling result.
13124 (Check_Returns): Add much more knowledge of the optimization of local
13125 raise statements to gotos, to retain proper warnings in this case.
13126 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13127 nodes when looking for last statement.
13129 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13130 class-wide types visible through limited with clauses.
13131 (Add_One_Interp): If the operands are anonymous access types, the
13132 predefined operator on universal_access is immediately visibles
13133 (Find_Unique_Type): Handle anonymous access to subprogram types just as
13134 other anonymous access types.
13135 (Disambiguate): Take into account CIL convention.
13136 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13138 2007-06-06 Robert Dewar <dewar@adacore.com>
13140 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13141 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13142 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13143 Fix lower bound of tables.
13146 * nlists.adb: Ditto.
13147 (Prev_Node, Next_Node): Change index type to Int so that it properly
13148 covers the range First_Node_Id - 1 up.
13150 2007-06-06 Javier Miranda <miranda@adacore.com>
13151 Ed Schonberg <schonberg@adacore.com>
13152 Bob Duff <duff@adacore.com>
13153 Hristian Kirtchev <kirtchev@adacore.com>
13155 * exp_aggr.ads, exp_aggr.adb:
13156 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13157 in extension aggregates.
13158 (Flatten): Other conditions being met, an aggregate is static if the
13159 low bound given by component associations is different from the low
13160 bound of the base index type.
13161 (Packed_Array_Aggregate_Handled): If the component type is itself a
13162 packed array or record, the front-end must expand into assignments.
13163 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13164 Init_Pr, instead of Ancestor_Is_Expression.
13165 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13166 coextension chain root, either generate a list controller or use the
13167 already existing one.
13168 (Static_Array_Aggregate): New procedure to construct a positional
13169 aggregate that can be handled by the backend, when all bounds and
13170 components are compile-time known constants.
13171 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13172 types covering interface types into assignments.
13173 (Replace_Type): move to Build_Record_Aggr_Code.
13174 (Expand_Record_Aggr_Code): if the target of the aggregate is an
13175 interface type, convert to the definite type of the aggregate itself,
13176 so that needed components are visible.
13177 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13178 components and the context is an extended return statement do not
13179 create a transient block for it, to prevent premature finalization
13180 before the return is executed.
13181 (Gen_Assign): Do not generate a call to deep adjust routine if the
13182 component type is itself an array of controlled (sub)-components
13183 initialized with an inner aggregate.
13184 (Component_Check): New name for Static_Check. This name is now more
13185 appropriate, and documentation is added which was missing.
13186 (Component_Check): Add test for bit aligned component value
13187 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13188 Tagged_Comps, name is more appropriate given added function below.
13189 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13191 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13192 Javier Miranda <miranda@adacore.com>
13193 Robert Dewar <dewar@adacore.com>
13195 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13196 Terminated: Add unchecked type conversion from System.Address to
13197 System.Tasking.Task_Id when calling the predefined primitive
13199 Disable new Ada 05 accessibility check for JVM.NET targets, which
13200 cannot be implemented in a practical way.
13201 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13202 the sources always references the tag of the actual object. Therefore,
13203 if 'Tag is applied in the sources to class-wide interface objects we
13204 generate code that displaces "this" to reference the base of the object.
13205 (Expand_N_Attribute_Reference, case Size): Return specified size if
13206 known to front end.
13207 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13208 has code that displaces the pointer of the object to manage interface
13209 types. However this code must not be executed when the prefix is a
13210 subprogram. This bug caused the wrong expansion of the internally
13211 generated assignment that fills the dispatch table when the primitive
13212 is a function returning a class-wide interface type.
13213 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13214 Set_Attribute_Name for Name_Unaligned_Valid.
13216 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13217 Gary Dismukes <dismukes@adacore.com>
13219 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13220 If the initialization is the equivalent aggregate of the initialization
13221 procedure of the type, do not remove it.
13222 (Expand_N_Attribute_Definition_Clause): Exclude access variables
13223 initialized to null from having their expression reset to empty and
13224 note this exception in the comment.
13226 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13227 Robert Dewar <dewar@adacore.com>
13228 Ed Schonberg <schonberg@adacore.com>
13229 Gary Dismukes <dismukes@adacore.com>
13231 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13232 Add "with" and "use" clauses for Sem_Attr.
13233 (Expand_Current_Value): Do not replace occurences of attribute
13234 references where the prefix must be a simple name.
13236 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13237 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13238 Attribute_Requires_Simple_Name_Prefix.
13239 (Name_Modifies_Prefix): Body of new function.
13240 (Requires_Simple_Name_Prefix): Body of new function.
13241 (Resolve_Attribute, case Access): Improve error message for case of
13242 mismatched conventions.
13243 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13245 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13246 constrained subtype for a nominal unconstrained type, use its base type
13247 to check for conformance with the context.
13248 (Resolve_Attribute): Remove test of the access type being associated
13249 with a return statement from condition for performing accessibility
13250 checks on access attributes, since this case is now captured by
13251 Is_Local_Anonymous_Access.
13252 (Analyze_Access_Attribute): Set Address_Taken on entity
13253 (Analyze_Attribute, case Address): Set Address_Taken on entity
13254 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13255 validating an access attribute whose prefix is a current instance.
13256 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13257 applied to dispatching operations, if freezing is required then we set
13258 the attribute Has_Delayed_Freeze in the prefix's entity.
13259 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13260 current scope if access of local subprogram taken
13261 (Analyze_Access_Attribute): Check legality of self-reference even if the
13262 expression comes from source, as when a single component association in
13263 an aggregate has a box association.
13264 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13265 the prefix if it is a protected operation and the attribute is
13266 Unrestricted_Access.
13267 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13268 reference to the base type of the context, to force a constraint check
13269 when the context is an access subtype with an explicit constraint.
13270 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13271 node is rewritten as an interface conversion. leave unanalyzed after
13272 resolution, to ensure that type checking against the context will take
13275 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13276 Javier Miranda <miranda@adacore.com>
13277 Robert Dewar <dewar@adacore.com>
13279 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13280 wrapper when the full view of the controlling type of an inherited
13281 function that dispatches on result implements interfaces.
13282 (Expand_N_Object_Declaration): In cases where the type of the
13283 declaration is anonymous access, create finalization list for it.
13284 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13285 if the object has no explicit initialization, to match description of
13286 functionality of pragam Persistent_BSS.
13287 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13288 new function to build static aggregates, to replace initialization call
13289 when static initialization is desired.
13290 (Freeze_Type): Generate a list controller for an access type whenever
13291 its designated type has controlled anonymous access discriminants.
13292 (Build_Equivalent_Aggregate): New procedure to compute a static
13293 aggregate to be used as default initialization for composite types,
13294 instead of a generating a call to the initialization procedure for the
13296 (Build_Initialization_Call): When available, replace a call to the
13297 initialization procedure with a copy of the equivalent static aggregate
13299 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13300 declarations for objects of a class-wide interface type, rather than
13301 just identifiers, to prevent visibility problems.
13302 (Expand_N_Object_Declaration): When expanding the declaration for an
13303 object of a class-wide interface type, preserve the homonym chain of
13304 the original entity before exchanging it with that of the generated
13305 renaming declaration.
13306 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13307 active, because there is no way to handle the exception.
13308 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13309 to do a minimum decoration of the Access_Disp_Table list.
13310 (Expand_Record_Controller): Avoid the addition of the controller between
13311 the component containing the tag of a secondary dispatch table and its
13312 adjacent component that stores the offset to the base of the object.
13313 This latter component is only generated when the parent type has
13314 discriminants ---documented in Add_Interface_Tag_Components).
13315 (Apply_Array_Size_Check): Removed, no longer needed.
13316 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13317 components, create a Master_Entity for it only if it contains tasks.
13318 (Build_Init_Procedure): Suppress the tag assignment compiling under
13320 (Freeze_Record_Type): Remove code associated with creation of dispatch
13322 (Init_Secondary_Tags): Update type of actuals when generating calls to
13323 Ada.Tags.Set_Offset_To_Top
13324 (Stream_Operation_OK): Disable use of streams compiling under no
13326 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13327 if Has_Init_Expression set.
13328 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13329 Register_Primitive, which provides the same functionality.
13330 (Requires_Init_Proc): Return false in case of interface types.
13331 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13333 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13334 is always associated with a predefined primitive because the internal
13335 entities associated with interface types are not predefined primitives.
13336 Therefore, the call to Is_Internal is replaced by a call to the
13337 function Is_Predefined_Dispatching_Operation.
13338 (Make_Eq_If): When generating the list of comparisons for the
13339 components of a given variant, omit the controller component that is
13340 present if the variant has controlled components.
13342 2007-06-06 Javier Miranda <miranda@adacore.com>
13343 Hristian Kirtchev <kirtchev@adacore.com>
13344 Bob Duff <duff@adacore.com>
13346 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13347 handle the creation of finalization lists and calls for nested
13348 coextensions when the root of the chains is part of a return statement.
13349 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13351 (Expand_Record_Equality): Skip components that are interface types.
13352 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13353 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13354 with Rewrite_Coextension. Change the condition for detecting coextension
13356 (Is_Local_Access_Discriminant): Removed.
13357 (Rewrite_Coextension): New routine which rewrites a static coextension
13358 as a temporary and uses its unrestricted access in the construction of
13360 (Complete_Coextension_Finalization): New routine. Generate finalization
13361 attachment calls to all delayed coextensions.
13362 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13363 the allocator is not a coextension itself and has delayed coextensions.
13364 If the current allocator is controlled, but also a coextension, delay
13365 the generation of the finalization attachment call.
13366 Rename local variable "Node" to "Nod" in order to avoid confusion with
13368 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13369 limited types that are not inherently limited. Such an allocator is
13370 illegal, but is generated by the expander for a return statement, to
13371 copy the result onto the secondary stack. This is the only case where a
13372 limited object can be copied. Generate code to displace the pointer
13373 to the object if the qualified expression is a class-wide interface
13374 object. Such displacement was missing and hence the copy of the object
13376 (Apply_Accessibility_Check): Handle allocated objects initialized in
13378 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13379 and Expand_Allocator_Expression. Allocating class-wide interface objects
13380 this routine displaces the pointer to the allocated object to reference
13381 the component referencing the corresponding secondary dispatch table.
13382 Expand_Allocator_Expression): Add missing support to allocate class-wide
13383 interface objects initialized with a qualified expression.
13384 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13385 function result type, and use the finalization list associated with the
13386 function scope in that case (such an anonymous type should not be
13387 treated like an access parameter's type).
13389 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13390 Gary Dismukes <dismukes@adacore.com>
13391 Javier Miranda <miranda@adacore.com>
13393 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13394 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13395 required exception handler.
13396 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13397 properly the case of a function whose return type is a limited
13398 class-wide interface type. Modify the code of the accessibility
13399 check to handle class-wide interface objects. In this case we need to
13400 displace "this" to reference the primary dispatch table to get access
13401 to the TSD of the object (to evaluate its accessibility level).
13402 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13403 rather than a controlling result as one of the conditions for
13404 generating tests of the implicit BIP_Alloc_Form formal. The
13405 initialization assignment is also handled according to whether the
13406 result is tagged instead of controlling.
13407 In the case where the init assignment is inserted in the "then" part of
13408 the allocation conditional, rewrite the target to be a dereference of
13409 the implicit BIP_Object_Access formal.
13410 If the returned value is unconstrained and created on the secondary
13411 stack, mark the enclosing block and function so that the secondary
13412 stack is not reclaimed on return.
13413 Treat returns from functions with controlling results similarly to
13414 returns from functions with unconstrained result subtypes.
13415 If the object returned is unconstrained, and an allocator must be
13416 created for it, analyze the allocator once the block for the extended
13417 return is installed, to ensure that finalizable components
13418 of the expression use the proper finalization list. Guard the call to
13419 Move_Final_List with a check that there is something to finalize.
13420 (Make_Tag_Ctrl_Assignment): Use "old" handling
13421 of controlled type assignment for virtual machines, since new code uses
13422 unsupported features (such as direct access to bytes in memory).
13424 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13425 Ed Schonberg <schonberg@adacore.com>
13427 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13428 accessibility actual, check for the case of an aliased object that has
13429 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13430 we fall into processing for the attribute rather than the name of the
13432 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13433 formal has its address taken in the body, create a temporary to capture
13434 value. If the return type is a limited interface, do not treat the
13435 return value as Controlled.
13436 (Is_In_Place_Function): If the return type is a limited interface,
13437 treat as returning in place. The actual returned object may not always
13438 be limited, but the caller has to assume that it is returned in place.
13439 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13440 context of an allocator, use the correct finalization chain (that is,
13441 the chain belonging to the access type, rather than the chain belonging
13442 to the current scope).
13443 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13444 result type rather than a controlling result as a precondition for
13445 adding an allocation form actual to a build-in-place call.
13446 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13447 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13448 primitive in the dispatch tables. This work is now done by Make_DT when
13449 the type is frozen.
13450 (Register_Predefined_DT_Entry): Removed.
13451 (Add_Return): If end label is not present, use sloc of last statement
13452 for generated return statement in procedure, for better gdb behavior
13454 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13455 object address nodes to ensure proper processing by routines like
13457 (Expand_Call): Fix generation of validity check for parameter
13458 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13459 the allocation form parameter if the result subtype is constrained,
13460 except when the function has a controlling result.
13461 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13462 rather than Is_Controlled and Has_Controlled_Component, since we want to
13463 include class-wide result types in this treatment. Also test for a
13464 controlling result, since that also requires passing a finalization
13466 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13467 even when the result subtype is constrained, to handle calls involving
13468 controlling results.
13469 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13470 is now called even when the result subtype is constrained, to handle
13471 calls involving controlling results.
13472 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13473 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13474 now performs the test).
13475 (Make_Build_In_Place_Call_In_Object_Declaration):
13476 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13477 constrained, to handle calls involving controlling results.
13478 (Add_Return): Accomodate rewritten pattern from local raise to goto
13479 transformation, so that we still recognize an transfer statement
13480 and do the right thing here in that case.
13481 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13482 and end of subprogram code.
13483 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13484 support for primitives that are functions (without formals) with a
13485 controlling result.
13486 (Inherited_From_Formal): If the actual subtype has not generic parent
13487 type, it is not an actual for a formal derived type, and there is no
13488 operation to inherit from the formal.
13490 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13491 Thomas Quinot <quinot@adacore.com>
13493 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13494 inserted cleanup code appropriately for GDB use.
13495 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13496 exception handler for Deep_Adjust or Deep_Finalize.
13497 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13498 Raise_From_Controlled_Operation is available, use a call to that
13499 subprogram instead of a plain "raise Program_Error" node to raise
13500 Program_Error if an exception is propagated from an Adjust or Finalize
13502 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13503 appears in the optional statement list of a triggering alternative, the
13504 scope actions can be inserted directly there, and not in the list that
13505 includes the asynchronous select itself.
13507 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13508 Robert Dewar <dewar@adacore.com>
13509 Hristian Kirtchev <kirtchev@adacore.com>
13511 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13512 generated exception handler appropriately when debugging generated code.
13513 Deal properly with No_Exception_Propagation restriction mode.
13514 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13515 System.Address to System.Tasking.Task_Id when processing the result of
13516 the predefined primitive _disp_get_task_id.
13517 (Expand_N_Asynchronous_Select): Clarify comment.
13518 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13519 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13520 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13521 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13522 privals and for generated call to Complete_Entry_Body, for better gdb
13524 (Copy_Result_Type): Utility to construct a parameter and result profile
13525 for protected functions whose return type is an anonymous access to
13527 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13529 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13530 point when the local-raise-to-goto transformation has taken place.
13532 2007-06-06 Javier Miranda <miranda@adacore.com>
13533 Nicolas Setton <setton@adacore.com>
13535 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13536 functionality when the backend is generating code.
13537 Otherwise any serious error
13538 reported by the backend calling the frontend routine Error_Msg
13539 changes the Compilation_Mode to Check_Semantics, disables the
13540 functionality of this routine and causes the generation of
13541 spureous additional errors.
13543 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13544 debugging information now generated by the compiler for fat-pointer
13546 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13548 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13550 2007-06-06 Thomas Quinot <quinot@adacore.com>
13552 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13553 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13554 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13555 For a remote call to a function with a classwide return type, apply an
13556 E.4(18) check to the returned value.
13557 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13558 stream attributes of the designated type of an RACW, as they are not
13559 dispatching primitive operations.
13561 2007-06-06 Geert Bosch <bosch@adacore.com>
13563 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13565 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13567 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13568 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13570 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13572 2007-06-06 Javier Miranda <miranda@adacore.com>
13574 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13575 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13577 2007-06-06 Javier Miranda <miranda@adacore.com>
13579 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13580 deallocation of class-wide interface objects.
13581 (Expand_Dispatching_Constructor_Call): Take into account that if the
13582 result of the dispatching constructor is an interface type, the
13583 function returns a class-wide interface type; otherwise the returned
13584 object would be actual. The frontend previously accepted returning
13585 interface types because Expand_Interface_Actuals silently performed
13586 the management of the returned type "as if" it were a class-wide
13588 (Expand_Dispatching_Constructor_Call): Replace call to
13589 Make_DT_Access_Action by direct call to Make_Function_Call.
13591 2007-06-06 Robert Dewar <dewar@adacore.com>
13592 Ed Schonberg <schonberg@adacore.com>
13594 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13595 compute masking constant, since we now set Esize properly to the
13597 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13598 to match the alignment.
13599 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13600 packed arrays of 8 bits or less.
13602 * freeze.adb (Freeze_Entity): When freezing the formals of a
13603 subprogram, freeze the designated type of a parameter of an access type
13604 only if it is an access parameter.
13605 Increase size of C convention enumeration object
13606 (Freeze_Entity, array type case): Make sure Esize value is properly
13607 adjusted for the alignment if it is known.
13608 (Freeze_Entity, array type case): When checking bit packed arrays for
13609 the size being incorrect, check RM_Size, not Esize.
13610 (Freeze_Record_Type): Check for bad discriminated record convention
13611 (In_Exp_Body): Return true if the body is generated for a subprogram
13612 renaming, either an attribute renaming or a renaming as body.
13613 (Check_Itype): If the designated type of an anonymous access component
13614 is a non-protected subprogram type, indicate that it is frozen, to
13615 prevent out-of-scope freeze node at some subsequent call.
13616 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13617 only if the subprogram is neither imported nor exported, as well as the
13618 NCA descriptor class if the subprogram is exported.
13620 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13621 Arnaud Charlet <charlet@adacore.com>
13622 Robert Dewar <dewar@adacore.com>
13623 Gary Dismukes <dismukes@adacore.com>
13625 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13626 default initialization on an imported object, when there is no
13627 initialization call generated for it.
13628 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13631 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13632 Static_Elaboration_Desired.
13633 Remove pragma Thread_Body.
13634 Implement a new pragma No_Body
13635 Removes the Explicit_Overriding pragma
13636 Remove Optional_Overriding pragma
13637 (Prag): Deal with Universal_Aliasing.
13638 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13639 Pragma_CIL_Constructor): New names.
13641 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13642 uses the equivalent aggregate of a type must be treated as an implicit
13644 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13645 has none of the other categories.
13646 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13647 to apply Import to an object renaming declaration.
13649 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13650 from a C++ class should be declared as limited and that it will be
13651 considererd limited.
13652 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13653 should be declared as limited and that it will be considererd limited.
13654 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13655 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13656 (Analyze_Pragma): Deal with Universal_Aliasing.
13657 (Sig_Flags): Likewise.
13658 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13659 (Overflow_Checks_Unsuppressed): New flag.
13660 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13661 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13662 case of JVM or .NET targets, and compiling user code.
13663 Add debugging convenience routine rv
13665 2007-06-06 Robert Dewar <dewar@adacore.com>
13667 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13668 are interface type.
13669 (Build_Elementary_Input_Call): For floating-point use right type in the
13670 absence of strange size or stream size clauses.
13671 (Build_Elementary_Write_Call): Same fix
13672 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13673 set to value that does not match base type size.
13675 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13677 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13678 object of a limited type can be initialized with a call to a function
13679 that returns in place. If the limited type has unknown discriminants,
13680 and the underlying type is a constrained composite type, build an actual
13681 subtype from the function call, as is done for private types.
13682 (Side_Effect_Free): An expression that is the renaming of an object or
13683 whose prefix is the renaming of a object, is not side-effect free
13684 because it may be assigned through the renaming and its value must be
13685 captured in a temporary.
13686 (Has_Controlled_Coextensions): New routine.
13687 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13688 as is done for other limited types.
13689 (Non_Limited_Designated_Type): new predicate.
13690 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13692 Remove all handling of with_type clauses.
13694 * par-ch10.adb: Remove all handling of with_type clauses.
13696 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13697 checksum if the main source could not be parsed.
13698 (Loat_Unit): When processing a child unit, determine properly whether
13699 the parent unit is a renaming when the parent is itself a child unit.
13700 Remove handling of with_type clauses.
13702 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13703 (Set_Is_Static_Coextension): New procedure.
13704 (Has_Local_Raise): New function
13705 (Set_Has_Local_Raise): New procedure
13706 (Renaming_Exception): New field
13707 (Has_Init_Expression): New flag
13708 (Delay_Finalize_Attach): Remove because flag is obsolete.
13709 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13710 Remove all handling of with_type clauses.
13711 (Exception_Junk): Can now be set in N_Block_Statement
13713 2007-06-06 Vincent Celier <celier@adacore.com>
13714 Robert Dewar <dewar@adacore.com>
13716 * frontend.adb (Frontend): Return immediately if the main source could
13717 not be parsed, because of preprocessing errors.
13719 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13720 (Gnat1drv): Exit with errors if the main source could not be parsed,
13721 because of preprocessing errors.
13722 (Check_Rep_Info): New procedure
13724 2007-06-06 Robert Dewar <dewar@adacore.com>
13726 * g-hesorg.ads, g-heasor.ads,
13727 g-busorg.ads, g-bubsor.ads: Update documentation
13728 GNAT.Heap/Bubble_Sort_G is now pure
13730 2007-06-06 Robert Dewar <dewar@adacore.com>
13732 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13734 2007-06-06 Robert Dewar <dewar@adacore.com>
13735 Ed Schonberg <schonberg@adacore.com>
13737 * g-comlin.ads, g-comlin.adb:
13738 Add new warning for renaming of function return objects
13740 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13741 (Tree_Read): Use size of object instead of type'object_size, since the
13742 latter is incorrect for packed array types.
13743 (Tree_Write): Same fix
13745 * opt.ads: Add new warning for renaming of function return objects
13746 (Generating_Code): New boolean variable used to indicate that the
13747 frontend as finished its work and has called the backend to process
13748 the tree and generate the object file.
13749 (GCC_Version): Is now private
13750 (Static_Dispatch_Tables): New constant declaration.
13751 (Overflow_Checks_Unsuppressed): New flag.
13752 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13753 (List_Closure): New flag for gnatbind (-R)
13754 Zero_Formatting: New flag for gnatbind (-Z)
13755 (Special_Exception_Package_Used): New flag.
13756 (Warn_On_Unrepped_Components): New flag.
13758 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13759 unit is a compilation unit, rather than relying on its scope, so that
13760 Standard can be renamed.
13761 (Analyze_Object_Renaming): Add new warning for renaming of function
13763 Also reject attempt to rename function return object in Ada 83 mode.
13764 (Attribute_Renaming): In case of tagged types, add the body of the
13765 generated function to the freezing actions of the type.
13766 (Find_Type): A protected type is visible right after the reserved word
13767 "is" is encountered in its type declaration. Set the entity and type
13768 rather than emitting an error message.
13769 (New_Scope): Properly propagate Discard_Names to inner scopes
13770 (Check_Nested_Access): New procedure.
13771 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13772 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13774 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13775 Add new warning for renaming of function return objects
13776 (Check_References): Suppress warnings for objects whose type or
13777 base type has Warnings suppressed.
13778 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13779 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13781 2007-06-06 Vincent Celier <celier@adacore.com>
13782 Emmanuel Briot <briot@adacore.com>
13783 Olivier Hainque <hainque@adacore.com>
13785 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13786 absolute value of Header.Block_Size when displaying the freed physical
13788 (Allocate): Compute Storage_Address using Integer_Address, not
13789 Storage_Offset, because the range of Storage_Offset may not be large
13791 (Configure): New parameter Low_Level_Traces
13792 (Allocate, Deallocation, Free_Physically): Added low-level traces
13793 (Configure): new parameter Errors_To_Stdout.
13794 (Output_File): new subprogram
13795 (Deallocate, Dereference): Send error messages to the proper stream
13796 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13797 documented. Previous code would send it to the current output file
13798 defined in GNAT.IO, which might not be stdout
13799 (Is_Valid): Adjust comment to mention that a positive reply means that
13800 Header_Of may be used to retrieve the allocation header associated with
13801 the subprogram Storage address argument. Return False early if this
13802 address argument is misaligned.
13804 2007-06-06 Vincent Celier <celier@adacore.com>
13806 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13808 (ASIS_Main): New global variable
13809 (Get_Closure): New procedure
13810 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13811 check, metric or pretty. Call Get_Closure in this case.
13812 (Check_Files): For GNAT LIST, check all sources of all projects when
13813 All_Projects is True.
13814 (GNATCmd): Accept -U for GNAT LIST
13816 2007-06-06 Vincent Celier <celier@adacore.com>
13818 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13820 Correct error message when invocation of the linker fails
13821 Add explicit size clause for the C imported variables
13822 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13823 we expect char size.
13824 Read target parameters earlier, since this is needed to set
13825 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13828 2007-06-06 Vincent Celier <celier@adacore.com>
13831 Add 3 spaces before the default project directory when displaying
13832 the project search path.
13833 Add new command line switch '-l' to display license information.
13835 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13837 * gmem.c: Add support for timestamps on memory operations.
13839 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13840 operations (not used currently, just foundation for future
13841 enhancements). Add possibility to perform full dump of gmem.out file.
13842 (Print_Back_Traces): Declare accesses to root arrays constants since
13843 they aren't modified.
13844 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13846 2007-06-06 Vincent Celier <celier@adacore.com>
13848 * gnatsym.adb: Update Copyright notice
13849 (Parse_Cmd_Line): Accept new switch -D
13850 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13853 * prj.ads (Policy): New policy Direct
13854 (Yes_No_Unknown): New enumeration type
13855 (Project_Data): New component Libgnarl_Needed
13857 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13858 use the untouched pathname casing.
13859 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13860 proper casing on non case-sensitive platforms like Windows.
13861 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13862 on all platforms, as it is not possible to know which one is allowed
13863 before processing the project files.
13864 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13865 specified when symbol policy is Direct. Check that when there is a
13866 symbol file defined (either by default or with attribute
13867 Library_Symbol_File) it is not the same as the reference symbol file.
13868 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13869 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13870 extending projects.
13871 (Record_Ada_Source): Record a source that has been locally removed in an
13874 * symbols.ads (Policy): New policy Direct
13876 * symbols-vms.adb (Initialize): Take new policy Direct in case
13879 2007-06-06 Vincent Celier <celier@adacore.com>
13881 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13882 Correct obvious bug (return Dir; instead of return Directory;).
13883 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13885 2007-06-06 Thomas Quinot <quinot@adacore.com>
13887 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13888 they have UNIX line endings (LF only) even on Windows, and thus pass
13889 all GNAT style checks.
13891 2007-06-06 Emmanuel Briot <briot@adacore.com>
13893 * g-regpat.adb (Quote): Fix improper quoting of '.'
13895 2007-06-06 Thomas Quinot <quinot@adacore.com>
13897 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13898 default, set False on a per-runtime basis.
13899 (Need_Netdb_Buffer): New constant.
13901 * g-socket.ads, g-socket.adb: Import new package
13902 GNAT.Sockets.Thin.Task_Safe_NetDB.
13903 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13904 binding to obtain proper message.
13905 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13906 Replace various occurrences of Arry (Arry'First)'Address with the
13907 equivalent Arry'Address (GNAT always follows implementation advice from
13909 (Get_Host_By_Address, Get_Host_By_Name,
13910 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13911 instead, rely on platform-specific task safe netdb operations provided
13914 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13915 parameter Process_Blocking_IO.
13916 (Host_Error_Messages): Add stub body.
13917 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13918 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13919 Safe_Getservbyport): Move functions into new child package
13921 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13922 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13923 (In_Addr): Add alignment clause.
13925 2007-06-06 Robert Dewar <dewar@adacore.com>
13927 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13928 Add note about symbolic traceback
13930 2007-06-06 Pascal Obry <obry@adacore.com>
13932 * hostparm.ads (Normalized_CWD): Use the host directory separator
13933 instead of the hardcoded forward slash which is not the proper
13934 character on Windows for example.
13935 (Java_VM): Removed.
13937 2007-06-06 Vincent Celier <celier@adacore.com>
13938 Arnaud Charlet <charlet@adacore.com>
13940 * a-clrefi.adb, a-clrefi.ads: New files
13942 * impunit.adb: Add s-os_lib in the list of user visible units.
13943 (Non_Imp_File_Names_95): Add a-clrefi to this list
13944 Remove obsolete run-time entries.
13945 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13946 "a-exetim" -- Ada.Execution_Time
13947 "a-extiti" -- Ada.Execution_Time.Timers
13949 * mlib-prj.ads, mlib-prj.adb
13950 (Build_Library): Use untouched object dir and library dir. At the
13951 same time makes sure that the checks are done using the canonical
13952 form. Removes hard-coded directory separator and use the proper host
13954 (Process_Project): Do not look in object directory to check if libgnarl
13955 is needed for a library, if there is no object directory.
13956 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13958 (Build_Library): When invoking gnatbind, use a response file if the
13959 total size of the arguments is too large.
13961 * Makefile.rtl: (g-sttsne): New object file.
13962 Add entry for a-clrefi, s-utf_32, System.Exceptions
13964 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13965 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13966 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13967 Change g-string to s-string, g-os_lib to s-os_lib
13968 Change all g-utf_32 references to s-utf_32
13970 2007-06-06 Tristan Gingold <gingold@adacore.com>
13971 Olivier Hainque <hainque@adacore.com>
13973 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13974 LIB$STOP is called to raise an exception and the IP of the exception
13975 is the instruction right after the call.
13976 (__gnat_adjust_context_for_raise, AIX): Implement.
13977 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13978 adjust_context_for_raise before Raise_From_Signal_Hanler.
13979 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13980 siginfo is passed to the handler, necessary to let the zcx propagation
13981 engine unwind past it.
13983 2007-06-06 Olivier Hainque <hainque@adacore.com>
13985 * initialize.c (__gnat_initialize for vxworks): Update documentation
13986 on the ZCX support, using different sets of crtstuff objects than with
13989 2007-06-06 Robert Dewar <dewar@adacore.com>
13991 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13993 (Layout_Type): Fix recomputation of size from alignment.
13995 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13996 Javier Miranda <miranda@adacore.com>
13998 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13999 association in an instance.
14000 (Copy_Generic_Node): If the node is a string literal, no need to copy
14002 (Is_Generic_Formal): For a formal subprogram, the declaration is the
14003 grandparent of the entity.
14004 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
14005 to simplify handling of formal interfaces that derive from other formal
14007 (Instantiate_Subprogram_Body): The defining unit name of the body of
14008 the instance should be a defining identifier.
14009 (Install_Formal_Packages): make global to the package, for use in
14010 instantiations of child units.
14011 (Analyze_Package_Instantiation): Do not attempt to set information on an
14012 enclosing master of an entry when expansion is disabled.
14013 (Instantiate_Type): If the actual is a tagged synchronized type and the
14014 generic ancestor is an interface, create a generic actual for the
14015 corresponding record.
14016 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
14017 declaration, to ensure that the interface list is processed correctly.
14018 (Inline_Instance_Body): If enclosing scope is an instance body, remove
14019 its entities from visibiility as well.
14020 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
14021 given with a named association, analyze the expression only, not the
14022 discriminant association itself.
14023 (Reset_Entity): If the analysis of a selected component is transformed
14024 into an expanded name in the prefix of a call with parameters, do not
14025 transform the original node into an expanded name, to prevent visibility
14026 errors in the case of nested generics.
14027 (Check_Private_View): For an array type, check whether the index types
14028 may need exchanging.
14030 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14031 Vincent Celier <celier@adacore.com>
14033 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
14034 since both are separated.
14035 Add support for imported CIL packages.
14036 Add further special handling of "value_type" for CIL.
14037 Add special handling of pragma Import for CIL.
14039 * make.ads, make.adb: When switch -eS is used, direct all outputs to
14040 standard output instead of standard error, except errors.
14041 (Absolute_Path): Use untouched casing for the parent directory.
14042 (Add_Library_Search_Dir): Use the untouched directory name.
14043 (Add_Source_Search_Dir): Idem.
14044 (Change_To_Object_Directory): Update output to use proper casing.
14045 (Create_Binder_Mapping_File): Use the untouched filename to set
14047 (Gnatmake): Use untouched library and executable directory names.
14048 (Insert_Project_Sources): Use untouched filename for spec and body.
14049 (Is_In_Object_Directory): Use untouched object directory.
14050 (Mark_Directory): Idem.
14051 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14052 contains the non-canonical filename in all cases.
14053 (Change_To_Object_Directory): In verbose mode, display the name of the
14054 object directory we're changing to.
14055 (Compile_Sources): Make sure, when a project file is used, to compile
14056 the body of the unit, when there is one, even when only the spec is
14057 recorded in an ALI file.
14058 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14060 (Report_Compilation_Failed): New procedure
14061 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14062 procedures moved from the spec to the body.
14063 (Extract_Failure): Removed, not used
14064 Replace explicit raises of exception Bind_Failed and Link_Failed with
14065 calls to Make_Failed with the proper message.
14066 Replace explicit raises of exception Compilation_Failed with calls to
14067 procedure Report_Compilation_Failed.
14068 (Initialize): Create mapping files unconditionally when using project
14071 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14072 Pragma_CIL_Constructor): New names.
14074 * targparm.ads, targparm.adb
14075 (Compiler_System_Version): Removed, no longer used.
14076 (Get_Target_Parameters): Relax checks on system.ads validity. Add
14077 handling of two new system flags: JVM and CLI.
14079 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14080 Arnaud Charlet <charlet@adacore.com>
14082 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14083 time, use the default s-interr body that provides interrupt support
14085 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14086 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14087 g-soccon.ads, and s-taprop.adb for the marte run time.
14088 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14089 timers are supported on marte.
14090 (EH_MECHANISM for marte): Do not use ZCX.
14091 (THREADSLIB for marte): Use -lmarte.
14092 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14093 Add mlib-tgt-specific.o to gnatmake objects
14094 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14095 longer of MLib.Tgt.
14096 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14097 6, either kernel or rtp, use a specialized version of s-osinte.ads.
14099 2007-06-06 Pascal Obry <obry@adacore.com>
14101 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14103 2007-06-06 Vincent Celier <celier@adacore.com>
14105 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14106 separator, use instead the proper host directory separator.
14107 (Copy_ALI_Files): Make sure that an already existing ALI file in the
14108 ALI copy dir is writable, before doing the copy.
14110 * mlib-utl.ads, mlib-utl.adb:
14111 (Gcc): If length of command line is too long, put the list of object
14112 files in a response file, if this is supported by the platform.
14113 (Ar): If invocation of the archive builder is allowed to be done in
14114 chunks and building it in one shot would go above an OS dependent
14115 limit on the number of characters on the command line, build the archive
14118 2007-06-06 Vincent Celier <celier@adacore.com>
14120 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14121 of specified object file is not equal to base name of source.
14123 2007-06-06 Javier Miranda <miranda@adacore.com>
14124 Hristian Kirtchev <kirtchev@adacore.com>
14125 Ed Schonberg <schonberg@adacore.com>
14127 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14128 the full type declaration.
14129 (Analyze_Component_Declaration): Add local variable E to capture the
14130 initialization expression of the declaration. Replace the occurences of
14131 Expression (N) with E.
14132 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14133 limited interface object with a function call.
14134 (Array_Type_Declaration): If the declaration lacks subtype marks for
14135 indices, create a simple index list to prevent cascaded errors.
14136 (Is_Null_Extension): Ignore internal components created for secondary
14137 tags when checking whether a record extension is a null extension.
14138 (Check_Abstract_Interfaces): Add missing support for interface subtypes
14139 and generic formals.
14140 (Derived_Type_Declaration): Add missing support for interface subtypes
14141 and generic formals.
14142 (Analyze_Object_Declaration): If an initialization expression is
14143 present, traverse its subtree and mark all allocators as static
14145 (Add_Interface_Tag_Component): When looking for components that may be
14146 secondary tags, ignore pragmas that can appear within a record
14148 (Check_Abstract_Overriding): an inherited function that dispatches on
14149 result does not need to be overriden if the controlling type is a null
14151 (Mentions_T): Handle properly a 'class attribute in an anonymous access
14152 component declaration, when the prefix is an expanded name.
14153 (Inherit_Component): If the derivation is for a private extension,
14154 inherited components remain visible and their ekind should not be set
14156 (Find_Type_Of_Object): In the case of an access definition, always set
14157 Is_Local_Anonymous_Access. We were previously not marking the anonymous
14158 access type of a return object as a local anonymous type.
14159 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14160 range with character literal bounds.
14161 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14162 (Access_Subprogram_Declaration): Indicate that the type declaration
14163 depends on an incomplete type only if the incomplete type is declared
14165 (Analyze_Subtype_Declaration): Handle properly subtypes of
14166 synchronized types that are tagged, and that may appear as generic
14168 (Access_Subprogram_Declaration): An anonymous access to subprogram can
14169 appear as an access discriminant in a private type declaration.
14170 (Add_Interface_Tag_Components): Complete decoration of the component
14171 containing the tag of a secondary dispatch table and the component
14172 containing the offset to the base of the object (this latter component
14173 is only generated when the parent type has discriminants --as documented
14175 (Inherit_Components): Use the new decoration of the tag components to
14176 improve the condition that avoids inheriting the components associated
14177 with secondary tags of the parent.
14178 (Build_Discriminanted_Subtype): Indicate to the backend that the
14179 size of record types associated with dispatch tables is known at
14181 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14182 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14183 to include task, protected, and synchronized interfaces as limited
14185 (Process_Discriminants): Remove the setting of
14186 Is_Local_Anonymous_Access on the type of (anonymous) access
14187 discriminants of nonlimited types.
14188 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14189 class-wide entity it is is already present. This situation occurs if
14190 the limited-view has been previously built.
14191 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14193 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14196 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14198 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14199 of the type that specify the position of interface tags when the type
14200 inherits discriminated array components from the parent type.
14201 If a component is initialized with a box, check for the presence of a
14202 default expression in its declaration before using its default
14203 initialization procedure.
14204 (Resolve_Record_Aggregate): If a component is box-initialized, and the
14205 component type has a discriminants, create a partial aggregate for it
14206 by copying the discriminants of the component subtype.
14207 Reject attempt to initialize a discriminant with a box.
14208 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14209 associated with dispatch tables is known at compile time.
14210 (Get_Value): If an association in a record aggregate has a box
14211 association, and the corresponding record component has a default
14212 expression, always copy the default expression, even when the
14213 association has a single choice, in order to create a proper
14214 association for the expanded aggregate.
14216 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14217 Robert Dewar <dewar@adacore.com>
14219 * par-ch12.adb (P_Generic_Associations): The source position of an
14220 Others association is that of the others keyword, not that of the token
14221 that follows the box.
14222 (P_Formal_Type_Definition): Handle formal access types that carry a
14223 not null indicator.
14225 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14226 multiple identifier are present, save Scan_State before scanning the
14227 colon, to ensure that separate trees are constructed for each
14229 (P_Identifier_Declarations): For object declaration, set new flag
14230 Has_Init_Expression if initialization expression present.
14231 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14232 Improve NOT NULL error messages
14234 2007-06-06 Robert Dewar <dewar@adacore.com>
14236 * par-ch4.adb: (P_Name): Recover from literal used as name
14238 2007-06-06 Vincent Celier <celier@adacore.com>
14240 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14241 defaulted to False.
14242 In the "not" case, recursive call with Complemented set to True.
14243 Do not allow "or" or "and" operators when Complemented is True.
14245 2007-06-06 Vincent Celier <celier@adacore.com>
14247 * prj.adb (Project_Empty): Gives default value for new component
14250 * prj-attr.ads: Minor reformatting
14252 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14253 directory using the untouched casing.
14254 (For_All_Source_Dirs): Idem.
14256 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14257 directories specified with switches -aP.
14258 (Add_Search_Project_Directory): New procedure
14259 (Initialize_Project_Path): Put the directories in table
14260 Search_Directories in the project search path.
14261 (Initialize_Project_Path): For VMS, transform into canonical form the
14264 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14266 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14267 true if configurable run-time or No_Run_Time is set.
14268 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14269 processing an unit which is not the one being compiled.
14271 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14273 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14274 Replace UC by Ada.UC
14276 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14277 Replace UC by Ada.UC
14279 2007-06-06 Robert Dewar <dewar@adacore.com>
14281 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14283 2007-06-06 Robert Dewar <dewar@adacore.com>
14285 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14286 Remove no longer used nodes.
14288 2007-06-06 Javier Miranda <miranda@adacore.com>
14289 Ed Schonberg <schonberg@adacore.com>
14290 Robert Dewar <dewar@adacore.com>
14292 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14293 on obsolescent withed unit in case of limited-withed units.
14294 (Analyze_Compilation_Unit): Add guard to code that removed an
14295 instantiation from visibility, to prevent compiler aborts when
14296 instantiation is abandoned early on.
14297 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14298 current unit being analyzed, and Distinguish local incomplete types
14299 from limited views of types declared elsewhere.
14300 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14301 to state that the class-wide entity is shared by the limited-view
14303 (Analyze_With_Clause): Improve placement of flag for case of
14304 unimplemented unit.
14305 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14306 manner similar to GNAT.Current_Exception. This is a violation of
14307 restriction (No_Exception_Propagation), and also inhibits the
14308 optimization of local raise to goto.
14309 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14310 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14311 for violation of restriction No_Exception_Propagation.
14313 2007-06-06 Javier Miranda <miranda@adacore.com>
14314 Hristian Kirtchev <kirtchev@adacore.com>
14315 Gary Dismukes <dismukes@adacore.com>
14317 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14318 use of entity Exception_Occurrence if it is not available in the
14321 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14322 concurrent types are declared within an Ada 2005 generic, build their
14323 corresponding record types since they are needed for overriding-related
14325 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14326 protected type does not implement a task interface or a nonlimited
14328 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14329 type does not implement a protected interface or a nonlimited interface.
14330 (Single_Task_Declaration, Single_Protected_Declaration): use original
14331 entity for variable declaration, to ensure that debugging information
14332 is correcty generated.
14333 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14334 routines if the expander is not active.
14335 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14336 raise, since special things happen for task exception handlers.
14338 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14339 concurrent types declared within a generic.
14340 (Check_Dispatching_Operation): Do not emit warning about late interface
14341 operations in the context of an instance.
14342 (Check_Dispatching_Call): Remove restriction against calling a
14343 dispatching operation with a limited controlling result.
14344 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14345 Register_Interface_DT_Entry by calls to Register_Primitive.
14346 (Check_Dispatching_Formals): Handle properly a function with a
14347 controlling access result.
14349 2007-06-06 Robert Dewar <dewar@adacore.com>
14350 Arnaud Charlet <charlet@adacore.com>
14352 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14353 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14354 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14355 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14356 message when using a VM, since this attribute is not supported.
14357 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14359 * usage.adb: Add new warning for renaming of function return objects
14360 Indicate that -gnatwp and -gnatwP concern front-end inlining
14361 Add line for -gnatyg
14362 Add usage information for -gnatw.c/C
14364 2007-06-06 Robert Dewar <dewar@adacore.com>
14365 Ed Schonberg <schonberg@adacore.com>
14368 (Find_Var): Do not consider function call in test for infinite loop
14369 warning if warnings set off for function entity.
14370 (One_Bound): Do not create a temporary for a loop bound if it is a
14372 (Analyze_Assignment): Traverse the right hand side of an assignment and
14373 mark all allocators as static coextensions.
14374 (Analyze_Assignment): Exempt assignments involving a dispatching call
14375 to a function with a controlling access result from the check requiring
14376 the target to be class-wide.
14378 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14379 Ed Schonberg <schonberg@adacore.com>
14380 Robert Dewar <dewar@adacore.com>
14381 Javier Miranda <miranda@adacore.com>
14383 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14384 chain of coextensions when an allocator serves as the root of such a
14386 (Propagate_Coextensions): Remove the test for the root being an
14388 (Resolve_Allocator): Add condition to ensure that all future decoration
14389 occurs on an allocator node. Add processing and cleanup for static
14391 (Valid_Conversion): If the operand type is the limited view of a
14392 class-wide type, use the non-limited view is available to determine
14393 legality of operation.
14394 (Ambiguous_Character): move to spec, for use elsewhere.
14395 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14396 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14397 character literals.
14398 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14399 Do_Division_Check flag explicitly.
14400 (Resolve_Actuals): If the actual is of a synchronized type, and the
14401 formal is of the corresponding record type, this is a call to a
14402 primitive operation of the type, that is declared outside of the type;
14403 the actual must be unchecked-converted to the type of the actual
14404 (Resolve_Call): Kill all current values for any subprogram call if
14405 flag Suppress_Value_Tracking_On_Call is set.
14406 (Resolve_Type_Conversion): Generate error message the the operand
14407 or target of interface conversions come from a limited view.
14408 (Check_Infinite_Recursion): Ignore generated calls
14409 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14410 that an expression that constrains an access discriminant in an
14411 allocator does not denote an object with a deeper level than the
14412 allocator's access type.
14413 (Resolve_Allocator): In the case of an allocator initialized by an
14414 aggregate of a discriminated type, check that associations for any
14415 access discriminants satisfy accessibility requirements by calling
14416 Check_Allocator_Discrim_Accessibility.
14417 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14418 subprogram types in the same fashion as other anonymous access types.
14419 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14420 message that is not a continuation message.
14421 (Resolve_Type_Conversion): Add missing support for conversion to
14423 (Resolve_Actuals): Introduce a transient scope around the call if an
14424 actual is a call to a function returning a limited type, because the
14425 resulting value must be finalized after the call.
14426 (Resolve_Actuals): If the call was given in prefix notations, check
14427 whether an implicit 'Access reference or implicit dereference must be
14428 added to make the actual conform to the controlling formal.
14430 2007-06-06 Robert Dewar <dewar@adacore.com>
14431 Javier Miranda <miranda@adacore.com>
14433 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14434 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14435 overriding of an inherited private subprogram now there is no need to
14436 inherit its dispatching slot and reduce the size of the dispatch table.
14437 Set_All_DT_Position now ensures that the same slot is now assigned to
14438 both entities. This is required to statically build the dispatch table.
14439 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14440 of calling Set_All_DT_Position to re-evaluate the position of the
14441 entries in the dispatch table. Such reevaluation is not desired if
14442 the tagged type is already frozen.
14444 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14445 Gary Dismukes <dismukes@adacore.com>
14446 Robert Dewar <dewar@adacore.com>
14447 Javier Miranda <miranda@adacore.com>
14449 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14450 reference acts as an lvalue when the attribute name modifies the prefix
14451 (Is_Coextension_Root): New routine.
14452 (Mark_Static_Coextensions): New routine.
14453 (Type_Access_Level): Revise code for checking the level of the
14454 anonymous access type of a return object.
14455 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14456 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14457 retrieval of the corresponding controlling record type.
14458 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14459 concurrent types declared within a generic as well as class wide types.
14460 Emit a mode incompatibility error whenever a protected entry or routine
14461 override an interface routine whose first parameter is not of mode
14462 "out", "in out" or access to variable.
14463 (Overrides_Synchronized_Primitive): Rename to
14464 Find_Overridden_Synchronized_Primitive.
14465 (Collect_Interface_Components): New subprogram that collects all the
14466 components of a tagged record containing tags of secondary dispatch
14468 (Add_Global_Declaration): New procedure
14469 (Abstract_Interface_List): Handle properly the case of a subtype of a
14471 (Type_Access_Level): In the case of a type whose parent scope is a
14472 return statement, call Type_Access_Level recursively on the enclosing
14473 function's result type to determine the level of the return object's
14475 (Build_Elaboration_Entity): Build name of elaboration entity from the
14476 scope chain of the entity, rather than the unit name of the file name.
14477 (Check_Nested_Access): New procedure.
14478 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14479 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14480 (Get_Renamed_Entity): Utility routine for performing common operation
14481 of chasing the Renamed_Entity field of an entity.
14483 2007-06-06 Robert Dewar <dewar@adacore.com>
14485 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14487 (Check_A_Call): Add check for entry call which was causing blowup
14489 2007-06-06 Olivier Hainque <hainque@adacore.com>
14491 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14492 special code on ia64-vms to handle major incompatibilities between the
14493 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14494 this routine with a very different set of arguments and expectations on
14497 2007-06-06 Thomas Quinot <quinot@adacore.com>
14499 * socket.c (__gnat_close_signalling_fd): New function.
14500 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14501 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14502 New supporting functions for task safe Netdb operations.
14504 2007-06-06 Thomas Quinot <quinot@adacore.com>
14505 Olivier Hainque <hainque@adacore.com>
14507 * a-except-2005.ads, a-except-2005.adb
14508 (Raise_From_Controlled_Operation): New procedure in
14509 (private part of) Ada.Exceptions (standard runtime version). Used to
14510 provide informational exception message when Program_Error is raised as
14511 a result of an Adjust or Finalize operation propagating an exception.
14512 (Rmsg_28): Fix description for E.4(18) check.
14513 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14514 propagation starts, to let debuggers know about the event in a reliable
14516 Take the address of E and dereference to make sure it is homed on stack
14517 and prevent the stores from being deleted, necessary for proper
14518 debugger behavior on "break exception" hits.
14519 (Local_Raise): Moved to System.Exceptions
14521 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14522 exception message from the current occurrence and raise Program_Error
14523 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14525 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14526 Arnaud Charlet <charlet@adacore.com>
14528 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14531 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14532 priority associated to a lock.
14534 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14535 assertion to take into account case of no abort restriction.
14536 (Initialize_Protection_Entries): Add initialization for the field
14537 New_Ceiling associated to the protected object.
14538 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14541 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14542 since this function needs to be set consistently with Update_Exception.
14544 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14545 since this function needs to be set consistently with Update_Exception.
14547 * s-taskin.ads: Update comments on
14548 Interrupt_Server_Blocked_On_Event_Flag.
14549 (Unbind_Handler): Fix handling of server_task wakeup
14550 (Server_Task): Set self's state so that Unbind_Handler can take
14551 appropriate actions.
14552 (Common_ATCB): Now use a constant from System.Parameters to determine
14553 the max size of the Task_Image field.
14555 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14556 Initialize_Analyzer function.
14557 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14558 take into account case of no abort restriction.
14559 ([Vulnerable_]Complete_Master): Modify assertion.
14561 * s-tataat.adb (Finalize): Use the nestable versions of
14562 Defer/Undefer_Abort.
14564 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14566 * s-tpobop.ads: Update comments.
14568 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14569 of locking the object manually, to avoid inconsistencies between
14570 Lock/Unlock_Entry assertions.
14572 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14574 application and System.Parameters.No_Abort is True.
14575 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14576 (Unbind_Handler): Fix handling of server_task wakeup
14577 (Server_Task): Set self's state so that Unbind_Handler can take
14578 appropriate actions.
14580 2007-06-06 Thomas Quinot <quinot@adacore.com>
14582 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14583 declarations instead of an explicit null body, for conciseness.
14585 2007-06-06 Robert Dewar <dewar@adacore.com>
14587 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14588 illegal aggregate and the type is still Any_Composite.
14589 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14591 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14593 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14594 to prevent subsequent expansion.
14596 2007-06-06 Robert Dewar <dewar@adacore.com>
14598 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14600 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14601 Robert Dewar <dewar@adacore.com>
14603 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14605 (Write_Itype): Handle case of string literal subtype, which
14606 comes up in this context.
14607 (Update_Itype): when debugging expanded code, update sloc of itypes
14608 associated with defining_identifiers and ranges, for gdb use.
14609 (Sprint_Node_Actual): Add static keyword to object or exception
14610 declaration output if Is_Statically_Allocated is True.
14611 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14612 or task body, so that the tree carries the proper Sloc information for
14614 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14616 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14618 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14619 compile time, to avoid dynamic memory allocation
14620 (Elaboration code): Only use dynamic memory allocation when needed.
14622 2007-06-06 Quentin Ochem <ochem@adacore.com>
14624 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14626 (Stack_Analyzer): Added field "Overflow_Guard"
14627 (Task_Result): Added field "Overflow_Guard".
14628 (Index_Str): New constant.
14629 (Task_Name_Str): New constant.
14630 (Actual_Size_Str): New constant.
14631 (Pattern_Array_Element_Size): New constant.
14632 (Get_Usage_Range): New subprogram.
14633 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14634 Now align the output.
14636 (Initialize): Added value for Overflow_Guard.
14637 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14638 Update the value of the overflow guard according to the actual
14639 beginning of the pattern array.
14640 (Initialize_Analyzer): Added parameter Overflow_Guard.
14641 Take this parameter into accound when computing the max size.
14642 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14643 (Report_Result): Removed extra useless procedure.
14644 Updated call to Output_Result.
14645 Moved full computation of the Task_Result here.
14647 2007-06-06 Thomas Quinot <quinot@adacore.com>
14649 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14650 Thread_Blocking_IO, always True by default, set False on a per-runtime
14652 Add Windows-specific constants
14653 Add new constant Need_Netdb_Buffer.
14654 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14655 not, whether to use getXXXbyYYY_r.
14657 * gsocket.h: Add new constant Need_Netdb_Buffer.
14658 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14659 not, whether to use getXXXbyYYY_r.
14661 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14663 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14664 than their first call.
14665 Add type Dummy_Communication_Block used in the generation of the pre-
14666 defined dispatching primitive _disp_asynchronous_select.
14667 (Storage_Element): Put Pragma Universal_Aliasing on it.
14669 2007-06-06 Vincent Celier <celier@adacore.com>
14671 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14674 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14675 letter if it is not followed by a '/' or a '\'.
14676 (Windows): New Boolean function
14678 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14680 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14682 (Containing_Directory): Raise Use_Error when the directory is a root
14684 (Extension): When returning the result, use a conversion to Result_Type,
14685 not a qualification.
14687 2007-06-06 Robert Dewar <dewar@adacore.com>
14689 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14690 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14692 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14693 Warn_On_Non_Local_Exception to False, to turn off warnings for
14694 No_Exception_Propagation in ZFP runtime.
14695 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14697 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14699 2007-06-06 Vincent Celier <celier@adacore.com>
14701 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14704 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14705 (Scan_Make_Switches): Recognize new switch -aP
14707 2007-06-06 Matthew Gingell <gingell@adacore.com>
14708 Jose Ruiz <ruiz@adacore.com>
14710 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14711 VxWorks task descriptor in the Ada run time, call a C subprogram
14712 (__gnat_get_stack_info) that extracts the required information.
14714 * sysdep.c: Back out temporary lynxos workaround.
14715 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14716 time the stack information associated to the currently executing task.
14717 Only VxWorks systems require this function.
14719 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14721 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14722 add the stack bias if the offset is computed from a frame address.
14723 (__gnat_backtrace): Adjust for above change.
14725 2007-06-06 Thomas Quinot <quinot@adacore.com>
14727 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14728 PE_Non_Transportable_Actual.
14729 (By_Descriptor_Last): New constant.
14730 (By_Copy_Return): Likewise.
14732 2007-06-06 Vincent Celier <celier@adacore.com>
14734 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14737 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14738 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14739 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14740 Add missing comment for /OPTIMIZE=SPACE
14741 Add entry for OPTIMIZE=SPACE
14742 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14743 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14745 2007-06-06 Vincent Celier <celier@adacore.com>
14746 Robert Dewar <dewar@adacore.com>
14748 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14751 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14752 Document gnatbind switch -a
14753 (case Constructions): Document that variables declarations are allowed
14754 for previously declared variables.
14755 Fix external lib project example
14756 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14757 Indicate that "#if not X or Y then" is not allowed in input files to
14759 Document gnatw.x and gnatw.X warning flags
14760 Mention -Winline switch to activate warnings when back-end inlining is
14762 Add gnatcheck rule descriptions
14763 Describe how to use the GNAT driver to call a tool on a closure.
14764 Describe how to run project-wide checks or metrics.
14765 Document gnatbind's -R option
14766 Updated to account for Ada 2005 support
14768 * gnat_rm.texi (Case Construction): Allow variable declarations for
14769 previously declared variables.
14770 (Representation Clauses and Pragmas): Lift restriction on alignment
14771 clauses for record types.
14772 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14773 Document No_Exception_Propagation restriction
14774 Document No_Body pragma
14775 Updated to account for Ada 2005 support; corrected some typos
14776 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14778 * gnat-style.texi: Make it clear that we never use mode IN for
14779 procedures or functions
14781 * ug_words: Add entries for -gnatw.x and -gnatw.X
14782 Add entries for -gnatw.c/.C
14784 2007-06-06 Pascal Obry <obry@adacore.com>
14785 Vincent Celier <celier@adacore.com>
14787 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14788 dirs and library name.
14789 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14791 (Build_Library): Idem.
14792 (Compile_Individual_Sources): Idem.
14793 (Compile_Link_With_Gnatmake): Idem.
14794 (Compile_Sources): Idem.
14795 (Get_Imported_Directories): Idem.
14796 (Link_Executables): Idem. Same change for the executable dir.
14797 (Check_Compilation_Needed): C_Source_Path new variable containing
14798 the canonical form of Source_Path to check against the source names
14799 in the dependency file.
14800 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14801 verbose mode, display the name of the object directory we're changing
14803 (Saved_Switches): New name of table X_Switches
14804 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14805 (Usage): New line for switch -aP
14806 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14807 testing if a directory should be added to the search path.
14809 2007-06-06 Javier Miranda <miranda@adacore.com>
14811 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14812 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14813 declaration after freezing point of all its associated tagged types;
14814 otherwise such types are frozen too early.
14816 2007-06-06 Robert Dewar <dewar@adacore.com>
14818 * a-reatim.adb: Documentation addition
14820 * g-cgideb.adb: Minor code reorganization
14822 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14823 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14824 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14826 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14827 function. Change name New_Scope to Push_Scope
14828 (Get_Debug_Flag_K): Remove unused obsolete function.
14830 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14833 * makeusg.adb: Update Copyright notice
14834 Add line for switch -aP
14836 * makeusg.adb: Fix wording of some usage messages
14838 * s-assert.adb (Raise_Assert_Failure): Add call to
14839 Debug_Raise_Assert_Failure.
14841 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14842 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14843 is restricted to 1).
14845 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14847 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14848 node location to No_Location when we're not debugging the expanded
14851 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14853 * misc.c (enumerate_modes): Consider log2_b to always be one.
14855 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14857 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14859 2007-05-02 Pascal Obry <obry@adacore.com>
14861 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14862 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14863 encoding support of Stream_IO.
14864 (Write_Unit): Idem.
14866 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14867 filename and corresponding encoding to match the OS requirement.
14868 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14869 routine will fail on specific devices like CON: AUX: ...
14871 PR ada/29856: Add missing braces
14873 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14876 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14878 2007-04-21 Jan Hubicka <jh@suse.cz>
14880 * misc.c (gnat_expand_body): Don't call target for destructors,
14881 avoid redundant check on syntax errors.
14883 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14885 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14886 instead of checking GIMPLE_STMT_P in chain_next.
14888 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14891 * system-linux-alpha.ads: Disable constant condition warning for the
14892 Default_Bit_Order variable.
14893 * system-linux-s390.ads: Likewise.
14894 * system-linux-s390x.ads: Likewise.
14895 * system-linux-sparc.ads: Likewise.
14897 2007-04-06 Javier Miranda <miranda@adacore.com>
14898 Matt Heaney <heaney@adacore.com>
14899 Robert Dewar <dewar@adacore.com>
14901 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14902 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14903 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14904 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14905 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14906 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14907 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14908 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14909 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14910 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14911 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14912 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14913 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14914 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14915 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14916 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14917 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14918 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14919 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14920 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14921 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14922 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14923 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14924 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14925 s-taprop-tru64.adb, s-taprop-irix.adb,
14926 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14927 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14928 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14929 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14930 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14931 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14932 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14933 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14934 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14935 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14936 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14937 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14938 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14939 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14940 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14941 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14942 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14943 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14944 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14945 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14947 Update documentation.
14950 2007-04-06 Robert Dewar <dewar@adacore.com>
14952 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14953 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14954 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14955 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14956 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14957 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14958 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14959 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14960 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14961 system-hpux-ia64.ads, targparm.adb,
14962 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14964 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14965 kept for bootstrap purposes only.
14967 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14969 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14970 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14971 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14972 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14974 2007-04-06 Robert Dewar <dewar@adacore.com>
14976 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14977 (Local_Raise): New dummy procedure called when a raise is converted
14978 to a local goto. Used for debugger to detect that the exception
14981 * debug.adb: Document new d.g flag (expand local raise statements to
14982 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14984 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14986 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14987 suppress warnings for unused handlers.
14988 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14989 warnings for raise statements not handled locally.
14990 (Get_RT_Exception_Entity): New function
14991 (Get_Local_Call_Entity): New function
14992 (Find_Local_Handler): New function
14993 (Warn_If_No_Propagation): New procedure
14994 (Expand_At_End_Handler): Call Make_Implicit_Handler
14995 (Expand_Exception_Handlers): Major additions to deal with local handlers
14996 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14997 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
15000 * exp_ch11.ads (Get_RT_Exception_Entity): New function
15001 (Get_Local_Call_Entity): New function
15003 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
15004 of restrictions that the binder will never suggest adding.
15006 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
15009 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
15010 be with'ed in the presence of pragma Restriction
15011 (No_Exception_Propagation).
15013 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
15015 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
15016 parameter, then the handler is not a suitable target for a local raise,
15017 and this is a violation of restriction No_Exception_Propagation.
15018 (Analyze_Handled_Statements): Analyze choice parameters in exception
15019 handlers before analyzing statement sequence (needed for proper
15020 detection of local raise statements).
15021 (Analyze_Raise_Statement): Reraise statement is a violation of the
15022 No_Exception_Propagation restriction.
15024 * s-rident.ads: Add new restriction No_Exception_Propagation
15026 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
15027 function, like Make_Exception_Handler but sets Local_Raise_Statements
15029 (Add_Unique_Serial_Number): Deal with case where this is called during
15030 processing of configuration pragmas.
15032 2007-04-06 Thomas Quinot <quinot@adacore.com>
15033 Pat Rogers <rogers@adacore.com>
15034 Pascal Obry <obry@adacore.com>
15036 * g-stsifd-sockets.adb: New file.
15038 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
15039 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
15040 g-socthi-vms.adb: Move signalling
15041 fd management to a nested package, so that they can conveniently be
15042 moved to a subunit that is shared across Windows, VMS, and VxWorks
15043 (Ada implementation) or completed with imported bodies from socket.c
15045 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
15047 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
15048 the signalling file descriptor.
15049 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15050 signalling file descriptor.
15051 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15052 instead of creating a pair of sockets for signalling here.
15054 * g-socthi.adb: Ditto.
15055 Set the runtime process to ignore SIGPIPEs on platforms that support
15056 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15058 * g-socthi-mingw.adb: Ditto.
15059 (WS_Version): Use Windows 2.2.
15060 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15062 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15063 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15065 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15066 added GNAT byte swapping facility
15067 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15069 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15071 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15073 (__gnat_create_signalling_fds): New subprogram.
15074 Set the runtime process to ignore SIGPIPEs on platforms that support
15075 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15077 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
15078 Vincent Celier <celier@adacore.com>
15080 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15081 New version of Ada.Calendar which supports the new upper bound of Ada
15082 time (2399-12-31 86_399.999999999).
15083 The following modifications have been made to the package:
15084 - New representation of time as count of nanoseconds since the start of
15085 Ada time (1901-1-1 0.0).
15086 - Target independent Split and Time_Of routines which service both
15087 Ada 95 and Ada 2005 code.
15088 - Target independent interface to the Ada 2005 children of Calendar.
15089 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15090 - Handling of non-leap centenial years.
15091 - Updated clock function.
15092 - Updated arithmetic and comparison operators.
15094 * a-caldel.adb (To_Duration): Add call to target independent routine in
15095 Ada.Calendar to handle the conversion of time to duration.
15097 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15099 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15101 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15102 targets do not have a natural time zone, GMT is used as a default.
15103 (__gnat_get_task_options): New.
15105 * a-direct.adb (Modification_Time): Add with and use clauses for
15106 Ada.Calendar and Ada.
15107 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15108 since it is no longer needed.
15109 (Duration_To_Time): Removed.
15110 (OS_Time_To_Long_Integer): Removed.
15111 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15112 Formatting Time_Of routines which automatically handle time zones,
15113 buffer periods and leap seconds.
15115 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15116 target independent routines in Ada.Calendar.
15118 * a-calfor.ads, a-calfor.adb:
15119 Code cleanup and addition of validity checks in various routines.
15120 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15123 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15124 independent routine in Ada.Calendar.
15126 2007-04-06 Olivier Hainque <hainque@adacore.com>
15129 (convert_addresses): Adjust prototype and dummy definition to expect an
15130 extra file_name argument.
15132 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15133 filling the now expected file_name argument with the appropriate
15135 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15136 (tracebk): Array of void * instead of char *, corresponding to what
15137 convert_addresses expects.
15138 (exename): New static global, to hold the executable file name to be
15139 used in all convert_addresses invocations.
15140 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15142 (__gnat_gmem_a2l_initialize): Resolve exename.
15143 (__gnat_convert_addresses): Use exename as the convert_addresses
15144 file_name argument.
15146 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15147 "convert_addresses", now expecting a filename argument. Import the
15148 necessary entities to compute the filename to use and pass it to
15151 2007-04-06 Matt Gingell <gingell@adacore.com>
15153 * system-aix.ads: Back out previous change.
15154 (Functions_Return_By_DSP): Removed
15156 2007-04-06 Pascal Obry <obry@adacore.com>
15158 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15159 or the monotonic used by Ada.Real_Time) to compute the sleep duration
15162 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15164 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15165 function. Its value changes in different VxWorks versions, and it is
15166 now handled by the function __gnat_get_task_options.
15168 * s-taprop-vxworks.adb (Create_Task): Call the function
15169 __gnat_get_task_options to get the required options for creating a task.
15171 2007-04-06 Pascal Obry <obry@adacore.com>
15172 Thomas Quinot <quinot@adacore.com>
15174 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15175 dealing with filename.
15176 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15177 filename from a standard string to a wide-string depending on the
15179 (__gnat_freopen): Idem.
15180 (__gnat_current_time): New function (wrapper for time(3) standard C
15183 * g-os_lib.ads (Current_Time): New function. Returns the current
15184 system time as an OS_Time value.
15186 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15187 (Monotonic_Clock): Same.
15189 2007-04-06 Quentin Ochem <ochem@adacore.com>
15191 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15193 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15195 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15197 * a-retide.adb: Add elaboration code to ensure that the tasking run
15198 time is initialized when using delay operations even when no task is
15201 2007-04-06 Javier Miranda <miranda@adacore.com>
15203 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15204 component Num_Prim_Ops.
15205 (Set_Num_Prim_Ops): Removed.
15206 Remove all the assertions because all the routines of this
15207 package are inline always.
15208 (Get_Offset_Index): Add support to primary dispatch tables.
15209 Move the documentation about the dispatch table to a-tags.ads
15210 (Set_External_Tag): Removed
15211 (Inherit_TSD): Removed.
15212 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15213 moved to a-tags.ads
15214 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15215 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15216 of the TSD field "Table" because this field has been renamed to
15218 (Inherit_CPP_DT): Removed.
15219 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15220 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15221 declarations have been moved to a-tags.ads
15222 (Check_Size): Removed.
15223 (Expanded_Name): Updated to get access to the new field of TSD
15224 containing the address of the expanded name.
15225 (Get_Access_Level/Set_Access_Level): Removed.
15226 (Get_Predefined_Prim_Op_Address): Removed.
15227 (Set_Predefined_Prim_Op_Address): Removed.
15228 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15229 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15230 (Set_Expanded_Name): Removed.
15231 (Inherit_DT): Removed.
15232 (Inherit_CPP_DT): Removed.
15233 (Set_RC_Offset): Removed.
15234 (Set_TSD): Removed.
15235 (Base_Address): New function that displaces "this" to point to the base
15236 of the object (that is, to point to the primary tag of the object).
15238 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15239 Javier Miranda <miranda@adacore.com>
15241 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15242 anonymous access component, do not create a master_id if type already
15243 has one, as may happen if the type is a subcomponent of a packed array
15245 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15246 Initialize_Tag): Remove code associated with the old CPP pragmas.
15247 CPP_Virtual and CPP_Vtable are no longer supported.
15248 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15249 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15250 (Freeze_Record_Type): Remove call to
15251 Init_Predefined_Interface_Primitives.
15252 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15253 code required to initialize the tags of the secondary dispatch tables.
15254 This leaves the algoritm more clear.
15255 (Init_Secondary_Tags): Add support for concurrent record types
15256 (Make_Predefined_Primitive_Specs): Code cleanup.
15257 (Predefined_Primitive_Bodies): Code cleanup.
15258 (Build_Master_Renaming): New local subprogram.
15259 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15260 anonymous access to task type components.
15261 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15262 subtype indication are resolved during analysis, and must not be done
15264 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15266 2007-04-06 Geert Bosch <bosch@adacore.com>
15267 Ed Schonberg <schonberg@adacore.com>
15268 Javier Miranda <miranda@adacore.com>
15269 Bob Duff <duff@adacore.com>
15271 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15272 for conversion of a Float_Type'Truncation to integer.
15274 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15275 check if a node is an attribute that can be handled directly by the
15277 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15278 attributes that can be handled directly by the back end.
15279 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15280 use new predicate Is_Access_Protected_Subprogram_Type.
15281 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15282 and Unchecked_Union if it is generated as part of the default Output
15283 procedure for a type with default discriminants.
15284 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15285 if we are compiling under restriction No_Dispatching_Calls.
15286 (Constrained): Use Underlying_Type, in case the type is private without
15287 discriminants, but the full type has discriminants.
15288 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15289 call to Build_Get_Access_Level.
15290 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15291 interface objects requires a call to the run-time subprogram that
15292 returns the base address of the object.
15293 (Valid_Conversion): Improve error message on illegal attempt to store
15294 an anonymous access to subprogram value into a record component.
15296 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15298 (Simplify_Type_Conversion): New procedure that performs simplification
15299 of Int_Type (Float_Type'Truncation (X)).
15300 (Resolve_Type_Conversion): Call above procedure after resolving operand
15301 and before performing checks. This replaces the existing ineffective
15303 (Set_String_Literal_Subtype): When creating the internal static lower
15304 bound subtype for a string literal, use a newly created copy of the
15305 subtree representing the lower bound.
15306 (Resolve_Call): Exclude build-in-place function calls from transient
15307 scope treatment. Update comments to describe this exception.
15308 (Resolve_Equality_Op): In case of dispatching call check violation of
15309 restriction No_Dispatching_Calls.
15310 (Resolve_Call): If the call returns an array, the context imposes the
15311 component type of the array, and the function has one non-defaulted
15312 parameter, rewrite the call as the indexing of a call with a single
15313 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15315 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15316 the master of the created object is the innermost enclosing statement.
15317 (Remove_Conversions): For a binary operator, check if type of second
15318 formal is numeric, to check if an abstract interpretation is present
15319 in the case of exponentiation as well.
15321 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15322 Bob Duff <duff@adacore.com>
15324 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15325 copying a parameter list in a call, set properly the First_Named_Formal
15326 and Next_Named_Formal fields in the new list and in the enclosing call.
15327 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15328 names, to ease typing in the debugger. Improve comments.
15329 (Watch_Node): New variable, intended to be set in the debugger.
15330 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15331 called when the watched node is created.
15332 (New_Node_Debugging_Output): Combined version of local procedures
15333 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15334 with a parameter so that conditional breakpoints like "if Node = 12345"
15336 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15337 Add Elist1 function
15339 2007-04-06 Thomas Quinot <quinot@adacore.com>
15340 Ed Schonberg <schonberg@adacore.com>
15341 Gary Dismukes <dismukes@adacore.com>
15343 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15344 required for a conversion between two access-to-unconstrained-array
15346 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15347 to discriminant constraints on discriminant objects. This rule must
15348 apply as well to discriminants of protected types in private components.
15349 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15350 object of a null-excluding access type then don't require the
15351 the object declaration to have an expression and don't emit a
15354 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15355 Eric Botcazou <botcazou@adacore.com>
15357 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15360 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15361 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15364 * fe.h (Compiler_Abort): Add third parameter.
15366 * misc.c (internal_error_function): Build third argument from current
15367 input location and pass it to Compiler_Abort.
15369 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15371 * cstand.adb (Create_Standard): When the target's storage unit size is
15372 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15375 2007-04-06 Nicolas Roche <roche@adacore.com>
15377 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15378 absolute path can have the following form: device:/a/b. In this case
15379 '/' should be inserted between the path and the filename.
15381 2007-04-06 Olivier Hainque <hainque@adacore.com>
15382 Eric Botcazou <botcazou@adacore.com>
15384 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15385 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15386 corresponding definition has created the so made visible variable.
15387 Handle anonymous access to protected subprogram.
15388 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15389 object with an address clause volatile. Re-enable original fix.
15390 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15392 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15393 associated with either the Equivalent or Root type, instead of the
15395 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15396 subtree for every field of a global record type.
15397 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15398 discriminants, invoke again variable_size on its newly computed sizes.
15400 2007-04-06 Robert Dewar <dewar@adacore.com>
15401 Thomas Quinot <quinot@adacore.com>
15402 Ed Schonberg <schonberg@adacore.com>
15403 Bob Duff <duff@adacore.com>
15405 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15406 (Next_Component_Or_Discriminant): New function and procedure
15407 (First_Index, First_Literal, Master_Id,
15408 Set_First_Index, Set_First_Literal, Set_Master_Id):
15409 Add missing Ekind assertions.
15410 (Is_Access_Protected_Subprogram_Type): New predicate.
15411 (Has_RACW): New entity flag, set on package entities to indicate that
15412 the package contains the declaration of a remote accecss-to-classwide
15414 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15415 attribute, in case the result type has controlled parts.
15416 (Requires_Overriding): Add this new flag, because "requires
15417 overriding" is subtly different from "is abstract" (see AI-228).
15418 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15419 Is_Abstract_Type. Make sure these are called only when appropriate.
15420 (Has_Pragma_Unreferenced_Objects): New flag
15422 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15423 class-wide, the tag of the right-hand side must be an exact match, not
15424 an ancestor of that of the object on left-hand side.
15425 (Move_Activation_Chain): New procedure to create the call to
15426 System.Tasking.Stages.Move_Activation_Chain.
15427 (Expand_N_Extended_Return_Statement): Generate code to call
15428 System.Finalization_Implementation.Move_Final_List at the end of a
15429 return statement if the function's result type has controlled parts.
15430 Move asserts to Build_In_Place_Formal.
15431 (Move_Final_List): New function to create the call statement.
15432 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15433 tagged type, replace generation of call to the run-time subprogram
15434 CW_Membership by call to Build_CW_Membership.
15435 (Expand_N_Return_Statement): Replace generation of call to the run-time
15436 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15437 (Expand_N_Simple_Function_Return): Replace generation of call to the
15438 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15440 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15441 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15442 access to protected operations.
15443 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15444 master and chain actual parameters to a build-in-place function call
15446 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15448 (Make_Build_In_Place_Call_In_Allocator,
15449 Make_Build_In_Place_Call_In_Anonymous_Context,
15450 Make_Build_In_Place_Call_In_Assignment,
15451 Make_Build_In_Place_Call_In_Object_Declaration): Call
15452 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15453 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15454 stubbed procedure with a null body, replace the call with a null
15455 statement without using the full inlining machinery, for efficiency
15456 and to avoid invalid values in source file table entries.
15458 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15459 renamings of calls to build-in-place functions.
15461 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15462 provides the functionality of RTE_Available to record components.
15463 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15464 to avoid undesired overloading.
15465 (Entity): New subprogram that returns the entity for the referened
15466 unit. If this unit has not been loaded, it returns Empty.
15467 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15468 Remove no longer used entities.
15469 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15470 (RE_Type_Specific_Data): New entity.
15471 (RE_Move_Any_Value): New entity.
15472 (RE_TA_A, RE_Get_Any_Type): New entities.
15473 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15474 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15475 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15476 (Entity): New subprogram that returns the entity for the referened
15477 unit. If this unit has not been loaded, it returns Empty.
15478 (RTE): Addition of a new formal that extends the search to the scopes
15479 of the record types found in the chain of the package.
15481 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15482 "abstract subprograms must be visible" message, whether or not the type
15483 is an interface; that is, remove the special case for interface types.
15484 (Analyze_Function_Return): Remove error message "return of task objects
15485 is not yet implemented" because this is now implemented.
15486 (Create_Extra_Formals): Add the extra master and activation chain
15487 formals in case the result type has tasks.
15488 Remove error message "return of limited controlled objects is not yet
15490 (Create_Extra_Formals): Add the extra caller's finalization list formal
15491 in case the result type has controlled parts.
15492 (Process_Formals): In case of access formal types there is no need
15493 to continue with the analysis of the formals if we already notified
15495 (Check_Overriding_Indicator): Add code to check overriding of predefined
15497 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15498 flags for formals that do not require them,.
15499 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15500 hidden entity is use visible or directly visible.
15501 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15502 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15503 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15504 New_Overloaded_Entity): Split Is_Abstract flag into
15505 Is_Abstract_Subprogram and Is_Abstract_Type.
15507 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15508 a return statement's finalization list to the caller's list, used for
15509 build-in-place functions with result type with controlled parts.
15510 Remove no longer used entities.
15512 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15513 longer needed, because the full type is now limited, and therefore a
15514 pass-by-reference type.
15515 (Foreign_Task_Level): New constant.
15517 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15518 move tasks from the activation chain belonging to a return statement to
15519 the one passed in by the caller, and update the master to the one
15520 passed in by the caller.
15521 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15522 of unactivated tasks, so we don't kill the ones that are being returned
15523 by a build-in-place function.
15524 (Create_Task): Ignore AI-280 for foreign threads.
15526 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15527 Robert Dewar <dewar@adacore.com>
15528 Bob Duff <duff@adacore.com>
15529 Gary Dismukes <dismukes@adacore.com>
15531 * errout.adb (Unwind_Internal_Type): Use predicate
15532 Is_Access__Protected_Subprogram_Type.
15534 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15535 (Freeze_Entity, packed array case): Do not override explicitly set
15536 alignment and size clauses.
15537 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15538 the enclosing subprogram is a child unit body that acts as a spec.
15539 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15540 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15541 Remove all code for DSP option
15543 * layout.adb (Layout_Record_Type): Use First/
15544 Next_Component_Or_Discriminant
15545 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15546 to handle properly the anonymous access case.
15548 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15549 for all access attributes, because overload resolution should work the
15550 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15551 causes the error message for the ambiguous "X'Access = Y'Access" and
15552 "X'Unrestricted_Access = Y'Access" and so forth to match.
15553 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15554 now that anonymous access to protected operations have their own kind.
15555 (Resolve_Attribute): In case of dispatching call check the violation of
15556 restriction No_Dispatching_Calls.
15557 (Check_Array_Type): Check new -gnatyA array index style option
15559 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15560 attempt to derive from a synchronized tagged type.
15561 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15562 type, inherit the class-wide type already created, because it may
15563 already have been used in a self-referential anonymous access component.
15564 (Mentions_T): Recognize self-referential anonymous access components
15565 that use (a subtype of) the class-wide type of the enclosing type.
15566 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15567 Derived_Type for Prev formal on call to
15568 Check_Anonymous_Access_Components rather than Empty.
15569 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15570 a record extension in deciding whether to create a class-wide type,
15571 rather than just checking Tagged_Present.
15572 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15573 to stand-alone object declarations as well as component declarations.
15574 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15575 prevent accidental overwriting when enclosing package appears in
15576 a limited_with_clause.
15577 (Array_Type_Declaration): If the component type is an anonymous access,
15578 the associated_node for the itype is the type declaration itself.
15579 (Add_Interface_Tag_Components): Modified to support concurrent
15580 types with abstract interfaces.
15581 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15582 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15583 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15584 to complete the decoration of synchronized interface types. Add also
15585 a call to Check_Abstract_Interfaces to verify the ARM rules.
15586 (Derive_Interface_Subprograms): Modified to support concurrent types
15587 with abstract interfaces.
15588 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15589 mark, rather than delaying the full resolution depending on context.
15590 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15591 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15592 Array_Type_Declaration,Build_Derived_Record_Type,
15593 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15594 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15595 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15596 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15597 called only when appropriate.
15598 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15600 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15601 an itype reference for the anonymous designated subtype, to prevent
15602 scope anonmalies in gigi.
15603 (Build_Itype_Reference): New utility, to simplify construction of such
15606 2007-04-06 Vincent Celier <celier@adacore.com>
15608 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15609 are suppressed, supply an initial dummy entry covering all possible
15612 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15613 and start with only one, such as "-RTS=none".
15614 (Collect_Arguments): Do not check for sources outside of projects.
15615 Do not collect arguments if project is externally built.
15616 (Compile_Sources): Do nothing, not even check if the source is up to
15617 date, if its project is externally built.
15618 (Compile): When compiling a predefined source, add -gnatpg
15619 as the second switch, after -c.
15620 (Compile_Sources): Allow compilation of Annex J renames without -a
15621 (Is_In_Object_Directory): Check if the ALI file is in the object
15622 even if there is no project extension.
15623 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15624 gnatbind if the ALI file effectively exists.
15625 (Initialize): Add the directory where gnatmake is invoked in front of
15626 the path if it is invoked from a bin directory, even without directory
15627 information, so that the correct GNAT tools will be used when spawned
15628 without directory information.
15630 * makeusg.adb: Change switch -S to -eS
15631 Add lines for new switches -we, -wn and -ws
15632 Add line for new switch -p
15634 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15635 Treat_As_Error and there are warnings.
15637 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15638 -gnatww Change gnatmake switch -S to -eS
15639 (Scan_Make_Switches): Code reorganisation. Process separately multi
15640 character switches and single character switches.
15641 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15642 False when switch is not recognized by gnatmake.
15643 (Scan_Make_Switches): Set Setup_Projects True when -p or
15644 --create-missing-dirs is specified.
15646 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15647 renamings Calendar, Machine_Code, Unchecked_Conversion and
15648 Unchecked_Deallocation only when Renamings_Included is True.
15650 * par.adb: Allow library units Calendar, Machine_Code,
15651 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15652 when -gnatg is not specified.
15653 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15654 there is no need to generate always a record_definition_node in case
15655 of synchronized interface types.
15656 (SIS_Entry_Active): Initialize global variable to False
15657 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15658 indicate cases where AI-447 says "not null" is legal.
15660 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15662 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15663 files with with several lines starting with the object fileb name.
15664 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15666 (Initialize): Add the directory where gprmake is invoked in front of the
15667 path, if it is invoked from a bin directory or with directory
15668 information, so that the correct GNAT tools will be used when invoked
15670 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15672 * vms_data.ads: Update switches/qualifiers
15674 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15675 Thomas Quinot <quinot@adacore.com>
15678 If the array component is a discriminated record, the array aggregate
15679 is non-static even if the component is given by an aggregate with
15681 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15682 (Convert_Aggr_In_Allocator): If the allocator is for an access
15683 discriminant and the type is controlled. do not place on a finalization
15684 list at this point. The proper list will be determined from the
15686 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15687 initialize record controller if needed, before the components, to ensure
15688 that they are properly finalized.
15689 (Build_Record_Aggr_Code): For the case of an array component that has a
15690 corresponding array aggregate in the record aggregate, perform sliding
15693 2007-04-06 Javier Miranda <miranda@adacore.com>
15694 Gary Dismukes <dismukes@adacore.com>
15695 Ed Schonberg <schonberg@adacore.com>
15697 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15698 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15700 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15701 accessibility on class-wide allocators if the allocator occurs at the
15702 same scope level as the allocator's type. The check is guaranteed to
15703 succeed in that case, even when the expression originates from a
15704 parameter of the containing subprogram.
15705 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15706 under No_Dispatching_Calls restriction. During the semantic analysis
15707 we already notified such violation.
15708 (Tagged_Membership): Constant folding. There is no need to check
15709 the tag at run-time if the type of the right operand is non
15710 class-wide abstract.
15711 Replace call to Is_Ancestor by call to Is_Parent
15712 to support concurrent types with interface types.
15713 (Expand_N_Allocator): Add an assertion associated with the generation
15715 (Expand_N_Slice): Do not enable range check to nodes associated
15716 with the frontend expansion of the dispatch table.
15717 (Is_Local_Access_Discriminant): Subsidiary function to
15718 Expand_N_Allocator.
15719 (Tagged_Membership): Replace generation of call to the run-time
15720 subprogram CW_Membership by call to Build_CW_Membership.
15721 (Expand_Allocator_Expression): Replace generation of call to the
15722 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15724 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15725 initialize most the TSD components by means of an aggregate.
15726 Modify the declaration of the object containing the TSD
15727 because we now expand code that has a higher level of abstraction.
15728 The TSD has a discriminant containing the Inheritance Depth Level,
15729 value that is used in the membership test but also to fix the size
15730 of the table of ancestors.
15731 (Expand_Interface_Conversion): Insert function body at the closest place
15732 to the conversion expression, to prevent access-before-elaboration
15733 errors in the backend.
15734 Code improved to reduce the size of the dispatch table if
15735 compiling under restriction No_Dispatching_Calls plus code cleanup.
15736 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15737 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15738 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15739 code to return immediately if compiling under No_Dispatching_Calls
15741 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15742 CPP_Virtual and CPP_Vtable are no longer supported.
15743 (Expand_Interface_Conversion): Add missing support for interface type
15745 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15746 Is_Parent to support concurrent types with interfaces.
15747 (Init_Predefined_Interface_Primitives): Removed.
15748 (Make_Secondary_DT): Modified to support concurrent record types.
15749 (Set_All_DT_Position): Modified to support concurrent record types.
15750 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15751 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15752 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15753 with CW_Membership.
15754 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15755 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15756 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15757 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15758 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15759 (Expand_Dispatching_Call): Replace generation of call to the run-time
15760 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15761 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15763 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15764 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15765 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15766 Build_Set_Prim_Op_Address.
15767 (Get_Remotely_Callable): Subprogram removed.
15768 (Init_Predefined_Interface_Primitives): Replace generation of call to
15769 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15772 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15773 First (Parameter_Associations ()) with the call to First_Actual that
15774 returns an actual parameter expression for both named and positional
15777 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15778 check violation of restriction No_Dispatching_Calls.
15779 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15780 controlling argument.
15782 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15783 First/Next_Component_Or_Discriminant
15784 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15785 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15786 specify Any_Limited_Interface, and this functionality is already
15787 provided by the function Has_Abstract_Interfaces.
15788 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15789 support concurrent types implementing interfaces.
15790 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15791 specify kind Any_Limited_Interface, and this functionality is already
15792 provided by the function Has_Abstract_Interfaces.
15793 (Remove_Side_Effects): replace Controlled_Type by
15794 CW_Or_Controlled_Type whenever the issue is related to
15795 using or not the secondary stack.
15797 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15798 P_Interface_Type_Definition to fulfill the new interface (the formal
15799 Is_Synchronized is no longer required).
15801 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15802 Update dependencies.
15804 * exp_atag.ads, exp_atag.adb: New file
15806 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15807 Bob Duff <duff@adacore.com>
15808 Cyrille Comar <comar@adacore.com>
15810 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15811 anonymous, use finalization list of enclosing dynamic scope.
15812 (Expand_N_Package_Declaration): For a library package declaration
15813 without a corresponding body, generate RACW subprogram bodies in the
15814 spec (just as we do for the task activation call).
15815 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15816 Is_Abstract_Type. Make sure these are called only when appropriate.
15817 Remove all code for DSP option
15818 (CW_Or_Controlled_Type): new subprogram.
15820 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15821 Ed Schonberg <schonberg@adacore.com>
15822 Gary Dismukes <dismukes@adacore.com>
15824 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15825 parameter. If it is set to true, return a result capped according to
15826 the global upper bound for the index of an entry family.
15827 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15828 (Build_Find_Body_Index): Adjust for above change.
15829 (Entry_Index_Expression): Likewise.
15830 (Is_Potentially_Large_Family): New function extracted from...
15831 (Collect_Entry_Families): ...here. Call it to detect whether the family
15832 is potentially large.
15833 (Build_Entry_Count_Expression): If the family is potentially large, call
15834 Family_Size with 'Cap' set to true.
15835 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15836 a protected version of an operation declared in the private part of
15837 a protected object, because they may be invoked through a callback.
15838 (Set_Privals): If the type of a private component is an anonymous access
15839 type, do not create a new itype for each protected body.
15840 If the body of a protected operation creates
15841 controlled types (including allocators for class-widetypes), the
15842 body of the corresponding protected subprogram must include a
15844 (Build_Activation_Chain_Entity): Build the chain entity for extended
15846 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15847 to determine whether operation overrides an inherited primitive.
15848 (Build_Wrapper_Spec): Add code to examine the parents while looking
15849 for a possible overriding candidate.
15850 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15851 hold an actual parameter value since its initialization is separated
15852 from the the declaration. Prevents errors on null-excluding access
15855 2007-04-06 Thomas Quinot <quinot@adacore.com>
15856 Pablo Oliveira <oliveira@adacore.com>
15858 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15859 Do an Unchecked_Conversion to handle the passage from the Underlying
15860 Type to the Base Type when calling Build_To_Any_Call and
15861 Build_From_Any_Call.
15862 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15863 E_Constant, depending upon Variable formal.
15864 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15865 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15866 parameter that requires an extra constrained parameter, declare
15867 temporary for actual as a variable, not a constant.
15868 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15869 the unit being compiled is the one that contains the stub type.
15870 Change primitive operation name for the RACW associated with a RAS
15871 from Call to _Call so it cannot clash with any legal identifier.
15872 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15874 (Append_RACW_Bodies): New subprogram.
15875 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15876 Add_Receiving_Stubs_To_Declarations functions.
15877 When expanding a package body, this list correspond to the
15878 statements in the HSS at the end of the pacakge.
15879 When expanding a package spec, this list correspond to the
15881 (Add_Receiving_Stubs_To_Declarations): Append the function
15882 registering the receiving stubs at the end of the 'Stmts' list.
15883 (RCI_Package_Locator): Pass the new Version generic formal when
15884 instantiating a RCI_Locator package.
15885 (Build_From_Any_Function): To compute the High bound for an
15886 unconstrained array actual, we add the Low bound with the length.
15887 Thus we must convert the low bound and the length to an appropriate
15888 type before doing the sum.
15889 (Build_Subprogram_Receiving_Stubs, PolyORB):
15890 * Retrieve the extra formals parameters at the
15891 end of the parameter stream.
15892 * Use Move_Any_Value to write back out parameters
15893 after executing the request as it is more efficient
15894 than Copy_Any_Value.
15895 * Build the any containing Extra Formals with the
15896 appropriate typecode.
15897 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15898 empty Component_List.
15899 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15900 the tree the declaration for an object that serves as actual parameter
15901 in server-side stubs.
15902 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15903 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15904 Use Build_Actual_Object_Declaration to prepare the actuals.
15905 (Add_Parameter_To_NVList): Set the parameter mode to In for
15906 Extra Constrained Parameters.
15907 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15908 Extra Constrained parameters.
15909 (Build_To_Any_Function, Build_From_Any_Function,
15910 Built_TypeCode_Function): When Typ is implicit, call the correct
15911 function with the first not implicit parent type.
15912 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15913 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15914 typecode from the Etype. Therefore we retrieve the correct typecode
15915 with a call to Get_Any_Type.
15916 (Copy_Specification): Do controlling formal type substitution based on
15917 Is_Controlling_Formal flag, instead of caller-provided object type.
15918 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15919 a RACW primitive operation, we might get a subprogram declaration for an
15920 ancestor of the RACW designated type (not for the designated type
15921 itself), in the case where this operation is inherited. In this case we
15922 have no easy means of determining the original tagged type for which
15923 the primitive was declared, so instead we now rely on
15924 Copy_Specification to use the Is_Controlling_Formal flag to determine
15925 which formals require type substitution.
15927 2007-04-06 Robert Dewar <dewar@adacore.com>
15928 Ed Schonberg <schonberg@adacore.com>
15930 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15931 GNAT.Current_Exception are not allowed if pragma Restrictions
15932 (No_Exception_Propagation) is set and in any case make the associated
15933 handler unsuitable as a target for a local raise statement.
15934 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15935 run-time subprogram CW_Membership by call to Build_CW_Membership.
15936 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15937 by a function call, a temporary must be created before expanding the
15938 Constructor_Call itself, to prevent out-of-order elaboration in the
15939 back-end when stack checking is enabled..
15941 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15943 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15944 result are the bounds of the left operand, not the right.
15946 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15949 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15950 discriminant defaults.
15951 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15952 (Make_Component_List_Attributes): Ditto.
15954 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15955 Bob Duff <duff@adacore.com>
15957 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15958 an association with a box as providing a value even though the
15959 initialization procedure for the type is not available.
15960 (Resolve_Record_Aggregate): Check that a choice of an association with a
15961 box corresponds to a component of the type.
15962 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15963 Is_Abstract_Subprogram and Is_Abstract_Type.
15965 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15968 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15969 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15970 called only when appropriate.
15972 2007-04-06 Olivier Hainque <hainque@adacore.com>
15974 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15975 associated vector view instead of all to the unsigned char view.
15977 * g-altcon.adb (Generic_Conversions): New internal generic package,
15978 offering facilities for all the Vector/View conversion routines
15979 implemented by this unit.
15980 (To_View/To_Vector - all versions): Reimplemented in a systematic
15981 manner, using the internal Generic_Conversions facilities.
15983 2007-04-06 Pascal Obry <obry@adacore.com>
15985 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15987 (Create): Free the source string before storing the new one.
15989 2007-04-06 Vincent Celier <celier@adacore.com>
15991 * g-debpoo.adb (Validity): New package with a complete new
15992 implementation of subprograms Is_Valid and Set_Valid.
15993 (Is_Valid): Move to local package Validity
15994 (Set_Valid): Move to local package Validity
15996 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15997 Pablo Oliveira <oliveira@adacore.com>
15999 * g-expect.adb (Get_Command_Output): When expanding the output buffer
16000 we must ensure that there is enough place for the new data we are going
16003 2007-04-06 Thomas Quinot <quinot@adacore.com>
16005 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
16008 2007-04-06 Jose Ruiz <ruiz@adacore.com>
16009 Vincent Celier <celier@adacore.com>
16011 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
16012 (Stack_String): Add this String that contains the name of the Stack
16013 package in the project file.
16014 (Packages_To_Check_By_Stack): Add this list that contains the packages
16015 to be checked by gnatstack, which are the naming and the stack packages.
16016 (Check_Files): If no .ci files were specified for gnatstack we add all
16017 the .ci files belonging to the projects, including binder generated
16019 (Non_VMS_Usage): Document that gnatstack accept project file switches.
16020 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
16021 Add gnatstack to the list of commands that use project file related
16022 switches, and get the single attribute Switches from the stack package
16023 in a project file when calling gnatstack. Parse the -U flag for
16024 processing files belonging to all projects in the project tree.
16025 Remove all processing for command Setup
16027 * prj-attr.adb: Add new package Stack with single attribute Switches
16029 * vms_conv.ads (Command_Type): Add command Stack.
16030 Move to body declarations that are only used in the body: types Item_Id,
16031 Translation_Type, Item_Ptr, Item and its subtypes.
16033 * vms_conv.adb: (Initialize): Add data for new command Stack.
16034 Add declarations moved from the spec: types Item_Id, Translation_Type,
16035 Item_Ptr, Item and its subtypes.
16036 (Cargs_Buffer): New table
16037 (Cargs): New Boolean global variable
16038 (Process_Buffer): New procedure to create arguments
16039 (Place): Put character in table Buffer or Cargs_Buffer depending on the
16041 (Process_Argument): Set Cargs when processing qualifiers for GNAT
16043 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
16044 empty, for table Cargs_Buffer.
16045 (Initialize): Remove component Setup in Command_List
16047 2007-04-06 Vincent Celier <celier@adacore.com>
16049 * gprep.adb (Process_Files.Process_One_File): Use full file name when
16050 issuing pragma Source_Reference.
16052 2007-04-06 Emmanuel Briot <briot@adacore.com>
16054 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16055 [[:xdigit:]] character class.
16056 Also raise an exception when an invalid character class is used.
16058 2007-04-06 Pascal Obry <obry@adacore.com>
16060 * i-cstrea.ads: (fopen): Add encoding parameter.
16062 Change reference from a-sysdep.c to sysdep.c in comment.
16063 Update copyright notice.
16064 This set of patch add support for the encoding form parameter.
16066 * mingw32.h (S2WSU): New macro to convert from a string to a
16067 wide-string using the UTF-8 encoding. The S2WS macro supports now only
16068 standard 8bits encoding.
16069 (WS2SU): As above but converting from wide-sring to string.
16070 This is needed as it is necessary to have access to both versions in the
16071 runtime for the form parameter encoding support.
16072 This set of patch add support for the encoding form parameter.
16073 (S2WS): Improve implementation to handle cases where the filename is not
16074 UTF-8 encoded. In this case we default to using the current code page
16075 for the conversion.
16077 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16078 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16079 the constants defined in adaint.h.
16080 (fopen): Add encoding parameter.
16083 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16084 encoding. This is needed for the Reset routine (freopen low level-call).
16086 * s-fileio.adb (Open): Decode encoding form parameter and set the
16087 corresponding encoding value into AFCB structure.
16088 (Reset): Pass the encoding value to freopen.
16089 (Close): Move the call to Lock_Task to the beginning of the procedure.
16091 2007-04-06 Geert Bosch <bosch@adacore.com>
16092 Robert Dewar <dewar@adacore.com>
16094 * i-fortra.ads: Add Double_Complex type.
16096 * impunit.adb: (Is_Known_Unit): New function
16097 Add Gnat.Byte_Swapping
16099 Add new Ada 2005 units
16100 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16101 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16102 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16103 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16105 * impunit.ads (Is_Known_Unit): New function
16107 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16108 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16109 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16110 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16111 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16112 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16115 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16117 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16119 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16120 Arnaud Charlet <charlet@adacore.com>
16122 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16123 __gnat_adjust_context_for_raise.
16124 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16125 implementation of floating point operations as native x86 targets.
16126 So the FPU should be initialized in the same way using finit. Fix
16127 floating point operations accuracy issues.
16128 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16129 member in struct sigaction, so as to avoid warning for incompatible
16132 2007-04-06 Serguei Rybin <rybin@adacore.com>
16134 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16135 switches from previously loaded tree
16137 2007-04-06 Thomas Quinot <quinot@adacore.com>
16139 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16140 cases where a given dependency has a body or not.
16141 (Write_With_File_Names): New subprogram, common code for the two cases
16144 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16145 Javier Miranda <miranda@adacore.com>
16147 * lib-xref.ads, lib-xref.adb:
16148 Modify the loop that collects type references, to include interface
16149 types that the type implements. List each of these interfaces when
16150 building the entry for the type.
16151 (Generate_Definition): Initialize component Def and Typ of new entry
16152 in table Xrefs, to avoid to have these components unitialized.
16153 (Output_References): Split Is_Abstract flag into
16154 Is_Abstract_Subprogram and Is_Abstract_Type.
16155 (Generate_Reference): Add barrier to do not generate the warning
16156 associated with Ada 2005 entities with entities generated by the
16159 2007-04-06 Robert Dewar <dewar@adacore.com>
16160 Arnaud Charlet <charlet@adacore.com>
16161 Vincent Celier <celier@adacore.com>
16163 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16164 Update 'Exception Handling Control' chapter which was outdated.
16165 Minor fix to documentation of -gnatwq
16166 Remove section "Adapting the Run Time to a New C++ Compiler" because
16167 it is now obsolete.
16168 Add passage on need of -nostart-files in some non-ada-main cases.
16169 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16170 Update documentation about Interfacing with C++
16171 Add documentation for new gnatmake switch -p
16172 Add missing protocol part in URLs.
16174 Document pragma Compile_Time_Error
16175 Add documentation for Object_Size indicating that stand alone
16176 objects can have a larger size in some cases.
16177 Add node for GNAT.Byte_Swapping, GNAT.SHA1
16178 Update reference to the Ravenscar profile.
16179 Document pragma Unreferenced_Objects
16181 * gnat-style.texi: Fix typo
16183 2007-04-06 Vincent Celier <celier@adacore.com>
16185 * mlib.adb (Building_Library): Only output "building a library..." in
16188 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16189 files in verbose mode.
16191 * mlib-utl.adb (Ar): Only output the first object files when not in
16193 (Gcc): Do not display all the object files if not in verbose mode, only
16196 2007-04-06 Robert Dewar <dewar@adacore.com>
16198 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16199 it no longer destroys the contents of Name_Buffer or Name_Len and
16200 non-standard and invalid names are handled better.
16201 (Get_Decoded_Name_String): Improve performance by using
16202 Name_Has_No_Encodings flag in the name table.
16203 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16204 Used for debugging printouts.
16206 2007-04-06 Robert Dewar <dewar@adacore.com>
16207 Javier Miranda <miranda@adacore.com>
16208 Bob Duff <duff@adacore.com>
16210 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16211 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16212 there is no need to generate always a record_definition_node in case
16213 of synchronized interface types.
16214 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16215 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16216 illegal in Ada 95, in cases where it is legal. Change the warnings to
16217 errors in other cases. Don't give the error unless the "not null"
16218 parses properly. Correct the source position at which the error occurs.
16219 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16220 P_Null_Exclusion, to suppress "not null" warnings.
16221 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16222 associated goto statements.
16224 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16227 * scans.ads (Type_Token_Location): New flag
16229 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16230 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16231 P_Null_Exclusion, to suppress "not null" warnings.
16233 2007-04-06 Robert Dewar <dewar@adacore.com>
16234 Javier Miranda <miranda@adacore.com>
16235 Bob Duff <duff@adacore.com>
16236 Vincent Celier <celier@adacore.com>
16238 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16239 (Extensions_Allowed): No longer sets Ada_Version
16240 Entry for pragma Unreferenced_Objects
16242 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16243 system.tasking if pragma priority used in a procedure
16244 (Analyze_Pragma, case Warning): Handle dot warning switches
16245 (Process_Compile_Time_Warning_Or_Error): New procedure
16246 (Analyze_Pragma): Add processing for Compile_Time_Error
16247 Add support for extra arguments External_Name and Link_Name.
16248 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16249 (Process_Import_Or_Interface): Add support for the use of pragma Import
16251 (Extensions_Allowed): No longer affects Ada_Version
16252 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16253 Is_Abstract_Type. Make sure these are called only when appropriate.
16254 Add processing for pragma Unreferenced_Objects
16256 * snames.h, snames.ads, snames.adb: Add entry for pragma
16258 Add new standard name Minimum_Binder_Options for new gprmake
16259 Add new standard names for gprmake: Archive_Suffix,
16260 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16261 Library_Support, Library_Version_Options,
16262 Shared_Library_Minimum_Options,
16263 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16264 Change Name_Call to Name_uCall so that it cannot clash with a legal
16266 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16267 Append C_Plus_Plus to convention identifiers as synonym for CPP
16268 Add new standard names Stack and Builder_Switches
16269 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16270 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16271 Run_Path_Option, Toolchain_Version.
16272 Entry for pragma Unreferenced_Objects
16274 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16275 switches, without repetition of "eD". Make sure that last character of
16276 -gnatep= switch is not taken as -gnat switch character.
16277 Complete rewrite of circuit for handling saving compilation options
16278 Occasioned by need to support dot switchs for -gnatw, but cleans up
16280 -gnatX does not affect Ada_Version
16281 Include -gnatyA in -gnatg style switches
16283 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16284 warnings on return objects.
16285 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16286 (Set_Dot_Warning_Switch): New procedure
16287 (Check_References): Add missing case of test for
16288 Has_Pragma_Unreferenced_Objects
16289 (Output_Unreferenced_Messages): Implement effect of new pragma
16290 Unreferenced_Objects, remove special casing of limited controlled
16293 2007-04-06 Vincent Celier <celier@adacore.com>
16295 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16296 the default project path, initially done during elaboration of the
16298 If the prefix returned by Sdefault is null, get the prefix from a call
16299 to Executable_Prefix_Path.
16300 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16303 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16304 canonical directory name to open the directory from which files are
16306 (Record_Other_Sources): Idem.
16307 (Locate_Directory): Add the possibility to create automatically missing
16308 directories when Setup_Projects is True.
16309 Call Locate_Directory so that the directory will be created when
16310 Setup_Projects is True, for object dir, library dir, library ALI dir,
16311 library source copy dir and exec dir.
16313 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16316 2007-04-06 Robert Dewar <dewar@adacore.com>
16318 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16319 Use First/Next_Component_Or_Discriminant
16320 (Analyze_Record_Representation_Clause):
16321 Use First/Next_Component_Or_Discriminant
16322 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16323 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16324 definition if type is unconstrained.
16325 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16326 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16327 Is_Abstract_Subprogram and Is_Abstract_Type.
16328 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16330 * repinfo.adb (List_Record_Info): Use First/
16331 Next_Component_Or_Discriminant.
16333 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16336 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16337 Include -gnatyA in default switches
16339 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16340 (Warn_On_Reverse_Bit_Order): New flag
16341 (Extensions_Allowed): Update the documentation.
16342 (Warn_On_Questionable_Missing_Parens): Now on by default
16344 * usage.adb: Add documentation of -gnatw.x/X switches
16345 Document new -gnatyA style switch
16346 -gnatq warnings are on by default
16348 2007-04-06 Ed Falis <falis@adacore.com>
16350 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16351 full word is no longer compared twice.
16353 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16355 * sem_ch10.adb (Install_Limited_Context_Clauses.
16356 Expand_Limited_With_Clause): Use a new copy of selector name in the
16357 call to Make_With_Clause. This fixes the tree structure for ASIS
16358 purposes. Nothing is changed in the compiler behaviour.
16359 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16360 a package renaming.
16361 (Install_Limited_With_Clauses): Do not install non-limited view when it
16362 is still incomplete.
16364 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16365 Gary Dismukes <dismukes@adacore.com>
16367 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16368 when capturing size information, instead of base type, which for a
16369 formal array type will be the unconstrained type.
16370 (Analyze_Formal_Object_Declaration): Add check for illegal default
16371 expressions for a formal in object of a limited type.
16372 (Instantiate_Object): Ditto.
16373 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16374 because they were defaulted in the formal package and no check applies
16376 (Check_Formal_Package_Instance): Extend conformance check to other
16377 discrete types beyond Integer.
16378 (Process_Default): Copy directly the unmatched formal. A generic copy
16379 has already been performed in Analyze_Formal_Package.
16380 (Analyze_Associations): If a formal subprogram has no match, check for
16381 partial parametrization before looking for a default, to prevent
16383 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16384 not set the instantiation environment before analyzing the actuals.
16385 Fixes regression on 8515-003 with implementation of AI-133.
16386 Set_Instance_Env checks whether the generic unit is a predefined
16387 unit, in which case the instance must be analyzed with the latest Ada
16388 mode. This setting must take place after analysis of the actuals,
16389 because the actuals must be analyzed and frozen in the Ada mode extant
16390 outside of the current instantiation.
16391 (Save_Env, Restore_Env): Preserve and restore the configuration
16392 parameters so that predefined units can be compiled in the proper Ada
16394 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16395 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16396 and Is_Abstract_Type.
16397 (Analyze_Formal_Package): For better error recovery, Add exception
16398 handler to catch Instantion_Error, which can be raised in
16399 Analyze_Associations
16401 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16402 Bob Duff <duff@adacore.com>
16403 Gary Dismukes <dismukes@adacore.com>
16405 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16406 prefix type is a discriminated subtype of the type of the formal.
16407 (Analyze_Allocator): Collect all coextensions regardless of the context.
16408 Whether they can be allocated statically is determined in exp_ch4.
16409 (Analyze_Selected_Component): If the prefix is a limited view and the
16410 non-limited view is available, use the non-limited one.
16411 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16412 therefore illegal), suggest a qualified expression rather than a type
16413 conversion, because a type conversion would be illegal in this context.
16414 (Anayze_Allocator): Trace recursively all nested allocators so that all
16415 coextensions are on the corresponding list for the root. Do no mark
16416 coextensions if the root allocator is within a declaration for a stack-
16417 allocated object, because the access discriminants will be allocated on
16419 (Analyze_Call): Remove restriction on calls to limited functions for the
16420 cases of generic actuals for formal objects, defaults for formal objects
16421 and defaults for record components.
16422 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16423 element list. Their expansion is delayed until the enclosing allocator
16424 is processed and its finalization list constructed.
16425 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16426 for an operation with the given name among the primitive operations of
16427 the corresponding record type.
16428 (Analyze_Selected_Component): If the prefix is a task type that
16429 implements an interface, and there is no entry with the given name,
16430 check whether there is another primitive operation (e.g. a function)
16432 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16433 properly the indexing of a function call written in prefix form, where
16434 the function returns an array type, and all parameters of the function
16435 except the first have defaults.
16436 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16437 the original operands, rather than relocating them, for efficiency and
16438 to work properly when an operand is overloaded.
16439 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16440 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16441 (Analyze_Selected_Component): If the prefix is a private extension, only
16442 scan the visible components, not those of the full view.
16443 (Try_Primitive_Operation): If the operation is a procedure, collect all
16444 possible interpretations, as for a function, because in the presence of
16445 classwide parameters several primitive operations of the type can match
16446 the given arguments.
16448 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16449 Robert Dewar <dewar@adacore.com>
16451 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16452 tag-indeterminate call to an abstract function, when the left-hand side
16454 (Analyze_Loop_Statement): Improve detection of infinite loops
16456 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16457 Thomas Quinot <quinot@adacore.com>
16459 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16460 out of Analyze_Package_Declaration, because processing must be applied
16461 to package bodies as well, for deferred constants completed by pragmas.
16462 (Analyze_Package_Declaration): When the package declaration being
16463 analyzed does not require an explicit body, call Check_Completion.
16464 (May_Need_Implicit_Body): An implicit body is required when a package
16465 spec contains the declaration of a remote access-to-classwide type.
16466 (Analyze_Package_Body): If the package contains RACWs, append the
16467 pending subprogram bodies generated by exp_dist at the end of the body.
16468 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16469 Is_Abstract_Subprogram and Is_Abstract_Type.
16470 (Preserve_Full_Attributes): The full entity list is not an attribute
16471 that must be preserved from full to partial view.
16473 * sem_dist.adb (Add_RAS_Dereference_TSS):
16474 Change primitive name to _Call so it cannot clash with any legal
16475 identifier, and be special-cased in Check_Completion.
16476 Mark the full view of the designated type for the RACW associated with
16477 a RAS as Comes_From_Source to get proper view switching when installing
16478 private declarations.
16479 Provite a placeholder nested package body along with the nested spec
16480 to have a place for Append_RACW_Bodies to generate the calling stubs
16481 and stream attributes.
16483 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16484 Robert Dewar <dewar@adacore.com>
16486 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16487 that is a limited view, check the non-limited view if available.
16488 (Undefined): Refine error message for missing with of Text_IO
16489 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16490 to distinguish real missing with cases.
16491 Fix format of all missing with messages
16492 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16493 renaming as body when renamed entity is abstract.
16495 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16496 Javier Miranda <miranda@adacore.com>
16498 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16499 predicate recursive, to handle complex expressions on literals whose
16500 spurious ambiguity comes from the abstract interpretation of some
16502 (Interface_Present_In_Ancestor): Add support to concurrent record
16504 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16505 Is_Abstract_Subprogram and Is_Abstract_Type.
16507 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16508 Javier Miranda <miranda@adacore.com>
16510 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16511 dereference of a local object R created as a reference to another
16512 object O, use the access level of O.
16513 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16514 rather than local Same_Formal_Type, to check whether protected operation
16515 overrides an inherited one.
16516 (Same_Formal_Type): New predicate, used when matching signatures of
16517 overriding synchronized operations, to handle the case when a formal
16518 has a type that is a generic actual.
16519 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16520 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16521 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16522 syntactic ambiguities involving indexing of function calls that return
16524 (Abstract_Interface_List): New subprogram that returns the list of
16525 abstract interfaces associated with a concurrent type or a
16526 concurrent record type.
16527 (Interface_Present_In_Parent): New subprogram used to check if a
16528 given type or some of its parents implement a given interface.
16529 (Collect_Abstract_Interfaces): Add support for concurrent types
16530 with interface types.
16531 (Has_Abstract_Interfaces): Add support for concurrent types with
16533 (Is_Parent): New subprogram that determines whether E1 is a parent
16534 of E2. For a concurrent type its parent is the first element of its
16535 list of interface types; for other types this function provides the
16536 same result than Is_Ancestor.
16537 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16538 (Collect_Synchronized_Interfaces): Removed because the subprogram
16539 Collect_Abstract_Interfaces provides this functionality.
16540 (Collect_Abstract_Interfaces): Minor update to give support to
16541 concurrent types and thus avoid undesired code duplication.
16542 (Get_Subprogram_Entity): Handle entry calls.
16543 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16545 (Enter_Name): Do not give -gnatwh hiding warning for record component
16546 entities, they never result in hiding.
16548 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16549 Robert Dewar <dewar@adacore.com>
16551 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16552 to chain nested components that are allocators for access discriminants
16553 of the enclosing object.
16554 Add N_Push and N_Pop nodes
16555 New field Exception_Label added
16556 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16557 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16558 (Is_Coextension): New flag for allocators, to mark allocators that
16559 correspond to access discriminants of dynamically allocated objects.
16560 (N_Block_Statement): Document the fact that the corresponding entity
16561 can be an E_Return_Statement.
16562 (Is_Coextension): New flag for allocators.
16563 Remove all code for DSP option
16565 * sprint.ads, sprint.adb: Display basic information for class_wide
16566 subtypes. Add handling of N_Push and N_Pop nodes
16568 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16570 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16571 before propagating exception.
16573 2007-04-06 Olivier Hainque <hainque@adacore.com>
16575 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16576 an address always within the call instruction from a return address.
16578 2007-04-06 Olivier Hainque <hainque@adacore.com>
16579 Eric Botcazou <botcazou@adacore.com>
16581 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16582 expression with a COMPOUND_EXPR including the call instead of emitting
16583 the call directly here.
16584 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16585 high bound is constant and the slice is empty. Tidy.
16586 (tree_transform, case N_Op_Not): Handle properly the case where the
16587 operation applies to a private type whose full view is a modular type.
16588 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16589 Address_Clause, use the associated Expression as the GNAT tree
16590 representing the choice value to ensure the corresponding GCC tree is
16591 of the proper kind.
16592 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16593 instead of just the operands, as the base GCC stabilize_reference does.
16594 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16595 requested; otherwise fail.
16596 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16598 2007-04-06 Thomas Quinot <quinot@adacore.com>
16600 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16601 implementation of UI_Div.
16602 (UI_Div): Reimplement as a call to UI_Div_Rem.
16603 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16604 remainder, avoiding the cost of a multiplication and a subtraction.
16605 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16606 provides both quotient and remainder in a single computation.
16607 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16608 functions for uint.
16609 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16610 is undefined if the given n is not inversible.
16612 2007-04-06 Olivier Hainque <hainque@adacore.com>
16614 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16615 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16618 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16619 Olivier Hainque <hainque@adacore.com>
16621 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16622 when updating the contents of the old pointer to an unconstrained array.
16623 (end_subprog_body): Set error_gnat_node to Empty.
16624 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16625 (unchecked_convert): For subtype to base type conversions, require that
16626 the source be a subtype if it is an integer type.
16627 (builtin_decls): New global, vector of available builtin functions.
16628 (gnat_pushdecl): Add global builtin function declaration nodes to the
16629 builtin_decls list.
16630 (gnat_install_builtins): Adjust comments.
16631 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16632 calling gnat_pushdecl, so that it knows when it handed a builtin
16633 function declaration node.
16634 (builtin_decl_for): Search the builtin_decls list.
16636 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16638 * s-stchop-vxworks.adb:
16639 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16641 2007-04-06 Robert Dewar <dewar@adacore.com>
16642 Arnaud Charlet <charlet@adacore.com>
16644 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16646 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16648 Add mention of -Sev (set initialize_scalars option from environment
16649 variable at run time) in gnatbind usage message.
16651 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16653 * fname-uf.ads: Minor comment fix
16655 * osint.ads: Change pragma Elaborate to Elaborate_All
16657 * par-load.adb: Add documentation.
16659 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16661 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16663 * s-secsta.ads: Extra comments
16665 * s-soflin.ads: Minor comment fixes
16667 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16669 * s-wchcon.ads: Minor comment addition
16671 * treepr.adb: Minor change in message
16672 (Print_Name,Print_Node): Make these debug printouts more robust: print
16673 "no such..." instead of crashing on bad input.
16675 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16677 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16678 instead of gnat_signed_or_unsigned_type.
16679 * utils.c (gnat_signed_or_unsigned_type): Remove.
16680 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16681 * gigi.h (gnat_signed_or_unsigned_type): Remove
16683 2007-03-09 Roger Sayle <roger@eyesopen.com>
16685 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16686 fold with the result of buildN.
16687 * decl.c (gnat_to_gnu_entity): Likewise.
16688 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16689 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16691 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16692 nonbinary_modular_operation, build_binary_op, build_unary_op,
16693 build_cond_expr): Likewise.
16695 * utils.c (convert): Use fold_build1 when casting values to void.
16696 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16697 fold_convert instead of convert when appropriate.
16699 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16701 * Make-lang.in: Add install-pdf target as copied from
16702 automake v1.10 rules.
16704 2007-02-28 Andreas Schwab <schwab@suse.de>
16706 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16707 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16708 (doc/gnat-style.info): Likewise.
16710 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16712 * gnat-style.texi: Standardize title page.
16713 * gnat_rm.texi: Likewise.
16714 * gnat_ugn.texi: Likewise.
16716 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16718 * decl.c (annotate_value): Adjust for refactoring of tree_map
16721 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16723 * decl.c (annotate_value): Adjust for refactoring of tree_map
16726 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16729 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16730 untagged derived type, add hidden components to keep discriminant
16731 layout consistent, when a given discriminant of the derived type
16732 constraints several discriminants of the parent type.
16734 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16735 Sandra Loosemore <sandra@codesourcery.com>
16737 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16738 build the call expression.
16739 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16740 * utils.c (max_size) <tcc_exceptional>: Delete.
16741 <tcc_vl_exp>: New case.
16742 <tcc_expression>: Delete CALL_EXPR subcase.
16743 (build_global_cdtor): Use build_call_nary instead of build3.
16744 * utils2.c (build_call_1_expr): Likewise.
16745 (build_call_2_expr): Likewise.
16746 (build_call_0_expr): Likewise.
16747 (build_call_alloc_dealloc): Likewise.
16749 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16751 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16752 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16753 and _Unwind_SWord with _sleb128_t.
16755 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16757 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16758 * decl.c: Include gt-ada-decl.h.
16759 (annotate_value_cache): New.
16760 (annotate_value): Use it instead of TREE_COMPLEXITY.
16762 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16764 * misc.c, utils2.c: Fix comment typos.
16766 2007-01-24 Roger Sayle <roger@eyesopen.com>
16768 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16769 TREE_CONSTANT_OVERFLOW.
16770 (allocatable_size_p, annotate_value): Likewise.
16771 * trans.c (gnat_to_gnu): Likewise.
16772 * utils.c (unchecked_convert): Likewise.
16773 * utils2.c (build_simple_component_ref): Likewise.
16775 2007-01-23 Richard Guenther <rguenther@suse.de>
16778 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16779 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16780 (gnatboot3): Likewise.
16781 (GNATBIND): Do not define.
16782 * Makefile.in (GNATBIND): Do not define.
16784 2007-01-08 Richard Guenther <rguenther@suse.de>
16786 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16787 * trans.c (gnat_to_gnu): Likewise.
16789 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16791 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16792 * adaint.c: Likewise.
16794 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16796 Merge from gimple-tuples-branch:
16797 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16799 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16800 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16801 GIMPLE_MODIFY_STMT.
16803 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16805 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16806 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16809 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16812 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16813 if the initializer takes into account the padding.
16815 2006-11-11 Richard Guenther <rguenther@suse.de>
16817 * trans.c (maybe_stabilize_reference): Remove handling of
16818 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16820 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16823 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16824 (To_Target_Priority): New function.
16826 2006-10-31 Robert Dewar <dewar@adacore.com>
16828 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16829 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16830 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16831 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16832 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16833 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16834 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16835 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16836 a-szbzha.adb: Minor reformatting. Fix header.
16838 * a-numaux-x86.adb: Add parentheses for use of unary minus
16839 * a-ngcefu.adb: Supply missing parentheses for unary minus
16840 * a-ngcoty.adb: Add parens for use of unary minus
16841 * a-ngelfu.adb: Add missing parens for unary minus
16842 * a-tifiio.adb: Add parentheses for uses of unary minus
16844 2006-10-31 Robert Dewar <dewar@adacore.com>
16845 Bob Duff <duff@adacore.com>
16846 Ed Schonberg <schonberg@adacore.com>
16848 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16849 with multiplying operator.
16850 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16851 pointer whether the context expects "any real type".
16852 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16853 universal_fixed "*" and "/" operators when they are used in a context
16854 that expects any real type. Also set the type of the node to
16855 Universal_Real in this case, because downstream processing requires it
16856 (mainly static expression evaluation).
16857 Reword some continuation messages
16858 Add some \\ sequences to continuation messages
16859 (Resolve_Call): Refine infinite recursion case. The test has been
16860 sharpened to eliminate some false positives.
16861 Check for Current_Task usage now includes entry barrier, and is now a
16862 warning, not an error.
16863 (Resolve): If the call is ambiguous, indicate whether an interpretation
16864 is an inherited operation.
16865 (Check_Aggr): When resolving aggregates, skip associations with a box,
16866 which are priori correct, and will be replaced by an actual default
16867 expression in the course of expansion.
16868 (Resolve_Type_Conversion): Add missing support for conversion from
16869 a class-wide interface to a tagged type. Minor code cleanup.
16870 (Valid_Tagged_Converion): Add support for abstact interface type
16872 (Resolve_Selected_Component): Call Generate_Reference here rather than
16873 during analysis, and use May_Be_Lvalue to distinguish read/write.
16874 (Valid_Array_Conversion): New procedure, abstracted from
16875 Valid_Conversion, to incorporate accessibility checks for arrays of
16876 anonymous access types.
16877 (Valid_Conversion): For a conversion to a numeric type occurring in an
16878 instance or inlined body, no need to check that the operand type is
16879 numeric, since this has been checked during analysis of the template.
16880 Remove legacy test for scope name Unchecked_Conversion.
16882 * sem_res.ads: Minor reformatting
16884 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16885 (PE_Current_Task_In_Entry_Body): New exception code
16886 (SE_Restriction_Violation): Removed, not used
16888 * a-except.ads: Update comments.
16890 * types.h, types.ads: Add definition for Validity_Check
16891 (PE_Current_Task_In_Entry_Body): New exception code
16892 (SE_Restriction_Violation): Removed, not used
16894 2006-10-31 Thomas Quinot <quinot@adacore.com>
16896 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16899 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16900 Jose Ruiz <ruiz@adacore.com>
16902 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16903 part of Ada.Calendar: all subprogram raise Unimplemented.
16904 (Split_W_Offset): Temp function body, raising Unimplemented
16906 * a-calend.ads, a-calend-vms.ads:
16907 Add imported variable Invalid_TZ_Offset used to designate targets unable
16908 to support time zones.
16909 (Unimplemented): Temporary function raised by the body of new
16911 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16912 unit provides handling of leap seconds and is used by the new Ada 2005
16913 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16914 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16915 version returns an extra value which is the offset to UTC.
16917 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16918 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16919 (Split_W_Offset): New function body.
16920 (Time_Of): When a date is close to UNIX epoch, compute the time for
16921 that date plus one day (that amount is later substracted after
16922 executing mktime) so there are no problems with time zone adjustments.
16924 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16926 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16927 a-catizo.ads, a-catizo.adb: New files.
16929 * impunit.adb: Add new Ada 2005 entries
16931 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16932 Rename all occurences of "__gnat_localtime_r" to
16933 "__gnat_localtime_tzoff".
16934 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16935 zone data and calculate the GMT offset.
16936 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16937 Use the field "tm_gmtoff" to extract the GMT offset.
16938 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16939 the external variable "timezone" to calculate the GMT offset.
16941 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16942 Jose Ruiz <ruiz@adacore.com>
16944 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16945 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16946 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16947 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16948 System.Any_Priority to a POSIX priority on the target.
16950 * system-linux-ia64.ads:
16951 Extend range of Priority types on Linux to use the whole range made
16952 available by the system.
16954 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16955 function maps from System.Any_Priority to a POSIX priority on the
16957 (PTHREAD_PRIO_PROTECT): Set real value.
16958 (PTHREAD_PRIO_INHERIT): Now a function.
16959 (SIGCPUFAIL): New signal.
16960 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16961 are documented as reserved by the OS.
16963 * system-aix.ads: Use the full range of priorities provided by the
16966 * s-taprop-posix.adb: Call new function To_Target_Priority.
16967 (Set_Priority): Take into account Task_Dispatching_Policy and
16968 Priority_Specific_Dispatching pragmas when determining if Round Robin
16969 must be used for scheduling the task.
16971 * system-linux-x86_64.ads, system-linux-x86.ads,
16972 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16973 the whole range made available by the system.
16975 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16976 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16977 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16978 when deallocating the TCB in order to avoid potential references to
16980 (Set_Priority): Take into account Task_Dispatching_Policy and
16981 Priority_Specific_Dispatching pragmas when determining if Round Robin
16982 or FIFO within priorities must be used for scheduling the task.
16984 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16985 the Thread field (to be used internally by the run-time system) and the
16986 kernel-level task id in the LWP field (to be used by the debugger).
16987 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16988 instance, and propagate the current task options to the spawned task.
16989 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16990 (Initialize): Set Round Robin dispatching when the corresponding pragma
16993 2006-10-31 Robert Dewar <dewar@adacore.com>
16995 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16996 system-linux-hppa.ads, system-hpux-ia64.ads,
16997 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16998 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16999 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
17000 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
17001 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17002 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
17003 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
17004 Default_Bit_Order) to kill constant condition warnings for references
17007 2006-10-31 Vincent Celier <celier@adacore.com>
17008 Eric Botcazou <ebotcazou@adacore.com>
17010 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
17011 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
17012 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
17013 Ext_To, when building the library file name
17015 * mlib-tgt-vxworks.adb: ditto.
17016 (Get_Target_Suffix): Add support for x86 targets.
17018 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
17020 * mlib-tgt-darwin.adb:
17021 Use Append_To, instead of Ext_To, when building the library file name
17022 (Flat_Namespace): New global variable.
17023 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
17024 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
17025 (Link_Shared_Libgcc): Delete.
17026 (Build_Dynamic_Library): Adjust for above changes.
17028 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
17030 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17032 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
17033 (Initialize): Add type conversions required by above change.
17035 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17037 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
17038 (getpid): New body for this function that uses the underlying taskIdSelf
17039 function for VxWorks 5 and VxWorks 6 in kernel mode.
17040 (unsigned_int): New type, modular to allow logical bit operations.
17041 (taskOptionsGet): New imported function.
17043 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
17044 field to be compliant with the type used by the corresponding operating
17047 2006-10-31 Pascal Obry <obry@adacore.com>
17048 Eric Botcazou <ebotcazou@adacore.com>
17049 Vincent Celier <celier@adacore.com>
17051 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17052 ASCII version of the registry API. This is needed as the GNAT runtime
17053 is now UNICODE by default.
17055 (get_gcc_version): Do not hardcode the return value.
17056 (__gnat_file_time_name): On Windows properly set the default returned
17057 value to -1 which corresponds to Invalid_Time.
17058 (__gnat_fopen): New routine. A simple wrapper on all plateforms
17059 except on Windows where it does conversion for unicode support.
17060 (__gnat_freopen): Idem.
17061 (__gnat_locate_exec_on_path): If environment variable PATH does not
17062 exist, return a NULL pointer
17064 * adaint.h: (__gnat_fopen): Declare.
17065 (__gnat_freopen): Likewise.
17067 * mingw32.h (_tfreopen): Define this macro here for older MingW
17069 Activate the unicode support on platforms using a MingW runtime
17070 version 3.9 or newer.
17072 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17073 This is needed for proper unicode support on Windows.
17076 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17077 Nicolas Setton <setton@adacore.com>
17078 Olivier Hainque <hainque@adacore.com>
17079 Gary Dismukes <dismukes@adacore.com>
17081 * gigi.h: (tree_code_for_record_type): Declare.
17082 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17083 (get_global_renaming_pointers): Rename to
17084 invalidate_global_renaming_pointers.
17085 (static_ctors): Delete.
17086 (static_dtors): Likewise.
17087 (gnat_write_global_declarations): Declare.
17088 (create_var_decl): Adjust descriptive comment to indicate that the
17089 subprogram may return a CONST_DECL node.
17090 (create_true_var_decl): Declare new function, similar to
17091 create_var_decl but forcing the creation of a VAR_DECL node.
17092 (get_global_renaming_pointers): Declare.
17093 (add_global_renaming_pointer): Likewise.
17095 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17097 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17098 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17100 (gnat_to_gnu_entity): Remove From_With_Type from computation for
17102 <E_Access_Type>: Use the Non_Limited_View as the full view of the
17103 designated type if the pointer comes from a limited_with clause. Make
17104 incomplete designated type if it is in the main unit and has a freeze
17106 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17107 Underlying_Full_View similarly. Return earlier if the full view already
17108 has an associated tree.
17109 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17110 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17111 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17112 reference type built for objects with an address clause.
17113 Use create_true_var_decl with const_flag set for
17114 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17116 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17117 for Character and Wide_Character types. This info is read by the
17118 dwarf-2 writer, and is needed to be able to use the command "ptype
17119 character" in the debugger.
17120 (gnat_to_gnu_entity): When generating a type representing
17121 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17122 so that debug writers can distinguish it from ordinary integers.
17123 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17124 addition to TREE_READONLY to assert the constantness of variables for
17125 elaboration purposes.
17126 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17127 parameters to call new Einfo function First_Formal_With_Extras.
17128 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17129 protected type with its corresponding discriminant, to obtain a usable
17131 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17132 for a multiple elaboration of the "equivalent" type.
17133 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17134 into record_global_renaming_pointer.
17135 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17136 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17137 <E_Array_Subtype>: Likewise.
17138 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17139 incomplete subtypes and incomplete subtypes of incomplete types visible
17140 through a limited with clause.
17141 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17142 the base index type for the maximum size of the array only if they are
17144 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17145 expression into a SAVE_EXPR if stabilization failed.
17147 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17148 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17149 by lower level compilation passes.
17150 (gnat_genericize): New function, lowering a function body to GENERIC.
17151 Turn the type of RESULT_DECL into a real reference type if the decl
17152 has been marked DECL_BY_REFERENCE, and adjust references to the latter
17154 (gnat_genericize_r): New function. Tree walking callback for
17156 (convert_from_reference, is_byref_result): New functions. Helpers for
17158 (create_type_decl): Call gnat_pushdecl before calling
17159 rest_of_decl_compilation, to make sure that field TYPE_NAME of
17160 type_decl is properly set before calling the debug information writers.
17161 (write_record_type_debug_info): The heuristics which compute the
17162 alignment of a field in a variant record might not be accurate. Add a
17163 safety test to make sure no alignment is set to a smaller value than
17164 the alignment of the field type.
17165 (make_dummy_type): Use the Non_Limited_View as the underlying type if
17166 the type comes from a limited_with clause. Do not loop on the full view.
17167 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17168 (dummy_node_table): New global variable, moved from decl.c.
17169 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17170 (save_gnu_tree): Use above macros.
17171 (get_gnu_tree): Likewise.
17172 (present_gnu_tree): Likewise.
17173 (init_dummy_type): New function, moved from decl.c. Use above macros.
17174 (make_dummy_type): Likewise.
17175 (tree_code_for_record_type): New function extracted from make_dummy_type
17176 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17177 (static_ctors): Change it to a vector, make static.
17178 (static_dtors): Likewise.
17179 (end_subprog_body): Adjust for above change.
17180 (build_global_cdtor): Moved from trans.c.
17181 (gnat_write_global_declarations): Emit global constructor and
17182 destructor, and call cgraph_optimize before emitting debug info for
17183 global declarations.
17184 (global_decls): New global variable.
17185 (gnat_pushdecl): Store the global declarations in global_decls, for
17187 (gnat_write_global_declarations): Emit debug information for global
17189 (create_var_decl_1): Former create_var_decl, with an extra argument to
17190 state whether the creation of a CONST_DECL is allowed.
17191 (create_var_decl): Behavior unchanged. Now a wrapper around
17192 create_var_decl_1 allowing CONST_DECL creation.
17193 (create_true_var_decl): New function, similar to create_var_decl but
17194 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17195 (create_field_decl): Do not always mark the field as addressable
17196 if its type is an aggregate.
17197 (global_renaming_pointers): New static variable.
17198 (add_global_renaming_pointer): New function.
17199 (get_global_renaming_pointers): Likewise.
17201 * misc.c (gnat_dwarf_name): New function.
17202 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17203 (gnat_post_options): Add comment about structural alias analysis.
17204 (gnat_parse_file): Do not call cgraph_optimize here.
17205 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17207 * trans.c (process_freeze_entity): Don't abort if we already have a
17208 non dummy GCC tree for a Concurrent_Record_Type, as it might
17209 legitimately have been elaborated while processing the associated
17210 Concurrent_Type prior to this explicit freeze node.
17211 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17212 exception handler volatile if it is of variable size.
17213 (process_type): Remove bypass for types coming from a limited_with
17215 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17216 actual, convert the corresponding gnu_actual to the real destination
17217 type when necessary.
17218 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17219 originally TREE_READONLY but whose elaboration cannot be performed
17221 Part of fix for F504-021.
17222 (tree_transform, subprogram cases): Change loops on formal parameters to
17223 call new Einfo function First_Formal_With_Extras.
17224 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17225 stemming from type conversion for the lhs.
17226 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17227 number of bits per unit for components of records.
17228 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17229 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17230 with At_End_Proc after the SJLJ EH cleanup.
17231 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17233 (elaborate_all_entities): Do not retest type_annotate_only.
17234 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17235 result type of an abstract subprogram, which may be an itype associated
17236 with an anonymous access result (related to AI-318-02).
17237 (build_global_cdtor): Move to utils.c.
17238 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17239 this choice is not a null tree nor an integer constant.
17240 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17241 on the body of elaboration routines instead of mark_unvisited.
17242 (add_stmt): Do not mark the tree.
17243 (add_decl_expr): Tweak comment.
17244 (mark_unvisited): Delete.
17245 (unshare_save_expr): New static function.
17246 (call_to_gnu): Issue an error when making a temporary around a
17247 procedure call because of non-addressable actual parameter if the
17248 type of the formal is by_reference.
17249 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17250 after building the elaboration routine.
17252 2006-10-31 Bob Duff <duff@adacore.com>
17254 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17255 as finalization-started, so we can raise Program_Error on 'new'.
17257 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17258 collection has already started.
17260 * s-finimp.ads (Collection_Finalization_Started): Added new special
17261 flag value for indicating that a collection's finalization has started.
17263 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17264 create a task whose master has already waited for dependent tasks.
17266 2006-10-31 Robert Dewar <dewar@adacore.com>
17268 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17270 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17271 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17272 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17273 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17274 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17275 a-except-2005.ads: Add pragma Preelaborable_Warning
17277 2006-10-31 Robert Dewar <dewar@adacore.com>
17278 Jose Ruiz <ruiz@adacore.com>
17280 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17282 * ali.adb (Get_Name): Properly handle scanning of wide character names
17283 encoded with brackets notation.
17284 (Known_ALI_Lines): Add S lines to this list.
17285 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17286 New flag Elaborate_All_Desirable in unit table
17288 * ali.ads (Priority_Specific_Dispatching): Add this range of
17289 identifiers to be used for Priority_Specific_Dispatching table entries.
17290 (ALIs_Record): Add First_Specific_Dispatching and
17291 Last_Specific_Dispatching that point to the first and last entries
17292 respectively in the priority specific dispatching table for this unit.
17293 (Specific_Dispatching): Add this table for storing each S (priority
17294 specific dispatching) line encountered in the input ALI file.
17295 New flag Elaborate_All_Desirable in unit table
17297 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17298 Check_Consistent_Dispatching_Policy.
17299 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17300 verifying that the use of Priority_Specific_Dispatching,
17301 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17304 * bindgen.adb: (Public_Version_Warning): function removed.
17305 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17306 required information from ALI files in order to initialize the table
17307 containing the specific dispatching policy.
17308 (Gen_Adainit_Ada): Generate the variables required for priority specific
17309 dispatching entries (__gl_priority_specific_dispatching and
17310 __gl_num_specific_dispatching).
17311 (Gen_Adainit_C): Generate the variables required for priority specific
17312 dispatching entries (__gl_priority_specific_dispatching and
17313 __gl_num_specific_dispatching).
17314 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17316 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17317 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17319 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17320 a call to gnat_set_globals.
17321 Generate a string containing settings from
17322 Priority_Specific_Dispatching pragma entries.
17323 (Gen_Object_Files_Options): Do not include the runtime libraries when
17324 pragma No_Run_Time is specified.
17326 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17327 consistency with s-intman-posix.adb.
17328 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17329 handler is installed with SA_SIGINFO.
17330 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17331 FreeBSD ZCX support, copied from Linux version.
17332 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17333 sigfillset, and sigemptyset so the routines defined by MaRTE.
17334 (__gl_priority_specific_dispatching): Add this variable that stores the
17335 string containing priority specific dispatching policies in the
17337 (__gl_num_specific_dispatching): Add this variable that indicates the
17338 highest priority for which a priority specific dispatching pragma
17340 (__gnat_get_specific_dispatching): Add this routine that returns the
17341 priority specific dispatching policy, as set by a
17342 Priority_Specific_Dispatching pragma appearing anywhere in the current
17343 partition. The input argument is the priority number, and the result
17344 is the upper case first character of the policy name.
17345 (__gnat_set_globals): Now a dummy function.
17346 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17347 mechargs instead of sigargs, as the latter can be retrieved from the
17348 former and sigargs is not what we want on ia64.
17349 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17351 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17352 (tasking_error): Remove unused symbol.
17353 (_abort_signal): Move this symbol to the IRIX specific part since this
17354 is the only target that uses this definition.
17355 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17356 this is the only target that uses this definition.
17357 (Lock_Task): Remove unused symbol.
17358 (Unlock_Task): Remove unused symbol.
17360 * lib-writ.adb (Write_ALI): Output new S lines for
17361 Priority_Specific_Dispatching pragmas.
17362 Implement new flag BD for elaborate body desirable
17364 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17365 (Specific_Dispatching): Add this table for storing the entries
17366 corresponding to Priority_Specific_Dispatching pragmas.
17367 Document new BD flag for elaborate body desirable
17369 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17372 2006-10-31 Javier Miranda <miranda@adacore.com>
17374 * a-tags.ads, a-tags.adb:
17375 (Predefined_DT): New function that improves readability of the code.
17376 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17377 Inherit_DT): Use the new function Predefined_DT to improve code
17379 (Register_Interface_Tag): Update assertion.
17380 (Set_Interface_Table): Update assertion.
17381 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17382 determining progenitor interfaces in Tags.
17383 (Inherit_CPP_DT): New subprogram.
17385 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17386 analysis of the thunk code.
17387 (Expand_Interface_Conversion): Handle run-time conversion of
17388 access to class wide types.
17389 (Expand_Dispatching_Call): When generating the profile for the
17390 subprogram itype for a dispatching operation, properly terminate the
17391 formal parameters chaind list (set the Next_Entity of the last formal
17393 (Collect_All_Interfaces): Removed. This routine has been moved to
17394 sem_util and renamed as Collect_All_Abstract_Interfaces.
17395 (Set_All_DT_Position): Hidden entities associated with abstract
17396 interface primitives are not taken into account in the check for
17397 3.9.3(10); this check is done with the aliased entity.
17398 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17399 interfacing with CPP by default.
17400 (Expand_Interface_Conversion): Add missing support for static conversion
17401 from an interface to a tagged type.
17402 (Collect_All_Interfaces): Add new out formal containing the list of
17403 abstract interface types to cleanup the subprogram Make_DT.
17404 (Make_DT): Update the code to generate the table of interfaces in case
17405 of abstract interface types.
17406 (Is_Predefined_Dispatching_Alias): New function that returns true if
17407 a primitive is not a predefined dispatching primitive but it is an
17408 alias of a predefined dispatching primitive.
17409 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17410 compiling under full ABI compatibility mode we avoid the generation of
17411 calls to run-time services that fill the dispatch tables because under
17412 this mode we currently inherit the dispatch tables in the IP subprogram.
17413 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17414 (Expand_Interface_Conversion): Use an address as the type of the formal
17415 of the internally built function that handles the case in which the
17416 target type is an access type.
17418 2006-10-31 Robert Dewar <dewar@adacore.com>
17420 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17422 2006-10-31 Robert Dewar <dewar@adacore.com>
17424 * bindusg.ads, bindusg.adb:
17425 Change to package and rename procedure as Display, which
17426 now ensures that it only outputs usage information once.
17428 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17430 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17433 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17436 2006-10-31 Robert Dewar <dewar@adacore.com>
17437 Ed Schonberg <schonberg@adacore.com>
17439 * treepr.adb: Use new subtype N_Membership_Test
17441 * checks.ads, checks.adb: Add definition for Validity_Check
17442 (Range_Or_Validity_Checks_Suppressed): New function
17443 (Ensure_Valid): Test Validity_Check suppressed
17444 (Insert_Valid_Check): Test Validity_Check suppressed
17445 (Insert_Valid_Check): Preserve Do_Range_Check flag
17446 (Validity_Check_Range): New procedure
17447 (Expr_Known_Valid): Result of membership test is always valid
17448 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17449 by themselves. Disabling those checks must also be done for task types,
17450 where discriminants may be used for the bounds of entry families.
17451 (Apply_Address_Clause_Check): Remove side-effects if address expression
17452 is non-static and is not the name of a declared constant.
17453 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17454 Code cleanup and new error messages.
17455 (Enable_Range_Check): Test for some cases of suppressed checks
17456 (Generate_Index_Checks): Suppress index checks if index checks are
17457 suppressed for array object or array type.
17458 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17459 length check failure, even if checks are off.
17460 (Ensure_Valid): Do not generate a check on an indexed component whose
17461 prefix is a packed boolean array.
17462 * checks.adb: (Alignment_Checks_Suppressed): New function
17463 (Apply_Address_Clause_Check): New procedure, this is a completely
17464 rewritten replacement for Apply_Alignment_Check
17465 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17466 we request a discriminal value only in case of discriminants.
17467 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17468 assignments where the target subtype is unconstrained and the target
17469 object is a parameter or dereference (other aliased cases are known
17470 to be unconstrained).
17472 2006-10-31 Robert Dewar <dewar@adacore.com>
17474 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17475 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17476 vms_conv.adb: Fix bad table increment values (much too small)
17478 * table.adb (Realloc): Make sure we get at least some new elements
17479 Defends against silly small values for table increment
17481 2006-10-31 Robert Dewar <dewar@adacore.com>
17482 Ed Schonberg <schonberg@adacore.com>
17483 Bob Duff <duff@adacore.com>
17485 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17486 entities. Move other fields around to make this possible
17487 (Is_Derived_Type): Add missing call to Is_Type.
17488 (Extra_Formals): New function for subprograms, entries, subprogram
17490 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17491 (First_Formal_With_Extras): New function for subprogs, entries, subp
17493 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17494 Add node information for E_Return_Statement.
17495 (Elaborate_Body_Desirable): New flag
17496 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17497 to be Is_Inherently_Limited_Type, because return-by-reference has
17498 no meaning in Ada 2005.
17499 (E_Return_Statement): New entity kind.
17500 (Return_Applies_To): Field of E_Return_Statement.
17501 (Is_Return_Object): New flag in object entities.
17502 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17503 (Must_Have_Preelab_Init): New flag
17504 (Known_To_Have_Preelab_Init): New flag
17505 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17506 (Is_Visible_Formal): New flag on entities in formal packages.
17507 (Low_Bound_Known): New flag
17508 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17510 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17511 output when Id is an incomplete subtype.
17513 2006-10-31 Robert Dewar <dewar@adacore.com>
17515 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17516 Avoid abbreviation Creat
17517 (Finalize): List all sources in extended mail source if -gnatl
17519 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17520 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17521 (Set_Specific_Warning_On): New procedure
17522 (Set_Specific_Warning_Off): New procedure
17523 Add implementation of new insertion \\
17524 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17525 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17527 (Error_Msg_Internal): Make sure that we set Last_Killed to
17528 True when a message from another package is suppressed.
17529 Implement insertion character ~ (insert string)
17530 (First_Node): Minor adjustments to get better placement.
17533 Implement new -gnatl=xxx switch to output listing to file
17536 Implement new -gnatl=xxx switch to output listing to file
17538 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17539 (Commands_To_Stdout): New flag
17540 Implement new -gnatl=xxx switch to output listing to file
17541 New switch Dump_Source_Text
17542 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17543 Define Error_Msg_Line_Length
17544 (Warn_On_Assumed_Low_Bound): New switch
17546 * osint.ads, osint.adb
17547 (Normalize_Directory_Name): Fix bug.
17548 Implement new -gnatl=xxx switch to output listing to file
17549 (Concat): Removed, replaced by real concatenation
17550 Make use of concatenation now allowed in compiler
17551 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17552 we find the 'lib' or 'bin' directory even when the tool has been
17553 invoked with a relative path.
17554 (Executable_Name): New function taking string parameters.
17556 * osint-c.ads, osint-c.adb:
17557 Implement new -gnatl=xxx switch to output listing to file
17559 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17562 Implement new -gnatl=xxx switch to output listing to file
17563 Recognize new -gnatL switch
17564 (no longer keep in old warning about old style usage)
17565 Use concatenation to simplify code
17566 Recognize -gnatjnn switch
17567 (Scan_Front_End_Switches): Clean up handling of -gnatW
17568 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17570 2006-10-31 Robert Dewar <dewar@adacore.com>
17572 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17573 (Set_Specific_Warning_Off): New procedure
17574 (Warning_Specifically_Suppressed): New function
17575 (Validate_Specific_Warnings): New procedure
17576 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17578 * err_vars.ads: Implement insertion character ~ (insert string)
17580 2006-10-31 Bob Duff <duff@adacore.com>
17581 Ed Schonberg <schonberg@adacore.com>
17583 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17584 the parent part is a build-in-place function call, generate assignments.
17585 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17586 are build-in-place function calls.
17587 (Replace_Self_Reference): New subsidiary of
17588 Make_OK_Assignment_Statement, to replace an access attribute that is a
17589 self-reference into an access to the appropriate component of the
17590 target object. Generalizes previous mechanism to handle self-references
17591 nested at any level.
17592 (Is_Self_Referential_Init): Remove, not needed.
17593 (Is_Self_Referential_Init): New predicate to simplify handling of self
17594 referential components in record aggregates.
17595 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17596 check for presence of entity before checking for self-reference.
17597 (Has_Default_Init_Comps): Return True if a component association is a
17598 self-reference to the enclosing type, which can only come from a
17599 default initialization.
17600 (Make_OK_Assignment_Statement): If the expression is of the form
17601 Typ'Acc, where Acc is an access attribute, the expression comes from a
17602 default initialized self-referential component.
17603 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17604 that has been derived from several abstract interfaces we must also
17605 initialize the tags of the secondary dispatch tables.
17607 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17608 Thomas Quinot <quinot@adacore.com>
17609 Javier Miranda <miranda@adacore.com>
17610 Robert Dewar <dewar@adacore.com>
17613 (Expand_Access_To_Protected_Op): If the context indicates that an access
17614 to a local operation may be transfered outside of the object, create an
17615 access to the wrapper operation that must be used in an external call.
17616 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17617 target, pass the Valid attribute applied to a floating-point prefix on
17618 to the back end without expansion.
17619 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17620 the allocated storage when it is specified by a per-object expression.
17621 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17622 Nothing to do here, the attribute has been rewritten during semantic
17624 (Expand_Attribute_Reference): Handle expansion of the new Priority
17626 (Find_Fat_Info): Handle case of universal real
17627 (Expand_Access_To_Protected_Op): Fix use of access to protected
17628 subprogram from inside the body of a protected entry.
17629 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17630 'Access and 'Unrestricted_Access, to transform the attribute reference
17631 into a fat pointer.
17632 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17633 subcomponent's enclosing variable is aliased with a constrained subtype.
17634 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17635 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17636 an aliased prefix must be known to be constrained in order to use True
17637 for the attribute value, and now it's possible for some aliased views
17638 to be unconstrained.
17640 2006-10-31 Robert Dewar <dewar@adacore.com>
17642 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17643 (Expand_Entity_Reference): Correct error of not handling subprogram
17644 formals in current_value processing.
17646 2006-10-31 Javier Miranda <miranda@adacore.com>
17647 Robert Dewar <dewar@adacore.com>
17648 Ed Schonberg <schonberg@adacore.com>
17649 Gary Dismukes <dismukes@adacore.com>
17651 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17652 register in the final list objects containing class-wide interfaces;
17653 otherwise we incorrectly register the tag of the interface in the final
17655 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17656 generate the wrapper if the parent primitive is abstract. This is
17657 required to report the correct error message.
17658 (Expand_N_Subtype_Indication): Do validity checks on range
17659 (Clean_Task_Names): If an initialization procedure includes a call to
17660 initialize a task (sub)component, indicate that the procedure will use
17661 the secondary stack.
17662 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17663 compatibility for interfacing with CPP by default.
17664 (Expand_N_Object_Declaration): Only build an Adjust call when the
17665 object's type is a nonlimited controlled type.
17666 * exp_ch3.adb: Add with and use of Exp_Ch6.
17667 (Expand_N_Object_Declaration): Check for object initialization that is a
17668 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17669 Object_Declaration to the call.
17670 (Freeze_Type): When the designated type of an RACW was not frozen at the
17671 point where the RACW was declared, validate the primitive operations
17672 with respect to E.2.2(14) when it finally is frozen.
17673 (Build_Initialization_Call,Expand_Record_Controller): Rename
17674 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17675 return-by-reference has no meaning in Ada 2005.
17676 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17677 to register tag of the immediate ancestor interfaces in the
17678 run-time structure.
17679 (Init_Secondary_Tags): Moved to the specification to allow the
17680 initialization of extension aggregates with abstract interfaces.
17681 (Build_Master_Renaming): Make public, for use by function declarations
17682 whose return type is an anonymous access type.
17683 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17684 Insert_List_Before_And_Analyze after the generation of the specs
17685 associated with null procedures.
17686 (Expand_Tagged_Root): Update documentation in its specification.
17687 (Init_Secondary_Tags): Update documentation.
17688 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17689 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17690 then generate code to inherit the contents of the dispatch table
17691 directly from the ancestor.
17692 (Expand_Record_Controller): Insert controller component after tags of
17693 implemented interfaces.
17694 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17695 create null procedure overridings when null procedures are inherited
17697 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17698 declarations for overriding null primitives inherited from interfaces.
17699 (Is_Null_Interface_Procedure): New function in
17700 Make_Null_Procedure_Specs.
17701 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17702 immediate ancestor of a tagged type is an abstract interface type we
17703 must generate the specification of the predefined primitives associated
17704 with controlled types (because the dispatch table of the ancestor is
17705 null and hence these entries cannot be inherited). This is required to
17706 elaborate well the dispatch table.
17708 2006-10-31 Javier Miranda <miranda@adacore.com>
17709 Ed Schonberg <schonberg@adacore.com>
17710 Bob Duff <duff@adacore.com>
17711 Gary Dismukes <dismukes@adacore.com>
17712 Robert Dewar <dewar@adacore.com>
17714 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17716 (Expand_N_In): Do validity checks on range
17717 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17718 (Expand_N_Allocator): For "new T", if the object is constrained by
17719 discriminant defaults, allocate the right amount of memory, rather than
17720 the maximum for type T.
17721 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17722 when the allocator is initialized by a build-in-place call, since the
17723 allocator is already rewritten as a reference to the function result,
17724 and this prevents an unwanted duplication of the function call.
17725 Add with and use of Exp_Ch6.
17726 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17727 is a call to build-in-place function and apply
17728 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17729 untagged designated types).
17730 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17731 optimization if source or target is biased.
17732 (Expand_N_Allocator): Add comments for case of an allocator within a
17733 function that returns an anonymous access type designating tasks.
17734 (Expand_N_Allocator): apply discriminant checks for access
17735 discriminants of anonymous access types (AI-402, AI-416)
17737 2006-10-31 Bob Duff <duff@adacore.com>
17738 Robert Dewar <dewar@adacore.com>
17739 Gary Dismukes <dismukes@adacore.com>
17740 Ed Schonberg <schonberg@adacore.com>
17742 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17744 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17745 (Expand_N_Assignment_Statement): Call
17746 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17747 build-in-place function call. Currently, this can happen only for
17748 assignments that come from aggregates.
17749 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17750 in order to alleviate the upward compatibility introduced by AI-318.
17751 (Expand_N_Extended_Return_Statement): Add support for handling the
17752 return object as a build-in-place result.
17753 (Expand_Non_Function_Return): Implement simple return statements nested
17754 within an extended return.
17755 (Enable_New_Return_Processing): Turn on the new processing of return
17757 (Expand_Non_Function_Return): For a return within an extended return,
17758 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17759 (Expand_N_Extended_Return_Statement): Implement AI-318
17760 (Expand_Simple_Function_Return): Ditto.
17761 (Expand_N_If_Statement): Handle new -gnatwt warning
17762 (Expand_N_Case_Statement): Handle new -gnatwt warning
17763 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17764 a protected object.
17765 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17766 validity checking of assignments to elementary record components.
17767 (Expand_N_Return_Statement): return Class Wide types on the secondary
17768 stack independantly of their controlled status since with HIE runtimes,
17769 class wide types are not potentially controlled anymore.
17771 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17774 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17775 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17776 it expects a block, procedure, or task. The return statement will get
17777 turned into a block, and Expand_Cleanup_Actions will happen then.
17779 2006-10-31 Robert Dewar <dewar@adacore.com>
17780 Ed Schonberg <schonberg@adacore.com>
17781 Bob Duff <duff@adacore.com>
17782 Gary Dismukes <dismukes@adacore.com>
17784 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17786 (Expand_Inlined_Call): Tagged types are by-reference types, and
17787 therefore should be replaced by a renaming declaration in the expanded
17788 body, as is done for limited types.
17789 (Expand_Call): If this is a call to a function with dispatching access
17790 result, propagate tag from context.
17791 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17793 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17794 build-in-place when the right-hand side of an assignment is a
17795 build-in-place function call.
17796 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17797 of the explicit dereference of the allocator to the result subtype of
17798 the build-in-place function. This is needed to satisfy type checking
17799 in cases where the caller's return object is created by an allocator for
17800 a class-wide access type and the type named in the allocator is a
17802 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17803 conversion of the reference to the declared object to the result subtype
17804 of the build-in-place function. This is needed to satisfy type checking
17805 in cases where the declared object has a class-wide type. Also, in the
17806 class-wide case, change the type of the object entity to the specific
17807 result subtype of the function, to avoid passing a class-wide object
17808 without explicit initialization to the back end.
17809 (Register_Interface_DT_Entry): Moved outside the body of
17810 Freeze_Subprogram because this routine is now public; it is called from
17811 Check_Dispatching_Overriding to handle late overriding of abstract
17812 interface primitives.
17813 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17814 adding an implicit access actual on a call to a build-in-place function.
17815 (Expand_Actuals): Test for an actual parameter that is a call to a
17816 build-in-place function and apply
17817 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17818 (Is_Build_In_Place_Function): New function to determine whether an
17819 entity is a function whose calls should be handled as build-in-place.
17820 (Is_Build_In_Place_Function_Call): New function to determine whether an
17821 expression is a function call that should handled as build-in-place.
17822 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17823 calls to build-in-place functions as the initialization of an allocator.
17824 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17825 handling calls to build-in-place functions in contexts that do not
17826 involve init of a separate object (for example, actuals of subprogram
17828 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17829 handling calls to build-in-place functions as the initialization of an
17830 object declaration.
17831 (Detect_Infinite_Recursion): Add explicit parameter Process to
17832 instantiation of Traverse_Body to avoid unreferenced warning.
17833 (Check_Overriding_Inherited_Interfaces): Removed.
17834 (Register_Interface_DT_Entry): Code cleanup.
17835 (Register_Predefined_DT_Entry): Code cleanup.
17836 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17837 inlined statements if within a transient scope.
17838 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17839 formal parameters with occurrences of actuals in inlined body, establish
17840 visibility on the proper view of the actual's subtype for the body's
17842 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17843 compatibility mode and we have an imported CPP subprogram because
17844 for now we assume that imported CPP primitives correspond with
17845 objects whose constructor is in the CPP side (and therefore we
17846 don't need to generate code to register them in the dispatch table).
17847 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17848 aligned selected component.
17849 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17850 the actual of an in-mode parameter is a type conversion.
17851 (Expand_Actuals): If the call does not come from source and the actual
17852 is potentially misaligned, let gigi handle it rather than rejecting the
17853 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17854 Class Wide types as returning by reference independantly of their
17855 controlled status since with HIE runtimes class wide types are not
17856 potentially controlled anymore.
17858 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17860 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17861 references that are private components of the protected object.
17862 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17863 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17864 instantiation to deal with warnings.
17865 (Initialize_Protection): If expression for priority is non-static, use
17866 System_Priority as its expected type, in case the expression has not
17869 2006-10-31 Robert Dewar <dewar@adacore.com>
17871 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17872 initialization of Homonym_Len.
17873 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17874 names from fully qualified name. Fixes problem of duplicate
17875 external names differing only in the presence of such a block name.
17877 2006-10-31 Thomas Quinot <quinot@adacore.com>
17878 Pablo Oliveira <oliveira@adacore.com>
17880 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17881 subprogram Ids, even if they are not yet assigned.
17882 (Build_Subprogram_Id): It is now this function that will take care of
17883 calling Assign_Subprogram_Ids if necessary.
17884 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17885 should be done only once they are assigned.
17886 (Build_From_Any_Function, case of tagged types): Add missing call to
17888 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17889 type for an RACW type.
17890 (Add_RACW_Features): When processing an RACW declaration for which the
17891 designated type is already frozen, enforce E.2.2(14) rules immediately.
17892 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17893 special reordering of controlling formals.
17895 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17896 associated stub type for an RACW type.
17898 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17900 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17901 fixed-point operations in an integer context, i.e. as operands of a
17902 conversion to an integer type, indicate that result must be rounded.
17904 2006-10-31 Robert Dewar <dewar@adacore.com>
17906 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17907 cases, pass the encoding method, since it is now required by the run
17910 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17911 assumption that Str'First = 1.
17912 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17913 it on to the Value_Wide_Wide_Character call.
17914 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17915 properly handles a string of the form quote-encoded_wide_char-quote.
17917 * s-wchcnv.adb: Minor reformatting
17919 2006-10-31 Javier Miranda <miranda@adacore.com>
17921 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17922 run-time membership test to ensure that the constructed object
17923 implements the target abstract interface.
17925 2006-10-31 Robert Dewar <dewar@adacore.com>
17927 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17928 Machine_Attribute pragma internally to implement the user pragma.
17929 Add processing for pragma Interface so that it is now completely
17930 equivalent to pragma Import.
17932 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17933 so that it can be applied to all entities, including record components
17934 and enumeration literals.
17935 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17936 priority ranges are correct, verify compatibility against task
17937 dispatching and locking policies, and if everything is correct an entry
17938 is added to the table containing priority specific dispatching entries
17939 for this compilation unit.
17940 (Delay_Config_Pragma_Analyze): Delay processing
17941 Priority_Specific_Dispatching pragmas because when processing the
17942 pragma we need to access run-time data, such as the range of
17943 System.Any_Priority.
17944 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17945 Allow pragma Unreferenced as a context item
17946 Add pragma Preelaborable_Initialization
17947 (Analyze_Pragma, case Interface): Interface is extended so that it is
17948 now syntactically and semantically equivalent to Import.
17949 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17950 insertion characters.
17951 Add handling for Pragma_Wide_Character_Encoding
17952 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17953 never supercedes a real restriction, and that a real restriction
17954 always supercedes a warning.
17955 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17958 2006-10-31 Bob Duff <duff@adacore.com>
17959 Ed Schonberg <schonberg@adacore.com>
17960 Robert Dewar <dewar@adacore.com>
17962 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17963 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17964 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17966 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17967 type of the function containing a return statement, because the
17968 Return_Type field was removed. We now use the Return_Applies_To field.
17970 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17971 (Build_Task_Image_Decl): If procedure is not called from an
17972 initialization procedure, indicate that function that builds task name
17973 uses the sec. stack. Otherwise the enclosing initialization procedure
17974 will carry the indication.
17975 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17976 N_Object_Declaration instead.
17977 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17978 conditional dead code killed, and change implementation accordingly.
17979 (Insert_Actions): Add N_Return_Object_Declaration case.
17980 Correct comment to mention N_Extension_Aggregate node.
17981 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17982 attempts to save information for global variables which cannot be
17984 (Get_Current_Value_Condition): Handle conditions the other way round
17985 (constant on left). Also handle right operand of AND and AND THEN
17986 (Set_Current_Value_Condition): Corresponding changes
17987 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17988 (Get_Current_Value_Condition): Handle simple boolean operands
17989 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17990 (Get_Current_Value_Condition): If the variable reference is within an
17991 if-statement, does not appear in the list of then_statments, and does
17992 not come from source, treat it as being at unknown location.
17993 (Get_Current_Value_Condition): Enhance to allow while statements to be
17994 processed as well as if statements.
17995 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17997 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17998 of loop. This is safe now that we fixed Kill_Current_Values.
17999 (OK_To_Do_Constant_Replacement): Check whether current scope is
18000 Standard, before examining outer scopes.
18002 2006-10-31 Vincent Celier <celier@adacore.com>
18004 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
18005 When True, apply VMS treatment to children of packages A, G, I and S.
18008 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
18010 2006-10-31 Robert Dewar <dewar@adacore.com>
18011 Ed Schonberg <schonberg@adacore.com>
18013 * freeze.adb: Add handling of Last_Assignment field
18014 (Warn_Overlay): Supply missing continuation marks in error msgs
18015 (Freeze_Entity): Add check for Preelaborable_Initialization
18017 * g-comlin.adb: Add Warnings (Off) to prevent new warning
18019 * g-expect.adb: Add Warnings (Off) to prevent new warning
18021 * lib-xref.adb: Add handling of Last_Assignment field
18022 (Generate_Reference): Centralize handling of pragma Obsolescent here
18023 (Generate_Reference): Accept an implicit reference generated for a
18024 default in an instance.
18025 (Generate_Reference): Accept a reference for a node that is not in the
18026 main unit, if it is the generic body corresponding to an subprogram
18029 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
18031 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
18033 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
18035 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
18036 use clauses, to avoid messages on packages used to qualify, and also
18037 to avoid messages from obsolescent units.
18038 (Warn_On_Useless_Assignments): Don't generate messages for imported
18039 and exported variables.
18040 (Warn_On_Useless_Assignments): New procedure
18041 (Output_Obsolescent_Entity_Warnings): New procedure
18042 (Check_Code_Statement): New procedure
18044 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
18045 Change name Is_Ada_2005 to Is_Ada_2005_Only
18046 (Last_Assignment): New field for useless assignment warning
18048 2006-10-31 Olivier Hainque <hainque@adacore.com>
18050 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18051 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18053 2006-10-31 Bob Duff <duff@adacore.com>
18054 Robert Dewar <dewar@adacore.com>
18055 Ed Schonberg <schonberg@adacore.com>
18057 * g-awk.adb (Default_Session, Current_Session): Compile this file in
18058 Ada 95 mode, because it violates the new rules for AI-318.
18060 * g-awk.ads: Use overloaded subprograms in every case where we used to
18061 have a default of Current_Session. This makes the code closer to be
18062 correct for both Ada 95 and 2005.
18064 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18065 code, relying on the fact that the compiler generates a warning
18066 instead of an error in -gnatg mode.
18068 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18069 E_Return_Statement entity kind.
18070 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18072 * par.adb (P_Interface_Type_Definition): Addition of one formal to
18073 report an error if the reserved word abstract has been previously found.
18074 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18076 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18077 parenthesized range attribute usage
18078 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18080 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18081 in the syntax for extended_return_statement. This is not in the latest
18082 RM, but the ARG is expected to issue an AI allowing this.
18083 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18084 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18085 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18086 P_Return_Statement): Parse the new syntax for extended_return_statement.
18088 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18089 Output_End_Missing): Add error-recovery code for the new
18090 extended_return_statement syntax; that is, the new E_Return entry on
18093 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18094 limited to nonlimited, because otherwise we violate the new Ada 2005
18095 rules about returning limited types in function Create_AST_Handler in
18098 * sem.adb (Analyze): Add cases for new node kinds
18099 N_Extended_Return_Statement and N_Return_Object_Declaration.
18101 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18102 type is in the same category as type of context before applying check,
18103 to prevent anomalies in instantiations.
18104 (Resolve_Aggregate): Remove test for limited components in aggregates.
18105 It's unnecessary in Ada 95, because if it has limited components, then
18106 it must be limited. It's wrong in Ada 2005, because limited aggregates
18108 (Resolve_Record_Aggregate): Move check for limited types later, because
18109 OK_For_Limited_Init requires its argument to have been resolved.
18110 (Get_Value): When copying the component default expression for a
18111 defaulted association in an aggregate, use the sloc of the aggregate
18112 and not that of the original expression, to prevent spurious
18113 elaboration errors, when the expression includes function calls.
18114 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18115 were missing. We also didn't handle qualified expressions. Now also
18116 allow function calls. Use new common routine OK_For_Limited_Init.
18117 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18118 with space can upper case letter).
18120 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18121 Has_Static_Discriminants flag
18122 (Record_Type_Declaration): Diagnose an attempt to declare an interface
18123 type with discriminants.
18124 (Process_Range_Expr_In_Decl): Do validity checks on range
18125 (Build_Discriminant_Constraints): Use updated form of
18126 Denotes_Discriminant.
18127 (Process_Subtype): If the subtype is a private subtype whose full view
18128 is a concurrent subtype, introduce an itype reference to prevent scope
18130 (Build_Derived_Record_Type, Collect_Interface_Primitives,
18131 Record_Type_Declaration): The functionality of the subprograms
18132 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18133 is now performed by a single routine.
18134 (Build_Derived_Record_Type): If the type definition includes an explicit
18135 indication of limitedness, then the type must be marked as limited here
18136 to ensure that any access discriminants will not be treated as having
18137 a local anonymous access type.
18138 (Check_Abstract_Overriding): Issue a detailed error message when an
18139 abstract subprogram was not overridden due to incorrect mode of its
18141 (Analyze_Private_Extension_Declaration): Add support for the analysis of
18142 synchronized private extension declarations. Verify that the ancestor is
18143 a limited or synchronized interface or in the generic case, the ancestor
18144 is a tagged limited type or synchronized interface and all progenitors
18145 are either limited or synchronized interfaces.
18146 Derived_Type_Declaration): Check for presence of private extension when
18147 dealing with synchronized formal derived types.
18148 Process_Full_View): Enchance the check done on the usage of "limited" by
18149 testing whether the private view is synchronized.
18150 Verify that a synchronized private view is completed by a protected or
18152 (OK_For_Limited_Init_In_05): New function.
18153 (Analyze_Object_Declaration): Move check for limited types later,
18154 because OK_For_Limited_Init requires its argument to have been resolved.
18155 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18156 in order to alleviate the upward compatibility introduced by AI-318.
18157 (Constrain_Corresponding_Record): If the constraint is for a component
18158 subtype, mark the itype as frozen, to avoid out-of-scope references to
18159 discriminants in the back-end.
18160 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18161 this subprogram against wrong sources.
18162 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18163 discriminant of limited type completed with a protected type, when the
18164 discriminant is used to constrain a private component of the type, and
18165 expansion is disabled.
18166 (Find_Type_Of_Object): Do not treat a return subtype that is an
18167 anonymous subtype as a local_anonymous_type, because its accessibility
18168 level is the return type of the enclosing function.
18169 (Check_Initialization): In -gnatg mode, turn the error "cannot
18170 initialize entities of limited type" into a warning.
18171 (OK_For_Limited_Init): Return true for generated nodes, since it
18172 sometimes violates the legality rules.
18173 (Make_Incomplete_Declaration): If the type for which an incomplete
18174 declaration is created happens to be the currently visible entity,
18175 preserve the homonym chain when removing it from visibility.
18176 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18177 inherited subprograms.
18178 (Access_Definition): If this is an access to function that is the return
18179 type of an access_to_function definition, context is a type declaration
18180 and the scope of the anonymous type is the current one.
18181 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18182 incomplete subtype to the set of private dependents of the original
18184 (Constrain_Discriminated_Type): Emit an error message whenever an
18185 incomplete subtype is being constrained.
18186 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18187 corresponding subtype of the full view of the original incomplete type.
18188 (Check_Incomplete): Properly detect invalid usage of incomplete types
18191 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18193 * g-catiio.ads, g-catiio.adb (Value): New function.
18194 Given an input String, try and parse a valid Time value.
18196 2006-10-31 Vincent Celier <celier@adacore.com>
18198 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18199 Integer_Address arithmetic, as in Set_Valid.
18201 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18202 Robert Dewar <dewar@adacore.com>
18204 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18205 handling executable extension manually and duplicating code.
18207 * make.adb: Implement new -S switch
18208 (Gnatmake): Use new function Osint.Executable_Name instead
18209 of handling executable extension manually.
18211 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18212 is specified, the executable name ends with this suffix.
18213 Take advantage of Osint.Executable_Name instead of duplicating code.
18215 * switch-m.adb: Recognize new gnatmake -S switch
18217 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18219 (Get_Target_Parameters): Set Executable_Extension_On_Target if
18222 * makeusg.adb: Add line for gnatmake -S switch
18224 2006-10-31 Vincent Celier <celier@adacore.com>
18226 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18227 call it with -static-libgcc, as there are some platforms, such as
18228 Darwin, where one of these two switches is compulsory to link.
18230 2006-10-31 Vincent Celier <celier@adacore.com>
18232 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18233 instead of ADA_PROJECT_PATH, for the project path.
18234 (Gnatls): When displaying the project path directories, use host dir
18237 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18238 names in the project path, as absolute paths may correspond to
18239 multi-valued VMS logical names.
18241 2006-10-31 Vincent Celier <celier@adacore.com>
18243 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18244 absolute path name.
18245 (Locate_Regular_File): Ditto
18246 (Change_Dir): Remove, no longer used
18247 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18248 on Windows. Get it calling Get_Current_Dir.
18249 (OpenVMS): Remove imported boolean, no longer needed.
18250 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18251 (Pid_To_Integer): New function to convert a Process_Id to Integer
18253 2006-10-31 Thomas Quinot <quinot@adacore.com>
18255 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18256 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18258 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18261 2006-10-31 Robert Dewar <dewar@adacore.com>
18263 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18264 initial letter o as a zero.
18266 2006-10-31 Robert Dewar <dewar@adacore.com>
18268 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18270 2006-10-31 Robert Dewar <dewar@adacore.com>
18272 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18274 (Layout_Variant_Record): Retrieve the discriminants from the entity
18275 rather than from the type definition, because in the case of a full
18276 type for a private type we need to take the discriminants from the
18278 (Layout_Component_List): When applying the Max operator to variants with
18279 a nonstatic size, check whether either operand is static and scale that
18280 operand from bits to storage units before applying Max.
18281 (Layout_Type): In VMS, if a C-convention access type has no explicit
18282 size clause (and does not inherit one in the case of a derived type),
18283 then the size is reset to 32 from 64.
18285 2006-10-31 Vincent Celier <celier@adacore.com>
18287 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18288 its file has already been loaded, according to the unit being loaded,
18289 not to the current value of Multiple_Unit_Index.
18291 2006-10-31 Thomas Quinot <quinot@adacore.com>
18292 Eric Botcazou <ebotcazou@adacore.com>
18293 Arnaud Charlet <charlet@adacore.com>
18295 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18296 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18298 (a-except.o): Pass it to the compiler.
18299 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18300 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18301 a-calend-mingw.adb version.
18303 * Makefile.rtl: Added s-dsaser.
18304 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18305 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18306 Ada.Dispatching.Round_Robin.
18307 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18309 * Make-lang.in: Remove all references to gt-ada-decl.h.
18310 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18312 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18313 Update dependencies.
18315 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18317 2006-10-31 Vincent Celier <celier@adacore.com>
18319 * mlib-utl.adb (Initialized): Remove, no longer used
18320 (Initialize): Remove, no longer used
18321 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18322 if there is one, the archive indexer. Fail if the archive builder cannot
18324 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18327 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18329 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18330 Process_Body_Clauses): If the context of a body includes a use clause
18331 for P.Q then a with_clause for P in the same body is not redundant,
18332 even if the spec also has a with_clause on P.
18333 Add missing continuation mark to error msg
18334 (Build_Limited_Views): A limited view of a type is tagged if its
18335 declaration includes a record extension.
18336 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18337 node, even if the subunit has errors. This avoids malfunction by
18338 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18339 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18340 generation of obsolescent messages for with statements (cannot do
18341 this too early, or we cannot implement avoiding the messages in the
18342 case of obsolescent units withing obsolescent units).
18343 (Install_Siblings): If the with_clause is on a remote descendant of
18344 an ancestor of the current compilation unit, find whether there is
18345 a sibling child unit that is immediately visible.
18346 (Remove_Private_With_Clauses): New procedure, invoked after completing
18347 the analysis of the private part of a nested package, to remove from
18348 visibility the private with_clauses of the enclosing package
18350 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18351 now centralized in Generate_Reference.
18352 (Install_Limited_Context_Clauses): Remove superfluous error
18353 message associated with unlimited view visible through use
18354 and renamings. In addition, at the point in which the error
18355 is reported, we add the backslash to the text of the error
18356 to ensure that it is reported as a single error message.
18357 Use new // insertion for some continuation messages
18358 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18359 to create implicit with_clause for parent unit mentioned in original
18360 limited_with_clause.
18361 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18362 unit is a child unit. For ASIS queries.
18363 (Analyze_Subunit): If the subunit appears within a child unit, make all
18364 ancestor child units directly visible again.
18366 2006-10-31 Robert Dewar <dewar@adacore.com>
18368 * par-ch10.adb (P_Context_Clause): Minor error message fix
18370 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18371 Javier Miranda <miranda@adacore.com>
18373 * par-ch12.adb: Grammar update and cleanup.
18374 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18375 support for synchronized derived type definitions.
18376 Add the new actual Abstract_Present to every call to
18377 P_Interface_Type_Definition.
18378 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18379 a formal object declaration with an access definition or a subtype mark
18380 with a null exclusion.
18381 (P_Generic_Association): Handle association with box, and others_choice
18382 with box, to support Ada 2005 partially parametrized formal packages.
18384 2006-10-31 Robert Dewar <dewar@adacore.com>
18385 Javier Miranda <miranda@adacore.com>
18387 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18388 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18389 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18390 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18391 private extensions.
18392 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18393 to P_Interface_Type_Definition.
18394 (P_Interface_Type_Definition): Addition of one formal to report an error
18395 if the reserved word abstract has been previously found.
18396 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18397 object renaming declaration with an access definition or subtype mark
18398 with a possible null exclusion.
18400 * par-ch9.adb: Minor error msg fix
18402 * par-load.adb: Add missing continuation mark to error msg
18404 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18406 2006-10-31 Vincent Celier <celier@adacore.com>
18408 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18409 unknown attribute in unknown package or in package that does not need
18411 (Parse_Package_Declaration): Do not issue warning for unknown package in
18414 2006-10-31 Vincent Celier <celier@adacore.com>
18416 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18417 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18420 2006-10-31 Vincent Celier <celier@adacore.com>
18422 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18423 on VMS, change "__" to '.' before checking the name.
18424 (Record_Ada_Source): Always add the source file name in the list of
18425 of sources, even if it is not the first time, as it is for another
18427 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18428 dot, instead of replacing only the first '_'.
18430 * prj-part.adb (Parse): Convert project file path to canonical form
18432 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18433 extended, the project id of the project extending it is recorded in its
18434 data, even when it has already been processed as an imported project.
18436 2006-10-31 Robert Dewar <dewar@adacore.com>
18438 * repinfo.adb (List_Entities): Don't list entities from renaming
18441 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18442 Robert Dewar <dewar@adacore.com>
18444 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18445 only a restriction warning is active for the given restriction. This is
18446 desirable because we do not want to modify code in the case where only
18448 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18449 causes overriding of real restrictions.
18450 Take advantage of new No_Restrictions constant.
18452 * raise.h: (__gnat_set_globals): Change profile.
18454 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18456 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18459 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18460 Move all the entities in obsolete package System.PolyORB_Interface to
18461 System.Partition_Interface.
18462 (RE_Storage_Size): New function in System.Tasking.
18463 (RE_Get_Ceiling): New entity.
18464 (RE_Set_Ceiling): New entity.
18465 (RO_PE_Get_Ceiling): New entity.
18466 (RO_RE_Set_Ceiling): New entity.
18467 (Inherit_CPP_DT): New entity
18469 2006-10-31 Robert Dewar <dewar@adacore.com>
18471 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18472 starting with a digit.
18474 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18475 Thomas Quinot <quinot@adacore.com>
18476 Javier Miranda <miranda@adacore.com>
18477 Gary Dismukes <dismukes@adacore.com>
18479 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18480 properly an attempt to apply Unchecked_Access to a protected operation.
18481 (OK_Self_Reference): New subprogram to check the legality of an access
18482 attribute whose prefix is the type of an enclosing aggregate.
18483 Generalizes previous mechanism to handle attribute references nested
18484 arbitrarily deep within the aggregate.
18485 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18486 can appear in an aggregate if this is a default-initialized aggregate
18487 for a self-referential type.
18488 (Resolve_Attribute, case Access): Ditto.
18489 Add support for new implementation defined attribute Stub_Type.
18490 (Eval_Attribute, case Attribute_Stub_Type): New case.
18491 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18492 (Stream_Attribute_Available): Implement using new subprogram from
18493 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18494 Has_Specified_Stream_Attribute flag.
18495 Disallow Storage_Size and Storage_Pool for access to subprogram
18496 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18497 access types of return subtypes in extended return statements. Remove
18498 accessibility checks on anonymous access types when Unchecked_Access is
18500 (Analyze_Attribute): Add support for the use of 'Class to convert
18501 a class-wide interface to a tagged type.
18502 Add support for the attribute Priority.
18503 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18504 whether the designated type is discriminated with a constrained partial
18505 view and require static matching in that case.
18506 Add local variable Des_Btyp. The Designated_Type
18507 of an access to incomplete subtype is either its non-limited view if
18508 coming from a limited with or its etype if regular incomplete subtype.
18510 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18511 Fix predicate to identify and allow cases of (expander-generated)
18512 references to tag of designated object of a RACW.
18513 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18514 non-static, and therefore cannot appear as a primary in a preelaborable
18516 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18517 Has_Read_Write_Attributes.
18518 (Has_Read_Write_Attributes): Reimplement in termes of
18519 Has_Stream_Attribute_Definition.
18520 (Missing_Read_Write_Attributes): When checking component types in a
18521 record, unconditionally call Missing_Read_Write_Attributes recursively
18522 (remove guard checking for Is_Record_Type / Is_Access_Type).
18524 2006-10-31 Robert Dewar <dewar@adacore.com>
18526 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18527 useless assignments here and conditionalize it on absence of exception
18529 (Analyze_Exception_Handlers): Small code reorganization of error
18530 detection code, for new handling of formal packages.
18532 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18533 Hristian Kirtchev <kirtchev@adacore.com>
18535 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18536 that has been constant-folded, preserve information of original tree,
18538 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18539 generated private extension declaration if the formal derived type is
18540 synchronized. Carry synchronized present over to the generated private
18542 (Validate_Derived_Type_Instance): Ensure that the actual of a
18543 synchronized formal derived type is a synchronized tagged type.
18544 (Instantiate_Formal_Package): When creating the instantiation used to
18545 validate the actual package of a formal declared without a box, check
18546 whether the formal itself depends on a prior actual.
18547 (Instantiate_Formal_Subprogram): Create new entities for the defining
18548 identifiers of the formals in the renaming declaration, for ASIS use.
18549 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18550 a renaming declaration or a subtype declaration for an actual in an
18551 instance, capture location information of declaration in generic, for
18553 (Instantiate_Formal_Package): Add comments on needed additional tests.
18554 AI-317 (partial parametrization) is fully implemented.
18555 (Validate_Private_Type_Instance): Add check for actual which
18556 must have preelaborable initialization
18557 Use new // insertion for some continuation messages
18558 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18559 Default_Expression. Add type retrieval when the declaration has an
18560 access definition. Update premature usage of incomplete type check.
18561 (Check_Access_Definition): New subsidiary routine. Check whether the
18562 current compilation version is Ada 05 and the supplied node has an
18564 (Instantiate object): Alphabetize local variables. Handle the creation
18565 of new renaming declarations with respect to the kind of definition
18566 used - either an access definition or a subtype mark. Guard against
18567 unnecessary error message in the context of anonymous access types after
18568 they have been resolved. Add check for required null exclusion in a
18569 formal object declaration.
18570 (Switch_View): A private subtype of a non-private type needs to be
18571 switched (the base type can have been switched without its private
18572 dependents because of the last branch of Check_Private_View.
18573 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18575 (Instantiate_Type): Emit an error message whenever a class-wide type of
18576 a tagged incomplete type is used as a generic actual.
18577 (Find_Actual_Type): Extend routine to handle a component type in a child
18578 unit that is imported from a formal package in a parent.
18579 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18580 agree on constrainedness, rather than checking against ultimate ancestor
18581 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18582 generic body, for navigation purposes.
18584 2006-10-31 Robert Dewar <dewar@adacore.com>
18585 Thomas Quinot <quinot@adacore.com>
18587 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18589 (New_Stream_Subprogram): When processing an attribute definition clause
18590 for a stream-oriented subprogram, record an entity node occurring at
18591 the point of clause to use for checking the visibility of the clause,
18592 as defined by 8.3(23) as amended by AI-195.
18593 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18594 New_Stream_Function and New_Stream_Procedure.
18595 (New_Stream_Function, New_Stream_Procedure): Removed.
18596 (Analyze_Attribute_Definition_Clause, case Address): Check new
18597 Alignment_Check check
18599 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18600 Javier Miranda <miranda@adacore.com>
18601 Robert Dewar <dewar@adacore.com>
18603 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18604 generate the same errors compiling under -gnatc.
18605 (Try_Object_Operation): If no candidate interpretation succeeds, but
18606 there is at least one primitive operation with the right name, report
18607 error in call rather than on a malformed selected component.
18608 (Analyze_Selected_Component): If the prefix is an incomplete type from
18609 a limited view, and the full view is available, use the full view to
18610 determine whether this is a prefixed call to a primitive operation.
18611 (Operator_Check): Verify that a candidate interpretation is a binary
18612 operation before checking the type of its second formal.
18613 (Analyze_Call): Add additional warnings for function call contexts not
18615 (Analyze_Allocator): Move the check for "initialization not allowed for
18616 limited types" after analyzing the expression. This is necessary,
18617 because OK_For_Limited_Init looks at the structure of the expression.
18618 Before analysis, we don't necessarily know what sort of expression it
18619 is. For example, we don't know whether F(X) is a function call or an
18620 indexed component; the former is legal in Ada 2005; the latter is not.
18621 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18622 were missing. We also didn't handle qualified expressions. Now also
18623 allow function calls. Use new common routine OK_For_Limited_Init.
18624 (Analyze_Type_Conversion): Do not perform some legality checks in an
18625 instance, because the error message will be redundant or spurious.
18626 (Analyze_Overloaded_Selected_Component): Do not do style check when
18627 setting an entity, since we do not know it is the right entity yet.
18628 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18629 (Analyze_Overloaded_Selected_Component): Same change
18630 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18631 since regular incomplete subtypes are transformed into corresponding
18632 subtypes of their full views.
18633 (Complete_Object_Operation): Treat name of transformed subprogram call
18634 as coming from source, for browsing purposes.
18635 (Try_Primitive_Operation): If formal is an access parameter, compare
18636 with base type of object to determine whether it is a primitive
18638 (Operator_Check): If no interpretation of the operator matches, check
18639 whether a use clause on any candidate might make the operation legal.
18640 (Try_Class_Wide_Operation): Check whether the first parameter is an
18641 access type whose designated type is class-wide.
18643 2006-10-31 Robert Dewar <dewar@adacore.com>
18644 Ed Schonberg <schonberg@adacore.com>
18645 Gary Dismukes <dismukes@adacore.com>
18647 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18648 warn on infinite loops.
18649 Add \\ to some continuation messages
18650 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18651 (Process_Bounds): If the bounds are integer literals that result from
18652 constant-folding, and they carry a user-defined type, preserve that type
18653 rather than treating this as an integer range.
18654 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18655 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18656 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18657 left hand side of assignment.
18658 (Analyze_Assignment): Add suport to manage assigments to the attribute
18659 priority of a protected object.
18660 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18661 not just identifiers.
18662 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18663 or AND THEN for possible tracking.
18664 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18665 case of while loops so we can track values in the loop body.
18667 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18668 Hristian Kirtchev <kirtchev@adacore.com>
18669 Bob Duff <duff@adacore.com>
18671 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18672 procedure cannot be a protected operation (it is a basic_declaration,
18673 not a subprogram_declaration).
18674 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18675 Subp. Add logic for entry processing.
18676 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18677 Determine whether an entry or subprogram of a protected or task type
18678 override an inherited primitive of an implemented interface.
18679 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18680 Update the actual used in calls to Check_Overriding_Indicator.
18681 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18682 generate the proper reference to the parent unit, for cross-reference.
18683 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18685 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18686 (Add_Extra_Formal): Revise procedure to allow passing in associated
18687 entity, scope, and name suffix, and handle setting of the new
18688 Extra_Formals field.
18689 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18690 pass new parameters. Add support for adding the new extra access formal
18691 for functions whose calls are treated as build-in-place.
18692 (Analyze_A_Return_Statement): Correct casing in error message.
18693 Move Pop_Scope to after Analyze_Function_Return, because an extended
18694 return statement really is a full-fledged scope. Otherwise, visibility
18695 doesn't work right. Correct use of "\" for continuation messages.
18696 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18697 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18698 the node doesn't get properly marked as analyzed.
18699 (Analyze_Subprogram_Body): If subprogram is a function that returns
18700 an anonymous access type that denotes a task, build a Master Entity
18702 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18703 proper usage of null exclusion in a result definition.
18704 (Process_Formals): Code cleanup and new error message.
18705 (Process_Formals): Detect incorrect application of null exclusion to
18707 (Conforming_Types): Handle conformance between [sub]types and itypes
18708 generated for entities that have null exclusions applied to them.
18709 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18710 base type is an access subtype. This case arrises with null exclusions.
18711 (New_Overloaded_Entity): Do not remove the overriden entity from the
18712 homonym chain if it corresponds with an abstract interface primitive.
18713 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18714 call to the synthesized predicate Is_Incomplete_Type.
18715 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18717 (Analyze_Subprogram_Declaration): Check that abstract interface
18718 primitives are abstract or null.
18719 (Analyze_Subprogram_Specification): Remove previous check for abstract
18720 interfaces because it was not complete.
18721 (Has_Interface_Formals): Removed.
18723 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18724 Javier Miranda <miranda@adacore.com>
18726 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18727 of Analyze_Package_Body, to create Itype references for anonymous
18728 access types created in the package declaration, whose designated types
18729 may have only a limited view.
18730 (Analyze_Package_Specification): For the private part of a nested
18731 package, install private_with_clauses of enclosing compilation unit if
18732 we are in its visible part.
18733 (Declare_Inherited_Private_Subprograms): Complete barrier
18734 to ensure that the primitive operation has an alias to some parent
18735 primitive. This is now required because, after the changes done for the
18736 implementation of abstract interfaces, the contents of the list of
18737 primitives has entities whose alias attribute references entities of
18738 such list of primitives.
18739 (Analyze_Package_Specification): Simplify code that handles parent units
18740 of instances and formal packages.
18741 (Uninstall_Declarations): Check the convention consistency among
18742 primitive overriding operations of a tagged record type.
18744 2006-10-31 Robert Dewar <dewar@adacore.com>
18745 Hristian Kirtchev <kirtchev@adacore.com>
18746 Javier Miranda <miranda@adacore.com>
18747 Ed Schonberg <schonberg@adacore.com>
18749 * sem_ch8.adb: Minor error msg rewording
18750 (Undefined): When checking for misspellings, invert arguments (to get
18751 expected and found set right)
18752 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18753 (Analyze_Generic_Renaming): Same fix
18754 (Use_One_Package): Do not take into account the internal entities of
18755 abstract interfaces during the analysis of entities that are marked
18756 as potentially use-visible.
18757 (Find_Type): Handle the case of an attribute reference for
18758 implementation defined attribute Stub_Type (simply let the analysis of
18759 the attribute reference rewrite it).
18760 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18761 type that appears in a Use_Type clause.
18762 (Analyze_Object_Renaming): Add support for renaming of the Priority
18764 (Find_Type): In Ada 2005, a task type can be used within its own body,
18765 when it appears in an access definition.
18766 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18767 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18768 in a formal object declaration or in a subtype declaration.
18769 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18770 (Check_Null_Exclusion): New local routine to
18771 Analyze_Subprogram_Renaming. Check whether the formals and return
18772 profile of a renamed subprogram have required null exclusions when
18773 their counterparts of the renaming already impose them.
18774 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18775 Determine whether an entity is inside a generic scope.
18776 (In_Open_Scope): First pass of documentation update.
18777 (Find_Expanded_Name): Add support for shadow entities associated with
18778 limited withed packages. This is required to handle nested packages.
18779 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18780 that makes a renaming of a limited withed package illegal.
18782 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18783 Ed Schonberg <schonberg@adacore.com>
18785 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18786 Check_Overriding_Indicator.
18787 (Analyze_Task_Definition): Ditto.
18788 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18789 (Check_Overriding_Indicator): To find overridden interface operation,
18790 examine only homonyms that have an explicit subprogram declaration, not
18791 inherited operations created by an unrelated type derivation.
18792 (Check_Overriding_Indicator): When checking for the presence of "null"
18793 in a procedure, ensure that the queried node is a procedure
18795 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18796 type when the formal is an access to variable.
18797 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18798 (Analyze_Task_Type): Same addition
18799 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18800 provide navigation capabilities for entries.
18802 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18803 Ed Schonberg <schonberg@adacore.com>
18804 Javier Miranda <miranda@adacore.com>
18805 Gary Dismukes <dismukes@adacore.com>
18807 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18808 inherited from an interface ancestor by another interface in the
18809 context of an instance as 'late'.
18810 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18811 of a call to a function that dispatches on access result.
18812 (Check_Dispatching_Operation): In case of late overriding of a primitive
18813 that covers abstract interface subprograms we register it in all the
18814 secondary dispatch tables associated with abstract interfaces.
18815 (Check_Dispatching_Call): Add check that a dispatching call is not made
18816 to a function with a controlling result of a limited type. This is a
18817 current implementation restriction.
18818 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18819 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18820 argument is an interface type that is a generic formal.
18821 (Is_Interface_Subprogram): Removed.
18822 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18823 operation, check the formals to handle the case in which it is
18824 associated with an abstract interface type.
18826 2006-10-31 Robert Dewar <dewar@adacore.com>
18827 Ed Schonberg <schonberg@adacore.com>
18829 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18830 Add new calls to this procedure during traversal
18831 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18832 another unit if expansion is disabled.
18834 2006-10-31 Robert Dewar <dewar@adacore.com>
18836 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18837 Current_Value in the conditional case, to evaluate additional
18838 comparisons at compile time.
18840 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18841 Hristian Kirtchev <kirtchev@adacore.com>
18842 Javier Miranda <miranda@adacore.com>
18844 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18845 subprogram type to provide better diagnostics in case of ambiguity.
18846 (Covers): Handle coverage of formal and actual anonymous access types in
18847 the context of generic instantiation.
18848 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18849 abstract interface types; this is required to handle concurrent types
18850 with discriminants and abstract interface types.
18851 (Covers): Include type coverage of both regular incomplete subtypes and
18852 incomplete subtypes of incomplete type visibles through a limited with
18855 2006-10-31 Robert Dewar <dewar@adacore.com>
18856 Hristian Kirtchev <kirtchev@adacore.com>
18857 Ed Schonberg <schonberg@adacore.com>
18859 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18860 messages for entities in packages which are not used.
18861 (Collect_Synchronized_Interfaces): New procedure.
18862 (Overrides_Synchronized_Primitive): New function.
18863 (Denotes_Discriminant): Extend predicate to apply to task types.
18864 Add missing continuation marks in error msgs
18865 (Unqualify): New function for removing zero or more levels of
18866 qualification from an expression. There are numerous places where this
18867 ought to be used, but we currently only deal properly with zero or one
18869 (In_Instance); The analysis of the actuals in the instantiation of a
18870 child unit is not within an instantiation, even though the parent
18871 instance is on the scope stack.
18872 (Safe_To_Capture_Value): Exclude the case of variables that are
18874 (Check_Obsolescent): Removed
18875 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18876 is an aliased view, even when rewritten as a reference to the target
18877 object in an assignment.
18878 (Get_Subprogram_Entity): New function
18879 (Known_To_Be_Assigned): New function
18880 (Type_Access_Level): Compute properly the access level of a return
18881 subtype that is an anonymous access type.
18882 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18883 (Is_Transfer): The new extended_return_statement causes a transfer of
18885 (Has_Preelaborable_Initialization): New function
18886 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18887 has a null exclusion depending on its Nkind.
18888 Change Is_Lvalue to May_Be_Lvalue
18889 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18890 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18891 (Safe_To_Capture_Value): Extend functionality so it can be used for
18892 the current value condition case.
18893 (Has_Compatible_Alignment): New function
18894 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18895 objects to handle the Ada 2005 case, where aliasedness no longer implies
18896 that the object is constrained. In particular, for dereferenced names,
18897 the designated object must be assumed to be unconstrained.
18898 (Kill_Current_Values): Properly deal with the case where we encounter
18899 a loop in the scope chain.
18900 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18902 (Compile_Time_Constraint_Error): Improve error message in error case
18904 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18905 associated with entities of abstract interface primitives.
18906 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18908 2006-10-31 Robert Dewar <dewar@adacore.com>
18910 * s-osinte-tru64.adb:
18911 Mark Asm statements Volatile to prevent warnings (seems a
18912 reasonable change anyway)
18915 * s-mastop-irix.adb: Add Volatile to Asm statements
18916 Suppresses warning, and seems appropriate in any case
18918 * s-osinte-vms.adb: Add Volatile to Asm statement
18920 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18922 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18924 Add call to Check_Code_Statement
18926 2006-10-31 Robert Dewar <dewar@adacore.com>
18927 Ed Schonberg <schonberg@adacore.com>
18928 Bob Duff <duff@adacore.com>
18930 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18931 Synchronized_Present): Add Formal_Derived_Type_Definition and
18932 Private_Extension_Declaration to the list of assertions.
18933 (Is_Entry_Barrier_Function): New flag
18934 (Has_Self_Reference): New flag on aggregates, to indicate that they
18935 contain a reference to the enclosing type, inserted through a default
18937 (Next_Rep_Item): Move from Node4 to Node5.
18938 (Entity): Add this field for N_Attribute_Definition_Clause.
18939 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18940 (N_Return_Object_Declaration): Remove this node kind. We now use
18941 N_Object_Declaration instead.
18942 (Actual_Designated_Subtype): Move to a different place to make room in
18943 N_Extended_Return_Statement.
18944 (Procedure_To_Call): Move to a different place to make room in
18945 N_Extended_Return_Statement.
18946 (Return_Type): Removed this field to make room in return statements
18948 (Return_Statement_Entity): New field in return statements, in part to
18949 replace Return_Type, and in part to support the fact that return
18950 statements are now pushed on the scope stack during semantic analysis.
18951 (Return_Object_Declarations): New field to support extended return
18953 (N_Extended_Return_Statement): New node for extended_return_statement
18955 (N_Return_Object_Declaration): New node for part of
18956 extended_return_statement nonterminal. Needed because all the necessary
18957 fields won't fit in N_Extended_Return_Statement.
18958 Generic_associations now carry the Box_Present flag, to indicate a
18959 default for an actual in a partially parametrized formal package.
18961 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18962 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18963 and for the new predefined dispatching policies: EDF_Across_Priorities,
18964 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18965 Introduce new name Stub_Type for implementation defined attribute.
18966 Add pragma Preelaborable_Initialization
18967 Add entry for Priority attribute.
18968 Add Pragma_Wide_Character_Encoding
18969 (Get_Convention_Name): Given a convention id, this function returns the
18970 corresponding name id from the names table.
18972 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18973 Robert Dewar <dewar@adacore.com>
18974 Bob Duff <duff@adacore.com>
18976 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18977 print null exclusion twice in the case of an access definition,
18978 Implement new -gnatL switch
18979 Remove N_Return_Object_Declaration. We now use
18980 N_Object_Declaration instead. Implement the case for
18981 N_Extended_Return_Statement. Alphabetize the cases.
18982 Add cases for new nodes N_Extended_Return_Statement and
18983 N_Return_Object_Declaration. The code is not yet written.
18984 Update the output for N_Formal_Object_Declaration
18985 and N_Object_Renaming_Declaration.
18986 (Write_Itype): Account for the case of a modular integer subtype whose
18987 base type is private.
18989 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18991 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18992 Remove elaboration code, now done in the binder.
18994 * s-rident.ads: Make this unit Preelaborate.
18995 (No_Restrictions): New constant used to clean up code and follow
18996 preelaborate constraints.
18999 Add System.Restrictions dependence, referenced directly from the
19000 binder generated file.
19002 2006-10-31 Gary Dismukes <dismukes@adacore.com>
19004 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
19005 True when AAMP extended floating-point is in use (48-bit). Change type
19006 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
19007 the two byte array types on AFloat. Change type of IV_Ilf overlay
19008 variable from Byte8 to ByteLF. Add appropriate initializations of
19009 floating-point overlays for AAMP cases.
19011 2006-10-31 Javier Miranda <miranda@adacore.com>
19013 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
19014 (Get_Ceiling): New subprogram that returns
19015 the ceiling priority of the protected object.
19016 (Set_Ceiling): New subprogram that sets the new ceiling priority of
19017 the protected object.
19019 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
19021 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
19023 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19025 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
19026 requeuing to the same protected object to give higher priority tasks
19027 the opportunity to execute.
19029 2006-10-31 Robert Dewar <dewar@adacore.com>
19031 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
19032 add more precise check for the character sequence that follows '[' to
19033 avoid possible confusion in case if '[' is the last character of a
19035 (Scan_Wide): Always allow brackets encoding
19037 2006-10-31 Olivier Hainque <hainque@adacore.com>
19039 * s-stchop.ads: make this unit preelaborate. This is desirable in
19040 general and made mandatory by the use of this unit by s-taprop which
19041 is itself preelaborate.
19043 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
19044 Td_Events component.
19046 2006-10-31 Vincent Celier <celier@adacore.com>
19048 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19051 2006-10-31 Vincent Celier <celier@adacore.com>
19053 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19055 2006-10-31 Vincent Celier <celier@adacore.com>
19057 * makegpr.adb (Check_Compilation_Needed): Take into account path names
19059 (Check_Compilation_Needed): When checking a C or C++ source, do not
19060 resolve symbolic links.
19061 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19062 When not in verbose mode and Ellipse is True, display "..." for the
19063 first argument with Display set to False.
19064 (Build_Global_Archive): Always set Display True for the first object
19065 file. Call Display_Command with Ellipse set to True.
19067 2006-10-31 Matt Heaney <heaney@adacore.com>
19069 * a-crbtgo.ads: Commented each subprogram
19071 * a-crbtgo.adb: Added reference to book from which algorithms were
19074 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19075 indicate which child.
19076 (Generic_Conditional_Insert): changed parameter name from "Success" to
19078 (Generic_Unconditional_Insert_With_Hint): improved algorithm
19080 * a-coorse.adb (Replace_Element): changed parameter name in call to
19081 conditional insert operation.
19083 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19085 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19088 * a-ciorse.adb (Replace_Element): changed parameter name in call to
19089 conditional insert operation.
19091 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19094 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19095 instead of mode inout.
19097 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19099 (Generic_Read): preserve existing buckets array if possible
19100 (Generic_Write): don't send buckets array length anymore
19102 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19103 instead of mode inout.
19105 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19106 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19108 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19109 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19110 (Replace_Element): local operation is now an instantiation
19112 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19113 check current length.
19114 (Generic_Replace_Element): new operation
19116 2006-10-31 Doug Rupp <rupp@adacore.com>
19118 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19119 Call TBK$SYMBOLIZE without omitting parameters.
19121 2006-10-31 Vincent Celier <celier@adacore.com>
19123 * symbols-processing-vms-ia64.adb,
19124 symbols-processing-vms-alpha.adb (Process): Do not include symbols
19125 that come from generic instantiations in bodies.
19127 2006-10-31 Pat Rogers <rogers@adacore.com>
19129 * a-rttiev.ads, a-rttiev.adb:
19130 This is a significant redesign primarily for the sake of automatic
19131 timer task termination but also to fix a design flaw.
19132 Therefore we are now using an RTS lock, instead of a protected
19133 object, to provide mutual exclusion to the queue of pending events
19134 and the type Timing_Event is no longer a protected type.
19136 2006-10-31 Robert Dewar <dewar@adacore.com>
19137 Cyrille Comar <comar@adacore.com>
19138 Ben Brosgol <brosgol@adacore.com>
19140 * debug.adb: Update flags documentation
19142 * gnat_ugn.texi: Add documentation for new -gnatwq switch
19143 Clean up documentation for several other warning switches
19144 Clarify how task stack size can be specified with various
19145 versions of Windows.
19146 Add note that -gnatVo includes ranges including loops
19147 Add documentation for -gnatL switch
19148 Add note on elaboration warning for initializing variables
19149 Add documentation for new -gnatwt warning switch
19150 Document new form of pragma Warnings (On|Off, string)
19151 Add comment on use of pragma Warnings to control warnings
19152 Add documentation for -gnatjnn switch
19153 Modify section on interfacing with C for VMS 64-bit.
19154 Add doc for -gnatVe/E
19155 Add documentation of new warning flags -gnatww/-gnatwW
19156 Add warnings about address clause overlays to list of warnings
19157 (Exception Handling Control): Document that the option --RTS must be
19158 used consistently for gcc and gnatbind.
19159 Clarify that inlining is not always possible
19160 Update documentation on pragma Unchecked_Union.
19163 Add documentation for new extended version of pragma Obsolescent
19164 Add documentation for implementation defined attribute 'Stub_Type.
19165 Add note on use of Volatile in asm statements
19166 Add documentation on use of pragma Unreferenced in context clause
19167 Document new form of pragma Warnings (On|Off, pattern)
19168 Document pragma Wide_Character_Encoding
19169 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19170 enforced if code generation is active.
19171 Add section on pragma Suppress to document GNAT specific check
19173 Clarify difference between No_Dispatching_Calls & No_Dispatch.
19174 Add documentation for pragma Restrictions (No_Elaboration_Code)
19177 Add comments on layout of subprogram local variables in the
19178 presence of nested subprograms.
19180 * ug_words: Resync.
19182 * elists.ads: Minor reformatting
19183 Node returns Node_Or_Entity_Id (doc change only)
19185 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19187 * g-arrspl.ads (Create): Update comments.
19189 * sem.ads: Add details on the handling of the scope stack.
19191 * usage.adb: Update documentation.
19193 * validsw.ads, validsw.adb:
19194 Add definition of Validity_Check_Components and implement -gnatVe/E
19196 * vms_data.ads: Add missing VMS qualifiers.
19198 * s-addope.ads: Add documentation on overflow and divide by zero
19200 2006-10-31 Robert Dewar <dewar@adacore.com>
19201 Thomas Quinot <quinot@adacore.com>
19202 Arnaud Charlet <charlet@adacore.com>
19204 * fmap.adb: Put routines in alpha order
19206 * g-boumai.ads: Remove redundant 'in' keywords
19208 * g-cgi.adb: Minor reformatting
19210 * g-cgi.ads: Remove redundant 'in' keywords
19212 * get_targ.adb: Put routines in alpha order
19214 * prj-attr.ads: Minor reformatting
19216 * s-atacco.ads: Minor reformatting
19218 * scn.adb: Put routines in alpha order
19220 * sinput-l.adb: Minor comment fix
19222 * sinput-p.adb: Minor comment fix
19224 * s-maccod.ads: Minor reformatting
19226 * s-memory.adb: Minor reformatting
19228 * s-htable.adb: Fix typo in comment.
19230 * s-secsta.adb: Minor comment update.
19232 * s-soflin.adb: Minor reformatting
19235 Add comment about odd qualification in Storage_Offset declaration
19238 Remove unnecessary 'in' keywords for formal parameters.
19240 * treeprs.adt: Minor reformatting
19242 * urealp.adb: Put routines in alpha order
19244 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19247 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19249 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19251 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19252 workaround as on other platforms.
19254 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19255 * g-expect-vms.adb: Remove redundant 'in' keywords
19257 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19258 clear error message if the list-of-files file cannot be opened.
19260 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19261 equality operator is always visible.
19263 * lang.opt: Woverlength-strings: New option.
19266 Update copyright, since nmake.ads and nmake.adb have changed.
19268 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19269 (Binder_Output_Time_Stamps_Set): removed.
19270 (Old_Binder_Output_Time_Stamp): idem.
19271 (New_Binder_Output_Time_Stamp): idem.
19272 (Recording_Time_From_Last_Bind): idem.
19273 (Recording_Time_From_Last_Bind): Make constant.
19275 * output.ads, output.adb (Write_Str): Allow LF characters
19276 (Write_Spaces): New procedure
19278 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19280 * inline.adb: Minor reformatting
19282 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19284 * s-mastop-vms.adb: Remove redundant 'in' keywords
19286 * s-osprim-vms.adb: Remove redundant 'in' keywords
19288 * s-trafor-default.adb: Remove redundant 'in' keywords
19290 * 9drpc.adb: Remove redundant 'in' keywords
19292 * s-osinte-mingw.ads: Minor reformatting
19294 * s-inmaop-posix.adb: Minor reformatting
19296 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19298 * a-exexda.adb: Minor code reorganization
19300 * a-filico.adb: Minor reformatting
19302 * a-finali.adb: Minor reformatting
19304 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19306 * a-numeri.ads: Minor reformatting
19308 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19310 * exp_pakd.ads: Fix obsolete comment
19312 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19313 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19314 Probably not a bug, but certainly neater and more efficient.
19316 * a-tienio.adb: Minor reformatting
19318 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19319 Avoid assuming low bound of string is 1.
19321 * gnatbind.adb: Change Bindusg to package and rename procedure as
19322 Display, which now ensures that it only outputs usage information once.
19323 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19325 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19328 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19330 (Match): Add pragma Assert to ensure that Matches'First is zero
19332 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19334 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19335 documented preconditions (also kills warnings about bad indexes).
19337 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19339 (Build_Import_Library): Ditto;
19341 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19343 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19345 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19346 lower bound of choice table is 1.
19348 * sem_case.ads (Analyze_Choices): Document that lower bound of
19351 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19354 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19355 and add appropriate Assert pragma to suppress warnings.
19357 * atree.h, atree.ads, atree.adb
19358 Change Elist24 to Elist25
19359 Add definitions of Field28 and Node28
19360 (Traverse_Field): Use new syntactic parent table in sinfo.
19362 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19364 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19366 * exp_tss.adb: Put routines in alpha order
19368 * fe.h: Remove redundant declarations.
19370 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19372 * utils.c (builtin_function): Rename to gnat_builtin_function.
19373 Move common code to add_builtin_function.
19374 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19375 gnat_builtin_function.
19376 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19377 Change the signature.
19379 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19381 * Makefile.in: Add TEXI2PDF definition.
19382 * Make-lang.in: Add "ada.pdf" target.
19384 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19386 * decl.c, utils.c: Fix comment typos.
19387 * utils.c: Fix a typo.
19389 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19391 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19392 on "pure" Ada subprograms if SJLJ exceptions are used.
19393 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19394 on the declaration node of JMPBUF_SAVE.
19395 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19396 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19397 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19399 2006-08-20 Laurent Guerby <laurent@guerby.net>
19402 g-socket.adb (Bind_Socket): Call Set_Address.
19404 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19407 * decl.c (same_discriminant_p): New static function.
19408 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19409 subtype and we have discriminants, fix up the COMPONENT_REFs
19410 for the discriminants to make them reference the corresponding
19411 fields of the parent subtype after it has been built.
19413 2006-09-15 Roger Sayle <roger@eyesopen.com>
19416 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19417 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19419 2006-09-13 Olivier Hainque <hainque@adacore.com>
19422 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19423 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19424 let the common gimplifier code make and propagate a temporary copy.
19425 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19426 out/in-out actuals and defer setting the addressable/readonly bits
19429 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19432 * decl.c (components_to_record): Defer emitting debug info for the
19433 record type associated with the variant until after we are sure to
19436 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19439 * gigi.h (gnat_internal_attribute_table): Declare.
19440 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19441 * utils.c (gnat_internal_attribute_table): New global variable.
19442 (builtin_function): Always call decl_attributes on the builtin.
19443 (handle_const_attribute): New static function.
19444 (handle_nothrow_attribute): Likewise.
19446 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19448 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19450 2006-06-23 Olivier Hainque <hainque@adacore.com>
19452 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19453 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19455 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19456 Eric Botcazou <ebotcazou@adacore.com>
19459 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19460 check-gnat into check-acats.
19462 2006-06-17 Karl Berry <karl@gnu.org>
19464 * gnat-style.texi (@dircategory): Use "Software development"
19465 instead of "Programming", following the Free Software Directory.
19467 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19470 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19472 2006-06-06 Laurent Guerby <laurent@guerby.net>
19475 mlib-utl.adb: Use Program_Name.
19477 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19479 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19480 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19481 trans.c, utils.c: Fix comment typos. Follow spelling
19483 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19486 2006-05-19 Nicolas Setton <setton@adacore.com>
19488 * misc.c (gnat_dwarf_name): New function.
19489 (LANG_HOOKS_DWARF_NAME): Define to it.
19491 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19493 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19494 (ada/misc.o): Likewise.
19495 (ada/utils.o): Likewise.
19497 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19499 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19500 * s-osinte-kfreebsd-gnu.ads: New file.
19502 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19504 * Make-lang.in: Rename docdir to gcc_docdir.
19506 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19508 * gigi.h (get_ada_base_type): Delete.
19509 * utils2.c (get_ada_base_type): Likewise.
19510 * trans.c (convert_with_check): Operate in the real base type.
19512 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19514 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19516 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19518 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19519 whether to make the decl common.
19521 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19523 * Make-lang.in (Ada): Remove.
19524 (.PHONY): Remove Ada
19526 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19528 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19529 aggregate, check the interpretations of the other operand to find one
19530 that may be a boolean array.
19532 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19533 the prefix is a private extension.
19535 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19538 * utils2.c (find_common_type): If both input types are BLKmode and
19539 have the same constant size, keep using the first one.
19541 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19543 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19545 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19547 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19549 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19550 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19551 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19552 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19553 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19554 aborted while owning a lock.
19556 2006-02-17 Javier Miranda <miranda@adacore.com>
19557 Robert Dewar <dewar@adacore.com>
19559 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19560 through an access to class-wide interface we force the displacement of
19561 the pointer to the allocated object to reference the corresponding
19562 secondary dispatch table.
19563 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19564 if Long_Shifts are supported on the target, even if 64 bit divides
19565 are not supported (configurable run time mode).
19566 (Expand_N_Type_Conversion): Do validity check if validity checks on
19567 operands are enabled.
19568 (Expand_N_Qualified_Expression): Do validity check if validity checks
19569 on operands are enabled.
19571 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19573 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19574 must be materialized when the renamed expression is an explicit
19577 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19579 * freeze.adb (Statically_Discriminated_Components): Return false if
19580 the bounds of the type of the discriminant are not static expressions.
19582 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19583 the bounds of the discriminant type are not static.
19585 2006-02-17 Robert Dewar <dewar@adacore.com>
19587 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19588 then we close To if it is valid.
19590 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19592 * init.c (facility_resignal_table): new array
19593 (__gnat_default_resignal_p): enhance default predicate to resignal if
19594 VMS condition has one of the predefined facility codes.
19596 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19598 * Makefile.in: Use VMS64 specialized versions of several units in
19599 Interfaces.C hierarchy to be compatible with HP C default size choices.
19600 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19602 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19604 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19605 instantiation, the corresponding entity is the related_instance of the
19606 wrapper package created for the instance.
19608 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19610 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19611 the current instance is nested within another instance in a child unit.
19613 2006-02-17 Javier Miranda <miranda@adacore.com>
19614 Ed Schonberg <schonberg@adacore.com>
19616 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19617 type we cannot inherit the primitive operations; we inherit the
19618 Corresponding_Record_Type (which has the list of primitive operations).
19619 (Check_Anonymous_Access_Types): When creating anonymous access types for
19620 access components, use Rewrite in order to preserve the tree structure,
19622 (Analyze_Object_Declaration): For limited types with access
19623 discriminants with defaults initialized by an aggregate, obtain
19624 subtype from aggregate as for other mutable types.
19625 (Derived_Type_Declaration): If the derived type is a limited interface,
19626 set the corresponding flag (Is_Limited_Record is not sufficient).
19628 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19630 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19631 to inline a function that returns an unconstrained type, the return
19632 expression must be the first variable declared in the body of the
19635 2006-02-17 Javier Miranda <miranda@adacore.com>
19637 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19638 abstract interface type, the static analysis is not enough to know if
19639 the interface is implemented or not by the source tagged type. Hence
19640 we must pass the work to the expander to generate the required code to
19641 evaluate the conversion at run-time.
19642 (Resolve_Equality_Op): Do not apply previous
19643 transformation if expansion is disasbled, to prevent anomalies when
19644 locating global references in a generic unit.
19646 2006-02-17 Vincent Celier <celier@adacore.com>
19648 * snames.ads, snames.adb: New standard names for new project attributes:
19649 archive_builder, archive_indexer, compiler_pic_option,
19650 config_body_file_name, config_body_file_name_pattern,
19651 config_file_switches, config_file_unique, config_spec_file_name,
19652 config_spec_file_name_pattern, default_builder_switches,
19653 default_global_compiler_switches, default_language,
19654 dependency_file_kind, global_compiler_switches, include_path,
19655 include_path_file, language_kind, linker_executable_option,
19656 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19657 roots, runtime_project.
19659 2006-02-17 Matthew Heaney <heaney@adacore.com>
19661 * a-convec.ads, a-convec.adb:
19662 (operator "&"): handle potential overflow for large index types
19663 (Insert): removed Contraint_Error when using large index types
19664 (Insert_Space): removed Constraint_Error for large index types
19665 (Length): moved constraint check from Length to Insert
19667 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19668 as not null access.
19669 Explicit raise statements now include an exception message.
19670 (operator "&"): handle potential overflow for large index types
19671 (Insert): removed Contraint_Error when using large index types
19672 (Insert_Space): removed Constraint_Error for large index types
19673 (Length): moved constraint check from Length to Insert
19675 2006-02-17 Robert Dewar <dewar@adacore.com>
19677 * s-wchcnv.adb: Document handling of [ on output (we do not change
19678 this to ["5B"] and the new comments say why not.
19681 Add note for -gnatVo that this now includes the cases of type
19682 conversions and qualified expressions.
19683 Add comments on handling of brackets encoding for Text_IO
19685 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19686 Thomas Quinot <quinot@adacore.com>
19687 Robert Dewar <dewar@adacore.com>
19688 Javier Miranda <miranda@adacore.com>
19690 * expander.adb: Fix typo in comment
19692 * exp_pakd.adb: Fix typo
19693 Minor comment reformatting.
19695 * g-dyntab.adb: Minor reformatting
19697 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19698 aliased subprograms to look for the abstract interface subprogram.
19700 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19702 * env.c (__gnat_setenv): Use size_t.
19703 (__gnat_unsetenv): Likewise.
19704 (__gnat_clearenv): Likewise.
19706 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19708 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19710 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19712 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19713 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19714 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19715 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19716 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19717 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19718 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19719 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19720 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19723 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19725 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19726 protection against race conditions is not needed.
19727 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19729 (Set_Specific_Handler): Add mutual exclusive access to the specific
19731 (Specific_Handler): Add mutual exclusive access for retrieving the
19734 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19737 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19738 Fall_Back_Handler and Specific_Handler.
19740 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19741 termination handlers.
19742 Set two different owerflow depending on the maximal stack size.
19744 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19745 protection against race conditions is not needed when executing the
19746 task termination handler.
19748 2006-02-13 Robert Dewar <dewar@adacore.com>
19750 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19751 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19752 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19753 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19754 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19755 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19756 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19757 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19758 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19759 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19760 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19761 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19762 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19763 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19764 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19765 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19766 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19767 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19768 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19769 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19770 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19771 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19772 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19773 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19774 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19775 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19776 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19777 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19778 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19779 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19780 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19781 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19782 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19783 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19786 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19788 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19789 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19790 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19791 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19792 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19793 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19794 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19795 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19796 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19798 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19800 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19801 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19802 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19803 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19804 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19805 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19806 replaced by anonymous access type.
19807 (pthread_sigmask): Now take an access sigset_t
19809 * s-osinte-hpux.ads: Ditto.
19810 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19811 properly 32 and 64 bit ABIs.
19813 2006-02-13 Pascal Obry <obry@adacore.com>
19815 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19816 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19817 s-taprop-linux.adb, s-taprop-solaris.adb,
19818 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19819 adjustement is already done when calling this routine.
19821 2006-02-13 Pascal Obry <obry@adacore.com>
19823 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19824 table to take advantage of the 16 priority levels available on Windows
19825 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19826 supported by this new mapping.
19828 2006-02-13 Nicolas Setton <setton@adacore.com>
19830 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19831 (get_encoding): New subprogram. Extracts the encodings from an encoded
19834 2006-02-13 Pascal Obry <obry@adacore.com>
19835 Nicolas Roche <roche@adacore.com>
19836 Arnaud Charlet <charlet@adacore.com>
19838 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19840 (__gnat_try_lock): Add unicode support by using a specific section on
19842 (__gnat_get_current_dir): Idem.
19843 (__gnat_open_read): Idem.
19844 (__gnat_open_rw): Idem.
19845 (__gnat_open_create): Idem.
19846 (__gnat_create_output_file): Idem.
19847 (__gnat_open_append): Idem.
19848 (__gnat_open_new): Idem.
19849 (__gnat_file_time_name): Idem.
19850 (__gnat_set_file_time_name): Idem.
19851 (__gnat_stat): Idem.
19852 (win32_no_block_spawn): Idem.
19853 (__gnat_locate_exec_on_path): Idem.
19854 (__gnat_opendir): New routine.
19855 (__gnat_closedir): Idem.
19856 (__gnat_readdir): Add new parameter length (pointer to int). Update
19857 implementation to use it and add specific Win32 code for Unicode
19859 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19860 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19861 (convert_addresses): Do not define this dummy routine on VMS.
19863 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19864 runtime Unicode support will be activated.
19865 (S2WS): String to Wide-String conversion. This version just copy a
19866 string in non Unicode version.
19867 (WS2S): Wide-String to String conversion. This version just copy a
19868 string in non Unicode version.
19870 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19871 (Open): Now import __gnat_opendir from adaint.c.
19872 (Read): Change the implementation to support unicode characters. It is
19873 not possible to use strlen() on Windows as this version supports only
19874 standard ASCII characters. So the length of the directory entry is now
19875 returned from the imported __gnat_readdir routine.
19876 Update copyright notice.
19878 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19879 (opendir): Moved to adaint.c.
19881 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19882 (Get_Directory): Fix wrong indexing.
19883 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19884 __gnat_getenv from env.c
19885 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19888 * env.h, env.c: New file.
19890 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19891 adaint.c by __gnat_getenv from env.c
19893 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19894 adaint.c by __gnat_getenv from env.c
19896 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19898 Update dependencies.
19900 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19901 Olivier Hainque <hainque@adacore.com>
19902 Eric Botcazou <ebotcazou@adacore.com>
19904 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19906 * gigi.h (value_factor_p): Add prototype and description, now public.
19908 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19909 promotion for field with rep clause if the associated size was proven
19911 Expand comments describing attempts to use a packable type.
19912 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19913 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19914 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19915 necessary since these are not different types and pointers may
19916 actually designate any subtype in this hierarchy.
19917 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19918 discriminants but put them into record only if not Unchecked_Union;
19919 pass flag to components_to_record showing Unchecked_Union.
19920 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19921 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19922 (components_to_record): New argument UNCHECKED_UNION.
19923 Remove special case code for Unchecked_Union and instead use main code
19924 with small changes.
19927 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19928 variable with the expression being built, only its inner field.
19930 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19931 emit_sequence_entry_statements.
19932 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19933 (establish_gnat_vms_condition_handler): Move before
19934 Subprogram_Body_to_gnu.
19935 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19936 for a subprogram if it has a foreign convention or is exported.
19937 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19938 substituted for a CONST_DECL.
19939 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19940 Etype to assoc_to_constructor.
19941 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19942 discriminants of Unchecked_Union.
19943 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19944 don't need cluttering preprocessor directives.
19945 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19946 condition handler as current in the compiled function.
19947 (body_with_handlers_p): New function. Tell whether a given sequence of
19948 statements node is attached to a package or subprogram body and involves
19949 exception handlers possibly nested within inner block statements.
19950 (emit_sequence_entry_statements): New function, to emit special
19951 statements on entry of sequences when necessary. Establish GNAT
19952 condition handler in the proper cases for VMS.
19953 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19954 emit_sequence_entry_statements.
19956 * utils2.c (find_common_type): If both input types are BLKmode and
19957 have a constant size, use the smaller one.
19958 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19961 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19963 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19964 (convert, case UNION_TYPE): Remove special treatment for unchecked
19968 (update_pointer_to): Update variants of pointer types to unconstrained
19969 arrays by attaching the list of fields of the main variant.
19971 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19972 Robert Dewar <dewar@adacore.com>
19974 * a-exexpr.adb, a-exexpr-gcc.adb
19975 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19976 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19977 Remove code unused for exception propagation for the compiler itself
19978 from a-except.adb and update to still share separate packages.
19980 * a-except.ads, a-except.adb: Ditto.
19981 Add comments that this version is now used only by the compiler and
19982 other basic tools. The full version that includes the Ada 2005 stuff
19983 is in separate files a-except-2005.ads/adb. The reason is that we do
19984 not want to cause bootstrap problems with compilers not recognizing
19986 Add exception reason code PE_Implicit_Return
19987 Add new exception reason code (Null Exception_Id)
19989 * a-except-2005.adb, a-except-2005.ads: New files.
19991 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19993 * s-wchcon.adb: New file.
19995 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19996 (traceback.o deps): Likewise.
19997 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19998 Activate build of GMEM instrumentation library on VMS targets.
19999 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
20000 Use a-except-2005.ads/adb for all run-time library builds unless
20001 specified otherwise.
20002 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
20003 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
20004 Use s-parame.adb on all native platforms.
20005 Use s-parame-vxworks.adb on all vxworks platforms.
20006 Add env.c env.h in LIBGNAT_SRCS
20007 Add env.o in LIBGNAT_OBJS
20008 (GNATMAKE_OBJS): Remove ctrl_c.o object.
20009 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
20010 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20011 supports VxWorks 6 RTPs.
20012 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
20013 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20015 * types.h, types.ads (Terminate_Program): New exception
20016 Add comment on modifying multiple versions of a-except.adb when the
20017 table of exception reasons is modified.
20018 Add exception reason code PE_Implicit_Return
20019 Add new exception reason code (Null Exception_Id)
20021 * clean.adb (Initialize): Get the target parameters before checking
20022 if target is OpenVMS. Move the OpenVMS specific code here from package
20023 body elaboration code.
20025 2006-02-13 Thomas Quinot <quinot@adacore.com>
20026 Vincent Celier <celier@adacore.com>
20027 Robert Dewar <dewar@adacore.com>
20029 * ali-util.adb (Get_File_Checksum): Update to account for change in
20030 profile of Initialize_Scanner.
20032 * gprep.adb (Gnatprep): Update to account for change in profile of
20033 Initialize_Scanner.
20034 (Process_One_File): Same.
20036 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
20037 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
20038 that behaviour using the new Unit information recorded in the source
20039 files table, rather than going through all units every time.
20040 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
20041 (Get_Source_Unit): Same.
20043 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
20044 change in profile of Initialize_Scanner.
20045 (Prepare_To_Preprocess): Same.
20047 * lib.ads: Fix typo in comment (templace -> template).
20049 * prj-part.adb (Parse_Single_Project): Update to account for change in
20050 profile of Initialize_Scanner.
20052 * scn.adb (Initialize_Scanner): Account for change in profile of
20053 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20054 Also record the association of the given Source_File_Index to the
20055 corresponding Unit_Number_Type.
20057 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20059 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20060 Remove Unit formal for generic scanner: this formal
20061 is only relevant to Scn (the scanner instance used to parse Ada source
20062 files), not to other instances. Update comment accordingly.
20063 (Scan): Use new function Snames.Is_Keyword_Name.
20065 * sinfo-cn.adb: Fix typo in comment.
20067 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20070 * sinput.ads (Source_File_Record): New component Unit, used to capture
20071 the unit identifier (if any) associated to a source file.
20073 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20074 Unit in Source_File_Record.
20076 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20077 in profile of Initialize_Scanner.
20079 * scans.adb (Initialize_Ada_Keywords): New procedure
20081 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20082 Ada keywords in the Namet table, without the need to call
20083 Initialize_Scanner.
20085 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20086 (Is_Keyword_Name): New function
20088 * snames.ads: Add subtype Configuration_Pragma_Names
20089 Add pragma Ada_2005 (synonym for Ada_05)
20090 (Is_Keyword_Name): New function
20092 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20094 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20096 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20099 * a-stwima.adb (To_Set): Add extra check when N = 0.
20101 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20103 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20105 * s-parame-mingw.adb, s-parame-linux.adb,
20106 s-parame-solaris.adb: Removed, replaced by s-parame.adb
20108 * s-parame-vxworks.ads: Fix typo.
20110 * s-parame-vxworks.adb: New file.
20112 * s-parame.adb: Version now used by all native platforms.
20113 (Default_Stack_Size): Use 2 megs for default stack size and use
20114 __gl_default_stack_size when available.
20115 (Minimum_Stack_Size): Use 12K.
20117 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20118 (Create_Task): Refine implementation taking advantage of the XP stack
20119 size support. On XP, we now create the thread using the flag
20120 STACK_SIZE_PARAM_IS_A_RESERVATION.
20122 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20124 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20125 XP and 0 on older Windows versions.
20127 * interfac-vms.ads: Removed, no longer used.
20129 2006-02-13 Matthew Heaney <heaney@adacore.com>
20131 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20132 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20133 a-cohase.adb: All explicit raise statements now include an exception
20136 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20137 (Update_Element_Preserving_Key): renamed op to just Update_Element.
20138 Explicit raise statements now include an exception message
20140 * a-cihase.ads, a-cohase.ads: Removed comment.
20142 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20143 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20144 a-szbzha.adb, a-szfzha.ads: New files.
20146 2006-02-13 Matthew Heaney <heaney@adacore.com>
20148 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20151 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20153 * lang.opt: Wvariadic-macros: New option.
20154 Wold-style-definition: Likewise.
20155 Wmissing-format-attribute: Likewise.
20157 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20158 -Wold-style-definition and -Wmissing-format-attribute.
20160 2006-02-13 Robert Dewar <dewar@adacore.com>
20162 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20164 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20166 2006-02-13 Nicolas Roche <roche@adacore.com>
20168 * a-envvar.adb, a-envvar.ads: New files.
20170 2006-02-13 Douglas Rupp <rupp@adacore.com>
20172 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20174 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20176 2006-02-13 Pat Rogers <rogers@adacore.com>
20178 * a-rttiev.adb, a-rttiev.ads: New files.
20180 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20182 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20183 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
20185 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20187 2006-02-13 Robert Dewar <dewar@adacore.com>
20189 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20190 sem_case.adb: Minor code reorganization (not Present should be No)
20192 2006-02-13 Geert Bosch <bosch@adacore.com>
20193 Gary Dismukes <dismukes@adacore.com>
20195 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20196 0, since the lower bound of the actual string may be greater than one.
20199 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20200 layout is requested.
20202 2006-02-13 Vincent Celier <celier@adacore.com>
20204 * back_end.adb (Scan_Compiler_Arguments): Check if
20205 Search_Directory_Present is True and, if it is, add the argument in
20206 the source search directory path.
20208 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20209 Search_Directory_Present to True.
20211 2006-02-13 Joel Brobecker <brobecke@adacore.com>
20213 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20214 volatile, to tell the compiler to preserve this variable at any level
20216 (Gen_Versions_Ada): Temporarily work around codegen bug.
20218 2006-02-13 Vincent Celier <celier@adacore.com>
20220 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20221 gcc to link with option -shared-libgcc.
20222 (Gnatlink): Remove duplicate switches -shared-libgcc
20224 2006-02-13 Robert Dewar <dewar@adacore.com>
20226 * gnatvsn.ads (Current_Year): New constant, used to easily update
20227 copyright on all GNAT tools.
20229 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20232 2006-02-13 Robert Dewar <dewar@adacore.com>
20234 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20235 after hyphen (small aesthetic change useful for a range of numbers
20237 Suppress range checks for a couple of assignments which otherwise
20238 cause validity checks with validity checking turned on.
20240 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20241 Improvement in error message for object.
20242 (Rep_Item_Too_Late): Remove '!' in warning message.
20244 2006-02-13 Robert Dewar <dewar@adacore.com>
20245 Eric Botcazou <ebotcazou@adacore.com>
20247 * err_vars.ads: Suppress range checks for a couple of assignments
20248 which otherwise cause validity checks with validity checking turned on.
20251 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20252 Make message unconditional if it is a warning.
20253 (Error_Msg_NEL): Always output warning messages.
20254 Suppress range checks for a couple of assignments which otherwise
20255 cause validity checks with validity checking turned on.
20257 * errout.ads (Message Insertion Characters): Document that '!' is
20258 implied by '?' in error messages.
20260 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20261 (Gnat1drv): Use a goto to end of main subprogram instead of
20262 Exit_Program (E_Success) so that finalization can occur normally.
20264 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20266 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20269 2006-02-13 Vincent Celier <celier@adacore.com>
20271 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20272 Unchecked_Conversion functions.
20273 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20274 when OpenVMS returns False.
20276 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20277 a-dirval.adb (OpenVMS): New Boolean function
20279 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20280 Thomas Quinot <quinot@adacore.com>
20282 * checks.adb (Build_Discriminant_Checks): If the expression being
20283 checks is an aggregate retrieve the values of its discriminants to
20284 generate the check, rather than creating a temporary and a reference
20286 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20287 (Install_Null_Excluding_Check): Ditto
20288 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20289 not for the renamed object, so that the actual itype is attached in the
20292 2006-02-13 Robert Dewar <dewar@adacore.com>
20293 Vincent Celier <celier@adacore.com>
20295 * debug.adb: Eliminate numeric switches for binder/gnatmake
20297 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20298 switches for the compiler.
20299 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20300 (Scan_Make_Switches): When failing with an illegal switch, output an
20301 error message with the full switch.
20302 Eliminate numeric switches for binder/gnatmake
20304 * switch.ads, switch.adb (Bad_Switch): New procedure
20306 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20307 Remove 0-9 as debug flag character possibilities
20308 -d is now controlling the primary stack size when its value is a
20309 positive. Also add checks against invalid values, and support for kb,
20310 mb. Ditto for -D switch.
20312 2006-02-13 Robert Dewar <dewar@adacore.com>
20313 Serguei Rybin <rybin@adacore.com>
20315 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20316 save/restore routines.
20317 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20318 were not always properly handled previously.
20319 Since we are changing the tree format anyway, also get rid of the
20320 junk obsolete Immediate_Errors flag.
20321 (Tree_Read): Change the way of reading Tree_Version_String - now we
20322 read the version string from the tree even if its length is not the
20323 same as the length of the version string computed from Gnatvsn.
20324 (Search_Directory_Present): New Boolean flag for the compiler.
20325 Define Tree_Version_String as a dynamic string.
20326 (Default_Stack_Size): new variable, used to handle switch -d.
20329 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20330 only for main unit.
20331 Add pragma Ada_2005 (synonym for Ada_05)
20332 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20333 were not always properly handled previously.
20335 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20336 explicit Ada_95 to Ada_2005.
20338 2006-02-13 Javier Miranda <miranda@adacore.com>
20339 Robert Dewar <dewar@adacore.com>
20340 Ed Schonberg <schonberg@adacore.com>
20342 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20343 against errors in the source program: a private types for which the
20344 corresponding full type declaration is missing and pragma CPP_Virtual
20346 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20347 (Is_Known_Null): New flag
20348 (Has_Pragma_Pure): New flag
20349 (No_Return): Present in all entities, set only for procedures
20350 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20351 explicitly declared limited.
20352 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20353 entities. Only used for component marked Is_Tag. If present it stores
20354 the Offset_To_Top function used to provide this value in tagged types
20355 whose ancestor has discriminants.
20357 * exp_ch2.adb: Update status of new Is_Known_Null flag
20359 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20361 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20362 the categorization sense if Is_Pure was set by pragma Pure_Function.
20364 2006-02-13 Quentin Ochem <ochem@adacore.com>
20365 Olivier Hainque <hainque@adacore.com>
20367 * bindusg.adb: Updated documentation for -d and -D switches.
20369 * raise.h (__gnat_set_globals): added new parameter for
20370 Default_Stack_Size.
20372 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20373 (__gnat_handle_vms_condition): Adjust context before raise.
20374 (__gnat_install_handler): Restore the global vector setup for GCC
20375 versions before 3.4, as the frame based circtuitry is not available
20377 (__gnat_set_globals): added a parameter default_stack_size
20378 (__gl_default_stack_size): new variable.
20380 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20382 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20383 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20384 does not exist in the Ada RM.
20385 (Compatible_Int_Bounds): Determine whether two integer range bounds
20386 are of equal length and have the same start and end values.
20387 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20388 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20389 aggregate when it is part of an object declaration.
20390 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20391 constrains discriminants of its parent, add explicitly the discriminant
20392 constraints of the ancestor by retrieving them from the
20393 stored_constraint of the parent.
20395 2006-02-13 Robert Dewar <dewar@adacore.com>
20397 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20398 attribute Mechanism_Code is applied to renamed subprogram, modify
20399 prefix to point to base subprogram.
20400 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20402 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20403 renamed subprograms so that the front-end must replace the prefix
20406 2006-02-13 Javier Miranda <miranda@adacore.com>
20407 Gary Dismukes <dismukes@adacore.com>
20409 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20410 availability of RE_Interface_Tag.
20411 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20412 (Freeze_Record_Type): Do not generate the tables associated with
20413 timed and conditional dispatching calls through synchronized
20414 interfaces if compiling under No_Dispatching_Calls restriction.
20415 When compiling for Ada 2005, for a nonabstract
20416 type with a null extension, call Make_Controlling_Function_Wrappers
20417 and insert the wrapper function declarations and bodies (the latter
20418 being appended as freeze actions).
20419 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20420 predefined primitives associated with timed and conditional
20421 dispatching calls through synchronized interfaces if we are
20422 compiling under No_Dispatching_Calls.
20423 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20424 service is available before generating a call.
20425 (Make_Controlling_Function_Wrappers): New procedure.
20426 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20427 access-to-limited-interfaces because they can be used to reference
20428 tasks that implement such limited interface.
20429 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20430 procedure spec and body of the Offset_To_Top function that is generated
20431 when the parent of a type with discriminants has secondary dispatch
20433 (Init_Secondary_Tags): Handle the case in which the parent of the type
20434 containing secondary dispatch tables has discriminants to generate the
20435 correct arguments to call Set_Offset_To_Top.
20436 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20438 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20439 Add Wide_[Wide_]Expanded_Name.
20440 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20441 the same functionality of Get_Prim_Op_Address but applied to predefined
20442 primitive operations because the pointers to the predefined primitives
20443 are now saved in a separate table.
20444 (Parent_Size): Modified to get access to the separate table of primitive
20445 operations or the parent type.
20446 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20447 functionality of Set_Prim_Op_Address but applied to predefined primitive
20449 (Set_Signature): New subprogram used to store the signature of a DT.
20450 (Displace): If the Offset_To_Top value is not static then call the
20451 function generated by the expander to get such value; otherwise use
20452 the value stored in the table of interfaces.
20453 (Offset_To_Top): The type of the actual has been changed to Address to
20454 give the correct support to tagged types with discriminants. In this
20455 case this value is stored just immediately after the tag field.
20456 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20457 offset_to_top value is static and hence pass this value to the run-time
20458 to store it in the table of interfaces, or else if this value is dynamic
20459 and then pass to the run-time the address of a function that is
20460 generated by the expander to provide this value for each object of the
20463 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20464 (Default_Prim_Op_Count): New entity
20465 (Get_Predefined_Prim_Op_Address): New entity
20466 (Set_Predefined_Prim_Op_Address): New entity
20467 (RE_Set_Signature): New entity
20469 2006-02-13 Thomas Quinot <quinot@adacore.com>
20470 Ed Schonberg <schonberg@adacore.com>
20472 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20473 Make_Adjust_Call done for a newly-allocated object.
20475 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20476 in a subprogram are wrapped in a cleanup block, indicate that the
20477 subprogram contains an inner block with an exception handler.
20478 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20479 Adjust call is for a newly-allocated object. In that case we must not
20480 assume that the finalization list chain pointers are correct (since they
20481 come from a bit-for-bit copy of the original object's pointers) so if
20482 the attach level would otherwise be zero (no change), we set it to 4
20483 instead to cause the pointers to be reset to null.
20485 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20486 reset chain pointers to null.
20488 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20490 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20491 string, and the context requires a loop for the assignment (e.g.
20492 because the left-hand side is packed), generate a unique name for the
20493 temporary that holds the string, to prevent spurious name clashes.
20495 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20496 Javier Miranda <miranda@adacore.com>
20497 Robert Dewar <dewar@adacore.com>
20498 Gary Dismukes <dismukes@adacore.com>
20500 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20501 return unconstrained arrays.
20503 (Expand_Call): An indirect call through an access parameter of a
20504 protected operation is not a protected call.
20505 Add circuit to raise CE in Ada 2005 mode following call
20506 to Raise_Exception.
20507 (Register_DT_Entry): Do nothing if
20508 the run-time does not give support to abstract interfaces.
20509 (Freeze_Subprogram): In case of dispatching operations, do not generate
20510 code to register the operation in the dispatch table if the source
20511 is compiled with No_Dispatching_Calls.
20512 (Register_Predefined_DT_Entry): Generate code that calls the new
20513 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20514 Set_Prim_Op_Address.
20516 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20517 on array assignments if the right-hand side is a function call that has
20518 been inlined. Check is performed on the assignment in the block.
20519 (Process_Bounds): If bounds and range are overloaded, apply preference
20520 rule for root operations to disambiguate, and diagnose true ambiguity.
20521 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20522 a tag-indeterminate right-hand side even when Expander_Active is True.
20523 Needed to ensure that dispatching calls to T'Input are allowed and
20524 get the tag of the target class-wide object.
20526 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20527 an inherited primitive operation that already overrides several
20528 abstract interface primitives. For transitivity, the new entity must
20529 also override all the abstract interface primitives covered by the
20530 inherited overriden primitive.
20531 Emit warning if new entity differs from homograph in same scope only in
20532 that one has an access parameter and the other one has a parameter of
20533 a general access type with the same designated type, at the same
20534 position in the signature.
20535 (Make_Inequality_Operator): Use source locations of parameters and
20536 subtype marks from corresponding equality operator when creating the
20537 tree structure for the implicit declaration of "/=". This does not
20538 change anything in behaviour except that the decoration of the
20539 components of the subtree created for "/=" allows ASIS to get the
20540 string images of the corresponding identifiers.
20541 (Analyze_Return_Statement): Remove '!' in warning message.
20542 (Check_Statement_Sequence): Likewise.
20543 (Analyze_Subprogram_Body): For an access parameter whose designated type
20544 is an incomplete type imported through a limited_with clause, use the
20545 type of the corresponding formal in the body.
20546 (Check_Returns): Implicit return in No_Return procedure now raises
20547 Program_Error with a compile time warning, instead of beging illegal.
20548 (Has_Single_Return): Function returning unconstrained type cannot be
20549 inlined if expression in unique return statement is not an identifier.
20550 (Build_Body_To_Inline): It is possible to inline a function call that
20551 returns an unconstrained type if all return statements in the function
20552 return the same local variable. Subsidiary procedure Has_Single_Return
20553 verifies that the body conforms to this restriction.
20555 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20556 same type, and one of them is of an anonymous access type, convert
20557 the other operand to it, so that this is a valid binary operation for
20559 (Resolve_Type_Conversion): Handle subtypes of protected types and
20560 task types when accessing to the corresponding record type.
20561 (Resolve_Allocator): Add '\' in 2-line warning message.
20562 Remove '!' in warning message.
20563 (Resolve_Call): Add '\' in 2-line warning message.
20564 (Valid_Conversion): Likewise.
20565 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20566 resulting type may be an access type with an implicit dereference.
20567 Obtain the proper component from the designated type.
20568 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20569 given by an expanded name with prefix Standard, when the operands are
20570 of an anonymous access type.
20571 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20572 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20573 prefix of the expression is not of an incomplete type. Allows full
20574 diagnoses of all semantic errors.
20575 (Resolve_Actuals): If the actual is an allocator whose directly
20576 designated type is a class-wide interface we build an anonymous
20577 access type to use it as the type of the allocator. Later, when
20578 the subprogram call is expanded, if the interface has a secondary
20579 dispatch table the expander will add a type conversion to force
20580 the displacement of the pointer.
20581 (Resolve_Call): If a function that returns an unconstrained type is
20582 marked Inlined_Always and inlined, the call will be inlined and does
20583 not require the creation of a transient scope.
20584 (Check_Direct_Boolean_Op): Removed
20585 (Resolve_Comparison_Op): Remove call to above
20586 (Resolve_Equality_Op): Remove call to above
20587 (Resolve_Logical_Op): Inline above, since this is only call.
20588 (Valid_Conversion): Handle properly conversions between arrays of
20589 convertible anonymous access types.
20592 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20593 the literal in an unchecked conversion, because GCC 4.x needs a static
20594 value for a string bound.
20596 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20597 Hristian Kirtchev <kirtchev@adacore.com>
20599 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20600 components of the corresponding record, take into account component
20601 definitions that are access definitions.
20602 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20603 procedure is not considered a dispatching call and will be expanded
20606 2006-02-13 Javier Miranda <miranda@adacore.com>
20608 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20609 controlling argument of the dispatching call is an abstract interface
20610 class-wide type then we use it directly.
20611 Check No_Dispatching_Calls restriction.
20612 (Default_Prim_Op_Position): Remove the code that looks for the last
20613 entity in the list of aliased subprograms. This code was wrong in
20615 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20616 when the source is compiled with the No_Dispatching_Calls restriction.
20617 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20618 if we are compiling with restriction No_Dispatching_Calls.
20619 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20620 subprograms if we are compiling under No_Dispatching_Calls restriction.
20621 (Make_DT): Generate a dispatch table with a single dummy entry if
20622 we are compiling with the No_Dispatching_Calls restriction. In
20623 addition, in this case we don't generate code that calls to the
20624 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20625 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20626 of this subprogram if compiling with the No_Dispatching_Calls
20628 (Expand_Type_Conversion): Instead of using the actual parameter,
20629 the argument passed as parameter to the conversion function was
20630 erroneously referenced by the expander.
20631 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20632 Set_Predefined_Primitive_Op_Address and Set_Signature.
20633 (Expand_Dispatching_Call): Generate call to
20634 Get_Predefined_Prim_Op_Address for predefined primitives.
20635 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20636 predefined primitives.
20637 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20638 primitives we reserve one dummy entry to ensure that the tag does not
20639 point to some memory that is associated with some other object. In
20640 addition, remove all the old code that generated the assignments
20641 associated with the signature of the dispatch table and replace them
20642 by a call to the new subprogram Set_Signature.
20643 (Set_All_DT_Position): Change the algorithm because now we have a
20644 separate dispatch table associated with predefined primitive operations.
20645 (Expand_Interface_Conversion): In case of non-static offset_to_top
20646 add explicit dereference to get access to the object after the call
20647 to displace the pointer to the object.
20648 (Expand_Interface_Thunk): Modify the generation of the actual used
20649 in the calls to the run-time function Offset_To_Top to fulfil its
20651 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20653 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20655 * exp_dist.adb (Copy_Specification): For access parameters, copy
20656 Null_Exclusion flag, which will have been set for stream subprograms
20659 2006-02-13 Pascal Obry <obry@adacore.com>
20661 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20662 previous implementation was using the C runtime spawnve routine but
20663 the corresponding wait was using directly the Win32 API. This was
20664 causing some times a lock when waiting for an event using
20665 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20666 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20667 API fixes this problem.
20669 2006-02-13 Robert Dewar <dewar@adacore.com>
20671 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20674 2006-02-13 Thomas Quinot <quinot@adacore.com>
20676 * exp_pakd.ads: Fix typos in comments.
20678 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20679 array reference that is an explicit dereference, mark the converted
20680 (packed) array reference as analyzed to prevent a forthcoming
20681 reanalysis from resetting its type to the original (non-packed) array
20684 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20685 Javier Miranda <miranda@adacore.com>
20686 Eric Botcazou <ebotcazou@adacore.com>
20688 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20689 Is_Predefined_Primitive_Operation): When
20690 searching for the predefined equality operator, verify that operands
20691 have the same type.
20692 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20693 for the last entity in the list of aliased subprograms. This code
20694 was wrong in case of renamings.
20695 (Set_Renamed_Subprogram): New procedure
20696 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20697 Exp_Type constant computed when entering this subprogram.
20698 (Known_Null): New function
20699 (OK_To_Do_Constant_Replacement): New function
20700 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20701 (Side_Effect_Free): An attribute reference 'Input is not free of
20702 side effect, unlike other attributes that are functions. (from code
20704 (Remove_Side_Effects): Expressions that involve packed arrays or records
20705 are copied at the point of reference, and therefore must be marked as
20706 renamings of objects.
20707 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20708 not a dispatching operation.
20711 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20712 elementary types in all cases.
20714 2006-02-13 Javier Miranda <miranda@adacore.com>
20716 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20717 task types when accessing to the corresponding record type.
20718 Remove '!' in warning message.
20720 2006-02-13 Olivier Hainque <hainque@adacore.com>
20722 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20723 to avoid useless and space inefficient overalignments on targets where
20724 Max_Alignment is larger than 16.
20726 2006-02-13 Pascal Obry <obry@adacore.com>
20728 * g-catiio.adb (Sec_Number): New type used to compute the number of
20729 seconds since 1-1-1970.
20730 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20731 negative numbers (years, months...) it is better to have a Natural here.
20733 (Image) [Number]: Change parameter from Long_Integer to Number.
20734 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20735 overflow for dates past year 2038.
20737 2006-02-13 Matthew Heaney <heaney@adacore.com>
20739 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20742 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20744 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20746 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20747 finalization can occur normally.
20749 2006-02-13 Vincent Celier <celier@adacore.com>
20751 * gnatcmd.adb (Rules_Switches): New table
20752 (Add_To_Rules_Switches): New procedure
20753 (GNATCmd): For command CHECK, put all options following "-rules" in the
20754 Rules_Switches table. Append these -rules switches after the -cargs
20757 2006-02-13 Robert Dewar <dewar@adacore.com>
20759 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20760 These two cases were generating incorrect output, and if this unit
20761 was built with checks on, generated a discriminant mismatch constraint
20764 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20765 Robert Dewar <dewar@adacore.com>
20767 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20768 view is an array type, indicate the component type as well, for
20769 navigation purposes.
20770 (Generate_Reference): Don't consider array ref on LHS to be a case
20771 of violating pragma Unreferenced.
20772 Do not give Ada 2005 warning except on real reference.
20774 2006-02-13 Vincent Celier <celier@adacore.com>
20776 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20777 main source, add switch -mdebug-main=_ada_ so that the executable can
20778 be debugged by the standard VMS debugger.
20779 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20780 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20781 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20782 of the last source, as the binding and linking phases are never
20784 Set all executable obsolete when rebuilding a library.
20786 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20789 2006-02-13 Javier Miranda <miranda@adacore.com>
20792 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20793 code to improve the error message reported when the program has
20794 declarations of abstract interface types and it is not compiled with
20795 the -gnat05 switch.
20796 (P_Access_Definition): Reorganize the code to improve the error
20797 message reported when the new Ada 2005 syntax for anonymous
20798 access types is used and the program is not compiled with the
20801 2006-02-13 Robert Dewar <dewar@adacore.com>
20803 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20804 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20807 2006-02-13 Javier Miranda <miranda@adacore.com>
20809 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20810 against source containing syntax errors.
20812 2006-02-13 Vincent Celier <celier@adacore.com>
20814 * prj.adb (Reset): Initialize the first element of table Namings with
20815 the standard naming data.
20817 2006-02-13 Vincent Celier <celier@adacore.com>
20819 * prj.ads (Error_Warning): New enumeration type
20821 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20822 unknown, use the location of the project to report the error.
20823 (When_No_Sources): New global variable
20824 (Report_No_Ada_Sources): New procedure
20825 (Check): New parameter When_No_Sources. Set value of global variable
20827 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20828 (Get_Sources_From_File): Ditto
20829 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20832 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20833 Call Prj.Proc.Process with parameter When_No_Sources.
20835 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20836 Call Recursive_Check with parameter When_No_Sources.
20837 (Recursive_Check): New parameter When_No_Sources. Call itself and
20838 Prj.Nmsc.Check with parameter When_No_Sources.
20839 (Process): New parameter When_No_Sources. Call Check with parameter
20841 (Copy_Package_Declarations): New procedure to copy renamed parameters
20842 and setting the location of the declared attributes to the location
20843 of the renamed package.
20844 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20847 2006-02-13 Vincent Celier <celier@adacore.com>
20849 * prj-makr.adb (Make): Preserve the comments from the original project
20851 When removing nodes (attributes Source_Dirs, Source_Files,
20852 Source_List_File and package Naming), save the comments and attach the
20853 saved comments to the newly created nodes.
20854 Do not add a with clause for the naming package if one already exists.
20856 2006-02-13 Javier Miranda <miranda@adacore.com>
20857 Gary Dismukes <dismukes@adacore.com>
20858 Robert Dewar <dewar@adacore.com>
20860 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20862 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20863 aliased entities to look for the overriden abstract interface
20865 (Is_Interface_Subprogram): Complete documentation.
20866 (Check_Dispatching_Operation): Do not generate code to register the
20867 operation in the dispatch table if the source is compiled with
20868 restriction No_Dispatching_Calls.
20869 (Override_Dispatching_Operation): Check for illegal attempt to override
20870 No_Return procedure with procedure that is not No_Return
20871 (Check_Dispatching_Call): Suppress the check for an abstract operation
20872 when the original node of an actual is a tag-indeterminate attribute
20873 call, since the attribute, which must be 'Input, can never be abstract.
20874 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20875 call to the Input attribute (even when rewritten).
20876 (Propagate_Tag): Augment comment to indicate the possibility of a call
20877 to an Input attribute.
20879 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20880 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20882 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20883 No_Wide_Characters is no longer partition-wide
20884 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20887 2006-02-13 Douglas Rupp <rupp@adacore.com>
20889 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20891 2006-02-13 Javier Miranda <miranda@adacore.com>
20893 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20894 handles default-initialized components to keep separate the management
20895 of this feature but also avoid the unrequired resolution and
20896 expansion of components that do not have partially initialized
20898 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20899 (Check_Bounds): Likewise.
20900 (Check_Length): Likewise.
20902 2006-02-13 Javier Miranda <miranda@adacore.com>
20903 Ed Schonberg <schonberg@adacore.com>
20905 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20906 abstract interface type call analyze_and_resolve to expand the type
20907 conversion into the corresponding displacement of the
20908 reference to the base of the object.
20909 (Eval_Attribute, case Width): For systems where IEEE extended precision
20910 is supported, the maximum exponent occupies 4 decimal digits.
20911 (Accessibility_Message): Add '\' in 2-line warning message.
20912 (Resolve_Attribute): Likewise.
20913 (case Attribute_Access): Significantly revise checks
20914 for illegal access-to-subprogram Access attributes to properly enforce
20915 the rules of 3.10.2(32/2).
20916 Diagnose use of current instance with an illegal attribute.
20918 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20920 (Enclosing_Generic_Unit): New function to return a node's innermost
20921 enclosing generic declaration node.
20922 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20923 (Type_Access_Level): The accessibility level of anonymous acccess types
20924 associated with discriminants is that of the current instance of the
20925 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20926 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20927 (Kill_Current_Values_For_Entity): New function
20928 (Enter_Name): Change formal type to Entity_Id
20930 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20931 Ed Schonberg <schonberg@adacore.com>
20932 Gary Dismukes <dismukes@adacore.com>
20934 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20935 Analyze_Compilation_Unit.
20936 Detect and warn on redundant with clauses detected in a package spec
20937 and/or body when -gnatwr is used.
20938 (Analyze_Context): Analyze config pragmas before other items
20939 (Install_Context_Items): Don't analyze config pragmas here
20940 (Install_Limited_Withed_Unit): Set limited entity of package in
20941 with_clause so that cross-reference information or warning messages on
20942 unused packages can be properly generated
20943 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20944 has Error_Posted set. Prevent infinite loops in illegal programs.
20945 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20946 to the point of the error test requiring the current unit to be private.
20947 This ensures that private with clauses are not exempted from the basic
20948 checking for being a descendant of the same library unit parent as a
20949 withed private descendant unit.
20950 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20951 handle private with clauses properly, as well as to account for cases
20952 where the withed unit is a public descendant of a private ancestor
20953 (in which case the current unit must be a descendant of the private
20954 ancestor's parent). The spec comments were updated accordingly. Also,
20955 the old error message in this subprogram was replaced with error
20956 messages that mirror the errors tested and reported by
20957 Check_Private_Child_Unit.
20958 Parameter and variable names improved for readability.
20959 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20960 private as the precondition for calling
20961 Check_Private_Limited_Withed_Unit since that subprogram has been
20962 revised to test public units as well as private units.
20964 2006-02-13 Thomas Quinot <quinot@adacore.com>
20965 Robert Dewar <dewar@adacore.com>
20966 Ed Schonberg <schonberg@adacore.com>
20967 Javier Miranda <miranda@adacore.com>
20969 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20970 that Scope_Stack.First = 1.
20971 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20972 were not always properly handled previously.
20973 (Formal_Entity): Complete rewrite, to handle properly some complex case
20974 with multiple levels of parametrization by formal packages.
20975 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20976 to the corresponding derived type declaration for proper semantics.
20978 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20979 (Check_Component): Enforce restriction on components of
20980 unchecked_unions: a component in a variant cannot contain tasks or
20982 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20984 Add pragma Ada_2005 (synonym for Ada_05)
20985 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20986 were not always properly handled previously.
20987 Document that pragma Propagate_Exceptions has no effect
20988 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20989 (Set_Convention_From_Pragma): Check that if a convention is
20990 specified for a dispatching operation, then it must be
20991 consistent with the existing convention for the operation.
20992 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20993 longer required to specify an vtable-ptr component in the record. For
20994 compatibility reasons we leave the support for the previous definition.
20995 (Analyze_Pragma, case No_Return): Allow multiple arguments
20997 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20998 non-overrideen inherited operation with a controlling result as
20999 illegal only its implicit declaration comes from the derived type
21000 declaration of its result's type.
21001 (Check_Possible_Deferred_Completion): Relocate the object definition
21002 node of the subtype indication of a deferred constant completion rather
21003 than directly analyzing it. The analysis of the generated subtype will
21004 correctly decorate the GNAT tree.
21005 (Record_Type_Declaration): Check whether this is a declaration for a
21006 limited derived record before analyzing components.
21007 (Analyze_Component_Declaration): Diagnose record types not explicitly
21008 declared limited when a component has a limited type.
21009 (Build_Derived_Record_Type): Code reorganization to check if some of
21010 the inherited subprograms of a tagged type cover interface primitives.
21011 This check was missing in case of a full-type associated with a private
21013 (Constant_Redeclaration): Check that the subtypes of the partial and the
21014 full view of a constrained deferred constant statically match.
21015 (Mentions_T): A reference to the current type in an anonymous access
21016 component declaration must be an entity name.
21017 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
21018 class_wide type to refer to full type, not to the incomplete one.
21019 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
21020 available. Required to give support to the certified run-time.
21021 (Analyze_Component_Declaration): In case of anonymous access components
21022 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
21023 (Process_Discriminants): For an access discriminant, use the
21024 discriminant specification as the associated_node_for_itype, to
21025 simplify accessibility checks.
21027 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21028 Javier Miranda <miranda@adacore.com>
21030 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
21031 abstract interpretations on an operator, remove interpretations that
21032 yield Address or a type derived from it, if one of the operands is an
21034 (Try_Object_Operation.Try_Primitive_Operation,
21035 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
21036 location when creating the new reference to a primitive or class-wide
21037 operation as a part of rewriting a subprogram call.
21038 (Try_Primitive_Operations): If context requires a function, collect all
21039 interpretations after the first match, because there may be primitive
21040 operations of the same type with the same profile and different return
21041 types. From code reading.
21042 (Try_Primitive_Operation): Use the node kind to choose the proper
21043 operation when a function and a procedure have the same parameter
21045 (Complete_Object_Operation): If formal is an access parameter and prefix
21046 is an object, rewrite as an Access reference, to match signature of
21047 primitive operation.
21048 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21049 by an expanded name with prefix Standard, when the operands are of an
21050 anonymous access type.
21051 (Remove_Abstract_Operations): If the operation is abstract because it is
21052 inherited by a user-defined type derived from Address, remove it as
21053 well from the set of candidate interpretations of an overloaded node.
21054 (Analyze_Membership_Op): Membership test not applicable to cpp-class
21057 2006-02-13 Bob Duff <duff@adacore.com>
21059 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21060 redundant use clauses.
21061 In particular, if the scope of two use clauses overlaps, but one is not
21062 entirely included in the other, we should not warn. This can happen
21063 with nested packages.
21064 (Analyze_Subprogram_Renaming): Protect the compiler against previously
21065 reported errors. The bug was reported when the compiler was built
21066 with assertions enabled.
21067 (Find_Type): If the node is a 'Class reference and the prefix is a
21068 synchronized type without a corresponding record, return the type
21071 2006-02-13 Javier Miranda <miranda@adacore.com>
21073 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21074 if this is the full-declaration associated with a private declaration
21075 that implement interfaces, then the private type declaration must be
21077 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21078 as aliased. The use of the 'access attribute is not available for such
21079 object (for this purpose the object should be explicitly marked as
21080 aliased, but being an anonymous type this is not possible).
21082 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21083 Robert Dewar <dewar@adacore.com>
21085 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21086 compilation unit is an elaboration scope.
21087 (Add_Task_Proc): Add '\' in 2-line warning message.
21088 (Activate_All_Desirable): Deal with case of unit with'ed by parent
21090 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21091 Javier Miranda <miranda@adacore.com>
21093 * sem_type.adb (Write_Overloads): Improve display of candidate
21095 (Add_One_Interp): Do not add to the list of interpretations aliased
21096 entities corresponding with an abstract interface type that is an
21097 immediate ancestor of a tagged type; otherwise we have a dummy
21098 conflict between this entity and the aliased entity.
21099 (Disambiguate): The predefined equality on universal_access is not
21100 usable if there is a user-defined equality with the proper signature,
21101 declared in the same declarative part as the designated type.
21102 (Find_Unique_Type): The universal_access equality operator defined under
21103 AI-230 does not cover pool specific access types.
21104 (Covers): If one of the types is a generic actual subtype, check whether
21105 it matches the partial view of the other type.
21107 2006-02-13 Thomas Quinot <quinot@adacore.com>
21109 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21110 line. This is necessary to allow In_Extended_Main_Unit to provide
21111 correct results for itypes while writing out expanded source.
21112 (Close_File): No need to update the source_index_table here since it's
21113 now done for each line.
21115 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21116 Robert Dewar <dewar@adacore.com>
21118 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21119 preserve the source unit where the itype is declared, and prevent a
21121 (Note_Implicit_Run_Time_Call): New procedure
21122 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21125 * sprint.ads: Document use of $ for implicit run time routine call
21127 2006-02-13 Quentin Ochem <ochem@adacore.com>
21129 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21132 2006-02-13 Bob Duff <duff@adacore.com>
21134 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21135 Scan_Unsigned, so we do not scan leading blanks and sign twice.
21136 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21137 raise Constraint_Error.
21139 * s-vallli.adb (Scan_Long_Long_Integer): Call
21140 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21141 do not scan leading blanks and sign twice.
21142 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21143 raise Constraint_Error.
21145 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21146 Scan_Long_Long_Unsigned): Split out most of the processing from
21147 Scan_Long_Long_Unsigned out into
21148 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21149 This prevents scanning leading blanks and sign twice.
21150 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21153 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21154 out most of the processing from Scan_Unsigned out into
21155 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21156 This prevents scanning leading blanks and sign twice.
21158 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21159 use with Modular'Value attribute.
21160 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21163 2006-02-13 Robert Dewar <dewar@adacore.com>
21165 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21167 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21169 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21170 (PPC VxWorks): Likewise.
21171 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21172 (forced_callee): Make non-inlinable and non-pure.
21173 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21175 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21176 Ben Brosgol <brosgol@adacore.com>
21177 Robert Dewar <dewar@adacore.com>
21179 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21181 Document that gnatbind -M option is for cross environments only.
21182 Added description of using gnatmem to trace gnat rtl allocs and deallocs
21183 Add note on use of $ to label implicit run time calls
21184 Add documentation for -gnatyI (check mode IN)
21185 Updated chapter on compatibility with HP Ada
21186 VMS-oriented edits.
21187 Ran spell and corrected errors
21188 Add documentation for gnatbind -d and rework documentation of -D
21190 Add subprogram/data elimination section.
21191 Minor editing of annex A.
21192 Add section for gnatcheck.
21193 Add documentation for restriction No_Dispatching_Calls
21194 Add documentation for pragma Ada_2005
21195 Remove mention of obsolete pragma Propagate_Exceptions
21196 Document that pragma Unreferenced can appear after DO in ACCEPT
21197 Clarify Pure_Function for library level units
21198 Mention Max/Min in connection with No_Implicit_Conditionals
21199 No_Wide_Characters restriction is no longer partition-wide
21200 Add a nice example for Universal_Literal_String attribute
21201 Document that pragma No_Return can take multiple arguments
21203 * ug_words: Added entry for gnatcheck
21205 * g-ctrl_c.ads (Install_Handler): Enhance comments
21207 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21209 * g-trasym.ads: Add documentation on how to do off line symbolic
21210 traceback computation.
21212 * s-fatgen.adb: Add comments for Unaligned_Valid
21214 * stand.ads: Fix typo in comment
21216 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21218 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21220 2006-02-06 Roger Sayle <roger@eyesopen.com>
21222 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21224 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21227 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21228 implementation that calls __main.
21230 2006-01-25 Peter O'Gorman <peter@pogma.com>
21233 * Makefile.in (GCC_LINK): Remove quotes.
21234 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21237 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21239 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21242 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21244 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21246 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21248 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21250 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21253 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21255 * Make-lang.in: Update dependencies
21257 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21259 * Make-lang.in: Add rule for ada/exp_sel.o
21261 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21263 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21265 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21267 * gnatvsn.ads (Library_Version): Bump to version 4.2
21268 (ASIS_Version_Number): Bumped.
21270 2005-12-09 Doug Rupp <rupp@adacore.com>
21272 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21273 Ada bind file prefix on VMS from b$ to b__.
21274 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21277 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21278 Targparm.OpenVMS_On_Target.
21279 (Object_Suffix): Initialize with target object suffix.
21280 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21282 * butil.adb: Change some Hostparm.OpenVMS checks to
21283 Targparm.OpenVMS_On_Target.
21285 * clean.adb: Change some Hostparm.OpenVMS checks to
21286 Targparm.OpenVMS_On_Target.
21287 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21288 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21289 Ada bind file prefix on VMS from b$ to b__.
21291 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21292 --GCC so that Get_Target_Parameters can find system.ads.
21293 (Gnatlink): Call Get_Target_Parameters in mainline.
21294 Initialize standard packages for Targparm.
21295 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21296 (Process_Args): Also Check for object files with target object
21298 (Make_Binder_File_Names): Create with target object extension.
21299 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21302 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21303 Targparm.OpenVMS_On_Target.
21304 ({declaration},Build_Library,Check_Library): Change Ada bind file
21305 prefix on VMS from b$ to b__.
21307 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21308 Targparm.OpenVMS_On_Target.
21309 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21312 * targext.c: New file.
21314 * Makefile.in: add support for vxworks653 builds
21315 (../../vxaddr2line): gnatlink with targext.o.
21316 (TOOLS_LIBS): Move targext.o to precede libgnat.
21317 (init.o, initialize.o): Minor clean up in dependencies.
21318 (GNATLINK_OBJS): Add targparm.o, snames.o
21319 Add rules fo building targext.o and linking it explicitly with all
21321 Also add targext.o to gnatlib.
21323 * Make-lang.in: Add rules for building targext.o and linking it in
21324 with gnat1 and gnatbind.
21325 Add entry for exp_sel.o.
21327 * osint.adb Change some Hostparm.OpenVMS checks to
21328 Targparm.OpenVMS_On_Target.
21329 (Object_File_Name): Use target object suffix.
21331 * osint.ads (Object_Suffix): Remove, no longer used.
21332 (Target_Object_Suffix): Initialize with target object suffix.
21334 * rident.ads: Add special exception to license.
21336 * targparm.adb (Get_Target_Parameters): Set the value of
21337 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21339 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21341 * targparm.ads: Add special exception to license.
21343 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21345 (Copy_File): Make sure from file is closed if error on to file
21346 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21348 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21349 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21351 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21352 target object suffix.
21354 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21355 Quentin Ochem <ochem@adacore.com>
21356 Florian Villoing <villoing@adacore.com>
21358 * a-taster.ads, a-taster.adb: New files.
21360 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21361 link to the version that does nothing. This way the task termination
21362 routine is not executed twice for the environment task when finishing
21363 because of an unhandled exception.
21365 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21366 handler because of an unhandled exception.
21368 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21369 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21371 * s-finimp.adb (initialization code): Modify the soft link for the
21372 finalization of the global list instead of Adafinal.
21374 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21375 non-tasking version of the soft link for task termination. We do
21376 nothing since if we are using the non-tasking version it
21377 means that the task termination functionality is not used.
21378 (Null_Finalize_Global_List): Add this null version for the procedure
21379 in charge of finalizing the global list for controlled objects.
21380 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21381 instead for handling run-time termination in a more flexible way.
21382 (Adafinal_NT): This new procedure will take care of finalizing the
21383 global list for controlled objects if needed, but no tasking
21386 * s-tarest.adb (Task_Lock): Do not try to lock again the
21387 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21388 some run-time operations.
21389 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21390 until all nested locks have been released.
21391 (Task_Wrapper): Call the fall-back task termination handler. It
21392 applies to all tasks but the environment task.
21393 (Finalize_Global_Tasks): Add the call for the task termination
21394 procedure for the environment task.
21395 (Task_Wrapper): suppress warnings around declaration of
21396 Secondary_Stack_Address.
21398 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21399 moved to the Common_ATCB record.
21400 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21401 Common_ATCB record.
21402 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21403 Common_ATCB record.
21405 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21406 Fall_Back_Handler, and Specific_Handler.
21408 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21409 defined in Ada.Task_Termination, to avoid circular dependencies.
21410 (Termination_Handler): Redefine this type here, alredy defined in
21411 Ada.Task_Termination, for avoiding circular dependencies.
21412 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21413 for storing task termination handlers. In addition,
21414 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21415 Common_ATCB because it is used by both the regular and the restricted
21417 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21418 Common_ATCB because it is used by both the regular and the restricted
21420 (Common_ATCB): Added a dynamic task analyzer field.
21422 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21423 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21424 (Task_Wrapper): Call the task termination handler. It applies to all
21425 tasks but the environment task.
21426 (Finalize_Global_Tasks): Call the task termination procedure for the
21427 environment task. The call to Finalize_Global_List is now performed
21428 using the soft links mechanism.
21429 (Task_Wrapper): added dynamic stack analysis.
21431 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21432 potentially blocking operations has been moved from
21433 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21434 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21435 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21436 this run-time check.
21438 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21439 of task termination procedure.
21440 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21441 link for the task termination procedure.
21443 * bindusg.adb: (Bindusg): Added documentation for -u option.
21445 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21446 (Get_Main_C): Add handling of dynamic stack analysis.
21447 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21449 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21450 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21451 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21453 * opt.ads: Added flags used by dynamic stack measurement.
21454 (Max_Line_Length): Remove (not used anymore)
21456 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21457 (Standart_Output): new subprogram
21458 (Set_Output): new subprogram
21459 (Put): now uses the value of Current_Out to know if the output has to be
21460 send to stderr or stdout.
21462 * s-stausa.ads: Complete implementation.
21464 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21466 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21467 list of Ada 05 files.
21468 (GNAT Library Units): Add AltiVec files.
21470 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21471 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21472 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21474 2005-12-09 Nicolas Setton <setton@adacore.com>
21476 * adaint.c (__gnat_locate_regular_file): Return immediately if
21477 file_name is empty.
21479 2005-12-09 Javier Miranda <miranda@adacore.com>
21480 Hristian Kirtchev <kirtchev@adacore.com>
21482 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21483 to the specification because the frontend generates code that uses this
21485 (Set_Interface_Table): Add missing assertion.
21486 Update documentation describing the run-time structure.
21487 (Displace): New subprogram that displaces the pointer to the object
21488 to reference one of its secondary dispatch tables.
21489 (IW_Membership): Modified to use the new table of interfaces.
21490 (Inherit_TSD): Modified to use the new table of interfaces.
21491 (Register_Interface_Tag): Use the additional formal to fill the
21492 contents of the new table of interfaces.
21493 (Set_Interface_Table): New subprogram that stores in the TSD the
21494 pointer to the table of interfaces.
21495 (Set_Offset_To_Top): Use the additional formal to save copy of
21496 the offset value in the table of interfaces.
21497 Update structure of GNAT Primary and Secondary dispatch table diagram.
21498 Add comment section on GNAT dispatch table prologue.
21499 (Offset_To_Signature): Update the constant value of the Signature field.
21500 (Dispatch_Table): Update comment on hidden fields in the prologue.
21501 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21502 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21503 the type of formal parameter T to Tag, introduce additional assertions.
21504 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21506 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21508 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21509 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21510 record component containing the tag of the secondary dispatch table we
21511 have to use the Offset_To_Top run-time function to get this information;
21512 otherwise if the pointer to the base of the object has been displace
21513 we get a wrong value if we use the 'position attribute.
21515 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21516 all the calls to Expand_Interface_Thunk.
21517 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21518 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21519 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21520 ensure that the interfaces implemented by the ancestors are placed
21521 at the header of the generated list.
21522 (Expand_Interface_Conversion): Handle the case in which the displacement
21523 associated with the interface conversion is not statically known. In
21524 this case we generate a call to the new run-time subprogram Displace.
21525 (Make_DT): Generate and fill the new table of interfaces.
21526 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21527 Get_Tagged_Kind and Set_Tagged_Kind.
21528 (Tagged_Kind): New function that determines the tagged kind of a type
21529 with respect to limitedness and concurrency and returns a reference to
21531 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21532 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21533 primary dispatch table for a type.
21534 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21535 secondary dispatch table respectively of a tagged type.
21537 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21538 (Expand_Interface_Conversion): New subprogram to indicate if the
21539 displacement of the type conversion is statically known.
21540 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21542 * rtsfind.ads (RE_Offset_To_Top): New entity
21543 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21544 accessible to users.
21545 (Re_Displace): New entity
21546 (RE_Interface_Data): New entity
21547 (RE_Set_Interface_Data): New_Entity
21548 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21549 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21550 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21551 RE_TK_Tagged, RE_TK_Task.
21553 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21554 Init_Secondary_Tags_Internal to allow its use with interface types and
21555 also to generate the code for the new additional actual required
21556 by Set_Offset_To_Top.
21557 (Build_Init_Statements): In case of components associated with abstract
21558 interface types there is no need to generate a call to its IP.
21559 (Freeze_Record_Type): Generate Select Specific Data tables only for
21561 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21562 the bodies and specifications of the predefined primitive operations
21563 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21564 for concurrent types.
21566 * exp_sel.ads, exp_sel.adb: New files.
21568 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21569 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21570 properly protected objects and attach handler in the case of the
21571 restricted profile.
21572 Move embeded package Select_Expansion_Utilities into a separate external
21574 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21575 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21576 (Build_K, Build_S_Assignment): New subprograms, part of the select
21577 expansion utilities.
21578 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21579 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21580 where the trigger is a dispatching procedure of a limited tagged type.
21582 2005-12-09 Olivier Hainque <hainque@adacore.com>
21584 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21585 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21586 about the use and expansion of SAVE_EXPRs in the various possible
21587 renaming handling cases.
21588 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21589 abusing DECL_FCONTEXT.
21591 2005-12-09 Matthew Heaney <heaney@adacore.com>
21593 * a-convec.adb (Merge): Added assertions to check whether vector params
21596 * a-coinve.adb (Merge): Added assertions to check whether vector params
21599 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21601 (Cursor'Read): raises PE
21603 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21604 to its default value.
21606 * a-cihama.adb: Manually check whether cursor's key and elem are
21609 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21610 (Merge): Assert that target and source lists are in order
21611 (Swap): Declare non-const temporaries, to pass to Splice
21613 * a-cdlili.ads: (Splice): Changed param name and param mode
21615 * a-cdlili.adb: (Splice): Changed param name and param mode
21616 (Merge): Assert that target and source lists are in order
21617 (Swap): Declare non-const temporaries, to pass to Splice
21619 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21620 (Write): declare Stream param as not null
21622 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21623 an exception message.
21625 2005-12-09 Thomas Quinot <quinot@adacore.com>
21626 Robert Dewar <dewar@adacore.com>
21628 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21629 which is the absolute maximum length we can support.
21631 * frontend.adb: For the processing of configuration pragma files,
21632 remove references to Opt.Max_Line_Length, which is not checked anymore.
21634 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21637 * scn.adb, scng.adb:
21638 Always check line length against the absolute supported maximum,
21639 Hostparm.Max_Line_Length.
21641 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21642 value for the maximum line length is Max_Line_Length (not
21643 Column_Number'Last).
21644 Minor error msg update
21645 (Set_Style_Check_Options): New interface returning error msg
21646 Minor code reorganization (processing for 'M' was out of alpha order)
21648 * switch-c.adb: New interface for Set_Style_Check_Options
21650 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21653 2005-12-09 Javier Miranda <miranda@adacore.com>
21655 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21656 with IP subprogram were only supported if there were limited types.
21658 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21659 records with IP subprogram were only supported if there were limited
21662 2005-12-09 Olivier Hainque <hainque@adacore.com>
21663 Eric Botcazou <ebotcazou@adacore.com>
21665 * trans.c (tree_transform, emit_check): Adjust calls to
21666 build_call_raise, passing the now expected GNAT_NODE argument.
21668 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21669 source line information than what the current global locus indicates
21672 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21673 field has overflowed.
21674 (build_call_raise): Add a GNAT_NODE argument to convey better source
21675 line information than what the current global locus indicates when
21677 (build_component_ref): Adjust call to build_call_raise.
21679 2005-12-09 Pascal Obry <obry@adacore.com>
21681 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21682 the iterator is quitting iteration on parent directory.
21684 2005-12-09 Javier Miranda <miranda@adacore.com>
21686 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21687 and the assignment to a class-wide object, before the assignment we
21688 generate a run-time check to ensure that the tag of the Target is
21689 covered by the tag of the source.
21691 2005-12-09 Robert Dewar <dewar@adacore.com>
21693 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21694 parameter in call to Image_Wide_Character.
21696 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21697 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21698 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21699 annoying FFFE/FFFF inconsistency.
21701 2005-12-09 Robert Dewar <dewar@adacore.com>
21702 Javier Miranda <miranda@adacore.com>
21703 Ed Schonberg <schonberg@adacore.com>
21705 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21706 of type conversion.
21707 (Find_Interface): New subprogram that given a tagged type and one of its
21708 component associated with the secondary table of an abstract interface
21709 type, return the entity associated with such abstract interface type.
21710 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21711 base type to create anonymous subtype, because entity may be a locally
21712 declared subtype or generic actual.
21713 (Find_Interface): New subprogram that given a tagged type and one of its
21714 component associated with the secondary table of an abstract interface
21715 type, return the entity associated with such abstract interface type.
21717 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21718 conversion cannot be handled at compile time. In this case we pass this
21719 information to the expander to generate the appropriate code.
21721 2005-12-09 Robert Dewar <dewar@adacore.com>
21722 Ed Schonberg <schonberg@adacore.com>
21723 Gary Dismukes <dismukes@adacore.com>
21724 Javier Miranda <miranda@adacore.com>
21725 Hristian Kirtchev <kirtchev@adacore.com>
21727 * einfo.adb (Itype_Printed): New flag
21728 (Is_Limited_Type): Derived types do not inherit limitedness from
21729 interface progenitors.
21730 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21733 * einfo.ads (Itype_Printed): New flag
21734 Move Is_Wrapper_Package to proper section
21735 Add missing Inline for Is_Volatile
21737 * output.ads, output.adb (Write_Erase_Char): New procedure
21738 (Save/Restore_Output_Buffer): New procedures
21739 (Save/Restore_Output_Buffer): New procedures
21741 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21742 Add missing support for anonymous access type
21743 (Write_Id): Insert calls to Write_Itype
21744 (Write_Itype): New procedure to output itypes
21746 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21747 use of "limited" in declaration.
21749 * sinfo.ads, sinfo.adb:
21750 Formal derived types can carry an explicit "limited" indication.
21752 * sem_ch3.adb: Add with and use of Targparm.
21753 (Create_Component): If Frontend_Layout_On_Target is True and the
21754 copied component does not have a known static Esize, then reset
21755 the size and positional fields of the new component.
21756 (Analyze_Component_Declaration): A limited component is
21757 legal within a protected type that implements an interface.
21758 (Collect_Interfaces): Do not add to the list the interfaces that
21759 are implemented by the ancestors.
21760 (Derived_Type_Declaration): If the parent of the full-view is an
21761 interface perform a transformation of the tree to ensure that it has
21762 the same parent than the partial-view. This simplifies the job of the
21763 expander in order to generate the correct object layout, and it is
21764 needed because the list of interfaces of the full-view can be given in
21766 (Process_Full_View): The parent of the full-view does not need to be
21767 a descendant of the parent of the partial view if both parents are
21769 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21770 "limited" the parent must be a limited type.
21771 (Build_Derived_Record_Type): A derived type that is explicitly limited
21772 must have limited ancestor and progenitors.
21773 (Build_Derived_Type): Ditto.
21774 (Process_Full_View): Verify that explicit uses of "limited" in partial
21775 and full declarations are consistent.
21776 (Find_Ancestor_Interface): Remove function.
21777 (Collect_Implemented_Interfaces): New procedure used to gather all
21778 implemented interfaces by a type.
21779 (Contain_Interface): New function used to check whether an interface is
21781 (Find_Hidden_Interface): New function used to determine whether two
21782 lists of interfaces constitute a set equality. If not, the first
21783 differing interface is returned.
21784 (Process_Full_View): Improve the check for the "no hidden interface"
21785 rule as defined by AI-396.
21787 2005-12-09 Robert Dewar <dewar@adacore.com>
21789 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21790 types, not on record subtypes.
21791 (Freeze_Entity): Code cleanup. Add barrier to the loop
21792 that generates the references for primitive operations. This allows to
21793 remove an unnecessary exception handler.
21794 Code reformatting and comment clean ups.
21796 2005-12-09 Vincent Celier <celier@adacore.com>
21798 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21799 If GNAT CHECK is called with a project file, but with no
21800 source on the command line, call gnatcheck with all the compilable
21801 sources of the project.
21802 Take into account the new command Check, for gnatcheck. Treat as for
21803 other ASIS tools: take into account project, specific package Check and
21805 For ASIS tools, add the switches in package Compiler for
21806 the invocation of the compiler.
21808 * prj-attr.adb: Add package Check and its attributes
21810 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21812 * vms_conv.adb (Initialize): Change Params of command Check to
21814 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21815 Add data for new command Check
21817 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21819 Add qualifiers for Check command options
21820 (Command_Type): New command Check
21822 2005-12-09 Thomas Quinot <quinot@adacore.com>
21824 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21825 command line switch overruns the output buffer.
21827 2005-12-09 Robert Dewar <dewar@adacore.com>
21829 * sem_prag.adb: Processing for new pragma Complete_Representation
21830 (Analyze_Pragma, case Debug): Implement two argument form.
21832 * par-prag.adb: Entry for new pragma Complete_Representation
21833 (Prag, case Debug): Recognize two argument form of pragma Debug
21834 New interface for Set_Style_Check_Options.
21836 * sem_ch13.adb: Implement new pragma Complete_Representation.
21838 * snames.adb, snames.ads, snames.h: Entry for new pragma
21839 Complete_Representation.
21841 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21843 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21844 available user-specified stream attributes on limited parameters to
21845 also test the type directly rather than only its underlying type (for
21846 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21847 attributes are visible at the point of the subprogram declaration.
21848 For Ada 2005, the error message is modified to indicate that the
21849 type's stream attributes must be visible (again, only for -gnat05).
21851 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21853 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21854 anonymous access types.
21856 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21857 matching of anonymous access types and anonymous access to subprogram
21858 types. 'R'M 4.9.1 (2/2).
21860 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21862 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21863 rule prematurely when operands are universal, remaining ambiguities
21864 will be removed during resolution.
21867 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21868 that are Ada 2005 functions.
21869 (Has_Abstract_Interpretation): Subsidiary to
21870 Remove_Conversions, to remove ambiguities caused by abstract operations
21871 on numeric types when operands are universal.
21873 2005-12-09 Robert Dewar <dewar@adacore.com>
21875 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21876 for case where spec is categorized.
21878 2005-12-09 Javier Miranda <miranda@adacore.com>
21880 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21881 types use the corresponding record type. This was not needed before
21882 the implementation of Ada 2005 synchronized types because
21883 concurrent types were never tagged types in Ada 95.
21885 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21887 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21888 first subtype of the type of the expression to verify that it is a
21891 2005-12-09 Robert Dewar <dewar@adacore.com>
21893 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21896 2005-12-09 Quentin Ochem <ochem@adacore.com>
21897 Robert Dewar <dewar@adacore.com>
21898 Ed Falis <falis@adacore.com>
21899 Florian Villoing <villoing@adacore.com>
21900 Thomas Quinot <quinot@adacore.com>
21901 Arnaud Charlet <charlet@adacore.com>
21903 * gnat_ugn.texi: Created section "Stack Related Tools"
21904 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21905 "Stack Related Tools"
21906 Added subsection "Static Stack Usage Analysis"
21907 Added subsection "Dynamic Stack Usage Analysis"
21908 Include documentation of itypes in sprint listing (-gnatG)
21909 Documented gnatbind -D switch (default sec stack size for fixed sec
21911 Added Interrupt_State and Persistent_BSS to list of configuration
21913 Add missing doc for maximum value of nnn in -gnatyMnnn
21915 * gnat_rm.texi: Document the AltiVec binding.
21916 Add documentation for pragma Complete_Representation
21917 Shortened an overly long line (> 79 chars)
21918 Clarify documentation of unchecked conversion in implementation
21920 Document two argument form of pragma Debug
21922 * types.ads (Column_Number): Update documentation.
21924 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21925 library level Finalize_Storage_Only objects (these are not attached to
21926 any finalization list).
21928 * system-mingw.ads: (Underlying_Priorities): Update comment.
21930 2005-12-09 Robert Dewar <dewar@adacore.com>
21932 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21933 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21934 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21935 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21936 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21937 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21938 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21939 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21942 2005-12-09 Robert Dewar <dewar@adacore.com>
21944 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21945 (Ne_G): New function
21947 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21948 for tag assignment.
21949 (Rewrite_Comparison): Handle case where operation is not a comparison
21950 and ignore, and also handle type conversion case.
21952 2005-12-09 Thomas Quinot <quinot@adacore.com>
21954 * exp_aggr.ads: Fix typo in comment.
21955 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21957 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21959 * layout.adb: Replace various uses of byte by storage unit throughout.
21960 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21961 static size, convert to storage units before returning, to conform to
21964 2005-12-09 Matthew Gingell <gingell@adacore.com>
21966 * g-exctra.ads: Fix typo in comment.
21968 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21970 * utils.c: Minor reformatting.
21972 2005-12-09 Robert Dewar <dewar@adacore.com>
21975 Further comment fixes to make the status of the default file clear
21977 * s-bitops.adb: Clarify comment for Bits_Array
21979 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21981 * Make-lang.in (ada.install-normal): Remove.
21983 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21985 * Make-lang.in: Remove all dependencies on s-gtype.
21987 2005-12-05 Richard Guenther <rguenther@suse.de>
21989 * utils.c (convert): Use fold_convert where appropriate.
21991 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21993 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21996 2005-12-02 Richard Guenther <rguenther@suse.de>
21998 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
22000 2005-12-01 Roger Sayle <roger@eyesopen.com>
22002 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
22005 2005-11-23 Laurent Guerby <laurent@guerby.net>
22007 * mlib-prj.adb (Build_Library): Initialize Delete.
22009 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
22011 * socket.c: Add extern int h_errno for rtems since networking header
22012 files are not available at this point in a tool bootstrap. Newlib
22013 only has basic C library header files.
22015 2005-11-19 Richard Guenther <rguenther@suse.de>
22016 Roger Sayle <roger@eyesopen.com>
22019 * misc.c (internal_error_function): Don't use vsprintf to format
22020 the error message text, instead use pp_format_text and the new
22021 pretty printer APIs. This allows handling of %qs, %w, etc.
22023 2005-11-18 Laurent Guerby <laurent@guerby.net>
22026 * Makefile.in: Use s-auxdec-empty for RTEMS.
22028 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22031 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
22032 a temporary if taking the address of something that is neither
22033 reference, declaration, or constant, since the gimplifier
22034 can't handle that case.
22036 2005-11-17 Laurent Guerby <laurent@guerby.net>
22039 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
22041 2005-11-16 Richard Guenther <rguenther@suse.de>
22043 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
22045 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
22048 * raise-gcc.c: Add missing stdarg.h include.
22050 2005-11-16 Richard Guenther <rguenther@suse.de>
22052 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22053 (ada/misc.o): Likewise.
22055 2005-11-14 Thomas Quinot <quinot@adacore.com>
22057 * g-soccon.ads: Minor reformatting. Update comments.
22059 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22060 gain visibility on the declaration of struct timeval.
22062 * g-soccon-freebsd.ads,
22063 g-soccon-darwin.ads,
22064 g-soccon-tru64.ads,
22068 g-soccon-solaris.ads,
22070 g-soccon-mingw.ads,
22071 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22073 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22074 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22075 g-soccon-linux-x86.ads: New files.
22077 * g-socthi-mingw.adb:
22078 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22080 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22081 (time_t, suseconds_t): New types constructed to match the tv_sec
22082 and tv_usec fields of C struct timeval.
22083 (Timeval): Construct structure in terms of the new types.
22084 (Host_Errno): New function (imported from socket.c), returns last hosts
22087 * g-socthi-vxworks.adb: Add error handling circuitry.
22089 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22090 components of struct timeval.
22091 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22092 (Check_Selector): In error conditions, clear internal socket sets to
22093 avoid a memory leak.
22094 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22095 Send_Timeout, Receive_Timeout.
22097 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22098 the tv_sec and tv_usec fields of C struct timeval.
22099 (Timeval): Construct structure in terms of the new types.
22100 (Host_Errno): New function (imported from socket.c), returns last hosts
22103 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22104 hosts database last error code.
22106 * gen-soccon.c: Complete value expansion should not be performed on
22107 TARGET, as it has the form of a math expression, and some components
22108 may be platform-defined macros.
22109 For VxWorks, generate the OK and ERROR values.
22110 New constants giving the sizes of the components of C struct timeval.
22112 2005-11-14 Robert Dewar <dewar@adacore.com>
22113 Ed Schonberg <schonberg@adacore.com>
22116 * types.ads: Include All_Checks in Suppress_Array
22118 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22119 not(a=b), since we no longer do this rewriting, and hence it is not
22121 (Elaboration_Checks_Suppressed): Add special casing to
22122 deal with different cases of static and dynamic elaboration checks (all
22123 checks does not count in the first case, but does in the second).
22124 (Expr_Known_Valid): Do not assume that the result of any arbitrary
22125 function call is valid, since this is not the case.
22126 (Ensure_Valid): Do not apply validity check to a real literal
22127 in a universal or fixed context
22129 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22130 elementary types using the operator in standard. It is cleaner not to
22131 modify the programmers intent, especially in the case of floating-point.
22132 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22133 it did not matter because we always rewrote a/=b to not(a=b).
22134 (Expand_Allocator_Expression): For an allocator expression whose nominal
22135 subtype is an unconstrained packed type, convert the expression to its
22136 actual constrained subtype.
22137 Implement warning for <= or >= where < or > not possible
22138 Fix to Vax_Float tests (too early in many routines, causing premature
22139 Vax_Float expansions.
22141 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22142 to be used with packages and generic packages as well as with
22144 (Suppress): Set All_Checks, but not Elaboration_Check, for case
22145 of pragma Suppress (All_Checks)
22146 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22147 a string literal for precise control over warnings.
22148 Avoid raise of pragma in case of unrecognized pragma and just return
22151 * sem_prag.ads: Minor reformatting
22153 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22154 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22155 Switch. Do not handle any exception.
22156 Include -gnatwx as part of -gnatg (warn on redundant parens)
22157 Allow optional = after -gnatm
22158 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22159 longer sets Elaboration_Checks.
22160 Code to set warning mode moved to Sem_Warn
22161 so that it can be shared by pragma processing.
22163 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22166 * s-taprop-solaris.adb:
22167 Change some <= to =, to avoid new warning
22169 * a-exexda.adb, prj-proc.adb:
22170 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22171 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22173 2005-11-14 Robert Dewar <dewar@adacore.com>
22175 * exp_vfpt.adb: Handle /= case
22176 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22177 so that we do not get duplicate scaling for fixed point conversions.
22179 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22181 2005-11-14 Matthew Gingell <gingell@adacore.com>
22183 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22184 Increase default priority on Lynx from 15 to 17, and meet the Ada
22185 requirement that Default_Priority be ((Priority'First +
22186 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22188 2005-11-14 Vincent Celier <celier@adacore.com>
22190 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22191 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22192 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22193 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22194 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22195 mlib-tgt-lynxos.adb (DLL_Prefix): New function
22197 2005-11-14 Doug Rupp <rupp@adacore.com>
22199 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22202 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22204 * s-traces-default.adb, s-trafor-default.ads,
22205 s-tratas-default.adb: Fix compilation errors.
22207 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22209 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22210 raising the exception so the memory used is freed.
22212 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22214 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22215 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22216 (convert_address): Update comments and list of platforms using this.
22218 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22221 2005-11-14 Pascal Obry <obry@adacore.com>
22222 Vincent Celier <celier@adacore.com>
22224 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22227 * memroot.adb: Remove redundant with/use clause on
22228 System.Storage_Elements.
22230 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22232 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22233 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22234 related code to a-exexpr.adb
22235 (Save_Occurrence_And_Private): Move GCC EH related code to
22237 (Raise_Current_Excep): Add new variable Id with pragma
22238 volatile, to ensure that the variable lives on stack.
22240 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22242 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22244 Move GCC EH related code to a-exexpr-gcc.adb
22246 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22248 Split the Linux version of g-soccon into separate variants for 32 and 64
22250 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22251 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22252 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22253 of host variable $(RANLIB_FLAGS).
22254 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22255 Code clean up: remove unused/obsolete targets.
22256 (EH_MECHANISM): New variable introduced to differenciate between the
22257 two EH mechanisms statically.
22258 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22259 (LIBGNAT_OBJS): Add raise-gcc.o
22260 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22261 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22262 supports VxWorks 6 RTPs.
22263 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22264 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22266 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22268 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22270 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22271 deferral level, when abort is not allowed, to a later stage (the
22273 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22274 it will not get changed by the generated code. It was previously done
22277 2005-11-14 Thomas Quinot <quinot@adacore.com>
22278 Olivier Hainque <hainque@adacore.com>
22279 Eric Botcazou <ebotcazou@adacore.com>
22282 Factor common code to build a storage type for an unconstrained object
22283 from a fat or thin pointer type and a constrained object type.
22284 (annotate_value): Handle BIT_AND_EXPR.
22285 (annotate_rep): Don't restrict the back annotation of inherited
22286 components to the type_annotate_only case.
22287 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22288 we are not defining the type.
22289 <E_Record_Type>: Likewise.
22290 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22291 to get advantage of the new maybe_stabilize_reference interface, to
22292 ensure that what we reference is indeed stabilized instead of relying
22293 on assumptions on what the stabilizer does.
22294 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22295 type imported through a limited_with clause, use its non-limited view.
22296 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22298 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22299 of #if sections + explicit comparisons of convention identifiers.
22300 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22301 before early-returning for certain types when code generation is
22303 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22304 nullification of gnu_expr we do for objects with address clause and
22305 that we are not defining.
22306 (elaborate_expression_1): Do not create constants when creating
22307 variables needed by the debug info: the dwarf2 writer considers that
22308 CONST_DECLs is used only to represent enumeration constants, and emits
22310 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22311 object with an address clause into an indirect reference, drop the
22312 initializing expression.
22314 (STACK_CHECK_BUILTIN): Delete.
22315 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22316 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22317 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22318 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22319 corresponding to the renamed object as ignored for debugging purposes.
22321 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22322 related): For a prefix that is a dereference of a fat or thin pointer,
22323 if there is an actual subtype provided by the front-end, use that
22324 subtype to build an actual type with bounds template.
22325 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22326 is provided by the front-end, use that subtype to compute the size of
22327 the deallocated object.
22328 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22329 check for a potential violation of a No_Elaboration_Code restriction.
22330 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22331 with extra arguments to control whether to recurse through non-values
22332 and to let the caller know if the stabilization has succeeded.
22333 (gnat_stabilize_reference): Now a simple wrapper around
22334 maybe_stabilize, for common uses without restriction on lvalues and
22335 without need to check for the success indication.
22336 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22337 pass false instead of 0 as the FORCE argument which is a bool.
22338 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22339 attached to a renaming pointer has been properly stabilized, as no such
22340 object is attached otherwise.
22341 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22342 function uses the "target pointer" return mechanism.
22343 Reinstate conversion of the actual to the type of the formal
22344 parameter before any other specific treatment based on the passing
22345 mechanism. This turns out to be necessary in order for PLACEHOLDER
22346 substitution to work properly when the latter type is unconstrained.
22348 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22350 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22351 with extra arguments to control whether to recurse through non-values
22352 and to let the caller know if the stabilization has succeeded.
22354 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22355 static output of record constructor if all the components are constant.
22356 (gnat_build_constructor): For a record type, sort the list of field
22357 initializers in increasing bit position order.
22358 Factor common code to build a storage type for an unconstrained object
22359 from a fat or thin pointer type and a constrained object type.
22360 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22361 types variants, and process special cases of VIEW_CONVERT expressions
22362 as their NOP_EXPR counterpart to ensure we get to the
22363 CORRESPONDING_VARs associated with CONST_DECls.
22364 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22365 on the right-hand side.
22367 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22369 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22370 are converting back to its original type.
22371 (convert) <JM input>: Fallthrough regular conversion code instead of
22372 extracting the object if converting to a type variant.
22373 (create_var_decl): When a variable has an initializer requiring code
22374 generation and we are at the top level, check for a potential violation
22375 of a No_Elaboration_Code restriction.
22376 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22377 SIZE and SIZE_UNIT which we need for later back-annotations.
22378 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22379 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22380 is an unchecked union.
22381 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22382 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22383 main variant, just replace the VIEW_CONVERT_EXPR.
22384 <UNION_TYPE>: Revert 2005-03-02 change.
22386 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22388 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22390 2005-11-14 Matthew Heaney <heaney@adacore.com>
22392 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22393 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22394 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22395 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22396 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22397 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22398 Compiles against the spec for ordered maps described in sections
22399 A.18.6 of the most recent (August 2005) AI-302 draft.
22401 2005-11-14 Olivier Hainque <hainque@adacore.com>
22403 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22404 to ensure bias adjustments take place when need be and to prevent
22405 occurrences of intermediate overflows.
22407 2005-11-14 Matthew Gingell <gingell@adacore.com>
22408 Olivier Hainque <hainque@adacore.com>
22410 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22413 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22414 tracebacks on ia64 HP-UX and provide explanatory comment.
22415 Enable backtraces on ia64 GNU/Linux.
22416 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22417 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22419 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22420 Javier Miranda <miranda@adacore.com>
22422 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22423 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22424 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22425 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22427 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22428 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22431 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22432 subprogram that generates the external name associated with a
22433 secondary dispatch table.
22434 (Get_Secondary_DT_External_Name): New subprogram that generates the
22435 external name associated with a secondary dispatch table.
22437 2005-11-14 Emmanuel Briot <briot@adacore.com>
22439 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22440 line in the ALI file to include both an instantiation reference, and a
22443 2005-11-14 Vincent Celier <celier@adacore.com>
22445 * clean.adb (Check_Project): Look for Ada code in extending project,
22446 even if Ada is not specified as a language.
22447 Use new function DLL_Prefix for DLL_Name
22448 (Clean_Interface_Copy_Directory): New procedure
22449 (Clean_Library_Directory): New procedure
22450 (Clean_Directory): Remove procedure, no longer used
22451 (Clean_Project): Do not delete any file in an externally built project
22453 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22454 directory of an extending project, even when there are no Ada source
22456 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22457 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22459 * mlib-prj.adb (Check_Library): For all library projects, get the
22460 library file timestamp.
22461 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22462 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22463 (Clean): Remove procedure, no longer used
22464 (Ultimate_Extension_Of): New function
22465 (Build_Library): When cleaning the library directory, only remove an
22466 existing library file and any ALI file of a source of the project.
22467 When cleaning the interface copy directory, remove any source that
22468 could be a source of the project.
22470 * prj.ads, prj.adb (Project_Empty): Add values of new components
22471 Library_TS and All_Imported_Projects.
22472 (Project_Empty): Add values for new components of Project_Data:
22473 Library_ALI_Dir and Display_Library_ALI_Dir
22475 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22477 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22478 attribute Library_ALI_Dir.
22479 (Check_Library_Attributes): The library directory cannot be the same as
22480 any source directory of the project tree.
22481 (Check_Stand_Alone_Library): The interface copy directory cannot be
22482 the same as any source directory of the project tree.
22484 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22485 all temporary files.
22487 2005-11-14 Robert Dewar <dewar@adacore.com>
22488 Ed Schonberg <schonberg@adacore.com>
22490 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22491 (Check_Elab_Call): A call within a protected body is never an
22492 elaboration call, and does not require checking.
22493 (Same_Elaboration_Scope): Take into account protected types for both
22495 (Activate_Elaborate_All_Desirable): New procedure
22497 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22500 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22501 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22503 * lib-writ.ads, lib-writ.adb:
22504 Implement new AD/ED for Elaborate_All/Elaborate desirable
22505 Use new Elaborate_All_Desirable flag in N_With_Clause node
22507 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22508 N_Free_Statement nodes.
22509 Define new class N_Subprogram_Instantiation
22510 Add Elaborate_Desirable flag to N_With_Clause node
22511 Add N_Delay_Statement (covering two kinds of delay)
22513 * debug.adb: Introduce d.f flag for compiler
22514 Add -da switch for binder
22516 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22517 Cyrille Comar <comar@adacore.com>
22519 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22520 for task component, in the case of a limited aggregate. The enclosed
22521 object declaration will create it earlier. Otherwise, in the case of a
22522 nested aggregate, the object may appear in the wrong scope.
22523 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22524 (Gen_Assign): If the component being assigned is an array type and the
22525 expression is itself an aggregate, wrap the assignment in a block to
22526 force finalization actions on the temporary created for each row of the
22528 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22529 structures are initialized after all discriminants are set so that
22530 they can be accessed even when their offset is dynamic.
22532 2005-11-14 Robert Dewar <dewar@adacore.com>
22533 Hristian Kirtchev <kirtchev@adacore.com>
22535 * sem_attr.adb: Implement Machine_Rounding attribute
22536 (Analyze_Access_Attribute): The access attribute may appear within an
22537 aggregate that has been expanded into a loop.
22538 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22539 'Terminated whenever the prefix is of a task interface class-wide type.
22540 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22541 the prefix is of a task interface class-wide type.
22543 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22546 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22547 Remove pragma Inline for [Unaligned_]Valid.
22548 Add comments that Valid routines do not work for Vax_Float
22550 * exp_attr.adb: Implement Machine_Rounding attribute
22552 * snames.h: Add entry for Machine_Rounding attribute
22554 2005-11-14 Javier Miranda <miranda@adacore.com>
22555 Robert Dewar <dewar@adacore.com>
22556 Hristian Kirtchev <kirtchev@adacore.com>
22558 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22559 and related): For a prefix that is an explicit dereference of an
22560 access to unconstrained packed array type, annotate the dereference
22561 with an actual subtype so GIGI can make a correct size computation.
22562 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22563 'Unrestricted_Access, if the designated type is an interface we
22564 add a type conversion to force the displacement of the pointer
22565 to the secondary dispatch table.
22566 Use Universal_Real instead of Long_Long_Float when we need a high
22567 precision float type for the generated code (prevents gratuitous
22568 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22569 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22570 'Terminated for task interface class-wide objects. Generate a call to
22571 the predefined dispatching routine used to retrieve the _task_id from
22572 a task corresponding record.
22573 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22575 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22576 (Check_Dispatching_Operation): Protect the frontend againts
22577 previously detected errors.
22579 * Makefile.rtl: Add new instantiations of system.fat_gen
22581 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22582 Change name of instantiated package for better consistency
22583 with newly added system.fat_gen instantiations.
22585 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22586 s-fvagfl.ads: New files.
22588 2005-11-14 Cyrille Comar <comar@adacore.com>
22589 Thomas Quinot <quinot@adacore.com>
22591 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22592 assignment of a value of a tagged type that has been rewritten to a
22593 block statement, it is known by construction that no checks are
22594 necessary for the statements within the block: analyze it with checks
22596 (Expand_N_If_Statement): When killing a dead then-branch in an
22597 if-statement that has elsif_parts, recompute the Current_Value node
22598 for any entity whose value is known from the condition of the first
22600 (Expand_N_Return_Statement): When returning a mutable record, convert
22601 the return value into its actual subtype in order to help the backend
22602 to return the actual size instead of the maximum. This is another
22603 aftermath of not returning mutable records on the sec-stack anymore.
22605 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22606 handling of error msg for suspicious reverse range iteration.
22607 (Check_Possible_Current_Value_Condition): Move declaration from body to
22608 spec, to allow this subprogram to be called from exp_ch5.
22610 2005-11-14 Thomas Quinot <quinot@adacore.com>
22612 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22613 generate a set of nested array aggregates instead of a single flat
22614 aggregate for multi-dimensional arrays.
22616 2005-11-14 Pascal Obry <obry@adacore.com>
22618 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22619 by spawnve is a process handle, no need to convert. Add a parameter
22620 close to control wether the process handle must be closed.
22621 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22622 a process handle, not need to convert.
22623 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22625 * g-expect.adb: (Kill): Document the new close parameter.
22626 (Close): Do not release the process handle in the kill there as
22627 waitpid() is using it.
22628 (Send_Signal): Release the process handle.
22630 2005-11-14 Robert Dewar <dewar@adacore.com>
22632 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22633 need a high precision float type for the generated code (prevents
22634 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22637 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22638 need a high precision float type for the generated code (prevents
22639 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22641 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22642 allowed on non-static enumeration subtypes. Force a load error to emit
22643 the correct diagnostic.
22645 2005-11-14 Thomas Quinot <quinot@adacore.com>
22646 Robert Dewar <dewar@adacore.com>
22647 Ed Schonberg <schonberg@adacore.com>
22649 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22650 subtype to compute the size of the designated object at run-time,
22651 create such a subtype and store it in the Actual_Designated_Subtype
22652 attribute of the N_Free_Statement.
22653 Generate itype for classwide designated object in both cases of
22654 user-specified storage pool: specific and class-wide, not only in the
22656 Raise CE when trying to set a not null access type object to null.
22657 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22658 an explicit loop, because freeze nodes make its position variable.
22660 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22663 2005-11-14 Javier Miranda <miranda@adacore.com>
22665 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22666 Build_Stream_Procedure): Add the null-excluding attribute to the first
22668 This has no semantic meaning under Ada95 mode but it is a
22669 requirement under Ada05 mode.
22671 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22672 the null exclusion is used under Ada95 mode
22673 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22674 (P_Access_Definition): Remove assertion that forbids the use of
22675 the null-exclusion feature in Ada95.
22677 2005-11-14 Robert Dewar <dewar@adacore.com>
22679 * impunit.adb: Exclude container helper units not intended for use by
22682 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22684 * freeze.adb (Freeze_Entity): For an access formal that is an access
22685 to subprogram, freeze the anonymous subprogram type at the same time,
22686 to prevent later freezing in the wrong scope, such as the enclosing
22688 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22689 subprogram whenever available.
22691 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22694 * gnatvsn.ads (Library_Version): Bump to 4.1
22696 2005-11-14 Robert Dewar <dewar@adacore.com>
22698 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22699 Storage_Offset to avoid wrap around causing invalid results.
22701 2005-11-14 Pascal Obry <obry@adacore.com>
22703 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22705 (Scan_Bind_Arg): Fail with an error message if -M option is used
22706 on a native compiler.
22708 2005-11-14 Robert Dewar <dewar@adacore.com>
22709 Vincent Celier <celier@adacore.com>
22711 * gprep.adb: Implement -C switch to scan comments
22713 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22715 * scans.ads: Comment updates (including new use of Tok_Comment in
22718 * opt.ads: Add documentation for flags that are used by gprmake,
22719 currently and in the next version of gprmake.
22720 (Verbosity_Level): New variable
22721 Add Replace_In_Comments switch
22723 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22725 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22727 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22729 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22730 message, friendlier.
22732 2005-11-14 Robert Dewar <dewar@adacore.com>
22734 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22736 2005-11-14 Doug Rupp <rupp@adacore.com>
22738 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22740 2005-11-14 Robert Dewar <dewar@adacore.com>
22742 * interfac.ads: Change declarations of IEEE float types so that we no
22743 longer need a separate version of this package for VMS.
22745 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22747 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22748 internal entity created for the declaration of a child subprogram body
22749 with no spec as coming from source, to generate proper cross-reference
22752 2005-11-14 Vincent Celier <celier@adacore.com>
22754 * make.adb (Compile_Sources): Change verbose message to minimum
22755 verbosity level High for "is in an Ada library", "is a read-only
22756 library" and "is an internal library",
22757 (Create_Binder_Mapping_File): Path name of ALI file for library project
22758 must include the library directory, not the object directory.
22759 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22760 for new switches -vl, -vm and -vh.
22761 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22762 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22763 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22764 in a project that is externally built.
22765 (Compute_All_Imported_Projects): New procedure
22766 (Gnatmake): Check if importing libraries should be regenerated because
22767 at least an imported library is more recent.
22768 (Initialize): For each project compute the list of the projects it
22769 imports directly or indirectly.
22770 (Add_Library_Search_Dir): New procedure, used in place of
22771 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22772 put in the search paths.
22773 (Add_Source_Search_Dir): New procedure, used in place of
22774 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22775 put in the search paths.
22776 (Mark_Directory): Resolve the absolute path the directory before marking
22779 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22780 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22781 Switch. Do not handle any exception.
22782 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22783 so that the switch is recognized as valid.
22784 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22786 2005-11-14 GNAT Script <nobody@adacore.com>
22788 * Make-lang.in: Makefile automatically updated
22790 2005-11-14 Pascal Obry <obry@adacore.com>
22792 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22794 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22795 In both cases the last argument was dropped.
22797 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22799 * namet.h: (Column_Numbe): New type.
22800 (Get_Column_Number): Define to sinput__get_column_number.
22801 (Instantiation): Define to sinput__instantiation.
22802 (Get_Column_Number): Declare.
22803 (Instantiation): Likewise.
22805 2005-11-14 Robert Dewar <dewar@adacore.com>
22807 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22808 syntax, which could cause compiler hangs.
22810 2005-11-14 Vincent Celier <celier@adacore.com>
22812 * prj-ext.adb: Take into account new environment variable
22813 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22815 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22816 normalize its path name, making it absolute and resolving symbolic
22817 links, and replace the original if resolved path is different.
22819 2005-11-14 Vincent Celier <celier@adacore.com>
22821 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22822 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22824 2005-11-14 Emmanuel Briot <briot@adacore.com>
22826 * prj-pp.adb (Print): Do not output the with statement if the
22827 associated name is empty, which happens for virtual extending projects.
22828 (Print): Preserve the "extends all" attribute when printing the project.
22830 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22831 a virtual extending project.
22833 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22835 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22836 rhs of an assignment even if the type is unconstrained, when the
22837 context is non-expanding.
22838 In an inlined body, if the context type is private,
22839 resolve with its full view, which must be a composite type.
22841 2005-11-14 Robert Dewar <dewar@adacore.com>
22842 Ed Schonberg <schonberg@adacore.com>
22844 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22845 Do not give obsolescent warning on with of subprogram (since we
22847 (Analyze_With_Clause): Add test for obsolescent package
22848 (Install_Context_Clauses): If the unit is the body of a child unit, do
22849 not install twice the private declarations of the parents, to prevent
22850 circular lists of Use_Clauses in a parent.
22851 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22852 compiling body of child unit.
22853 Use new class N_Subprogram_Instantiation
22854 (Expand_With_Clause): If this is a private with_clause for a child unit,
22855 appearing in the context of a package declaration, then the implicit
22856 with_clauses generated for parent units are private as well.
22857 (License_Check): Do not generate message if with'ed unit is internal
22859 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22860 Ed Schonberg <schonberg@adacore.com>
22861 Thomas Quinot <quinot@adacore.com>
22863 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22864 names are internal, because they will not have a corresponding partner
22865 in the actual package.
22866 (Analyze_Formal_Package): Move the setting of the formal package spec's
22867 Generic_Parent field so that it occurs prior to analyzing the package,
22868 to allow proper operation of Install_Parent_Private_Declarations.
22869 (Analyze_Package_Instantiation): Set the instantiated package entity's
22870 Package_Instantiation field.
22871 (Get_Package_Instantiation_Node): Move declaration to package spec.
22872 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22874 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22875 instantiation is Unchecked_Conversion, for which no parents are needed.
22876 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22877 parent scopes of a scope being removed prior to inlining an instance
22879 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22880 the current context is itself an instance within a non-instance child
22881 unit, to prevent scope stack errors.
22882 (Save_References): If the node is an aggregate that is an actual in a
22883 call, rewrite as a qualified expression to preserve some type
22884 information, to resolve possible ambiguities in the instance.
22885 (Instance_Parent_Unit): New global variable to record the ultimate
22886 parent unit associated with a generic child unit instance (associated
22887 with the existing Parent_Unit_Visible flag).
22888 (type Instance_Env): New component Instance_Parent_Unit for stacking
22889 parents recorded in the global Instance_Parent_Unit.
22890 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22892 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22893 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22894 not already set. Replace test of Is_Child_Unit with test of parent's
22895 scope against package Standard. Add comments and a ??? comment.
22896 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22897 on a child instance parent to test that the parent equals
22898 Instance_Parent rather than simply checking that the unit is not a
22900 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22901 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22902 a formal interface are ancestors of the corresponding actual.
22903 (Validate_Formal_Interface_Type): Additional legality checks.
22904 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22905 interface types with ancestors.
22906 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22907 to diagnose attempts to use generic within its own declaration.
22909 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22910 Javier Miranda <miranda@adacore.com>
22912 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22914 (Build_Private_Derived_Type): The entity of the created full view of the
22915 derived type does not come from source. If after installing the private
22916 declarations of the parent scope the parent is still private, use its
22917 full view to construct the full declaration of the derived type.
22918 (Build_Derived_Record_Type): Relax the condition that controls the
22919 execution of the check that verifies that the partial view and
22920 the full view agree in the set of implemented interfaces. In
22921 addition, this test now only takes into account the progenitors.
22922 (Derive_Interface_Subprograms): No need to derive subprograms
22923 of ancestors that are interfaces.
22924 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22926 Change name Is_Package to Is_Package_Or_Generic_Package
22927 (Complete_Subprograms_Derivation): Handle the case in which the full
22928 view is a transitive derivation of the ancestor of the partial view.
22929 (Process_Full_View): Rename local subprogram Find_Interface_In_
22930 Descendant to Find_Ancestor_Interface to leave the code more clear.
22931 Remove wrong code that avoids the generation of an error message
22932 when the immediate ancestor of the partial view is an interface.
22933 In addition some minor reorganization of the code has been done to
22934 leave it more clear.
22935 (Analyze_Type_Declaration): If type has previous incomplete tagged
22936 partial view, inherit properly its primitive operations.
22937 (Collect_Interfaces): Make public, for analysis of formal
22939 (Analyze_Interface_Declaration): New procedure for use for regular and
22940 formal interface declarations.
22941 (Build_Derived_Record_Type): Add support for private types to the code
22942 that checks if a tagged type implements abstract interfaces.
22943 (Check_Aliased_Component_Type): The test applies in the spec of an
22945 (Access_Type_Declaration): Clean up declaration of malformed type
22946 declared as an access to its own classwide type, to prevent cascaded
22948 (Collect_Interfaces): For private extensions and for derived task types
22949 and derived protected types, the parent may be an interface that must
22950 be included in the interface list.
22951 (Access_Definition): If the designated type is an interface that may
22952 contain tasks, create Master_Id for it before analyzing the expression
22953 of the declaration, which may be an allocator.
22954 (Record_Type_Declaration): Set properly the interface kind, for use
22955 in allocators, the creation of master id's for task interfaces, etc.
22957 2005-11-14 Javier Miranda <miranda@adacore.com>
22958 Ed Schonberg <schonberg@adacore.com>
22960 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22961 omitted in case of stream attribute subprograms.
22962 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22963 appear immediately after a subprogram body, when there is no previous
22964 subprogram declaration.
22965 Change name Is_Package to Is_Package_Or_Generic_Package
22966 (Process_Formals): A non null qualifier on a non null named access
22967 type is not an error, and is a warning only if Redundant_Constructs
22970 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22971 Ed Schonberg <schonberg@adacore.com>
22973 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22974 nested within Analyze_Package_Specification to install the private
22975 declarations and use clauses within each of the parent units of a
22976 package instance of a generic child package.
22977 (Analyze_Package_Specification): When entering a private part of a
22978 package associated with a generic instance or formal package, the
22979 private declarations of the parent must be installed (by calling new
22980 procedure Install_Parent_Private_Declarations).
22981 Change name Is_Package to Is_Package_Or_Generic_Package
22982 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22983 record is absent in a generic context, which does not indicate a
22986 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22988 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22989 not try to rewrite a renamed stream attribute, because the operations
22990 on the type may not have been generated.
22991 Handle properly a renaming_as_body generated for a stream operation
22992 whose default is abstract because the object type itself is abstract.
22993 (Find_Type): If the type is incomplete and appears as the prefix of a
22994 'Class reference, it is tagged, and its list of primitive operations
22995 must be initialized properly.
22996 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22997 private declaration of a parent unit, prior to compiling the private
22998 part of a child unit, find on the scope stack the proper parent entity
22999 on which to link the use clause.
23000 (Note_Redundant_Use): Emit a warning when a redundant use clause is
23002 (Analyze_Object_Renaming): An attribute reference is not a legal object
23003 if it is not a function call.
23005 2005-11-14 Robert Dewar <dewar@adacore.com>
23006 Ed Schonberg <schonberg@adacore.com>
23008 * sem_eval.adb: Implement d.f flag
23009 (Subtype_Statically_Match): A generic actual type has unknown
23010 discriminants when the corresponding actual has a similar partial view.
23011 If the routine is called to validate the signature of an inherited
23012 operation in a child instance, the generic actual matches the full view,
23014 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23015 Ed Schonberg <schonberg@adacore.com>
23016 Robert Dewar <dewar@adacore.com>
23017 Thomas Quinot <quinot@adacore.com>
23019 * sem_res.adb (Resolve_Call): Provide a better error message whenever
23020 a procedure call is used as a select statement trigger and is not an
23021 entry renaming or a primitive of a limited interface.
23022 (Valid_Conversion): If the operand has a single interpretation do not
23023 remove address operations.
23024 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
23025 statement to inhibit warning.
23026 (Resolve_Unary_Op): Do not produce a warning when
23027 processing an expression of the form -(A mod B)
23028 Use Universal_Real instead of Long_Long_Float when we need a high
23029 precision float type for the generated code (prevents gratuitous
23030 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23031 (Resolve_Concatenation_Arg): Improve error message when argument is an
23032 ambiguous call to a function that returns an array.
23033 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
23034 there is an implicit operator in the given scope if we are within an
23035 instance: legality check has been performed on the generic.
23036 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
23037 after resolving operand, to avoid false warnings on overloaded calls.
23039 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23040 Javier Miranda <miranda@adacore.com>
23043 * sem_type.adb (Covers): In an inlined body, a composite type matches
23044 a private type whose full view is a composite type.
23045 (Interface_Present_In_Ancestor): Protect the frontend against
23046 previously detected errors to ensure that its compilation
23047 with assertions enabled gives the same output that its
23048 compilation without assertions.
23049 (Interface_Present_In_Ancestor): Add support for private types.
23050 Change name In_Actual to In_Generic_Actual (clean up)
23051 (Disambiguate): New predicate In_Actual, to recognize expressions that
23052 appear in the renaming declaration generated for generic actuals, and
23053 which must be resolved in the outer context.
23055 2005-11-14 Robert Dewar <dewar@adacore.com>
23056 Thomas Quinot <quinot@adacore.com>
23057 Hristian Kirtchev <kirtchev@adacore.com>
23058 Ed Schonberg <schonberg@adacore.com>
23060 * sem_util.ads, sem_util.adb: Change name Is_Package to
23061 Is_Package_Or_Generic_Package.
23062 (Check_Obsolescent): New procedure.
23063 (Set_Is_Public): Remove obsolete junk test.
23064 (Set_Public_Status): Do not set Is_Public on an object whose declaration
23065 occurs within a handled_sequence_of_statemets.
23066 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23067 for a parameterless procedure.
23068 (Enter_Name): Recognize renaming declarations created for private
23069 component of a protected type within protected operations, so that
23070 the source name of the component can be used in the debugger.
23072 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23073 Robert Dewar <dewar@adacore.com>
23075 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23076 of a generic subprogram are not visible outside the body.
23077 (Set_Warning_Switch): New procedure (code to set warning mode moved
23078 here from Switch.C so that it can be shared by pragma processing.
23079 (Check_References): Special case warning for non-modified non-imported
23081 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23082 form with a string literal argument
23084 2005-11-14 Javier Miranda <miranda@adacore.com>
23086 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23088 (Write): Addition of "not null" to the anonymous access.
23089 (Read): Addition of "not null" to the anonymous access.
23090 (Write): Addition of "not null" to the anonymous access.
23092 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23093 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23094 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23095 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23096 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23097 "not null" to the anonymous access.
23099 2005-11-14 Robert Dewar <dewar@adacore.com>
23101 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23104 2005-11-14 Vincent Celier <celier@adacore.com>
23106 * switch.adb (Bad_Switch): New procedure
23107 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23108 message when in error.
23110 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23111 Too_Many_Output_Files): Remove declarations, no longer used.
23112 (Scan_Nat): New parameter Switch
23114 (Bad_Switch): New procedure
23116 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23117 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23118 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23119 to Osint.Fail. Do not handle any exception.
23121 2005-11-14 Vincent Celier <celier@adacore.com>
23123 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23124 designates a non existent directory.
23126 2005-11-14 Robert Dewar <dewar@adacore.com>
23128 * xgnatugn.adb: Replace invalid membership test by 'Valid
23130 2005-11-14 Vincent Celier <celier@adacore.com>
23132 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23133 there is no object directory.
23135 2005-11-14 Robert Dewar <dewar@adacore.com>
23137 * usage.adb: Minor adjustment to output format, use nn instead of nnn
23138 (so that -gnateInnn does not run into next column)
23140 2005-11-14 Ed Falis <falis@adacore.com>
23142 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23145 2005-11-14 Cyrille Comar <comar@adacore.com>
23147 * s-chepoo.ads: Add comments on Dereference.
23148 Remove unnecessary inherited abstract primitives.
23151 2005-11-14 Robert Dewar <dewar@adacore.com>
23153 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23154 node parameter, not needed, since it is available as Declaration_Node.
23156 2005-11-14 Geert Bosch <bosch@adacore.com>
23158 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23159 grammatically correct.
23161 2005-11-14 Vincent Celier <celier@adacore.com>
23163 * s-fileio.ads: Correct spelling error in comment
23165 2005-11-14 Cyrille Comar <comar@adacore.com>
23166 Robert Dewar <dewar@adacore.com>
23167 Vincent Celier <celier@adacore.com>
23168 Ben Brosgol <brosgol@adacore.com>
23169 Jose Ruiz <ruiz@adacore.com>
23170 Pascal Obry <obry@adacore.com>
23173 Document that -fstack-check is needed for strict compliance with the
23174 Ada 95 Reference Manual.
23175 Correct reference to VAX systems to meet HP guidelines
23176 Add documentation for new gnatmake switches -vl, -vm and -vh
23177 Replace DEC Ada by HP Ada
23178 Replace DIGITAL by HP
23179 Remove empty section on tools in compatibility section
23180 Clarify the Windows convention semantics.
23181 Document the Win32 calling convention.
23182 The Stdcall, Win32 and DLL convention are synonyms.
23183 Add a note in -gnatR description about zero size record components
23184 Note on new >= and <= warnings for -gnatwc
23185 Document that equal sign after -gnatm is optional.
23186 Note that strip is working fine on DLL built with a Library
23187 Project. The restriction apply only to DLL built with gnatdll.
23188 Update section about the way to debug a DLL.
23189 Update information about the DLL convention.
23190 Document -C switch for gnatprep
23191 Document new attribute Library_ALI_Dir
23192 Update elaboration doc to include implicit Elaborate pragmas now
23193 generated for subprogram instantiations.
23194 Document limitation on executable names that include spaces for --GCC,
23195 --GNATBIND, and --GNATLINK switches.
23196 Document that -w causes -gnatws to be added at start of gcc switches
23198 * gnat_rm.texi: Document that -mieee is needed for generating infinite
23199 and NaN values in case of overflow on machines that are not fully
23200 compliant with the IEEE floating-point standard.
23201 Create a section describing the set of compiler options needed for
23202 strict compliance with the Ada 95 Reference Manual.
23203 Add documentation for pragma Obsolescent applied to a package
23204 Clarify potential issues of mixed language programs related to the
23205 I/O buffering enabling in the elaboration of the GNAT runtime.
23206 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23207 This documentation only patch adds extra documentsion for pragma
23208 Restrictions (No_Elaboration_Code), explaining why it is not possible
23209 to document this restriction in terms of allowed source constructs.
23210 Document string literal form of pragma Warnings
23211 Document new attribute Library_ALI_Dir
23212 Add documentation on stable attributes in project files that was missing
23214 * gnat-style.texi: Indicate that paragraphs within a single comment
23215 should be separated by empty comment lines
23217 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23220 * bindusg.adb: Minor cleanup, put -m before -M for consistency
23222 2005-11-14 Robert Dewar <dewar@adacore.com>
23224 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23225 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23226 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23227 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23228 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23229 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23230 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23231 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23232 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23233 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23234 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23235 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23236 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23237 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23238 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23239 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23240 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23241 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23242 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23243 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23244 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23245 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23246 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23247 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23248 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23249 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23250 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23251 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23252 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23253 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23254 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23255 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23256 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23257 system-interix.ads, system-solaris-sparc.ads,
23258 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23259 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23260 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23261 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23262 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23263 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23264 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23265 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23266 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23267 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23268 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23269 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23270 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23271 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23272 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23273 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23274 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23275 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23276 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23277 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23278 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23279 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23280 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23281 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23282 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23283 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23284 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23285 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23286 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23287 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23288 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23289 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23290 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23291 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23292 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23293 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23294 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23295 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23296 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23297 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23298 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23299 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23300 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23301 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23302 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23303 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23304 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23305 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23306 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23307 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23308 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23309 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23310 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23311 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23312 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23313 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23314 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23315 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23316 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23317 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23318 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23319 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23320 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23321 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23322 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23323 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23324 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23325 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23326 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23327 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23328 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23329 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23330 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23331 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23332 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23333 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23334 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23335 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23336 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23337 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23338 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23339 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23340 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23341 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23342 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23343 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23344 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23345 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23346 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23347 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23348 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23349 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23350 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23351 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23352 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23353 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23354 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23355 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23356 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23357 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23358 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23359 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23360 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23361 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23362 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23363 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23364 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23365 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23366 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23367 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23368 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23369 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23370 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23371 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23372 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23373 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23374 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23375 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23376 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23377 a-numaux-darwin.ads, a-numaux-darwin.adb,
23378 a-swuwha.ads, a-stunha.ads: Minor reformatting
23380 2005-11-14 Robert Dewar <dewar@adacore.com>
23383 * osint-m.adb: Add pragma Elaborate_All for Osint
23385 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23388 * trans.c (call_to_gnu): Restore statement lost in translation.
23390 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23392 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23393 (__gnat_adjust_context_for_raise): Add conditional code so that the
23394 IA-64 is also supported.
23396 2005-11-03 James E Wilson <wilson@specifix.com>
23399 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23400 TREE_OVERFLOW check.
23402 2005-09-21 Olivier Hainque <hainque@adacore.com>
23405 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23406 as we create them to store a size in bits.
23408 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23416 * utils2.c (build_return_expr): New helper function.
23417 * gigi.h (build_return_expr): Declare it.
23418 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23419 of manually building the RETURN_EXPR tree.
23420 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23421 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23422 build_binary_op for the "target pointer" case. Use build_return_expr
23423 instead of manually building the RETURN_EXPR tree.
23425 2005-09-16 Laurent Guerby <laurent@guerby.net>
23428 * s-tpinop.ads: Make this unit Preelaborate.
23430 2005-09-16 Andreas Jaeger <aj@suse.de>
23432 * socket.c: Add string.h for memcpy.
23434 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23436 * dec-io.ads, dec-io.adb: Removed, no longer used.
23438 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23440 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23442 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23443 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23444 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23445 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23446 dependent units are Preelaborate.
23447 (Initialize): Call Interrupt_Managemeent.Initialize and
23448 OS_Primitives.Initialize to ensure proper initialization of this unit.
23449 Remove use of System.Soft_Links
23450 Make this unit Preelaborate.
23452 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23453 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23454 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23455 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23456 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23457 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23458 Add pragma Preelaborate, since these packages are suitable for this
23462 * s-traent-vms.ads, s-intman-dummy.adb,
23463 s-taprop-dummy.adb: Make this unit Preelaborate.
23465 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23466 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23467 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23468 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23469 s-intman-solaris.adb, s-intman-irix-athread.adb,
23470 s-intman-irix.adb: Mark this unit Preelaborate.
23471 (Initialize): New procedure.
23474 * s-taspri-linux.ads: Removed.
23476 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23477 as done by other implementations (e.g. posix).
23479 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23480 responsible for deferring abort.
23481 Mark this unit Preelaborate.
23483 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23484 proper initialization of the tasking run-time.
23486 * s-tasdeb.ads: Mark this unit Preelaborate.
23487 (Known_Tasks): Add explicit default value to avoid elaboration code.
23489 * s-inmaop-vms.adb (Elaboration code): Add call to
23490 Interrupt_Management.Initialize since the elaboration code depends on
23491 proper initialization of this package.
23493 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23494 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23495 s-osprim-posix.adb: Make this unit Preelaborate.
23497 * a-calend.adb: Add call to OS_Primitives.Initialize
23499 * a-elchha.adb: Update use of Except.Id.Full_Name.
23500 Minor reformatting.
23501 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23503 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23504 Move with clauses outside Warnings Off now that dependent units are
23506 Use raise xxx with "..."; Ada 2005 form.
23508 * a-taside.ads, a-taside.adb:
23509 Remove some dependencies, to make it easier to make this unit truly
23511 Rewrite some code to be conformant with Preelaborate rules.
23513 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23514 marked Preelaborate in the future.
23516 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23517 these units Preelaborate.
23519 * s-exctab.adb: Update use of Except.Id.Full_Name.
23521 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23522 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23523 Set_Exc_Stack_Addr): Removed, no longer used.
23524 Remove reference to *Machine_State_Addr*, no longer needed.
23526 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23527 (Exception_Data): Full_Name is now a System.Address so that this unit
23528 can be made Preelaborate.
23529 Clean up/simplify code thanks to Full_Name being a System.Address.
23530 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23532 * s-taskin.ads, s-taskin.adb:
23533 Move with clauses outside Warnings Off now that dependent units are
23535 Make this unit Preelaborate.
23536 (Initialize): New proceduure, replace elaboration code and makes the
23537 set up of the tasking run-time cleaner.
23538 (Detect_Blocking): Now a function instead of a deferred boolean, to
23539 obey Preelaborate rules.
23541 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23542 soft links, no longer used.
23544 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23545 packages are suitable for this categorization.
23547 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23548 since we compile run-time sources in Ada 2005 mode.
23549 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23550 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23552 Remove reference to *Machine_State_Addr*, no longer needed.
23554 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23556 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23557 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23558 Remove reference to System.Exceptions.
23560 * s-mastop-x86.adb: Removed, no longer used.
23562 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23564 * a-excach.adb: Minor reformatting.
23566 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23567 instead fix new warnings that were hidden by this change.
23568 (AAA, ZZZ): Removed, replaced by...
23569 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23570 are used instead of constants, to help make Ada.Exception truly
23572 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23573 Raise_Storage_Error): File is now a System.Address, to simplify code.
23574 (Elab code): Removed, no longer used.
23575 (Null_Occurrence): Remove Warnings Off and make this construct
23577 Remove code related to front-end zero cost exception handling, since
23578 it is no longer used.
23579 Remove -gnatL/-gnatZ switches.
23581 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23582 Update use of Except.Msg.
23584 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23585 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23586 to front-end zero cost exception handling, since it is no longer used.
23587 Remove -gnatL/-gnatZ switches.
23589 * lib-writ.ads: Minor reformatting
23592 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23594 * Make-lang.in: Remove references to s-except.ads
23596 * s-except.ads: Removed, no longer used.
23598 * s-mastop.ads, s-mastop.adb:
23599 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23600 Remove reference to System.Exceptions.
23602 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23603 switch-b.adb: Remove code related to front-end zero cost exception
23604 handling, since it is no longer used.
23605 Remove -gnatL/-gnatZ switches.
23607 2005-09-01 Robert Dewar <dewar@adacore.com>
23608 Gary Dismukes <dismukes@adacore.com>
23609 Javier Miranda <miranda@adacore.com>
23611 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23612 type by valid test and generate warning.
23613 (Tagged_Membership): Generate call to the run-time
23614 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23615 Change formal name Subtype_Mark to Result_Definition in several calls to
23616 Make_Function_Specification.
23617 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23618 check for proper accessibility of the operand of a class-wide allocator.
23619 The check can be left out if checks are suppressed or if the expression
23620 has a specific tagged type whose level is known to be safe.
23622 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23623 generates the run-time check associated with null-excluding entities.
23624 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23625 check on the level of the return expression of a class-wide function
23626 can be elided. The check usually isn't needed if the expression has a
23627 specific type (unless it's a conversion or a formal parameter). Also
23628 add a test for whether accessibility checks are suppressed. Augment
23629 the comments to describe the conditions for performing the check.
23631 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23632 Javier Miranda <miranda@adacore.com>
23633 Gary Dismukes <dismukes@adacore.com>
23634 Ed Schonberg <schonberg@adacore.com>
23636 * a-tags.adb (IW_Membership): Give support to
23637 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23638 subprogram has been extended to look for the tag in the ancestors tag
23640 Update the structure of the GNAT Dispatch Table to reflect the
23641 additional two tables used in dispatching selects.
23642 Introduce appropriate array types and record components in
23643 Type_Specific_Data to reflect the two tables.
23644 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23645 the TSD of a tag, indexed by position.
23646 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23647 operation kind in the TSD of a tag, indexed by position.
23649 * a-tags.ads: Introduce an enumeration type to capture different
23650 primitive operation kinds. Define a constant reflecting the number of
23651 predefined primitive operations.
23652 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23653 of an entry wrapper.
23654 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23655 callable entity of a primitive operation.
23657 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23658 primitive operations used in dispatching selects for limited
23659 interfaces, limited tagged, task and protected types what implement a
23661 (Freeze_Type): Generate the bodies of the primitive operations used in
23662 dispatching selects for limited tagged, task and protected types that
23663 implement a limited interface. Generate statements to populate the two
23664 auxiliary tables used for dispatching in select statements.
23665 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23666 associated with predefined interface primitive operations.
23667 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23668 Set_Result_Definition.
23669 (Build_Variant_Record_Equality): Change Subtype_Mark to
23671 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23672 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23673 (Build_Assignment): Simplify the code that adds the run-time-check.
23674 (Expand_N_Object_Declaration): Code cleanup.
23676 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23677 entries when there is a protected type that implements a limited
23680 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23681 common routines used in expansion of dispatching selects.
23682 (Add_Private_Declarations): Select the appropriate protection type when
23683 there is a protected type that implements a limited interface.
23684 (Build_Parameter_Block): Generate a wrapped parameter block.
23685 (Build_Protected_Subprogram_Body): Select the appropriate type for
23686 locking entries when there is a protected type that implements a
23688 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23689 classified as entry wrappers.
23690 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23691 asynchronous selects.
23692 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23693 dispatching conditional selects.
23694 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23695 protection when there is a protected type that implements limited
23697 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23699 (Extract_Dispatching_Call): Extract the entity of the name of a
23700 dispatching call, the object parameter, actual parameters and
23701 corresponding formals.
23702 (Make_Initialize_Protection): Correct logic of protection initialization
23703 when there is a protected type that implements a limited interface.
23704 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23705 values of actual parameters.
23706 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23707 block and assign them to the original actual parameters.
23709 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23710 (Build_Protected_Sub_Specification): Change the type and name of the
23711 last formal to account for the increased variety of protection modes.
23713 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23714 entities. Used to save the value of the Is_Hidden attribute when the
23715 limited-view is installed.
23716 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23717 the attribute of procedures classified as entry wrappers.
23718 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23719 entity of a primitive wrapper.
23720 (Write_Entity_Flags): Output the name and value of the
23721 Is_Primitive_Wrapper attribute.
23722 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23724 (Underlying_Type): If we have an incomplete entity that comes from
23725 the limited view then we return the Underlying_Type of its non-limited
23726 view if it is already available.
23727 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23728 including operators.
23729 (Write_Field26_Name): Add entry for Overridden_Operation
23730 (Overridden_Operation): New attribute of functions and procedures.
23732 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23733 predefined position in the dispatch table for the primitive operations
23734 used in dispatching selects.
23735 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23736 predefined primitive operations and replace it with
23737 Default_Prim_Op_Count.
23738 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23739 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23740 the names of the generated primitive operations used in dispatching
23742 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23743 case of abstract interface types. They will be inherit by the objects
23744 implementing the interface.
23745 (Make_DT): There is no need to inherit the dispatch table of the
23746 ancestor interface for the elaboration of abstract interface types.
23747 The dispatch table will be inherited by the object implementing the
23749 (Copy_Secondary_DTs): Add documentation.
23750 (Validate_Position): Improve this static check in case of
23751 aliased subprograms because aliased subprograms must have
23753 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23754 the entries associated with predefined primitives of all the secondary
23756 (Build_Anonymous_Access_Type): Removed.
23757 (Expand_Interface_Actuals): With the previous cleanup there is no need
23758 to build an anonymous access type. This allows further cleanup in the
23759 code generated by the expander.
23760 (Expand_Interface_Conversion): If the actual is an access type then
23761 build an internal function to handle the displacement. If the actual
23762 is null this function returns null because no displacement is
23763 required; otherwise performs a type conversion that will be
23764 expanded in the code that returns the value of the displaced actual.
23765 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23766 conversions that have no effect in the generated code because no
23767 displacement is required. Code cleanup; use local variables to
23768 avoid repeated calls to the subprogram directly_designated_type().
23770 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23771 Classify the primitive operations used in dispatching selects as
23773 (Implements_Limited_Interface): Determine whether some type either
23774 directly implements a limited interface or extends a type that
23775 implements a limited interface.
23776 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23777 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23778 expression is limited.
23779 (Find_Interface_Tag): Add code to handle class-wide types and
23780 entities from the limited-view.
23782 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23783 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23784 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23785 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23788 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23789 of procedure name or prefix that appears as a trigger in a triggering
23792 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23794 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23796 * s-tataat.adb, a-tasatt.adb:
23797 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23799 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23800 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23801 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23804 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23805 Jose Ruiz <ruiz@adacore.com>
23807 * s-taprop-vxworks.adb:
23808 Move with clauses outside Warnings Off now that dependent units are
23810 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23811 initialization of this unit.
23812 (Specific): Add new procedures Initialize and Delete so that this
23813 package can be used for VxWorks 5.x and 6.x
23814 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23815 differences between VxWorks 5.x and 6.x
23816 Minor reformatting.
23817 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23819 Use only Preelaborate-compatible constructs.
23821 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23822 Primitives.Operations.
23823 (Delete, Initialize): New procedures.
23825 * s-osinte-vxworks.adb: Body used to handle differences between
23826 VxWorks 5.x and 6.x
23827 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23829 * s-osinte-vxworks.ads: Minor reformatting.
23830 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23831 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23833 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23834 between Vxworks 5 and 6.
23835 (taskLock, taskUnlock): Removeed, no longer used.
23837 * adaint.c: The wait.h header is not located in the sys directory on
23838 VxWorks when using RTPs.
23839 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23841 (__gnat_dup): dup is available on Vxworks when using RTPs.
23842 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23844 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23846 * expect.c: The wait.h header is not located in the sys directory on
23847 VxWorks when using RTPs.
23849 2005-09-01 Thomas Quinot <quinot@adacore.com>
23851 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23853 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23855 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23856 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23857 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23858 g-soccon-freebsd.ads: Add new constants:
23860 SO_RCVTIMEO/SO_SNDTIMEO
23864 Move all target-specific file inclusions and macro definitions to
23865 gsocket.h, in order to ensure that any C code in socket.c will see a
23866 set of constants that is consistent with the contents of g-soccon.ads.
23868 * gsocket.h: Code imported from gen-soccon.c:
23869 Move all target-specific file inclusions and macro definitions to
23870 gsocket.h, in order to ensure that any C code in socket.c will see a set
23871 of constants that is consistent with the contents of g-soccon.ads.
23872 This change also makes gen-soccon self-contained (removing dependencies
23873 upon GCC internal headers).
23875 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23877 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23879 * socket.c: Minor reformatting.
23881 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23882 Thomas Quinot <quinot@adacore.com>
23884 * fname-sf.adb, mlib-tgt.ads,
23885 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23886 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23887 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23888 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23889 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23890 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23891 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23892 makegpr.adb: Remove redundant use_clauses.
23894 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23896 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23897 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23898 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23899 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23900 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23901 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23902 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23903 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23904 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23905 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23906 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23907 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23908 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23909 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23910 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23911 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23912 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23913 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23914 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23915 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23916 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23917 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23918 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23919 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23920 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23921 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23922 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23923 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23924 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23925 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23926 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23927 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23928 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23929 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23930 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23931 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23932 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23933 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23934 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23935 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23936 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23937 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23938 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23939 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23940 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23941 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23942 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23943 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23944 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23945 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23946 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23947 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23948 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23949 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23950 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23951 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23952 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23953 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23954 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23955 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23956 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23957 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23958 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23959 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23960 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23961 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23962 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23963 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23964 and always use the no parameter form for consistency.
23966 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23968 2005-09-01 Robert Dewar <dewar@adacore.com>
23970 * binde.adb: Minor reformatting
23971 (Find_Elab_Order): Output warning if -p used with static elab order
23973 2005-09-01 Robert Dewar <dewar@adacore.com>
23975 * checks.adb (Check_Needed): New procedure, deals with removing checks
23976 based on analysis of short-circuited forms. Also generates warnings for
23977 improper use of non-short-circuited forms.
23980 2005-09-01 Robert Dewar <dewar@adacore.com>
23982 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23985 2005-09-01 Robert Dewar <dewar@adacore.com>
23987 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23989 Implement new insertion char < (conditional warning)
23990 * errutil.adb, erroutc.adb: Implement new insertion char <
23991 (conditional warning).
23992 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23993 (Error_Msg_Warn): New variable for < insertion char.
23994 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23996 (Check_For_Source): Change value of Source_Id only after the current
23997 source has been dealt with.
23999 2005-09-01 Robert Dewar <dewar@adacore.com>
24000 Doug Rupp <rupp@adacore.com>
24002 * exp_attr.adb: Handle vax fpt for 'Valid attribute
24003 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
24004 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
24005 (Valid_D, Valid_F, Valid_G): New functions
24007 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24008 Hristian Kirtchev <kirtchev@adacore.com>
24009 Javier Miranda <miranda@adacore.com>
24011 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
24012 from object notation, the original node is unanalyzed and carries no
24013 semantic information, so that accessiblity checks must be performed on
24014 the type of the actual itself.
24015 (Expand_N_Subprogram_Declaration): Change last actual parameter for
24016 compatibility with Build_Protected_Sub_Specification.
24017 (Check_Overriding_Inherited_Interfaces): Add suport to handle
24018 overloaded primitives.
24019 (Register_Interface_DT_Entry): Use the new name of the formal
24020 the the calls to Expand_Interface_Thunk
24022 * exp_dbug.ads: Augment comments on encoding of protected types to
24023 include the generation of dispatching subprograms when the type
24024 implements at least one interface.
24026 * lib.ads: Extend information in Load_Stack to include whether a given
24027 load comes from a Limited_With_Clause.
24029 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
24030 whether a potential circularity is harmless, because it includes units
24031 loaded through a limited_with clause. Extends previous treatment which
24032 did not handle properly arbitrary combinations of limited and
24033 non-limited clauses.
24035 2005-09-01 Nicolas Setton <setton@adacore.com>
24037 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
24038 to be encoded as typ___XBLU_lowerbound__upperbound instead of
24039 typ___XB_lowerbound__upperbound.
24041 2005-09-01 Thomas Quinot <quinot@adacore.com>
24043 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
24044 dummy access formal for RACW/RAS TypeCode TSS.
24045 (Build_TypeCode_Call): Do not generate dummy null access actual for
24046 calls to the TypeCode TSS.
24048 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24050 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24051 fully qualified name, to distinguish instances with the same local name.
24053 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24056 2005-09-01 Robert Dewar <dewar@adacore.com>
24058 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24061 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
24063 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24064 (Free): New deallocation procedure for filter elements
24065 (Close): Deallocate any existing filter for the concerned connection
24067 2005-09-01 Laurent Pautet <pautet@adacore.com>
24069 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24070 position set is provided, we compute one in order to reduce the maximum
24071 length of the keys. This computation first selects a character
24072 position between 1 and the minimum length of the keys in order to
24073 avoid reducing one of the keys to an empty string.
24074 (Initialize, Compute): When the ratio V to K is too low, the algorithm
24075 does not converge. The initialization procedure now comes with a
24076 maximum number of iterations such that when exceeded, an exception is
24077 raised in Compute. The user can initialize this ratio to another value
24079 Reformating and updated headers.
24081 2005-09-01 Javier Miranda <miranda@adacore.com>
24083 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24084 that given an entity T creates and returns an Itype that duplicates the
24085 contents of T. The returned Itype has the null-exclusion
24086 attribute set to True, and its Etype attribute references T
24087 to keep the association between the two entities.
24088 Update copyright notice
24090 * sem_aggr.adb (Check_Can_Never_Be_Null,
24091 Aggregate_Constraint_Checks, Resolve_Aggregate,
24092 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24094 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24096 2005-09-01 Gary Dismukes <dismukes@adacore.com>
24097 Robert Dewar <dewar@adacore.com>
24098 Hristian Kirtchev <kirtchev@adacore.com>
24100 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24103 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24105 Call Set_Result_Definition instead of Set_Subtype_Mark.
24106 (P_Subprogram_Specification): Add parsing of anonymous access result
24107 plus null exclusions. Call Set_Result_Definition instead of
24110 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24111 (P_Access_Type_Definition): Add parsing for an anonymous access result
24112 subtype, plus parsing for null exclusions. Call Set_Result_Definition
24113 instead of Set_Subtype_Mark.
24115 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24116 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24117 (Result_Definition): New function for N_Function_Specifications.
24118 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24119 N_Function_Specification.
24120 (Set_Null_Exclusion_Present): Allow this flag for
24121 N_Function_Specification.
24122 (Set_Result_Definition): New procedure for N_Function_Specifications.
24123 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24124 and N_Function_Specification.
24126 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24127 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24128 Add support for LIMITED NEW for Ada 2005 AI-419
24129 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24130 syntax for anonymous access results.
24131 Replace Subtype_Mark field by Result_Definition in
24132 N_Function_Specification and N_Access_Definition specs.
24133 Add Null_Exclusion_Present to spec of N_Function_Specification.
24134 (Result_Definition): New function for N_Function_Specification and
24135 N_Access_Function_Definition.
24136 (Set_Result_Definition): New procedure for N_Function_Specification and
24137 N_Access_Function_Definition.
24139 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24140 Result_Definition for cases of N_Access_Function_Definition and
24141 N_Function_Specification.
24142 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24144 2005-09-01 Vincent Celier <celier@adacore.com>
24146 * lib-writ.adb: Update Copyright notice
24147 (Write_With_Lines): On platforms where file names are case-insensitive,
24148 record the file names in lower case.
24149 (Write_ALI): For D lines, on platforms where file names are
24150 case-insensitive, record the file names in lower case.
24152 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24153 Emmanuel Briot <briot@adacore.com>
24155 * lib-xref.adb (Output_Overridden_Op): Display information on
24156 overridden operation.
24158 * lib-xref.ads: Add documentation on overridden operations.
24160 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24163 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24164 overriding entity information.
24166 2005-09-01 Vincent Celier <celier@adacore.com>
24168 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24169 including those that are inherited.
24171 2005-09-01 Robert Dewar <dewar@adacore.com>
24173 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24175 * par-prag.adb: Implement new pragma Debug_Policy
24177 * sem_prag.adb Implement new pragma Debug_Policy
24178 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24179 Component_Size attribute specification. Give warning for ignored pragma
24182 * snames.h, snames.ads, snames.adb: Introduce entries in
24183 Preset_Names for Name_Disp_Asynchronous_Select,
24184 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24185 Name_Disp_Timed_Select.
24186 New pragma Debug_Policy
24188 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24190 Switch -gnata also sets Debug_Pragmas_Enabled
24192 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24193 handle an explicit -gnata when compiling predefined files.
24195 2005-09-01 Vincent Celier <celier@adacore.com>
24197 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24198 directories of projects that have no Ada sources.
24200 2005-09-01 Robert Dewar <dewar@adacore.com>
24202 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24203 (makes a difference for wide characters)
24205 * widechar.adb, widechar.ads:
24206 Add Wide_Char_Byte_Count feature to count chars vs bytes
24208 2005-09-01 Thomas Quinot <quinot@adacore.com>
24209 Ed Schonberg <schonberg@adacore.com>
24210 Robert Dewar <dewar@adacore.com>
24212 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24213 'Address attribute reference with an overloaded prefix, use the
24214 location of the prefix (not the location of the attribute reference) as
24215 the error location.
24216 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24217 a function renaming thereof, is a valid prefix for 'Size (where it is
24218 intepreted as a function call).
24219 (Statically_Denotes_Entity): New predicate to determine whether the
24220 prefix of an array attribute can be considered static.
24223 (Eval_Attr): Fix failure to evaluate Component_Size for
24224 unconstrained arrays (resulted in wrong value in packed case, since
24225 back end cannot handle this case)
24227 2005-09-01 Robert Dewar <dewar@adacore.com>
24229 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24230 error msgs for most common cases.
24231 Use new errout insertion char < (conditional warning)
24233 2005-09-01 Javier Miranda <miranda@adacore.com>
24234 Ed Schonberg <schonberg@adacore.com>
24236 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24237 become local to the whole package.
24238 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24239 the package was already analyzed the new algorithm "replaces" the
24240 real entities by the shadow ones. This is required to ensure that
24241 the order of these entities in the homonym chains does not change;
24242 otherwise we can have undefined references at linking time because
24243 in case of conflicts the external name of the entities will have
24244 a suffix that depends on the order of the entities in the chain.
24245 (Remove_Limited_With_Clause): Complementary code that completes the
24246 new algorithm and replaces the shadow entities by the real ones.
24247 (Install_Limited_Withed_Unit): When unchaining entities before the
24248 installation of the shadow entities, only regular entities of the
24249 public part must be taken into account. This is required to
24250 keep this routine in synch with the work done by Remove_Limited_
24252 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24253 even if unit is analyzed, because the analysis of the unit is
24254 idempotent in any case, and the limited view of the unit may have to
24255 be installed for proper visibility.
24256 (Expand_Limited_With_Clause): Even if the unit in the implicit
24257 with_clause has been analyzed already, a limited view of the package
24258 must be built for the current context, if it does not exist yet.
24260 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24261 Javier Miranda <miranda@adacore.com>
24262 Gary Dismukes <dismukes@adacore.com>
24264 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24265 defining entity for the instance body, make a new defining identifier
24266 rather than copying the entity of the spec, to prevent accidental
24267 sharing of the entity list.
24268 (Check_Private_View): When exchanging views of private types, build the
24269 list of exchanged views as a stack, to ensure that on exit the exchanges
24270 are undone in the proper order.
24271 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24272 Restore the compilation environment in case of instantiation_error.
24273 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24274 for an anonymous access result.
24275 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24276 (Formal_Entity): Handle properly the case of a formal package that
24277 denotes a generic package renaming.
24279 2005-09-01 Thomas Quinot <quinot@adacore.com>
24281 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24282 clause if the array aggregate is surrounded by parentheses.
24284 2005-09-01 Cyrille Comar <comar@adacore.com>
24285 Gary Dismukes <dismukes@adacore.com>
24286 Ed Schonberg <schonberg@adacore.com>
24287 Javier Miranda <miranda@adacore.com>
24289 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24291 to check if a type is Constrained in cases related to code generation
24292 (rather than semantic checking) since otherwise we do not generate
24293 similar code for mutable private types depending if their
24294 discriminants are visible or not.
24295 (Check_Abstract_Overriding): Do not complain about failure to override
24296 the primitive operations used in dispatching selects since they will
24297 always be overriden at the freeze point of the type.
24298 (Access_Definition): Separate out handling for resetting the scope
24299 of an anonymous access function result type. Retrieve the scope
24300 of the associated function rather than using Current_Scope, which
24301 does not have a consistent value (depends on whether we're in the
24302 middle of analyzing formal parameters). Add ??? comment about
24303 finding a cleaner way to handle the special cases of scope setting.
24304 (Process_Incomplete_Dependents): A protected operation is never a
24305 dispatching operation (only its wrapper may be).
24306 (Build_Derived_Record_Type): In case of tagged private types that
24307 implement interfaces add derivation of predefined primitive
24309 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24310 by two parameters that are used in case of derivation from abstract
24311 interface types: No_Predefined_Prims is used to avoid the derivation
24312 of predefined primitives from the interface, and Predefined
24313 Prims_Only is used to complete the derivation predefined primitives
24314 in case of private tagged types implementing interfaces.
24315 Fix typo in comments
24316 (Find_Interface_In_Descendant): Protect the frontend against
24317 wrong code with large circularity chains.
24318 (Is_Private_Overriding): Add support for entities overriding interface
24319 subprograms. The test failed because Entities associated with overriden
24320 interface subprograms are always marked as hidden (and used to build
24321 the secondary dispatch table); in this case the overriden entity is
24322 available through the field abstract_interface_alias (cf. override_
24323 dispatching_operation)
24324 (Access_Definition): Set the scope of the type to Current_Scope for the
24325 case of a function with an anonymous access result type.
24326 (Access_Subprogram_Declaration): Handle creation of the type entity for
24327 an access-to-function type with an anonymous access result.
24328 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24329 in handling for N_Access_Function_Definition.
24330 (Analyze_Subtype_Declaration): Modify the text of error message.
24331 (Derived_Type_Declaration): Modify the text of error message.
24332 (Process_Subtype): Modify the text of error message plus cleanup
24333 of one redundant error message.
24334 (Analyze_Component_Declaration): Code cleanup.
24335 (Analyze_Object_Declaration): Code cleanup.
24336 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24337 attribute in case of access types. Code cleanup.
24338 (Array_Type_Declaration): Code cleanup.
24339 (Process_Discriminants): Create the new null-excluding itype
24340 if required. Code cleanup.
24341 (Process_Subtype): Create the new null-excluding itype if
24342 required. Code cleanup.
24343 (Build_Derived_Record_Type): Code cleanup to avoid calling
24344 twice the subprogram derive_subprograms in case of private
24345 types that implement interfaces. In this particular case the
24346 subprogram Complete_Subprograms_Derivation already does the
24347 job associated with the second call.
24349 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24350 conversion to the full view when generating an operation for a
24351 discriminant whose type may currently be private.
24353 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24354 Javier Miranda <miranda@adacore.com>
24356 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24357 V (Obj.F), the rewriting does not involve the indexed component, but
24358 only the selected component itself.
24359 Do not apply the transformation if the analyzed node is an actual of a
24360 call to another subprogram.
24361 (Complete_Object_Operation): Retain the entity of the
24362 dispatching operation in the selector of the rewritten node. The
24363 entity will be used in the expansion of dispatching selects.
24364 (Analyze_One_Call): Improve location of the error message associated
24366 (Analyze_Selected_Component): No need to resolve prefix when it is a
24367 function call, resolution is done when parent node is resolved, as
24369 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24370 when attempting to resolve a call transformed from its object notation.
24371 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24372 of the argument list for each interpretation of the operation.
24373 (Try_Object_Operation): The designated type of an access parameter may
24374 be an incomplete type obtained through a limited_with clause, in which
24375 case the primitive operations of the type are retrieved from its full
24377 (Analyze_Call): If this is an indirect call, and the return type of the
24378 access_to_subprogram is incomplete, use its full view if available.
24380 2005-09-01 Javier Miranda <miranda@adacore.com>
24381 Gary Dismukes <dismukes@adacore.com>
24383 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24384 access types the null-exclusion and access-to-constant attributes must
24386 (Analyze_Return_Statement): When the result type is an anonymous access
24387 type, apply a conversion of the return expression to the access type
24388 to ensure that appropriate accessibility checks are performed.
24389 (Analyze_Return_Type): For the case of an anonymous access result type,
24390 generate the Itype and set Is_Local_Anonymous_Access on the type.
24391 Add ??? placeholder for check to disallow returning a limited object
24392 in Ada 2005 unless it's an aggregate or a result of a function call.
24393 Change calls from Subtype_Mark to Result_Definition.
24394 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24395 Result_Definition in call to Make_Function_Specification.
24396 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24397 Set_Result_Definition.
24398 (Make_Inequality_Operator): Change formal Subtype_Mark to
24399 Result_Definition in call to Make_Function_Specification.
24400 (Process_Formals): Create the new null-excluding itype if required.
24401 (New_Overloaded_Entity): For an entity overriding an interface primitive
24402 check if the entity also covers other abstract subprograms in the same
24403 scope. This is required to handle the general case, that is, overriding
24404 other interface primitives and overriding abstract subprograms inherited
24405 from some abstract ancestor type.
24406 (New_Overloaded_Entity): For an overriding entity that comes from
24407 source, note the operation that it overrides.
24408 (Check_Conformance, Type_Conformant): Addition of one new formal
24409 to skip controlling formals in the analysis. This is used to
24410 handle overloading of abstract interfaces.
24411 (Base_Types_Match): Add missing case for types imported from
24412 limited-with clauses
24413 (New_Overloaded_Entity): Add barrier to protect the use of
24414 the "alias" attribute.
24416 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24418 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24419 verify that the procedure and the entry are mode conformant.
24420 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24421 as a different operator, which is often a cut-and-paste error.
24423 2005-09-01 Javier Miranda <miranda@adacore.com>
24424 Ed Schonberg <schonberg@adacore.com>
24426 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24427 used in controlling parameters exclude null because it is necessary to
24428 read the tag to dispatch, and null has no tag.
24429 (Override_Dispatching_Operation): If the previous operation is inherited
24430 from an interface, it becomes hidden and does not participate in later
24433 2005-09-01 Javier Miranda <miranda@adacore.com>
24434 Ed Schonberg <schonberg@adacore.com>
24435 Gary Dismukes <dismukes@adacore.com>
24437 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24438 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24439 the expander will generate the corresponding run-time check to evaluate
24441 (Resolve_Call): Check for legal type of procedure name or prefix that
24442 appears as a trigger in a triggering alternative.
24443 (Valid_Conversion): If expression is ambiguous and the context involves
24444 an extension of System, remove System.Address interpretations.
24445 (Resolve_Qualified_Expression): Reject the case of a specific-type
24446 qualification applied to a class-wide argument. Enhance comment
24447 to explain checking of Original_Node.
24448 (Resolve_Type_Conversion): The location of the error message was not
24449 general enough to handle the general case and hence it has been removed.
24450 In addition, this patch improves the text of the message.
24451 (Resolve_Type_Conversion): Add missing support for access to interface
24453 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24454 do not expand if the expression is the actual in a call, because proper
24455 expansion will take place when the call itself is expanded.
24456 (Resolve_Allocator): If the context is an unchecked conversion, the
24457 allocator inherits its storage pool, if any, from the target type of
24460 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24461 Javier Miranda <miranda@adacore.com>
24463 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24464 inherited interface operation that has an implementation, use the
24465 implementation to avoid spurious ambiguities.
24466 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24467 use the Corresponding_Record_Typ attribute to look for the interface
24468 because it is set by the expander (and hence it is not always
24469 available). For this reason we traverse the list of interfaces
24470 (available in the parent of the concurrent type).
24471 (Interface_Present_In_Ancestor): Handle entities from the limited view
24473 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24475 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24476 from the list of required components.
24477 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24478 primitive procedure of a limited interface with a controlling first
24480 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24482 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24483 capture if it is generated in the second operand of a short-circuit
24485 Do not capture values for variables with address clauses.
24486 (Is_Object_Reference): Treat a function call as an object reference only
24487 if its type is not Standard_Void_Type.
24489 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24491 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24492 to a variable that is statically known to be constant.
24494 2005-09-01 Geert Bosch <bosch@adacore.com>
24495 Robert Dewar <dewar@adacore.com>
24497 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24498 (VAXGF_Safe_First): Idem.
24500 2005-09-01 Robert Dewar <dewar@adacore.com>
24501 Arnaud Charlet <charlet@adacore.com>
24503 * g-dirope.ads: Minor reformatting
24504 Document that bounds of result of Base_Name match the input index
24506 Add documentation on environment variable syntax for Expand_Path
24508 * gnat_ugn.texi: Update documentation to include mention of -m switches
24509 Document new treatment of wide characters in max line length
24511 Remove -gnatL/-gnatZ switches, no longer used.
24512 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24515 * gnat_rm.texi: Add doc for two argument form of pragma
24516 Float_Representation.
24517 Add documentation for pragma No_Strict_Aliasing
24518 Add note that explicit component clause overrides pragma Pack.
24519 Add documentation of pragma Debug_Policy
24521 2005-09-01 Matthew Heaney <heaney@adacore.com>
24523 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24524 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24525 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24526 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24527 draft (Draft 13, August 2005) of Ada Amendment 1.
24529 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24531 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24532 Note that the platform-specific version of g-soccon.ads for VMS is now
24533 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24534 really is a package spec).
24535 Replace s-taspri-linux.ads by s-taspri-posix.ads
24536 Remove references to s-mastop-x86.adb
24538 * system-vxworks-xscale.ads: Removed, no longer used.
24539 * s-vxwork-xscale.ads: Removed, no longer used.
24541 2005-09-01 Robert Dewar <dewar@adacore.com>
24543 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24544 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24545 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24546 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24547 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24548 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24549 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24550 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24551 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24552 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24553 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24554 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24555 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24556 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24557 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24558 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24559 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24560 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24561 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24562 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24563 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24565 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24569 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24571 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24572 Doug Rupp <rupp@adacore.com>
24574 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24576 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24577 this code in the GNAT run-time.
24579 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24582 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24583 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24585 (__gnat_inside_elab_final_code): Moved here from
24586 Standard_Library and only defined for the compiler.
24587 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24588 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24589 using RTPs because directly vectored Interrupt routines are not
24590 supported on this configuration.
24591 (getpid): Do not redefine this function on VxWorks when using RTPs
24592 because this primitive is well supported by the RTP libraries.
24593 (copy_msg): Correct the code that checks for buffer overflow.
24594 Discovered during code reading.
24596 2005-08-29 Olivier Hainque <hainque@adacore.com>
24598 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24599 a library level mutable variable with an initializer, tell
24600 build_allocator to ignore the initializer's size. It may not be large
24601 enough for all the values that might be assigned to the variable later
24604 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24605 Eric Botcazou <ebotcazou@adacore.com>
24607 * trans.c: Protect < in error msg with quote
24608 Replace GCC_ZCX by Back_End_Exceptions.
24609 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24610 has been sufficiently aligned in the record.
24612 2005-08-15 James E. Wilson <wilson@specifix.com>
24614 * system-linux-alpha.ads: Change ia64 to alpha.
24616 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24618 * decl.c, utils.c: Fix comment typos.
24620 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24622 * decl.c, init.c, initialize.c: Fix comment typos.
24624 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24626 Make CONSTRUCTOR use VEC to store initializers.
24627 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24629 * trans.c (extract_values): Likewise.
24630 * utils.c (convert, remove_conversions): Likewise.
24631 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24632 gnat_build_constructor): Likewise.
24634 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24636 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24638 (compare_field_bitpos): Likewise.
24640 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24642 * utils.c (create_var_decl): Only set DECL_COMMON on
24643 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24644 VAR_OR_FUNCTION_DECL_P.
24646 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24648 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24651 2005-07-07 Pascal Obry <obry@adacore.com>
24653 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24654 returned type on Windows.
24656 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24659 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24660 exception in this case.
24661 Simplify the code as "Image (Image'Range)" = "Image".
24663 2005-07-07 Vincent Celier <celier@adacore.com>
24665 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24666 the destructor/constructor attributes for <lib>final/<lib>init.
24668 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24670 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24672 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24673 type if the parameter is not passed by copy but reference by default.
24675 2005-07-07 Javier Miranda <miranda@adacore.com>
24677 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24678 Reimplementation of the support for abstract interface types in order
24679 to leave the code more clear and easy to maintain.
24681 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24682 abstract interface types in order to leave the code clearer and easier
24685 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24686 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24687 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24688 appropriate entry of the secondary dispatch table.
24689 (Make_DT): Add code to inherit the secondary dispatch tables of
24692 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24693 implementing both functionalities by means of a common routine, each
24694 routine has its own code.
24696 2005-07-07 Javier Miranda <miranda@adacore.com>
24698 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24700 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24703 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24706 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24707 use of tag incomplete types.
24709 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24710 give support to tagged incomplete types.
24712 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24713 expression is a discriminant reference and its type is private, as can
24714 happen within a stream operation for a mutable record, use the full
24715 view of the type to resolve the case alternatives.
24716 (Analyze_Assignment): Check wrong dereference of incomplete types.
24718 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24721 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24724 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24725 N_Incomplete_Type_Declaration nodes.
24727 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24728 Tag_Present to give support to tagged incomplete types:
24730 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24733 2005-07-07 Olivier Hainque <hainque@adacore.com>
24736 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24737 definitions for the Unwind wrappers in the compiler case.
24739 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24740 Javier Miranda <miranda@adacore.com>
24742 * par-load.adb (Load): If a child unit is loaded through a limited_with
24743 clause, each parent must be loaded as a limited unit as well.
24745 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24746 Check_Withed_Unit. Return true if there is a previous with_clause for
24747 this unit, whether limited or not.
24748 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24750 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24751 _withed_unit that checks if some package installed through normal with
24752 clauses has a renaming declaration of package whose limited-view is
24753 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24754 of the current Draft document for Ada 2005.
24755 (Analyze_Context): Complete the list of compilation units that
24756 are allowed to contain limited-with clauses. It also contains
24757 checks that were previously done by Install_Limited_Context_Clauses.
24758 This makes the code more clear and easy to maintain.
24759 (Expand_Limited_With_Clause) It is now a local subprogram of
24760 Install_Limited_Context_Clauses, and contains the code that adds
24761 the implicit limited-with clauses for parents of child units.
24762 This functionality was prevously done by Analyze_Context.
24764 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24767 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24768 been erroneously named in a limited-with clause of its own context.
24769 In this case the error has been previously notified by Analyze_Context.
24771 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24773 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24774 generic package that contains local declarations with the same name.
24775 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24777 2005-07-07 Bernard Banner <banner@adacore.com>
24779 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24780 ia64 platform only on platforms that you the GCC unwind library
24781 rather than the system unwind library.
24783 2005-07-07 Thomas Quinot <quinot@adacore.com>
24785 * expect.c: Minor reformatting
24787 2005-07-07 Sergey Rybin <rybin@adacore.com>
24789 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24792 * gnat_ugn.texi: Add description for new gnatpp option
24795 2005-07-04 Thomas Quinot <quinot@adacore.com>
24797 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24798 (Get_Command_Output): New subprogram to launch a process and get its
24799 standard output as a string.
24801 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24802 Olivier Hainque <hainque@adacore.com>
24804 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24805 fetch a code-range descriptor associated with the machine state. On
24806 failure set the machine state's PC to 0; on success, pass the
24807 descriptor to exc_virtual_unwind.
24809 * init.c (Tru64 section): New function __gnat_set_code_loc.
24811 2005-07-04 Vincent Celier <celier@adacore.com>
24813 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24814 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24815 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24816 Remove all auto-initialization code, as this is now done through the
24817 constructor mechanism.
24819 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24820 __gnat_sals_init_using_constructors): New functions.
24822 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24823 Linker_Constructor and Linker_Destructor when switch -a is used.
24825 * bindusg.adb: Add line for new switch -a
24827 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24828 (Gnatbind): When switch -a is used, check if it is allowed
24830 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24832 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24834 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24835 This prevents us from hitting a limitation during the debug info
24836 generation when using stabs.
24837 (Prims_Ptr): Likewise.
24839 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24840 Ed Schonberg <schonberg@adacore.com>
24841 Javier Miranda <miranda@adacore.com>
24843 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24844 N_Object_Declaration, only perform the checks if the Object_Definition
24845 is not an Access_Definition.
24847 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24848 where the parent of an the access definition is an N_Object_Declaration
24849 when determining the Associated_Node_For_Itype and scope of an
24850 anonymous access-to-subprogram type.
24852 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24853 Corresponding_Spec on the body created for a null procedure. Add ???
24854 comment. Remove New_Copy_Tree call on body argument to
24855 Set_Body_To_Inline.
24857 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24858 discriminants, use the type of the actual as well, because the
24859 discriminants may be read by the called subprogram.
24861 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24862 access type we do not need to handle non-limited views.
24863 (Build_Derived_Record_Type): Additional check to check that in case of
24864 private types, interfaces are only allowed in private extensions.
24866 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24868 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24869 <Pragma_Linker_Destructor>: Likewise.
24871 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24872 Pragma_Linker_Destructor.
24874 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24875 ATTR_LINK_DESTRUCTOR.
24876 (static_ctors, static_dtors): New variables.
24878 * misc.c (gnat_expand_body): Output current function as constructor
24879 and destructor if requested.
24881 * par-prag.adb: Add processing for pragma Linker_Constructor and
24884 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24885 extracted from Check_Interrupt_Or_Attach_Handler.
24886 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24887 Implement pragma Linker_Constructor and Linker_Destructor with the
24888 help of Find_Unique_Parameterless_Procedure.
24889 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24891 * snames.h, snames.ads, snames.adb:
24892 Add Name_Linker_Constructor and Name_Linker_Destructor.
24893 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24894 * snames.adb: Remove Name_Alias.
24896 * trans.c: Include cgraph.h.
24897 (build_global_cdtor): New function.
24898 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24900 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24902 (addressable_p) <COMPONENT_REF>: Unconditionally test
24903 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24905 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24906 variable if it is external.
24908 (static_ctors, static_dtors): New global variables.
24909 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24910 <ATTR_LINK_DESTRUCTOR>: Likewise.
24911 (end_subprog_body): Chain function as constructor and destructor
24914 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24915 Remove_Side_Effects with Variable_Ref set to true.
24916 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24917 for non-scalar types even if Variable_Ref is true and for class-wide
24920 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24922 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24923 to prevent spurious warnings.
24925 2005-07-04 Thomas Quinot <quinot@adacore.com>
24927 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24928 Itypes. Itypes are really unexpected there.
24929 (Build_TypeCode_Function): Generalise special processing for Itypes to
24930 handle the case of numeric implicit base types as well as enumerated
24933 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24935 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24936 controlled, indicate the expected type of the dereference that is
24937 created for the call to Deep_Finalize, to prevent spurious errors when
24938 the designated type is private and completed with a derivation from
24939 another private type.
24941 2005-07-04 Vincent Celier <celier@adacore.com>
24943 * make.adb (Change_To_Object_Directory): When unable to change the
24944 current dir to the object directory, output the full path of the
24947 2005-07-04 Matthew Gingell <gingell@adacore.com>
24949 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24951 * indepsw-linux.adb: Replace by...
24953 * indepsw-gnu.adb: ...this new file
24955 2005-07-04 Vincent Celier <celier@adacore.com>
24957 * mlib-prj.adb (Auto_Initialize): New constant String
24958 (SALs_Use_Constructors): New Boolean function
24959 (Build_Library): Call gnatbind with Auto_Initialize switch when
24960 SALs_Use_Constructors returns True.
24962 * mlib-tgt.ads: Minor reformatting
24964 * mlib-utl.ads: Minor reformatting
24966 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24968 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24970 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24971 single protected declarations can have an interface list.
24972 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24973 with seriously malformed entry declarations, and lead to compilation
24974 abandoned messages.
24976 2005-07-04 Javier Miranda <miranda@adacore.com>
24978 * par-load.adb: Load the context items in two rounds.
24980 2005-07-04 Robert Dewar <dewar@adacore.com>
24982 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24984 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24985 Javier Miranda <miranda@adacore.com>
24987 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24988 type extension needs a limited view.
24989 Remove previous restriction on private types available through the
24990 limited-view (only tagged private types were previously allowed).
24991 (Install_Withed_Unit): In the code that implements the
24992 legality rule given in AI-377, exclude a child unit with the name
24993 Standard, because it is a homonym of the Standard environment package.
24995 2005-07-04 Thomas Quinot <quinot@adacore.com>
24997 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24998 overloaded function call, carry interpretations from the original tree
25001 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25003 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
25004 types check whether some designated type is a limited view, and use
25005 the non-limited view if available.
25007 2005-07-04 Gary Dismukes <dismukes@adacore.com>
25009 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
25010 constraint of full view of a private view T1 if present, when T2 is a
25011 discriminated full view.
25013 2005-07-04 Thomas Quinot <quinot@adacore.com>
25015 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
25016 actual that is a view conversion of a bit packed array reference.
25018 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25020 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
25021 present before checking whether an interface type covers a synchronized
25024 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25026 * sem_util.adb (Is_Object_Reference): An indexed or selected component
25027 whose prefix is an implicit dereference is an object reference. Removes
25028 spurious errors when compiling with -gnatc.
25030 2005-07-04 Robert Dewar <dewar@adacore.com>
25033 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
25035 2005-07-04 Matthew Gingell <gingell@adacore.com>
25037 * tracebak.c: Enable tracebacks on ia64 platforms
25039 2005-07-04 Vincent Celier <celier@adacore.com>
25041 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
25042 the GNAT BIND command, as gnatbind accepts multiples ALI files with
25043 the -L or -n switches.
25045 2005-07-04 Vincent Celier <celier@adacore.com>
25047 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
25048 correctly computed and the main project data is not modified while
25050 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25051 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25052 c++linker as this does not work on some platforms.
25054 2005-07-04 Matthew Heaney <heaney@adacore.com>
25056 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25058 * a-coinve.adb: Perform constraint checks explicitly.
25060 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25061 Thomas Quinot <quinot@adacore.com>
25063 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25064 new target gen-soccon.
25066 2005-07-04 Robert Dewar <dewar@adacore.com>
25068 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25070 2005-07-04 Thomas Quinot <quinot@adacore.com>
25072 * g-socket.ads (Check_Selector): Minor rewording of comment.
25074 2005-07-04 Vincent Celier <celier@adacore.com>
25076 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25078 2005-07-04 Thomas Quinot <quinot@adacore.com>
25080 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25082 2005-07-04 Sergey Rybin <rybin@adacore.com>
25084 * gnat_ugn.texi: Add description of --eol gnatpp option
25086 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25087 Thomas Quinot <quinot@adacore.com>
25089 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25090 if the user wants all calls of a subprogram to be flagged,
25091 independently of whether they are made from within the same unit or
25093 Mention restriction for pragma Linker_Alias on some platforms.
25094 Document pragma Linker_Constructor and Linker_Destructor.
25095 Rewrite documentation of Weak_External, Linker_Section and
25096 Linker_Alias pragmas.
25098 2005-07-04 Arnaud Charlet <charlet@adacore.com>
25100 * s-stausa.ads, s-stausa.adb: New files.
25102 2005-06-30 Kelley Cook
25104 * all files: Update FSF address in copyright headers.
25105 * gen-soccon.co (main): Output new FSF address in generated files.
25107 2005-06-28 Paul Brook <paul@codesourcery.com>
25109 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25111 2005-06-14 Olivier Hainque <hainque@adacore.com>
25112 Eric Botcazou <ebotcazou@adacore.com>
25114 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25115 exc_unwind, now that we are generating proper .debug_frame output for
25118 * tracebak.c: Remove the mips-irix section, as we are now using the
25119 s-mastop based unwinder again.
25120 Under SPARC/Solaris, take into account the stack bias to compute the
25121 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
25124 2005-06-14 Doug Rupp <rupp@adacore.com>
25126 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25128 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25130 2005-06-14 Pascal Obry <obry@adacore.com>
25132 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25133 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25134 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25137 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25138 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25139 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25140 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25141 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25142 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25143 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25144 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25145 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25146 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25147 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25148 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25149 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25150 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25151 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25152 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25153 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25154 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25155 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25156 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25157 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25158 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25159 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25160 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25161 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25162 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25163 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25164 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25165 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25166 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25167 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25168 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25169 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25170 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25171 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25172 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25173 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25174 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25175 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25176 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25177 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25178 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25179 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25180 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25181 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25182 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25183 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25184 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25185 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25186 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25187 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25188 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25189 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25190 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25191 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25192 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25193 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25194 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25195 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25196 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25197 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25198 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25199 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25200 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25201 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25202 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25203 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25204 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25205 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25206 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25207 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25208 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25209 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25210 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25211 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25212 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25213 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25214 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25215 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25216 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25217 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25218 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25219 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25220 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25221 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25222 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25223 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25224 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25225 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25226 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25227 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25228 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25229 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25230 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25231 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25232 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25233 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25234 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25235 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25236 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25237 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25238 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25239 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25240 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25241 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25242 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25243 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25244 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25245 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25246 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25247 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25248 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25249 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25250 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25251 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25252 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25253 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25254 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25255 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25256 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25257 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25258 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25259 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25260 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25261 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25262 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25263 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25264 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25265 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25266 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25267 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25268 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25269 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25271 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25272 Arnaud Charlet <charlet@adacore.com>
25274 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25275 longer protected objects. They have been replaced by lower-level
25276 suspension objects made up by a mutex and a condition variable (or
25277 their equivalent given a particular OS) plus some internal data to
25278 reflect the state of the suspension object.
25279 (Initialize, Finalize): Add this initialization procedure for
25280 Suspension_Object, which is a controlled type.
25281 (Finalize): Add the finalization procedure for Suspension_Object,
25282 which is a controlled type.
25284 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25285 Ada.Synchronous_Task_Control because there is no longer a need for a
25286 VxWorks specific version of this package. Target dependencies
25287 has been moved to System.Task_Primitives.Operations.
25289 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25291 (InitializeCriticalSection, EnterCriticalSection,
25292 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25293 pCriticalSection by an anonymous access type so that we avoid problems
25294 of accessibility to local objects.
25296 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25297 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25298 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25299 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25300 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25301 set the environment task mask here.
25302 (Current_State): Add this function that returns the state of the
25304 (Set_False): Add this procedure that sets the state of the suspension
25306 (Set_True): Add this procedure that sets the state of the suspension
25307 object to True, releasing the task that was suspended, if any.
25308 (Suspend_Until_True): Add this procedure that blocks the calling task
25309 until the state of the object is True. Program_Error is raised if
25310 another task is already waiting on that suspension object.
25311 (Initialize): Add this procedure for initializing the suspension
25312 object. It initializes the mutex and the condition variable which are
25313 used for synchronization and queuing, and it sets the internal state
25315 (Finalize): Add this procedure for finalizing the suspension object,
25316 destroying the mutex and the condition variable.
25318 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25319 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25320 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25321 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25322 which provides a low-level abstraction (using operating system
25323 primitives) for Ada.Synchronous_Task_Control.
25324 This object is made up by a mutex (for ensuring mutual exclusion), a
25325 condition variable (for queuing threads until the condition is
25326 signaled), a Boolean (State) indicating whether the object is open,
25327 and a Boolean (Waiting) reflecting whether there is a task already
25328 suspended on this object.
25330 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25331 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25332 s-intman-vms.ads, s-intman-mingw.adb,
25333 (Initialize_Interrupts): Removed, no longer used.
25335 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25336 (Setup_Interrupt_Mask): New procedure.
25338 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25340 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25342 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25343 this is no longer done in the body of s-taprop
25344 (Server_Task): Explicitely test for Pending_Action in case
25345 System.Parameters.No_Abort is True.
25347 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25348 is no longer done in the body of s-taprop
25350 2005-06-14 Robert Dewar <dewar@adacore.com>
25352 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25353 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25354 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25355 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25356 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25357 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25358 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25359 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25360 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25361 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25362 system-linux-hppa.ads, system-vms_64.ads,
25363 system-vxworks-alpha.ads: Minor comment update for
25364 AI-362 (unit is Pure).
25366 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25367 Add pragma Pure_05 for AI-362
25368 Make remaining conversion functions obsolescent in Ada 95
25370 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25371 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25372 Add entries for a-wichun and a-zchuni
25373 Add a-widcha a-zchara for AI-395
25374 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25376 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25377 Add entries for a-wichun.o and a-zchuni.o
25378 Entries for a-widcha.o and a-zchara.o
25379 Add entry for a-chacon.o
25381 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25383 * a-chacon.ads, a-chacon.adb: New files.
25385 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25386 categorization violations.
25388 * a-strmap.ads: Add pragma Pure_05 for AI-362
25389 * a-strmap.ads: Add note on implicit categorization for AI-362
25391 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25393 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25394 Set Ada_Version_Explicit, for implementation of AI-362
25395 Add processing for pragma Pure_05 and Preelaborate_05
25396 Add entry for Assertion_Policy pragma
25398 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25399 when needed for proper processing of categorization stuff
25402 For several cases, make errors in preealborate units warnings,
25403 instead of errors, if GNAT_Mode is set. For AI-362.
25405 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25406 preelaborate unit is now warning if in GNAT mode
25408 * s-stoele.ads: Document AI-362 for pragma preelaborate
25410 2005-06-14 Doug Rupp <rupp@adacore.com>
25412 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25413 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25414 Default_Exception_Msg_Max_Length: new parameter.
25416 * a-except.ads: (Exception_Msg_Max_Length): Set to
25417 System.Parameters.Default_Exception_Msg_Max_Length
25418 Add pragma Preelaborate_05 for AI-362
25419 Add warnings off to allow categorization violations for AI-362
25421 2005-06-14 Vincent Celier <celier@adacore.com>
25423 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25424 Process is now in package Processing.
25426 * symbols.ads, symbols.adb:
25427 (Processing): New package, containing procedure Process
25429 * symbols-vms-alpha.adb:
25430 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25432 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25433 symbols-processing-vms-ia64.adb: New files.
25435 2005-06-14 Pascal Obry <obry@adacore.com>
25437 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25438 implementation. This new version generates the proper DllMain routine
25439 to initialize the SAL. The DllMain is generated in Ada and compiled
25440 before being added as option to the library build command.
25442 2005-06-14 Doug Rupp <rupp@adacore.com>
25443 Pascal Obry <obry@adacore.com>
25445 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25446 call to decc$translate_vms.
25447 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25448 need to remove those quotes before catenating the filename.
25449 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25450 * avoid allocating the memory twice for better efficiency;
25451 * allocate 32K buffer for environment expansion as suggested by MSDN;
25452 * prepend ".;" to the path so that current directory is searched too.
25454 2005-06-14 Robert Dewar <dewar@adacore.com>
25456 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25457 instead of raising CE (AI-241)
25458 Add warnings off to allow categorization violations for AI-362
25460 2005-06-14 Robert Dewar <dewar@adacore.com>
25462 * ali-util.adb, gnatbind.adb: Remove references to
25463 Force_RM_Elaboration_Order.
25465 * switch-b.adb: Remove recognition of -f switch
25467 2005-06-14 Pascal Obry <obry@adacore.com>
25469 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25470 implementation which is slightly more efficient.
25472 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25473 Javier Miranda <miranda@adacore.com>
25474 Ed Schonberg <schonberg@adacore.com>
25475 Hristian Kirtchev <kirtchev@adacore.com>
25477 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25478 allocator's designated type is a class-wide type, and compiling for
25479 Ada 2005, emit a run-time check that the accessibility level of the
25480 type given in the allocator's expression is not deeper than the level
25481 of the allocator's access type.
25483 (Tagged_Membership): Modified to gives support to abstract interface
25486 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25488 (Descendant_Tag): New predefined function
25489 (Is_Descendant_At_Same_Level): New predefined function
25490 (Get_Access_Level): New private function
25491 (Set_Access_Level): New private procedure
25492 (IW_Membership): New function. Given the tag of an object and the tag
25493 associated with an interface, evaluate if the object implements the
25495 (Register_Interface_Tag): New procedure used to initialize the table of
25496 interfaces used by the IW_Membership function.
25497 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25498 of the dispatch table.
25499 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25500 table of interfaces of the parent.
25501 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25502 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25503 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25504 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25505 Ada 2005 semantics for the new predefined function.
25507 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25508 call to Descendant_Tag rather than Internal_Tag.
25509 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25510 the accessibility level of the attribute's Item parameter is not deeper
25511 than the level of the attribute's prefix type. Tag_Error is raised if
25512 the check fails. The check is only emitted for Ada_05.
25513 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25514 requested stream attribute, use it.
25515 (Expand_N_Attribute_Reference): If the designated type is an interface
25516 then rewrite the referenced object as a conversion to force the
25517 displacement of the pointer to the secondary dispatch table.
25518 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25519 is a dereference of an object with a constrained partial view.
25521 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25522 type is a class-wide type, emit a run-time check that the accessibility
25523 level of the returned object is not deeper than the level of the
25524 function's master (only when compiling for Ada 2005).
25526 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25527 Action_Nb_Arg): Add entries for new Get_Access_Level and
25528 Set_Access_Level routines in these tables.
25529 (Make_DT): Generate a call to set the accessibility level of the
25530 tagged type in its TSD.
25531 (Make_DT): Code cleanup. The functionality of generating all the
25532 secondary dispatch tables has been moved to freeze_record_type.
25533 (Make_Abstract_Interface_DT): Minor code cleanup.
25534 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25535 this subprogram implements a new algorithm that provides the
25536 same functionality and it is more clear in case of primitives
25537 associated with abstract interfaces.
25538 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25539 clean up, the functionality of this subprogram is now provided
25540 by Set_All_DT_Position.
25541 (Write_DT): New subprogram: a debugging procedure designed to be called
25542 within gdb to display the dispatch tables associated with a tagged
25544 (Collect_All_Interfaces): New subprogram that collects the whole list
25545 of interfaces that are directly or indirectly implemented by a tagged
25547 (Default_Prim_Op_Position): New subprogram that returns the fixed
25548 position in the dispatch table of the default primitive operations.
25549 (Expand_Interface_Actuals): New subprogram to generate code that
25550 displaces all the actuals corresponding to class-wide interfaces to
25551 reference the interface tag of the actual object.
25552 (Expand_Interface_Conversion): New subprogram. Reference the base of
25553 the object to give access to the interface tag associated with the
25554 secondary dispatch table.
25555 (Expand_Interface_Thunk): New subprogram that generates the code of the
25556 thunk. This is required for compatibility with the C+ ABI.
25557 (Make_Abstract_Interface_DT): New subprogram that generate the
25558 declarations for the secondary dispatch tables associated with an
25559 abstract interface.
25560 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25561 attribute for each primitive operation covering interface subprograms
25562 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25563 These subprograms were upgraded to give support to abstract interfaces
25565 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25566 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25567 RE_Set_Access_Level.
25568 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25569 Add support to call the followig new run-time subprograms:
25570 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25572 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25573 match its full declaration when both have an access definition with
25574 statically matching designated subtypes.
25575 (Analyze_Component_Declaration): Delete commented out code that was
25576 incorrectly setting the scope of an anonymous access component's type.
25577 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25578 an access discriminant when the containing type is nonlimited.
25579 (Make_Incomplete_Type_Declaration): Create an incomplete type
25580 declaration for a record type that includes self-referential access
25582 (Check_Anonymous_Access_Types): Before full analysis of a record type
25583 declaration, create anonymous access types for each self-referential
25585 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25586 an access component in this context is a Local_Anonymous_Access, for
25587 proper accessibility checks.
25588 (Access_Definition): Set properly the scope of the anonymous access type
25589 created for a stand-alone access object.
25590 (Find_Type_Of_Object): An object declaration may be given with an access
25592 (Complete_Subprograms_Derivation): New subprogram used to complete
25593 type derivation of private tagged types implementing interfaces.
25594 In this case some interface primitives may have been overriden
25595 with the partial-view and, instead of re-calculating them, they
25596 are included in the list of primitive operations of the full-view.
25597 (Build_Derived_Record_Type): Modified to give support to private
25598 types implemening interfaces.
25599 (Access_Definition): Reject ALL on anonymous access types.
25600 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25601 type derivation to occur at a deeper accessibility level than the
25603 For the case of derivation within a generic body however, disallow the
25604 derivation if the derived type has an ancestor that is a formal type
25605 declared in the formal part of an enclosing generic.
25606 (Analyze_Object_Declaration): For protected objects, remove the check
25607 that they cannot contain interrupt handlers if not declared at library
25609 (Add_Interface_Tag_Components): New subprogram to add the tag components
25610 corresponding to all the abstract interface types implemented by a
25611 record type or a derived record type.
25612 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25613 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25614 Process_Full_View, Record_Type_Declaration): Modified to give
25615 support to abstract interface types
25616 (Collect_Interfaces): New subprogram that collects the list of
25617 interfaces that are not already implemented by the ancestors
25618 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25619 when partial view has no discriminants and full view has defaults.
25620 (Constrain_Access): Reject a constraint on a general access type
25621 if the discriminants of the designated type have defaults.
25622 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25623 full-type declaration or subprogram spec. This is required to handle
25624 nested anonymous declarations.
25625 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25626 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25627 Process_Full_View, Record_Type_Declaration): Modified to give
25628 support to abstract interface types
25629 (Derive_Subprograms): Addition of a new formal to indicate if
25630 we are in the case of an abstact-interface derivation
25631 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25632 to the specification because it is requied to analyze all the
25633 identifiers found in a list of interfaces
25635 * debug.adb: Complete documentation of flag "-gnatdZ"
25637 * exp_ch3.adb: Implement config version of persistent_bss pragma
25638 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25639 testing for TSS presence to properly enforce visibility rules.
25640 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25641 Make_Abstract_Interfaces_DT to generate the secondary tables
25642 associated with abstract interfaces.
25643 (Build_Init_Procedure): Modified to initialize all the tags
25645 (Component_Needs_Simple_Initialization): Similar to other tags,
25646 interface tags do not need initialization.
25647 (Freeze_Record_Type): Modified to give support to abstract interface
25649 (Expand_N_Object_Declaration): Do not generate an initialization for
25650 a scalar temporary marked as internal.
25652 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25653 in-out parameter that is a component in an initialization procedure,
25654 whose constraint might depend on discriminants, and that may be
25655 misaligned because of packing or representation clauses.
25656 (Is_Legal_Copy): New predicate to determine whether a possibly
25657 misaligned in-out actual can actually be passed by copy/return. This
25658 is an error in case the type is by_reference, and a warning if this is
25659 the consequence of a DEC import pragma on the subprogram.
25660 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25662 (Expand_Inlined_Call): Mark temporary generated for the return value as
25663 internal, so that no useless scalar normalization is generated for it.
25664 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25665 null procedure can always be inlined.
25666 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25667 procedure, generate an explicit empty body for it.
25669 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25670 Given a type implementing an interface, returns the corresponding
25671 access_disp_table value.
25672 (Find_Interface_Tag): New subprogram. Given a type implementing an
25673 interface, returns the record component containing the tag of the
25675 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25676 previous ones that return the corresponding tag and access_disp_table
25678 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25679 is a predefined primitive operation.
25680 (Expand_Subtype_From_Expr): If the expression is a selected component
25681 within an initialization procedure, compute its actual subtype, because
25682 the component may depend on the discriminants of the enclosing record.
25684 * i-cpp.ads, i-cpp.adb:
25685 This package has been left available for compatibility with previous
25686 versions of the frontend. As part of the new layout this is now a
25687 dummy package that uses declarations available at a-tags.ads
25689 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25690 "constant access" and "aliased [constant] access" when not compiling
25692 Suppress Ada 2005 keyword warning if -gnatwY used
25693 (P_Identifier_Declarations): Add support for object declarations with
25694 access definitions.
25695 (Private_Extension_Declaration): Complete the documentation
25696 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25697 attribute in case of private extension declaration
25698 (P_Type_Declaration): Mark as "abstract" the type declarations
25699 corresponding with protected, synchronized and task interfaces
25700 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25701 for a subprogram or instance declaration.
25703 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25704 instantiation that is a dispatching operation has controlling access
25705 parameters that are null excluding.
25706 Save and restore Ada_Version_Explicit, for implementation of AI-362
25707 (Validate_Derived_Type_Instance): Add check for abstract interface
25709 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25710 the generic that is created to represent the formal package.
25711 (Analyze_Package_Instantiation): Instantiate body immediately if the
25712 package is a predefined unit that contains inlined subprograms, and
25713 we are compiling for a Configurable_Run_Time.
25714 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25715 If the program has a null default, generate an empty body for it.
25717 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25718 error message condition, null procedures are correctly detected now.
25719 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25720 for subprograms in the context of protected types. Instead, the
25721 indicator is examined in Sem_Ch9 while analysing the subprogram
25723 (Check_Overriding_Indicator): Check consistency of overriding indicator
25724 on subprogram stubs as well.
25725 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25727 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25728 the type of the first formal is a concurrent type, replace this type
25729 by the corresponding record type.
25730 (Analyze_Subprogram_Body): Undo the previous work.
25731 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25732 analysis of the prefix ends up analyzing the call itself, after which
25734 (Has_Interface_Formals): New subprogram subsidiary to analyze
25735 subprogram_specification that returns true if some non
25736 class-wide interface subprogram is found
25737 (New_Overloaded_Entity): Modified to give support to abstract
25739 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25740 access to subprograms must be recursive.
25741 (Is_Unchecked_Conversion): Improve the test that recognizes
25742 instantiations of Unchecked_Conversion, and allows them in bodies that
25743 are to be inlined by the front-end. When the body comes from an
25744 instantiation, a reference to Unchecked_Conversion will be an
25745 Expanded_Name, even though the body has not been analyzed yet.
25746 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25747 Must_Override and Must_Not_Override, to better express intent of AI.
25748 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25749 that it is consistent with the overrinding status of the subprogram
25751 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25753 If the subprogram is a null procedure, indicate that it does not need
25756 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25757 available through limited-with clauses.
25758 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25759 allowed as the last primitive of a tagged type if it has no previous
25761 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25762 to give support to abstract interface types
25764 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25765 in the case where the target type is an anonymous access type of an
25766 object or component (that is, when Is_Local_Anonymous_Access is true).
25767 Prevent the special checks for conversions of access discriminants in
25768 the case where the discriminant belongs to a nonlimited type, since
25769 such discriminants have their accessibility level defined in the same
25770 way as a normal component of an anonymous access type.
25771 (Resolve_Allocator): When an allocator's designated type is a class-wide
25772 type, check that the accessibility level of type given in the
25773 allocator's expression or subtype indication is not statically deeper
25774 than the level of the allocator's access type.
25775 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25776 name in a discriminant constraint of a record component.
25777 (Resolve_Explicit_Dereference): Do not check whether the type is
25778 incomplete when the dereference is a use of an access discriminant in
25779 an initialization procedure.
25780 (Resolve_Type_Conversion): Handle conversions to abstract interface
25782 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25783 abstract interface type is always valid.
25784 (Valid_Conversion): Modified to give support to abstract interface types
25785 (Resolve_Actuals): Enable full error reporting on view conversions
25786 between unrelated by_reference array types.
25787 The rule for view conversions of arrays with aliased components is
25788 weakened in Ada 2005.
25789 Call to obsolescent subprogram is now considered to be a violation of
25790 pragma Restrictions (No_Obsolescent_Features).
25791 (Check_Direct_Boolean_Operator): If the boolean operation has been
25792 constant-folded, there is nothing to check.
25793 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25794 check on possible violation of restriction No_Direct_Boolean_Operators
25795 until after expansion of operands, to prevent spurious errors when
25796 operation is constant-folded.
25798 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25799 Has_Compatible_Type): Modified to give support to abstract interface
25801 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25802 of a given type implements a given interface
25804 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25805 prefix is a parameterless function that returns an access_to_procedure.
25806 (Transform_Object_Operation): Handle properly function calls of the
25807 form Obj.Op (X), which prior to analysis appear as indexed components.
25808 (Analyze_One_Call): Complete the error notification to help new Ada
25810 (Analyze_Allocator): For an allocator without an initial value, where
25811 the designated type has a constrained partial view, a discriminant
25812 constraint is illegal.
25814 2005-06-14 Robert Dewar <dewar@adacore.com>
25816 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25817 do with treatment of Set_Col when positioned at end of line character.
25819 2005-06-14 Robert Dewar <dewar@adacore.com>
25821 * atree.adb: (Elist*): Protect against uninitialized field
25823 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25825 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25826 for an attribute reference that returns an access type.
25827 (Apply_Discriminant_Check): No need for check if (designated) type has
25828 constrained partial view.
25830 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25831 both bound checks, rather than a conjunction.
25832 (Insert_Valid_Check): If the expression is an actual that is an indexed
25833 component of a bit-packed array, force expansion of the packed element
25834 reference, because it is specifically inhibited elsewhere.
25836 2005-06-14 Vincent Celier <celier@adacore.com>
25838 * clean.adb (Clean_Project): Correctly delete executable specified as
25839 absolute path names.
25841 * make.adb (Gnatmake): Allow relative executable path names with
25842 directory information even when project files are used.
25843 (Change_To_Object_Directory): Fail gracefully when unable to change
25844 current working directory to object directory of a project.
25845 (Gnatmake): Remove exception handler that could no longer be exercized
25846 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25847 may be deallocated by Normalize_Arguments.
25848 (Collect_Arguments): Eliminate empty arguments
25850 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25851 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25852 (Check_Project): Return False when Project is No_Project. Return True
25853 when All_Projects is True.
25854 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25855 All_Projects to True.
25858 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25859 Javier Miranda <miranda@adacore.com>
25860 Thomas Quinot <quinot@adacore.com>
25861 Robert Dewar <dewar@adacore.com>
25862 Hristian Kirtchev <kirtchev@adacore.com>
25863 Gary Dismukes <dismukes@adacore.com>
25865 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25866 anonymous access types, to indicate that the accessibility level of
25867 the type is determined by that of the enclosing declaration.
25868 (Has_Persistent_BSS): New flag
25869 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25870 of this attribute with functions.
25871 (Is_Primitive_Wrapper): Remove the barrier.
25872 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25873 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25875 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25876 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25878 (Is_Pure_Unit_Access_Type): New flag
25879 (Abstract_Interfaces): Complete the assertion to cover all usages.
25880 (Set_Is_Interface): Complete the assertion to cover all usages.
25881 (Is_Primitive_Wrapper): New attribute.
25882 (Is_Obsolescent): Now applies to all entities (though it is only set
25883 for subprograms currently)
25884 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25885 which solves various problems concerning access subtypes.
25886 (Has_Persistent_BSS): New flag
25887 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25888 Remove these subprograms because this attribute is currently
25891 Has_Specified_Stream_Input (Flag190)
25892 Has_Specified_Stream_Output (Flag191)
25893 Has_Specified_Stream_Read (Flag192)
25894 Has_Specified_Stream_Write (Flag193)
25895 Present in all type and subtype entities. Set for a given view if the
25896 corresponding stream-oriented attribute has been defined by an
25897 attribute definition clause. When such a clause occurs, a TSS is set
25898 on the underlying full view; the flags are used to track visibility of
25899 the attribute definition clause for partial or incomplete views.
25900 (Is_Pure_Unit_Access_Type): New flag
25901 Clarify use of Is_Internal.
25902 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25903 internally generated to wrap the invocation of tasks and protected
25904 types that implement interfaces.
25905 (Implementation_Base_Type): Documentation correction
25906 (Is_Obsolescent): Now applies to all entities (though it is only set
25907 for subprograms currently)
25908 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25909 which solves various problems concerning access subtypes.
25911 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25912 for examined parameters. Identify unequal parameter list lengths as
25913 non-conformant parameters.
25914 (Overriding_Possible): Do not check for "All" qualifier in declaration
25915 of controlling access parameter, following prescription of AI-404.
25916 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25917 that build the procedure body that wraps an entry invocation
25918 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25919 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25920 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25921 give support to abstract interface types
25923 * freeze.adb (Freeze_Entity): Issue error message if
25924 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25925 type has no storage pool (Ada 2005) AI-366.
25926 Also modified to give support to abstract interface types
25927 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25928 Inline_Always pragma.
25930 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25931 now begin an entry declaration.
25932 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25933 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25934 a subprogram declaration preceded by an overriding indicator.
25935 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25936 declarations or subprogram declarations preceded by reserved words
25937 "not" or "overriding".
25938 (P_Entry_Declaration): Update comment. Parse and check overriding
25939 indicator, set semantic flags of entry declarations.
25940 (P_Task): New error message in case of private applied
25941 to a task type declaration.
25942 (P_Protected): New error message in case of private applied
25943 to a task type declaration.
25945 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25946 in which the full view of a type implementing an interface is a
25948 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25949 Declare_Inherited_Private_Subprograms): If an explicit operation
25950 overrides an operation that is inherited in the private part, mark the
25951 explicit one as overriding, to enable overriding indicator checks.
25952 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25953 full view to partial view, to simplify handling in back-end.
25955 * sprint.adb: Print interface lists where needed: derived types,
25956 protected types, task types.
25957 output "is null" for null procedures. Part of implementation of
25959 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25960 relaxation of rules for access types in pure, shared passive partitions.
25962 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25963 first read discriminants into temporary objects, performing checks on
25964 the read values, then possibly performing discriminant checks on the
25965 actual (if it is constrained), and only finally reading the components
25966 into a constrained temporary object.
25967 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25968 case of reading discriminants of a mutable record type to recognize
25969 the new form of the code generated by
25970 Build_Mutable_Record_Read_Procedure.
25972 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25973 of a simple call to Make_TSS_Name.
25974 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25975 buffer, in order for Is_TSS to work correctly on local TSS names.
25977 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25978 Is_Local_Anonymous_Access to check legaliy of attributes in the
25979 context of access components and stand-alone access objects.
25980 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25981 treated as available for a limited private type if there is an
25982 attribute_definition_clause that applies to its full view, but not in
25983 other cases where the attribute is available for the full view
25984 (specifically, the sole fact that the full view is non-limited does not
25985 make the attribute available for the partial view).
25986 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25987 non-overloaded intrinsic subprogram.
25988 (Check_Stream_Attribute): Reject an attribute reference for an
25989 unavailable stream attribute even if the prefix is not a limited type
25990 (case of a 'Input attribute reference for an abstract, non-classwide
25992 (Stream_Attribute_Available): New function to determine whether a stream
25993 attribute is available at a place.
25994 (Check_Attribute): Use Stream_Attribute_Available instead of just
25995 testing for TSS presence on the implementation base type.
25996 (Analyze_Attribute): Modified to give support to task interfaces.
25997 (Analyze_Access_Attribute): Add error check for use of an Access (or
25998 Unrestricted_Access) attribute with a subprogram marked as
26000 (Analyze_Attribute, case Attribute_Address): Add error check for use of
26001 an Address attribute with a subprogram marked as Inline_Always.
26002 Update Eval_Attribute to handle new value of Width from AI-395
26004 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
26005 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
26006 Factor common code across the stream-oriented attribute circcuits into
26007 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
26008 processing is functionally identical to the previous duplicated one,
26009 except that an expression that denotes an abstract subprogram will now
26010 be rejected, as mandated by AI-195 item 5.
26012 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
26013 Is_Local_Anonymous_Access to apply accessibility checks to access
26014 components and stand-alone access objects.
26015 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
26017 (Is_Potentially_Persistent_Type): New function
26018 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
26019 a heap-object whose type has a constrained partial view, the object is
26020 unconstrained and the component may depend on a discriminant, making its
26023 * sinfo.ads, sinfo.adb
26024 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
26025 (Must_Override): Flag applicable to N_Entry_Declaration.
26026 Indicate that interface_list can appear in single task and single
26027 protected declarations.
26028 Replace Is_Overriding and Not_Overriding with Must_Override and
26029 Must_Not_Override, to better express intent of AI.
26030 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
26031 of an overriding indicator in a subprogram or instance.
26032 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
26033 Add the overriding indicator [[not] overriding] construct to the
26034 following grammar productions:
26036 GENERIC_INSTANTIATION
26037 SUBPROGRAM_SPECIFICATION
26039 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
26040 can start with an overriding indicator.
26042 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
26043 flags accordingly on subrogram specifications or instances.
26046 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
26047 overriding_indicator, if present, is consistent with status of spec.
26048 Improve error message for null-excluding checks on controlling access
26050 (Check_In_Previous_With_Clause): Protect the frontend against
26051 previously reported critical errors in the context clauses.
26052 Save and restore Ada_Version_Explicit, for implementation of AI-362
26053 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26054 operation verify that controlling formals of the renamed entity that
26055 are access parameters are explicitly non-null.
26056 (Find_Expanded_Name): Improve error message when prefix is an illegal
26057 reference to a private child unit.
26059 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
26060 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
26061 Rewrite to correspond to new wide character names in AI-395
26063 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26064 default procedures.
26066 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26067 Robert Dewar <dewar@adacore.com>
26069 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26070 code, not on the bodies of predefined operations, to cut down on
26073 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26075 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26076 be expanded in place. The size computation does not require a
26077 subtraction, which would raise an exception on a compiler built with
26078 assertions when the upper bound is Integer'first.
26079 (Flatten): For an array of composite components, take into account the
26080 size of the components to determine whether it is safe to expand the
26081 array into a purely positional representation.
26083 2005-06-14 Thomas Quinot <quinot@adacore.com>
26085 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26086 denoting a formal parameter into account.
26088 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26090 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26091 the entry_call alternative of a conditional entry call, wrap the
26092 conditional entry call itself.
26094 2005-06-14 Nicolas Setton <setton@adacore.com>
26095 Ed Schonberg <schonberg@adacore.com>
26097 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26098 the "simple_choice" member in a variant record, in accordance with the
26099 description in the package spec: the information output for a constant
26100 should be "S number", not "SS number".
26101 (Get_Encoded_Name): Return at once if not generating code. Avoids name
26102 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26104 2005-06-14 Thomas Quinot <quinot@adacore.com>
26106 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26107 RACW without any primitives, do not generate the if statement for
26108 dispatching by name in the PolyORB/DSA case, as it would be malformed
26109 (it would have an Elsif_Parts list that is not No_List, but with a
26112 2005-06-14 Robert Dewar <dewar@adacore.com>
26114 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26116 2005-06-14 Jose Ruiz <ruiz@adacore.com>
26118 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26119 can determine whether pragma Suppress_Exception_Locations is in effect.
26121 * utils2.c (build_call_raise): Do not pass the file name to the
26122 exception handler if pragma Suppress_Exception_Locations is in effect.
26123 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26125 2005-06-14 Emmanuel Briot <briot@adacore.com>
26127 * g-debpoo.adb (Deallocate, Dereference): Improve output.
26129 2005-06-14 Nicolas Roche <roche@adacore.com>
26131 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26133 (Next_Level): Fix minor bug in handling of ../dir case
26134 (Read): Add dir separator to Directory name so that "" is understood as
26137 2005-06-14 Pascal Obry <obry@adacore.com>
26139 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26140 releasing the items.
26142 2005-06-14 Vincent Celier <celier@adacore.com>
26143 Cyrille Comar <comar@adacore.com>
26145 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26146 with output file descriptor and with output file name.
26147 (Dup, Dup2): Now global procedures as they are used by two subprograms
26148 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26150 2005-06-14 Thomas Quinot <quinot@adacore.com>
26153 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26155 (Create_Selector): Bind listening socket used to create the signalling
26156 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26157 Set listen backlog to 1 to ensure that we detect socket theft by a
26158 failure of our own connect(2) call.
26159 (Check_Selector): Improve documentation of the selector mechanism.
26160 (Broadcast_Inet_Addr): New constant.
26162 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26164 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26165 type which turns out to be an incomplete and incorrect fix.
26166 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26167 of the type is declared in a record (for determination of insertion
26169 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26170 a private type and ensure that the primary entity is used for the type
26171 of the newly created function's V formal by taking the Etype of the
26174 2005-06-14 Javier Miranda <miranda@adacore.com>
26175 Jose Ruiz <ruiz@adacore.com>
26176 Robert Dewar <dewar@adacore.com>
26177 Ed Schonberg <schonberg@adacore.com>
26179 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26180 that indicates if we are parsing a compilation unit found in a
26181 limited-with clause.
26182 It is use to avoid the circularity check.
26184 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26185 we are parsing a compilation unit found in a limited-with clause. This
26186 is use to avoid the circularity check.
26188 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26189 unit as a consequence of parsing a limited-with clause. This is used
26190 to avoid the circularity check.
26192 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26193 (Analyze_Context): Limited-with clauses are now allowed
26194 in more compilation units.
26195 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26196 againts previously reported critical errors in context clauses
26197 (Install_Limited_Withed_Unit): Code cleanup plus static detection
26198 of two further errors: renamed subprograms and renamed packages
26199 are not allowed in limited with clauses.
26200 (Install_Siblings): Do not install private_with_clauses on the package
26201 declaration for a non-private child unit.
26202 (Re_Install_Parents): When a parent of the subunit is reinstalled,
26203 reset visibility of child units properly.
26204 (Install_Withed_Unit): When a child unit appears in a with_clause of its
26205 parent, it is immediately visible.
26207 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26208 Emmanuel Briot <briot@adacore.com>
26210 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26211 declared within an inlined body as referenced, to prevent spurious
26213 (Output_One_Ref): If an entity renames an array component, indicate in
26214 the ALI file that this aliases (renames) the array. Capture as well
26215 function renamings that rename predefined operations.
26216 Add information about generic parent for package and subprogram
26218 (Get_Type_Reference): For a subtype that is the renaming of an actual in
26219 an instantiation, use the first_subtype to ensure that we don't generate
26220 cross-reference information for internal types.
26221 For objects and parameters of a generic private type, retain the '*'
26222 indicator to distinguish such an entity from its type.
26224 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26225 to store information about instantiated entities.
26227 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26230 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26231 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26234 2005-06-10 Doug Rupp <rupp@adacore.com>
26235 Arnaud Charlet <charlet@adacore.com>
26236 Olivier Hainque <hainque@adacore.com>
26237 Jose Ruiz <ruiz@adacore.com>
26239 * Make-lang.in: Add initialize.o when needed.
26240 Remove obsolete references to RT_FLAGS.
26241 Add missing dependencies for sdefault.o
26243 * initialize.c: New file.
26245 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26246 [VMS] cond_signal_table: Fix problem in declaration.
26247 [VMS] __gnat_error_handler: rewrite.
26248 Move all __gnat_initialize() routines to initialize.c
26249 Specialize the former "hpux" section to "hppa hpux", as this is what the
26250 section really is here for and we now have other hpux ports that need
26251 different contents.
26252 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26253 function for this target. Adjust PC by one in the machine context. This
26254 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26255 it is more reliable to do that in the signal handler itself.
26256 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26257 flags, so that the handler is passed the context structure to adjust
26258 prior to the raise.
26259 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26260 SA_SIGINFO sigaction should look like. Call
26261 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26262 Machine_State_Operations stuff.
26263 Add conditional code so that the x86_64 is also supported.
26265 2005-06-14 Pascal Obry <obry@adacore.com>
26267 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26270 2005-06-14 Robert Dewar <dewar@adacore.com>
26272 * opt.ads, opt.adb: New flags for persistent_bss mode
26273 Add Ada_Version_Explicit, for implementation of AI-362
26274 Add Assertions_Enabled_Config and associated handling
26275 Needed since setting can be changed with Assertion_Policy pragma
26276 Add new flag Warn_On_Ada_2005_Compatibility
26278 * switch-c.adb: Recognize -gnatwy/Y
26279 Set Ada_Version_Explicit, for implementation of AI-362
26280 The -gnatg switch now includes -gnatyu
26282 * usage.adb: Add -gnatwy/Y
26283 Remove wrong asterisk on -gnatwX line
26284 Add line for -gnatyu switch
26286 2005-06-14 Vincent Celier <celier@adacore.com>
26288 * osint.adb (Add_Default_Search_Dirs): Put source and object
26289 directories of project files before directories coming from
26290 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26292 2005-06-14 Robert Dewar <dewar@adacore.com>
26295 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26296 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26298 2005-06-14 Vincent Celier <celier@adacore.com>
26300 * prep.adb (Preprocess): Ignore error when scanning the first token of
26303 2005-06-14 Vincent Celier <celier@adacore.com>
26305 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26306 (Check_Stand_Alone_Library): If the specified reference symbol file does
26307 not exist, only issue a warning when the symbol policy is not
26308 Controlled. And, when symbol policy is Compliant, set the symbol
26309 policy to Autonomous.
26311 2005-06-14 Vincent Celier <celier@adacore.com>
26313 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26314 when the project file in a with clause is not the last one, that is the
26315 project file name is followed by a comma.
26316 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26317 (Print): Issue list of project files separated by commas in with clauses
26318 according to the values returned by Is_Not_Last_In_List.
26319 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26320 (Set_Is_Not_Last_In_List): New procedure
26322 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26324 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26326 2005-06-14 Robert Dewar <dewar@adacore.com>
26328 * scng.adb: Add call to new Check_EOF routine
26329 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26330 Add some comments regarding wide character handling
26332 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26334 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26336 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26337 characters are now considered graphic characters and hence yield false
26340 * nmake.adt: Modify header so that xnmake does not generate output
26341 files with multiple blank lines.
26343 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26344 not have an extra blank line
26346 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26348 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26349 expression when the component type is an anonymous access type to
26350 ensure that appropriate accessibility checks are done.
26352 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26353 expression of an assignment when the target object is of an anonymous
26354 access type. This ensures that required accessibility checks are done.
26355 (One_Bound): Move the check for type Universal_Integer to
26357 (Process_Bounds): Check whether the type of the preanalyzed range is
26358 Universal_Integer, and in that case set Typ to Integer_Type prior
26359 to setting the type of the original range and the calls to One_Bound.
26361 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26363 * sem_case.adb (Expand_Others_Choice): Improve warning.
26365 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26367 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26368 constraint of full view if present, when other type is discriminated.
26369 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26370 when the pointer is known to be non-null, and emit appropriate warning.
26372 2005-06-14 Robert Dewar <dewar@adacore.com>
26373 Ed Schonberg <schonberg@adacore.com>
26376 * sem_prag.adb: Implement pragma Persistent_BSS
26377 Remove obsolete pragma Persistent_Data, Persistent_Object
26378 Set Ada_Version_Explicit, for implementation of AI-362
26379 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26380 Add processing for pragma Pure_05 and Preelaborate_05
26381 Add processing for Assertion_Policy pragma
26382 Add pragma identifiers for Assert
26383 (Analyze_Pragma, case Assert): Check number of arguments
26384 (Process_Inline): Additional guard against an illegal program, where the
26385 argument of the pragma is undefined, and warnings on redundant
26386 constructs are enabled.
26387 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26388 Ada_05 to this pragma, specifying that the pragma is only active in
26390 (Check_Arg_Order): New procedure
26391 Add appropriate calls to this procedure throughout
26392 Also throughout, check entity name before doing any other checks
26394 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26395 Remove obsolete pragma Persistent_Data, Persistent_Object
26396 Add entries for pragma Pure_05 and Preelaborate_05
26397 Add entries for Assertion_Policy pragma and associated names
26398 Add some names for pragma argument processing
26400 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26402 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26404 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26405 appears within a negation (either from source or as a rewriting of
26406 inequality) adjust text of warning accordingly.
26408 2005-06-14 Thomas Quinot <quinot@adacore.com>
26410 * s-strxdr.adb: Follow AI95-00132
26412 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26414 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26416 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26417 Jose Ruiz <ruiz@adacore.com>
26419 * s-tposen.adb, s-tpobop.adb
26420 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26422 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26423 there is no violation of the Max_Entry_Queue_Length restriction (if it
26424 has been set); Program_Error is raised otherwise.
26425 (Requeue_Call): Before requeuing the task on the target entry queue we
26426 check that there is no violation of the Max_Entry_Queue_Length
26427 restriction (if it has been set); Program_Error is raised otherwise.
26429 2005-06-14 Robert Dewar <dewar@adacore.com>
26431 * styleg.adb: Fix several remaining problems in -gnatyu switch
26432 Blank line count not reset at start
26433 Scanning outside source buffer in some cases
26434 Confusing message for blanks at end of file
26435 Non-empty blank lines not recognized
26437 * nmake.adt: Modify header so that xnmake does not generate output
26438 files with multiple blank lines.
26440 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26441 not have an extra blank line
26443 2005-06-14 Sergey Rybin <rybin@adacore.com>
26445 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26447 2005-06-14 Doug Rupp <rupp@adacore.com>
26448 Vincent Celier <celier@adacore.com>
26450 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26453 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26454 Remove "Library" command.
26455 Change keyword for style check -gnatyd from NOCRLF to
26457 Remove useless second style check keyword NONE
26458 Remove help documentation for inexistent style check keyword
26460 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26461 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26462 Add UNNECESSARY_BLANK_LINES for -gnatyu
26463 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26465 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26467 2005-06-14 Vincent Celier <celier@adacore.com>
26469 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26470 gprmake was invoked with -d.
26471 (Compile_Sources): If -d was used, output the "completed ..." message
26472 for each compilation.
26473 (Scan_Arg): Recognize new switch -d
26474 When -c and at least one main is specified, set
26475 Unique_Compile to True to guarantee that no other sources will be
26478 2005-06-14 Matthew Heaney <heaney@adacore.com>
26480 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26481 * a-swuwha.ads, a-swuwha.adb: New files
26483 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26484 * a-szuzha.ads, a-szuzha.adb: New files.
26486 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26487 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26488 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26489 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26490 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26491 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26492 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26493 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26494 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26495 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26498 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26499 Olivier Hainque <hainque@adacore.com>
26500 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26501 Pascal Obry <obry@adacore.com>
26503 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26505 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26506 making a temporary around a procedure call because of non-addressable
26508 (process_freeze_entity): If entity is a private type, capture size
26509 information that may have been computed for the full view.
26510 (tree_transform, case N_Allocator): If have initializing expression,
26511 check type for Has_Constrained_Partial_View and pass that to
26513 (tree_transform, case N_Return_Statement): Pass extra arg to
26516 * decl.c (annotate_value): Remove early return if -gnatR is not
26518 (gnat_to_gnu_field): Don't make a packable type for a component clause
26519 if the position is byte aligned, the field is aliased, and the clause
26520 size isn't a multiple of the packable alignment. It serves no useful
26521 purpose packing-wise and would be rejected later on.
26522 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26525 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26526 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26528 (create_concat_name): Idem.
26530 2005-06-10 Robert Dewar <dewar@adacore.com>
26531 Eric Botcazou <ebotcazou@adacore.com>
26532 Ben Brosgol <brosgol@adacore.com>
26533 Cyrille Comar <comar@adacore.com>
26534 Sergey Rybin <rybin@adacore.com>
26535 Pascal Obry <obry@adacore.com>
26537 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26538 Document second argument (Ada_05) of pragma Obsolescent
26539 Add note that call to subprogram marked with pragma Obsolescent
26540 is now considered to be a violation of program Restrictions
26541 (No_Obsolescent_Features).
26542 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26543 that only machine-dependent attributes are supported.
26546 Commented out menu lines and empty section for gnatclean examples
26548 Fix some over long lines
26549 Clarify and enhance documentation of ADA_PROJECT_PATH.
26550 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26551 Mention new switch -fcallgraph-info.
26552 Mention new switch -fstack-usage.
26553 For gnatpp, replace '-notab' with '-N' and add this option to Index
26554 Corrected VMS example.
26555 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26557 Add documentation for -gnatyu switch (unnecessary blank lines)
26558 Document new switch -U for GNAT PRETTY and GNAT METRIC
26559 Add note about Stdcall being handled as C convention on non Windows OS.
26560 Remove some junk typo in description of gnatbind -S switch
26561 Remove reference to Extensions_Allowed pragma
26562 Document the new order of the directories to be searched (source and
26563 object directories of project files before directories in ADA_*_PATH
26564 environment variables.
26566 * g-trasym.ads: Document that IRIX is supported
26568 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26570 * Makefile.in: Add initialize.o when needed.
26571 Adapt to new VMS package body Symbols and subunits
26572 No specialized version of a-sytaco is needed for VxWorks.
26574 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26575 * a-zchara.ads, a-widcha.ads: New files.
26577 * system-hpux-ia64.ads: New file.
26579 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26580 is imported from the VxWorks kernel.
26582 2005-06-14 Robert Dewar <dewar@adacore.com>
26584 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26585 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26586 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26587 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26588 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26589 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26590 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26591 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26592 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26593 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26594 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26595 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26597 2005-06-14 Thomas Quinot <quinot@adacore.com>
26599 * xeinfo.adb: Fix typo in comment
26601 2005-06-14 Javier Miranda <miranda@adacore.com>
26603 * repinfo.ads: Fix typo in comment
26605 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26607 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26608 Parent_Tag is now in the visible part of Ada.Tags).
26609 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26610 using imported function.
26612 2005-06-14 Bernard Banner <banner@adacore.com>
26614 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26615 also apply for handling support for VxSim 653.
26617 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26619 * xsnames.adb: Add automatic generation of snames.h.
26621 2005-06-14 Thomas Quinot <quinot@adacore.com>
26623 * gen-soccon.c: Add IP_MULTICAST_IF constant
26624 Minor reformatting and adjustments to prevent warnings.
26626 2005-06-14 Pascal Obry <obry@adacore.com>
26628 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26630 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26632 * trans.c (gnat_gimplify_expr): Call
26633 recompute_tree_invarant_for_addr_expr when we change
26634 the operand of the ADDR_EXPR.
26636 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26638 * misc.c: Don't include errors.h.
26640 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26642 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26644 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26646 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26648 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26650 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26653 * Makefile.in: Make TGT_LIB behave correctly.
26655 2005-04-23 DJ Delorie <dj@redhat.com>
26657 * misc.c: Adjust warning() callers.
26659 2005-04-16 Laurent Guerby <laurent@guerby.net>
26662 * a-nudira.adb (Value): Check for valid string.
26663 * a-nuflra.adb (Value): Likewise.
26665 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26667 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26669 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26671 * adaint.c, init.c, tracebak.c: Fix comment typos.
26672 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26674 2005-04-07 Laurent Guerby <laurent@guerby.net>
26675 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26677 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26678 * system-hpux.ads: Define Signed_Zeros to be True.
26679 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26681 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26683 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26684 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26687 2005-03-30 Tom Tromey <tromey@redhat.com>
26689 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26691 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26693 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26695 2005-03-29 Robert Dewar <dewar@adacore.com>
26697 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26698 fixed-point expression has value that is not a multiple of the Small
26701 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26703 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26706 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26708 2005-03-29 Vincent Celier <celier@adacore.com>
26710 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26711 (Build_Dynamic_Library.Version_String): Return the empty string when
26712 Lib_Version is empty or when the symbol policy is not Autonomous.
26714 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26715 a symbol is not in the reference symbol file, increase the Major ID
26716 and set the Minor ID to 0.
26717 Use gsmatch=lequal instead of gsmatch=equal
26719 2005-03-29 Doug Rupp <rupp@adacore.com>
26721 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26722 name and translate.
26724 2005-03-29 Javier Miranda <miranda@adacore.com>
26726 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26727 (Inherit_DT): The first formal has been redefined as a Tag.
26728 This allows us the removal of the subprogram Get_TSD.
26729 (TSD): Replace the call to Get_TSD by the actual code.
26731 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26732 (Make_DT): Upgrade the call to Inherit_TSD according to the
26733 new interface: the first formal is now a Tag.
26735 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26736 redefined as a Tag.
26737 This change allows us to remove the subprogram Get_TSD.
26738 (CPP_Get_TSD): Subprogram removed.
26739 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26741 * rtsfind.ads: Remove support to call the run-time
26744 2005-03-29 Robert Dewar <dewar@adacore.com>
26746 * errutil.adb, errout.adb:
26747 Minor comment updates on Line_Terminator references
26749 * par-ch10.adb: Add ??? comment about line terminator
26751 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26752 (check dos line terminator).
26753 (Check_Line_Max_Length): New procedure, split off from the existing
26754 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26755 be properly recognized.
26757 * styleg.adb: Add ??? comment for line terminator reference
26759 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26760 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26762 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26763 (check dos line terminator).
26764 (Check_Line_Max_Length): New procedure, split off from the existing
26765 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26766 be properly recognized.
26768 * stylesw.ads, stylesw.adb:
26769 Add handling for new -gnatyd switch (check dos line terminator)
26771 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26772 Recognize -gnatwb/-gnatwB switches
26773 Include Warn_On_Bad_Fixed_Value for -gnatg
26776 Add line for new -gnatyd switch (check dos line terminator)
26778 * usage.adb: Add lines for -gnatwb/-gnatwB
26780 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26782 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26784 * gnat_ugn.texi: Fix overlong lines
26785 Document new -gnatyd switch
26786 Document new -gnatwb/-gnatwB switches
26788 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26790 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26791 order to retrieve the component list of the type, before examining
26792 individual components.
26794 * sem_type.adb (Covers): Types are compatible if one is the base type
26795 of the other, even though their base types might differ when private
26796 views are involved.
26798 2005-03-29 Thomas Quinot <quinot@adacore.com>
26800 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26801 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26802 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26803 analyzed if expansion is disabled (which could otherwise cause spurious
26804 error messages if expansion has been disabled due to previous
26805 (unrelated) errors).
26807 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26808 is disabled, the entity denoted by the argument is the access type
26809 itself, not an underlying record type, so there is no need to go back
26810 to the Corresponding_Remote_Type.
26812 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26813 Robert Dewar <dewar@adacore.com>
26815 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26816 expand a call to an instance of
26817 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26818 Constructor actual of the instance. A class-wide membership
26819 check is also generated, to ensure that the tag passed to the instance
26820 denotes a type in the class.
26821 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26822 of Name_Generic_Dispatching_Constructor.
26824 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26825 05 unit for AI-260-02).
26827 * a-tgdico.ads: New file.
26829 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26830 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26832 * snames.ads, snames.adb (Preset_Names): Add entry for
26833 Generic_Dispatching_Constructor.
26836 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26837 character type cases.
26838 (Analyze_Subprogram_Renaming): Add special handling for
26839 the case of renaming of stream attributes when the renaming denotes a
26840 generic formal subprogram association for an abstract formal subprogram.
26841 Check that the attribute is a primitive stream attribute (and not
26842 a class-wide stream attribute) and then rewrite the attribute name
26843 as the name of the appropriate compiler-generated stream primitive.
26845 2005-03-29 Robert Dewar <dewar@adacore.com>
26847 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26849 (Is_Possibly_Unaligned_Object): Correct typo that
26850 resulted in inaccurate result for unaligned scalars within records.
26852 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26854 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26855 itype whose parent is controlled and not yet frozen, do not create a
26856 freeze node for the itype if expansion is disabled.
26858 2005-03-29 Vincent Celier <celier@adacore.com>
26860 * make.adb (Gnatmake): Don't fail if the main project file is declared
26861 as having no Ada sources. Do not display message "no sources to
26862 compile" in quiet output.
26864 2005-03-29 Doug Rupp <rupp@adacore.com>
26866 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26869 2005-03-29 Robert Dewar <dewar@adacore.com>
26871 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26874 2005-03-29 Robert Dewar <dewar@adacore.com>
26876 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26877 missing TYPE Improve the error message generated when compiling a
26878 limited interface in Ada83 or Ada95 mode.
26880 2005-03-29 Robert Dewar <dewar@adacore.com>
26882 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26883 rather than proceed ahead using a junk attribute name.
26885 2005-03-29 Vincent Celier <celier@adacore.com>
26887 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26889 * prj-part.adb (Parse_Single_Project): Set the location of a project
26890 on its defining identifier, rather than on the reserved word "project".
26892 * prj-proc.adb (Expression): Adapt to the fact that default of external
26893 references may be string expressions, not always literal strings.
26894 (Recursive_Process): Set Display_Name equal to Name
26895 when Location is No_Location, that is when there is no actual file.
26896 Get the Display_Name of the project from the source, when it is not a
26898 (Process): Use the Display_Name in error messages
26900 * prj-strt.adb (External_Reference): Allow default to be string
26901 expressions, not only literal strings.
26903 2005-03-29 Vincent Celier <celier@adacore.com>
26905 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26906 file and the reference symbol file to be the same file.
26908 2005-03-29 Thomas Quinot <quinot@adacore.com>
26910 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26911 forbid conversion of a local access-to-subprogram type to a remote one.
26913 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26914 equivalent type for a remote access-to-subprogram type, go back to the
26915 original RAS entity when displaying an error message, so the casing is
26916 the original source casing.
26918 2005-03-29 Robert Dewar <dewar@adacore.com>
26920 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26923 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26925 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26926 subtype if code is being pre-analyzed, to prevent un-expanded
26927 references to protected formals, among others.
26928 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26929 interpretation that can be a call, include the result of the call as a
26930 possible interpretation of the dereference.
26932 * sem_ch5.adb (Process_Bounds): Determine type of range by
26933 pre-analyzing a copy of the original range, and then analyze the range
26934 with the expected type.
26936 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26937 with an overloaded prefix where not all interpretations yield an
26938 access to subprogram, do not rewrite node as a call.
26939 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26940 the node as a call once the context identifies the interpretation of
26941 the prefix whose call yields the context type.
26942 (Valid_Conversion): For the case of a conversion between
26943 local access-to-subprogram types, check subtype conformance using
26944 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26945 detailed error message.
26947 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26949 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26950 indicator, indicate that the formal can never be null.
26951 (Process_Formals): If a formal has a non_null indicator, insert the
26952 resulting subtype immediately before the enclosing subprogram decl,
26953 and not at the beginning of the corresponding declarative part, to
26954 prevent access before elaboration (Ada2005).
26956 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26959 * utils.c (finish_record_type): Use variable_size when setting sizes.
26961 2005-03-29 Robert Dewar <dewar@adacore.com>
26963 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26964 guarantee Unix style line terminators for the output files, even when
26965 running on windows.
26967 2005-03-29 Robert Dewar <dewar@adacore.com>
26969 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26970 buffer if an exception is raised.
26972 2005-03-29 Ed Falis <falis@adacore.com>
26974 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26977 2005-03-29 Robert Dewar <dewar@adacore.com>
26979 * sem_util.ads: Minor reformatting
26980 * gnat_rm.texi: Minor editing.
26982 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26984 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26985 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26987 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26989 * adaint.c (__gnat_portable_spawn): Adjust cast.
26991 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26993 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26995 2005-03-17 Pascal Obry <obry@adacore.com>
26997 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
27000 * expect.c (__gnat_waitpid): Moved here from adaint.c.
27001 Reimplement under Win32 using Win32 API.
27003 (__gnat_kill) [Win32]: Properly close the process handle before leaving
27006 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
27008 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
27009 (DECL_RENAMED_OBJECT): New accessor macro.
27010 (SET_DECL_RENAMED_OBJECT): New setter macro.
27012 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
27013 object in all cases. Attach the renamed object to the VAR_DECL.
27014 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
27015 field is not prescribed.
27017 * misc.c (gnat_handle_option): Handle -gnatO separately.
27018 (gnat_print_decl) <VAR_DECL>: New case.
27019 Print the DECL_RENAMED_OBJECT node.
27021 * lang.opt: Declare separate -gnatO option.
27023 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
27024 pointer, replace it with the renamed object.
27025 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
27026 pointer type if the source is not a fat pointer type whose underlying
27027 array has the same non-zero alias set as that of the destination array.
27029 2005-03-17 Javier Miranda <miranda@adacore.com>
27031 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
27032 (Get_Inheritance_Depth): Removed.
27033 (Set_Inheritance_Depth): Removed.
27035 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
27036 subprogram Get_Expanded_Name because it is not referenced by the
27039 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
27040 (CPP_Get_Inheritance_Depth): Removed.
27041 (CPP_Set_Inheritance_Depth): Removed.
27043 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
27045 2005-03-17 Robert Dewar <dewar@adacore.com>
27047 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
27048 3, since we now expect GCC 3 to do all the work.
27050 2005-03-17 Javier Miranda <miranda@adacore.com>
27052 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27053 of one barrier to avoid wrong usage of this attribute.
27055 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27056 First_Private_Entity.
27058 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27059 the subprogram against wrong usage.
27060 Adapt the code to traverse the entities in the
27061 scope of a record_type because in addition to its usage regarding
27062 packages, this subprogram is also called by Expand_N_Freeze_Entity
27063 to install the visible declarations of the enclosing scope of a
27064 record_type_with_private to establish the proper visibility before
27065 freezing the entity and related subprograms.
27067 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27069 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27072 2005-03-17 Thomas Quinot <quinot@adacore.com>
27074 * exp_ch3.adb (Check_Attr): New subprogram.
27075 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27076 into a new Check_Attr subprogram, in order to provide a more
27077 explanatory error message (including the name of the missing attribute).
27078 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27079 subprogram determines whether a default implementation exists for a
27080 given stream attribute.
27081 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27082 Determine whether to generate a default implementation for each stream
27083 attribute separately, as this depends on the specific attribute.
27085 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27086 limited extension where a stream attribute is missing for a limited
27087 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27088 generate a bogus reference to the missing attribute to prevent
27089 cascaded errors. Instead, generate a null statement.
27091 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27092 available for a limited type if it has been specified for an ancestor
27095 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27097 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27098 entity is an operator.
27100 2005-03-17 Thomas Quinot <quinot@adacore.com>
27102 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27103 spec, to make this predicate available to other units.
27105 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27108 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27109 when no distribution runtime library is available.
27111 * sem_res.adb, sem_dist.adb: Disable expansion of remote
27112 access-to-subprogram types when no distribution runtime library is
27114 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27115 predicate available to other units.
27117 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27118 spec, to make this predicate available to other units.
27120 2005-03-17 Vincent Celier <celier@adacore.com>
27122 * make.adb (Insert_Project_Sources): Make sure the Q is always
27125 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27126 the default for the tree, not the global default naming.
27128 * prj-proc.adb (Recursive_Process): No need to put the default naming
27129 in the project data, it's already there.
27131 2005-03-17 Doug Rupp <rupp@adacore.com>
27133 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27135 * 5xcrtl.ads: Renamed to...
27136 * s-crtl-vms64.ads: ...this new file
27138 2005-03-17 Robert Dewar <dewar@adacore.com>
27141 * namet.adb (Copy_One_Character): Set proper wide character encoding
27142 for upper half character if we have upper half encoding.
27144 2005-03-17 Robert Dewar <dewar@adacore.com>
27146 * par.adb (Par): Improved msg for attempt to recompile predefined unit
27148 2005-03-17 Thomas Quinot <quinot@adacore.com>
27150 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27151 tagged limited type, the TSS is a newly built renaming declaration:
27152 insert it using Set_TSS, not Copy_TSS.
27154 2005-03-17 Javier Miranda <miranda@adacore.com>
27156 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27157 Try_Object_Operation): Analyze the object that is accessible
27158 through the prefix of the subprogram call before we apply
27159 the transformation of the object-operation notation.
27161 2005-03-17 Jose Ruiz <ruiz@adacore.com>
27163 * s-taprob.adb (Initialize_Protection): Initialize the protected
27164 object's owner to Null_Task.
27165 (Lock): If pragma Detect_Blocking is in effect and the caller of this
27166 procedure is already the protected object's owner then Program_Error
27167 is raised. In addition the protected object's owner is updated.
27168 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27169 of this procedure is already the protected object's owner then
27170 Program_Error is raised.
27171 In addition the protected object's owner is updated.
27172 (Unlock): Remove the ownership of the protected object.
27174 * s-taprob.ads (Protection): Add the field Owner, used to store the
27175 protected object's owner.
27176 This component is needed for detecting one type of potentially blocking
27177 operations (external calls on a protected subprogram with the same
27178 target object as that of the protected action). Document the rest of
27181 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27182 Initialize the protected object's owner to Null_Task.
27183 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27184 caller of this procedure is already the protected object's owner then
27185 Program_Error is raised.
27186 Do not raise Program_Error when this procedure is called from a
27188 (Unlock_Entries): Remove the ownership of the protected object.
27189 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27190 of this procedure is already the protected object's owner then
27191 Program_Error is raised.
27192 Do not raise Program_Error when this procedure is called from
27193 a protected action.
27195 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27196 used to store the protected object's owner.
27198 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27199 effect and this procedure (a potentially blocking operation) is called
27200 from whithin a protected action, Program_Error is raised.
27201 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27202 and this procedure (a potentially blocking operation) is called from
27203 whithin a protected action, Program_Error is raised.
27205 2005-03-17 Vincent Celier <celier@adacore.com>
27206 Nicolas Setton <setton@adacore.com>
27208 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27209 switch, not supported by the linker on Darwin. Add '_' before
27210 <library>init, as this character is added unconditionally by the
27212 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27213 correct one ".dylib". This fixes detection of the archive files when
27214 building library projects.
27216 2005-03-17 Vincent Celier <celier@adacore.com>
27218 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27219 -gnat83, -gnat95 and -gnat05.
27221 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
27223 * gnat_ugn.texi: Document gnatmem restriction
27225 2005-03-17 Thomas Quinot <quinot@adacore.com>
27227 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27230 2005-03-17 Robert Dewar <dewar@adacore.com>
27232 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27233 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27234 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27236 * casing.adb: Comment improvements
27238 2005-03-17 Pascal Obry <obry@adacore.com>
27240 * g-expect.adb: Minor reformatting.
27242 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27244 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27245 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27248 2005-03-15 Vincent Celier <celier@adacore.com>
27250 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27251 Add new parameter In_Tree to specify the project tree: needed
27252 by the project manager. Adapt to changes in project manager
27253 using new parameter In_Tree.
27255 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27257 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27258 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27259 ada/bldtools to avoid make -jN failures.
27261 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27263 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27264 to NULL_TREE on entry.
27266 2005-03-15 Robert Dewar <dewar@adacore.com>
27268 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27269 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27270 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27271 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27272 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27273 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27274 system-interix.ads, system-solaris-sparc.ads,
27275 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27276 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27277 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27278 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27279 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27280 Compiler_System_Version to be False.
27282 * opt.ads: Add new flag Opt.Address_Is_Private
27284 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27285 Add new parameter Compiler_System_Version to avoid checking for
27286 completeness of parameters when compiler is compiling itself.
27287 Allows old versions of GNAT to be compiled with new compiler.
27289 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27291 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27292 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27294 (Stack_Base_Available): New flag.
27295 (Get_Page_Size): New overloaded functions imported from C.
27296 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27297 PROT_ON, PROT_OFF): New constants.
27298 (mprotect): New function imported from C.
27299 (pthread_teb_t): New record type.
27301 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27302 (Create_Task): Account for the Yellow Zone and the guard page.
27304 2005-03-15 Vincent Celier <celier@adacore.com>
27306 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27307 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27308 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27309 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27310 Library_File_Name_For): Add new parameter In_Tree
27311 to specify the project tree: needed by the project manager.
27312 Adapt to changes in project manager using new parameter In_Tree.
27313 Remove local imports, use functions in System.CRTL.
27315 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27316 to use the project manager.
27318 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27319 In_Tree to designate the project tree. Adapt to changes in the project
27320 manager, using In_Tree.
27322 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27323 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27324 project tree: needed by the project manager.
27325 (Build_Library): Check that Arg'Length >= 6 before checking if it
27326 contains "--RTS=...".
27328 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27329 Library_File_Name_For): Add new parameter In_Tree to specify the
27330 project tree: needed by the project manager.
27332 * prj.ads, prj.adb: Major modifications to allow several project trees
27333 in memory at the same time.
27334 Change tables to dynamic tables and hash tables to dynamic hash
27335 tables. Move tables and hash tables from Prj.Com (in the visible part)
27336 and Prj.Env (in the private part). Move some constants from the visible
27337 part to the private part. Make other constants deferred.
27338 (Project_Empty): Make it a variable, not a function
27339 (Empty_Project): Add parameter Tree. Returns the data with the default
27340 naming data of the project tree Tree.
27341 (Initialize): After updating Std_Naming_Data, copy its value to the
27342 component Naming of Project Empty.
27343 (Register_Default_Naming_Scheme): Use and update the default naming
27344 component of the project tree, instead of the global variable
27346 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27347 Tree is not defaulted, return the default naming data of the Tree.
27348 (Initial_Buffer_Size): Constant moved from private part
27349 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27350 variables initialized in procedure Initialize.
27351 (Add_To_Buffer): Add two in out parameters to replace global variables
27352 Buffer and Buffer_Last.
27353 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27355 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27357 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27358 for the project tree.
27359 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27360 constant at the beginning of the package spec, so that they cane be used
27361 in subprograms before their full declarations.
27362 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27363 (Empty_Project): Add parameter of type Project_Node_Ref
27364 (Private_Project_Tree_Data): Add component Default_Naming of type
27366 (Buffer, Buffer_Last): remove global variables
27367 (Add_To_Buffer): Add two in out parameters to replace global variables
27368 Buffer and Buffer_Last.
27369 (Current_Packages_To_Check): Remove global variable
27370 (Empty_Name): Move to private part
27371 (No-Symbols): Make it a constant
27372 (Private_Project_Tree_Data): New type for the private part of the
27374 (Project_Tree_Data): New type for the data of a project tree
27375 (Project_Tree_Ref): New type to designate a project tree
27376 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27377 for the project tree.
27379 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27380 imports package Table.
27382 * prj-com.adb: Remove empty, no longer needed body
27384 * prj-com.ads: Move most of the content of this package to package Prj.
27386 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27387 designate the project node tree and Packages_To_Check to replace
27388 global variable Current_Packages_To_Check.
27389 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27390 when needed. Adapt to changes in project manager with project node tree
27393 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27394 project tree to most subprograms. Move tables and hash tables to
27395 private part of package Prj.
27396 Adapt to changes in project manager using project tree In_Tree.
27398 * prj-makr.adb (Tree): New constant to designate the project node tree
27399 Adapt to change in project manager using project node tree Tree
27401 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27402 display the Library_Src_Dir and the Library_Dir.
27403 Add new parameter In_Tree to designate the project node tree to most
27404 subprograms. Adapt to changes in the project manager, using project tree
27406 (Check_Naming_Scheme): Do not alter the casing on platforms where
27407 the casing of file names is not significant.
27408 (Check): Add new parameter In_Tree to designate the
27410 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27411 designate the project tree.
27412 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27414 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27415 to replace those that were in the private part of package Prj.
27416 Add new parameter In__Tree to designate the project node tree to most
27417 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27418 (Post_Parse_Context_Clause): When specifying the project node of a with
27419 clause, indicate that it is a limited with only if there is "limited"
27420 in the with clause, not necessarily when In_Limited is True.
27421 (Parse): Add new parameter In_Tree to designate the project node tree
27423 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27424 designate the project node tree. Adapt to change in Prj.Tree with
27425 project node tree In_Tree.
27427 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27428 tree In_Tree in the call to function Empty_Process to give its initial
27429 value to the project data Processed_Data.
27430 Add new parameters In_Tree to designate the project tree and
27431 From_Project_Node_Tree to designate the project node tree to several
27432 subprograms. Adapt to change in project manager with project tree
27433 In_Tree and project node tree From_Project_Node_Tree.
27435 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27436 to replace those that were in the private part of package Prj.
27437 Add new parameter In_Tree to designate the project node tree to most
27438 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27440 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27441 Project_Node_Tree_Ref to most subprograms.
27442 Use this new parameter to store project nodes in the designated project
27444 (Project_Node_Tree_Ref): New type to designate a project node tree
27445 (Tree_Private_Part): Change table to dynamic table and hash tables to
27446 dynamic hash tables.
27448 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27449 the project tree to most subprograms. Adapt to changes in project
27450 manager using project tree In_Tree.
27452 * makegpr.adb (Project_Tree): New constant needed to use project
27455 2005-03-15 Olivier Hainque <hainque@adacore.com>
27457 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27458 for sigactions with SA_SIGINFO set. Call
27459 __gnat_adjust_context_for_raise before raising, to perform the
27460 potentially required adjustments to the machine context for the GCC
27463 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27465 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27466 Adjust PC by one in the provided machine context.
27467 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27468 so that the handler is passed the context structure to adjust prior to
27470 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27471 SA_SIGINFO sigaction should look like. Call
27472 __gnat_adjust_context_for_raise before actually raising.
27473 (__gnat_adjust_context_for_raise): Default noop to help PC
27474 adjustments before raise from signal handlers.
27475 (__gnat_error_handler): Indirectly call a predicate function to
27476 determine if a condition should be resignaled or not.
27477 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27478 (__gnat_default_resignal_p): Default GNAT predicate.
27480 2005-03-15 Doug Rupp <rupp@adacore.com>
27482 * adaint.c: Prefix #include of VMS system header files with vms/
27483 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27484 Do not define a dummy function "convert_addresses" under Darwin,
27487 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27490 2005-03-15 Nicolas Setton <setton@adacore.com>
27492 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27495 2005-03-15 Robert Dewar <dewar@adacore.com>
27497 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27500 * a-retide.ads: Minor comment changes
27502 2005-03-15 Robert Dewar <dewar@adacore.com>
27504 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27505 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27506 Realloc_For_Chunk to private part of package.
27507 New subprograms for AI-301
27509 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27510 Get_Line procedure.
27511 Avoid unnecessary use of Get/Set_Wide_String
27513 2005-03-15 Robert Dewar <dewar@adacore.com>
27516 * a-stunau.ads, a-stunau.adb:
27517 Change interface to allow efficient (and correct) implementation
27518 The previous changes to allow extra space in unbounded strings had
27519 left this interface a bit broken.
27521 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27523 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27524 Minor reformatting (function specs)
27526 * g-spitbo.adb: New interface for Get_String
27528 * g-spitbo.ads: Minor reformatting
27530 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27532 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27534 2005-03-15 Javier Miranda <miranda@adacore.com>
27535 Robert Dewar <dewar@adacore.com>
27536 Thomas Quinot <quinot@adacore.com>
27537 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27539 * atree.ads, atree.adb: Add support for Elist24 field
27541 * atree.h: Fix wrong definition of Field27
27542 Add support for Elist16 field
27543 Add support for Elist24 field
27545 * einfo.ads, einfo.adb (Abstract_Interfaces,
27546 Set_Abstract_Interfaces): New subprograms.
27547 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27549 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27550 entities rather than a single node.
27551 (Is_Interface, Set_Is_Interface): New subprogram
27552 (First_Tag_Component): New syntesized attribute
27553 (Next_Tag_Component): New synthesized attribute
27554 (Write_Entity_Flags): Upgraded to write Is_Interface
27555 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27556 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27557 (Task_Body_Procedure): New subprogram to read this attribute.
27558 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27559 (Has_Controlled_Component): Now applies to all entities.
27560 This is only a documentation change, since it always worked to apply
27561 this to other than composite types (yielding false), but now this is
27563 Update documentation on Must_Be_Byte_Aligned for new spec
27565 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27566 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27567 uses of the Access_Disp_Table attribute to reference the first dispatch
27568 table associated with a tagged type. As
27569 part of the implementation of abstract interface types,
27570 Access_Disp_Table has been redefined to contain a list of dispatch
27571 tables (rather than a single dispatch table).
27572 Similarly, upgrade all the references to Tag_Component by the
27573 new attribute First_Tag_Component.
27574 (Find_Inherited_TSS): Moved to exp_tss.
27575 Clean up test in Expand_N_Object_Declaration for cases
27576 where we need to do a separate assignment of the initial value.
27577 (Expand_N_Object_Declaration): If the expression in the
27578 declaration of a tagged type is an aggregate, no need to generate an
27579 additional tag assignment.
27580 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27582 Bit packed array ops are only called if operands are known to be
27584 (Component_Equality): When returning an N_Raise_Program_Error statement,
27585 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27586 expects that only expressions have a bona fide type).
27587 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27588 determine the amount of data to be copied.
27590 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27591 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27592 INTERFACE_TYPE_DEFINITION ::=
27593 [limited | task | protected | synchronized] interface
27594 [AND interface_list]
27596 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27598 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27600 (P_Interface_Type_Definition): New subprogram that parses the new
27601 syntax rule of Ada 2005 interfaces
27602 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27603 messages by the correct RENAMES (quotes removed).
27605 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27606 attribute First_Tag_Component.
27608 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27609 (Interface_List, Set_Interface_List): New subprograms.
27610 (Interface_Present, Set_Interface_Present): New subprograms.
27611 (Limited_Present, Set_Limited_Present): Available also in derived
27612 type definition nodes.
27613 (Protected_Present, Set_Protected_Present): Available also in
27614 record type definition and
27615 derived type definition nodes.
27616 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27617 (Task_Present, Set_Task_Present): New subprogram.
27618 (Task_Body_Procedure): Removed.
27619 (Set_Task_Body_Procedure): Removed.
27620 These subprogram have been removed because the attribute
27621 Task_Body_Procedure has been moved to the corresponding task type
27622 or task subtype entity to leave a field free to store the list
27623 of interfaces implemented by a task (for AI-345)
27624 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27625 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27626 expression flag Do_Range_Check
27627 (Exception_Junk): Change to Flag7 to accomodate above change
27628 (Box_Present, Default_Name, Specification, Set_Box_Present,
27629 Set_Default_Name, Set_Specification): Expand the expression
27630 "X in N_Formal_Subprogram_Declaration" into the corresponding
27631 two comparisons. Required to use the csinfo tool.
27633 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27634 "with string" given.
27636 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27639 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27642 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27643 attribute Task_Body_Procedure rather than the old semantic field that
27644 was available in the task_type_declaration node.
27646 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27647 interface type definitions.
27648 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27651 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27652 task type declaration.
27653 (P_Protected): Modified to handle the list of interfaces in a
27654 protected type declaration.
27656 2005-03-15 Doug Rupp <rupp@adacore.com>
27657 Vincent Celier <celier@adacore.com>
27659 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27660 (Gen_Output_File_C): Likewise.
27661 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27663 2005-03-15 Thomas Quinot <quinot@adacore.com>
27665 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27666 is an N_Raise_Constraint_Error node, create a new copy of it without
27667 going through a call to Duplicate_Subexpr.
27669 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27670 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27671 Nicolas Setton <setton@adacore.com>
27672 Ed Schonberg <schonberg@adacore.com>
27678 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27679 representation clause that prescribes a size not equal to the rounded
27680 size of their types.
27681 (gnat_to_gnu_entity, case E_Component): Always look at
27682 Original_Record_Component if Present and not the entity.
27683 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27684 of tagged extension types by not making field for components that are
27686 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27687 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27688 expression to the type of the object when the object is constant.
27689 Reverse defer_debug_incomplete_list before traversing it, so that trees
27690 are processed in the order at which they were added to the list. This
27691 order is important when using the stabs debug format.
27692 If we are deferring the output of debug information, also defer this
27693 output for a function return type.
27694 When adding fields to a record, prevent emitting debug information
27695 for incomplete records, emit the information only when the record is
27697 (components_to_record): New parameter defer_debug.
27698 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27699 (gnat_to_gnu_field_decl): New function.
27700 (substitution_list, annotate_rep): Call it.
27701 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27702 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27703 No longer update discriminants to not be a COMPONENT_REF.
27704 (copy_alias_set): Strip padding from input type; also handle
27705 unconstrained arrays properly.
27707 * gigi.h (write_record_type_debug_info): New function.
27708 Convert to use ANSI-style prototypes. Remove unused
27709 declarations for emit_stack_check, elab_all_gnat and
27710 set_second_error_entity.
27711 (gnat_to_gnu_field_decl): New decl.
27713 * utils.c (write_record_type_debug_info): New function.
27714 (finish_record_type): Delegate generation of debug information to
27715 write_record_type_debug_info.
27716 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27717 (update_pointer_to): Fix pasto.
27718 (convert) <UNION_TYPE>: Accept slight type variations when
27719 converting to an unchecked union type.
27721 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27722 replace the N_Freeze_Entity with a null statement.
27724 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27725 within a constrained subcomponent of an enclosing record, place the
27726 freeze nodes in the scope stack entry for the enclosing record.
27727 (Undelay_Type): New Subprogram.
27728 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27729 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27730 within records; allow them to have freeze nodes if their base types
27733 * exp_util.adb (Remove_Side_Effects): Properly test for
27734 Expansion_Delayed and handle case when it's inside an
27735 N_Qualified_Expression.
27737 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27738 Comes_From_Generic, to recognize accurately that the parent type in a
27739 derived type declaration can be traced back to a formal type, because
27740 it is one or is derived from one, or because its completion is derived
27742 (Constrain_Component_Type): If component comes from source and has no
27743 explicit constraint, no need to constrain in in a subtype of the
27745 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27746 Minor change to propagate Is_Ada_2005 flag
27748 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27749 Expansion_Delayed is False.
27750 (assoc_to_constructor): Ignore fields that have a
27751 Corresponding_Discriminant.
27752 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27753 function returns "by target", dereference the target pointer using the
27754 type of the actual return value.
27755 <all>: Be prepared for a null gnu_result.
27756 (processed_inline_subprograms): Check flag_really_no_inline
27757 instead of flag_no_inline.
27758 (set_second_error_entity): Remove unused function.
27759 (gnat_to_gnu, case N_Selected_Component): Call
27760 gnat_to_gnu_field_decl.
27761 (assoc_to_constructor): Likewise.
27763 2005-03-15 Robert Dewar <dewar@adacore.com>
27764 Ed Schonberg <schonberg@adacore.com>
27765 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27767 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27768 Must_Be_Byte_Aligned for cases where we do not need to use a
27769 System.Pack_nn unit.
27771 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27773 Needed now that we do some processing for IN parameters as well. This
27774 may well fix some unrelated errors.
27775 (Expand_Call): Handle case of unaligned objects (in particular those
27776 that come from packed arrays).
27777 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27778 renamed entity is an inherited operation, re-expand the call using the
27779 original operation, which is the one to call.
27780 Detect attempt to inline parameterless recursive subprogram.
27781 (Represented_As_Scalar): Fix to work properly with private types
27782 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27783 accurate estimate. Yields True in far fewer cases than before,
27784 improving the quality of code that depends on this test.
27786 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27787 over both visible and private declarations to remove them from tree,
27788 and mark subprograms declared in package as eliminated, to prevent
27789 spurious use in subsequent compilation of generic units in the context.
27791 * exp_util.ads: Minor cleanup in variable names
27793 * sem_eval.ads, sem_eval.adb: Minor reformatting
27794 (Compile_Time_Known_Bounds): New function
27796 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27798 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27799 determining whether an unchecked conversion is needed for the argument
27800 of an initialization call.
27802 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27804 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27805 that appears in the instantiation rather than the internal subtype
27806 generated in the wrapper package, to avoid anomalies in gigi when the
27807 target is derived from a private type whose full view is an access type.
27809 2005-03-15 Robert Dewar <dewar@adacore.com>
27811 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27813 Add documentation to replace the use of this flag
27814 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27817 2005-03-15 Thomas Quinot <quinot@adacore.com>
27819 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27820 here from exp_attr so it can be shared between exp_attr and exp_dist.
27821 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27822 all TSS names, not a subset thereof, and the previous name introduced
27823 an unnecessarily confusion that a distinction might exist between
27824 "OK" TSS names and some "not OK" TSS names.
27826 2005-03-15 Doug Rupp <rupp@adacore.com>
27828 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27831 2005-03-15 Pascal Obry <obry@adacore.com>
27832 Eric Botcazou <ebotcazou@adacore.com>
27836 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27837 when IN_RTS. This is to work around a bootstrap path problem.
27839 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27840 table and pass it to __gnat_install_SEH_handler().
27841 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27843 * lang.opt: Fix specification of -fRTS=.
27845 2005-03-15 Doug Rupp <rupp@adacore.com>
27846 Bernard Banner <banner@adacore.com>
27847 Vincent Celier <celier@adacore.com>
27848 Arnaud Charlet <charlet@adacore.com>
27851 This change works fine when gnatlib is built from the gcc directory,
27852 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27853 is not passed to ada/Makefile.in, so more work is needed by a
27854 Makefile/configure expert.
27856 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27857 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27858 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27860 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27861 Run ranlib on libgccprefix.a
27862 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27863 (ADA_INCLUDE_SRCS): Split Ada packages.
27865 2005-03-15 Robert Dewar <dewar@adacore.com>
27867 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27869 * impunit.adb: Add GNAT.UTF_32
27871 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27873 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27874 now uses GNAT.UTF_32).
27876 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27877 capabilities for categorizing characters using Unicode categories
27879 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27881 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27882 instantiation that has been rewritten as a package body, retrieve spec
27883 to generate proper name for implicit_with_clause.
27884 (Install_Parents): Recognize a parent that is an instantiation but has
27885 been rewritten as a package declaration during analysis.
27887 2005-03-15 Javier Miranda <miranda@adacore.com>
27888 Ed Schonberg <schonberg@adacore.com>
27890 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27891 parameter reported some error we immediately return. This improves the
27892 behaviour of the frontend in case of errors.
27893 (Install_Parent, Remove_Parent): Introduce new flag
27894 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27895 ancestor of a generic child unit, when the child is being instantiated.
27896 (Inline_Instance_Body): If we are compiling the private
27897 part or the body of a child unit, restore the proper visibility of the
27898 parents after compiling the instance body.
27900 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27901 Javier Miranda <miranda@adacore.com>
27904 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27905 of a private type, in which case it is underlying_type that denotes
27906 the proper task. Also modified to use the new entity attribute
27907 that is directly available in the task type and task subtype entities
27908 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27909 arrays when other dimensions than the first are constrained by
27910 discriminants of an enclosing record.
27911 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27912 a combination of indexed and selected components, find ultimate entity
27913 and generate the appropriate reference for it, to suppress spurious
27915 (Note_Possible_Modification): If an entity name has no entity, return.
27916 (Is_Variable): A function call never denotes a variable.
27917 (Requires_Transient_Scope): For record types, recurse only on
27918 components, not on internal subtypes that may have been generated for
27919 constrained components.
27921 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27923 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27924 Eliminated as candidates for resolution. Both efficient, and avoids
27925 anomalies with operators declared in deleted code.
27926 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27927 expansion is disabled (as when compiling a generic) to prevent spurious
27928 warnings on prefixes of selected components.
27930 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27932 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27933 attached to a list before checking whether it appears in the private
27934 declarations of the current package.
27935 (Make_Inequality_Operator): Insert declaration in proper declarative
27936 list rather than just setting the Parent field, so that
27937 Is_Private_Declaration can handle it properly.
27939 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27941 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27942 a renaming a body, check that the renamed subprogram in not intrinsic.
27943 (Find_Direct_Name): If several use_visible entities hide
27944 each other, and the context is a predefined file compiled through
27945 rtsfind, keep only the entity that comes from a predefined file.
27947 2005-03-15 Geert Bosch <bosch@adacore.com>
27949 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27950 long float padding to also cover AMD64 and IA64.
27952 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27954 * s-imgwch.adb: Add with and use of Interfaces.
27955 (Img_Wide_Character): Change type of Val to Unsigned_16.
27956 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27958 2005-03-15 Matthew Gingell <gingell@adacore.com>
27960 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27962 2005-03-15 Robert Dewar <dewar@adacore.com>
27964 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27966 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27968 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27970 2005-03-15 Robert Dewar <dewar@adacore.com>
27972 * s-bitops.adb, s-bitops.ads,
27973 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27974 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27975 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27976 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27977 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27978 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27979 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27980 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27983 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27985 * utils2.c (build_binary_op): Fix typo.
27987 2005-03-15 Doug Rupp <rupp@adacore.com>
27989 * s-crtl.ads (popen,pclose): New imports.
27991 2005-03-15 Cyrille Comar <comar@adacore.com>
27993 * comperr.adb (Compiler_Abort): remove references to obsolete
27994 procedures in the bug boxes for various GNAT builds.
27996 2005-03-15 Vincent Celier <celier@adacore.com>
27998 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
28000 2005-03-15 Geert Bosch <bosch@adacore.com>
28001 Arnaud Charlet <charlet@adacore.com>
28002 Robert Dewar <dewar@adacore.com>
28003 Cyrille Comar <comar@adacore.com>
28004 Sergey Rybin <rybin@adacore.com>
28006 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
28007 too specific and long-winded to be appropriate for the GNAT User's
28009 Warn about use of GCC switches not documented in the GNAT User's Guide,
28010 as these may cause generated code to not conform to Ada semantics.
28011 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
28012 Add documentation for -gnat95 and -gnat05 switches
28013 Remove paragraph documenting obsolete way to refer to third party
28015 Add a few references to Ada_05 that were missing.
28016 Update documentation on -gnatZ/-gnatL.
28017 Document limitation when using -m64 under Solaris.
28018 Change the "Name Casing" subsection of the pretty-printer section
28019 according to the changes in the dictionary processing.
28021 * gnat_rm.texi: Document the Ada_05 pragma.
28022 Section on record representation clauses describes the new more
28023 relaxed rules about placement of large packed bit array components.
28024 Add documentation of GNAT.UTF_32
28026 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
28028 * misc.c (gnat_post_options): Turn off structural
28031 2005-03-08 Laurent Guerby <laurent@guerby.net>
28033 * system-linux-sparc.ads: Fix typo in previous commit.
28035 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
28036 Laurent Guerby <laurent@guerby.net>
28039 * system-linux-sparc.ads: New.
28040 * Makefile.in: Add sparc linux entry.
28042 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
28044 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
28045 parameters as unused.
28047 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
28048 Partial merge from libada-gnattools-branch:
28050 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28051 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28052 into code in gnattools/Makefile.in. Remove direct dependencies on
28053 stamp-tools by tools clauses.
28054 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28055 * config-lang.in: Add gnattools to $lang_dirs.
28057 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
28060 * utils.c (gnat_type_for_mode): Return null instead of ICE because
28061 we asked for an unknown mode.
28063 2005-02-12 Richard Henderson <rth@redhat.com>
28065 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28066 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28068 2005-02-10 Andreas Jaeger <aj@suse.de>
28070 * init.c (__gnat_initialize): Mark parameter as unused.
28072 2005-02-09 Doug Rupp <rupp@adacore.com>
28074 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28075 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28077 2005-02-09 Doug Rupp <rupp@adacore.com>
28079 * gnatchop.adb (dup, dup2),
28080 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28082 * gnatlbr.adb (mkdir),
28083 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
28085 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28087 2005-02-09 Doug Rupp <rupp@adacore.com>
28089 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28091 2005-02-09 Robert Dewar <dewar@adacore.com>
28092 Thomas Quinot <quinot@adacore.com>
28093 Javier Miranda <miranda@adacore.com>
28094 Pascal Obry <obry@adacore.com>
28095 Ed Schonberg <schonberg@adacore.com>
28096 Doug Rupp <rupp@adacore.com>
28097 Gary Dismukes <dismukes@adacore.com>
28098 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28100 * g-zstspl.ads: New file.
28102 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28104 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28106 Add definition of Wide_Wide_Space for AI-285
28108 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28109 interface (to support Ada 95 and Ada 2005 units).
28110 Add Unbounded_IO files
28111 Add entries for Wide_Wide packages for AI-285
28112 Add list of containers packages to Ada 2005 unit list
28114 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28115 support new Unbounded_IO package cleanly.
28117 * g-utf_32.ads, g-utf_32.adb: New files.
28119 * Makefile.rtl: Add entry for g-utf_32
28120 Add new files for Unbounded_IO
28121 Adjust make file for new AI-285 wide wide packages
28122 Add AI-302 containers to the run time.
28124 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28125 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28126 subprograms for AI-301.
28128 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28130 * a-stunau.ads: Minor comment correction
28132 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28134 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28135 (Check_RPC): Update to match changes in expanded code.
28136 Clean up unused entity.
28138 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28139 was not taken into account.
28140 This includes proper initialization with Normalize_Scalars.
28141 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28142 normalize scalars cases (particularly the latter) to do a better job
28143 of finding invalid representations.
28145 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28147 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28150 * exp_dist.adb: Add support for wide wide character type
28151 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28152 private part, generate stub bodies at the end of the private part,
28153 not the visible part.
28154 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28156 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28157 generic wrapper to execute final processing after completing the
28158 expansion of the RPC receiver for an RACW.
28160 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28161 packages and attributes.
28162 (Preset_Names): Addition of the new reserved words of Ada 2005,
28163 that is interface, overriding and synchronized.
28164 (Get_Pragma_Id): Give support to the use of the new reserved word
28165 "interface" as a pragma name.
28166 (Is_Pragma_Name): Give support to the use of the new reserved word
28167 "interface" as a pragma name.
28168 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28169 attribute implementation.
28171 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28172 checks to entities that are output parameters of Asm operations.
28173 Handle the Stream_Size attribute.
28174 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28176 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28178 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28179 for second parameter being 0.0.
28180 Add support for wide wide character type.
28181 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28183 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28184 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28185 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28186 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28187 for wide wide character cases.
28189 * cstand.adb: Create entities for Wide_Wide_Character and
28192 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28193 accordance with AI-258.
28194 Add new declarations for 16/32 bit C character types (Part of AI285)
28196 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28197 (Obsolescent_Warning): New field
28198 (Rep_Clause): New local subprogram used to share code. Returns the rep
28199 clause for which the name is given in parameter.
28200 (Has_Stream_Size_Clause): New routine.
28201 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28202 (Address_Clause): Implementation is now using Rep_Clause.
28203 (Alignment_Clause): Idem.
28204 (Size_Clause): Idem.
28206 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28207 entity in non-Ada 2005 mode and generate warning.
28209 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28210 (Prag): Code cleanup. Remove old gnat pragma "overriding"
28212 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28213 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28214 on the named unit if the pragma is not in the current compilation unit,
28215 so that elaboration calls in the current unit can set up an elaboration
28216 dependency on the named unit, as needed.
28217 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28218 subprogram as well as for subprograms declared within a package.
28219 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28222 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28223 to z) to avoid some instances of duplication for Wide_Wide packages.
28225 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28228 * scn.adb: Char_Literal_Value field is now a Uint
28230 * scng.adb: Significant rewrite to handle new Ada 2005 features
28231 allowing wide and wide wide characters in program text, e.g. for
28232 identifiers, as described in AI-285.
28233 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28234 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28235 (Scan): Give support to the new reserved words.
28237 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28238 warning notifying that interface, overriding, and synchronized are
28239 new reserved words.
28240 (P_Pragma): Allow the use of the new reserved word "interface" as
28243 * gnatls.adb, gnatbind.adb,
28244 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28245 identifiers named "interface" to "SAL_Interface".
28247 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28248 (Structured Exception handling).
28249 (Gen_Main_C): Idem.
28252 (Gen_Main_Ada): Set the default exit code if specified.
28253 (Gen_Main_C): Likewise.
28255 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28256 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28258 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28261 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28262 has a collision with the new Ada 2005 "interface" reserved word.
28264 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28265 generate a warning notifying that interface, overriding, and
28266 synchronized are new reserved words.
28268 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28269 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28270 and Tok_Synchronized.
28272 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28273 "dispatching" rather than "primitive" operations, since dispatching
28274 calls are now allowed to abstract formal subprograms (which are not
28276 Char_Literal_Value field is now a Uint
28277 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28278 compute the actual subtype of the designated object to impose the proper
28280 (Resolve_Selected_Component): Do not insert an access check if the
28281 prefix is an access type: such a node is expanded into an explicit
28282 dereference, on which the access check is performed anyway. Removes
28283 expensive duplicate checks.
28284 (Resolve_Call): Use new flag Is_Obsolescent and field
28285 Obsolescent_Warning so that pragma Obsolescent works on library
28287 Add support for wide wide character type
28288 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28289 value by a warning message.
28290 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28291 as fixed-point, and one of the operands is non-static and universal, it
28292 can only be an illegal exponentiation operation, in which case there is
28293 no real value to retrieve.
28295 * exp_strm.adb: Add support for wide wide character type
28296 (Build_Elementary_Input_Call): Compute the size of the stream element by
28297 querying the rep chain to find the Stream_Attribute attribute value.
28298 (Build_Elementary_Write_Call): Ditto.
28300 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28301 Add support for wide wide character type
28302 Replace the error messages on wrong null-exclusion value by warnings
28303 as described in Ada 2005.
28304 (Resolve_Extension_Aggregate): Document the fact that the error
28305 message on class-wide expressions in extensions aggregates.
28307 * sem_case.adb: Add support for wide wide character type
28309 * sem_ch13.adb: Add support for wide wide character type
28310 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28312 * sem_ch3.adb: Add support for wide wide character type
28313 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28314 now-useless Itype, to prevent cascaded errors on a compiler built
28317 * sem_ch8.adb: Add with and use of Sem_Disp.
28318 (Analyze_Subprogram_Renaming): Replace unclean uses of
28319 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28320 of Corresponding_Spec to Empty).
28321 (Attribute_Renaming): Replace use of Corresponding_Spec with
28322 Corresponding_ Formal_Spec and simplify condition.
28323 (Use_One_Package): Check that scope of homonym of identifier is defined,
28324 before checking whether it is a wrapper package.
28325 Add support for wide wide character type
28327 * sem_eval.adb: Add support for wide wide character type.
28328 (Eval_Arithmetic_Op): Check for compile time known signed integer
28329 overflow in the non-static case.
28330 (Subtypes_Statically_Match): A formal scalar type and its base type do
28331 not statically match.
28333 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28334 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28336 (Unit_Declaration_Node): Ditto.
28337 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28338 has a packed array type, the prefix has been rewritten into a type
28339 conversion. Determine variable-ness from the converted expression.
28340 Handle wide wide character cases.
28342 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28344 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28345 Remove ["0A"] from comment, since it can look like a line terminator.
28346 Currently we don't permit this, but this is under discussion by the
28347 ARG, and it is easy enough to use a different example.
28349 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28350 handling UTF-32 encoding for wide wide character.
28351 Implement new brackets coding ["hhhhhhhh"]
28352 Add UTF-8 encodings for full UTF-32 range
28354 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28356 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28357 bit range Add full UTF-32 support.
28358 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28359 notify that constraint error will be raised at run-time
28360 because a null value is assigned to a null-excluding object.
28361 Remove some obsolete declarations and make Char_Code
28364 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28365 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28366 Rcheck subprograms.
28368 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28369 wrong null-exclusion value by a warning message.
28370 (Enable_Range_Check): Do range check if the prefix is an
28371 explicit dereference whose designated object is an unconstrained array.
28372 Current algorithm for removing duplicate checks is over-eager in this
28375 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28376 null-exclusion value by a warning message
28378 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28379 completely. Add support for Uint2 field
28381 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28382 exp_prag.adb: Char_Literal_Value field is now a Uint.
28384 * exp_util.adb (Insert_Actions): Replace
28385 N_Formal_Subprogram_Declaration by
28386 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28387 Char_Literal_Value field is now a Uint.
28389 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28390 defined for subprogram renaming declarations. When set, the field
28391 indicates the defining entity of a corresponding formal subprogram
28392 when the renaming corresponds to a formal subprogram association in an
28394 (Set_Corresponding_Formal_Spec): New procedure to return
28395 Corresponding_Formal_Spec field.
28396 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28397 (which is now a subtype).
28398 Char_Literal_Value field is now a Uint
28400 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28401 pointer to the base of the dispatch table.
28402 Minor changes to comments.
28403 (Controlling_Type): New function for determining the tagged type
28404 associated with a tagged primitive subprogram.
28405 (Expand_Dispatching_Call): Add support for a controlling actual that is
28406 directly a value of type Ada.Tag rather than a tagged object.
28408 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28409 describing the new layout.
28410 (Dispatch_Table): The expander computes the actual array size, allocates
28411 the Dispatch_Table record accordingly, and generates code that displaces
28412 the base of the record after the Typeinfo_Ptr component. The access to
28413 these components is done by means of local functions.
28414 (Offset_To_Top): New function.
28415 (Typeinfo_Ptr): New function.
28416 (Get_TSD): Modified to access the new position of the TSD.
28417 (Set_TSD): Modified to save the TSD in its new position.
28419 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28420 case of formal abstract subprograms. Add check and message for -gnat05.
28423 * sem_ch12.adb: Add with and use for Sem_Disp.
28424 (Analyze_Associations): Minor change from "=" to "in" for use of
28425 N_Formal_Subtype_Declaration (which is now a subtype).
28426 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28427 N_Formal_Subtype_Declaration (which is now a subtype).
28428 (Analyze_Formal_Subprogram): Add handling for
28429 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28430 dispatching, setting the controlling status of the formal parameters
28431 and result, and issuing an error if there is no controlling type for
28432 the formal subprogram.
28433 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28434 which is an unclean use of that field, we set the new field
28435 Corresponding_Formal_Spec to make the formal subprogram available to
28436 processing in Analyze_Subprogram_Declaration.
28437 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28438 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28439 Constrained, so that it is is does not statically match its anonymous
28442 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28443 abstract formal subprograms in error check for functions returning
28444 abstract types. Set scope of new designator for
28445 a parameterless subprogram, so that it is available when checking the
28446 body for nested subprograms, before full analysis of said body.
28447 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28448 subprogram only if inner one comes from source.
28449 (Analyze_Function_Call): If the call is given in object notation, the
28450 analysis of the name rewrites the node and analyzes it with the proper
28451 argument list. After analyzing the name, if the call has been rewritten
28452 and the result type is set, no further analysis is needed.
28453 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28454 mark in function specification, in a context where the formals are
28455 visible and hide outer homographs.
28457 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28458 as the tagged type for the cases of abstract formal subprograms and
28459 renamings of those. Clean up spec comments.
28460 (Check_Dispatching_Context): Add error message to indicate "abstract
28461 procedure", covering the case of a call to a formal abstract procedure
28462 that has statically tagged operands.
28463 (Check_Dispatching_Call): Check for the case of an actual given by
28464 a tag-indeterminate function call whose type is an ancestor of the
28465 containing call's associated tagged type. This situation can occur
28466 for inherited primitives with function defaults. In this case we
28467 use the tagged type's tag directly as the controlling argument for
28469 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28471 * sprint.adb (Sprint_Node_Actual): Split
28472 N_Formal_Subprogram_Declaration into two alternatives for the new
28473 cases N_Formal_Abstract_Subprogram_Declaration and
28474 N_Formal_Concrete_Subprogram_Declaration.
28475 Char_Literal_Value field is now a Uint.
28477 * trans.c: Get rid of junk Uint2 reference.
28478 Char_Literal_Value field is now a Uint.
28479 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28480 (gigi): Correct third arg to gimplify_body.
28482 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28483 (TYPE_LANG_FLAG_0): Check for record or union.
28485 * treepr.adb: Char_Literal_Value field is now a Uint
28487 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28490 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28491 Add full UTF-32 support
28492 Char_Code is now 32 bits
28494 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28495 wide character UTF_32 line terminators.
28496 Initialize Main_Source_File to avoid error when no main
28499 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28500 (Main_Source_File) when no main source has been loaded, to avoid
28503 2005-02-09 Robert Dewar <dewar@adacore.com>
28505 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28506 Fix name of Set routine
28508 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28511 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28512 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28515 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28516 forms of Get_Line subprograms for AI-301.
28518 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28519 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28520 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28521 a-stwima.ads: Minor reformatting.
28523 2005-02-09 Doug Rupp <rupp@adacore.com>
28524 Thomas Quinot <quinot@adacore.com>
28526 * adaint.c, adaint.h
28527 [VMS] (to_ptr32): New function.
28528 (MAYBE_TO_PTR32): New macro.
28529 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28531 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28532 [VMS] (#define fork()): Remove since unneccessary.
28533 (__gnat_set_close_on_exec): New routine to support
28534 GNAT.OS_Lib.Set_Close_On_Exec.
28536 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28537 the parent side as close-on-exec so that they are not inherited by the
28540 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28541 set or clear the FD_CLOEXEC flag on a file descriptor.
28543 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28544 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28548 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28549 on the field if Pragma Component_Alignment (Storage_Unit).
28550 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28551 side-effects as if it were a constant; also make SAVE_EXPR to protect
28553 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28555 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28556 (components_to_record): Test it.
28557 Fix improper usage of REFERENCE_CLASS_P.
28559 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28562 * utils2.c: Minor reformatting.
28564 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28565 handle other cases like RECORD_TYPE.
28567 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28569 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28571 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28572 component of an array of arrays in an assignment context, and the
28573 aggregate has component associations that require sliding on
28574 assignment, force reanalysis of the aggregate to generate a temporary
28575 before the assignment.
28576 (Must_Slide): Make global to the package, for use in Gen_Assign.
28578 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28580 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28581 unchecked union with no inferable discriminants, return a
28582 Raise_Program_Error node, rather than inserting it at the point the
28584 (Expand_Record_Equality, Component_Equality): Handle properly the case
28585 where some subcomponent is an unchecked union whose generated equality
28586 code raises program error.
28588 2005-02-09 Doug Rupp <rupp@adacore.com>
28590 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28591 [VMS] (#define exit hack): Remove.
28593 2005-02-09 Pascal Obry <obry@adacore.com>
28594 Arnaud Charlet <charlet@adacore.com>
28596 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28597 address of the exception registration. The Win32 version of this
28598 routine calls __gnat_install_SEH_handler() to initialize the SEH
28599 (Structured Exception Handling) handler.
28600 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28601 SEH (Structured Exception Handling) now.
28602 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28603 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28604 preprocessor condition protecting the call to the extra eh setup
28605 subprogram, which is only available for the ppc target.
28606 (__gnat_clear_exception_count): replaced reference to
28607 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28609 * seh_init.c: New file.
28611 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28612 (GNATBIND_OBJS): Idem.
28614 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28615 routine takes a new parameter (a pointer to the exception registration
28616 for the SEH (Structured Exception Handling) support.
28618 * raise.h: (__gnat_install_SEH_handler): New prototype.
28619 Update copyright notice.
28621 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28622 record and initialize it by calling __gnat_install_SEH_handler.
28624 2005-02-09 Vincent Celier <celier@adacore.com>
28626 * make.adb (Gnatmake): Do not fail when the main project has no object
28629 2005-02-09 Doug Rupp <rupp@adacore.com>
28631 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28632 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28633 [VMS]: Add translations for g-enblsp.adb.
28635 * s-asthan-vms.adb: Removed.
28636 * s-asthan-vms-alpha.adb: Added.
28638 2005-02-09 Pascal Obry <obry@adacore.com>
28640 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28641 (LIBGNAT_OBJS): Add seh_init.o.
28643 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28646 * Makefile.in: Link all gnat tools with -static-libgcc, since
28647 -shared-libgcc is now used by default on some systems (e.g. linux with
28649 Remove references to Makefile.prolog/generic, no longer used.
28651 2005-02-09 Vincent Celier <celier@adacore.com>
28653 * prj-makr.adb (Process_Directory): Put file name in canonical case
28654 before matching against the patterns.
28655 If gnatname has been invoked as <prefix>-gnatname
28656 then invoke the compiler as <prefix>-gcc, not just "gcc".
28658 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28660 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28661 with expansion disabled. The actual subtype is needed among other
28662 places when the selected component appears in the context of a loop
28663 bound, and denotes a packed array.
28664 (Operator_Check): Always use the first subtype in the
28665 error message, to avoid the appearance of internal base types.
28666 (Transform_Object_Operation): Copy each actual in full
28667 to the parameter associations of the constructed call, rather than
28668 using the shallow copy mechanism of New_Copy_List. This ensures that
28669 the chaining of named associations is done properly.
28670 (Complete_Object_Operation): Rewrite node, rather than
28671 replacing it, so that we can trace back to the original selected
28674 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28675 and calls that use object notation, if the called function is not
28676 declared in a withed unit, place the elaboration constraint on the
28677 unit in the context that makes the function accessible.
28678 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28679 imposes an elaboration constraint between two packages.
28681 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28683 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28684 views of a private type after handling its private dependents, to
28685 maintain proper stack discipline between entry and exit from the
28688 2005-02-09 Cyrille Comar <comar@adacore.com>
28690 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28691 Minor reformatting.
28693 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28695 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28696 fields for foreign threads.
28698 2005-02-09 Doug Rupp <rupp@adacore.com>
28700 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28701 recursion warnings when compiled with -gnatdm.
28703 2005-02-09 Robert Dewar <dewar@adacore.com>
28705 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28706 Slight fix to documentation of -gnaty with no parameters
28708 * xr_tabls.ads: Add ??? comment for missing overall comment
28710 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28711 we now use by default.
28713 * xsnames.adb: Adjust end of file test to look for five space followed
28714 by '#' instead of six spaces. The format of xsnames.adb was modified
28715 in the last update.
28717 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28720 * clean.adb: Minor reformatting.
28722 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28723 gnatname.adb: Minor reformatting
28724 Add 2005 to copyright output when utility is run
28726 * csets.adb: Eliminate obsolete comment
28728 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28731 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28733 2005-02-09 Sergey Rybin <rybin@adacore.com>
28735 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28736 the difference between compact and incompact layout and add the record
28737 representation clause to the example illustrating different layouts.
28738 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28739 component clauses").
28741 2005-02-09 Florian Villoing <villoing@adacore.com>
28743 * gnat_ugn.texi: Fix typos.
28744 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28746 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28747 in the generated documentation.
28749 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28751 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28753 Update linker wrapper when linking with non GNU C++.
28755 2005-02-09 Pascal Obry <obry@adacore.com>
28758 Document the procedure to debug the DllMain routine on Windows.
28759 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28761 Document new BIND qualifer /RETURN_CODES=VMS.
28763 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28765 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28766 Edited gnatmetric chapter
28768 2005-02-09 Robert Dewar <dewar@adacore.com>
28771 Changes to document new wide wide character support
28773 Update documentation on Normalize_Scalars and Initialize_Scalars
28775 2005-02-09 Pascal Obry <obry@adacore.com>
28777 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28779 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28781 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28782 from the VxWorks kernel) that is needed for getting the active
28783 priority of the different tasks.
28785 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28786 Use a pragma Elaborate_Body in the spec file instead.
28787 Noticed by code reading.
28789 2005-02-09 Thomas Quinot <quinot@adacore.com>
28791 * exp_util.ads: Minor correction in comment.
28793 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28795 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28796 since this procedure is now too complex to be worth inlining.
28798 2005-02-09 Richard Henderson <rth@redhat.com>
28800 * utils.c (gnat_define_builtin): Remove.
28801 (gnat_install_builtins): Use build_common_builtin_nodes.
28803 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28805 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28806 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28807 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28808 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28809 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28810 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28811 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28812 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28813 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28814 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28815 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28816 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28817 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28818 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28819 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28820 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28821 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28822 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28823 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28824 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28825 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28826 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28827 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28828 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28829 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28830 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28831 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28832 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28833 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28834 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28835 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28836 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28837 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28838 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28841 2005-01-27 Laurent Guerby <laurent@guerby.net>
28843 * Makefile.in: Fix a-intnam.ads from previous commit,
28844 add 2005 to copyright.
28845 * a-intman-rtems.ads: Renamed to...
28846 * a-intnam-rtems.ads:
28848 2005-01-27 Laurent Guerby <laurent@guerby.net>
28850 * Makefile.in: Rename GNAT RTEMS specific files.
28851 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28852 5rosinte.ads, 5rparame.adb: Replaced by files below.
28853 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28854 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28856 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28857 Laurent Guerby <laurent@guerby.net>
28860 * 5rosinte.ads: Add No_Key constant.
28861 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28862 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28864 2005-01-26 Laurent Guerby <laurent@guerby.net>
28867 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28869 2005-01-20 Richard Henderson <rth@redhat.com>
28871 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28872 a-intnam-linux.ads and system-linux-alpha.ads.
28873 * a-intnam-linux-alpha.ads: Remove file.
28874 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28875 * system-linux-alpha.ads: New file.
28877 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28880 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28881 set to the new string.
28883 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28885 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28888 2005-01-18 Richard Henderson <rth@redhat.com>
28890 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28891 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28893 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28895 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28897 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28898 (GCC_ZCX_Support): Likewise.
28900 2005-01-11 Bastian Blank <waldi@debian.org>
28902 * system-linux-s390.ads: Define Preallocated_Stacks.
28903 * system-linux-s390x.ads: Likewise.
28905 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28907 * gnat_ugn.texi: Fix texi errors with null variables.
28909 2005-01-03 Thomas Quinot <quinot@adacore.com>
28911 * gen-soccon.c: New utility program to generate g-soccon.ads
28914 * socket.c, gsocket.h: Split inclusion of system header files into a
28915 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28917 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28918 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28919 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28920 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28921 should not be edited by hand anymore, but should be regenerated using
28924 2005-01-03 Robert Dewar <dewar@adacore.com>
28925 Ed Schonberg <schonberg@adacore.com>
28926 Vincent Celier <celier@adacore.com>
28928 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28929 on/off, since this is an obsolescent feature, for which we now generate
28932 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28933 warning mode is set and obsolescent usage of this attribute occurs.
28934 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28935 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28936 predates, and partly motivates, the adoption of the AI.
28937 Implement new Ada 2005 attribute Mod
28939 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28942 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28944 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28945 pragma restrictions.
28946 New entry for Ada 2005 attribute Mod.
28949 Add recognition of new pragma Restrictions No_Dependence
28950 Recognize restriction No_Obsolescent_Features at parse time
28952 * bcheck.adb: Add circuitry for checking for consistency of
28953 No_Dependence restrictions.
28955 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28958 * restrict.ads, restrict.adb: Add subprograms to deal with
28959 No_Dependence restrictions.
28961 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28964 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28965 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28967 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28968 dummy parameter to scng instantiation.
28969 Needed for new restriction No_Obsolescent_Features
28971 * scn.adb: (Obsolescent_Check): New procedure
28972 Needed for new restriction No_Obsolescent_Features
28974 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28975 specified by AI-285, needed for implementation of AI-388 (adding greek
28976 pi to Ada.Numerics).
28977 Add new generic formal to scng, needed for new restriction
28978 No_Obsolescent_Features.
28980 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28982 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28983 restrictions lines.
28984 (Scan_ALI): When finding an unexpected character on an R line, raise
28985 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28986 Ignore_Errors is True, default restrictions are set and scanning of the
28987 ALI file continues with the next line. Also, when Bad_R_Line is raised
28988 and Ignore_Errors is True, skip to the end of le line.
28990 * sem_ch10.adb: Check that explicit with's do not violate
28991 No_Dependence restrictions.
28992 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28993 illegal context clauses containing child units of instance.
28995 * sem_prag.adb: Processing and checking for new No_Dependence
28997 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28998 analyze and check the External argument.
29000 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
29002 2005-01-03 Robert Dewar <dewar@adacore.com>
29004 * atree.adb: Add a fifth component to entities
29005 This allows us to add 32 flags and four new fields
29007 * atree.ads: Add a fifth component to entities
29008 This allows us to add 32 flags and four new fields
29010 * einfo.ads, einfo.adb: Document new fields and new flags now available
29011 Add routines for printing new fields
29013 * treepr.adb: Call routines to print out additional fields if present
29015 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29017 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
29018 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
29020 * Makefile.in: Add support to build shared Ada libraries on solaris x86
29021 Remove gpr2make, replaced by gprmake.
29022 Remove references to gnatmem and libaddr2line.
29023 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
29024 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
29025 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
29026 a-numaux-darwin.ads and a-numaux-darwin.adb
29027 Enable mlib-tgt-lynxos.adb on lynxos.
29029 * Make-lang.in: Remove rules for gpr2make.
29030 When generating sdefault.adb, do not call Relocate_Path
29031 on S3 for function Target_Name, as it is not a path.
29032 Remove references to gnatmem and libaddr2line.
29034 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
29037 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
29039 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
29040 address is incompatible with its base type alignment constraints when
29041 this can be decided statically.
29043 2005-01-03 Olivier Hainque <hainque@adacore.com>
29045 * decl.c (compatible_signatures_p): New function. The intended purpose
29046 is to check if two function signatures for a call-site and a callee are
29047 compatible enough for the call to be valid. The underlying purpose is
29048 to check if a call to a mapped builtin is using the right interface.
29049 The current code actually does not check antyhing - this a placeholder
29050 for future refinements.
29051 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29052 builtin calls for convention Intrinsic.
29054 * gigi.h (builtin_decl_for): Declare (new function).
29056 * utils.c (gnat_install_builtins): Install the target specific builtins.
29057 (builtin_decl_for): New function, provide a dummy body for now.
29059 2005-01-03 Geert Bosch <bosch@adacore.com>
29061 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29062 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29063 (Pred): Implement in terms of Succ.
29065 * trans.c (convert_with_check): Reimplement conversion of float to
29068 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29069 Vincent Celier <celier@adacore.com>
29071 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29072 bounds can be negative, and must be declared Int, not Nat.
29074 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29075 array is checked after using the index in the array.
29077 * makegpr.adb (Add_Switches): Check if there is a package for the
29078 processor. If there is no package, do not look for switches.
29080 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29082 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29083 generation of predefined stream operations (specs and bodies) should
29084 proceed. Under various restrictions these subprograms must not be
29087 2005-01-03 Thomas Quinot <quinot@adacore.com>
29090 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29091 amount of PCS-specific code in RACW stubs generation.
29092 (Copy_Specification): Set Etype on copied formal parameter entities, as
29093 this information is needed for PolyORB stubs generation.
29094 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29095 variable Dynamic_Async.
29096 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29097 (Build_RPC_Receiver_Specification): Make generic again, as recent
29098 changes have allowed RPC receivers to have the same profile for both
29099 variants of the PCS.
29100 Reorganise RPC receiver generation to reduce differences between the
29101 structure of GARLIC and PolyORB RPC receivers.
29102 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29104 Simplify elaboration code for RCI packages.
29106 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29107 generation to reduce differences between the structure of GARLIC and
29108 PolyORB RPC receivers.
29110 * s-stratt.adb: Fix typo in comment.
29112 2005-01-03 Thomas Quinot <quinot@adacore.com>
29114 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29115 copied from Make_Init_Call).
29117 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29118 reads and assignments on a temporary variable declared with appropriate
29121 2005-01-03 Robert Dewar <dewar@adacore.com>
29123 * i-c.adb (To_C): Raise CE if string is null and Append_Null
29125 2005-01-03 Robert Dewar <dewar@adacore.com>
29127 * i-cstrin.adb (Update): Do not append a null in form called with a
29128 String. This avoids unintended behavior.
29130 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29133 * init.c: Fix warnings on Free BSD section.
29135 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29138 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29141 2005-01-03 Vincent Celier <celier@adacore.com>
29143 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29144 libraries when Unique_Compile is True (-u switch).
29147 2005-01-03 Robert Dewar <dewar@adacore.com>
29149 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29150 upper case letter or underscore after W, as allowed by spec.
29152 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29154 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29155 darwin port by using proper type definitions from header files.
29156 Use SIGTERM instead of SIGABRT for SIGADAABORT.
29158 2005-01-03 Robert Dewar <dewar@adacore.com>
29160 * par.adb: Enhance error message handling for configuration file
29163 2005-01-03 Robert Dewar <dewar@adacore.com>
29165 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29166 removed during the previous update (test properly for case of dividing
29167 largest negative number by -1, which generates overflow).
29169 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29170 Sergey Rybin <rybin@adacore.com>
29172 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29173 to use as the defining identifier for a formal package.
29174 (Remove_Parent): If the instance takes place within (an instance of)
29175 a sibling, preserve private declarations of common parent.
29177 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29179 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29180 to determine whether one of the operands is a fixed-point type for
29181 which a user-defined multiplication or division operation might be
29184 * sem_res.adb (Valid_Conversion): The legality rules for conversions
29185 of access types are symmetric in Ada 2005: either designated type can
29188 2005-01-03 Vincent Celier <celier@adacore.com>
29190 * s-fileio.adb (Temp_File_Record): Change length of string component
29191 Name from L_tmpnam + 1 to max_path_len + 1.
29193 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29195 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29196 Self_Id.Deferral_Level = 0.
29197 (Do_Pending_Action): Move this function to the spec.
29199 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29200 Do_Pending_Action explicitely when needed, in case we're using
29201 No_Abort restrictions.
29203 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29204 deferral level since it will not get changed by the generated code.
29205 Keeping a default value of 1 would prevent some operations (e.g.
29206 select or delay) to proceed successfully.
29208 2005-01-03 Ben Brosgol <brosgol@adacore.com>
29209 Robert Dewar <dewar@adacore.com>
29210 Cyrille Comar <comar@adacore.com>
29212 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29213 porting guide chapter (vms version).
29214 Revised doc title (removed "for native platforms") and subtitle.
29215 Add discussion on warning flag for obsolescent features. First we
29216 note that it applies to obsolete GNAT features, which was previously
29217 omitted. Second we contrast the behavior with that of the new
29218 Ada 2005 AI-368 restriction No_Obsolescent_Features.
29219 Preliminary rewriting of GNAT & libraries chapter in order to take
29220 into account default project locations & new project manager
29223 2005-01-03 Robert Dewar <dewar@adacore.com>
29225 * cstand.adb (Create_Operators): Clean up format and documentation of
29226 unary and binary operator result tables. No change in code, just
29227 reformatting and addition of comments.
29229 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29230 sem_ch2.adb: Minor reformatting
29232 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29233 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29234 comments for Tree_Read and Tree_Write.
29236 2005-01-03 Pascal Obry <obry@adacore.com>
29238 * exp_attr.ads: Minor reformatting.
29240 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29242 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29245 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29247 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29248 whether the ancestor type is private, as may be the case with nested
29251 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29254 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29256 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29258 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29259 * utils2.c (build_unary_op): Likewise.
29261 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29263 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29265 2004-12-19 Richard Henderson <rth@redhat.com>
29267 * trans.c (gigi): Update gimplify_body call.
29269 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29271 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29273 2004-12-07 Ed Falis <falis@adacore.com>
29275 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29276 current task being suspended.
29278 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29280 (__gnat_map_signal): removed test for current task being suspended.
29282 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29284 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29285 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29286 targets (such as AAMP).
29288 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29290 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29291 because the back-end may otherwise treat it as a redefinition of the
29294 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29296 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29298 * lang-specs.h: Accept --param.
29300 2004-12-07 Vincent Celier <celier@adacore.com>
29302 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29303 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29304 Current_Body_Suffix => Ada_Body_Suffix).
29305 Take into account Externally_Built attribute.
29307 * clean.adb (In_Extension_Chain): Always return False when one of the
29308 parameter is No_Project.
29309 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29310 Ada_Language_Index).
29311 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29312 Process_Languages for procedure Parse).
29314 * gnatcmd.adb (Carg_Switches): New table.
29315 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29316 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29317 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29319 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29320 Header_Num and function Hash are now declared in package Prj,
29323 * prj.adb (Suffix_Of): New function.
29324 (Set (Suffix)): New procedure.
29325 (Hash): One function moved from Prj.Com
29326 (Is_Present, Language_Processing_Data_Of): New functions
29327 (Set): Two new procedures
29328 (Add_Language_Name, Display_Language_Name): New procedures
29330 * prj.ads: (Suffix_Of): New function
29331 (Set (Suffix)): New procedure
29332 Add several types and tables for multi-language support.
29333 (Header_Num): Type moved from Prj.Com
29334 (Hash): Two functions moved from Prj.Com
29335 (Is_Present, Language_Processing_Data_Of): New functions
29336 (Set): Two new procedures
29337 (Add_Language_Name, Display_Language_Name): New procedures
29338 (Naming): Component name changes:
29339 Current_Spec_Suffix => Ada_Spec_Suffix,
29340 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29341 Impl_Suffixes, Supp_Suffixes.
29342 (Project_Data): New components: Externally_Built, Supp_Languages,
29343 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29344 Default_Linker_Path.
29346 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29347 new package Language_Processing with its attributes (Compiler_Driver,
29348 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29349 Binder_Driver, Default_Linker).
29351 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29352 (Header_Num): Type moved to package Prj
29354 * prj-env.adb: Adapt to name changes in package Prj
29355 (Current_Spec_Suffix => Ada_Spec_Suffix,
29356 Current_Body_Suffix => Ada_Body_Suffix).
29358 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29359 default to the project path, except the "-" is one of the directories
29360 in env var ADA_PROJECT_PATH.
29361 (Current_Project_Path): Global variable, replacing Project_Path
29362 that was in the body of Prj.Part.
29363 (Project_Path): New function
29364 (Set_Project_Path): New procedure
29365 Initialize Current_Project_Path during elaboration of the package
29366 Remove dependency on Prj.Com, no longer needed
29368 * prj-ext.ads (Project_Path): New function
29369 (Set_Project_Path): New procedure
29371 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29372 suffix is defined for language <lang>.
29373 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29374 accessing directly the components of Naming.
29375 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29376 Reorganise of this package.
29377 Break procedure Check in several procedures.
29379 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29380 Other_Languages_Check and Language_Independent_Check) with a single
29383 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29384 Process_Languages, no longer needed.
29386 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29387 Current_Project_Path.
29388 Remove elaboration code, moved to the body of Prj.Ext
29389 Use new function Prj.Ext.Project_Path instead of old variable
29391 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29392 When comparing with project paths on the stack, first put the resolved
29393 path in canonical case.
29394 (Parse_Single_Project): Set the path name of the project file in the
29395 tree to the normalized path.
29397 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29398 parameter Process_Languages, no longer needed.
29399 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29400 Other_Languages_Check.
29402 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29403 to store the resolved canonical path of the project file.
29404 Remove dependency to Prj.Com, no longer needed
29406 * prj-util.adb: Adapt to name changes in package Prj
29407 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29410 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29411 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29412 Externally_Built, Include_Option, Language_Processing.
29414 * makegpr.adb: Numerous changes due to changes in packages
29417 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29418 default to the project path, except whe "-" is one of the directories
29419 in env var ADA_PROJECT_PATH.
29420 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29422 2004-12-07 Robert Dewar <dewar@adacore.com>
29424 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29426 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29429 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29430 flag. No longer needed now that we handle this in gnat1drv.adb.
29432 * repinfo.ads: Minor reformatting
29434 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29435 Olivier Hainque <hainque@adacore.com>
29436 Eric Botcazou <ebotcazou@adacore.com>
29438 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29439 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29440 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29441 of a bitfield, which we know is useless and causes trouble because of
29442 alignment implications.
29444 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29446 (process_attributes): Clear DECL_COMMON again when a section attribute
29448 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29449 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29450 (create_field_decl): Special case ADDRESSABLE negative to mean
29451 "no bitfield creation", to be used by make_aligning_type. Don't
29452 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29453 fields claimed addressable still have to be bitfields. Use
29454 value_factor_p instead of a raw binop construction to check for the
29455 position's alignment.
29457 2004-12-07 Geert Bosch <bosch@adacore.com>
29459 * eval_fat.adb: Revert previous change.
29461 2004-12-07 Thomas Quinot <quinot@adacore.com>
29462 Ed Schonberg <schonberg@adacore.com>
29464 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29465 with an implicit dereference as its prefix, use
29466 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29467 an explicit dereference. This ensures that a reference to the original
29468 prefix is generated, if appropriate.
29470 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29471 dereference is rewritten to an explicit one, generate a reference to
29472 the entity denoted by its prefix using the original prefix node, so
29473 the dereference can be properly recorded as a read of the denoted
29474 access value, if appropriate.
29476 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29477 emitting 'assigned but never read' warning on a variable on the basis
29478 that it has an access type.
29479 (Check_References): Emit unreferenced warning when the scope is a
29482 2004-12-07 Robert Dewar <dewar@adacore.com>
29483 Ed Schonberg <schonberg@adacore.com>
29485 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29488 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29489 leaving call unchanged.
29490 This deals with the case where the pragma Import specified
29491 an external name, to be handled by the back end.
29493 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29494 subprogram which is Imported with convention Intrinsic if an
29495 External_Name argument is specified.
29496 (Process_Import_Or_Interface): Properly diagnose link name argument.
29497 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29498 with Sem_Ch6.Cannot_Inline.
29499 (Process_Inline): Provide separate warning for inapplicable inline
29501 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29502 treatment is uniform on different targets.
29504 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29506 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29507 construct is rewritten, preserve end label to permit source navigation.
29509 2004-12-07 Thomas Quinot <quinot@adacore.com>
29511 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29512 Specific_Build_Stub_Target): New subprograms.
29513 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29514 the PCS implementation used, using the above PCS-customized subprograms.
29515 Minor reformatting.
29516 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29517 for generation of DSA code targeted to the PolyORB PCS.
29518 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29519 implementation of the partition communication subsystem in ancillary
29521 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29522 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29523 PCS-specific part of Add_Stub_Type.
29524 (Insert_Partition_Check): Use runtime library function to perform
29527 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29528 (RE_Same_Partition): New entity, from s-parint.
29530 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29532 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29534 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29535 Output the copyright message on a separate line from the version
29538 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29540 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29541 compile-time warning.
29543 2004-12-07 Robert Dewar <dewar@adacore.com>
29545 * g-regpat.adb: (Match): Change a misuse of or to or else
29547 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29550 (Generate_Reference): Handle properly a reference to an entry formal,
29551 when an accept statement has a pragma Unreferenced for it.
29553 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29554 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29555 the body, to ensure that warnings are properly emitted for each accept
29556 statement of a given task entry.
29558 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29560 * Makefile.in: Add support for foreign threads on VMS.
29562 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29564 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29566 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29568 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29570 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29572 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29574 2004-12-07 Robert Dewar <dewar@adacore.com>
29576 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29578 (Remove_Next_Debug): Same fix
29580 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29581 maintain back pointers now, though we did not used to, and comments
29583 (Prepend): Remove pragma Inline.
29584 (Remove_Next): Same cleanup
29586 2004-12-07 Thomas Quinot <quinot@adacore.com>
29588 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29589 used to record an implicit dereference as a read operation on its
29590 prefix when operating under -gnatc. Necessary to avoid spurious
29591 'variable assigned but never read' warnings in that mode.
29592 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29593 is a non-overloaded implicit dereference, call the above subprogram to
29594 ensure proper recording of references.
29596 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29598 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29599 to be resolved later as part of Analyze_Iteration_Scheme's call to
29602 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29604 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29605 prefix is not a scalar type, place error message on prefix, not on
29608 2004-12-07 Bernard Banner <banner@adacore.com>
29610 * vxaddr2line.adb: Add support for x86 vxworks
29612 2004-12-07 Thomas Quinot <quinot@adacore.com>
29614 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29615 documentation of the behaviour of these functions when passed an IP
29616 address that has no record in the system hosts database and no reverse
29619 * cstand.adb, a-tags.ads: Fix typos in comment.
29621 2004-12-07 Robert Dewar <dewar@adacore.com>
29623 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29624 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29625 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29626 s-poosiz.ads: Minor reformatting
29628 * make.adb: Minor reformatting
29629 Add some ??? comments asking for more comments
29631 * s-poosiz.adb: Minor reformatting
29632 Add comments on alignment requirement
29634 * sinfo.ads: Remove obsolete comment and fix typo.
29636 2004-12-07 Vincent Celier <celier@adacore.com>
29637 Sergey Rybin <rybin@adacore.com>
29639 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29640 Files" with the new tool and package names.
29641 Reformatting to suppress most of the warnings for line too long
29642 Document the new section "Project Search Path:" in the output of
29644 Add gnatmetric section
29646 2004-12-07 Vincent Celier <celier@adacore.com>
29648 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29649 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29650 and -eit to -ept. Added qualifier
29651 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29653 2004-11-27 Andreas Schwab <schwab@suse.de>
29655 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29657 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29659 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29660 internal implementation unit GNAT.Sockets.Thin,
29661 as their usage for sockets is non-portable (using the read and write
29662 functions from the system runtime library is fine on UNIX but won't
29663 work under Windows).
29665 * mingw32.h: Update copyright notice.
29667 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29669 * ada-tree.h: Minor reformatting of previous change to avoid lines
29670 longer than 79 characters.
29672 2004-11-25 Olivier Hainque <hainque@adacore.com>
29674 * tb-gcc.c: GCC infrastructure based implementation of
29677 2004-11-24 Steven Bosscher <stevenb@suse.de>
29679 * misc.c (gnat_post_options): Don't clear
29680 flag_inline_functions.
29682 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29685 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29688 2004-11-21 Andreas Jaeger <aj@suse.de>
29690 * stylesw.adb: Change Style_Check_Subprogram_Order to
29691 Style_Check_Order_Subprograms.
29693 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29695 * adaint.h, adaint.c
29696 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29698 Add also a cast to kill another warning.
29699 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29700 parameter with the priority class of the parent process instead of
29701 always using the NORMAL_PRIORITY_CLASS.
29702 (__gnat_dup): New function.
29703 (__gnat_dup2): New function.
29704 (__gnat_is_symbolic_link): Enable the effective body of this
29705 function when __APPLE__ is defined.
29707 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29710 2004-11-18 Olivier Hainque <hainque@adacore.com>
29712 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29713 address of which may be used to represent "others" and "all others"
29714 choices in exception tables, instead of the current harcoded
29715 (void *)0 and (void *)1.
29716 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29718 * gigi.h (others_decl, all_others_decl): New decls representing the
29719 new Others_Value and All_Others_Value objects.
29720 (struct attrib): Rename "arg" component as "args", since GCC expects a
29721 list of arguments in there.
29723 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29724 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29727 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29728 others_decl and all_others_decl instead of hardcoded dummy addresses
29729 to represent "others" and "all others" choices, which is cleaner and
29730 more flexible with respect to the possible eh pointer encoding policies.
29732 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29733 (process_attributes): Account for the naming change of the "args"
29734 attribute list entry component.
29736 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29737 cumulating attributes for different entities into a single list.
29738 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29739 attributes for the current entity and propagate first subtype
29740 attributes to other subtypes.
29741 <E_Procedure>: Attribute arguments are attr->args and not
29742 attr->arg any more.
29743 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29744 argument provided, as this is what GCC expects. Use NULL_TREE instead
29747 2004-11-18 Robert Dewar <dewar@adacore.com>
29749 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29750 Minor reformatting througout (including new function specs)
29751 Add ??? comments asking for clarification.
29753 2004-11-18 Thomas Quinot <quinot@adacore.com>
29755 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29756 incomplete duplicate implementation of this subprogram from butil.
29758 2004-11-18 Thomas Quinot <quinot@adacore.com>
29760 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29761 procedures factors the common processing for building an RPC receiver
29762 for an RCI package or an RACW type.
29763 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29764 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29765 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29767 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29769 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29771 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29772 distribution subprogram identifiers that are either subprogram numbers
29774 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29775 string distribution identifiers assigned to a given subprogram.
29776 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29777 (Add_RAS_Dereference_TSS): Add comments.
29778 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29779 is not referenced yet because it will be used by the PolyORB DSA
29781 (Insert_Partition_Check): Remove fossile code.
29782 (First_RCI_Subprogram_Id): Document this constant.
29783 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29785 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29786 replaced with calls to Get_Library_Unit_Name_String. Previously there
29787 were several instances of the same code in different locations in the
29788 compiler; this checkin completes the replacement of all of these
29789 instances with calls to a common subprogram.
29790 Minor reformatting.
29792 * sem_dist.adb: Remove comment noting that RPC receiver generation
29793 should be disabled for RACWs that implement RASs.
29794 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29796 * sem_util.ads, sem_util.adb (Has_Stream): New function
29797 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29798 qualified name of a library unit into the name buffer.
29799 (Note_Possible_Modification): Generate a reference only
29800 if the context comes from source.
29802 * snames.ads (PCS_Names): New subtype corresponding to names of
29803 supported implementations of the Partition Communication Subsystem
29804 (PCS) (i.e. the runtime library support modules for the distributed
29807 2004-11-18 Robert Dewar <dewar@adacore.com>
29808 Ed Schonberg <schonberg@adacore.com>
29810 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29811 (Has_Rep_Pragma): New function
29812 (Has_Attribute_Definition_Clause): New function
29813 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29814 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29816 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29818 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29819 (Expand_Pragma_Psect_Object): New procedure
29820 These procedures contain the revised and cleaned up processing for
29821 these two pragmas. This processing was formerly in Sem_Prag, but
29822 is more appropriately moved here. The cleanup involves making sure
29823 that the pragmas are properly attached to the tree, and that no
29824 nodes are improperly shared.
29826 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29827 pragmas to Exp_Prag, which is more appropriate.
29828 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29829 check for duplicates Remove use of Is_Psected flag, no longer needed.
29830 Use new Make_String_Literal function with string.
29832 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29833 that are functions return universal values, that have to be converted
29834 to the context type.
29835 Use new Make_String_Literal function with string.
29836 (Get_Stream_Convert_Pragma): New function, replaces the use of
29837 Get_Rep_Pragma, which had to be kludged to work in this case.
29839 * freeze.adb: Use new Has_Rep_Pragma function
29841 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29842 function with string.
29843 Use new Has_Rep_Pragma function.
29845 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29848 2004-11-18 Robert Dewar <dewar@adacore.com>
29850 * errout.ads, errout.adb: (First_Sloc): New function
29852 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29853 check (-gnatyx) instead of being included as a redundant construct
29856 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29857 Style_Check_Order_Subprograms.
29859 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29860 stylesw.adb: Add Style_Check_Xtra_Parens
29862 * usage.adb: Add line for -gnatyx (check extra parens)
29864 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29866 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29867 Robert Dewar <dewar@adacore.com>
29869 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29870 discriminant of a constrained subtype, analyze the copy of the
29871 corresponding constraint, because in some cases it may be only
29872 partially analyzed.
29873 Removes long-lived ??? comments.
29875 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29876 handled controlled or secondary-stack expressions within the
29877 iteration_scheme of a loop.
29879 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29880 bounds that may contain functions calls, to prevent memory leaks when
29881 the bound contains a call to a function that uses the secondary stack.
29882 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29883 generate temporaries for loop bounds that might contain function calls
29884 that require secondary stack and/or finalization actions.
29886 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29887 selected component and the selector is overloadable (not just a
29888 function) treat as function call, Analyze_Call will disambiguate if
29890 (Analyze_Selected_Component): Do not generate an actual subtype for the
29891 selected component if expansion is disabled. The actual subtype is only
29892 needed for constraint checks.
29893 (Analyze_Allocator): If restriction No_Streams is set, then do
29894 not permit objects to be declared of a stream type, or of a
29895 composite type containing a stream.
29897 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29898 No_Streams no longer prohibits with'ing this package.
29900 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29901 discriminants, but the parent base has unknown discriminants, there is
29902 no discriminant constraint to inherit. Such a discrepancy can arise
29903 when the actual for a formal type with unknown discriminants is a
29904 similar private type whose full view has discriminants.
29905 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29906 do not permit objects to be declared of a stream type, or of a
29907 composite type containing a stream.
29909 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29911 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29912 protected operations.
29914 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29915 generated name, it complicates decoding in gdb and hinders debugging
29916 of protected operations.
29917 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29918 flag for the protected entry barrier function.
29919 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29920 flag for the protected entry function.
29922 2004-11-18 Nicolas Setton <setton@adacore.com>
29924 * expect.c: Define __unix__ when __APPLE__ is defined.
29926 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29927 Darwin-specific section.
29929 * lang-specs.h: Change the placement of the %1 marker.
29930 Works around the fact that gcc adds -fPIC by default under Darwin.
29932 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29934 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29935 type of the object with the packed array type, set the Analyzed flag
29936 on the object if it is an entity or simple indexed component, to avoid
29937 spurious type errors.
29939 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29941 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29942 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29943 separate line from the version message.
29945 2004-11-18 Ed Falis <falis@adacore.com>
29947 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29949 (init_float): Eliminate initialization of floating point status for
29950 AE653. The instructions have no effect for vThreads.
29952 2004-11-18 Vincent Celier <celier@adacore.com>
29954 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29955 gnatbind is invoked with -shared.
29957 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29959 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29960 for Detect_Blocking which is redundant with the check done within the
29961 procedure Protected_Single_Entry_Call.
29962 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29963 Detect_Blocking which is redundant with the check done within the
29964 procedure Protected_Single_Entry_Call.
29966 2004-11-18 Vincent Celier <celier@adacore.com>
29968 * makegpr.adb (Compile): Put the compiling switches (in package
29969 Compiler and on the command line) immediately after "-c", instead of
29970 at the end of the command line invocation of the compiler, when
29971 compiling a non-Ada file.
29972 (Build_Global_Archive): When there is no need to rebuild the archive,
29973 set Global_Archive_Exists, so that the archive is passed to the linker
29976 2004-11-18 Robert Dewar <dewar@adacore.com>
29977 Sergey Rybin <rybin@adacore.com>
29980 Remove extra paren check from list of checks for redundant constructs
29981 Add documentation of new -gnatyx style check (check extra parens)
29982 Remove paragraph about gnatelim debug options.
29984 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29985 objects rather than forbidding dependencies on the package Ada.Streams.
29987 * sinfo.ads: Add ??? note that we should document pragmas passed to
29990 * g-expect.ads: Fix a few typos in the comments.
29992 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29994 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29997 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29999 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
30001 2004-11-07 Andreas Schwab <schwab@suse.de>
30003 * Makefile.in (install-gnatlib): Remove spurious hyphen.
30005 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
30008 * Makefile.in (darwin): Set soext to .dylib.
30010 2004-10-26 Vincent Celier <celier@gnat.com>
30011 Thomas Quinot <quinot@act-europe.fr>
30013 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
30014 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
30015 there is no use of GNAT.Sockets.Constants.
30016 Remove remaining pragma Import for C_Write
30017 Remove C_Read and C_Write from internal implementation unit
30018 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
30019 the read and write functions from the system runtime library is fine
30020 on UNIX but won't work under Windows).
30022 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
30023 (Check_Selector): Use C_Recv instead of C_Read.
30024 Selectors are the GNAT.Sockets abstraction to perform a select()
30025 call on a set of descriptors. To allow abortion of an ongoing
30026 select operation, some data is written to a dedicated socket that
30027 is always monitored.
30028 Under Windows, the write and read library functions cannot operate
30029 on sockets, so we need to use send and recv instead, which is portable
30030 across all supported platforms.
30032 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
30033 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
30034 (using the read and write functions from the system runtime library is
30035 fine on UNIX but won't work under Windows).
30037 2004-10-26 Nicolas Setton <setton@act-europe.fr>
30039 * mlib-tgt-darwin.adb: New file.
30041 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30042 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30043 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30044 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
30047 * Makefile.in: Add support for building shared libraries under Darwin.
30048 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30049 the low level EH init subprogram to be called from __gnat_initialize.
30051 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30052 indicates which options to pass to the archive indexer.
30054 * mlib-utl.adb: Add support for calling ranlib with additional
30055 options. This is needed for instance under Mac OS X.
30056 (Ranlib_Options): New global variable, used to store the potential
30057 options to pass to ranlib.
30058 (Ar): Use Ranlib_Options when spawning ranlib.
30059 (Initialize): Set the value of ranlib option.
30061 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30063 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30064 instead of 8K, to reflect the real potential needs for stack-checking
30067 2004-10-26 Pascal Obry <obry@gnat.com>
30069 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30071 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30072 Windows only the initial thread stack size can be set so it is good to
30073 start we a low stack size.
30074 The OS will adjust the size as needed.
30076 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30077 Nicolas Setton <setton@act-europe.fr>
30079 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30080 "__unix__" instead of "unix".
30081 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30082 sections were just mistakenly ignored. The former is
30083 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30084 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30085 of hpux. This prevents an unwanted definition of the symbol
30086 convert_addresses in adaint.o.
30088 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30090 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30091 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30093 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30095 * a-filico.ads, a-filico.adb: fix incorrect header.
30097 2004-10-26 Javier Miranda <miranda@gnat.com>
30099 * a-ststio.ads: Fix typo in identifier
30101 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30103 * sem_ch4.adb: Minor reformatting.
30105 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30107 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30108 enabled, check the result of unary and binary operations when the
30109 expression is the right-hand side of an assignment.
30111 2004-10-26 Vincent Celier <celier@gnat.com>
30113 * clean.adb (Delete): Do not output warnings when in quiet output and
30114 not in verbose mode.
30115 (Force_Deletions): New Boolean flag, defaulted to False
30116 (Delete): Only delete a file if it is writable, and when
30117 Force_Deletions is True.
30118 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30119 (Usage): Line for new switch -f
30120 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30123 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30125 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30126 JM type only if its size matches that of the wrapper. When a size is
30127 prescribed and the field is not aliased, remove the wrapper of a JM
30128 type only if the size is not greater than that of the packed array.
30129 (gnat_to_gnu_entity): Change the extension of packed array wrappers
30132 2004-10-26 Geert Bosch <bosch@gnat.com>
30134 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30135 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30136 (Pred): Implement in terms of Succ.
30138 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30140 * exp_aggr.adb (Safe_Component): An aggregate component that is an
30141 unchecked conversion is safe for in-place use if the expression of the
30142 conversion is safe.
30143 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30144 be expandable in place even if the aggregate does not come from source.
30145 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30146 designated object of an allocator in place, rather than building it
30147 first on the stack. The previous scheme forces a full copy of the array,
30148 and may be altogether unsusable if the size of the array is too large
30149 for stack allocation.
30151 2004-10-26 Robert Dewar <dewar@gnat.com>
30153 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30154 compares if the component is atomic.
30156 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30157 array assignment if the component type is atomic.
30159 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30160 Eric Botcazou <ebotcazou@act-europe.fr>
30162 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30163 is aliased and is a by_reference type, do not pass by copy.
30164 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30165 detect whether the call is in the right side of an assignment or
30166 the expression of an object declaration. Recurse on component
30167 association within aggregates.
30168 Call it in the condition that determines whether the temporary is
30169 necessary for correct stack-checking.
30171 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30173 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30174 RACW_Type, used in the PolyORB version.
30175 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30176 version and the GARLIC version.
30178 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30179 Rename RCI_Info to RCI_Locator for better consistency between the
30180 GARLIC and PolyORB versions of the distributed systems annex.
30181 (DSA_Implementation_Name): This enumeration lists the possible
30182 implementations of the Partition Communication Subsystem for the
30183 Distributed Systems Annex (DSA). The three available implementations
30184 are the dummy stub implementation (No_DSA), and two versions based on
30185 two different distribution runtime libraries: GARLIC and PolyORB. Both
30186 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30188 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30191 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30192 between the GARLIC and PolyORB versions of the distributed systems
30194 Remove RE_Unbounded_Reclaim_Pool since it is unused.
30196 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30198 * gnat1drv.adb: Suppress calling the back end when
30199 Frontend_Layout_On_Target is true.
30201 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30203 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30204 Set_Read_Only): New subprograms.
30205 These new routines allow the user to set or unset the Owner execute
30206 and Owner write permission flags on a file.
30208 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30209 GNAT.OS_Lib.Set_Executable instead of rolling our own.
30211 2004-10-26 Matthew Gingell <gingell@gnat.com>
30213 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30215 2004-10-26 Pascal Obry <obry@gnat.com>
30217 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30218 memory before the faulting page we properly test the process read
30219 access for this address using appropriate Win32 routine.
30220 (HPUX sections): guard with "__hpux__" instead of "hpux".
30222 2004-10-26 Robert Dewar <dewar@gnat.com>
30224 * lib-xref.adb (Generate_Reference): Don't complain about reference to
30225 entry parameter if pragma Unreferenced set, since we do not properly
30226 handle the case of multiple parameters.
30228 2004-10-26 Vincent Celier <celier@gnat.com>
30230 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30231 (Ada_Objects_Path.Add): For a library project, add to the object path
30232 the library directory only if there is no object directory or if the
30233 library directory contains ALI files.
30234 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30236 2004-10-26 Vincent Celier <celier@gnat.com>
30238 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30239 extension of library projects.
30241 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30242 path defaults to ".:<prefix>/lib/gnat".
30243 (Parse): For an extending all project, allow direct import of a project
30244 that is virtually extended.
30246 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30247 the specified name is directly imported, return its ID. Otherwise, if
30248 an extension of this project is imported, return the ID of the
30251 2004-10-26 Robert Dewar <dewar@gnat.com>
30253 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30254 (Sub3): New procedure, used by Scaled_Divide
30255 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30256 correct more than one instance of failure to propagate carries
30258 (Double_Divide): Handle overflow case of largest negative number
30259 divided by minus one.
30261 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30262 the case of a quotient value out of range.
30265 2004-10-26 Robert Dewar <dewar@gnat.com>
30267 * s-bitops.adb (Bit_Eq): Remove redundant check.
30269 * s-bitops.ads: Minor comment updates
30270 Change some occurrences of Address to System.Address
30272 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30274 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30276 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30277 accessibility check to prefix that is a protected operation.
30279 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30281 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30282 empty, post message on stub.
30284 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30285 Javier Miranda <miranda@gnat.com>
30287 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30288 current instance appears within a unit that is directly in the context
30290 Used to determine whether the body of the instance should be analyzed
30291 immediately after its spec, to make its subprogram bodies available
30292 for front-end inlining.
30293 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30294 constraint is not allowed on the component type (AARM 12.5.3(3))
30296 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30298 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30299 'Storage_Pool): enhance, document & limit detection of non-sharable
30302 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30304 * s-pooglo.ads: Add more documentation now that this pool is properly
30307 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30309 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30310 or protected type with discriminants, do not constrain the
30311 corresponding record type if the subtype declaration has no
30312 discriminant constraints. This can be the case in source code, or in
30313 the subtype declaration created to rename an actual type within an
30316 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30318 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30319 different kind of stub (possibly wrong name for file), do not check
30321 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30322 includes call to some function that returns an unconstrained type, do
30325 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30327 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30328 appear in the code for the main unit. Dependencies among units in the
30329 context of the main unit are established when those other units are
30330 compiled. Otherwise spurious elaboration constraints can generate
30331 incorrect elaboration circularities.
30333 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30334 Ed Schonberg <schonberg@gnat.com>
30336 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30337 subprogram is called with a parameter that is not an object name. This
30338 situation arises for some cases of illegal code, which is diagnosed
30339 later, and in this case it is wrong to call Is_Aliased, as that might
30340 cause a compiler crash.
30341 (Explain_Limited_Type): Refine previous fix to include
30342 inherited components of derived types, to provide complete information.
30344 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30345 is the prival for a protected object.
30346 It is necessary to mark this entity as a variable, in addition to
30347 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30348 modified to avoid checking the Aliased flag on entities that are not
30349 objects. (Checking that flag for non-objects is erroneous and could
30350 lead to a compiler crash).
30352 2004-10-26 Robert Dewar <dewar@gnat.com>
30354 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30355 X_Frac = 0.5, then we know that the number X must be positive.
30356 (Succ): Remove the same redundant test, and also fix the primary test
30357 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30359 (Decompose): Add fuller comments to spec
30361 2004-10-26 Pascal Obry <obry@gnat.com>
30363 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30364 validity (process must have read access). Set to 0 in all other cases.
30365 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30366 violation on Win32.
30367 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30368 segmentation violation.
30370 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30372 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30373 whose type is a constructed subtype of an aliased object with an
30374 unconstrained nominal subtype, convert the actual to the constructed
30375 subtype before taking its address.
30377 2004-10-26 Vincent Celier <celier@gnat.com>
30379 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30380 (Is_Path_Name_Case_Sensitive): New function
30382 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30383 (Base_Name, Simple_Name, Current_Directory, Compose,
30384 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30387 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30388 Vasiliy Fofanov <fofanov@act-europe.fr>
30389 Vincent Celier <celier@gnat.com>
30391 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30392 "memory management issues" section and document some of the useful
30393 memory pools provided as part of the GNAT library.
30394 Remove "virtual" from declaration of A::method2 in
30395 the simple example of Ada/C++ mixed system.
30396 Library Projects may be virtually extended: their virtual extensions
30397 are not Library Projects.
30398 Added section on extending project hierarchies.
30400 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30402 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30404 (__gnat_portable_spawn): Remove const.
30406 * mingw32.h (MAXPATHLEN): Check for previous definition.
30408 2004-10-17 Matthias Klose <doko@debian.org>
30410 * gnatvsn.ads: Set gnat library version to 4.0.
30412 2004-10-05 Vincent Celier <celier@gnat.com>
30414 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30416 2004-10-04 Laurent Guerby <laurent@guerby.net>
30419 * Makefile.in: Define and use RANLIB_FLAGS.
30421 2004-10-04 Pascal Obry <obry@gnat.com>
30423 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30424 other x86 platforms).
30426 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30428 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30429 in general and triggers stack alignment adjustment for thread entry
30430 points on targets where this is necessary.
30432 2004-10-04 Bernard Banner <banner@gnat.com>
30435 * Makefile.in: Add section for powerpc linux
30436 Add variant i-vxwork-x86.ads
30438 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30440 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30442 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30443 table registration calls when need be. Ensures no reference to the crt
30444 ctors symbol are issued in the SJLJ case, which avoids possible
30445 undefined symbol errors in the case of modules to be statically linked
30448 2004-10-04 Javier Miranda <miranda@gnat.com>
30450 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30451 in-line the code corresponding to subprogram Analyze_Actuals. In
30452 addition, analyze the actuals only in case of subprogram call.
30454 2004-10-04 Ed Falis <falis@gnat.com>
30456 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30458 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30460 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30461 in the documentation.
30463 2004-10-04 Robert Dewar <dewar@gnat.com>
30465 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30467 (Analyze_Block_Statement): Add circuitry to detect following dead code
30468 (Check_Unreachable_Code): Handle case of block exit
30470 2004-10-04 Robert Dewar <dewar@gnat.com>
30472 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30473 (XMatchD): Avoid warning for Logic_Error call
30475 2004-10-04 Robert Dewar <dewar@gnat.com>
30477 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30478 consider expressions buried within a procedure actual to be an actual.
30479 This caused some blowups with uses of packed slices within a procedure
30482 2004-10-04 Robert Dewar <dewar@gnat.com>
30484 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30485 longer need to be initialized to zero.
30486 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30487 initialized to zero.
30489 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30490 considered valid, even if the representation is modular. That's correct
30491 now that we no longer initialize packed modular arrays to zero.
30493 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30494 suffixes. These are now documented as the only cases in which the
30495 debugger ignores outer records.
30496 Previously, the spec allowed arbitrary suffixes for this purpose.
30497 Change name of LJM to JM for packed array pad records
30498 Create separate section on packed array handling, and add a whole new
30499 set of comments to this section describing the situation with packed
30500 modular types and justification requirements depending on endianness.
30502 2004-10-04 Robert Dewar <dewar@gnat.com>
30504 * a-except.adb: Add a comment for last change
30506 * einfo.ads: Minor spelling correction in comment
30508 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30510 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30513 * sem_util.ads: Minor comment update
30515 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30517 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30518 Inline_Always when in Configurable_Run_Time mode.
30520 * sem_prag.adb (Process_Convention): If entity is an inherited
30521 subprogram, apply convention to parent subprogram if in same scope.
30522 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30523 when in Configurable_Run_Time mode.
30525 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30527 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30528 class_wide type after component list has been inherited.
30530 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30532 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30533 Denotes_Previous_Actual, to handle properly the case of a private
30534 actual that is also the component type of a subsequent array actual.
30535 The visibility status of the first actual is not affected when the
30536 second is installed.
30537 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30538 make fully recursive the treatment of formals of packages declared
30540 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30541 the above on exit from an instantiation.
30542 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30543 current instantiation which is now complete.
30544 (Analyze_Package_Instantiation): No instantiated body is needed if the
30545 main unit is generic. Efficient, and avoid anomalies when a instance
30546 appears in a package accessed through rtsfind.
30548 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30550 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30551 do not generate a declaration for a temporary if the call is part of a
30552 library-level instantiation.
30554 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30556 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30557 searching for a limited component to flag.
30559 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30560 expansion of Input, to account for the fact that the implicit call
30561 generated by the attribute reference must freeze the user-defined
30562 stream subprogram. This is only relevant to 'Input, because it can
30563 appear in an object declaration, prior to the body of the subprogram.
30565 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30566 expansion can proceed and further errors uncovered.
30567 (Minor clean up): Fix cases of using | instead of \ for continuation
30570 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30572 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30574 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30575 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30576 Use gcc_assert and gcc_unreachable.
30578 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30579 specified alignment before validating size.
30580 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30581 stripped-down declaration for the type of the inner field when making
30584 * utils.c (finish_record_type): Do not compute the size in units
30585 incrementally. Instead compute it once for the rep clause case.
30586 Use gcc_assert and gcc_unreachable.
30588 2004-10-04 Vincent Celier <celier@gnat.com>
30590 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30592 (Is_Valid_Path_Name): Take '/' as a directory separator.
30594 2004-10-04 Vincent Celier <celier@gnat.com>
30596 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30597 (Extended_Project) only if Extended_Project is defined, to avoid
30599 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30601 (Parse_Single_Project): Ditto.
30603 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30604 Add_To_Project_Path for virtual projects.
30606 2004-10-04 Vincent Celier <celier@gnat.com>
30608 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30609 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30610 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30611 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30612 parameter Options_2.
30614 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30615 Build_Dynamic_Library with an empty Options_2.
30617 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30620 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30621 directory separator, if any.
30622 (Gprmake): Do not allow mains on the command line for library projects.
30623 Do not attempt to link when the project is a library project.
30624 (Library_Opts): New table to store Library_Options.
30625 (Build_Library): If Library_Options is specified, pass these options
30626 when building a shared library.
30628 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30630 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30631 the end of this procedure now that the unlock operation was inserted
30634 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30636 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30637 corresponding to the Preallocated_Stacks flags in System.
30638 (Get_Target_Parameters): Including the processing for
30639 Preallocated_Stacks.
30641 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30642 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30643 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30644 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30645 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30646 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30647 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30648 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30649 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30650 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30651 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30652 used to signal whether the compiler creates the required stacks and
30653 descriptors for the different tasks (when True) or it is done by the
30654 underlying operating system at run time (when False).
30655 It is initially set to False in all targets.
30657 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30658 if it is supported by the target.
30659 (Make_Task_Create_Call): Pass the stack address if it has been
30660 previously created. Otherwise pass a Null_Address.
30662 * snames.adb: Add _stack.
30664 * snames.ads: Add Name_uStack. Required to allow the expander to
30665 statically allocated task stacks.
30667 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30668 Stack_Address argument.
30669 Check that its value is equal to Null_Address because this target does
30670 not support the static stack allocation.
30672 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30674 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30677 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30679 * exp_dist.adb: Split declaration of asynchronous flag out of
30680 Add_RACW_Read_Attribute.
30681 Minor reformatting for better alignment with PolyORB version.
30682 Store the entity for the asynchronous flag of an RACW, rather than the
30683 expression, in the asynchronous flags table. This will allow this flag
30684 to be used in other subprograms beside Add_RACW_Read_Attribute.
30686 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30688 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30689 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30690 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30691 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30692 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30693 sockets constant MSG_NOSIGNAL (Linux-specific).
30694 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30695 all Send operations.
30696 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30697 from trigerring SIGPIPE.
30698 Rename components to avoid clash with Ada 2005 possible reserved
30700 (Check_Selector): When the select system call returns with an error
30701 condition, propagate Socket_Error to the caller.
30703 2004-10-01 Jan Hubicka <jh@suse.cz>
30705 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30707 2004-09-23 Robert Dewar <dewar@gnat.com>
30710 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30711 instead do this at freeze time (we won't do it if there is an address
30713 Change "pragma inline" to "pragma Inline" in information and error
30715 Minor reformatting.
30717 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30718 right way of doing things after all.
30719 (Freeze_Entity): For object, set Is_Public for imported entities
30720 unless there is an address clause present.
30722 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30724 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30725 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30726 ensures proper handling of types with rep clauses, which might have
30727 their TYPE_SIZE set already.
30729 2004-09-21 Robert Dewar <dewar@gnat.com>
30731 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30732 packed array types in both little- and big-endian cases. This change
30733 ensures that we no longer count on the unused bits being initialized
30734 for such types (and in particular ensures that equality testing will
30735 only read the relevant bits).
30736 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30737 These changes mean that we no longer need to initialize small packed
30739 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30740 optimization to an LJM field as to its parent field.
30742 * ada-tree.h, trans.c, utils.c, utils2.c:
30743 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30745 2004-09-20 Jan Hubicka <jh@suse.cz>
30747 * utils.c (gnat_finalize): Remove.
30748 (end_subprog_body): Directly call cgraph_finalize_function;
30749 do not lower the nested functions.
30751 2004-09-20 Robert Dewar <dewar@gnat.com>
30754 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30755 if an address clause is present, since that means that the Import
30758 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30760 * 5tsystem.ads: Removed, no longer used.
30762 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30763 Zack Weinberg <zack@codesourcery.com>
30765 * ada-tree.def: Use tree_code_class enumeration constants
30766 instead of code letters.
30767 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30768 Update for new tree-class enumeration constants.
30770 2004-09-17 Vincent Celier <celier@gnat.com>
30772 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30773 capabilities of the general project manager.
30775 2004-09-09 Vincent Celier <celier@gnat.com>
30777 * a-direct.ads: Add pragma Ada_05
30778 (Directory_Entry_Type): Give default value to component Kind to avoid
30779 not initialized warnings.
30781 * a-direct.adb (Current_Directory): Remove directory separator at the
30783 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30784 an existing directory.
30785 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30786 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30787 Convert the result to File_Size.
30789 * prj.ads: (Project_Error): New exception
30791 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30792 Prj.Com, not from Osint.
30793 (Attrs, Package_Attributes): Tables moved to private part of spec
30794 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30796 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30797 Prj.Project_Error after call to Fail.
30798 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30799 Fail. Check that package name is not already in use.
30801 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30802 used by tools, not only by the project manager, and to indicate that
30803 exception Prj.Prj_Error may be raised in case of problem.
30804 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30806 (Attrs, Package_Attributes): Table instantiations moved from the body to
30807 the private part to be accessible from Prj.Attr.PM body.
30809 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30810 from new package Prj.Attr.PM.
30811 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30814 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30816 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30817 instead of Elaboration_Checks).
30819 * a-calend.adb: Minor reformatting
30821 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30823 * gigi.h (maybe_pad_type): New declaration.
30824 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30826 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30828 * cuintp.c: Convert to use buildN.
30830 * decl.c (maybe_pad_type): No longer static.
30831 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30833 Convert to use buildN.
30835 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30836 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30837 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30839 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30840 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30841 Convert to use buildN.
30843 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30844 TREE_READONLY for const.
30845 Convert to use buildN.
30847 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30848 (create_var_decl): Refine when TREE_STATIC is set.
30849 Convert to use buildN.
30851 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30853 * gnat_ugn.texi: Delete text relating to checking of ali and object
30856 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30859 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30861 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30862 pragmas recognized by GNAT.
30864 * gnat_rm.texi: Document pragma Detect_Blocking.
30866 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30867 raise Program_Error if called from a protected operation.
30869 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30870 the protected action nesting level.
30871 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30872 protected action nesting level.
30873 (Unlock): When pragma Detect_Blocking is active decrease the protected
30874 action nesting level.
30876 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30877 Protected_Action_Nesting.
30879 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30880 Common_ATCB record. It contains the dynamic level of protected action
30881 nesting for each task. It is needed for checking whether potentially
30882 blocking operations are called from protected operations.
30883 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30884 Detect_Blocking is active or not in the partition.
30886 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30887 raise Program_Error if called from a protected operation.
30888 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30889 Program_Error if called from a protected operation.
30890 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30891 Program_Error if called from a protected operation.
30893 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30894 raise Program_Error if called from a protected operation.
30896 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30897 raise Program_Error if called from a protected operation, and increase
30898 the protected action nesting level.
30899 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30900 Program_Error if called from a protected operation, and increase the
30901 protected action nesting level.
30902 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30903 protected action nesting level.
30905 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30906 raise Program_Error if called from a protected operation, and increase
30907 the protected action nesting level.
30908 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30909 Program_Error if called from a protected operation, and increase the
30910 protected action nesting level.
30911 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30912 raise Program_Error if called from a protected operation.
30913 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30914 active, raise Program_Error if called from a protected operation.
30915 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30916 protected action nesting level.
30918 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30919 insertion of the statement raising Program_Error. The run time
30920 contains the required machinery for handling that.
30922 * sem_util.ads: Change comment associated to procedure
30923 Check_Potentially_Blocking_Operation.
30924 This procedure does not insert a call for raising the exception because
30925 that is currently done by the run time.
30927 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30929 * init.c: Add the global variable __gl_detect_blocking that indicates
30930 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30931 making the pragma available at run time.
30932 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30934 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30935 pragma Detect_Blocking is active.
30937 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30939 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30940 DB is found in the ali file. Any unit compiled with pragma
30941 Detect_Blocking active forces its effect in the whole partition.
30943 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30944 Detect_Blocking is active and delay is called from a protected
30947 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30948 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30949 Detect_Blocking is active (0 otherwise).
30950 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30951 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30954 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30956 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30957 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30960 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30961 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30962 Update API in placeholder implemetation of s-parint to reflect changes
30963 in distribution runtime library.
30965 * sem_ch3.adb (Expand_Derived_Record): Rename to
30966 Expand_Record_Extension.
30968 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30969 primitive operations of potentially distributed object types that have
30970 non-controlling anonymous access formals.
30972 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30974 New implementation of expansion for remote access-to-subprogram types,
30975 based on the RACW infrastructure.
30976 This version of sem_dist is compatible with PolyORB/DSA as well as
30979 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30980 Asynchrronous that applies to a remote access-to-subprogram type, mark
30981 the underlying RACW type as asynchronous.
30983 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30984 __gnat_using_gnu_linker to 1.
30986 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30987 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30988 GNAT.Perfect_Hash_Generators, and remove the empty
30989 GNAT.Perfect_Hash package.
30991 * atree.adb: Minor reformatting
30993 * exp_ch3.adb (Expand_Derived_Record): Rename to
30994 Expand_Record_Extension.
30995 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30996 a component declaration must remain attached at that point in the
30997 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30998 It is therefore necessary to take a copy of the expression when building
30999 the corresponding assignment statement in the init proc.
31000 As a side effect, in the case of a derived record type, we now see the
31001 original expression, without any rewriting that could have occurred
31002 during expansion of the ancestor type's init proc, and we do not need
31003 to go back to Original_Node.
31005 * exp_ch3.ads (Expand_Derived_Record): Rename to
31006 Expand_Record_Extension.
31008 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
31009 Returns the RACW type used to implement a remote access-to-subprogram
31011 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
31012 New subprograms. Used to create a proxy tagged object for a remote
31013 subprogram. The proxy object is used as the designated object
31014 for RAS values on the same partition (unless All_Calls_Remote applies).
31015 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
31016 System.Partition_Interface.Get_Unique_Remote_Pointer.
31017 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
31018 Renamed from Add_RAS_*_Attribute.
31019 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
31021 New implementation of expansion for remote access-to-subprogram types,
31022 based on the RACW infrastructure.
31024 * exp_dist.ads (Copy_Specification): Update comment to note that this
31025 function can copy the specification from either a subprogram
31026 specification or an access-to-subprogram type definition.
31028 2004-09-09 Ed Schonberg <schonberg@gnat.com>
31030 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
31031 in an instance, between an explicit subprogram an one inherited from a
31032 type derived from an actual.
31034 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
31035 add a polling call if the subprogram is to be inlined by the back-end,
31036 to avoid repeated calls with multiple inlinings.
31038 * checks.adb (Apply_Alignment_Check): If the expression in the address
31039 clause is a call whose name is not a static entity (e.g. a dispatching
31040 call), treat as dynamic.
31042 2004-09-09 Robert Dewar <dewar@gnat.com>
31044 * g-trasym.ads: Minor reformatting
31046 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
31047 packed arrays, since unused bits are expected to be zero for a
31050 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
31052 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31055 2004-09-09 Pascal Obry <obry@gnat.com>
31057 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31058 enable map file generation. Add the right option to generate the map
31059 file if Map_File is set to True.
31061 * gnatdll.adb (Gen_Map_File): New variable.
31062 (Syntax): Add info about new -m (Map_File) option.
31063 (Parse_Command_Line): Add support for -m option.
31064 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31065 Minor reformatting.
31067 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
31069 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31070 new gnatdist implementation.
31071 Define a subpackage isolating the output routines specific to this
31074 2004-09-09 Joel Brobecker <brobecker@gnat.com>
31076 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31078 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31080 2004-09-09 Cyrille Comar <comar@act-europe.fr>
31082 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31085 * opt.ads: Add Ada_Version_Runtime constant used to decide which
31086 version of the language is used to compile the run time.
31088 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
31090 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31091 of variable length temporaries for function return now that the
31092 back-end and gigi support it.
31094 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31096 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31098 * trans.c (struct stmt_group): Delete field GLOBAL.
31099 (gnat_init_stmt_group): Do not initialize it.
31100 (call_to_gnu): Use save_expr, not protect_multiple_eval.
31101 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31102 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31103 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31104 (start_stmt_group): Likewise.
31105 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31107 * utils2.c (ggc.h): Include.
31108 (build_call_raise): Call build_int_cst, not build_int_2.
31110 * utils.c (gnat_init_decl_processing): Fix arg to
31111 build_common_tree_nodes.
31112 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31113 (gnat_define_builtin): Set built_in_decls.
31114 (init_gigi_decls): Call build_int_cst, not build_int_2.
31116 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31117 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31118 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31119 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31120 SET_TYPE_MODULE): Use them.
31121 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31122 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31123 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31124 SET_TYPE_ADA_SIZE): Likewise.
31125 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31126 (DECL_CONST_CORRESPONDING_VAR,
31127 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31128 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31129 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31130 (TYPE_RM_SIZE_NUM): New macro.
31131 (TYPE_RM_SIZE): Modified to use above.
31133 * cuintp.c: (build_cst_from_int): New function.
31134 (UI_To_gnu): Use it.
31136 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31137 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31138 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31139 MIN_EXPR for the size, copy it into new.
31141 2004-09-01 Robert Dewar <dewar@gnat.com>
31143 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31144 packed indexed component where array is an IN OUT formal. This
31145 generated garbage code previously.
31147 * gnat_ugn.texi: Document -fverbose-asm
31149 * gnat-style.texi: Minor updates (note that boolean constants and
31150 variables are joined with AND/OR rather than short circuit forms).
31152 2004-09-01 Ed Schonberg <schonberg@gnat.com>
31154 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31155 it is an upward conversion of an untagged type with no representation
31158 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
31160 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31161 System.Partition_Interface.
31163 * checks.adb (Apply_Access_Checks): Do not generate checks when
31164 expander is not active (but check for unset reference to prefix of
31167 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31168 pragma Debug as an if statement with a constant condition, for
31169 consistent treatment of entity references contained within the
31170 enclosed procedure call.
31172 2004-09-01 Vincent Celier <celier@gnat.com>
31174 * bindgen.adb: (Set_EA_Last): New procedure
31175 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31177 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31178 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31179 linked without errors.
31180 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31182 (Gen_Exception_Table_C): Correct same bugs
31184 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31186 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31187 on Windows, make sure that the drive letter is in upper case.
31189 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31190 Windows, when the drive letter is added and Case_Sensitive is True, the
31191 drive letter is forced to upper case.
31193 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31194 to Options_2 for the call to MLib.Utl.Gcc.
31196 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31197 directory separator when defining BASE_DIR.
31199 2004-09-01 Pascal Obry <obry@gnat.com>
31201 * gprcmd.adb (Extend): Do not output trailing directory separator. This
31202 is not needed and it confuses Windows GNU/make which does not report
31203 directory terminated by a slash as a directory.
31204 (gprcmd): Idem for "pwd" internal command.
31206 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31207 target names rewrite to fix regressions with recent version of
31208 GNU/make. Starting with GNU/make 3.80 the pipe character was not
31209 handled properly anymore.
31211 2004-09-01 Andreas Schwab <schwab@suse.de>
31213 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31214 * raise.c [!IN_RTS]: Undef abort.
31216 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
31218 * utils2.c (build_allocator): Use ssize_int.
31220 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31222 2004-08-27 Andreas Schwab <schwab@suse.de>
31224 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31226 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31227 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31229 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31231 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31233 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31234 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31235 * utils.c (init_gigi_decls): Likewise.
31236 * utils2.c (build_call_raise, build_allocator): Likewise.
31238 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31240 * utils.c (gnat_init_decl_processing): Adjust
31241 build_common_tree_nodes call.
31243 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31245 * utils2.c (build_allocator): Use build_int_cst for negative
31248 2004-08-18 Richard Henderson <rth@redhat.com>
31250 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31252 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31254 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31256 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31257 (gnat_to_gnu): Likewise.
31259 2004-08-16 Pascal Obry <obry@gnat.com>
31261 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31262 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31263 option and not mdll anymore. Update comment.
31265 2004-08-16 Pascal Obry <obry@gnat.com>
31267 * bld.adb (Put_Include_Project): Properly handle directory separators
31270 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31272 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31273 decreasing the number of allocated junk nodes while searching for the
31274 appropriate subprogram.
31276 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31278 * cuintp.c (UI_To_gnu): Use build_int_cst..
31279 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31280 * utils.c (init_gigi_decls): Likewise.
31281 * utils2.c (build_call_raise): Likewise.
31283 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31285 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31286 for a global aliased object with a variable size and an unconstrained
31287 nominal subtype, pretend there is no initializer if the one we have is
31288 incomplete, and avoid referencing an inexistant component in there. The
31289 part we have will be rebuilt anyway and the reference may confuse
31290 further operations.
31292 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31294 * einfo.ads: Minor reformatting
31296 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31297 restrictions in the ALI if we only want to warn about violations.
31299 2004-08-13 Vincent Celier <celier@gnat.com>
31301 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31302 when creating a new Unit_Record in table Units.
31304 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31305 that are violated, if any.
31307 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31308 add directory separator if path already ends with a directory separator.
31310 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31312 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31313 unit, this is an attempt to inline a construct that is not available in
31314 the current restricted mode, so abort rather than trying to continue.
31316 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31317 discriminants that rename those of the parent, recover names of
31318 original discriminants for the constraint on the full view of the
31320 (Complete_Private_Subtype): Do not create a subtype declaration if the
31321 subtype is an itype.
31323 * gnat_rm.texi: Added section on implementation of discriminated
31324 records with default values for discriminants.
31326 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31329 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31330 the second operand is overloaded.
31332 2004-08-10 Richard Henderson <rth@redhat.com>
31334 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31335 add __builtin_alloca.
31337 2004-08-10 Richard Henderson <rth@redhat.com>
31339 * config-lang.in (boot_language): Yes.
31341 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31343 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31344 from complaining on potential uninitialized reference.
31345 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31346 new specification and test explicitly for non-zero return value.
31348 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31349 returning C.int, to avoid using a derived boolean type.
31351 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31352 Duplicate_Subexpr_No_Checks in preference to direct use of
31353 Remove_Side_Effects and New_Copy_Tree.
31354 Clear Comes_From_Source on prefix of 'Size attribute reference.
31356 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31357 g-socthi-vxworks.adb: Change calls to
31358 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31359 and test explicitly for non-zero return value.
31361 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31362 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31363 avoid using a derived boolean type.
31365 2004-08-09 Albert Lee <lee@gnat.com>
31367 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31369 2004-08-09 Pascal Obry <obry@gnat.com>
31371 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31372 GCC's -shared option.
31374 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31375 Options_2 parameter (options put after object files).
31377 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31379 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31380 ignore overflows on low and high bounds of an index to also account for
31381 differences in signedness between sizetype and gnu_index_subtype.
31382 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31385 2004-08-09 Robert Dewar <dewar@gnat.com>
31387 * s-solita.ads, s-solita.adb: Minor reformatting
31389 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31390 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31391 obsolescent section
31392 Add note that No_Implicit_Conditionals does not suppress
31393 run time constraint checks.
31395 * vms_conv.ads: Minor reformatting
31397 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31398 and necessary for following change).
31399 (Mark): Return new format Mark_Id containing sec stack address
31400 (Release): Use sec stack address from Mark_Id avoiding Self call
31402 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31403 pointer (cleanup and necessary for following change).
31404 Define Mark_Id as record containing address of secondary stack, that way
31405 Release does not need to find the stack again, decreasing the number of
31406 calls to Self and improving efficiency.
31408 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31410 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31411 case variable into the individual case branches when possible.
31413 * sem_ch11.adb: Minor reformatting
31415 * prj.ads: Correct spelling of suffixs
31417 * prj-nmsc.adb: Minor reformatting
31418 Correct spelling suffixs throughout (also in identifiers)
31420 * freeze.adb: Minor spelling correction
31422 * exp_ch2.adb: Cleanups to handling of Current_Value
31423 (no functional effect).
31425 * bld.adb: Correct spelling of suffixs
31427 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31429 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31432 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31433 package or of a child, private entities are both immediately_visible
31436 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31438 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31439 there are no range checks on the value of the literal.
31441 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31442 wrapped is the triggering alternative of an asynchronous select, action
31443 statements mustbe inserted before the select itself.
31445 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31446 case where the prefix is a protected function call.
31447 (Resolve_Attribute, case 'Access): The attribute reference on a
31448 subprogram is legal in a generic body if the subprogram is declared
31451 2004-08-09 Vincent Celier <celier@gnat.com>
31453 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31454 languages, otherwise building the library may fail with unresolved
31456 (Compile_Sources): Do not build libraries if -c switch is used
31458 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31459 (Write_Usage): If map file creation is supported, output new switches
31461 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31462 gcc call, when supported.
31464 * Makefile.in: Added indepsw.o to the object list for gnatlink
31465 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31467 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31468 indepsw.adb, indepsw.ads: New files.
31470 2004-08-09 Bernard Banner <banner@gnat.com>
31472 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31474 * Makefile.in: add section for vxworks x86
31476 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31478 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31479 per-object constrained components where the discriminant is of an
31481 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31482 the parent initialization procedure for derived Unchecked_Unions.
31483 Instead, derived Unchecked_Unions build their own initialization
31485 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31486 Check the body of the subprogram for details.
31487 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31488 functions for derived Unchecked_Union types by introducing a condition.
31489 Allow the creation of TSS equality functions for Unchecked_Unions.
31490 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31491 Add formal parameter Discr to function signature. Discr is used to
31492 control the generated case statement for Unchecked_Union types.
31493 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31495 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31497 Check the body of the subprogram for details.
31498 (Expand_Composite_Equality): Augment composite type equality to include
31499 correct handling of Unchecked_Union components.
31500 (Expand_N_In): Add condition to detect illegal membership tests when the
31501 subtype mark is a constrained Unchecked_Union and the expression lacks
31502 inferable discriminants, and build a Raise_Program_Error node.
31503 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31504 to detect types that contain components of unconstrained Unchecked_Union
31505 subtype. Add condition to detect equality between types that have an
31506 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31507 node. Add condition to detect equality between Unchecked_Union types
31508 that lack inferable discriminants, and build a Raise_Program_Error node.
31509 Otherwise build a TSS equality function call.
31510 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31511 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31512 with the operand lacking inferable discriminants, and build a Raise_
31513 Program_Error node.
31514 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31515 composite equality.
31516 (Has_Inferable_Discriminants): Implement new predicate for objects and
31517 expressions of Unchecked_Union type. Check the body of subprogram for
31519 (Has_Unconstrained_UU_Components): Add function
31520 Component_Is_Unconstrained_UU. It is used to detect whether a single
31521 component is of an unconstrained Unchecked_Union subtype. Add function
31522 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31523 component inside a variant is of an unconstrained Unchecked_Union type.
31525 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31526 inferred discriminant values. Add condition to generate a case
31527 statement with an inferred discriminant as the switch.
31528 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31529 the behaviour of the subprogram in the presence of an Unchecked_Union.
31530 Add condition to trigger the usage of the inferred discriminant value
31531 as the generated case statement switch.
31532 (Make_Field_Assign): Introduce a Boolean flag that determines the
31533 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31534 condition to trigger the usage of the inferred discriminant value as
31535 the right-hand side of the generated assignment.
31537 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31538 parameter generation when dealing with Unchecked_Unions.
31540 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31541 checks for Unchecked_Unions.
31543 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31545 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31546 Raise_Program_Error nodes for the execution of Read and Write
31547 attributes of Unchecked_Union types and the execution of Input and
31548 Output attributes of Unchecked_Union types that lack default
31549 discriminant values.
31551 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31552 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31553 per-object constrained components of Unchecked_Unions for being
31554 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31555 check individual components withing a variant.
31557 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31558 comparison of Unchecked_Unions.
31559 (Resolve_Equality_OP): Remove guard that prevents equality between
31562 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31563 of component subtypes for Unchecked_Union components.
31564 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31565 since it is the actual subtype.
31567 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31568 pass of Unchecked_Union subtypes as generic actuals to formal types
31569 that lack known_discriminant_parts or that are derived Unchecked_Union
31570 types, and do nothing. In any other case, produce an error message.
31572 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31573 Contains_POC. It determines whether a constraint uses the discriminant
31574 of an enclosing record type.
31575 Add condition to detect per-object constrained component and set the
31577 (Derived_Type_Declaration): Remove guard that prevents derivation from
31578 Unchecked_Union types.
31579 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31582 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31583 references to Unchecked_Union discriminants.
31585 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31586 formal generation when dealing with Unchecked_Unions.
31587 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31588 subtypes for Unchecked_Unions.
31590 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31591 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31592 completions of discriminated partial views by Unchecked_Unions and
31593 produce an error message.
31595 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31597 * trans.c (struct stmt_group): New field, GLOBAL.
31598 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31599 (struct elab_info): New struct.
31600 (elab_info_list, gnu_elab_proc_stack): New variables.
31601 (Compilation_Unit_to_gnu): New procedure.
31602 (gigi): Call it and also handle elaboration procs we've saved.
31603 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31604 global field from parent.
31605 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31606 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31607 (start_stmt_group): Initialize global field from parent.
31608 (add_decl_expr): Set to global for current statement group.
31609 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31612 * utils.c (global_bindings_p): True when no current_function_decl; no
31613 longer check current_binding_level.
31615 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31617 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31620 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31622 2004-08-06 Andreas Schwab <schwab@suse.de>
31624 * utils.c (gnat_define_builtin): Remove second parameter of
31626 (begin_subprog_body): Likewise.
31628 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31630 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31631 optimization, not supported by the tree-ssa back-end.
31633 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31635 * s-mastop-irix.adb: Update comments.
31637 * a-except.adb (Exception_Information): Raise Constraint_Error if
31638 exception Id is Null_Id.
31639 This is required behavior, which is more reliably and clearly checked
31640 at the top level interface level.
31642 2004-07-26 Javier Miranda <miranda@gnat.com>
31644 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31645 call if a component has no default_expression and the box is used.
31647 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31648 default_expression and you use box, it behaves as if you had declared a
31649 stand-alone object.
31650 (Resolve_Record_Aggregate): If a component has no default_expression and
31651 you use box, it behaves as if you had declared a stand-alone object.
31653 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31654 entities of private-with siblings.
31656 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31658 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31659 for a component of an itype, set the parent pointer for analysis,
31660 there is no list in which to insert it.
31662 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31663 bona-fide renamings, not for inherited operations.
31665 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31666 actual for a formal that is an access parameter, create local
31667 finalization list even if the expression is not an aggregate.
31669 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31672 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31673 Diagnose properly illegal subprogram renamings that are library units.
31675 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31678 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31679 conversion rewritten as an unchecked conversion, check that original
31680 expression is a variable.
31682 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31683 unchecked_conversion, create new node rather than rewriting in place,
31684 to preserve original construct.
31686 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31688 * gigi.h (gnat_expand_body): Deleted.
31690 * Make-lang.in: (trans.o): Depends on function.h.
31692 * misc.c: (gnat_expand_body): Moved to here.
31694 * trans.c (gnat_expand_body_1): Deleted.
31695 (gnat_expand_body): Moved from here.
31696 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31697 (add_stmt): Check for marked visited with global_bindings_p.
31698 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31699 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31701 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31702 VIEW_CONVERT_EXPR if not operation type.
31704 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31707 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31708 changes: reformatting of negation operators, removing unneeded
31709 inequality comparison with zero, converting equality comparisons with
31710 zero to negations, changing int/0/1 to bool/false/true, replace calls
31711 to gigi_abort with abort, and various other similar changes.
31713 2004-07-26 Vincent Celier <celier@gnat.com>
31715 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31718 * make.adb (Gnatmake): Fail when a library is not present and there is
31719 no object directory.
31721 * mlib-prj.adb (Check_Library): No need to check if the library needs
31722 to be rebuilt if there is no object directory, hence no object files
31723 to build the library.
31725 * opt.ads (Setup_Projects): New Boolean flag.
31727 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31729 Create directory when Kind /= "" and in "gnat setup". Report error if
31730 directory cannot be created.
31731 (Ada_Check): Create library interface copy dir if it does not exist
31732 and we are in "gnat setup".
31733 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31735 (Language_Independent_Check): Create object directory, exec directory
31736 and/or library directory if they do not exist and we are in
31739 * vms_conv.ads: (Command_Type): New command Setup.
31741 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31743 * vms_data.ads: Add qualifiers/switches for new built-in command
31746 2004-07-25 Richard Henderson <rth@redhat.com>
31748 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31749 DECL_IGNORED_P on RESULT_DECL.
31751 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31753 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31754 allocation and potentially overflowing update with
31755 Tailored_Exception_Information. Use the sec-stack free procedural
31756 interface to output Exception_Information instead.
31758 * a-except.adb (To_Stderr): New subprogram for character, and string
31759 version moved from a-exextr to be visible from other separate units.
31760 (Tailored_Exception_Information): Remove the procedural version,
31761 previously used by the default Last_Chance_Handler and not any more.
31762 Adjust various comments.
31764 * a-exexda.adb: Generalize the exception information procedural
31765 interface, to minimize the use of secondary stack and the need for
31766 local buffers when the info is to be output to stderr:
31767 (Address_Image): Removed.
31768 (Append_Info_Character): New subprogram, checking for overflows and
31769 outputing to stderr if buffer to fill is of length 0.
31770 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31771 (Append_Info_Address, Append_Info_Exception_Name,
31772 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31773 Append_Info_Basic_Exception_Traceback,
31774 Append_Info_Exception_Information): New subprograms.
31775 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31776 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31777 Exception_Info_Maxlength, Exception_Name_Length,
31778 Exception_Message_Length): New subprograms.
31779 (Exception_Information): Use Append_Info_Exception_Information.
31780 (Tailored_Exception_Information): Use
31781 Append_Info_Basic_Exception_Information.
31782 Export services for the default Last_Chance_Handler.
31784 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31785 other separate units.
31787 2004-07-20 Vincent Celier <celier@gnat.com>
31789 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31791 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31793 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31794 emit itype references for the designated types of component types that
31795 are declared outside of the full record declaration, and that may
31796 denote a partial view of that record type.
31798 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31801 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31802 which is the designated type in an access component declaration, to the
31803 list of incomplete dependents of the parent type, to avoid elaboration
31804 issues with out-of-scope subtypes.
31805 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31806 full view of the parent.
31808 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31811 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31812 entities that are hidden, such as references to generic actuals
31813 outside an instance.
31815 2004-07-20 Javier Miranda <miranda@gnat.com>
31817 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31818 support to the new notation.
31819 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31821 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31823 * s-taprob.adb: Adding the elaboration code required for initializing
31824 the tasking soft links that are common to the full and the restricted
31827 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31828 restricted run time has been moved to the package
31829 System.Soft_Links.Tasking.
31831 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31832 restricted run time has been moved to the package
31833 System.Soft_Links.Tasking.
31835 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31837 * s-solita.ads, s-solita.adb: New files.
31839 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31841 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31842 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31843 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31844 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31845 Exception_Handler_to_gnu_zcx): Likewise.
31847 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31849 * gigi.h (builtin_function): Declare.
31851 2004-07-15 Robert Dewar <dewar@gnat.com>
31853 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31856 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31857 access values as an example of a warning.
31859 * gnat_rm.texi: Document new attribute Has_Access_Values
31861 * gnat-style.texi: Document that box comments belong on nested
31864 * sem_util.ads (Has_Access_Values): Improved documentation
31866 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31868 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31869 (Process_Interface_Name): Call to this new procedure
31870 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31872 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31874 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31876 * einfo.ads: Minor comment typo fixed
31878 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31880 * snames.adb: Add _atcb.
31882 * snames.ads: Add Name_uATCB.
31884 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31885 (in the expanded code) when using the restricted run time.
31887 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31888 a in parameter in order to allow ATCBs to be preallocated (in the
31891 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31892 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31893 deallocated in System.Tasking.Stages.
31895 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31896 order to allow ATCBs to be preallocated.
31898 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31899 here. It was previously done in Initialize_ATCB.
31901 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31903 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31904 Restricted run time.
31906 * exp_ch3.adb: When using the Restricted run time, pass the
31907 preallocated Ada_Task_Control_Block when creating a task.
31909 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31911 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31912 function call that is itself an actual in an enclosing call, diagnose
31913 problem here rather than assuming that resolution will catch it.
31915 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31916 the local copy of a generic unit for a formal package, and the generic
31917 is a child unit, install private part of ancestors before compiling
31918 private part of spec.
31920 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31921 use scope entities rather than tree structures, to handle properly
31922 parent units that are instances rewritten as bodies for inlining
31925 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31926 Remove_Parents): Handle properly a parent unit that is an
31927 instantiation, when the unit has been rewritten as a body for inlining
31930 * par.adb (Goto_List): Global variable to collect goto statements in a
31931 given unit, for use in detecting natural loops.
31933 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31934 use in detecting natural loops.
31936 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31937 backwards goto's, and rewrite as a infinite loop, to improve locality
31940 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31941 subcomponent that includes an indexed reference, to prevent the
31942 generation of copies that would miscompile the desired assignment
31944 (Build_Task_Image_Decls): Add a numeric suffix to
31945 generated name for string variable, to avoid spurious conflicts with
31946 the name of the type of a single protected object.
31948 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31949 loop with an explicit exit statement, to avoid generating an
31950 out-of-range value with 'Succ leading to spurious constraint_errors
31951 when compiling with -gnatVo.
31953 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31955 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31956 might not be analyzed yet, even if its Etype is already set (case of an
31957 unchecked conversion built using Unchecked_Convert_To, for example).
31958 If the prefix has already been analyzed, this will be a nop anyway.
31960 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31961 controller type, or an assignment of a record type with controlled
31962 components, copy only user data, and leave the finalization chain
31963 pointers untouched.
31965 2004-07-15 Vincent Celier <celier@gnat.com>
31967 * make.adb (Collect_Arguments): Improve error message when attempting
31968 to compile a source not part of any project, when -x is not used.
31970 * prj.ads: (Defined_Variable_Kind): New subtype
31972 * prj-attr.adb (Register_New_Package): Two new procedures to register
31973 a package with or without its attributes.
31974 (Register_New_Attribute): Mew procedure to register a new attribute in a
31976 New attribute oriented subprograms: Attribute_Node_Id_Of,
31977 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31978 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31980 New package oriented subprograms: Package_Node_Id_Of,
31981 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31983 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31985 (Package_Node_Id): Now a private, self initialized type
31986 (Register_New_Package): New procedure to register a package with its
31988 New attribute oriented subprograms: Attribute_Node_Id_Of,
31989 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31990 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31992 New package oriented subprograms: Package_Node_Id_Of,
31993 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31995 * prj-dect.adb (Parse_Attribute_Declaration,
31996 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31998 * prj-makr.adb (Make): Parse existing project file before creating
31999 other files. Fail if there was an error during parsing.
32001 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
32002 new spec of Prj.Attr.
32004 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
32005 to new spec of Prj.Attr.
32007 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32009 * utils2.c: Fix typo in comment.
32011 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32013 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
32014 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
32016 2004-07-14 Andreas Schwab <schwab@suse.de>
32018 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
32020 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32022 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
32024 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
32027 * misc.c (gnat_types_compatible_p): New function.
32028 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
32029 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
32031 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
32032 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
32033 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
32034 (mark_visited): Don't mark dummy type.
32035 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
32036 parameter, we must remove any LJM building from GNU_NAME.
32037 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
32038 (pos_to_constructor): Use int_const_binop.
32039 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
32042 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
32043 (gnat_pushlevel): Set TREE_USE on BLOCK node.
32044 (gnat_install_builtins): Add __builtin_memset.
32046 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
32048 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32049 for a renaming, stabilize the initialization expression if we are at a
32050 local level. At the local level, uses of the renaming may be performed
32051 by a direct dereference of the initializing expression, and we don't
32052 want possible variables there to be evaluated for every use.
32054 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32055 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32056 them on the way. Account for the fact that we may introduce side
32057 effects in the process.
32059 2004-07-13 Richard Henderson <rth@redhat.com>
32061 * misc.c (default_pass_by_ref): Use pass_by_reference.
32063 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
32065 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32066 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32068 2004-07-08 Richard Henderson <rth@redhat.com>
32070 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32073 2004-07-06 Vincent Celier <celier@gnat.com>
32075 * vms_conv.ads: Minor reformatting.
32076 Alphabetical order for enumerated values of type Command_Type, to have
32077 the command in alphabetical order for the usage.
32079 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32080 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32082 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32084 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32085 (Add_Archive_Path): Only add the global archive if there is one.
32086 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32087 or not any object file to put in the global archive, and don't build
32088 a global archive if there is none.
32089 (X_Switches): New table
32090 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32091 in the X_Switches table, if any.
32092 (Initialize): Make sure the X_Switches table is empty
32093 (Scan_Arg): Record -X switches in table X_Switches
32095 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32097 * make.adb: Minor comment fix
32099 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32100 invoked with directory information, add the directory in front of the
32103 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32104 invoked with directory information, add the directory in front of the
32107 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32108 when Keep_Temporary_Files is False.
32109 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32110 directory information, add the directory in front of the path.
32111 When not on VMS, handle new switch -dn before the command to set
32112 Keep_Temporary_Files to True.
32113 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32116 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32117 invoked with directory information, add the directory in front of the
32120 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
32122 * snames.ads, snames.adb (Name_Stub): New name for the distributed
32125 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32126 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32128 * g-socket.adb (To_Timeval): Fix incorrect conversion of
32129 Selector_Duration to Timeval for the case of 0.0.
32131 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32132 documentation from Evolve_And_Then.
32134 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
32136 * s-taprop-tru64.adb, s-taprop-os2.adb,
32137 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32139 2004-07-06 Robert Dewar <dewar@gnat.com>
32141 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32142 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32143 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32144 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32145 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32146 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32147 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32148 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32149 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32150 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32151 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32152 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32153 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32154 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32155 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32156 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32157 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32158 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32159 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32160 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32161 vms_data.ads: Minor reformatting,
32162 Fix bad box comment format.
32164 * gnat_rm.texi: Fix minor grammatical error
32166 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32168 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32169 more cases of discriminated records to be recognized as not needing a
32171 (Has_Access_Values): New function.
32173 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32175 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32176 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32177 with LRM terminology).
32178 Change terminology in comments primitive type => elementary type.
32180 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32183 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32184 parameters do not impose any requirements on the presence of a body.
32186 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32189 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32190 compilation unit and is in an open scope at the point of instantiation,
32191 assume that a body may be present later.
32193 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32195 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32196 Improve error message when specified size is not supported.
32198 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32199 is never a primitive operation.
32201 2004-07-05 Andreas Schwab <schwab@suse.de>
32203 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32204 RECORD_OR_UNION_CHECK.
32205 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32207 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
32209 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32210 dependency on xgnatugn, instead build it via a submake.
32211 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32213 2004-07-04 Richard Henderson <rth@redhat.com>
32215 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32217 2004-07-01 Richard Henderson <rth@redhat.com>
32219 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32220 * utils.c (max_size): Likewise.
32222 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32224 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32225 and rest_of_type_compilation; add arg to create_*_decl.
32226 (annotate_decl_with_node): Deleted.
32227 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32228 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32229 (get_current_block_context, gnat_pushdecl): New declarations.
32230 (gnat_init_stmt_group): Likewise.
32231 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32232 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32233 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32234 (gnat_init): Call gnat_init_stmt_group.
32235 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32236 (gnu_pending_elaboration_list): Deleted.
32237 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32238 (gigi): Rearrange initialization calls and move some to last above.
32239 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32240 Delete calls to add_decl_expr; add arg to create_*_decl.
32241 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32242 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32243 begin_subprog_body and call it.
32244 Don't push and pop ggc context.
32245 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32246 (add_stmt): Remove handling of DECL_EXPR from here.
32247 If not in function, mark visited.
32248 (add_decl_expr): Put global at top level.
32249 Check for cases of DECL_INITIAL we have to handle here.
32250 (process_type): Add extra arg to create_type_decl.
32251 (build_unit_elab): Rework to just gimplify.
32252 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32253 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32254 (get_pending_elaborations, pending_elaborations_p): Likewise.
32255 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32256 (get_elaboration_location, insert_elaboration_list): Likewise.
32257 (gnat_binding_level): Renamed from ada_binding_level.
32258 (init_gnat_to_gnu): Don't clear pending_elaborations.
32259 (global_bindings_p): Treat as global if no current_binding_level.
32260 (set_current_block_context): New function.
32261 (gnat_pushdecl): Renamed from pushdecl; major rework.
32262 All callers changed.
32263 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32264 (finish_record_type): Call call pushdecl for stub decl.
32265 (function_nesting_depth): Deleted.
32266 (begin_subprog_body): Delete obsolete code.
32267 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32269 2004-06-28 Robert Dewar <dewar@gnat.com>
32271 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32272 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32273 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32274 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32275 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32277 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32278 deal with problem of inefficient slices on machines with strict
32279 alignment, when the slice is a component of a composite.
32281 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32282 machines, we need the check there as well.
32284 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32286 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32287 determine safe copying direction for overlapping slice assignments
32288 when component is controlled.
32290 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32291 formal derived type in the actual for a formal package are visible in
32292 the enclosing instance.
32294 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32297 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32298 circularity involving a private type whose completion includes a
32299 self-referential component.
32300 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32301 renaming or an instantiation from an implicit derived operation.
32303 2004-06-28 Pascal Obry <obry@gnat.com>
32305 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32307 (Library_File_Name_For): Idem.
32309 2004-06-28 Matthew Gingell <gingell@gnat.com>
32311 * g-traceb.ads: Add explanatory note on the format of addresses
32312 expected by addr2line.
32314 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32316 * Makefile.in: Force debugging information on s-tasdeb.adb,
32317 a-except.adb and s-assert.adb needed by the debugger.
32319 2004-06-28 Vincent Celier <celier@gnat.com>
32321 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32325 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32327 * prj.adb: Minor reformatting
32328 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32330 * prj.ads: Comment updates
32332 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32333 Remove Flag2: not used.
32335 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32338 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32340 * gnat_rm.texi: Document Empty declarations "null;".
32342 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32343 front of the linker options.
32344 (Link_Foreign): Put the global archives and the libraries in front of
32345 the linker options.
32347 2004-06-28 Javier Miranda <miranda@gnat.com>
32349 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32350 (RTU_Loaded): Code cleanup
32351 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32352 withed predefined units.
32354 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32355 explicitly withed predefined units.
32356 Fix typo in comment
32358 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32359 explicitly withed predefined units.
32361 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32363 * ada-tree.def (DECL_STMT): Deleted.
32364 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32365 (DECL_STMT_VAR): Deleted.
32366 * decl.c: add_decl_stmt now add_decl_expr.
32367 * gigi.h: Likewise.
32368 * trans.c: Likewise.
32369 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32370 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32371 (add_stmt): Only handle padded type here.
32372 (add_stmt_with_node): Allow gnat_node to not be present.
32373 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32374 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32375 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32376 make a SAVE_EXPR for the entire fat pointer.
32377 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32378 (create_index_type): Make a DECL_EXPR.
32379 (end_subprog_body): Don't call allocate_struct_function here but
32382 2004-06-25 Pascal Obry <obry@gnat.com>
32384 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32385 Relocatable from Build_Dynamic_Library call.
32387 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32388 Relocatable are now synonym.
32390 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32392 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32393 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32396 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32397 Lib_Address and Relocatable.
32398 (Default_DLL_Address): Removed.
32400 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32401 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32402 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32403 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32404 (Default_DLL_Address): Removed.
32406 * mlib-tgt-mingw.adb: Ditto.
32407 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32409 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32410 the initial thread stack size.
32412 * a-strmap.ads: Move package L to private part as it is not used in
32413 the spec. Found while reading code.
32415 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32417 * tracebak.c: Introduce support for a GCC infrastructure based
32418 implementation of __gnat_backtrace.
32420 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32421 any more. Use accessors instead. This eases maintenance and relaxes
32422 some alignment constraints.
32423 (_GNAT_Exception structure): Remove the Ada specific fields
32424 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32426 (is_handled_by, __gnat_eh_personality): Replace component references to
32427 exception structure by use of the new accessors.
32429 * init.c (__gnat_initialize): Adjust comments to match the just
32430 reverted meaning of the -static link-time option.
32432 * adaint.c (convert_addresses): Arrange not to define a stub for
32433 mips-irix any more, as we now want to rely on a real version from a
32434 recent libaddr2line.
32436 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32437 the personality routine can use them and not have to rely on a C
32438 counterpart of the record anymore. This simplifies maintenance and
32439 relaxes the constraint of having Standard'Maximum_Alignment match
32441 Update comments, and add a section on the common header alignment issue.
32443 2004-06-25 Geert Bosch <bosch@gnat.com>
32445 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32446 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32448 2004-06-25 Robert Dewar <dewar@gnat.com>
32450 * gnat_rm.texi: Fix section on component clauses to indicate that the
32451 restriction on byte boundary placement still applies for bit packed
32453 Add comment on stack usage from Initialize_Scalars
32455 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32457 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32458 limiting nesting level.
32460 * usage.adb: Add line for -gnatyLnnn switch
32462 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32463 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32465 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32466 type as well as on the subtype. This corrects a problem in freeze in
32467 setting alignments of atomic types.
32469 * sem_eval.ads: Minor comment typo fixed
32471 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32472 level. Minor reformatting.
32474 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32475 minus sign. This means that file names like a--b.adb will not be
32476 considered predefined.
32478 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32479 record Test new flag and give diagnostic for bad component clause.
32480 (Freeze_Entity): Set alignment of array from component alignment in
32481 cases where this is safe to do.
32483 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32486 * cstand.adb: (Create_Standard): Set alignment of String to 1
32488 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32490 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32491 code in the common constrained array cases.
32493 * a-storio.adb: Change implementation to avoid possible alignment
32494 problems on machines requiring strict alignment (data should be moved
32495 as type Buffer, not type Elmt).
32497 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32498 killing the overflow checks which we really do not need (64-bits is
32501 2004-06-25 Vincent Celier <celier@gnat.com>
32503 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32504 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32505 inconditionally for the main project.
32506 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32507 (Link_Executables.Check_Time_Stamps): New procedure
32508 (Link_Executables.Link_Foreign): New procedure
32509 Changes made to reduce nesting level of this package
32510 (Check): New procedure
32511 (Add_Switches): When not in quiet output, check that a switch is not
32512 the concatenation of several valid switches. If it is, issue a warning.
32513 (Build_Global_Archive): If the global archive is rebuilt, linking need
32515 (Compile_Sources): Rebuilding a library archive does not imply
32516 rebuilding the global archive.
32517 (Build_Global_Archive): New procedure
32518 (Build_Library): New name for Build_Archive, now only for library
32520 (Check_Archive_Builder): New procedure
32521 (Create_Global_Archive_Dependency_File): New procedure
32522 (Gprmake): Call Build_Global_Archive before linking
32523 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32525 (Scan_Arg): Display the Copyright notice when -v is used
32527 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32530 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32532 Add new GNAT LIST qualifier /FILES=
32533 Added qualifier /DIRECTORY= to GNAT METRIC
32534 Added qualifier /FILES= to GNAT METRIC
32535 Added qualifier /FILES to GNAT PRETTY
32537 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32538 to take into account both versions of the switch.
32540 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32541 always be the last switch to the gcc driver. Disable switch storing so
32542 that switches automatically added by the gcc driver are not put in the
32545 * prj.adb (Project_Empty): Take into account changes in components of
32548 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32550 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32551 used. Split Boolean component Ada_Sources_Present in two Boolean
32552 components Ada_Sources_Present and Other_Sources_Present.
32555 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32556 instead of Sources_Present.
32557 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32559 * prj-nmsc.adb: Minor reformatting
32560 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32561 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32562 Check_Ada_Naming_Scheme.
32563 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32566 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32568 Make sure that all cycles where there is at least one "limited with"
32570 (Parse_Single_Project): New Boolean parameter In_Limited
32572 * prj-proc.adb (Recursive_Check): When Process_Languages is
32573 All_Languages, call first Prj.Nmsc.Ada_Check, then
32574 Prj.Nmsc.Other_Languages_Check.
32576 * prj-proc.adb (Process): Use Ada_Sources_Present or
32577 Other_Sources_Present (instead of Sources_Present) depending on
32580 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32583 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32584 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32586 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32589 * lib.ads (Disable_Switch_Storing): New procedure.
32591 * make.adb: Modifications to reduce nesting level of this package.
32592 (Check_Standard_Library): New procedure
32593 (Gnatmake.Check_Mains): New procedure
32594 (Gnatmake.Create_Binder_Mapping_File): New procedure
32595 (Compile_Sources.Compile): Add switch -gnatez as the last option
32596 (Display): Never display -gnatez
32598 * Makefile.generic:
32599 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32601 * gnatcmd.adb (Check_Project): New function
32602 (Process_Link): New procedure to reduce nesting depth
32603 (Check_Files): New procedure to reduce the nesting depth.
32604 For GNAT METRIC, include the inherited sources in extending projects.
32605 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32606 add the list of files from the sources of the project file. If this list
32607 is too long, put it in a temp text files and use switch -files=
32608 (Delete_Temp_Config_Files): Delete the temp text file that contains
32609 a list of source for gnatpp or gnatmetric, if one has been created.
32610 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32611 in the project file is too large, create a temporary text file that
32612 list them and pass it to the tool with "-files=<temp text file>".
32613 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32615 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32616 generated file is in not in Ada.
32618 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32619 (Scan_Ls_Arg): Add processing for -files=
32620 (Usage): Add line for -files=
32622 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32623 (Normalize_Pathname): When on Windows and the path starts with a
32624 directory separator, make sure that the resulting path will start with
32627 * clean.adb (Clean_Archive): New procedure
32628 (Clean_Project): When there is non-Ada code, delete the global archive,
32629 the archive dependency files, the object files and their dependency
32630 files, if they exist.
32631 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32633 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32635 * sinfo.ads: Fix typo in comment.
32637 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32638 the TSS for remote access-to-subprogram types, since these TSS are
32639 always present once the type has been analyzed.
32640 (RAS_E_Dereference): Same.
32642 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32643 reference raises Bad_Attribute, mark the reference as analyzed so the
32644 node (and any children resulting from rewrites that could have occurred
32645 during the analysis that ultimately failed) is not analyzed again.
32647 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32649 * exp_dist.adb: Minor comment fix.
32651 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32652 type is an anonymous access type, no unchecked deallocation of the
32653 allocated object can occur. If the object is controlled, attach it with
32654 a count of 1. This allows attachment to the Global_Final_List, if
32655 no other relevant list is available.
32656 (Get_Allocator_Final_List): For an anonymous access type that is
32657 the type of a discriminant or record component, the corresponding
32658 finalisation list is the one of the scope of the type.
32660 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32662 * sem_ch3.adb (Replace_Type): When computing the signature of an
32663 inherited subprogram, use the first subtype if the derived type
32664 declaration has no constraint.
32666 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32667 before applying previous optimization. Minor code cleanup.
32669 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32670 placed at the beginning of an unpacked record without explicit
32671 alignment, a slice of it will be aligned and does not need a copy when
32674 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32678 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32679 reference is written with expressions mimicking parameters.
32681 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32684 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32685 STEP 2a. The constraints of a full type declaration of a derived record
32686 type are checked for conformance with those declared in the
32687 corresponding private extension declaration. The message
32688 "not conformant with previous declaration" is emitted if an error is
32691 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32693 * g-traceb.ads: Document the need for -E binder switch in the spec.
32695 * g-trasym.ads: Document the need for -E binder switch in the spec.
32697 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32699 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32701 * snames.h, snames.ads, snames.adb: Add entry for pragma
32704 * s-rident.ads: Change reference to pragma Detect_Blocking.
32706 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32709 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32710 to indicate whether pragma Detect_Blocking is active.
32712 * par-prag.adb: Add entry for pragma Detect_Blocking.
32714 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32715 of not handling WITH.
32716 Note that this replaces the previous update which was incorrect.
32718 2004-06-25 Javier Miranda <miranda@gnat.com>
32720 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32721 use-clauses to have a clean environment.
32723 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32724 the installation of the use-clauses to stablish a clean environment in
32725 case of compilation of a separate unit; otherwise the call to
32726 use_one_package is protected by the barrier Applicable_Use.
32728 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32729 the installation of the use-clauses to stablish a clean environment in
32730 case of compilation of a separate unit.
32731 (End_Use_Clauses): Minor comment cleanup.
32733 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32735 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32737 2004-06-23 Richard Henderson <rth@redhat.com>
32739 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32741 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32743 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32744 now bool instead of int.
32745 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32746 * trans.c (gnu_switch_label_stack): New function.
32747 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32748 elaboration of renamed entity returns.
32749 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32750 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32751 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32752 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32753 DECL_SIZE_UNIT and simplify variable-sized case.
32754 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32755 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32756 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32757 (build_unit_elab): Disable for now.
32758 * utils.c (mark_visited): New function.
32759 (pushdecl): Walk tree to call it for global decl.
32760 (update_pointer_to): Update all variants of pointer and ref types.
32761 Add arg to COMPONENT_REF.
32762 (convert): Likewise.
32763 Move check for converting between variants lower down.
32764 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32765 (build_allocator): Don't force type of MODIFY_EXPR.
32766 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32767 put_var_into_stack.
32769 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32771 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32772 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32773 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32775 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32776 all callers changed.
32777 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32778 the way that EXIT_STMT finds the loop label.
32779 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32780 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32781 (add_stmt): Use annotate_with_locus insted of setting directly.
32782 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32783 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32784 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32785 (build_vms_descriptor): Add extra args to ARRAY_REF.
32786 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32787 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32789 (build_binary_op): Don't make explicit CONVERT_EXPR.
32790 Add extra rgs to ARRAY_REF.
32792 2004-06-14 Pascal Obry <obry@gnat.com>
32794 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32795 Windows. Fix minor typo.
32797 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32798 which is now supported on Windows. With this implementation using the
32799 Library Project feature is no different on Windows than on UNIX.
32801 2004-06-14 Vincent Celier <celier@gnat.com>
32803 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32806 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32808 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32809 found, show the project name and the path of the previously parsed
32812 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32814 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32815 array, avoid copying the actual before the call.
32817 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32819 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32820 Instead, allocate memory on worst-case alignment assumptions, and then
32821 return an aligned address within the allocated zone.
32823 2004-06-14 Robert Dewar <dewar@gnat.com>
32825 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32826 elab entities in predefined units in No_Run_Time_Mode.
32827 (Gen_Adainit_C): Same fix
32828 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32829 units in No_Run_Time_Mode
32830 (Gen_Elab_Calls_C): Same fix
32832 * symbols-vms-alpha.adb: Minor reformatting
32834 * g-debpoo.ads: Minor reformatting
32836 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32838 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32840 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32843 * make.adb: Minor reformatting
32845 * par-ch12.adb: Minor reformatting
32847 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32849 * prj-strt.adb: Minor reformatting
32851 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32854 * sem_attr.adb: Minor reformatting
32856 * sem_ch7.adb: Minor reformatting
32858 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32859 for type in the same unit as the object declaration.
32861 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32862 static string expressions and not just string literals.
32864 (Set_Warning): Reset restriction warning flag for restriction pragma
32865 Implement pragma Profile_Warnings
32866 Implement pragma Profile (Restricted)
32867 Give obolescent messages for old restrictions and pragmas
32869 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32872 * s-rident.ads: Add declarations for restrictions required by profile
32873 Restricted and profile Ravenscar.
32875 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32877 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32878 configuration pragmas.
32880 2004-06-11 Vincent Celier <celier@gnat.com>
32882 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32883 gnatsym, when symbol policy is Restricted.
32885 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32886 gnatsym, when symbol policy is Restricted.
32888 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32889 read the symbol file.
32890 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32891 symbol file is not in the object files. Do not create a new symbol file
32892 when symbol policy is Restricted.
32894 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32897 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32899 (Usage): Line for new switch -R
32901 * make.adb (Initialize): When the platform is not VMS, add the
32902 directory where gnatmake is invoked in the front of the path, if
32903 gnatmake is invoked with directory information. Change the Scan_Args
32904 while loop to a for loop.
32905 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32906 if Depth is equal or greater than the proposed depth, there is nothing
32908 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32911 * prj.ads: Add new symbol policy Restricted.
32913 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32914 with the new parameters Check_All_Labels and Case_Location.
32916 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32917 (Library_Symbol_File needs to be defined).
32919 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32920 and Case_Location If Check_All_Labels is True, check that all values of
32921 the string type are used, and output warning(s) if they are not.
32923 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32926 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32928 * gnat_ugn.texi: Update documentation about the library directory in
32931 * makegpr.adb (Display_Command): In verbose mode, also display the
32932 value of the CPATH env var, when the compiler is gcc.
32933 (Initialize): Change the Scan_Args while loop to a for loop
32934 (Compile_Individual_Sources): Change directory to object directory
32935 before compilations.
32937 * symbols.ads: New symbol policy Restricted.
32939 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32941 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32942 is now taken care of internally in the Exception_Propagation package
32943 and does not require clients assistance any more.
32945 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32946 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32947 functions. Helpers to maintain a predicate required in the handling of
32948 occurrence transfer between tasks.
32949 This is now handled internally and does not require clients assistance
32950 for the setup/propagate separation anymore.
32951 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32952 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32955 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32956 raise_after_setup, now that everything is handled internally within the
32957 setup/propagation engine.
32959 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32961 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32962 Add additional conditions for the case of an actual being a simple
32963 name or literal. Improve inlining by preventing the generation
32964 of temporaries with a short lifetime (one use).
32966 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32969 * einfo.ads: Minor comment updates for Has_Completion and
32970 E_Constant list of flags.
32972 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32973 and constant redeclarations now set the Has_Completion flag of their
32974 defining identifiers.
32976 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32977 Inspect_Deferred_Constant_Completion.
32978 Used to detect private deferred constants that have not been completed
32979 either by a constant redeclaration or pragma Import. Emits error message
32980 "constant declaration requires initialization expression".
32982 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32983 completes a deferred constant.
32985 2004-06-11 Geert Bosch <bosch@gnat.com>
32987 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32989 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32990 calculating exponent for scaling denormal numbers.
32991 (Leading_Part): Properly raise Constraint_Error for zero or negative
32993 (Remainder): Properly raise Constraint_Error for zero divisor.
32995 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32997 * sem_util.adb: Minor reformatting.
32999 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
33000 dereference when accessing the entry parameter record.
33001 (Check_Array_Type): Always check for possible implicit dereference.
33002 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33003 Abort if a pointer is still present (denoting that an implicit
33004 dereference was left in the tree by the front-end).
33006 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
33007 dereference when accessing the entry parameter record.
33008 (Check_Array_Type): Always check for possible implicit dereference.
33009 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33010 Abort if a pointer is still present (denoting that an implicit
33011 dereference was left in the tree by the front-end).
33013 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
33015 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
33016 message, like the compiler itself does. Easier to parse the output.
33018 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
33020 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
33021 be base names, and not includes directories.
33023 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33025 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
33026 so that dependencies are properly taken into account by make.
33028 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33031 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
33032 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
33034 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
33036 * Makefile.in (install-gnatlib): install target-specific run-time files.
33038 * Make-lang.in: Remove obsolete targets.
33040 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33042 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
33043 specification, to catch misuses of program unit names.
33045 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
33046 superfluous conversions in an instance.
33048 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33051 * sem_ch12.adb (Save_References): If operator node has been folded to
33052 enumeration literal, associated_node must be discarded.
33054 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
33056 * s-stchop-vxworks.adb: Add required pragma Convention to
33057 Task_Descriptor because it is updated by a C function.
33059 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
33062 * Makefile.in: Remove target specific SO_OPT on IRIX
33064 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33066 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33067 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33068 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33069 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33070 (STMT_STMT, USE_STMT): New statement codes.
33071 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33072 * ada-tree.h: Reflect above changes.
33073 (struct tree_loop_id): Deleted.
33074 (union lang_tree_node, struct lang_decl, struct lang_type):
33075 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33076 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33077 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33078 (IS_ADA_STMT): New macro.
33079 * decl.c (annotate_decl_with_node): New function.
33080 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33081 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33082 Call add_stmt_with_node to do needed assignments.
33083 Add call to update setjmp buffer directly, not via EXPR_STMT.
33084 (maybe_variable): Argment GNAT_NODE deleted.
33085 * gigi.h (maybe_variable): Likewise.
33086 (make_transform, add_stmt_with_node, set_block_for_group): New.
33087 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33088 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33089 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33090 (set_lineno, set_lineno_from_sloc): Likewise.
33091 (record_code_position, insert_code_for): Likewise.
33092 (gnat_poplevel): Now returns void.
33093 (end_subprog_body): Now takes argument.
33094 * misc.c (cgraph.h, tree-inline.h): New includes.
33095 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33096 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33097 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33098 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33099 (gnat_parse_file): Don't set immediate_size_expand.
33100 Call cgraph functions.
33101 (gnat_expand_expr): Remove most cases.
33102 (record_code_position, insert_code_for): Remove from here.
33103 * trans.c (toplev.h, tree-gimple.h): Now included.
33104 (discard_file_names): Deleted.
33105 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33106 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33107 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33108 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33109 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33110 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33111 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33112 (set_block_for_group, add_stmt_list): Likewise.
33113 (start_stmt_group): Renamed from start_block_stmt.
33114 (end_stmt_group): Likewise, from end_block_stmt.
33115 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33116 (gigi): Don't set discard_file_names or call set_lineno.
33117 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33118 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33119 Numerous changes throughout to reflect new names and complete
33120 function-at-a-time implementation.
33121 (gnat_expand_stmt): Delete or comment out all cases.
33122 (process_inlined_subprograms): Use add_stmt.
33123 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33124 call set_lineno; also remove unneeded block handling.
33125 (process_type): Remove unneeded block handling.
33126 (build_unit_elab): Remove calls to deleted functions.
33127 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33128 (tree-dump.h): Likewise.
33129 (struct ada_binding_level): Add field jmpbuf_decl.
33130 (gnat_define_builtin, gnat_install_builtins): New.
33131 (gnat_gimplify_function, gnat_finalize): Likewise.
33132 (gnat_poplevel): No longer return BLOCK, set it instead.
33133 Remove code dealing with nested functions.
33134 (gnat_init_decl_processing): Also set size_type_node.
33135 Call gnat_install_builtins.
33136 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33137 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33138 Remove special-case for "main".
33139 (end_subprog_body): Add arg and rework for tree-ssa.
33140 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33141 Add case for BOOLEAN_TYPE.
33142 * utils2.c (rtl.h): Now include.
33143 (build_call_raise): Test Debug_Flag_NN directly.
33144 (build_call_alloc_dealloc): Don't use local stack allocation for now.
33145 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33146 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33148 2004-06-07 Robert Dewar <dewar@gnat.com>
33150 * a-direct.ads, einfo.ads: Minor comment updates
33152 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33153 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33154 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33155 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33156 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33158 * s-interr-sigaction.adb: Remove unreferenced variable
33159 (Attached_Interrupts). Minor reformatting.
33160 Avoid use of variable I (replace by J).
33162 * par-ch10.adb: Fix text of one error message
33164 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33165 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33166 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33167 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33168 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33169 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33170 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33171 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33172 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33173 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33174 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33177 2004-06-07 Doug Rupp <rupp@gnat.com>
33179 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33181 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33183 * mlib-tgt-vms-ia64.adb: New file.
33185 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33186 Add mlib-tgt-vms-ia64.adb
33187 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33188 Move to alpha specific ifeq section.
33189 Add VMS specific versions of symbols.adb
33190 Renaming of 5q vms files.
33192 * 5qsystem.ads renamed to system-vms_64.ads.
33194 2004-06-07 Vincent Celier <celier@gnat.com>
33196 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33197 explain that when a time of day corresponding to the non existing hour
33198 on the day switching to DST is specified, Split may return a different
33201 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33204 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33205 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33207 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33209 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33210 the linking options.
33211 (Build_Library.Check_Libs): On VMS, if there is a dependency on
33212 g-trasym.ads, set Gtrasymobj_Needed to True.
33214 * prj-attr.adb: Add new package Metrics for gnatmetric
33216 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33217 canonical case to take into account files with upper case characters on
33219 (Ada_Check): Load the reference symbol file name in the name buffer to
33220 check it, not the symbol file name.
33222 * snames.ads, snames.adb: Add standard name Metrics (name of project
33223 file package for gnatmetric).
33225 * vms_conv.ads: Add Metric to Comment_Type
33227 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33229 * vms_data.ads: Add qualifiers for GNAT METRIC
33231 * makegpr.adb (Link_Executables): Take into account the switches
33232 specified in package Linker of the main project.
33234 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33236 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33237 the index of the last element is Units.Last, not Units.Table'Last
33238 (which is usually not a valid index within the actually allocated
33239 storage for the table).
33241 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33242 determines whether to generate a call to a checked storage pool
33243 Dereference action.
33244 Generate such a call only for a dereference that either comes from
33245 source, or is the result of rewriting a dereference that comes from
33248 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33250 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33252 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33254 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33255 file level, elaborate the stride for inner dimensions in alignment
33258 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33261 2004-06-07 Javier Miranda <miranda@gnat.com>
33263 * exp_ch6.adb: Correct wrong modification in previous patch
33265 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33267 * g-trasym.ads: Corrected comment to properly reflect level of support
33270 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33272 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33273 includes case of a variable referenced on the left hand side of an
33274 assignment, therefore remove redundant code. Variables and prefixes of
33275 indexed or selected components are now marked as referenced on left
33276 hand side. Warnings are now properly emitted when variables or prefixes
33277 are assigned but not read.
33279 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33280 left hand side referenced variables. Private access types do not
33281 produce the warning "variable ... is assigned but never read".
33282 Add also additional checks to left hand side referenced variables.
33283 Aliased, renamed objects and access types do not produce the warning
33284 "variable ... is assigned but never read" since other entities may read
33285 the memory location.
33287 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33289 * Makefile.in: In the powerpc/vxworks-specific section, restore
33290 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33293 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33295 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33296 predefined operators.
33297 Removes spurious type errors from g-trasym-vms.adb.
33299 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33300 distinct from the operator appearing in the source, call appropriate
33301 routine to insert conversions when needed, and complete resolution of
33303 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33304 interpretations for rewritten right operand.
33305 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33306 the other operand is overloaded and the context is a type conversion.
33308 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33310 * ada-tree.def (BLOCK_STMT): Now has two operands.
33313 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33315 * gigi.h: (gnat_poplevel): Now returns a tree.
33317 * trans.c (end_block_stmt): Add arg; all callers changed.
33318 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33319 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33320 (add_stmt): Set TREE_TYPE.
33321 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33322 (gnat_expand_stmt, case BREAK_STMT): New case.
33324 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33326 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33328 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33329 procedure Set_Stack_Size that is not needed.
33331 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33333 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33334 used for gnatpp input file and for the files upon which it depends
33336 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33338 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33340 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33342 * gnatvsn.ads: Bump version numbers appropriately.
33343 Add new build type.
33345 2004-06-07 Pascal Obry <obry@gnat.com>
33347 * gnat_ugn.texi: Improve comments about imported names and link names
33348 on Windows. Add a note about the requirement to use -k gnatdll's option
33349 when working with a DLL which has stripped stdcall symbols (no @nn
33352 2004-05-27 Vincent Celier <celier@gnat.com>
33354 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33355 COMMENTS_LAYOUT=UNTOUCHED
33357 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33358 symbols-vms-alpha.adb
33360 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33362 * sem.ads: Clarify documentation on checks suppression.
33364 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33366 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33368 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33369 the case of multiple derivations.
33370 (Is_Object_Reference): For a selected component, verify that the prefix
33371 is itself an object and not a value.
33373 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33374 Same_Instantiated_Entity.
33375 (Same_Instantiated_Variable): Subsidiary to
33376 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33377 formals that are obtained from a previous formal package.
33378 (Instantiate_Subprogram_Body): Emit proper error when
33379 generating code and the proper body of a stub is missing.
33381 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33382 has a universal interpretation, do the disambiguation here.
33384 * exp_ch4.adb (Expand_N_Type_Conversion,
33385 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33386 is Address, to avoid typing anomalies when Address is a visible integer
33389 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33390 to determine whether a subprogram should not be marked Pure, even when
33391 declared in a pure package.
33393 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33395 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33397 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33398 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33399 Update the documentation about the Ravenscar profile, following the
33400 definition found in AI-249.
33402 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33403 setting the Profile (Ravenscar). This must be done in addition to
33404 setting the required restrictions.
33406 * rtsfind.ads: Add the set of operations defined in package
33409 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33412 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33414 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33415 if -gnatc or -gnats is passed.
33417 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33419 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33420 a significant reference. Warnings are now properly emitted when a
33421 discriminated type is not referenced.
33423 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33424 record representation clause or record type discriminant does not
33425 produce a reference to its corresponding entity. Warnings are now
33426 properly emitted when deferred constants and record types are not
33429 2004-05-27 Geert Bosch <bosch@gnat.com>
33431 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33432 Fixes ACATS Annex G tests.
33434 2004-05-27 Robert Dewar <dewar@gnat.com>
33436 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33439 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33441 * s-interr.adb (Server_Task): Take into account case of early return
33442 from sigwait under e.g. linux.
33444 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33446 * gnat_ugn.texi: Add description for the new gnatpp options:
33447 -rnb - replace the original source without creating its backup copy
33448 -c0 - do not format comments
33450 2004-05-24 Geert Bosch <bosch@gnat.com>
33452 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33453 with 192 bits of precision, sufficient to reduce a double-extended
33454 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33455 in -2.0**32 .. 2.0**32.
33456 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33457 reduction by the processor, which only uses a 68-bit approximation of
33459 (Tan): Always reduce arguments and compute function either using
33460 the processor's fptan instruction, or by dividing sin and cos as needed.
33462 2004-05-24 Doug Rupp <rupp@gnat.com>
33464 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33465 gcc error on 32/64 bit VMS.
33467 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33469 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33470 since this is what we get for stack overflows although not documented
33472 Document the issues which may require adjustments to our signal
33475 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33477 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33478 enclosing dynamic scope if the instantiation is within a generic unit.
33480 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33482 * exp_dbug.ads: Fix typo.
33484 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33485 Rename it to its proper name: system-linux-ia64.ads
33486 (stamp-gnatlib1): Remove extra target specific run time files when
33487 setting up the rts directory.
33489 2004-05-24 Javier Miranda <miranda@gnat.com>
33491 * einfo.ads, einfo.adb (Limited_Views): Removed.
33492 (Limited_View): New attribute that replaces the previous one. It is
33493 now a bona fide package with the limited-view list through the
33494 first_entity and first_private attributes.
33496 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33497 limited-private-with clause.
33498 (Install_Limited_Withed_Unit): Install the private declarations of a
33499 limited-private-withed package. Update the installation of the shadow
33500 entities according to the new structure (see Build_Limited_Views)
33501 (Build_Limited_Views): Replace the previous implementation of the
33502 limited view by a package entity that references the first shadow
33503 entity plus the first shadow private entity (required for limited-
33504 private-with clause)
33505 (New_Internal_Shadow_Entity): Code cleanup.
33506 (Remove_Limited_With_Clause): Update the implementation to undo the
33507 new work carried out by Build_Limited_Views.
33508 (Build_Chain): Complete documentation.
33509 Replace Ada0Y by Ada 0Y in comments
33512 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33513 types the level of accessibility depends on the enclosing type
33516 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33517 entities. Complete documentation of previous change.
33519 2004-05-24 Robert Dewar <dewar@gnat.com>
33521 * namet.adb: Minor reformatting
33522 Avoid use of name I (replace by J)
33523 Minor code restructuring
33525 * sem_ch6.adb: Minor reformatting
33527 * lib-writ.adb: Do not set restriction as active if this is a
33528 Restriction_Warning case.
33530 * sem_prag.adb: Reset restriction warning flag if real pragma
33531 restriction encountered.
33533 * s-htable.adb: Minor reformatting
33534 Change rotate count to 3 in Hash (improves hash for small strings)
33536 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33538 * gnat_ugn.texi: Add new section of documentation "Code Generation
33539 Control", which describes the use of -m switches.
33541 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33543 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33544 through the DECL_INITIAL for renamed variables.
33546 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33548 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33550 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33552 * exp_dbug.ads: Correct comments concerning handling of overloading,
33553 since we no longer use $ anymore.
33555 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33557 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33558 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33559 with illegal subunits.
33561 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33563 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33564 body with front-end inlining enabled, check whether an inline pragma
33565 appears immediately after the body and applies to it.
33567 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33568 enabled and the pragma appears after the body of the subprogram.
33570 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33572 Part of function-at-a-time conversion
33574 * misc.c (adjust_decl_rtl): Deleted.
33575 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33578 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33579 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33580 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33582 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33583 when making a decl.
33584 (gnat_to_gnu_entity): Likewise.
33585 Use add_stmt to update setjmp buffer.
33586 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33588 No longer call adjust_decl_rtl.
33589 (DECL_INIT_BY_ASSIGN_P): New macro.
33590 (DECL_STMT_VAR): Likewise.
33592 * trans.c (gigi): Call start_block_stmt to make the outermost
33594 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33595 Call start_block_stmt and end_block_stmt temporarily.
33596 Use gnat_expand_stmt instead of expand_expr_stmt.
33597 (add_decl_stmt): New function.
33598 (tree_transform): Call it.
33599 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33600 (end_block_stmt): Set type and NULL_STMT.
33601 (gnat_expand_stmt): Make recursize call instead of calling
33603 (gnat_expand_stmt, case DECL_STMT): New case.
33604 (set_lineno_from_sloc): Do nothing if global.
33605 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33606 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33607 (build_block_stmt): Call them.
33608 (gnat_to_code): Don't expand NULL_STMT.
33609 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33611 (tree_transform): Likewise.
33612 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33613 (gnat_expand_stmt, case NULL_STMT): New case.
33614 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33617 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33620 * utils.c (create_var_decl): Do not call expand_decl or
33622 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33623 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33625 (struct e_stack): Add chain_next to GTY.
33626 (struct binding_level): Deleted.
33627 (struct ada_binding_level): New struct.
33628 (free_block_chain): New.
33629 (global_binding_level, clear_binding_level): Deleted.
33630 (global_bindings_p): Rework to see if no chain.
33631 (kept_level_p, set_block): Deleted.
33632 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33633 new data structure and work directly on BLOCK node.
33634 (gnat_poplevel): Similarly.
33635 (get_decls): Look at BLOCK_VARS.
33636 (insert_block): Work directly on BLOCK node.
33637 (block_has_var): New function.
33638 (pushdecl): Rework for new binding structures.
33639 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33641 (build_subprog_body): Likewise.
33642 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33644 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33646 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33647 (DECL_STMT_VAR): Likewise.
33649 2004-05-17 Robert Dewar <dewar@gnat.com>
33651 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33654 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33655 of restriction synonyums by using
33656 Restrict.Process_Restriction_Synonyms.
33658 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33660 * s-restri.ads (Tasking_Allowed): Correct missing comment
33662 * s-rident.ads: Add entries for restriction synonyms
33664 * ali.adb: Fix some problems with badly formatted ALI files that can
33665 result in infinite loops.
33667 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33668 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33669 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33670 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33671 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33672 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33673 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33674 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33675 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33676 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33677 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33678 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33679 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33680 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33681 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33682 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33683 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33684 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33685 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33686 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33687 to Task_Id (minor cleanup).
33689 2004-05-17 Vincent Celier <celier@gnat.com>
33691 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33692 directory separator.
33694 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33695 project being extended, if Languages is not declared in extending
33698 2004-05-17 Javier Miranda <miranda@gnat.com>
33700 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33701 limited view of a visible sibling.
33703 2004-05-14 Robert Dewar <dewar@gnat.com>
33705 * gnat_ugn.texi: Minor change to -gnatS documentation
33707 * sprint.adb: Remove some instances of Assert (False) and for this
33708 purpose replace them by output of a ??? string.
33710 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33713 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33714 flag processing. This was suppressing required dependencies in
33715 No_Run_Time mode and is not needed since the binder does not generate
33716 references for things in libgnat anyway.
33718 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33721 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33723 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33726 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33727 action for the case of an actual parameter in an init proc call.
33729 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33731 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33732 subtype, check visible entities in base type.
33734 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33735 actions if the object is a renaming.
33737 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33738 Check_Formal_Package_Instance, to determine more precisely when the
33739 formal and the actual denote the same entity.
33741 2004-05-14 Javier Miranda <miranda@gnat.com>
33743 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33745 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33746 corresponding to a private_with must be removed from visibility; it
33747 will be made visible later, just before we analyze the private part of
33749 (Check_Private_Child_Unit): Allow private_with clauses in public
33751 (Install_Siblings): Make visible the private entities of private-withed
33753 (Install_Withed_Unit): Do not install the private withed unit if we
33754 are compiling a package declaration and the Private_With_OK flag was
33755 not set by the caller. These declarations will be installed later,
33756 just before we analyze the private part of the package.
33758 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33759 during the evaluation of the expression that initializes the object,
33760 decorate it with the expected type to avoid cascade errors.
33763 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33764 subprogram we have to install the private_with clauses after its
33765 specification has been analyzed (as documented in AI-262.TXT).
33767 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33768 current compilation unit has a private with on a given entity.
33769 (Find_Direct_Name): Detect the Beaujolais problem described in
33772 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33773 provides the functionality of the function Is_Ancestor that was
33774 previously available in sem_ch10. It has been renamed to avoid
33777 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33779 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33781 * utils.c (build_vms_descriptor): Use SImode pointers.
33783 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33785 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33787 2004-05-14 GNAT Script <nobody@gnat.com>
33789 * Make-lang.in: Makefile automatically updated
33791 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33793 Renaming of target specific files for clarity
33795 * Makefile.in: Rename GNAT target specific files.
33797 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33798 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33799 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33800 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33801 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33802 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33803 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33804 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33805 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33806 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33807 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33808 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33809 51osinte.adb, 51osinte.ads, 51system.ads,
33810 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33811 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33812 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33813 56tpopsp.adb, 57system.ads, 58system.ads,
33814 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33815 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33816 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33817 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33818 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33819 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33820 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33821 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33822 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33823 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33824 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33825 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33826 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33827 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33828 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33829 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33830 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33831 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33832 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33833 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33834 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33835 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33836 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33837 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33838 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33839 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33840 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33841 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33842 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33843 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33844 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33845 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33846 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33847 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33848 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33849 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33850 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33851 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33852 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33853 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33855 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33856 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33857 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33858 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33859 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33860 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33861 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33862 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33863 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33864 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33865 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33866 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33867 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33868 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33869 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33870 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33871 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33872 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33873 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33874 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33875 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33876 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33877 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33878 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33879 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33880 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33881 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33882 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33883 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33884 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33885 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33886 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33887 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33888 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33889 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33890 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33891 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33892 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33893 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33894 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33895 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33896 s-osinte-vms.ads, s-osinte-vxworks.adb,
33897 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33898 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33899 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33900 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33901 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33902 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33903 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33904 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33905 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33906 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33907 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33908 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33909 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33910 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33911 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33912 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33913 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33914 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33915 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33916 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33917 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33918 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33919 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33920 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33921 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33922 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33923 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33924 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33925 system-irix-o32.ads, system-linux-x86_64.ads,
33926 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33927 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33928 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33929 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33930 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33931 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33932 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33935 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33937 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33939 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33941 Merge from tree-ssa-20020619-branch.
33943 * config-lang.in (boot_language, build_by_default): Set
33945 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33946 (max_size): Add static chain op for call_expr.
33948 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33951 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33953 2004-05-11 Roger Sayle <roger@eyesopen.com>
33955 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33958 2004-05-10 Doug Rupp <rupp@gnat.com>
33960 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33963 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33965 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33967 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33968 Fixes undefined symbols in IA64 gnatlib.
33970 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33972 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33973 Short_Address). This will be moved to system.auxdec.
33975 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33977 * sem_util.adb: Replace test for presence of a node that is always
33978 present with a call to Discard_Node.
33980 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33981 Analyze on the library unit node after generation of distribution stub
33982 constructs. The call was a no-op because Unit_Node has already been
33983 Analyzed, and the tree fragments for the distribution stubs are
33984 analyzed as they are inserted in Exp_Dist.
33985 Update comment regarding to distribution stubs to reflect that we
33986 do not generate stub in separate files anymore.
33988 * einfo.ads: Clarify the fact that a tagged private type has the
33989 E_Record_Type_With_Private Ekind.
33991 * erroutc.adb: Minor reformatting
33993 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33994 values if line length is increased using -gnatyM (noticed during code
33997 * eval_fat.adb: Minor reformatting
33998 Put spaces around exponentiation operator
34000 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34003 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
34004 has been rewritten as an explicit dereference, retrieve type of
34005 original node to check for possibly unconstrained record type.
34007 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34009 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
34010 overriding, use the operation of the parent unconditionally.
34012 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
34013 operation when either operand is a literal, to avoid further
34016 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
34017 overridden by a previous explicit declaration, mark the previous entity
34020 * sem_disp.adb (Check_Dispatching_Operation): New predicate
34021 Is_Visibly_Controlled, to determine whether a declaration of a
34022 primitive control operation for a derived type overrides an inherited
34023 one. Add warning if the explicit declaration does not override.
34025 2004-05-10 Vincent Celier <celier@gnat.com>
34027 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
34028 some cases when the sources are no longer present.
34030 * make.adb (Collect_Arguments): Fail if an external source, not part
34031 of any project need to be compiled, when switch -x has not been
34034 * makeusg.adb: Document new switch -x
34036 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
34037 defaulted to False.
34039 * switch-m.adb (Scan_Make_Switches): New switch -x
34041 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
34042 gnatmake switch -x.
34044 * gnat_ugn.texi: Document new gnatmake switch -x
34046 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
34048 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34050 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34051 (process_attributes): Likewise.
34053 2004-05-10 Joel Brobecker <brobecker@gnat.com>
34055 * s-inmaop.ads: Fix spelling mistake in one of the comments.
34057 2004-05-10 Robert Dewar <dewar@gnat.com>
34059 * gnat_ugn.texi: Document that for config pragma files, the maximum
34060 line length is always 32767.
34062 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34063 literals is now allowed.
34065 * gnat-style.texi: Remove statement about splitting long lines before
34066 an operator rather than after, since we do not follow this rule at all.
34067 Clarify rule (really lack of rule) for spaces around exponentiation
34069 * sem_elim.adb: Allow concatenation of string literals as well as a
34070 single string literal for pragma arguments.
34072 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34074 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34075 written for append case.
34077 * frontend.adb: Changes to avoid checking max line length in config
34080 * g-os_lib.ads: Minor reformatting
34082 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34083 wrong in any case. Instead use standard value. Noticed during code
34086 * opt.ads (Max_Line_Length): New field, used to implement removal of
34087 limitation on length of lines when scanning config pragma files.
34089 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34090 makeutl.ads, makeutl.adb: Minor reformatting
34092 * scn.adb: Do not check line length while scanning config pragma files
34093 Do not check line length while scanning out license information
34095 * scng.adb: Changes to avoid line length checks while parsing config
34098 2004-05-10 GNAT Script <nobody@gnat.com>
34100 * Make-lang.in: Makefile automatically updated
34102 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
34104 * osint.adb (Find_Program_Name): Fix handling of VMS version
34107 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
34109 * g-os_lib.ads (Invalid_Time): New constant
34111 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34112 return OS_Time instead of time_t to match what is imported by Ada.
34113 Now return -1 if the file doesn't exist, instead of a random value
34115 2004-05-05 Robert Dewar <dewar@gnat.com>
34117 * usage.adb: Add line for -gnatR?s switch
34119 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34121 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34122 and for Match (Data_First, Data_last)
34124 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34125 written when we are dealing with multi-unit files.
34127 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
34129 * Makefile.in: Remove unused targets and variables.
34131 2004-05-05 Vincent Celier <celier@gnat.com>
34133 * switch-m.adb: New gnatmake switch -eI
34135 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34136 of new gnatmake switch -eInnn.
34138 * makegpr.adb: Take into account new parameters Index and Src_Index in
34141 * clean.adb: Implement support for multi-unit sources, including new
34144 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34147 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34148 (Extract_From_Q): New out parameter Index
34149 (Mark, Is_Marked): Subprograms moved to Makeutl
34150 (Switches_Of): New parameter Source_Index
34151 (Add_Switch): New parameter Index
34152 (Check): New parameter Source_Index
34153 (Collect_Arguments): New parameter Source_Index
34154 (Collect_Arguments_And_Compile): New parameter Source_Index
34155 (Compile): New parameter Source_Index
34156 Put subprograms in alphabetical order
34157 Add support for multi-source sources, including in project files.
34159 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34160 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34163 * makeusg.adb: New gnatmake switch -eInnn
34165 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34168 * opt.ads (Main_Index): New variable, defaulted to 0.
34170 * osint.ads, osinte.adb (Add_File): New parameter Index
34171 (Current_Source_Index): New function
34173 * prj.adb: Take into account new components Index and Src_Index
34175 * prj.ads (String_Element): New component Index
34176 (Variable_Value): New component Index
34177 (Array_Element): New component Src_Index
34179 * prj-attr.adb: Indicate that optional index may be specified for
34180 attributes Main, Executable, Spec, Body and some of Switches.
34182 * prj-attr.ads (Attribute_Kind): New values for optional indexes
34183 (Attribute_Record): New component Optional_Index
34185 * prj-com.ads (File_Name_Data): New component Index
34187 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34189 * prj-env.adb (Put): Output optional index
34191 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34192 attributes Spec and Body.
34194 * prj-nmsc.adb: Process optional indexes
34196 * prj-pp.adb: Ouput "at" for optional indexes
34198 * prj-proc.adb: Take into account optional indexes
34200 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34201 Optional_Index. For string literal,
34202 process optional index when Optional_Index is True.
34203 (Parse_Expresion): New Boolean parameter Optional_Index
34205 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34206 (Set_Source_Index_Of): New procedure
34208 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34211 * prj-util.ads (Executable_Of): New parameter Index
34212 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34213 New parameter Src_Index, defaulted to 0.
34215 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34218 * sem_ch3.adb (Access_Definition): If this is an access parameter
34219 whose designated type is imported through a limited_with clause, do
34220 not add the enclosing subprogram to the list of private dependents of
34223 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34226 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34227 a limited_with clause, and the other is its non-limited view.
34229 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
34231 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34233 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34234 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34235 Stand.Boolean_Literals to produce references to entities
34236 Standard_False and Standard_True from compile-time computed boolean
34239 * stand.ads (Boolean_Literals): New variable, provides the entity
34240 values for False and True, for use by the expander.
34242 2004-05-05 Doug Rupp <rupp@gnat.com>
34244 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34245 5vinmaop.adb: Unchecked convert Short_Address vice Address
34247 * adaint.c, raise.c: Caste CRTL function return value
34248 to avoid gcc error on 32/64 bit IVMS.
34250 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34253 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34255 * 5qsystem.ads (Address): Declare as Long_Integer
34256 (Short_Address): Declare as 32 bit subtype of Address
34257 Declare abstract address operations to avoid gratuitous ambiguities.
34259 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34261 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34262 instead of the old Boolean_Entry_Barriers.
34263 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34265 2004-05-05 GNAT Script <nobody@gnat.com>
34267 * Make-lang.in: Makefile automatically updated
34269 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34271 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34273 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34276 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34277 alone. Replacing object references by literals is inappropriate in a
34278 so low level context.
34280 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34282 * a-exexpr.adb: Add comments
34284 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34286 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34287 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34288 without risking a bounds check error when accessing one of its
34290 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34291 This prevents us from hitting a limitation during the debug info
34292 generation when using stabs.
34294 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34296 This prevents us from hitting a limitation during the debug info
34297 generation when using stabs.
34299 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34301 lang-specs.h: Remove -gnatz* from specs.
34303 2004-05-03 Vincent Celier <celier@gnat.com>
34305 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34307 * Make-lang.in, Makefile.in: Add gprmake
34309 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34311 * sem_aggr.adb: Fix typo in comment.
34313 2004-05-03 Robert Dewar <dewar@gnat.com>
34315 * make.adb: Minor reformatting
34317 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34319 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34320 so that it works when address is not a private type.
34322 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34323 properly with rewritten unchecked conversions. This prevents
34324 order-of-elaboration issues that can otherwise arise.
34325 (Minimum_Size): Don't check size of access types under VMS
34327 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34328 interpretations of integer literals as type System.Address.
34330 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34331 (Is_Descendent_Of): New function
34333 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34335 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34336 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34337 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34339 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34340 of the old Max_Entry_Queue_Depth.
34342 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34343 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34344 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34346 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34347 New entry for proper handling of Max_Entry_Queue_Depth.
34348 New entry for proper handling of No_Dynamic_Interrupts.
34350 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34351 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34352 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34353 the GNAT specific restriction Max_Entry_Queue_Depth.
34354 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34355 the GNAT specific restriction No_Dynamic_Interrupts.
34357 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34358 instead of the old Boolean_Entry_Barriers.
34359 Use the new restriction No_Dynamic_Attachment instead of the old
34360 No_Dynamic_Interrupts.
34362 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34363 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34365 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34366 of the old Max_Entry_Queue_Depth.
34368 2004-05-03 GNAT Script <nobody@gnat.com>
34370 * Make-lang.in: Makefile automatically updated
34372 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34374 * checks.adb (Enable_Range_Check): If the prefix of an index component
34375 is an access to an unconstrained array, perform check unconditionally.
34377 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34379 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34382 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34384 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34385 alternate stack setting. There was no support for the tasking cases
34386 and the changes eventually caused a number of side-effect failures in
34387 the non-tasking case too.
34389 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34391 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34394 2004-04-29 Vincent Celier <celier@gnat.com>
34396 * make.adb (Gnatmake): Increase max size of argument array for
34397 gnatbind for the potential addition of -F.
34398 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34399 be sure that elaboration flags will be checked.
34401 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34403 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34405 * sem_warn.adb (Check_References): Move '<access-variable> may be
34406 null' warning out of under Warn_On_No_Value_Assigned.
34408 2004-04-29 Ed Falis <falis@gnat.com>
34410 * gnat_ugn.texi: Fixed texi error
34412 2004-04-29 Robert Dewar <dewar@gnat.com>
34414 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34415 abstract operations if they come from predefined files.
34417 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34420 * s-addope.adb: Correct obvious error in mod function
34422 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34424 * Makefile.in: Add target pairs for powerpc darwin*
34427 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34428 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34430 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34432 * Makefile.in: Add target macro definitions for s390*-linux*.
34433 * system-linux-s390.ads: New file.
34434 * system-linux-s390x.ads: New file.
34436 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34438 * gnat_ugn.texi: Correct argument to @setfilename.
34440 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34442 * a-exexpr.adb (Unwind_Word): New data type.
34443 (Unwind_Exception): Use it as type of Private1 and Private2.
34445 * raise.c (db_action_for): Fix debug printf.
34447 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34449 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34452 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34454 * decl.c (gnat_to_gnu_entity, case object): Call
34455 __builtin_update_setjmp_buf.
34457 * gigi.h (update_setjmp_buf): Deleted.
34458 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34460 * misc.c: (update_setjmp_buf): Deleted.
34462 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34463 around block of RTL.
34465 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34467 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34469 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34470 subprogram for which no pragma All_Calls_Remote applies, store the
34471 address of the real subprogram in the underlying record type, so local
34472 dereferences do not go through the PCS.
34474 2004-04-26 Robert Dewar <dewar@gnat.com>
34476 * i-c.ads: Add some type qualifications to avoid ambiguities when
34477 compiling with s-auxdec.ads and a non-private address type.
34479 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34481 * Makefile.rtl: Fix error in previous check-in:
34482 Add s-addope.o to non tasking object list (rather than tasking object
34485 2004-04-26 Javier Miranda <miranda@gnat.com>
34487 * sem_aggr.adb: Fix typo in comments
34488 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34489 Required to check the null-exclusion attribute.
34491 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34492 case of anonymous access types in record and array components. For a
34493 component definition the level is the same of the enclosing composite
34496 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34497 that are anonymous access types the level of accessibility depends on
34498 the enclosing type declaration. In order to have this information, set
34499 the scope of the anonymous access type to the enclosing record type
34501 (Array_Type_Declaration): In case of components that are anonymous
34502 access types the level of accessibility depends on the enclosing type
34503 declaration. In order to have this information, set the scope of the
34504 anonymous access type to the enclosing array type declaration.
34506 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34509 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34510 renaming of anonymous access-to-constant types allowed if and only if
34511 the renamed object is access-to-constant.
34513 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34514 that are component_definition or discriminants of a nonlimited type,
34515 the level is the same as that of the enclosing component type.
34517 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34519 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34520 misprint in the function name (File_Name_Match).
34522 2004-04-23 Laurent Guerby <laurent@guerby.net>
34524 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34527 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34529 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34531 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34533 * adaint.c (__gnat_try_lock): No longer requires that the parent
34534 directory be writable, the directory itself is enough.
34535 (gnat_is_absolute_path): Change profile, so that the call from
34536 GNAT.OS_Lib can be made more efficient.
34538 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34539 from GNAT.OS_Lib can be made more efficient.
34541 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34542 one copy of the file name. Found by code reading.
34544 2004-04-23 Vincent Celier <celier@gnat.com>
34546 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34547 Correct documentation on gnatmake switches transmitted to the compiler
34549 * ali.ads: Minor comment fix
34551 2004-04-23 Javier Miranda <miranda@gnat.com>
34553 * sem_ch6.adb: (Confirming Types): Code cleanup
34555 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34556 subprogram types: E_Anonymous_Access_Subprogram_Type and
34557 E_Anonymous_Access_Protected_Subprogram_Type.
34559 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34561 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34562 whether a pragma All_Calls_Remote applies to the subprogram on which
34564 No functional change is introduced by this revision; the new parameter
34565 will be used to allow calls to local RCI subprograms to be optimized
34566 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34567 as is already done in the PolyORB implementation of the DSA.
34569 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34570 whether a pragma All_Calls_Remote applies to the subprogram on which
34572 No functional change is introduced by this revision; the new parameter
34573 will be used to allow calls to local RCI subprograms to be optimized
34574 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34575 as is already done in the PolyORB implementation of the DSA.
34577 2004-04-23 Robert Dewar <dewar@gnat.com>
34579 * Makefile.rtl: Add entry for s-addope.o in run time library list
34580 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34581 * s-addope.ads, s-addope.adb: New files.
34583 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34584 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34585 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34586 System.Address to be non-private and signed.
34588 * sem_elim.adb: Minor reformatting (fairly extensive)
34589 Some minor code reorganization from code reading
34590 Add a couple of ??? comments
34592 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34594 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34595 (tree_transform, case N_If_Statement): Remove non-determinism.
34597 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34599 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34601 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34602 Eliminate' section.
34604 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34605 no longer used as a parameter name for Eliminate pragma).
34607 2004-04-22 Laurent Guerby <laurent@guerby.net>
34609 PR optimization/14984
34610 PR optimization/14985
34611 * trans.c (gigi): Fix non determinism leading to bootstrap
34612 comparison failures.
34614 2004-04-21 Pascal Obry <obry@gnat.com>
34616 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34617 passed to spawnvp() to properly handle program pathname with spaces on
34620 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34622 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34623 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34624 unlocked in case of exceptions.
34626 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34628 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34629 This function does not exist anymore.
34631 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34633 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34635 * link.c: Move variables to the __gnat name space.
34637 * Makefile.in: list link.o explicitly when needed.
34639 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34641 2004-04-21 Javier Miranda <miranda@gnat.com>
34643 * einfo.adb (Original_Access_Type): New subprogram
34644 (Set_Original_Access_Type): New subprogram
34645 (Write_Field21_Name): Write the name of the new field
34647 * einfo.ads (Original_Access_Type): New field present in access to
34649 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34650 E_Anonymous_Access_Protected_Subprogram_Type.
34652 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34655 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34656 to anonymous access to subprogram types.
34658 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34659 to subprogram types.
34661 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34662 corresponding to anonymous access to subprogram types.
34663 (Analyze_Component_Declaration): Add new actual to the call to
34664 subprogram replace_anonymous_access_to_protected_subprogram.
34665 (Array_Type_Declaration): Add new actual to the call to subprogram
34666 replace_anonymous_access_to_protected_subprogram.
34667 (Process_Discriminants): Add new actual to the call to subprogram
34668 replace_anonymous_access_to_protected_subprogram.
34669 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34671 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34674 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34675 access to subprogram types.
34677 * sem_util.adb (Has_Declarations): Addition of package_specification
34680 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34682 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34683 inlined flags to renamed entity only if in current unit.
34685 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34687 * s-parint.ads: Add DSA implementation marker.
34689 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34690 value of System.Partition_Interface.DSA_Implementation to determine
34691 what version of the distributed systems annex is available (no
34692 implementation, GLADE, or PolyORB).
34694 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34696 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34698 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34700 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34701 with new type if alias sets differ.
34702 Fixes ACATS c41103b.
34704 2004-04-21 Vincent Celier <celier@gnat.com>
34706 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34707 Add array Lang_Args for the language specific compiling argument
34710 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34712 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34714 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34715 according to the recent changes in the format of the parameters of the
34716 pragma (replacing Homonym_Number with Source_Location).
34718 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34720 * 5isystem.ads: Removed, unused.
34722 * gnat_rm.texi: Redo 1.13 change.
34724 2004-04-19 Robert Dewar <dewar@gnat.com>
34726 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34727 definition is cleaner, avoids the kludge of explicit Standard operator
34728 references, and also is consistent with a visible System.Address with
34729 no visible operations.
34731 * s-geveop.adb: Add declarations to avoid assumption of visible
34732 operations on type System.Address (since these might not be available
34733 if Address is a non-private type for which the operations
34734 are made abstract).
34736 * sem_eval.adb: Minor reformatting
34738 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34739 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34740 reformatting (new function spec format).
34742 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34743 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34744 s-caun64.adb: Add declarations to avoid assumption of visible
34745 operations on type System.Address (since these might not be available
34746 if Address is a non-private type for which the operations are made
34749 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34751 * exp_intr.adb: Minor comment update
34753 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34755 * 5omastop.adb: Add declarations to avoid assumption of visible
34756 operations on type System.Address (since these might not be available
34757 if Address is a non-private type for which the operations
34758 are made abstract).
34760 2004-04-19 Vincent Celier <celier@gnat.com>
34762 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34764 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34767 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34769 Call Check with Process_Languages.
34770 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34771 with Process_Languages.
34772 (Recursive_Check): New Boolean parameter Process_Languages. Call
34773 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34776 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34778 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34779 parameter Ada_Main, defaulted to True.
34780 Check for Ada specific characteristics only when Ada_Main is True.
34782 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34784 * prj.adb: (Project_Empty): Add new Project_Data components.
34786 * prj.ads: New types and tables for non Ada languages.
34787 (Project_Data): New components Languages, Impl_Suffixes,
34788 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34789 Include_Path, Include_Data_Set.
34791 * prj-env.ads, prj-env.adb: Minor reformatting
34793 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34794 Put subprograms in alphabetical order
34796 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34797 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34800 * mlib-prj.adb: Back out modification in last version, as they are
34802 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34804 * make.adb: (Mains): Moved to package Makeutl
34805 (Linker_Opts): Moved to package Makeutl
34806 (Is_External_Assignment): Moved to package Makeutl
34807 (Test_If_Relative_Path): Moved to package Makeutl
34808 (Gnatmake): Move sorting of linker options to function
34809 Makeutl.Linker_Options_Switches.
34811 * makeutl.ads, makeutl.adb: New files.
34813 * Makefile.in: Add makeutl.o to the object files for gnatmake
34815 * makeusg.adb: Add line for new switch -eL.
34817 * gnatls.adb (Image): New function.
34818 (Output_Unit): If in verbose mode, output the list of restrictions
34819 specified by pragmas Restrictions.
34821 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34824 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34825 needed, to put it in the range 1970 (included) - 2026 (excluded).
34826 (Time_Of): Do not shift Unix_Min_Year (1970).
34827 Shift the date by multiple of 56 years, if needed, to put it in the
34828 range 1970 (included) - 2026 (excluded).
34830 * adaint.h, adaint.c (__gnat_set_executable): New function.
34832 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34834 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34835 and pop GC context.
34836 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34837 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34838 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34839 (tree_transform, case N_Code_Statement): Likewise.
34840 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34841 LABEL_STMT_FIRST_IN_EH.
34842 (gnat_expand_stmt, case ASM_STMT): New case.
34844 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34845 UNCONSTRAINED_ARRAY_REF.
34847 * utils.c (poplevel): Temporarily push/pop GC context around inline
34848 function expansion.
34850 * decl.c (maybe_variable): Properly set TREE_READONLY of
34851 UNCONSTRAINED_ARRAY_REF.
34852 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34854 * ada-tree.def: (ASM_STMT): New.
34856 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34857 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34858 ASM_STMT_INPUT): New.
34859 (ASM_STMT_CLOBBER): Likewise.
34861 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34863 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34864 general rcheck mechanism to raise Program_Error for E.4(18), instead
34865 of a custom raiser in System.Partition_Interface.
34866 Part of general cleanup work before PolyORB integration.
34868 * snames.ads, snames.adb: Add new runtime library entities and names
34871 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34873 (Build_Subprogram_Id): New subprogram provided by exp_dist
34874 Code reorganisation in preparation for PolyORB integration.
34876 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34878 (Build_Subprogram_Id): New subprogram provided by exp_dist
34880 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34881 actual parameter types for call to dereference of an
34882 access-to-subprogram type.
34884 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34887 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34888 instead, which has the same behaviour here since we never pass it a
34891 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34894 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34895 to account for new dependency upon Interfaces.C.Strings + link.o
34896 For x86 FreeBSD, use 86numaux.
34898 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34899 from Mlib.Tgt to Mlib.
34901 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34902 target-independent.
34904 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34905 target-specific versions of this subprogram, now implemented as a
34906 target-independent function in Mlib.
34908 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34909 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34910 (Linker_Library_Path_Option): Remove target-specific versions of this
34911 subprogram, now implemented as a target-independent function in Mlib.
34913 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34914 Factors out node table slots allocation.
34915 (Fix_Parents): New subprogram.
34916 Encapsulate the pattern of fixing up parent pointers for syntactic
34917 children of a rewritten node.
34918 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34919 (Rewrite): Use New_Copy when creating saved copy of original node.
34920 (Replace): Use Copy_Node to copy nodes.
34922 2004-04-19 Javier Miranda <miranda@gnat.com>
34924 * sprint.adb (Sprint_Node_Actual): Give support to the new
34925 Access_To_Subprogram node available in Access_Definition nodes. In
34926 addition, give support to the AI-231 node fields: null-exclusion,
34927 all-present, constant-present.
34929 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34931 * sinfo.ads, sinfo.adb:
34932 New field Access_To_Subprogram_Definition in Access_Definition nodes
34934 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34935 decorates internal subtype declaration corresponding to the
34936 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34937 In addition, carry out some code cleanup on this code. In case of
34938 access to protected subprogram call
34939 Replace_Anonymous_Access_To_Protected_Subprogram.
34940 (Set_Actual_Subtypes): Code cleanup.
34942 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34943 Find_Type in case of anonymous access renamings. Add warning in case of
34944 null-excluding attribute used in anonymous access renaming.
34946 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34949 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34951 (Access_Definition): In case of anonymous access to subprograms call
34952 the corresponding semantic routine to decorate the node.
34953 (Access_Subprogram_Declaration): Addition of some comments indicating
34954 some code that probably should be added here. Detected by comparison
34955 with the access_definition subprogram.
34956 (Analyze_Component_Declaration): In case of access to protected
34957 subprogram call Replace_Anonymous_Access_To_Protected.
34958 (Array_Type_Declaration): In case of access to protected subprogram call
34959 Replace_Anonymous_Access_To_Protected_Subprogram.
34960 (Process_Discriminants): In case of access to protected subprogram call
34961 Replace_Anonymous_Access_To_Protected_Subprogram.
34963 * par.adb (P_Access_Definition): New formal that indicates if the
34964 null-exclusion part was present.
34965 (P_Access_Type_Definition): New formal that indicates if the caller has
34966 already parsed the null-excluding part.
34968 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34969 (P_Identifier_Declarations): Code cleanup and give support to renamings
34970 of anonymous access to subprogram types.
34971 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34972 (P_Array_Type_Definition): Give support to AI-254.
34973 (P_Component_Items): Give support to AI-254.
34974 (P_Access_Definition): New formal that indicates if the header was
34975 already parsed by the caller.
34976 (P_Access_Type_Definition): New formal that indicates if the caller has
34977 already parsed the null-excluding part.
34979 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34980 call to P_Access_Definition.
34982 2004-04-19 Geert Bosch <bosch@gnat.com>
34984 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34985 the delicate semantics of floating-point to integer conversion.
34986 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34988 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34989 (Machine_Radix): New function.
34991 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34993 (Machine_Radix): New function also for use in conversion checks.
34995 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34997 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34999 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
35000 to decorate the access-to-protected subprogram and the equivalent type.
35002 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
35003 to anonymous access to subprogram types.
35005 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
35006 constant-folding, for legality checks in contexts that require an RM
35009 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
35010 temporary but stack checking is not enabled, increment serial number
35011 to so that symbol generation is consistent with and without stack
35014 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
35015 independent on whether stack checking is enabled, caller must check
35016 the corresponding flag.
35018 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
35020 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
35021 parent if it has discriminants.
35022 (Build_Derived_Private_Type): Constructed full view does
35023 not come from source.
35024 (Process_Discriminants): Default discriminants on a tagged type are
35025 legal if this is the internal completion of a private untagged
35028 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
35029 no constraint checks, because it corresponds to an existing object.
35031 * sem_prag.adb (Process_Convention): Pragma applies
35032 only to subprograms in the same declarative part, i.e. the same unit,
35033 not the same scope.
35035 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
35036 ignore type mismatch on a numeric conversion if expression comes from
35039 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
35041 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
35042 Homonym_Number parameter, add processing for Source_Location parameter
35044 (Check_Eliminated): Remove the check for homonym numbers, add the check
35045 for source location traces.
35047 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
35048 with Arg_Source_Location corresponding to the changes in the format of
35051 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35052 Eliminate pragma corresponding to the changes in the format of the
35053 pragma: Homonym_Number is replaced with Source_Location, two ways of
35054 distinguishing homonyms are mutially-exclusive.
35056 2004-04-19 Joel Brobecker <brobecker@gnat.com>
35058 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35060 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35061 No_Dollar_In_Label, no longer necessary, as it is always True.
35062 (Strip_Suffixes): Likewise.
35064 2004-04-19 Gary Dismukes <dismukes@gnat.com>
35066 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35067 modulus for compatibility with size clause on targets with 16-bit
35070 * layout.adb (Discrimify): In the case of private types, set Vtyp to
35071 full type to fix type mismatches on calls to size functions for
35072 discriminant-dependent array components.
35074 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
35076 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35079 2004-04-19 Pascal Obry <obry@gnat.com>
35081 * mdll-utl.adb (Locate): New version is idempotent.
35083 2004-04-17 Laurent Guerby <laurent@guerby.net>
35085 PR ada/14988 (partial)
35086 * impunit.adb: Fix typo.
35088 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
35090 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35091 and install-rts-cert targets. Remove all gnatlib and gnattools
35092 targets and all other rts-* targets (moved to libada). Remove (now)
35093 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35094 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35096 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35098 * trans.c (tree_transform): Shortcut returning error_mark_node for
35099 statements in annotate_only_mode.
35100 (tree_transform, case N_Label, case N_Return_Statement,
35101 N_Goto_Statement): Make statement tree instead of generating code.
35102 (tree_transform, case N_Assignment_Statement): No longer check
35103 type_annotate_only.
35104 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35106 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35108 (gnat_to_gnu): Collect any RTL generated and deal with it.
35109 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35110 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35111 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35113 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35115 * ada-tree.def (EXPR_STMT): Fix typo in name.
35116 (BLOCK_STMT, IF_STMT): New nodes.
35118 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35119 LABEL_STMT_FIRST_IN_EH): New macros.
35120 (RETURN_STMT_EXPR): Likewise.
35122 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35123 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35125 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35127 * atree.ads: Correct documentation on extended nodes.
35129 * link.c: Set run_path_option for FreeBSD.
35131 2004-04-08 Vincent Celier <celier@gnat.com>
35133 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35134 one of the ALI file, do not link with DEC lib.
35136 * par.adb Remove the last two characters ("%s" or "%b") when checking
35137 if a language defined unit may be recompiled.
35139 2004-04-08 Ed Schonberg <schonberg@gnat.com>
35141 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35142 removal of abstract operation leaves no possible interpretation for
35145 * sem_eval.adb (Eval_Qualified_Expression): Use
35146 Set_Raises_Constraint_Error on node when needed, so that it does not
35147 get optimized away by subsequent optimizations.
35149 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35150 operands even when they are not wrapped in a type conversion.
35152 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
35154 * sem_prag.adb (Set_Exported): Warn about making static as result of
35155 export only when the export is coming from source. This may be not
35156 be true e.g. on VMS where we expand export pragmas for exception codes
35157 together with imported or exported exceptions, and we don't want the
35158 user to be warned about something he didn't write.
35160 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35162 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35163 duplication between normal entities and those declared as renamings.
35164 No functional change.
35166 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35167 inline functions returning an unconstrained result.
35169 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
35171 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35172 conform to what other front-ends do.
35174 2004-04-08 Doug Rupp <rupp@gnat.com>
35176 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35179 2004-04-06 Pascal Obry <obry@gnat.com>
35181 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35183 * osint.adb (Program_Name): Do not look past a directory separator.
35185 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
35187 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35189 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35190 requirement for preserving a copy of the original assignment node.
35192 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35194 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
35196 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35199 2004-04-06 Ed Schonberg <schonberg@gnat.com>
35201 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35202 operator calls in functional notation, and apply
35203 Universal_Interpretation to operands, not to their type.
35205 2004-04-06 Robert Dewar <dewar@gnat.com>
35207 * 5wdirval.adb: Minor reformatting
35209 2004-04-06 Ed Falis <falis@gnat.com>
35211 * gnat_rm.texi: Improve a reference to the GCC manual
35213 2004-04-05 Vincent Celier <celier@gnat.com>
35215 * adaint.h, adaint.c: Add function __gnat_named_file_length
35217 * impunit.adb: Add Ada.Directories to the list
35219 * Makefile.in: Add VMS and Windows versions of
35220 Ada.Directories.Validity package body.
35222 * Makefile.rtl: Add a-direct and a-dirval
35224 * mlib-tgt.ads: Minor comment update.
35226 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35227 a-direct.ads, a-direct.adb: New files.
35229 2004-04-05 Vincent Celier <celier@gnat.com>
35232 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35233 just to the compiler.
35235 2004-04-05 Robert Dewar <dewar@gnat.com>
35237 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35238 returned string is 1.
35240 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35242 * eval_fat.ads: Minor reformatting
35244 * g-curexc.ads: Document that lower bound of returned string values
35247 * gnatlink.adb: Add ??? comment for previous change
35248 (need to document why this is VMS specific)
35250 * s-stoele.ads: Minor reformatting
35252 * tbuild.ads: Minor reformatting throughout (new function specs)
35254 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35257 * scng.adb: Minor reformatting
35259 2004-04-05 Geert Bosch <bosch@gnat.com>
35261 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35262 (Leading_Part): Still perform truncation to machine number if the
35263 specified radix_digits is greater or equal to machine_mantissa.
35265 2004-04-05 Javier Miranda <miranda@gnat.com>
35267 * par-ch3.adb: Complete documentation of previous change
35268 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35269 (aliased must appear before constant).
35271 * par-ch4.adb: Complete documentation of previous change.
35273 * par-ch6.adb: Complete documentation of previous change.
35275 * sinfo.ads: Fix typo in commment.
35277 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35279 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35280 stored discriminants, use its discriminants to constrain parent type,
35281 as is done for non-private derived record types.
35283 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35284 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35285 candidate interpretation in an overloaded call.
35287 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35288 expression is Null and target type is not an access type (e.g. a
35289 non-private address type).
35291 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35293 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35294 statement whose right-hand side is an inlined call, save a copy of the
35295 original assignment subtree to preserve enough consistency for
35296 Analyze_Assignment to proceed.
35298 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35299 complete assignment subtree which is now unnecessary, as the expansion
35300 of inlined call has been improved to preserve a consistent assignment
35301 tree. Note_Possible_Modification must be called only
35302 after checks have been applied, or else unnecessary checks will
35305 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35306 of explicit dereferences that do not Come_From_Source:
35307 - be selective on cases where we must go back to the dereferenced
35308 pointer (an assignment to an implicit dereference must not be
35309 recorded as modifying the pointer);
35310 - do not rely on Original_Node being present (Analyze_Assignment
35311 calls Note_Possible_Modification on a copied tree).
35313 * sem_warn.adb (Check_References): When an unset reference to a pointer
35314 that is never assigned is encountered, prefer '<pointer> may be null'
35315 warning over '<pointer> is never assigned a value'.
35317 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35319 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35322 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35324 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35325 libexc. We currently don't reference anything in this library and
35326 linking it in triggers linker warnings we don't want to see.
35328 * init.c: Update comments.
35330 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35332 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35333 * utils.c (create_field_decl): Likewise.
35334 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35336 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35338 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35339 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35340 Add info directory entry and category.
35342 2004-04-02 Jan Hubicka <jh@suse.cz>
35344 * utils.c: Include function.h
35345 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35347 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35350 * Make-lang.in: Clean up generation of documentation
35352 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35354 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35356 * xgnatugn.adb: Replaces xgnatug.adb
35358 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35360 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35362 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35363 gnat_ug_wnt.texi: Removed.
35365 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35367 * utils2.c: Update copyright notice.
35369 2004-04-01 Robert Dewar <dewar@gnat.com>
35371 * checks.adb: Minor reformatting throughout
35372 Note that prev checkin added RM reference to alignment warning
35374 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35376 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35377 non-static when building aggregate for bit-packed array.
35379 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35380 function call that is itself the actual in a procedure call, build
35383 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35384 a string literal, create a temporary for it, constant folding only
35385 handles scalars here.
35387 2004-04-01 Vincent Celier <celier@gnat.com>
35389 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35390 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35391 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35393 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35394 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35395 and get the checksum.
35397 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35399 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35400 instead of at the beginning.
35402 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35404 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35407 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35409 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35412 * par.adb: Remove test on file name to detect language defined units.
35413 Add test on unit name, after parsing, to detect language defined units
35414 that are not compiled with -gnatg (except System.RPC and its children)
35416 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35417 following units without style checking.
35419 * switch-c.adb: Change -gnatC to -gnateI
35421 * usage.adb: Document new switch -gnateInnn
35423 * scng.adb (Accumulate_Token_Checksum): New procedure
35424 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35425 word or literal number.
35426 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35429 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35432 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35433 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35434 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35435 5vtpopde.adb: Add missing 'constant' keywords.
35437 2004-04-01 Javier Miranda <miranda@gnat.com>
35439 * par-ch4.adb: (P_Allocator): Code cleanup
35441 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35444 * sinfo.ads: Complete documentation of previous change
35446 2004-04-01 Pascal Obry <obry@gnat.com>
35448 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35449 only on VMS. This special handling was done because an old GNU/ld bug
35450 on Windows which has been fixed.
35452 2004-04-01 GNAT Script <nobody@gnat.com>
35454 * Make-lang.in: Makefile automatically updated
35456 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35458 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35459 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35460 * trans.c (tree_transform, convert_with_check): Likewise.
35461 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35462 (build_vms_descriptor, unchecked_convert): Likewise.
35463 * utils2.c (nonbinary_modular_operation): Likewise.
35465 2004-03-29 Javier Miranda <miranda@gnat.com>
35467 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35468 (Install_Null_Excluding_Check): Local subprogram that determines whether
35469 an access node requires a runtime access check and if so inserts the
35470 appropriate run-time check.
35471 (Apply_Access_Check): Call Install_Null_Excluding check if required
35472 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35474 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35476 * einfo.ads: Fix typo in comment
35478 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35479 null-excluding type to force the corresponding run-time check.
35480 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35481 type to force the corresponding run-time check.
35483 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35484 the null-excluding type to force the corresponding run-time check.
35486 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35487 case of access types unless they have the null-excluding attribute.
35489 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35492 * exp_util.ads: Fix typo in comment
35494 * par.adb (P_Null_Exclusion): New subprogram
35495 (P_Subtype_Indication): New formal that indicates if the null-excluding
35496 part has been scanned-out and it was present
35498 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35500 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35501 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35502 type to force the corresponding run-time check
35503 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35505 (Resolve_Array_Aggregate): Carry out some static checks
35506 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35508 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35509 attribute must be set only if specified by means of the null-excluding
35510 part. In addition, we must also propagate the access-constant attribute
35512 (Access_Subprogram_Declaration, Access_Type_Declaration,
35513 Analyze_Component_Declaration, Analyze_Object_Declaration,
35514 Array_Type_Declaration, Process_Discriminants,
35515 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35516 and carry out some static checks.
35517 (Build_Derived_Access_Type): Set the null-excluding attribute
35518 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35521 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35523 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35525 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35526 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35527 null-excluding part was present; it is not required to be done here in
35528 case of anonymous access types.
35529 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35532 * sem_res.adb (Resolve_Actuals): Carry out some static check
35533 (Resolve_Null): Allow null in anonymous access
35535 * sinfo.adb: New subprogram Null_Exclusion_Present
35536 All_Present and Constant_Present available on access_definition nodes
35538 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35539 object_declaration, derived_type_definition, component_definition,
35540 discriminant_specification, access_to_object_definition,
35541 access_function_definition, allocator, access_procedure_definition,
35542 access_definition, parameter_specification, All_Present and
35543 Constant_Present flags available on access_definition nodes.
35545 2004-03-29 Robert Dewar <dewar@gnat.com>
35547 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35548 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35549 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35550 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35551 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35552 sem_prag.adb: Updates to handle multiple units/file
35554 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35556 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35557 sem_util.adb: Minor reformatting
35559 * sem_ch12.adb: Add comment for previous change
35561 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35563 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35564 executable name when not initialized. Otherwise, use its current value.
35566 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35567 initialize it to another executable name than the current one. This
35568 allows to configure paths for an executable name (gnatmake) different
35569 from the current one (gnatdist).
35571 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35573 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35574 current unit cannot be inlined if it appears in the body of a withed
35575 unit, to avoid order of elaboration problems in gigi.
35577 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35578 information for protected (wrapper) operation as well, to simplify gdb
35581 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35582 protected body, indicate that the entity for the generated spec comes
35583 from source, to ensure that references are properly generated for it.
35584 (Build_Body_To_Inline): Do not inline a function that returns a
35587 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35588 apply convention to homonyms that are declared explicitly.
35590 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35591 that renames an equality operator and the operands are overloaded,
35592 resolve them with the declared formal types, before rewriting as an
35595 2004-03-29 GNAT Script <nobody@gnat.com>
35597 * Make-lang.in: Makefile automatically updated
35599 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35601 * memtrack.adb: Log realloc calls, which are treated as free followed
35604 2004-03-25 Vincent Celier <celier@gnat.com>
35606 * prj-makr.adb (Process_Directories): Detect when a file contains
35607 several units. Do not include such files in the config pragmas or
35608 in the naming scheme.
35610 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35611 Resolve links only when not in Trusted_Mode.
35612 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35613 Do not resolve links for the display names.
35615 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35616 resolve links when computing the display names.
35618 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35620 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35621 attribute reference does not denote a subtype, it can be any
35622 expression that has a classwide type, potentially after an implicit
35623 dereference. In particular, the prefix can be a view conversion for
35624 a classwide type (for which Is_Object_Reference holds), but it can
35625 also be a value conversion for an access-to-classwide type. In the
35626 latter case, there is an implicit dereference, and the original node
35627 for the prefix does not verify Is_Object_Reference.
35629 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35630 conversion of a discriminant-dependent component of a mutable object
35633 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35635 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35636 inherited, has convention C, and has unconstrained array parameters,
35637 place the corresponding warning on the derived type declaration rather
35638 than the original subprogram.
35640 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35641 indication on renaming declaration, if formal has a box and actual
35644 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35645 determine whether to generate an implicit or explicit reference to
35646 the renamed entity.
35648 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35649 subprogram renaming comes from a defaulted formal subprogram in an
35652 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35654 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35655 value expressions to ensure that calls within a component definition
35656 will be checked (since those are evaluated during the record type's
35659 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35661 * s-tpobop.adb: Code clean up:
35662 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35664 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35666 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35668 * Makefile.in: Clean up in the ravenscar run time.
35670 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35672 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35673 of No_Strict_Aliasing to build_pointer_type_for_mode.
35674 * utils.c (update_pointer_to): Walk pointer and ref chains.
35676 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35678 * ali.ads: Fix Comment about Dynamic_Elab.
35680 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35681 Has_RACW, Is_Generic, etc.)
35682 (Output_Object, Gnatls): Take into account ALI files not attached to
35685 2004-03-22 Vincent Celier <celier@gnat.com>
35687 * gprep.adb: Change all String_Access to Name_Id
35688 (Is_ASCII_Letter): new function
35689 (Double_File_Name_Buffer): New procedure
35690 (Preprocess_Infile_Name): New procedure
35691 (Process_Files): New procedure
35692 (Gnatprep): Check if output and input are existing directories.
35693 Call Process_Files to do the real job.
35695 2004-03-22 Robert Dewar <dewar@gnat.com>
35697 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35698 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35700 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35702 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35703 case when the source contains only comments.
35705 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35707 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35708 declaration for a child subprogram body that acts as a spec, indicate
35709 that the entity in the declaration needs debugging information.
35711 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35712 full view if the subtype is created for a constrained record component;
35713 gigi has enough information to construct the record, and there is no
35714 place in the tree for the declaration.
35716 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35717 serial number for the dummy body that is built for analysis, to avoid
35718 inconsistencies in the generation of internal names when compiling
35721 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35723 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35726 2004-03-22 GNAT Script <nobody@gnat.com>
35728 * Make-lang.in: Makefile automatically updated
35730 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35732 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35733 * trans.c (tree_transform, emit_index_check): Likewise.
35734 * utils.c (build_template): Likewise.
35735 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35736 (maybe_unconstrained_array, unchecked_convert): Likewise.
35737 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35738 (build_unary_op): Likewise.
35739 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35740 (fill_vms_descriptor): Likewise.
35741 (build_call_alloc_dealloc): Likewise.
35743 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35745 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35748 * gnat_ug.texi: Add info directory category and entry.
35749 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35750 gnat_ug_wnt.texi: Regenerate.
35752 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35754 * ada-tree.h: Update copyright notice.
35755 Minor reformatting.
35757 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35759 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35760 as regular exception objects and not as mere integers representing the
35761 condition code. The latter approach required some dynamics to mask off
35762 severity bits, which did not fit well into the GCC table based model.
35763 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35764 exception data objects. We don't it and it would conflict with the other
35765 external symbol we have to generate for such exceptions.
35767 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35768 the special code for VMS exceptions, since these are now represented
35769 as regular exceptions objects.
35771 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35773 * decl.c (debug_no_type_hash): Remove.
35774 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35775 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35777 2004-03-19 Laurent Guerby <laurent@guerby.net>
35779 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35780 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35782 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35784 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35785 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35786 (TYPE_RM_SIZE_INT): Directly use type.values.
35787 (TREE_LOOP_ID): Clean up check.
35788 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35789 TYPE_VALUES, not TYPE_FIELDS.
35790 * trans.c (convert_with_check): Delay access of bounds of basetype
35791 until sure is numeric.
35793 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35795 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35798 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35799 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35800 Specific.Set instead of direct call to e.g pthread_setspecific.
35802 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35804 * adaint.c: Update comments.
35806 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35807 GNATLIB_SHARED for FreeBSD.
35809 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35811 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35812 When needed (stack checking) the stack size is retrieved
35813 from the VxWorks kernel.
35815 * Makefile.in: Flag -nostdinc is required when building the run time
35816 for avoiding looking for files in the base compiler.
35817 Add the VxWorks specific version of the package body for
35818 System.Stack_checking.Operations (5zstchop.adb).
35820 * Make-lang.in: Add the object file for
35821 System.Stack_Checking.Operations.
35823 * Makefile.rtl: Add object file for the package
35824 System.Stack_Checking.Operations.
35826 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35828 * s-stache.ads, s-stache.adb: Move the operations related to stack
35829 checking from this package to package System.Stack_Checking.Operations.
35830 This way, stack checking operations are only linked in the final
35831 executable when using the -fstack-check flag.
35833 2004-03-18 Doug Rupp <rupp@gnat.com>
35835 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35838 * 5qsystem.ads, 5xcrtl.ads: New files.
35840 2004-03-18 Vincent Celier <celier@gnat.com>
35842 * prj.adb (Reset): Reset hash table Files_Htable
35844 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35845 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35846 the procedures Add_To_Path_File.
35847 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35848 making sure that each directory is present only once and, for object
35849 dirs, when a directory already present is added, the duplicate is
35850 removed and the directory is always put as the last in the table.
35851 Write the path files at the end of these accumulations.
35853 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35854 Files_Htable for all sources.
35856 * prj-proc.adb (Process): Remove restrictions between not directly
35857 related extending projects.
35859 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35861 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35862 (Find_Sources): Minor speed optimization.
35864 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35865 parameter Trusted_Mode.
35867 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35869 * scn.adb (Determine_License): Take into account a degenerated case
35870 when the source contains only comments.
35872 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35874 * sem_warn.adb (Check_References): For a warning on a selected
35875 component that does not come from source, locate an uninitialized
35876 component of the record type to produce a more precise error message.
35878 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35880 * 3zsoccon.ads: Fix multicast options.
35882 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35885 2004-03-15 Robert Dewar <dewar@gnat.com>
35887 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35888 pragma used for a private type.
35890 * lib-xref.adb (Generate_Reference): Do not generate warning if
35891 reference is in a different unit from the pragma Unreferenced.
35893 * 5vtpopde.adb: Minor reformatting
35894 Fix casing of To_Task_ID
35896 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35897 flag if we have an unchecked conversion to an access type in the same
35900 2004-03-15 Geert Bosch <bosch@gnat.com>
35902 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35903 imaginary parts, use Double precision throughout.
35905 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35906 we want to be able to compile run-time with -gnata for testing, but
35907 this may also be instantiated in user code that is compiled with -gnata.
35909 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35911 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35912 codes. Having a separate type for this is useful to enforce consistency
35913 throughout the various run-time units.
35914 (Exception_Data): Use Exception_Code for Import_Code.
35916 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35917 Natural and Integer in various places.
35918 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35919 with the severity bits masked off.
35920 (Register_VMS_Exception): Handle the additional exception data pointer
35923 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35924 component, now reflected by an exported accessor.
35925 (is_handled_by): New routine to compute whether the propagated
35926 occurrence matches some handler choice specification. Extracted out of
35927 get_action_description_for, and expanded to take care of the VMS
35929 (get_action_description_for): Use is_handled_by instead of an explicit
35930 complex condition to decide if the current choice at hand catches the
35931 propagated occurrence.
35933 * raise.h (Exception_Code): New type for C.
35935 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35936 System.Standard_Library.Exception_Code, to allow references from the
35937 pragma import/export expander.
35939 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35940 New accessors to allow easy access to GNAT exception data
35942 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35943 redundant Handled_By_Others component, helper for the personality
35944 routine which will now be able to call the appropriate exception data
35947 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35948 component of Standard_Exception_Type to be the closest possible to
35949 Exception_Code in System.Standard_Library, that we cannot get at this
35950 point. Expand a ??? comment to notify that this type node should
35951 probably be rewritten later on.
35953 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35954 registration call to include a pointer to the exception object in the
35957 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35958 instead of int and explicit bitmasks.
35960 2004-03-15 Vincent Celier <celier@gnat.com>
35962 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35963 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35965 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35966 longer needed now that it is in the spec of
35967 System.Tasking.Task_Attributes.
35969 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35971 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35973 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35975 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35976 taken care of in Scan_Make_Arg.
35977 (Scan_Make_Arg): Add the executable suffix only if the argument
35978 following -o, in canonical case, does not end with the executable
35979 suffix. When in verbose mode and executable file name does not end
35980 with executable suffix, output the executable name, in canonical case.
35982 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35983 to avoid warnings when instantiating Ada.Task_Attributes.
35986 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35987 in the correct order.
35989 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35990 redirect standard output and error to a file for the invocation of the
35991 compiler, then read the file.
35993 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35994 directory, instead of the Value.
35995 (Find_Source_Dirs): Remove useless code & comments.
35997 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35999 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
36000 tagged type is inherited, and the parent operation is not frozen yet,
36001 force generation of a freeze node for the inherited operation, so the
36002 corresponding dispatch entry is properly initialized.
36003 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
36004 when looking for user-defined equality operation.
36006 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
36007 boolean when locating primitive equality of tagged component.
36009 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
36010 bit-aligned field and the right-hand side a string literal, introduce
36011 a temporary before expanding assignment into a loop.
36013 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
36014 priority in full, to ensure that any expanded subepxressions of it are
36015 elaborated in the scope of the init_proc.
36017 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
36018 after object declaration, skipping over code that may have been
36019 generated for validity checks.
36021 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
36022 discriminants, ignore the known discriminants of its full view, if
36023 any, to check legality.
36025 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
36026 component if type has unknown discriminants.
36027 (Analyze_Private_Extension_Declaration): Discriminant constraint is
36028 null if type has unknown discriminants.
36030 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
36031 for end label when present.
36033 * s-fileio.adb (Open): When called with a C_Stream, use given name for
36034 temporary file, rather than an empty string.
36036 2004-03-15 Ed Falis <falis@gnat.com>
36038 * s-thread.adb: Removed, no longer used.
36040 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36042 * decl.c (target.h): Now include.
36043 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
36044 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
36045 (validate_size): For POINTER_TYPE, get smallest size permitted on
36048 * fe.h: Sort Einfo decls and add Set_Mechanism.
36050 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36051 (ada/decl.o): Depends on target.h.
36053 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36054 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36056 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
36058 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36060 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36061 Insert_Dereference_Action when rewriting an implicit dereference into
36062 an explicit one, this will be taken care of during expansion of the
36063 explicit dereference.
36064 (Expand_N_Slice): Same. Always do the rewriting, even for the case
36065 of non-packed slices, since the dereference action generated by
36066 expansion of the explicit dereference is needed in any case.
36067 (Expand_N_Selected_Component): When rewriting an implicit dereference,
36068 analyze and resolve the rewritten explicit dereference so it is seen
36070 (Insert_Dereference_Action): This procedure is now called only for the
36071 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36072 dereferences that do not come from source (including explicit
36073 dereferences resulting from rewriting implicit ones), but do not
36074 recursively insert a check for the dereference nodes contained within
36076 (Insert_Dereference_Action): Clarify and correct comment.
36078 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
36081 Move language detection to the top level.
36082 * config-lang.in: Build by default.
36084 2004-03-05 Robert Dewar <dewar@gnat.com>
36086 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36088 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36089 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36090 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36091 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36092 unchecked conversion to spec to avoid warnings.
36094 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36097 * 7stpopsp.adb: Correct casing in To_Task_ID call
36099 * a-strsea.ads, a-strsea.adb: Minor reformatting
36101 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36103 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36104 Adjust Max_Msg_Length to be clearly large enough.
36106 * fe.h: Define In_Same_Source_Unit
36108 * osint.adb: Add pragma Warnings Off to suppress warnings
36109 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36112 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36114 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36116 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36118 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36120 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36122 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36123 node. We now do generate them for gcc back end.
36125 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36128 * sinput-c.adb: Fix bad name in header.
36129 Add pragma Warnings Off to suppress aliasing warning.
36131 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36133 * snames.h, snames.ads, snames.adb: Add entry for pragma
36134 No_Strict_Aliasing.
36136 2004-03-05 Vincent Celier <celier@gnat.com>
36138 * prj-com.ads: Add hash table Files_Htable to check when a file name
36139 is already a source of another project.
36141 * prj-nmsc.adb (Record_Source): Before recording a new source, check
36142 if its file name is not already a source of another project. Report an
36145 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36146 source file name, call gnatpp with all the sources of the main project.
36148 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36151 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36152 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36153 /RUNTIME_SYSTEM=, converted to --RTS=
36154 /NOTABS, converted to -notabs
36156 2004-03-05 Pascal Obry <obry@gnat.com>
36158 * make.adb: Minor reformatting.
36160 2004-03-05 Ed Schonberg <schonberg@gnat.com>
36162 Part of implemention of AI-262.
36163 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36165 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36168 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36169 when component type is a partially constrained class-wide subtype.
36170 (Constrain_Discriminated_Type): If parent type has unknown
36171 discriminants, a constraint is illegal, even if full view has
36173 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36174 with unknown discriminants whose full view is a discriminated record.
36176 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36177 flag, to handle properly derivations of tagged types with unknown
36179 (Analyze_Package_Spec, Analyze_Package_Body): Install
36180 Private_With_Clauses before analyzing private part or body.
36182 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36183 Has_Discriminants can be true for a given type (documentation).
36185 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
36187 * s-restri.ads: Fix license (GPL->GMGPL).
36189 * s-tassta.adb: Minor reformatting.
36191 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36192 by calls to Exit_One_ATC_Level, since additional clean up is performed
36195 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36196 by calls to Exit_One_ATC_Level, since additional clean up is performed
36199 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36201 * trans.c: Reflect GCC changes to fix bootstrap problem.
36202 Add warning for suspicious aliasing unchecked conversion.
36204 2004-03-05 GNAT Script <nobody@gnat.com>
36206 * Make-lang.in: Makefile automatically updated
36208 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
36210 * ali.adb (Read_Instantiation_Instance): Do not modify the
36211 current_file_num when reading information about instantiations, since
36212 this corrupts files in later references.
36214 2004-03-02 Vincent Celier <celier@gnat.com>
36216 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36217 before checking if it is read-only.
36219 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36220 of SRC_DIRS and eliminate duplicates.
36222 * gprcmd.adb: Replace command "path" with command "path_sep" to return
36223 the path separator.
36224 (Usage): Document path_sep
36226 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36227 C++ compiler. No need for a script.
36228 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36229 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36232 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36233 where there are Ada sources.
36234 (Set_Ada_Paths): Only add to the include path the source dirs of project
36236 (Add_To_Path): Add the Display_Values of the directories, not their
36239 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36242 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36244 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36245 Value is canonicalized.
36246 (Language_Independent_Check): Do not copy Value to Display_Value when
36247 canonicalizing Value.
36249 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36250 path to find limited with cycles.
36251 (Parse_Single_Project): Use canonical cased path to find the end of a
36254 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36256 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36257 and not a child unit.
36259 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36260 appear in a with_clause.
36262 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36263 only happen in type_annotate mode, do not try to elaborate it.
36265 * exp_util.adb (Force_Evaluation): If expression is a selected
36266 component on the left of an assignment, use a renaming rather than a
36267 temporary to remove side effects.
36269 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36270 inlined instance body, which is analyzed before the end of the
36273 2004-03-02 Robert Dewar <dewar@gnat.com>
36275 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36276 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36278 * errout.ads, errout.adb: Implement new circuit for substitution of
36281 * sem_case.adb (Analyze_Choices): Place message properly when case is
36282 a subtype reference rather than an explicit range.
36284 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36286 2004-03-02 Doug Rupp <rupp@gnat.com>
36288 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36290 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36292 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36294 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36296 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36299 2004-02-25 Robert Dewar <dewar@gnat.com>
36301 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36302 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36303 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36304 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36305 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36306 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36307 the defining instance of the type to avoid aliasing problems.
36308 Fix copyright header. Fix bad comments in package header.
36310 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36312 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36314 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36315 rewritten as references when aliased through an address clause.
36317 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36318 whether call can be interpreted as an indirect call to the result of a
36319 parameterless function call returning an access subprogram.
36321 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36324 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36325 Unlock[_Entries], since this is now done by Service_Entries directly.
36327 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36329 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36330 Requeue_Call for better code readability. Change spec and update calls:
36331 PO_Service_Entries now unlock the PO on exit.
36332 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36333 PO_Service_Entries.
36335 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36337 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36339 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36341 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36342 protected subprogram call and analyzing the result of such expanding
36343 in case when the called protected subprogram is eliminated.
36345 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36348 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36350 * Makefile.in: Clean ups.
36352 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36354 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36355 protected operations if original subprogram is flagged as eliminated.
36356 (Expand_N_Subprogram_Body): For a protected operation, create
36357 discriminals for next operation before checking whether the operation
36360 * exp_ch9.adb (Expand_N_Protected_Body,
36361 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36362 for internal protected operations if the original subprogram is
36365 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36366 declared in a single protected object.
36368 2004-02-23 Vincent Celier <celier@gnat.com>
36370 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36371 case insensitive if file names are case insensitive, instead of a
36372 standard associative array.
36374 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36375 them as case insensitive on platforms where the file names are case
36378 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36379 project file has already been parsed that canonical path are compared.
36381 2004-02-23 Robert Dewar <dewar@gnat.com>
36383 * sinput-c.ads: Correct bad unit title in header
36385 * freeze.adb: Minor reformatting
36387 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36389 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36390 nonaddressable COMPONENT_REF that is removing padding that we are
36391 taking the address of, take the address of the padded record instead
36392 if item is variable size.
36394 2004-02-20 Robert Dewar <dewar@gnat.com>
36396 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36398 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36400 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36401 itype references for the constrained designated type of a component
36402 whose base type is already frozen.
36404 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36406 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36407 avoid GCC warnings.
36409 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36411 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36412 identifier for a phantom package that rewrites the formal package
36413 declaration with a box. The Add semantic decorations for the defining
36414 identifier from the original node (that represents the formal package).
36416 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36418 * Make-lang.in (ada/stamp-sdefault): Use the top level
36421 2004-02-19 Richard Henderson <rth@redhat.com>
36423 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36425 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36427 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36428 Scan_ALI can be used for multiple ALI files without reinitializing
36431 2004-02-18 Robert Dewar <dewar@gnat.com>
36433 * debug.adb: Minor reformatting.
36435 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36437 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36438 to zero if there is an address clause.
36440 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36442 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36444 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36446 * layout.adb (Layout_Component_List): Revise generation of call to
36447 discriminant-checking function to pass selections of all of the type's
36448 discriminants rather than just the variant-controlling discriminant.
36450 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36452 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36453 fail in the current setup and triggers spurious system error messages.
36454 Pretend it occurred and failed instead.
36456 2004-02-18 Vincent Celier <celier@gnat.com>
36458 * bld.adb: Mark FLDFLAGS as saved
36459 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36460 it is not the root project. Put each directory to be
36461 extended between double quotes to prevent it to be expanded on Windows.
36462 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36463 the project file. Set them back to their initial values if they have not
36464 been set in the project file.
36466 * gprcmd.adb: (Gprdebug, Debug): New global variables
36467 (Display_Command): New procedure
36468 (Usage): Document new command "linkopts"
36469 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36470 Implement new command "linkopts"
36471 Remove quotes that may be around arguments for "extend"
36472 Always call Normalize_Pathname with arguments formatted for the platform
36474 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36475 Change @echo to @$(display) in target clean to be able to clean silently
36477 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36479 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36482 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36483 = Extending_All when current project is an extending all project.
36485 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36486 set to True only for LINK command, after Unix switch -o.
36487 (Process_Arguments): Set Output_File_Expected to True for LINK command
36488 after Unix switch -o. When Output_File_Expected is True, never add an
36489 extension to a file name.
36491 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36492 option file name, only to the --for-linker= switch.
36493 (Option_File_Name): If option file name do not end with ".opt", append
36496 2004-02-18 GNAT Script <nobody@gnat.com>
36498 * Make-lang.in: Makefile automatically updated
36500 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36502 * Make-lang.in (stamp-sdefault): Do not depend on
36505 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36507 * config-lang.in: Disable Ada by default until probe logic for
36508 a bootstrap Ada compiler can be moved to the top level configure
36511 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36513 * decl.c (components_to_record): Don't claim that the internal fields
36514 we make to hold the variant parts are semantically addressable, because
36517 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36518 adjust the comment describing the modular type form when we can use it.
36519 (Install_PAT): Account for the Esiz renaming.
36521 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36522 sc_onstack context indication before raising the exception to which
36523 the signal is mapped. Allows better handling of later signals possibly
36524 triggered by the resumed user code if the exception is handled.
36526 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36528 * 5zinit.adb: Removed, no longer used.
36530 2004-02-12 Robert Dewar <dewar@gnat.com>
36532 * ali.adb: Remove separating space between parameters on R line. Makes
36533 format consistent with format used by the binder for Set_Globals call.
36535 * atree.ads, atree.adb: Minor reformatting (new function header format)
36537 * bindgen.adb: Add Run-Time Globals documentation section containing
36538 detailed documentation of the globals passed from the binder file to
36541 * gnatls.adb: Minor reformatting
36543 * init.c (__gnat_set_globals): Add note pointing to documentation in
36546 * lib-writ.ads, lib-writ.adb: Remove separating space between
36547 parameters on R line.
36548 Makes format consistent with format used by the binder for Set_Globals
36551 * osint.ads: Add 2004 to copyright notice
36554 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36555 Noticed during code reading, documentation issue only
36557 * usage.adb: Remove junk line for obsolete C switch
36558 Noticed during code reading
36560 2004-02-12 Vincent Celier <celier@gnat.com>
36562 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36563 extend for each directory, so that multiple /** directories are
36564 extended individually.
36565 (Recursive_Process): Set the default for LANGUAGES to ada
36567 * gprcmd.adb: Define new command "ignore", to do nothing.
36568 Implement new comment "path".
36570 * Makefile.generic: Suppress output when SILENT is set
36571 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36572 used, so that the correct compiler is invoked.
36573 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36574 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36576 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36578 * Makefile.in: Clean ups and remove obsolete targets.
36580 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36582 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36583 predicate declared in exp_util.
36585 * exp_util.adb: Add comments.
36587 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36588 visibility before compiling context of the subunit.
36590 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36591 value but the name is a procedure, do not attempt to analyze as a call,
36592 in order to obtain more telling diagnostics.
36594 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36595 'Access on parameterless function calls.
36596 (Normalize_Actuals): For a parameterless function call with missing
36597 actuals, defer diagnostic until resolution of enclosing call.
36599 * sem_util.adb (Wrong_Type): If the context type is an access to
36600 subprogram and the expression is a procedure name, suggest a missing
36603 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36604 Nathanael Nerode <neroden@gcc.gnu.org>
36608 Merge with libada-branch:
36609 * config-lang.in: Build libada only when ada is built.
36611 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36613 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36614 for a tagged type, verify that both formals have the same type.
36616 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36617 temporary when the formal is an in-parameter and the actual a possibly
36620 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36621 when expansion is disabled, to ensure proper name capture with
36622 overloaded literals. Condition can be of any boolean type, resolve
36625 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36626 renaming is for a formal subprogram with a default operator name, and
36627 there is a usable operator that is visible at the point of
36630 2004-02-09 Robert Dewar <dewar@gnat.com>
36632 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36633 rewrite to ignore errors in ali files, intended to allow tools downward
36634 compatibility with new versions of ali files.
36636 * ali.ads: Add new parameter Ignore_Errors
36638 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36639 duplicating the error message giving the file with restrictions.
36641 * debug.adb: Add debug flag I for gnatbind
36643 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36644 operators for the case where the operator is a defining operator.
36646 * exp_ch3.adb: Minor reformatting (new function spec format).
36648 * exp_ch4.adb: Add comment for previous change, and make minor
36649 adjustment to loop to always check for improper loop termination.
36650 Minor reformatting throughout (new function spec format).
36652 * gnatbind.adb: Implement -di debug flag for gnatbind
36654 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36656 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36658 * lib-load.adb: Fix bad assertion.
36659 Found by testing and code reading.
36660 Minor reformatting.
36662 * lib-load.ads: Minor reformatting.
36664 * lib-writ.adb: There is only one R line now.
36666 * lib-writ.ads: Add documentation on making downward compatible changes
36667 to ali files so old tools work with new ali files.
36668 There is only one R line now.
36669 Add documentation on format incompatibilities (with special GPS note)
36671 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36673 * par-load.adb: Minor reformatting
36675 * sem_ch8.adb: Fix to error message from last update
36676 Minor reformatting and restructuring of code from last update
36678 * par-prag.adb, snames.adb, snames.ads, snames.h,
36679 sem_prag.adb: Implement pragma Profile.
36681 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36684 * usage.adb: Add line for -gnatyN switch
36686 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36688 2004-02-09 Albert Lee <lee@gnat.com>
36690 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36692 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36694 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36697 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36698 is nested in an instance that is not frozen yet, to avoid
36699 order-of-elaboration problems in gigi.
36701 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36702 body the attribute is legal.
36704 2004-02-09 Robert Dewar <dewar@gnat.com>
36706 * s-rident.ads: Minor comment correction
36708 * targparm.adb: Remove dependence on uintp completely. There was
36709 always a bug in Make in that it called Targparm before initializing
36710 the Uint package. The old code appeared to get away with this, but
36711 the new code did not! This caused an assertion error in gnatmake.
36713 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36714 are indeed fully supported.
36716 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36718 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36720 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36722 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36723 with targetm.calls.promote_prototypes.
36725 2004-02-04 Robert Dewar <dewar@gnat.com>
36727 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36728 ali.ads, gprcmd.adb: Minor reformatting
36730 * bindgen.adb: Output restrictions string for new style restrictions
36733 * impunit.adb: Add s-rident.ads (System.Rident) and
36734 s-restri (System.Restrictions)
36736 * lib-writ.adb: Fix bug in writing restrictions string (last few
36739 * s-restri.ads, s-restri.adb: Change name Restrictions to
36740 Run_Time_Restrictions to avoid conflict with package name.
36741 Add circuit to read and acquire run time restrictions.
36743 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36745 * restrict.ads, restrict.adb: Use the new restriction
36746 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36748 * sem_prag.adb: No_Task_Attributes is a synonym of
36749 No_Task_Attributes_Package.
36751 * snames.ads, snames.adb: New entry for proper handling of
36752 No_Task_Attributes.
36754 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36755 (AI-00249) that supersedes the GNAT specific restriction
36756 No_Task_Attributes.
36758 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36761 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36762 body, an identifier may be wrapped in an unchecked conversion.
36764 2004-02-04 Vincent Celier <celier@gnat.com>
36766 * lib-writ.ads: Comment update for the W lines
36768 * bld.adb: (Expression): An empty string list is static
36770 * fname-uf.adb: Minor comment update
36772 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36774 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36775 restrictions on the target.
36777 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36779 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36782 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36784 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36786 2004-02-02 Vincent Celier <celier@gnat.com>
36788 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36789 comment before the usage.
36790 Gprcmd: Fail when command is not recognized.
36791 (Usage): Document command "prefix"
36793 * g-md5.adb (Digest): Process last block.
36794 (Update): Do not process last block. Store remaining characters and
36797 * g-md5.ads (Update): Document that several call to update are
36798 equivalent to one call with the concatenated string.
36799 (Context): Add fields to allow new Update behaviour.
36801 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36802 defaulted to False.
36803 When May_Fail is True and no existing file can be found, return No_File.
36805 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36808 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36809 spec file name instead on the W line.
36811 2004-02-02 Robert Dewar <dewar@gnat.com>
36813 * ali.adb: Read and acquire info from new format restrictions lines
36815 * bcheck.adb: Add circuits for checking restrictions with parameters
36817 * bindgen.adb: Output dummy restrictions data
36818 To be changed later
36820 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36821 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36822 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36823 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36824 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36826 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36827 the warning message on access to possibly uninitialized variable S)
36828 Minor changes for new restrictions handling.
36830 * gnatbind.adb: Minor reformatting
36831 Minor changes for new restrictions handling
36832 Move circuit for -r processing here from bcheck (cleaner)
36834 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36836 * lib-writ.adb: Output new format restrictions lines
36838 * lib-writ.ads: Document new R format lines for new restrictions
36841 * s-restri.ads/adb: New files
36843 * Makefile.rtl: Add entry for s-restri.ads/adb
36845 * par-ch3.adb: Fix bad error messages starting with upper case letter
36848 * restrict.adb: Major rewrite throughout for new restrictions handling
36849 Major point is to handle restrictions with parameters
36851 * restrict.ads: Major changes in interface to handle restrictions with
36852 parameters. Also generally simplifies setting of restrictions.
36854 * snames.ads/adb: New entry for proper handling of No_Requeue
36856 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36857 restriction counting.
36858 Other minor changes for new restrictions handling
36860 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36861 Restriction_Warnings now allows full parameter notation
36862 Major rewrite of Restrictions for new restrictions handling
36864 2004-02-02 Javier Miranda <miranda@gnat.com>
36866 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36867 syntax rule for object renaming declarations.
36868 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36869 component definitions.
36871 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36873 (Array_Type_Declaration): Give support to access components. In addition
36874 it was also modified to reflect the name of the object in anonymous
36875 array types. The old code did not take into account that it is possible
36876 to have an unconstrained anonymous array with an initial value.
36877 (Check_Or_Process_Discriminants): Allow access discriminant in
36879 (Process_Discriminants): Allow access discriminant in non-limited types
36880 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36881 node. Change Ada0Y to Ada 0Y in comments
36883 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36884 equality operators.
36885 Change Ada0Y to Ada 0Y in comments
36887 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36888 renamings Change Ada0Y to Ada 0Y in comments
36890 * sem_type.adb (Find_Unique_Type): Give support to the equality
36891 operators for universal access types
36892 Change Ada0Y to Ada 0Y in comments
36894 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36896 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36898 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36899 Change Ada0Y to Ada 0Y in comments
36901 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36902 component definition and object renaming nodes
36903 Change Ada0Y to Ada 0Y in comments
36905 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36907 * restrict.adb: Use the new restriction identifier
36908 No_Requeue_Statements instead of the old No_Requeue for defining the
36909 restricted profile.
36911 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36912 No_Requeue_Statements.
36914 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36915 that supersedes the GNAT specific restriction No_Requeue. The later is
36916 kept for backward compatibility.
36918 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36920 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36921 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36922 pragma and fix incorrect ones.
36924 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36925 warning if the pragma is redundant.
36927 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36929 * 5staprop.adb: Add missing 'constant' keywords.
36931 * Makefile.in: use consistent value for SYMLIB on
36932 platforms where libaddr2line is supported.
36934 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36936 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36939 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36941 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36942 handlers in the environment thread. This allows proper propagation of
36943 an exception on stack overflows in this thread even when the builtin
36944 ABI stack-checking scheme is used without support for a stack reserve
36947 * utils.c (create_field_decl): Augment the head comment about bitfield
36948 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36949 here, because the former is not accurate enough at this point.
36950 Let finish_record_type decide instead.
36951 Don't make a bitfield if the field is to be addressable.
36952 Always set a size for the field if the record is packed, to ensure the
36953 checks for bitfield creation are triggered.
36954 (finish_record_type): During last pass over the fields, clear
36955 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36956 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36957 from DECL_BIT_FIELD.
36959 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36961 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36962 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36963 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36965 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36967 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36969 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36970 (ZCX_By_Default): Likewise.
36971 (Front_End_ZCX_Support): Likewise.
36973 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36974 (Initialize_Lock): Mark Level unreferenced.
36975 (Sleep): Mark Reason unreferenced.
36976 (Timed_Sleep): Likewise.
36977 (Wakeup): Likewise.
36978 (Exit_Task): Use Result.
36979 (Check_No_Locks): Mark Self_ID unreferenced.
36981 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36982 (Bound_Thread_Attributes): Make Sproc constant.
36983 (New_Bound_Thread_Attributes): Likewise.
36985 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36987 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36988 one-dimensional array an slice assignments, when component type is
36991 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36992 component type is controlled, and control_actions are in effect, use
36993 TSS procedure rather than generating inline code.
36995 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36996 arrays with controlled components.
36998 2004-01-26 Vincent Celier <celier@gnat.com>
37000 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
37001 command line for the non VMS case.
37003 * gnatlink.adb (Process_Binder_File): When building object file, if
37004 GNU linker is used, put all object paths between quotes, to prevent ld
37005 error when there are unusual characters (such as '!') in the paths.
37007 * Makefile.generic: When there are sources in Ada and the main is in
37008 C/C++, invoke gnatmake with -B, instead of -z.
37010 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
37011 from VMS_Conversion.
37012 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
37013 specification of argument file on the command line.
37015 2004-01-26 Bernard Banner <banner@gnat.com>
37017 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
37019 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37021 * snames.adb: Update copyright notice.
37022 Add info on slice assignment for controlled arrays.
37024 2004-01-23 Robert Dewar <dewar@gnat.com>
37026 * exp_aggr.adb: Minor reformatting
37028 * exp_ch9.adb: Minor code clean up
37030 Fix bad character in comment
37033 * targparm.adb (Get_Target_Parameters): Give clean abort error on
37034 unexpected end of file, along with more detailed message.
37036 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37038 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
37041 * decl.c (copy_alias_set): New function.
37042 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
37044 2004-01-23 Doug Rupp <rupp@gnat.com>
37046 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
37047 lib$${file} in case subsequent character is not a separator.
37049 2004-01-23 Vincent Celier <celier@gnat.com>
37051 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37052 when the GCC version is at least 3.
37054 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37055 Remove all "Opt.", to prepare for opt split
37057 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37058 Extends_All. Set to True when the project parsed is an extending all
37059 project. Fails for importing an extending all project only when the
37060 imported project is an extending all project.
37061 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37062 depending on the value of Extends_All returned.
37064 * prj-proc.adb (Process): Check that no project shares its object
37065 directory with a project that extends it, directly or indirectly,
37066 including a virtual project.
37067 Check that no project extended by another project shares its object
37068 directory with another also extended project.
37070 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37071 Kind = N_With_Clause
37073 * prj-tree.ads: Minor reformatting
37074 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37076 2004-01-23 Ed Schonberg <schonberg@gnat.com>
37078 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37079 applies to a type with an incomplete view, use full view in Name of
37080 clause, for consistency with uses of Get_Attribute_Definition_Clause.
37082 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
37084 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37085 SCHED_RR, since other values are not supported by this policy.
37086 (Initialize): Move initialization of mutex attribute to package
37087 elaboration, to prevent early access to this variable.
37089 * Makefile.in: Remove mention of Makefile.adalib, unused.
37091 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37092 1ssecsta.ads: Removed, unused.
37094 2004-01-21 Javier Miranda <miranda@gnat.com>
37096 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37097 entity if already built in the current scope.
37099 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37100 reminder in internal scopes. Required for nested limited aggregates.
37102 2004-01-21 Doug Rupp <rupp@gnat.com>
37104 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37105 VMS. Replace all occurences of libgnat- and libgnarl- with
37106 libgnat$(hyphen) and libgnarl$(hyphen).
37107 Fixed shared library build problem on VMS.
37109 2004-01-21 Robert Dewar <dewar@gnat.com>
37111 * mlib-prj.adb: Minor reformatting
37113 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
37115 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37116 'constant' keywords for declaration of pointers that are not modified.
37118 * exp_pakd.adb: Fix English in comment.
37120 2004-01-21 Ed Schonberg <schonberg@gnat.com>
37123 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37124 copy all attributes of the parent, including the foreign language
37127 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
37130 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37131 for 'delay until' statement.
37133 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
37135 * Make-lang.in: Replace $(docdir) with doc.
37136 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37137 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37138 to use consistent MAKEINFO rule.
37139 (ada.man, ada.srcman): Dummy entry.
37140 (ADA_INFOFILES): Define.
37141 (ada.info, ada.srcinfo): New rules.
37143 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
37145 * utils.c: Update copyright notice, missed in previous change.
37147 2004-01-19 Vincent Celier <celier@gnat.com>
37149 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37150 args if Bind is True. Set First_ALI, if not already done.
37151 (Build_Library): For Stand Alone Libraries, extract from one ALI file
37152 an eventual --RTS switch, for gnatbind, and all backend switches +
37153 --RTS, for linking.
37155 2004-01-19 Robert Dewar <dewar@gnat.com>
37157 * sem_attr.adb, memtrack.adb: Minor reformatting
37159 2004-01-19 Ed Schonberg <schonberg@gnat.com>
37161 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37162 that rename enumeration literals. This is properly done in sem_eval.
37164 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37165 to functions that rename enumeration literals.
37167 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37168 functions that rename enumeration literals.
37170 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
37172 * Make-lang.in (utils.o): Depend on target.h.
37173 * utils.c: Include target.h.
37174 (process_attributes): Use targetm.have_named_sections instead
37175 of ASM_OUTPUT_SECTION_NAME.
37177 2004-01-16 Andreas Jaeger <aj@suse.de>
37179 * Makefile.in: Add $(DESTDIR).
37181 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
37183 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37184 also when not defining if a Size clause applies. That information is
37187 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37189 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37190 symbolic links for the shared gnat run time when needed.
37192 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
37194 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37195 for writing, and terminate with an error message if not.
37197 2004-01-15 Ed Schonberg <schonberg@gnat.com>
37199 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37200 warning on an access to subprogram in an instance, when the target
37201 type is declared in the same generic unit.
37202 (Eval_Attribute): If 'access is known to fail accessibility check,
37203 rewrite as a raise statement.
37205 2004-01-15 GNAT Script <nobody@gnat.com>
37207 * Make-lang.in: Makefile automatically updated
37209 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
37211 * Make-lang.in (ada.srcextra): Dummy entry.
37213 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
37215 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37217 2004-01-13 Ed Schonberg <schonberg@gnat.com>
37219 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37220 components that are initialized with aggregates.
37222 2004-01-13 Vincent Celier <celier@gnat.com>
37224 * gnatlink.adb (Process_Binder_File): To find directory of shared
37225 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37226 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37228 * make.adb (Gnatmake): If GCC version is at least 3, link with
37229 -shared-libgcc, when there is at least one shared library project.
37231 * opt.ads (GCC_Version): New integer constant.
37233 * adaint.c (get_gcc_version): New function.
37235 2004-01-13 Robert Dewar <dewar@gnat.com>
37237 * sem_dist.adb, sem_res.adb, sem_util.adb,
37238 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37239 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37241 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37243 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37244 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37247 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37249 * misc.c: Remove trailing spaces.
37250 Update copyright notice missed in previous change.
37253 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37256 * Makefile.generic: Update copyright.
37257 Add license notice.
37259 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37260 of prefix/share/make.
37262 * Makefile.prolog: Update copyright.
37263 Add license notice.
37265 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37267 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37268 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37269 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37272 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37275 2004-01-12 Javier Miranda <miranda@gnat.com>
37277 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37278 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37279 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37280 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37281 Component_Definition node.
37283 2004-01-12 Ed Falis <falis@gnat.com>
37285 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37287 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37289 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37291 2004-01-12 Bernard Banner <banner@gnat.com>
37293 * Makefile.in: map 86numaux to a-numaux for x86_64
37295 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37297 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37298 generated to rename a generic actual, go to the actual itself, the
37299 subtype is not a user-visible entity.
37301 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37302 part is a private subtype, reset the visibility of its full view, if
37303 any, to be consistent.
37306 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37307 to use a generic package G as a formal package for another generic
37310 2004-01-12 Robert Dewar <dewar@gnat.com>
37312 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37314 * usage.adb: Remove mention of obsolete -gnatwb switch
37315 Noticed during code reading
37317 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37319 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37321 2004-01-12 GNAT Script <nobody@gnat.com>
37323 * Make-lang.in: Makefile automatically updated
37325 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37327 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37329 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37331 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37333 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37335 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37336 Update comment and copyright date.
37337 * stamp-xgnatug: Delete.
37339 2004-01-05 Robert Dewar <dewar@gnat.com>
37341 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37342 be modified by the binder generated main program if the -D switch is
37345 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37346 imported functions (since now we expect this to be done for imported
37349 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37350 Minor reformatting throughout
37352 * 5zinit.adb: Minor reformatting
37353 Add 2004 to copyright date
37354 Minor changes to avoid -gnatwa warnings
37355 Correct some instances of using OR instead of OR ELSE (noted while
37356 doing reformatting)
37358 * sprint.adb: Minor updates to avoid -gnatwa warnings
37360 * s-secsta.ads, s-secsta.adb:
37361 (SS_Get_Max): New function to obtain high water mark for ss stack
37362 Default_Secondary_Stack is not a constant since it may be modified by
37363 the binder generated main program if the -D switch is used.
37365 * switch-b.adb: New -Dnnn switch for binder
37368 Make -gnatg imply all warnings currently in -gnatwa
37370 * vms_conv.adb: Minor reformatting
37371 Add 2004 to copyright notice
37372 Add 2004 to printed copyright notice
37374 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37375 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37376 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37377 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37378 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37379 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37380 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37381 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37382 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37383 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37384 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37385 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37386 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37387 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37388 checks.adb, clean.adb, cstand.adb, einfo.ads,
37389 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37390 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37391 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37392 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37393 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37394 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37395 Minor reformatting and code clean ups.
37396 Minor changes to prevent -gnatwa warnings
37398 * ali.adb: Minor reformatting and cleanup of code
37399 Acquire new SS indication of secondary stack use from ali files
37401 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37402 (since now we expect this to be done for imported functions)
37404 * bindgen.adb: Generate call to modify default secondary stack size if
37407 * bindusg.adb: Add line for new -D switch
37409 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37410 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37411 Add circuitry for both records and arrays to avoid gigi
37412 processing if the type involved has non-bit-aligned components
37414 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37415 N_String_Literal node always references an E_String_Literal_Subtype
37416 entity. This may not be true in the future.
37417 (Possible_Bit_Aligned_Component): Move processing of
37418 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37420 * exp_ch6.adb (Expand_Thread_Body): Pick up
37421 Default_Secondary_Stack_Size as variable so that we get value modified
37422 by possible -Dnnn binder parameter.
37424 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37425 (Type_May_Have_Bit_Aligned_Components): New function.
37427 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37428 (Type_May_Have_Bit_Aligned_Components): New function.
37430 * fe.h: (Set_Identifier_Casing): Fix prototype.
37431 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37432 Minor reformatting.
37434 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37435 importing constant atomic/volatile objects.
37436 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37437 unless explicit Pure_Function pragma given, to avoid insidious bug of
37438 call to non-pure imported function getting eliminated.
37440 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37441 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37442 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37443 Add 2004 to printed copyright notice
37445 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37448 * Makefile.rtl: Add entry for g-sestin.o
37449 g-sestin.ads: New file.
37451 * mdll.adb: Minor changes to avoid -gnatwa warnings
37453 * mlib-tgt.adb: Minor reformatting
37455 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37456 New switch Sec_Stack_Used (GNAT, GNATBIND)
37457 Make Default_Secondary_Stack_Size a variable instead of a constant,
37458 so that it can be modified by the new -Dnnn bind switch.
37460 * rtsfind.adb (Load_Fail): Give full error message in configurable
37461 run-time mode if all_errors mode is set. This was not done in the case
37462 of a file not found, which was an oversight.
37463 Note if secondary stack unit is used by compiler.
37465 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37466 ineffective elaborate all pragmas on non-visible packages (this
37467 happened when a renamed subprogram was called). Now the elaborate all
37468 always goes on the package containing the renaming rather than the one
37469 containing the renamed subprogram.
37471 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37472 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37474 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37475 has an Etype that references an E_String_Literal.
37476 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37477 always references an E_String_Literal_Subtype entity. This may not
37478 be true in the future.
37480 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37483 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37486 2004-01-05 Ed Falis <falis@gnat.com>
37488 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37491 2004-01-05 Vincent Celier <celier@gnat.com>
37493 * bld.adb: Minor comment updates
37494 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37497 * make.adb (Gnatmake): Special process for files to compile/check when
37498 -B is specified. Fail when there are only foreign mains in attribute
37499 Main of the project file and -B is not specified. Do not skip bind/link
37500 steps when -B is specified.
37502 * makeusg.adb: Document new switch -B
37504 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37506 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37508 * vms_data.ads: Add new GNAT PRETTY qualifier
37509 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37511 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37513 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37516 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37517 Set_Identifier_Casing.
37519 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37520 has size that overflows.
37522 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37524 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37525 -gnatwa warning on static condition.
37527 2004-01-05 Doug Rupp <rupp@gnat.com>
37529 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37531 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37533 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37534 all attributes, including read-only attribute.
37536 2004-01-05 Pascal Obry <obry@gnat.com>
37538 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37539 library naming scheme.
37541 * mlib-prj.adb (Build_Library): Generate different names for the static
37542 or dynamic version of the GNAT runtime. This is needed to support the
37543 new shared library naming scheme.
37544 (Process_Binder_File): Add detection of shared library in binder file
37545 based on the new naming scheme.
37547 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37548 scheme for the shared runtime libraries.
37551 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37553 (install-gnatlib): Do not create symlinks for shared libraries.
37554 (gnatlib-shared-default): Idem.
37555 (gnatlib-shared-dual-win32): New target. Not used for now as the
37556 auto-import feature does not support arrays/records.
37557 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37558 (gnatlib-shared-vms): Fix shared runtime libraries names.
37560 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37561 dependent runtime shared library name.
37563 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37565 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37568 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37570 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37571 protected objects when allocator has a subtype indication, not a
37572 qualified expression. Note that qualified expressions may have to be
37573 checked when limited aggregates are implemented.
37575 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37576 pure, emit warning.
37577 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37578 subprogram is imported, remove warning.
37580 2004-01-05 Geert Bosch <bosch@gnat.com>
37582 * s-poosiz.adb: Update copyright notice.
37583 (Allocate): Use Task_Lock to protect against concurrent access.
37584 (Deallocate): Likewise.
37586 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37588 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37591 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37593 * gnat_ug.texi: Force a CVS commit by updating copyright.
37594 * gnat_ug_vxw.texi: Regenerate.
37595 * gnat_ug_wnt.texi: Regenerate.
37596 * gnat_ug_vms.texi: Regenerate.
37597 * gnat_ug_unx.texi: Regenerate.
37599 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37601 * trans.c: Remove uses of "register" specifier in
37602 declarations of local variables.
37604 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37606 * stamp-xgnatug: New stamp file.
37607 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37608 (ada/doctools/xgnatug): Add $(build_exeext).
37609 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37610 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37612 2003-12-17 Ed Falis <falis@gnat.com>
37614 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37617 * a-exextr.adb: Add context clause for
37618 Ada.Exceptions.Last_Chance_Handler.
37620 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37622 * cstand.adb (Create_Standard): Change the way how the declaration of
37623 the Duration type is created (making it the same way as it is for all
37624 the other standard types).
37626 2003-12-17 Robert Dewar <dewar@gnat.com>
37628 * s-crtl.ads: Fix header format
37629 Change Pure to Preelaborate
37631 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37633 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37634 the expression type only if it is declared in the current unit.
37636 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37637 are universal and already analyzed, as can occur in constrained
37638 subcomponents that depend on discriminants, when one constraint is a
37641 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37642 type Any_Fixed is legal as the argument of a conversion, if only one
37643 fixed-point type is in context.
37645 2003-12-17 GNAT Script <nobody@gnat.com>
37647 * Make-lang.in: Makefile automatically updated
37649 2003-12-15 Robert Dewar <dewar@gnat.com>
37651 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37654 2003-12-15 Vincent Celier <celier@gnat.com>
37656 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37657 (Gnatchop): Do not set failure status when reporting the number of
37660 2003-12-15 Doug Rupp <rupp@gnat.com>
37662 * s-ctrl.ads: New file.
37664 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37666 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37667 (GNATBIND_OBJS): Add ada/s-crtl.o.
37669 * Makefile.in [VMS]: Clean up ifeq rules.
37671 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37672 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37673 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37674 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37675 s-tasdeb.adb: Update copyright.
37676 Import System.CRTL.
37677 Make minor modifications to use System.CRTL declared functions instead
37678 of importing locally.
37680 2003-12-15 GNAT Script <nobody@gnat.com>
37682 * Make-lang.in: Makefile automatically updated
37684 2003-12-11 Ed Falis <falis@gnat.com>
37686 * 5zinit.adb: Clean up.
37688 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37689 to __gnat_map_signal, imported from init.c to support
37690 signal -> exception mappings that depend on the vxWorks version.
37693 Created and exported __gnat_map_signal to support signal -> exception
37694 mapping that is dependent on the VxWorks version.
37695 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37697 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37699 * 5wosinte.ads: Link with -mthreads switch.
37701 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37703 * init.c (__gnat_install_handler [NetBSD]): Set
37704 __gnat_handler_installed, as done on all other platforms.
37705 Remove duplicated code.
37707 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37709 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37711 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37713 * sinfo.ads: Fix inconsistent example code in comment.
37715 2003-12-11 Robert Dewar <dewar@gnat.com>
37717 * a-tiinau.adb: Add a couple of comments
37719 * sem_ch3.adb: Minor reformatting
37722 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37723 Minor reformatting throughout
37725 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37727 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37728 bounds of a loop, create a separate block in order to generate proper
37729 cleanup actions to prevent memory leaks.
37731 * sem_res.adb (Resolve_Call): After a call to
37732 Establish_Transient_Scope, the call may be rewritten and relocated, in
37733 which case no further processing is needed.
37735 * sem_util.adb: (Wrong_Type): Refine previous fix.
37736 Fixes ACATS regressions.
37739 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37742 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37744 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37745 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37748 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37751 2003-12-08 Robert Dewar <dewar@gnat.com>
37753 * 7sintman.adb: Minor reformatting
37755 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37756 standard linker options to get standard libraries linked. We now plan
37757 to provide dummy versions of these libraries to match the appropriate
37758 configurable run-time (e.g. if a library is not needed at all, provide
37759 a dummy empty library).
37761 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37762 options (-L parameters and standard libraries). What we plan to do is
37763 to provide dummy libraries where the libraries are not required.
37765 * gnatbind.adb: Minor comment improvement
37767 2003-12-08 Javier Miranda <miranda@gnat.com>
37769 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37770 aggregate in the parent. Otherwise constants with limited aggregates
37771 are not supported. Add new formal to pass the component type (Ctype).
37772 It is required to call the corresponding IP subprogram in case of
37773 default initialized components.
37774 (Gen_Assign): In case of default-initialized component, generate a
37775 call to the IP subprogram associated with the component.
37776 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37777 of aggregate with default initialized components.
37778 (Has_Default_Init_Comps): Improve implementation to recursively check
37779 all the present expressions.
37781 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37782 to indicate that the initialization call corresponds to a
37783 default-initialized component of an aggregate.
37784 In case of default initialized aggregate with tasks this parameter is
37785 used to generate a null string (this is just a workaround that must be
37786 improved later). In case of discriminants, this parameter is used to
37787 generate a selected component node that gives access to the discriminant
37790 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37791 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37792 allocated aggregates with default-initialized components.
37794 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37795 the box notation is used in positional aggregates.
37797 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37799 * lib.ads: Fix typo in comment
37801 2003-12-08 Vincent Celier <celier@gnat.com>
37803 * prj.adb (Project_Empty): New component Unkept_Comments
37804 (Scan): Remove procedure; moved to Prj.Err.
37806 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37807 (Scan): Remove procedure; moved to Prj.Err.
37809 * prj-dect.adb: Manage comments for the different declarations.
37811 * prj-part.adb (With_Record): New component Node
37812 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37813 Set the scanner to return ends of line and comments as tokens, if
37814 Store_Comments is True.
37815 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37816 comments are associated with these nodes. Store the node IDs in the
37818 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37820 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37821 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37822 current project. Call Tree.Restore afterwards. Set the various nodes
37823 for comment storage (Next_End, End_Of_Line, Previous_Line,
37826 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37827 defaulted to False.
37829 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37830 to False. When Truncated is True, truncate the string, never go to the
37832 (Write_End_Of_Line_Comment): New procedure
37833 (Print): Process comments for nodes N_With_Clause,
37834 N_Package_Declaration, N_String_Type_Declaration,
37835 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37836 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37837 Process nodes N_Comment.
37839 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37840 without comments and there are some comments, set the flag
37841 Unkept_Comments to True.
37842 (Scan): If there are comments, set the flag Unkept_Comments to True and
37843 clear the comments.
37844 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37845 (Next_End_Nodes: New table
37846 (Comment_Zones_Of): New function
37847 (Scan): New procedure; moved from Prj. Accumulate comments in the
37848 Comments table and set end of line comments, comments after, after end
37850 (Add_Comments): New procedure
37851 (Save, Restore, Seset_State): New procedures
37852 (There_Are_Unkept_Comments): New function
37853 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37854 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37856 (First_Comment_After, First_Comment_After_End): New functions
37857 (First_Comment_Before, First_Comment_Before_End): New functions
37858 (Next_Comment): New function
37859 (End_Of_Line_Comment, Follows_Empty_Line,
37860 Is_Followed_By_Empty_Line): New functions
37861 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37862 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37863 (Set_Next_Comment): New procedure
37864 (Default_Project_Node): Associate comment before if the node can store
37867 * scans.ads (Token_Type): New enumeration value Tok_Comment
37868 (Comment_Id): New global variable
37870 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37871 defaulted to False.
37872 (Scan): Store position of start of comment. If comments are tokens, set
37873 Comment_Id and set Token to Tok_Comment when scanning a comment.
37874 (Set_Comment_As_Token): New procedure
37876 * sinput-p.adb: Update Copyright notice
37877 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37878 that no longer exists.
37880 2003-12-08 Javier Miranda <miranda@gnat.com>
37882 * sem_aggr.adb: Add dependence on Exp_Tss package
37883 Correct typo in comment
37884 (Resolve_Aggregate): In case of array aggregates set the estimated
37885 type of the aggregate before calling resolve. This is needed to know
37886 the name of the corresponding IP in case of limited array aggregates.
37887 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37888 in case of default initialized array components.
37890 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37891 types. Required to give support to limited aggregates in generic
37894 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37896 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37897 inlined body functions like an instantiation.
37898 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37899 until bounds are analyzed, to diagnose premature use of type.
37901 * sem_util.adb (Wrong_Type): Improve error message when the type of
37902 the expression is used prematurely.
37904 2003-12-08 GNAT Script <nobody@gnat.com>
37906 * Make-lang.in: Makefile automatically updated
37908 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37910 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37911 they are automatically generated by Make-lang.in and cause nothing but
37912 maintenance troubles.
37914 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37916 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37917 version of this unit).
37919 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37921 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37922 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37923 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37924 the body of System.Interrupt_Management common to several targets.
37925 Update copyright notice when appropriate.
37927 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37930 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37931 to ensure that the kernel fills in the interrupted context structure
37932 before calling a signal handler, which is necessary to be able to
37933 unwind past it. Update the copyright notice.
37935 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37937 * a-elchha.ads: New file.
37939 * a-elchha.adb: New default last chance handler. Contents taken from
37940 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37942 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37943 is moved to a-elchha.adb to provide a target-independent default last
37946 * Makefile.rtl: Add a-elchha.o
37948 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37950 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37952 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37953 declared in an instance, do not inline the call if the instance is not
37954 frozen yet, to prevent order of elaboration problems.
37956 * sem_prag.adb: Add comments for previous fix.
37958 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37960 * g-table.adb: Use the right variable in Set_Item.
37961 Update copyright notice.
37963 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37965 * Makefile.in: Remove unused rules.
37967 2003-12-05 Vincent Celier <celier@gnat.com>
37969 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37970 -nostdlib. Not needed here after all.
37972 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37975 * adaint.h, adaint.c, g-os_lib.ads:
37976 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37977 on some platforms (including FreeBSD), it is a 64 bit value.
37978 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37980 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37982 * gnatvsn.ads (Library_Version): Now contain only the relevant
37984 (Verbose_Library_Version): New constant.
37986 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37987 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37988 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37990 * gnatlbr.adb: Clean up: replace Library_Version by
37991 Verbose_Library_Version.
37993 * make.adb, lib-writ.adb, exp_attr.adb:
37994 Clean up: replace Library_Version by Verbose_Library_Version.
37996 * 5lintman.adb: Removed.
37999 Update and simplify computation of LIBRARY_VERSION.
38000 Fix computation of GSMATCH_VERSION.
38001 5lintman.adb is no longer used: replaced by 7sintman.adb.
38003 2003-12-03 Robert Dewar <dewar@gnat.com>
38006 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
38007 name. Modified to consider small non-bit-packed arrays as troublesome
38008 and in need of component-by-component assigment expansion.
38010 2003-12-03 Vincent Celier <celier@gnat.com>
38012 * lang-specs.h: Process nostdlib as nostdinc
38014 * back_end.adb: Update Copyright notice
38015 (Scan_Compiler_Arguments): Process -nostdlib directly.
38017 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
38020 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
38021 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
38022 included in HIE_NONE_TARGET_PAIRS.
38024 2003-12-03 Ed Schonberg <schonberg@gnat.com>
38027 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
38028 is legal in an instance, because legality is cheched in the template.
38031 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
38032 appplied to an unchecked conversion of a formal parameter.
38035 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
38038 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
38040 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
38041 routines. The second one is new functionality to deal with backtracing
38042 through signal handlers.
38043 (unwind): Split into the two separate subroutines above.
38044 Update the documentation, and deal properly with sizeof (REG) different
38045 from sizeof (void*).
38047 2003-12-01 Nicolas Setton <setton@act-europe.fr>
38049 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38050 so that the debugger can reliably access the value of the parameter,
38051 and therefore is able to display the exception name when an exception
38052 breakpoint is reached.
38054 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
38056 * fmap.adb: Fix typo in warning message.
38058 * g-socket.ads, g-socket.adb: Make Free a visible instance of
38059 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38061 2003-12-01 Vincent Celier <celier@gnat.com>
38063 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38065 (Build_Library): Get the switches only if Default_Switches is declared
38068 2003-12-01 Ed Schonberg <schonberg@gnat.com>
38070 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38071 actuals that are indexed components, reanalyze actual to ensure that
38072 packed array references are properly expanded.
38074 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38075 attempted assignment to a discriminant.
38077 2003-12-01 Robert Dewar <dewar@gnat.com>
38079 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38082 * switch-c.adb: Minor reformatting of comments
38084 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38086 * Makefile.in: Clean ups.
38088 2003-12-01 GNAT Script <nobody@gnat.com>
38090 * Make-lang.in: Makefile automatically updated
38092 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38094 * 5wsystem.ads: Disable zero cost exception, not ready yet.
38096 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
38098 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38099 to force serialization.
38101 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
38103 * g-socket.ads, g-socket.adb:
38104 Clarify documentation of function Stream. Introduce a Free procedure
38105 to release the returned Stream once it becomes unused.
38107 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38109 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
38111 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38112 since NT 4 cannot handle timeout values that are too large,
38113 e.g. DWORD'Last - 1.
38115 2003-11-26 Ed Schonberg <schonberg@gnat.com>
38118 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38119 in procedure calls and whose expansion must be deferred.
38121 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38125 (Build_Derived_Array_Type): Create operator for unconstrained type
38126 if ancestor is unconstrained.
38128 2003-11-26 Vincent Celier <celier@gnat.com>
38130 * make.adb (Project_Object_Directory): New global variable
38131 (Change_To_Object_Directory): New procedure
38132 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38133 of Change_Dir directly. Do not change working directory to object
38134 directory of main project after each compilation.
38135 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38137 Change to object directory of main project before binding step.
38138 (Initialize): Initialize Project_Object_Directory to No_Project
38141 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38142 binding a Stand-Alone Library.
38144 * output.adb: Update Copyright notice
38145 (Write_Char): Output buffer when full
38147 2003-11-26 Robert Dewar <dewar@gnat.com>
38149 * sem_ch13.adb: (Check_Size): Reset size if size is too small
38152 (Check_Size): Fix documentation to include bit-packed array case
38154 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38156 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38158 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38160 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
38163 * utils.c (init_gigi_decls): Change name of built-in setjmp to
38164 __builtin_setjmp, since this is apparently needed by recent
38167 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38169 * adadecode.c: Only include ctype.h if not IN_GCC.
38170 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38172 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
38175 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38176 signals and interrupts.
38178 * 5zintman.ads: New File.
38180 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38181 add exception signals to the set of unmasked signals.
38184 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38185 between signals and interrupts.
38186 Add to Unblocked_Signal_Mask the set of signals that are in
38190 Adding a check to see whether the Interrupt_ID we want to unmask is in
38191 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38192 reason is that the index type of the Keep_Unmasked array is not always
38193 Interrupt_ID; it may be a subtype of Interrupt_ID.
38195 2003-11-24 Gary Dismukes <dismukes@gnat.com>
38198 (Remove_Side_Effects): Condition constantness of object created for a
38199 an unchecked type conversion on the constantness of the expression
38200 to ensure the correct value for 'Constrained when passing components
38201 of view-converted class-wide objects.
38203 2003-11-24 Robert Dewar <dewar@gnat.com>
38205 * par-load.adb (Load): Improve handling of misspelled and missing units
38206 Removes several cases of compilation abandoned messages
38208 * lib.adb: (Remove_Unit): New procedure
38210 * lib.ads: (Remove_Unit): New procedure
38212 * lib-load.adb: Minor reformatting
38214 2003-11-24 Vincent Celier <celier@gnat.com>
38217 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38218 (Marking_Label): Label to mark processed source files. Incremented for
38220 (Gnatmake): Increase Marking_Labet for each executable
38221 (Is_Marked): Compare against marking label
38222 (Mark): Mark with marking label
38224 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
38227 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38230 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38231 (rts-cert): build a single relocatable object for the run-time lib.
38234 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38237 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38240 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38242 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38243 can not use it as before (that is, as a variable) when dumping it into
38244 the tree file. Add a local variable to store the result of this
38245 function and to be used as the string to be written into the tree.
38247 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38250 * sinput.adb (Source_First, Source_Last): In case of
38251 Internal_Source_File, replace returning attributes of
38252 Internal_Source_Ptr (which is wrong) with returning attributes of
38255 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38258 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38259 used for implicit concatenation operators.
38263 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38264 task bodies that are in the scope of a Suppress pragma.
38265 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38267 * sinfo.ads, sinfo.adb:
38268 New flag No_Elaboration_Check on function/procedure calls, to properly
38269 suppress checks on calls in task bodies that are within a local suppress
38273 (Expand_Concatenate_Other): Use the proper integer type for the
38274 expression for the upper bound, to avoid universal_integer computations
38277 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38279 * .cvsignore: Delete.
38281 2003-11-21 Andreas Schwab <schwab@suse.de>
38283 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38285 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38287 * 5wsystem.ads: Enable zero cost exception.
38289 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38291 * 5ztiitho.adb: Remove an unreferenced variable.
38293 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38295 * adaint.c: For FreeBSD, use mkstemp.
38297 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38299 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38301 2003-11-21 Robert Dewar <dewar@gnat.com>
38303 * bld.adb: Remove useless USE of gnatvsn
38305 * gnatchop.adb: Minor reformatting
38306 Clean up version handling to be more consistent
38308 * gnatxref.adb: Minor reformatting
38310 * gprcmd.adb: Minor reformatting
38311 Fix output of copyright to be more consistent with other tools
38313 2003-11-21 Vincent Celier <celier@gnat.com>
38315 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38317 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38319 * atree.adb (Initialize): Add initializations for global variables
38320 used in New_Copy_Tree.
38322 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38323 Internal_Source_File as the actual).
38324 Put the set of statements creating Any_Character before the set of
38325 statements creating Any_Array to have Any_Character fully initialized
38326 when it is used in creating Any_Array.
38328 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38329 not call Scan in case if the actual is Internal_Source_File
38330 Add 2003 to copyright note.
38332 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38333 processing Internal_Source_File.
38335 * types.ads: Add the constant Internal_Source_File representing the
38336 source buffer for artificial source-code-like strings created within
38337 the compiler (the definition of Source_File_Index is changed).
38339 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38341 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38342 56system.ads: New file, FreeBSD version.
38344 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38346 * Make-lang.in (ada.extraclean): Delete.
38348 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38350 * gnatmem.adb: Clean up verbose output.
38352 * gprcmd.adb: Change copyright to FSF.
38354 2003-11-19 Vincent Celier <celier@gnat.com>
38356 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38357 and Version (ignored).
38359 * symbols.ads: (Policy): New type
38360 (Initialize): New parameter Reference, Symbol_Policy and
38362 Remove parameter Force.
38363 Minor reformatting.
38365 * snames.ads, snames.adbadb: New standard names
38366 Library_Reference_Symbol_File and Library_Symbol_Policy
38369 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38373 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38375 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38377 * prj.adb: (Project_Empty): New component Symbol_Data
38379 * prj.ads: (Policy, Symbol_Record): New types
38380 (Project_Data): New component Symbol_Data
38383 New attributes Library_Symbol_File, Library_Symbol_Policy and
38384 Library_Reference_Symbol_File.
38387 (Ada_Check): When project is a Stand-Alone library project, process
38388 attribute Library_Symbol_File, Library_Symbol_Policy and
38389 Library_Reference_Symbol_File.
38391 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38392 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38393 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38394 Symbol_Data (ignored).
38396 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38397 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38398 functions Option_File_Name and Version_String. Set new options of
38399 gnatsym related to symbol file, symbol policy and reference symbol
38403 Extensive modifications to take into account the reference symbol file,
38404 the symbol policy, the library version and to put in the symbol file the
38405 minor and major IDs.
38407 * bld.adb (Process_Declarative_Items): Put second argument of
38408 gprcmd to_absolute between single quotes, to avoid problems with
38411 * bld-io.adb: Update Copyright notice.
38412 (Flush): Remove last character of a line, if it is a back slash, to
38413 avoid make problems.
38416 Implement new scheme with reference symbol file and symbol policy.
38418 * g-os_lib.ads: (Is_Directory): Clarify comment
38420 2003-11-19 Robert Dewar <dewar@gnat.com>
38422 * atree.adb: Move New_Copy_Tree global variables to head of package
38424 * errout.adb: Minor reformatting
38426 2003-11-19 Javier Miranda <miranda@gnat.com>
38428 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38429 Add reference to Ada0Y (AI-50217)
38431 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38432 sem_util.adb: Add reference to AI-50217
38434 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38436 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38438 * sem_aggr.adb: Complete documentation of AI-287 changes
38440 * par-ch4.adb: Document previous changes.
38442 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38443 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38446 * exp_aggr.adb: Add references to AI-287 in previous changes
38448 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38451 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38452 in the rewriting is the result of an inlined call.
38454 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38455 parameter is a type conversion, use original node to construct the
38456 post-call assignment, because expression may have been rewritten, e.g.
38457 if it is a packed array.
38460 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38461 body, just as it is in an instance.
38462 Categorization routines
38464 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38465 Instantiate_Object): Set proper sloc reference for message on missing
38468 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38470 * Makefile.in: Add FreeBSD libgnat pairs.
38472 * usage.adb: Fix typo in usage message.
38474 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38476 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38477 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38478 pragma Thread_Body.
38479 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38481 * s-thread.adb: This file is now a dummy implementation of
38484 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38486 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38488 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38490 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38491 instanciation references in the parent type description.
38493 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38495 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38497 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38498 TYPE_PRECISION directly from esize.
38500 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38503 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38505 * init.c: Initialization routines for FreeBSD
38507 * link.c: Link info for FreeBSD
38509 * sysdep.c: Add the case of FreeBSD
38511 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38513 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38514 already called in System.Threads.
38516 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38517 environment task, as it has been moved to System.Threads.Initialization.
38519 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38521 * adaint.c (__gnatlib_install_locks): Only reference
38522 __gnat_install_locks on VMS, since other platforms can avoid using
38523 --enable-threads=gnat
38525 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38527 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38529 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38530 TYPE_PACKED_ARRAY_TYPE_P.
38531 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38533 Part of PR ada/12806
38534 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38535 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38537 2003-11-17 Vincent Celier <celier@gnat.com>
38539 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38541 Do not set exit status to Failure when Warning is True.
38542 (Gnatchop): Make errors "no compilation units found" and
38543 "no source files written" warnings only.
38545 * make.adb (Gnatmake): When using a project file, set
38546 Look_In_Primary_Dir to False.
38547 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38548 and Local_Configuration_Pragmas in the project where they are declared
38549 not an extending project which might have inherited them.
38551 * osint.adb (Locate_File): If Name is already an absolute path, do not
38552 look for a directory.
38554 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38555 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38557 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38558 in objects of type Variable_Value.
38560 * prj.ads: (Variable_Value): New component Project
38562 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38563 is in a project extended by Project.
38565 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38566 Project of Variable_Values to this new parameter value.
38567 (Expression): Set component Project of Variable_Values.
38568 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38569 Set the component Project in array elements.
38571 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38573 * errout.adb: (Initialize): Add initialization for error nodes.
38575 * sem_ch12.adb (Initialize): Add missing initializations for
38576 Exchanged_Views and Hidden_Entities.
38578 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38580 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38581 already instantiated tree for use in subsequent inlining.
38582 (Analyze_Associations, Instantiate_Formal_Subprogram,
38583 Instantiate_Object): improve error message for mismatch in
38586 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38587 instantiations of subprograms declared in instances.
38589 2003-11-17 Javier Miranda <miranda@gnat.com>
38591 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38592 executed only under the Extensions_Allowed flag.
38594 2003-11-17 Robert Dewar <dewar@gnat.com>
38596 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38598 (Address_Image): Fix bug of returning 0x instead of 0x0
38599 Minor reformatting (function specs).
38601 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38602 (missed case of 33-63)
38604 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38606 * s-thread.adb: Add comments for pragma Restriction
38608 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38609 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38611 2003-11-17 Ed Falis <falis@gnat.com>
38613 * s-thread.adb: Added No_Tasking restriction for this implementation.
38615 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38617 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38618 instanciation references in the parent type description.
38620 2003-11-17 GNAT Script <nobody@gnat.com>
38622 * Make-lang.in: Makefile automatically updated
38624 2003-11-16 Jason Merrill <jason@redhat.com>
38626 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38627 and TAGS files that include them for each front end.
38629 2003-11-14 Andreas Jaeger <aj@suse.de>
38631 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38632 is the canonical version.
38633 * misc.c (gnat_handle_option): Likewise.
38635 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38637 * 5nsystem.ads: New file for x86_64-linux-gnu.
38639 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38641 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38643 * comperr.adb: Fix logic in previous change.
38645 2003-11-13 Vincent Celier <celier@gnat.com>
38647 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38648 Osint.Include_Dir_Default_Prefix instead of
38649 Sdefault.Include_Dir_Default_Name.
38651 * gnatlbr.adb: Update Copyright notice
38652 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38653 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38654 instead of Sdefault.Object_Dir_Default_Name
38657 (Process_Binder_File): Never suppress the option following -Xlinker
38660 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38661 Sdefault.Object_Dir_Default_Name.
38663 * osint.ads, osint.adb:
38664 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38665 Minor reformatting.
38667 * vms_conv.ads: Minor reformating
38668 Remove GNAT STANDARD and GNAT PSTA
38671 Allow GNAT MAKE to have several files on the command line.
38672 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38673 Sdefault.Object_Dir_Default_Name.
38675 Remove data for GNAT STANDARD
38678 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38679 Remove data for GNAT STANDARD
38680 Remove options and documentation for -gnatwb/-gnatwB: these warning
38681 options no longer exist.
38683 2003-11-13 Ed Falis <falis@gnat.com>
38685 * 5zthrini.adb: (Init_RTS): Made visible
38688 (Register): Removed unnecessary call to taskVarGet that checked whether
38689 an ATSD was already set as a task var for the argument thread.
38692 Updated comment to reflect that this is a VxWorks version
38693 Added context clause for System.Threads.Initialization
38694 Added call to System.Threads.Initialization.Init_RTS
38696 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38699 (Init_RTS): New procedure, for the initialization of the run-time lib.
38702 Remove dependancy on System.Init, so that this file can be used in the
38703 AE653 sequential run-time lib.
38705 2003-11-13 Robert Dewar <dewar@gnat.com>
38707 * bindgen.adb: Minor reformatting
38709 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38712 (Apply_Discriminant_Check): Do no apply check if target type is derived
38713 from source type with no applicable constraint.
38716 (Ensure_System_Dependency): Do not apply the style checks that may have
38717 been specified for the main unit.
38720 (Find_Selected_Component): Further improvement in error message, with
38724 (Resolve): Handle properly the case of an illegal overloaded protected
38727 2003-11-13 Javier Miranda <miranda@gnat.com>
38730 (Has_Default_Init_Comps): New function to check the presence of
38731 default initialization in an aggregate.
38732 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38733 extension aggregate of a limited record. In addition, a new formal
38734 was added to do not initialize the record controller (if any) during
38735 this recursive expansion of ancestors.
38736 (Init_Controller): Add support for limited record components.
38737 (Expand_Record_Aggregate): In case of default initialized components
38738 convert the aggregate into a set of assignments.
38740 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38741 describing the new syntax.
38742 Nothing else needed to be done because this subprogram delegates part of
38743 its work to P_Precord_Or_Array_Component_Association.
38744 (P_Record_Or_Array_Component_Association): Give support to the new
38745 syntax for default initialization of components.
38748 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38749 limited aggregates.
38750 (Resolve_Record_Aggregate): Give support to default initialized
38752 (Get_Value): In case of default initialized components, duplicate
38753 the corresponding default expression (from the record type
38754 declaration). In case of default initialization in the *others*
38755 choice, do not check that all components have the same type.
38756 (Resolve_Extension_Aggregate): Give support to limited extension
38760 (Check_Initialization): Relax the strictness of the front-end in case
38761 of aggregate and extension aggregates. This test is now done in
38762 Get_Value in a per-component manner.
38764 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38765 expression corresponds to a limited aggregate. This test is now done
38768 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38771 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38772 present in an N_Component_Association node
38774 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38776 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38777 type-conformant entry only if they are homographs.
38779 2003-11-13 GNAT Script <nobody@gnat.com>
38781 * Make-lang.in: Makefile automatically updated
38783 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38785 * adadecode.c: Use <> form of include for ctype.h.
38786 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38788 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38790 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38791 Works around PR middle-end/6552.
38793 2003-11-10 Ed Falis <falis@gnat.com>
38795 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38797 * 5zinit.adb: (Install_Handler): Moved back to spec
38798 (Install_Signal_Handlers): Deleted
38800 * 5zthrini.adb: Added context clause for System.Storage_Elements
38801 (Register): Only handles creation of taskVar; initialization moved to
38803 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38804 Added declaration of environment task secondary stack and
38807 * s-thread.adb: Implement bodies for thread body processing
38810 Added comment identifying supported targets for pragma Thread_Body.
38812 2003-11-10 Pascal Obry <obry@gnat.com>
38814 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38818 (Open): Properly check for string length before copying into the buffer.
38819 Raises Name_Error if buffer is too small. Note that this was a potential
38822 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38824 * bindgen.adb, comperr.adb: Code clean ups.
38825 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38827 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38829 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38831 2003-11-10 Vincent Celier <celier@gnat.com>
38834 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38837 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38839 * prj.adb: (Project_Empty): Add new boolean component Virtual
38841 * prj.ads: (Virtual_Prefix): New constant string
38842 (Project_Data): New boolean component Virtual
38844 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38845 a library project is extended by a virtual extending project.
38848 Modifications throughout to implement extending-all project, including:
38849 (Virtual_Hash, Processed_Hash): New hash tables
38850 (Create_Virtual_Extending_Project): New procedure
38851 (Look_For_Virtual_Projects_For): New procedure
38854 (Process): After checking the projects, if main project is an
38855 extending-all project, set the object directory of all virtual extending
38856 project to the object directory of the main project.
38857 Adjust error message when a virtual extending project has the same
38858 object directory as an project being extended.
38859 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38860 to True in the project data.
38863 (Default_Project_Node): Add new boolean component Extending_All
38864 (Is_Extending_All): New function
38865 (Set_Is_Extending_All): New procedure
38867 * prj-tree.ads: (Is_Extending_All): New function
38868 (Set_Is_Extending_All): New procedure
38869 (Project_Node_Record): New boolean component Extending_All
38871 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38874 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38876 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38877 "gprcmd prefix" to define it.
38879 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38881 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38884 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38885 created dummy package to Standard_Standard, not to itself, to
38886 defend other parts of the front-end against encoutering a cycle in
38890 (Analyze_With_Clause): When setting the entities for the successive
38891 N_Expanded_Names that constitute the name of a child unit, do not
38892 attempt to go further than Standard_Standard in the chain of scopes.
38893 This case arises from the placeholder units created by
38894 Create_Dummy_Package_Unit in the case of a with_clause for a
38895 nonexistent child unit.
38897 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38900 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38901 declarations are given the proper scope.
38904 (Check_Expr_Constants): Reject an expression that contains a constant
38905 created during expansion, and that appears after the object to which
38906 the address clause applies.
38908 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38909 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38910 that uses 'Range of a function call with controlled components, so
38911 that the function result can be finalized before starting the loop.
38914 (Find_Selected_Component): Improve error message when prefix is
38915 an implicit dereference of an incomplete type.
38917 2003-11-10 Robert Dewar <dewar@gnat.com>
38919 * opt.ads: New Print_Standard flag for -gnatS switch
38921 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38923 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38926 * debug.adb: Update doc for -gnatds to discuss relationship with new
38929 * sinfo.adb: Add new field Entity_Or_Associated_Node
38931 * sinfo.ads: Add new field Entity_Or_Associated_Node
38932 Update documentation for Associated_Node and Entity fields to clarify
38933 relationship and usage.
38936 (Write_Id): Properly process Associated_Node field in generic template
38939 Recognize new -gnatS switch for printing package Standard
38940 This replaces gnatpsta
38943 Add line for new -gnatS switch for printing package Standard
38944 This replaces gnatpsta
38946 2003-11-10 Andreas Jaeger <aj@suse.de>
38948 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38951 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38953 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38956 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38958 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38961 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38963 * sysdep.c: Add handling of cygwin.
38965 2003-11-10 GNAT Script <nobody@gnat.com>
38967 * Make-lang.in: Makefile automatically updated
38969 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38972 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38973 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38974 Replace GNAT_ROOT by GCC_ROOT.
38976 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38978 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38980 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38981 and update for changed meaning of GET_MODE_BITSIZE.
38983 2003-11-04 Doug Rupp <rupp@gnat.com>
38985 * sysdep.c: Problem discovered during IA64 VMS port.
38986 [VMS] #include <unixio.h> to get proper prototypes.
38989 Issues discovered/problems fixed during IA64 VMS port.
38990 [VMS] #define _POSIX_EXIT for proper semantics.
38991 [VMS] #include <unixio.h> for proper prototypes.
38992 [VMS] (fork): #define IA64 version.
38993 (__gnat_os_exit): Remove unnecessary VMS specific code.
38995 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38997 Part of PR ada/12806
38998 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
39002 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
39005 * targtyps.c, decl.c, misc.c,
39006 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
39007 routines to work around change in FP sizing semantics in GCC.
39010 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
39012 * gigi.h: (enumerate_modes): New function.
39014 * Make-lang.in: (ada/misc.o): Add real.h.
39016 * misc.c: (enumerate_modes): New function.
39018 2003-11-04 Robert Dewar <dewar@gnat.com>
39020 * 3vtrasym.adb: Minor reformatting
39021 Use terminology encoded/decoded name, rather than C++ specific notion
39022 of mangling (this is the terminology used throughout GNAT).
39024 * einfo.h: Regenerated
39026 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
39029 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
39031 * par-prag.adb: Add dummy entry for Thread_Body pragma
39034 Add entries for System.Threads entities for thread body processing
39037 (Analyze_Pragma, Access attributes): Check these are not applied to a
39038 thread body, since this is not permitted
39040 * sem_prag.adb: Add processing for Thread_Body pragma.
39044 (Resolve_Call): Check for incorrect attempt to call a thread body
39045 procedure with a direct call.
39047 * snames.ads, snames.adb: Add entry for Thread_Body pragma
39048 Add names associated with thread body expansion
39050 * snames.h: Add entry for Thread_Body pragma
39052 * s-thread.adb: Add entries for thread body processing
39053 These are dummy bodies so far
39055 * s-thread.ads: Add documentation on thread body handling.
39056 Add entries for thread body processing.
39058 2003-11-04 Javier Miranda <miranda@gnat.com>
39061 (Build_Limited_Views): Return after posting an error in case of limited
39062 with_clause on subprograms, generics, instances or generic renamings
39063 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39064 on subprograms, generics, instances or generic renamings
39066 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
39068 * raise.c (setup_to_install): Correct mistake in last revision; two
39069 arguments out of order.
39071 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39072 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39073 notice, missed in previous change.
39074 Remove trailing blanks and other style errors introduced in previous
39077 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
39079 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39080 rid of the wrapper for a LJM type, ensuring we don't do that if the
39081 field is addressable. This avoids potential low level type view
39082 mismatches later on, for instance in a by-reference argument passing
39085 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39087 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39088 aligned at byte boundary.
39090 2003-11-04 Joel Brobecker <brobecker@gnat.com>
39092 * decl.c (components_to_record): Do not delete the empty variants from
39093 the end of the union type.
39095 2003-11-04 Ed Schonberg <schonberg@gnat.com>
39097 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39098 operation for a derived type, an explicit declaration may use a local
39099 subtype of Boolean.
39101 2003-11-04 Vincent Celier <celier@gnat.com>
39103 * make.adb (Gnatmake): Allow main sources on the command line with a
39104 library project when it is only for compilation (no binding or
39107 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39109 * Makefile.in: Remove many duplicate variables.
39111 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
39113 * Make-lang.in (dvi): Move targets to $(docobjdir).
39114 (gnat_ug_vms.dvi): Simplify rule and adjust target.
39115 (gnat_ug_wnt.dvi): Likewise.
39116 (gnat_ug_unx.dvi): Likewise.
39117 (gnat_ug_vxw.dvi): Likewise.
39118 (gnat_rm.dvi): Likewise.
39119 (gnat-style.dvi): Likewise.
39121 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39123 * gigi.h: Missed commit from update for C90.
39125 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39127 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39129 2003-10-31 Andreas Schwab <schwab@suse.de>
39131 * raise.c (get_action_description_for): Fix typo in last change.
39133 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
39136 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39137 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39139 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
39141 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39142 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39143 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39144 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39145 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39147 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
39150 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39151 numbers when symbol name is too long.
39153 2003-10-30 Ed Falis <falis@gnat.com>
39155 * g-signal.ads, g-signal.adb: New files
39157 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39159 * Makefile.rtl: Introduce GNAT.Signals
39161 2003-10-30 Robert Dewar <dewar@gnat.com>
39163 * freeze.adb: Minor reformatting
39165 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39167 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39168 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39169 New handling of Id_Check parameter to improve recognition of keywords
39170 used as identifiers.
39171 Update copyright notice to include 2003
39173 2003-10-29 Robert Dewar <dewar@gnat.com>
39175 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39176 sem_ch10.adb: Minor reformatting
39178 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39179 (Expand_Assign_Record): Test right hand side for bit unaligned as well
39181 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
39183 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39184 Support for TBK$SYMBOLIZE-based symbolic traceback.
39186 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39189 Revert previous change, that did not work well when pragma No_Run_Time
39190 was used in conjunction with a run-time other than ZFP.
39192 2003-10-29 Vincent Celier <celier@gnat.com>
39195 (Gnatmake): When there are no Ada mains in attribute Main, disable the
39196 bind and link steps only is switch -z is not used.
39198 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
39200 * Makefile.generic: Remove duplicated setting of CC.
39202 * Makefile.prolog: Set CC to gcc by default, to override make's
39205 * einfo.h: Regenerated.
39207 2003-10-29 Ed Schonberg <schonberg@gnat.com>
39209 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39210 current body, after compiling subunit.
39212 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39213 when in deleted code, because gigi needs properly ordered freeze
39214 actions to annotate types.
39216 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39217 prevent the premature freezing of record type that contains
39218 subcomponents with a private type that does not yet have a completion.
39220 2003-10-29 Javier Miranda <miranda@gnat.com>
39223 (Analyze_Package_Instantiation): Check that instances can not be used in
39224 limited with_clauses.
39227 (Analyze_Package_Renaming): Check that limited withed packages cannot
39228 be renamed. Improve text on error messages related to limited
39231 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39233 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39234 Update copyright notice.
39236 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39237 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39238 checks required for limited context_clauses and installs the limited
39240 (Install_Limited_Withed_Unit): Complete its documentation.
39241 (Analyze_Context): Check that limited with_clauses are only allowed in
39243 (Install_Context): Call Install_Limited_Context_Clauses after the
39244 parents have been installed.
39245 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39246 package as 'From_With_Type'; this mark indicates that the limited view
39247 is installed. Used to check bad usages of limited with_clauses.
39248 (Build_Limited_Views): Do not add shadow entities to the scope's list
39249 of entities. Do not add real entities to the Non_Limited_Views chain.
39250 Improve error notification.
39251 (Remove_Context_Clauses): Remove context clauses in two phases:
39252 limited views first and regular views later (to maintain the
39254 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39255 its visible entities.
39257 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39259 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39260 with any type that Is_Fixed_Point_Type.
39262 * sinfo.ads: Fix documentation for Associated_Node attribute.
39264 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39266 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39267 both '-gnatc' and '-gnatt' are specified.
39269 * atree.adb (Initialize): Add initialization for Node_Count (set to
39272 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39274 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39275 do not consider as Pure.
39277 Part of implementation of function-at-a-time:
39279 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39280 (tree_transform): Add new argument to build_component_ref.
39281 (tree_transform, case N_Assignment_Statement): Make and return an
39283 (tree_transform): If result IS_STMT, set flags and return it.
39284 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39286 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39288 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39289 (build_allocator): Likewise.
39291 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39292 Add new arg to build_component_ref.
39293 (maybe_unconstrained_array, unchecked_convert): Likewise.
39295 * ada-tree.def (EXPR_STMT): New code.
39297 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39299 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39300 build_component_ref calls.
39302 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39304 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39305 (build_component_ref): Add new argument, NO_FOLD_P.
39307 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39309 * Makefile.generic: Add missing substitution on object_deps handling.
39312 * Make-lang.in (check-ada): Enable ACATS test suite.
39314 2003-10-27 Robert Dewar <dewar@gnat.com>
39317 (Freeze_Array_Type): We do not need an initialization routine for types
39318 derived from String or Wide_String. They should be treated the same
39319 as String and Wide_String themselves. This caused problems with the
39320 use of Initialize_Scalars.
39323 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39324 composites. This allows use of component clauses that are not byte
39328 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39329 is an attempt to pack an array of atomic objects.
39331 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39333 2003-10-27 Pascal Obry <obry@gnat.com>
39336 (Basename): Check for drive letters in a pathname only on DOS based OS.
39338 2003-10-27 Vincent Celier <celier@gnat.com>
39341 (Gnatmake): When unable to change dir to the object dir, display the
39342 content of the parent dir of the obj dir, to try to understand why this
39345 2003-10-27 GNAT Script <nobody@gnat.com>
39347 * Make-lang.in: Makefile automatically updated
39349 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39352 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39353 should not be done in Save/Restore_Scope_Stack, because it is performed
39357 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39358 whether use clauses should be removed/restored.
39361 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39362 whether use clauses should be removed/restored.
39364 2003-10-26 Andreas Jaeger <aj@suse.de>
39366 * Makefile.in: Remove duplicated lines.
39368 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39370 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39371 minimize the differences with ACT tree.
39373 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39374 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39375 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39378 2003-10-24 Pascal Obry <obry@gnat.com>
39381 * adadecode.c (ostrcpy): New function.
39382 (__gnat_decode): Use ostrcpy of strcpy.
39383 (has_prefix): Set first parameter a const.
39384 (has_suffix): Set first parameter a const.
39385 Update copyright notice. Fix source name in header.
39386 Removes a trailing space.
39388 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39391 Remove the test against being in No_Run_Time_Mode before generating a
39392 call to Register_Tag. It is redundant with the test against the
39393 availability of the function Register_Tag.
39395 2003-10-24 Vincent Celier <celier@gnat.com>
39397 * g-catiio.adb: (Month_Name): Correct spelling of February
39399 * make.adb: (Mains): New package
39400 (Initialize): Call Mains.Delete
39401 (Gnatmake): Check that each main on the command line is a source of a
39402 project file and, if there are several mains, each of them is a source
39403 of the same project file.
39404 (Gnatmake): When a foreign language is specified in attribute Languages,
39405 no main is specified on the command line and attribute Mains is not
39406 empty, only build the Ada main. If there is no Ada main, just compile
39407 the Ada sources and their closure.
39408 (Gnatmake): If a main is specified on the command line with directory
39409 information, check that the source exists and, if it does, that the path
39410 is the actual path of a source of a project.
39413 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39414 Full_Path is True, return the full path instead of the simple file name.
39415 (Project_Of): New function
39418 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39419 defaulted to False.
39420 (Project_Of): New function
39422 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39424 * Makefile.generic:
39425 Ensure objects of main project are always checked and rebuilt if needed.
39426 Set CC to gcc by default.
39427 Prepare new handling of link by creating a global archive (not activated
39430 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39431 stringt.h: Update copyright notice. Remove trailing blanks.
39432 Fix source name in header.
39434 2003-10-24 Robert Dewar <dewar@gnat.com>
39436 * sem_ch12.adb: Minor reformatting
39439 Minor reformatting (including new function return style throughout)
39442 Minor reformatting (including new function return style throughout)
39444 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39446 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39447 stringt.h: Update copyright notice. Remove trailing blanks.
39448 Fix source name in header.
39450 2003-10-24 GNAT Script <nobody@gnat.com>
39452 * Make-lang.in: Makefile automatically updated
39454 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39456 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39457 stringt.h: Convert to ISO C90 declarations and definitions.
39459 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39462 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39463 External_Tag attribute definition clauses.
39465 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39468 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39469 child unit, generate a fully qualified name to avoid spurious errors
39470 when the context contains renamings of different child units with
39471 the same simple name.
39473 * exp_dbug.ads: Add documentation on name qualification for renamings
39476 2003-10-23 Robert Dewar <dewar@gnat.com>
39478 * g-regpat.ads, g-regpat.adb: Minor reformatting
39480 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39482 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39484 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39486 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39489 * urealp.h: (Machine): Update to proper definition.
39491 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39493 * init.c, adaint.c: Minor reformatting.
39495 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39497 * adaint.c (w32_epoch_offset): Define static const at file level.
39498 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39499 rather than t_create, t_access in call to GetFileTime. Use union
39500 to convert between FILETIME and unsigned long long.
39501 (__gnat_file_time_name): Test for invalid file handle.
39502 (__gnat_set_filetime_name): Support win32 targets using
39503 w32api SetFileTime.
39505 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39507 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39509 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39511 * decl.c (creat_concat_name): Const-ify prefix.
39513 * adaint.c: Include ctype.h if __MINGW32__.
39514 (__gnat_readlink): Mark arguments as possibly unused.
39515 (__gnat_symlink): Likewise.
39516 (__gnat_is_symbolic_link): Likewise.
39517 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39519 (__gnat_file_time_name): Don't declare struct stat statbuf when
39521 (__gnat_is_absolute_path): Add parenthesis around condition of
39522 'if' statement to avoid warning.
39523 (__gnat_plist_init): Specify void as parameter.
39524 (plist_enter): Likewise.
39525 (plist_leave): Likewise.
39526 (remove_handle): Make static. Initialize prev.
39528 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39531 * Makefile.in: Disable build of gnatpsta.
39532 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39533 of previous change.
39535 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39537 * tracebak.c (MAX): Avoid redefinition warning.
39539 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39540 Change msg to const char *.
39541 (__gnat_install_handler): Remove ss, unused.
39542 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39544 * cstreams.c (__gnat_full_name): Declare p only when used.
39545 (__gnat_full_name) [sgi] Return buffer.
39547 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39549 * mingw32.h: New file.
39550 * gnat_wrapper.adb: New file.
39552 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39554 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39555 string match a pre compiled regular expression (the corresponding
39556 version of the function working on a raw regular expression)
39557 Fix typos in various comments
39558 Update copyright notice in spec
39560 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39563 (Component_Needs_Simple_Initialization): Return False when the type is a
39564 packed bit array. Revise spec comments to document this case.
39567 (Expand_Pragma_Import): Set any expression on the imported object to
39568 empty to avoid initializing imported objects (in particular this
39569 covers the case of zero-initialization of bit arrays).
39570 Update copyright notice.
39572 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39575 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39576 a subunit is missing.
39577 (Instantiate_Subprogram_Body): If body of function is missing, set type
39578 of return expression explicitly in dummy body, to prevent cascaded
39579 errors when a subunit is missing.
39583 (Access_Subprogram_Declaration): Verify that return type is valid.
39587 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39592 (Corresponding_Discriminant): If the scope of the discriminant is a
39593 private type without discriminant, use its full view.
39596 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39598 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39599 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39600 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39601 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39602 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39603 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39604 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39605 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39606 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39607 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39608 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39609 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39610 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39611 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39612 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39613 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39614 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39615 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39616 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39617 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39618 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39619 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39620 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39621 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39622 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39623 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39624 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39625 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39626 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39627 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39628 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39629 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39630 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39631 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39632 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39633 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39634 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39635 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39636 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39637 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39638 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39639 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39640 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39641 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39642 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39643 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39644 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39645 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39646 vms_conv.ads, vms_conv.adb, vms_data.ads,
39647 vxaddr2line.adb: Files added. Merge with ACT tree.
39649 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39650 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39651 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39652 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39653 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39654 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39655 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39656 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39657 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39658 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39660 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39661 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39662 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39663 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39664 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39665 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39666 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39667 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39668 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39669 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39670 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39671 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39672 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39673 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39674 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39675 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39676 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39677 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39678 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39679 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39680 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39681 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39682 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39683 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39684 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39685 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39686 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39687 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39688 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39689 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39690 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39691 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39692 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39693 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39694 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39695 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39696 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39697 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39698 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39699 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39700 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39701 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39702 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39703 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39704 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39705 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39706 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39707 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39708 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39709 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39710 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39711 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39712 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39713 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39714 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39715 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39716 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39717 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39718 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39719 checks.adb, checks.ads, cio.c, comperr.adb,
39720 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39721 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39722 einfo.adb, einfo.ads, errout.adb, errout.ads,
39723 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39724 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39725 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39726 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39727 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39728 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39729 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39730 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39731 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39732 fe.h, fmap.adb, fmap.ads, fname.adb,
39733 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39734 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39735 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39736 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39737 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39738 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39739 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39740 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39741 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39742 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39743 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39744 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39745 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39746 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39747 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39748 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39749 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39750 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39751 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39752 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39753 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39754 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39755 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39756 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39757 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39758 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39759 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39760 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39761 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39762 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39763 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39764 layout.adb, lib.adb, lib.ads, lib-list.adb,
39765 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39766 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39767 link.c, live.adb, make.adb, make.ads,
39768 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39769 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39770 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39771 misc.c, mkdir.c, mlib.adb, mlib.ads,
39772 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39773 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39774 namet.adb, namet.ads, namet.h, nlists.ads,
39775 nlists.h, nmake.adt, opt.adb, opt.ads,
39776 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39777 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39778 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39779 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39780 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39781 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39782 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39783 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39784 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39785 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39786 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39787 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39788 prj-util.adb, prj-util.ads, raise.c, raise.h,
39789 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39790 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39791 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39792 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39793 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39794 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39795 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39796 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39797 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39798 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39799 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39800 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39801 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39802 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39803 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39804 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39805 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39806 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39807 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39808 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39809 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39810 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39811 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39812 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39813 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39814 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39815 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39816 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39817 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39818 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39819 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39820 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39821 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39822 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39823 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39824 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39825 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39826 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39827 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39828 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39829 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39830 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39831 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39832 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39833 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39834 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39835 stringt.adb, stringt.ads, stringt.h, style.ads,
39836 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39837 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39838 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39839 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39840 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39841 table.adb, table.ads, targparm.adb, targparm.ads,
39842 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39843 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39844 ttypes.ads, types.ads, types.h, uintp.adb,
39845 uintp.ads, uintp.h, uname.adb, urealp.adb,
39846 urealp.ads, urealp.h, usage.adb, utils2.c,
39847 utils.c, validsw.adb, validsw.ads, widechar.adb,
39848 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39849 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39850 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39851 gnatvsn.ads: Merge with ACT tree.
39853 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39855 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39857 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39858 (gnat_ug_vmx.info): Likewise.
39859 (gnat_ug_vxw.info): Likewise.
39860 (gnat_ug_wnt.info): Likewise.
39861 (gnat_rm.info): Likewise.
39862 (gnat-style.info): Likewise.
39864 * Make-lang.in (ada.install-info): Remove target.
39865 (info): New target.
39866 (install-info): Likewise.
39867 (gnat_ug_unx.info): Simplify rule.
39868 (gnat_ug_vmx.info): Likewise.
39869 (gnat_ug_vxw.info): Likewise.
39870 (gnat_ug_wnt.info): Likewise.
39871 (gnat_rm.info): Likewise.
39872 (gnat-style.info): Likewise.
39874 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39876 * Make-lang.in: Replace uses of $(target_alias) with
39877 $(target_noncanonical).
39878 * ada/Makefile.in: Remove unused mention of $(target_alias).
39880 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39882 * Make-lang.in (ada.info): Replace with ...
39884 (ada.dvi): Replace with ...
39887 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39889 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39890 initialize dconstp5 and dconstmp5.
39892 2003-09-28 Richard Henderson <rth@redhat.com>
39894 * trans.c (tree_transform): Update call to expand_asm_operands.
39896 2003-09-21 Richard Henderson <rth@redhat.com>
39898 * trans.c, utils.c: Revert.
39900 2003-09-21 Richard Henderson <rth@redhat.com>
39902 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39905 2003-09-04 Michael Matz <matz@suse.de>
39907 * misc.c: Include "target.h".
39908 * Make-lang.in (misc.o): Add dependency on target.h.
39910 2003-09-03 DJ Delorie <dj@redhat.com>
39912 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39915 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39917 * Makefile.in: Update substitutions to match changes to
39918 configure. Use include directives instead of @-insertions
39919 to read in host and target fragments. Add a rule to
39920 regenerate ada/Makefile.
39922 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39924 * lang-options.h: Remove.
39925 * lang.opt: Add help text.
39927 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39929 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39932 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39934 * misc.c (gnat_handle_option): Don't handle filenames.
39936 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39938 * Make-lang.in: Replace PWD with PWD_COMMAND.
39939 * Makefile.adalib: Likewise.
39940 * Makefile.in: Likewise.
39942 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39944 * misc.c (gnat_argv): Revert last change.
39945 (gnat_handle_option, gnat_init_options): Copy arguments.
39947 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39949 * misc.c (gnat_argv): Make const.
39951 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39953 * misc.c (save_argc, save_argv): Keep non-static!
39955 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39957 * misc.c (save_argc, save_argv): Make static.
39958 (gnat_init_options): New prototype.
39959 (gnat_init_options): Update.
39961 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39963 * gnat_ug.texi: Remove unlikely characters from @vars.
39964 * gnat_ug_vms.texi: Regenerate.
39966 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39968 * misc.c (record_code_position): Adjust emit_note call.
39970 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39972 * misc.c (gnat_handle_option): Don't check for missing arguments.
39974 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39976 * utils.c (end_subprog_body): Adjust expand_function_end call.
39978 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39980 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39983 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39985 * lang.opt: Declare Ada.
39986 * misc.c (gnat_init_options): Update.
39988 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39990 * utils.c (begin_subprog_body): Adjust init_function_start call.
39992 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39994 * Make-lang.in: Update to use options.c and options.h.
39995 * misc.c: Include options.h not aoptions.h.
39996 (gnat_handle_option): Abort on unrecognized switch.
39997 (gnat_init_options): Request Ada switches.
39999 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
40001 * lang.opt: Add -Wall.
40002 * misc.c (gnat_handle_option): Handle it.
40004 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
40006 * misc.c (gnat_handle_option): Fix warnings.
40008 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
40010 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
40012 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
40014 * Make-lang.in: Update to handle command-line options.
40015 * lang.opt: New file.
40016 * misc.c: Include aoptions.h.
40017 (cl_options_count, cl_options): Remove.
40018 (gnat_handle_option): New.
40019 (gnat_decode_option): Remove.
40020 (LANG_HOOKS_DECODE_OPTION): Remove.
40021 (LANG_HOOKS_HANDLE_OPTION): Override.
40023 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
40025 * init.c, misc.c, trans.c, utils.c: Remove dead code.
40027 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
40029 * Makefile.in: Replace "host_canonical" with "host" for autoconf
40032 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
40034 * Make-lang.in: Update.
40035 * misc.c: Include opts.h. Define cl_options_count and cl_options.
40037 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
40039 * misc.c (gnat_init_options): Update.
40041 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40043 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
40044 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
40045 __attribute__ ((__unused__)).
40047 2003-06-05 Jan Hubicka <jh@suse.cz>
40049 * Make-lang.in: Add support for stageprofile and stagefeedback
40051 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40053 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40054 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40056 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
40058 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40059 Remove non-VMS directive.
40060 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40062 (Examples of gnatls Usage): Remove VMS alternative.
40064 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
40067 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40068 and turn ZCX_By_Default back to False since the underlying support
40069 is not quite there yet.
40071 2003-06-01 Andreas Jaeger <aj@suse.de>
40073 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40074 and ROUND_TYPE_SIZE_UNIT.
40076 2003-05-22 Geert Bosch <bosch@gnat.com>
40078 * gnat_rm.texi : Remove reference to Ada Core Technologies.
40080 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
40082 * trans.c (tree_transform): Use location_t and input_location
40084 (build_unit_elab): Likewise.
40085 * utils.c (create_label_decl): Likewise.
40087 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
40089 * trans.c (tree_transform, build_unit_elab,
40090 set_lineno): Rename lineno to input_line.
40091 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40092 end_subprog_body): Likewise.
40093 * utils2.c (build_call_raise): Likewise.
40095 2003-05-01 Laurent Guerby <guerby@acm.org>
40098 * 5iosinte.ads: Increase pthread_cond_t size to match recent
40099 LinuxThread and NPTL version, merge from ACT.
40101 2003-04-28 Zack Weinberg <zack@codesourcery.com>
40103 * utils.c (convert): No need to clear TREE_CST_RTL.
40105 2003-04-23 Geert Bosch <bosch@gnat.com>
40107 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40108 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40109 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40110 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40111 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40112 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40113 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40114 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40115 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40116 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40117 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40118 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40119 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40120 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40121 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40122 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40123 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40124 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40125 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40126 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40127 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40128 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40129 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40130 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40131 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40132 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40133 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40134 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40135 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40136 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40137 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40138 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40139 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40140 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40141 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40142 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40143 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40144 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40145 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40146 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40147 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40148 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40149 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40150 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40151 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40152 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40153 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40154 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40155 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40156 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40157 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40158 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40159 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40160 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40161 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40162 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40163 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40164 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40165 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40166 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40167 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40168 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40169 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40170 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40171 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40172 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40173 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40174 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40175 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40176 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40177 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40178 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40179 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40180 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40181 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40182 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40183 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40184 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40185 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40186 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40187 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40188 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40189 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40190 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40191 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40192 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40193 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40194 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40195 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40196 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40197 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40198 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40199 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40200 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40201 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40202 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40203 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40204 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40205 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40206 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40207 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40208 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40209 ali.adb, ali.ads, alloc.ads, argv.c,
40210 atree.adb, atree.ads, atree.h, aux-io.c,
40211 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40212 binde.adb, binde.ads, binderr.adb, binderr.ads,
40213 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40214 butil.adb, butil.ads, cal.c, calendar.ads,
40215 casing.adb, casing.ads, ceinfo.adb, checks.adb,
40216 checks.ads, cio.c, comperr.adb, comperr.ads,
40217 config-lang.in, csets.adb, csets.ads, csinfo.adb,
40218 cstand.adb, cstand.ads, cuintp.c, debug.adb,
40219 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40220 dec-io.ads, dec.ads, deftarg.c, directio.ads,
40221 einfo.adb, einfo.ads, elists.adb, elists.ads,
40222 elists.h, errno.c, errout.adb, errout.ads,
40223 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40224 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40225 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40226 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40227 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40228 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40229 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40230 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40231 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40232 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40233 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40234 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40235 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40236 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40237 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40238 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40239 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40240 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40241 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40242 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40243 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40244 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40245 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40246 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40247 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40248 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40249 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40250 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40251 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40252 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40253 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40254 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40255 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40256 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40257 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40258 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40259 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40260 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40261 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40262 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40263 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40264 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40265 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40266 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40267 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40268 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40269 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40270 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40271 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40272 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40273 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40274 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40275 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40276 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40277 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40278 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40279 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40280 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40281 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40282 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40283 lib.adb, lib.ads, live.adb, live.ads,
40284 machcode.ads, make.adb, make.ads, makeusg.adb,
40285 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40286 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40287 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40288 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40289 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40290 mlib.ads, namet.adb, namet.ads, nlists.adb,
40291 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40292 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40293 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40294 osint.ads, output.adb, output.ads, par-ch10.adb,
40295 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40296 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40297 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40298 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40299 par-tchk.adb, par-util.adb, par.adb, par.ads,
40300 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40301 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40302 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40303 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40304 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40305 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40306 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40307 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40308 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40309 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40310 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40311 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40312 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40313 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40314 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40315 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40316 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40317 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40318 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40319 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40320 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40321 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40322 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40323 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40324 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40325 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40326 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40327 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40328 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40329 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40330 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40331 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40332 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40333 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40334 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40335 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40336 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40337 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40338 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40339 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40340 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40341 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40342 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40343 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40344 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40345 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40346 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40347 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40348 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40349 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40350 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40351 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40352 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40353 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40354 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40355 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40356 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40357 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40358 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40359 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40360 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40361 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40362 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40363 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40364 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40365 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40366 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40367 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40368 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40369 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40370 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40371 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40372 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40373 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40374 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40375 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40376 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40377 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40378 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40379 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40380 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40381 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40382 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40383 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40384 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40385 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40386 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40387 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40388 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40389 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40390 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40391 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40392 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40393 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40394 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40395 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40396 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40397 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40398 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40399 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40400 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40401 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40402 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40403 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40404 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40405 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40406 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40407 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40408 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40409 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40410 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40411 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40412 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40413 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40414 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40415 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40416 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40417 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40418 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40419 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40420 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40421 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40422 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40423 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40424 snames.ads, sprint.adb, sprint.ads, stand.adb,
40425 stand.ads, stringt.adb, stringt.ads, style.adb,
40426 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40427 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40428 switch-m.ads, switch.adb, switch.ads, system.ads,
40429 table.adb, table.ads, targparm.adb, targparm.ads,
40430 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40431 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40432 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40433 ttypef.ads, ttypes.ads, types.adb, types.ads,
40434 uintp.adb, uintp.ads, uname.adb, uname.ads,
40435 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40436 usage.adb, usage.ads, validsw.adb, validsw.ads,
40437 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40438 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40439 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40440 formatting and other trivial changes from ACT.
40442 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40444 * gigi.h, utils2.c (build_constructor):
40445 Rename gnat_build_constructor. Use build_constructor.
40446 * decl.c (gnat_to_gnu_entity)
40447 * trans.c (tree_transform, pos_to_constructor, extract_values)
40448 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40449 (unchecked_convert)
40450 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40451 (fill_vms_descriptor):
40454 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40456 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40457 * misc.c (gnat_tree_size): New function.
40458 (LANG_HOOKS_TREE_SIZE): Override.
40460 2003-04-03 Jason Merrill <jason@redhat.com>
40462 * misc.c (gnat_adjust_rli): #if 0.
40464 2003-03-31 Geert Bosch <bosch@gnat.com>
40467 * link.c : Fix misspelled "const" keyword
40469 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40472 * utils2.c: Adjust calls to put_var_into_stack.
40474 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40476 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40478 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40480 * misc.c (gnat_init): Update for new prototype.
40482 2003-03-05 Olivier Hainque <hainque@gnat.com>
40485 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40486 warning, and fix return type for the IN_RTS && !SJLJ case.
40488 2003-03-04 Tom Tromey <tromey@redhat.com>
40490 * Make-lang.in (ada.tags): New target.
40492 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40495 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40496 wrapper, which name remains constant whatever underlying GCC
40499 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40500 the stable interface needed for a-except.
40502 2003-03-02 Andreas Jaeger <aj@suse.de>
40504 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40505 gnat_ug_wnt.texi: Regenerate.
40507 2003-03-02 Laurent Guerby <guerby@acm.org>
40509 * Makefile.in (install-gnatlib): Match previous change there
40512 2003-02-28 Andreas Schwab <schwab@suse.de>
40514 * Make-lang.in (install-gnatlib): Change to ada directory before
40515 running make instead of using ada/Makefile directly.
40517 2003-02-18 Ben Elliston <bje@redhat.com>
40519 Part of PR ada/9406
40520 * gnat_ug.texi (Binder output file): Grammar fix.
40522 2003-02-18 Ben Elliston <bje@redhat.com>
40525 * 5qtaprop.adb (Sleep): Fix typo in comment.
40527 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40529 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40530 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40531 gnat_ug_wnt.texi: Regenerate.
40533 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40535 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40536 be created if necessary.
40537 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40538 if necessary. Remove erroneous and redundant gnatchop
40539 installation commands. Test for gnatdll before attempting
40541 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40542 and gnatdll from all plausible locations.
40544 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40546 * utils2.c (build_unary_op): Don't check flag_volatile.
40547 * gnat_ug.texi: Remove -fvolatile from example.
40548 * gnat_ug_vxw.texi: Likewise.
40550 2003-01-29 Laurent Guerby <guerby@acm.org>
40553 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40554 * Makefile.in: match previous change.
40555 * Make-lang.in: match previous change.
40557 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40559 * 5rosinte.ads: Add SIGXCPU.
40560 * 5rtpopsp.adb: New file.
40561 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40562 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40563 specific file 5rtpopsp.adb.
40564 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40565 is likely needed for all newlib targets.
40566 * init.c: Add RTEMS specific version of __gnat_initialize().
40568 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40570 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40572 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40574 * init.c (__gnat_error_handler): Make msg const.
40576 * gmem.c (convert_addresses): Move declaration ...
40577 * adaint.h: ... here.
40578 * adaint.c (convert_addresses): Adapt addrs type to match
40581 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40583 2003-01-24 Andreas Schwab <schwab@suse.de>
40585 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40586 size_t to avoid warning.
40588 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40590 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40592 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40594 * gnat_rm.texi: Remove RCS version number.
40596 * ada-tree.h (union lang_tree_node): Add chain_next option.
40598 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40600 * Make-lang.in (ada.install-info, ada.install-common,
40601 ada.uninstall): Prepend $(DESTDIR) to the destination
40602 directory in all (un)installation commands.
40603 * Makefile.in (install-gnatlib, install-rts): Ditto.
40605 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40607 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40608 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40609 gnat_ug_wnt.texi: Regenerate.
40611 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40613 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40615 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40616 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40617 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40618 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40619 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40620 $(srcdir)/doc/include/gcc-common.texi.
40622 2002-12-15 Geert Bosch <bosch@gnat.com>
40624 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40626 2002-12-14 Geert Bosch <bosch@gnat.com>
40629 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40630 case of a body created for a Renaming_As_Body, on which
40631 conformance checks are not performed.
40633 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40635 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40636 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40637 not already included.
40638 * Make-lang.in: Update dependencies.
40640 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40641 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40642 solution to buffer overflow bug on GNU/Linux.
40644 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40648 * bindgen.adb: Remove all references to Public_Version.
40649 * comperr.adb: Remove all references to Public_Version and
40650 GNATPRO_Version; correct bug reporting instructions.
40651 * comperr.ads: Change to match bug box.
40652 * gnatvsn.ads: Remove all references to Public version and
40655 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40658 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40662 * config-lang.in: Remove diff_excludes.
40664 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40667 * trans.c (gnu_pending_elaboration_lists): New GC root.
40668 (build_unit_elab): Use..
40670 2002-10-30 Geert Bosch <bosch@gnat.com>
40673 * misc.c : Include optabs.h
40675 * Make-lang.in (misc.o): Add dependency on optabs.h
40677 2002-10-29 Geert Bosch <bosch@gnat.com>
40680 * Make-lang.in (gnatbind): Depend on CONFIG_H
40682 2002-10-29 Geert bosch <bosch@gnat.com>
40685 * misc.c: Unrevert misc.c (1.13)
40687 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40689 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40690 maintainership comments.
40692 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40695 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40696 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40697 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40698 7staprop.adb: Correct statements in comments about
40699 maintainership of GNAT.
40702 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40703 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40704 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40705 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40706 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40707 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40708 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40709 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40710 comments about maintainership of GNAT.
40712 PR ada/6919 (forward port of patch for PR ada/5904)
40713 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40714 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40715 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40716 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40717 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40718 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40719 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40720 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40721 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40722 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40723 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40724 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40725 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40726 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40727 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40728 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40729 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40730 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40731 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40732 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40733 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40734 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40735 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40736 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40737 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40738 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40739 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40740 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40741 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40742 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40743 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40744 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40745 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40746 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40747 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40748 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40749 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40750 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40751 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40752 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40753 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40754 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40755 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40756 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40757 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40758 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40759 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40760 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40761 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40762 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40763 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40764 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40765 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40766 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40767 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40768 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40769 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40770 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40771 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40772 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40773 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40774 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40775 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40776 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40777 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40778 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40779 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40780 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40781 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40782 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40783 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40784 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40785 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40786 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40787 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40788 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40789 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40790 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40791 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40792 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40793 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40794 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40795 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40796 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40797 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40798 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40799 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40800 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40801 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40802 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40803 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40804 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40805 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40806 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40807 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40808 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40809 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40810 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40811 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40812 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40813 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40814 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40815 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40816 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40817 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40818 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40819 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40820 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40821 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40822 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40823 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40824 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40825 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40826 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40827 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40828 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40829 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40830 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40831 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40832 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40833 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40834 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40835 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40836 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40837 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40838 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40839 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40840 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40841 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40842 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40843 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40844 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40845 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40846 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40847 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40848 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40849 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40850 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40851 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40852 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40853 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40854 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40855 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40856 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40857 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40858 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40859 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40860 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40861 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40862 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40863 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40864 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40865 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40866 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40867 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40868 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40869 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40870 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40871 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40872 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40873 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40874 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40875 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40876 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40877 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40878 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40879 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40880 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40881 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40882 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40883 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40884 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40885 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40886 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40887 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40888 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40889 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40890 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40891 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40892 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40893 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40894 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40895 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40896 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40897 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40898 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40899 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40900 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40901 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40902 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40903 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40904 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40905 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40906 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40907 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40908 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40909 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40910 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40911 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40912 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40913 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40914 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40915 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40916 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40917 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40918 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40919 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40920 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40921 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40922 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40923 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40924 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40925 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40926 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40927 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40928 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40929 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40930 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40931 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40932 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40933 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40934 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40935 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40936 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40937 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40938 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40939 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40940 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40941 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40942 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40943 stringt.ads stringt.h style.adb style.ads stylesw.adb
40944 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40945 table.adb table.ads targparm.adb targparm.ads targtyps.c
40946 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40947 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40948 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40949 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40950 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40951 usage.ads utils.c utils2.c validsw.adb validsw.ads
40952 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40953 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40954 xtreeprs.adb: Correct statements in comments about maintainership
40957 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40959 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40960 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40961 * gnatvsn.ads: Gnat_Version_String is now a function.
40962 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40963 copy the C version_string into a String and return it.
40964 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40965 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40966 Remove pragma Ident (Gnat_Version_String). If this was the
40967 sole use of package Gnatvsn, remove the with statement too.
40968 * gnat1drv.adb: Tweak -gnatv output.
40970 2002-09-17 Richard Henderson <rth@redhat.com>
40972 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40973 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40974 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40975 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40976 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40977 and real_2expN instead of a loop.
40978 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40979 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40981 2002-08-25 Andre Leis <a.leis@gmx.net>
40982 David Billinghurst <David.Billinghurst@riotinto.com>
40984 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40986 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40988 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40989 Remove $(CONFIG_H) dependency.
40991 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40993 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40995 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40997 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40999 * misc.c (gnat_decode_option): Likewise.
41001 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
41003 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41004 function approach did not work well because of a side effect (the
41005 function call could reallocate the table which was being indexed
41006 using its result). Fixes ada/4851. [RESURRECTED]
41008 2002-07-01 Roger Sayle <roger@eyesopen.com>
41010 * ada/utils.c (builtin_function): Accept an additional parameter.
41012 2002-06-28 Andreas Jaeger <aj@suse.de>
41015 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
41018 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41020 * Makefile.in (SHELL): Set to @SHELL@.
41022 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41024 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
41025 array size calculation.
41027 2002-06-04 Andreas Jaeger <aj@suse.de>
41029 * Make-lang.in (gnatbind): Readd rule that has been lost in last
41032 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
41034 Merge from pch-branch:
41036 * config-lang.in (gtfiles): Add ada-tree.h.
41037 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
41038 (SET_TYPE_MODULUS): New.
41039 (SET_TYPE_INDEX): New.
41040 (SET_TYPE_DIGITS_VALUE): New.
41041 (SET_TYPE_RM_SIZE): New.
41042 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
41043 (SET_TYPE_ADA_SIZE): New.
41044 (SET_TYPE_ACTUAL_BOUNDS): New.
41045 (SET_DECL_CONST_CORRESPONDING_VAR): New.
41046 (SET_DECL_ORIGINAL_FIELD): New.
41047 (TREE_LOOP_ID): Correct typo.
41048 * decl.c: Use new macros.
41049 * utils.c: Include debug.h, use new macros.
41050 * utils2.c: Use new macros.
41052 * ada-tree.h: Update all macros for new tree description.
41053 (struct tree_loop_id): New.
41054 (union lang_tree_node): New.
41055 (struct lang_decl): New.
41056 (struct lang_type): New.
41057 * misc.c (gnat_mark_tree): Delete.
41058 (LANG_HOOKS_MARK_TREE): Delete.
41059 * trans.c (tree_transform): No longer any need to cast
41062 * utils.c (struct language_function): New dummy structure.
41064 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41065 (misc.o): Likewise.
41066 (utils.o): Likewise; also gtype-ada.h.
41067 * Make-lang.in (gnat1): Add dependency on s-gtype.
41068 (gnatbind): Add dependency on $(CONFIG_H).
41069 * utils.c: Correct last #include.
41070 (stuct e_stack): Remove unnecessary 'static'.
41071 (mark_e_stack): Remove unused prototype.
41073 * scn-nlit.adb: Remove whitespace after version number to
41074 keep lines under 80 chars.
41075 * snames.adb: Likewise.
41076 * treepr.ads: Likewise.
41078 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41079 (misc.o): Likewise.
41080 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41081 * config-lang.in (gtfiles): New.
41082 * decl.c: Use gengtype for roots.
41083 * gigi.h: Use gengtype for roots.
41084 * trans.c: Use gengtype for roots.
41085 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
41087 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
41089 * misc.c (gnat_init): Adjust setting of internal_error_function.
41091 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
41093 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41094 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41095 gnat_ug_wnt.texi: Regenerate.
41097 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
41099 * 5ntaprop.adb (with System.OS_Primitives): Remove.
41101 * cstreams.c (max_path_len): Move from here ...
41102 * adaint.c (__gnat_max_path_len): ... to here.
41103 * adaint.c (__gnat_max_path_len): Declare.
41104 * g-dirope.adb (Max_Path): Adjust.
41105 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41106 * i-cstrea.ads (max_path_len): Adjust.
41107 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41108 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41110 * Makefile.in, Make-lang.in: Documentation is now built in
41111 Make-lang.in. Store Info and generated Texinfo files in the
41113 * gnat_ug.texi: Remove CVS keywords, correct version number.
41114 Set file name correctly.
41116 * gnat_ug_*.texi: Add.
41117 * .cvsignore: Ignore generated Texinfo files.
41119 2002-05-30 Zack Weinberg <zack@codesourcery.com>
41121 * ada.h: Add MI guard macro.
41122 (SUBTYPE): Define constants with an anonymous enum, not static
41124 (IN): Cast constants to appropriate type before use.
41126 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
41128 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41131 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41133 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41134 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41135 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41136 (ALL_ADA_CFLAGS): Likewise.
41137 (ADA_INCLUDES): Likewise.
41138 Adapt for new working dir.
41139 (GNATBIND): Use Makefile.in version.
41140 (.SUFFIXES): Copy from Makefile.in.
41141 (ada-warn): Define.
41142 (.adb.o, .ads.o): Copy from Makefile.in.
41143 Added $(OUTPUT_OPTION).
41144 (GNAT1_C_OBJS): Moved from Makefile.in.
41145 Prefix with ada subdir.
41146 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41147 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41148 Adapt for new working dir.
41149 (EXTRA_GNATBIND_OBJS): Likewise.
41150 (ADA_BACKEND): Moved from Makefile.in.
41151 Renamed to avoid conflict with global BACKEND.
41153 (TARGET_ADA_SRCS): Moved from Makefile.in.
41154 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41156 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41157 (ada_extra_files): Moved from Makefile.in.
41158 Prefix with ada subdir.
41159 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41160 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41161 (ada/nmake.ads): Likewise.
41162 (update-sources): Moved from Makefile.in.
41163 Prefix with ada subdir.
41164 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41165 (ADA_TREE_H): Likewise.
41166 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41167 (ada/memtrack.o): Likewise.
41168 (ada/adadecode.o): Likewise.
41169 Update dependencies.
41170 (ada/adaint.o): New.
41171 (ada/argv.o): Moved from Makefile.in.
41172 Prefix with ada subdir.
41173 Update dependencies.
41174 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41175 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41176 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41177 Prefix with ada subdir.
41178 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41179 (GNAT DEPENDENCIES): Regenerate.
41180 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41181 toplevel Makefile.in.
41182 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41183 (TARGET_ADA_SRCS): Removed.
41184 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41185 (GNATBIND_OBJS): Likewise.
41186 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41187 (BACKEND): Removed.
41188 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41189 (TREE_H): Likewise.
41190 (ada_extra_files): Likewise.
41191 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41192 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41193 (update-sources): Likewise.
41194 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41195 (ADA_TREE_H): Likewise.
41196 (adadecoce.o): Likewise.
41197 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41198 (GNAT DEPENDENCIES): Likewise.
41200 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41202 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41203 * Makefile.in: Likewise.
41205 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41207 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41208 Restore $(CONFIG_H) and prefix.o dependencies.
41209 (ada.stage[1-4]): Depend on stage?-start.
41211 * Makefile.in (b_gnatb.c): Depend on interfac.o.
41213 2002-05-02 Jim Wilson <wilson@redhat.com>
41215 * utils.c (finish_record_type): Change record_size to record_type.
41217 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
41219 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41220 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41221 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41223 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
41225 * misc.c (gnat_parse_file): Update.
41227 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41229 * misc.c (gnat_init): Don't set lang_attribute_common.
41231 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41233 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41235 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41237 * gnat_ug.texi: New file.
41239 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41240 instead of gfdl.texi
41242 * xgnatug.adb, ug_words: New files.
41244 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41245 gnat_rm and gnat-style manuals.
41247 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41249 * gigi.h (incomplete_type_error): Remove.
41250 * utils.c (incomplete_type_error): Remove.
41252 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41254 * trans.c (tree_transform): Add has_scope argument to
41255 expand_start_stmt_expr.
41257 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41259 * gigi.h (truthvalue_conversion): Rename.
41260 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41261 * trans.c (tree_transform): Update.
41262 * utils2.c (truthvalue_conversion): Rename, update.
41263 (build_binary_op, build_unary_op): Update.
41265 2002-04-04 Laurent Guerby <guerby@acm.org>
41267 * make.adb: Implement -margs, remove restriction about file name placement.
41268 * makeusg.adb: Documentation update.
41269 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41270 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41272 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41274 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41275 (builtin_function): Similarly.
41277 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41279 * decl.c (gnat_to_gnu_entity): Update.
41280 * gigi.h (mark_addressable): Rename.
41281 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41282 * trans.c (tree_transform): Update.
41283 * utils.c (create_var_decl): Update.
41284 * util2.c (build_binary_op, build_unary_op,
41285 fill_vms_descriptor): Update.
41286 (mark_addressable): Rename, update.
41288 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41290 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41292 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41293 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41294 * trans.c (tree_transform, convert_with_check): Update.
41295 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41298 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41300 * gigi.h (finish_incomplete_decl): Rename.
41301 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41302 * utils.c (gnat_init_decl_processing): Don't set hook.
41303 (finish_incomplete_decl): Rename.
41305 2002-03-29 Andreas Schwab <schwab@suse.de>
41307 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41310 2001-03-28 Robert Dewar <dewar@gnat.com>
41313 (Remove_Checks): New procedure
41316 (Remove_Checks): New procedure
41319 Use new Duplicate_Subexpr functions
41320 (Duplicate_Subexpr_No_Checks): New procedure
41321 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41322 (Duplicate_Subexpr): Restore original form (checks duplicated)
41323 (Duplicate_Subexpr): Call Remove_Checks
41326 (Duplicate_Subexpr_No_Checks): New procedure
41327 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41328 Add 2002 to copyright notice
41330 * sem_util.adb: Use new Duplicate_Subexpr functions
41333 (Eval_Indexed_Component): This is the place to call
41334 Constant_Array_Ref and to replace the value. We simply merge
41335 the code of this function in here, since it is now no longer
41336 used elsewhere. This fixes the problem of the back end not
41337 realizing we were clever enough to see that this was
41339 (Expr_Val): Remove call to Constant_Array_Ref
41340 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41342 (Constant_Array_Ref): Deal with string literals (patch
41343 suggested by Zack Weinberg on the gcc list)
41345 2001-03-28 Ed Schonberg <schonber@gnat.com>
41347 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41348 Duplicate_Subexpr_Move_Checks.
41350 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41351 Duplicate_Subexpr_Move_Checks.
41353 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41354 value of array exists before retrieving it (it may a private
41355 protected component in a function).
41357 2002-03-28 Geert Bosch <bosch@gnat.com>
41359 * prj-pp.adb : New file.
41361 * prj-pp.ads : New file.
41363 2002-03-28 Andreas Jaeger <aj@suse.de>
41365 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41367 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41369 * misc.c (gnat_expand_expr): Move prototype.
41371 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41373 * misc.c (insert_default_attributes): Remove.
41375 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41377 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41378 (gnat_init): Don't set hook.
41379 (gnat_expand_expr): Fix prototype.
41381 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41383 * misc.c (ggc_p): Remove.
41385 2002-03-27 Geert Bosch <bosch@gnat.com>
41387 * prj-makr.ads, prj-makr.adb : New files.
41389 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41391 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41392 (lang_mark_tree): Make static, rename.
41394 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41396 * misc.c (maybe_build_cleanup): Remove.
41398 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41400 * gigi.h (yyparse): Remove.
41402 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41404 From Ben Brosgol <brosgol@gnat.com>
41405 * gnat_rm.texi: Sync with ACT version.
41407 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41409 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41410 (gnat_init): Remove old hook.
41412 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41414 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41415 (yyparse): Rename gnat_parse_file.
41417 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41419 Delete all lines containing "$Revision:".
41420 * xeinfo.adb: Don't look for revision numbers.
41421 * xnmake.adb: Likewise.
41422 * xsinfo.adb: Likewise.
41423 * xsnames.adb: Likewise.
41424 * xtreeprs.adb: Likewise.
41426 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41428 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41429 gnat_tree_code_name): Delete.
41430 (tree_code_type, tree_code_length, tree_code_name): Define.
41431 (gnat_init): Don't try to copy into the various tree_code
41434 2002-03-11 Richard Henderson <rth@redhat.com>
41436 * Makefile.in (.NOTPARALLEL): Add fake tag.
41438 2002-03-07 Geert Bosch <bosch@gnat.com>
41440 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41441 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41442 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41443 switch-m.adb, switch-m.ads : New files.
41445 2002-03-07 Geert Bosch <bosch@gnat.com>
41447 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41448 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41449 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41450 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41451 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41452 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41453 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41454 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41455 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41456 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41457 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41458 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41459 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41460 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41461 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41462 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41463 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41464 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41465 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41466 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41467 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41468 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41469 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41470 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41471 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41472 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41473 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41474 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41475 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41476 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41477 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41478 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41479 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41480 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41481 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41482 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41483 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41484 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41485 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41486 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41487 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41488 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41489 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41490 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41491 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41492 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41493 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41494 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41495 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41496 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41497 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41498 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41499 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41500 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41501 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41502 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41503 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41504 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41505 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41506 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41507 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41508 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41509 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41510 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41511 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41512 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41513 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41514 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41515 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41516 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41517 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41518 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41519 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41520 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41521 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41522 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41523 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41524 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41525 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41526 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41527 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41528 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41529 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41530 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41531 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41532 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41533 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41534 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41535 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41536 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41537 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41538 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41539 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41540 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41541 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41542 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41543 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41545 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41546 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41547 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41548 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41550 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41551 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41553 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41554 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41556 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41557 from mdllfile.ad[bs] and mdlltool.ad[bs]
41559 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41561 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41562 lieu of explicit sizeof/sizeof.
41564 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41566 * misc.c (copy_lang_decl): Remove.
41568 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41570 * misc.c: Delete traditional-mode-related code copied from the
41571 C front end but not used, or used only to permit the compiler
41574 2002-02-07 Richard Henderson <rth@redhat.com>
41576 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41577 * adaint.h (__gnat_to_gm_time): Update prototype.
41579 2002-01-30 Richard Henderson <rth@redhat.com>
41581 * trans.c (tree_transform) [N_Loop_Statement]: Use
41582 expand_exit_loop_top_cond.
41584 2001-12-23 Richard Henderson <rth@redhat.com>
41586 * utils.c (end_subprog_body): Push GC context around
41587 rest_of_compilation for nested functions.
41589 2001-12-23 Richard Henderson <rth@redhat.com>
41591 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41593 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41595 * gnat-style.texi (Declarations and Types): Remove ancient style
41596 rule which was mandated by code generation issues.
41598 * gnat-style.texi (header): Add @dircategory, @direntry.
41599 (title page): Remove date.
41600 (general) Add @./@: where approriate, and two spaces after the
41601 full stop at the end of a sentence. Use @samp markup when
41602 referring concrete lexical entities (keywords, attribute names
41603 etc.), and @syntax for ARM grammar elements. Use @r for English
41604 text in comments. Use @emph for emphasis. Change "if-statements"
41605 etc. to "if statements" (without @samp). Break long lines. Make
41606 casing of section names consistent.
41607 (Identifiers): Use @samp markup for variable names.
41608 (Comments): Use @samp markup for comment characters. Line-end
41609 comments may follow any Ada code, not just statements. Fix
41610 misspelling of "Integer" as "integer".
41611 (Loop statements): Do not use variable name "I", use "J".
41612 (Subprogram Declarations): Document alignment.
41613 (Subprogram Bodies, Block statements): Document empty line before
41616 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41618 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41619 function approach did not work well because of a side effect (the
41620 function call could reallocate the table which was being indexed
41621 using its result). Fixes ada/4851.
41623 2001-12-19 Robert Dewar <dewar@gnat.com>
41625 * bindgen.adb: Minor reformatting
41627 * cstand.adb: Minor reformatting
41629 * fmap.adb: Minor reformatting
41630 Change name from Add for Add_To_File_Map (Add is much too generic)
41631 Change Path_Name_Of to Mapped_Path_Name
41632 Change File_Name_Of to Mapped_File_Name
41633 Fix copyright dates in header
41636 Change name from Add for Add_To_File_Map (Add is much too generic)
41637 Change Path_Name_Of to Mapped_Path_Name
41638 Change File_Name_Of to Mapped_File_Name
41639 Fix copyright dates in header
41641 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41642 Add use clause for Fmap.
41644 * make.adb: Minor reformatting
41646 * osint.adb: Minor reformatting. Change of names in Fmap.
41647 Add use clause for Fmap.
41649 * prj-env.adb: Minor reformatting
41651 * prj-env.ads: Minor reformatting
41653 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41654 error found (there were odd exceptions to this general rule in
41655 -gnatec/-gnatem processing)
41657 2001-12-19 Olivier Hainque <hainque@gnat.com>
41659 * raise.c (__gnat_eh_personality): Exception handling personality
41660 routine for Ada. Still in rough state, inspired from the C++ version
41661 and still containing a bunch of debugging artifacts.
41662 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41663 inspired from the C++ library.
41665 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41666 exception handling integration.
41668 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41670 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41671 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41672 (HIE_OBJS): Add s-fat*.o
41673 (RAVEN_SOURCES): Remove files that are no longer required. Add
41674 interrupt handling files.
41675 (RAVEN_MOD): Removed, no longer needed.
41677 2001-12-19 Robert Dewar <dewar@gnat.com>
41679 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41680 Add 2001 to copyright date
41682 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41683 need to force universal inlining for these cases.
41685 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41687 * s-taprob.adb: Minor clean ups so that this unit can be used in
41690 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41691 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41693 2001-12-19 Vincent Celier <celier@gnat.com>
41695 * prj-tree.ads (Project_Node_Record): Add comments for components
41696 Pkg_Id and Case_Insensitive.
41698 2001-12-19 Pascal Obry <obry@gnat.com>
41700 * g-socket.adb: Minor reformatting. Found while reading code.
41702 2001-12-19 Robert Dewar <dewar@gnat.com>
41704 * prj-tree.ads: Minor reformatting
41706 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41708 * config-lang.in (diff_excludes): Remove.
41710 2001-12-17 Ed Schonberg <schonber@gnat.com>
41712 * sem_res.adb (Resolve_Selected_Component): do not generate a
41713 discriminant check if the selected component is a component of
41714 the argument of an initialization procedure.
41716 * trans.c (tree_transform, case of arithmetic operators): If result
41717 type is private, the gnu_type is the base type of the full view,
41718 given that the full view itself may be a subtype.
41720 2001-12-17 Robert Dewar <dewar@gnat.com>
41722 * sem_res.adb: Minor reformatting
41724 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41725 parameter in call to Machine (unknown horrible effects from this
41728 * urealp.h: Add definition of Round_Even for call to Machine
41729 Add third parameter for Machine
41731 2001-12-17 Ed Schonberg <schonber@gnat.com>
41733 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41734 predefined units in No_Run_Time mode.
41736 2001-12-17 Richard Kenner <kenner@gnat.com>
41738 * misc.c (insn-codes.h): Now include.
41740 2001-12-17 Olivier Hainque <hainque@gnat.com>
41742 * a-except.adb: Preparation work for future integration of the GCC 3
41743 exception handling mechanism
41744 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41745 to factorize previous code sequences and make them externally callable,
41746 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41747 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41748 Use the new notification routines.
41750 2001-12-17 Emmanuel Briot <briot@gnat.com>
41752 * prj-tree.ads (First_Choice_Of): Document the when others case
41754 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41756 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41757 HI-E mode, in order to support Ravenscar profile properly.
41759 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41760 mode on 32 bits targets.
41762 2001-12-17 Vincent Celier <celier@gnat.com>
41764 * fmap.adb: Initial version.
41766 * fmap.ads: Initial version.
41768 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41769 If search is successfully done, add to mapping.
41771 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41774 (Gnatmake): Add new local variable Mapping_File_Name.
41775 Create mapping file when using project file(s).
41776 Delete mapping file before exiting.
41778 * opt.ads (Mapping_File_Name): New variable
41780 * osint.adb (Find_File): Use path name found in mapping, if any.
41782 * prj-env.adb (Create_Mapping_File): New procedure
41784 * prj-env.ads (Create_Mapping_File): New procedure.
41786 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41789 * usage.adb: Add entry for new switch -gnatem.
41791 * Makefile.in: Add dependencies for fmap.o.
41793 2001-12-17 Ed Schonberg <schonber@gnat.com>
41795 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41796 is a package instantiation rewritten as a package body.
41797 (Install_Withed_Unit): Undo previous change, now redundant.
41799 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41802 (Compute_Length): Move conversion to Unsigned to callers.
41803 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41804 Compute_Length and Determine_Range.
41805 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41806 Compute_Length and Determine_Range.
41807 Above changes fix problem with length computation for supernull arrays
41808 where Max (Len, 0) wasn't getting applied due to the Unsigned
41809 conversion used by Compute_Length.
41811 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41814 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41815 System.Secondary_Stack.
41816 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41818 Remove unused entity RE_Exception_Data.
41820 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41822 * rident.ads (No_Secondary_Stack): New restriction.
41824 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41826 * gnat_rm.texi: Fix minor typos. Found while reading the section
41827 regarding "Bit_Order Clauses" that was sent to a customer.
41828 Very interesting documentation!
41830 2001-12-17 Robert Dewar <dewar@gnat.com>
41832 * sem_case.adb (Choice_Image): Avoid creating improper character
41833 literal names by using the routine Set_Character_Literal_Name. This
41834 fixes bombs in certain error message cases.
41836 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41838 * a-reatim.adb: Minor reformatting.
41840 2001-12-17 Ed Schonberg <schonber@gnat.com>
41842 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41843 case where the formal is an extension of another formal in the current
41844 unit or in a parent generic unit.
41846 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41848 * s-tposen.adb: Update comments. Minor reformatting.
41849 Minor code clean up.
41851 * s-tarest.adb: Update comments. Minor code reorganization.
41853 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41855 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41858 2001-12-17 Robert Dewa <dewar@gnat.com>
41860 * exp_attr.adb: Minor reformatting
41862 2001-12-17 Ed Schonberg <schonber@gnat.com>
41864 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41865 derivations nested within a child unit: verify that the parent
41866 type is declared in an outer scope.
41868 2001-12-17 Robert Dewar <dewar@gnat.com>
41870 * sem_ch12.adb: Minor reformatting
41872 2001-12-17 Ed Schonberg <schonber@gnat.com>
41874 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41875 warning if current unit is a predefined one, from which bodies may
41878 2001-12-17 Robert Dewar <dewar@gnat.com>
41880 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41881 Fix header format. Add 2001 to copyright date.
41883 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41884 which caused CE during compilation if checks were enabled.
41886 2001-12-17 Vincent Celier <celier@gnat.com>
41889 (Switches_Of): New function
41890 (Test_If_Relative_Path): New procedure
41891 (Add_Switches): Use new function Switches_Of
41892 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41893 When using a project file, test if there are any relative
41894 search path. Fail if there are any.
41895 (Gnatmake): Only add switches for the primary directory when not using
41896 a project file. When using a project file, change directory to the
41897 object directory of the main project file. When using a project file,
41898 test if there are any relative search path. Fail if there are any.
41899 When using a project file, fail if specified executable is relative
41900 path with directory information, and prepend executable, if not
41901 specified as an absolute path, with the exec directory. Make sure
41902 that only one -o switch is transmitted to the linker.
41904 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41907 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41908 when using a non standard naming scheme.
41909 (Check_Ada_Naming_Scheme): Make sure that error messages
41910 do not raise exceptions.
41911 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41912 (Language_Independent_Check): Check the exec directory.
41914 * prj.adb (Project_Empty): Add new component Exec_Directory
41917 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41918 (Project_Data): Add component Exec_Directory
41920 * snames.adb: Updated to match snames.ads revision 1.215
41922 * snames.ads: Added Exec_Dir
41924 2001-12-17 Robert Dewar <dewar@gnat.com>
41926 * make.adb: Minor reformatting
41928 * prj-nmsc.adb: Minor reformatting
41930 * snames.adb: Updated to match snames.ads
41932 * snames.ads: Alphebetize entries for project file
41934 2001-12-17 Ed Schonberg <schonber@gnat.com>
41936 * trans.c (process_freeze_entity): Do nothing if the entity is a
41937 subprogram that was already elaborated.
41939 2001-12-17 Richard Kenner <kenner@gnat.com>
41941 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41942 and Esize if object is referenced via pointer.
41944 2001-12-17 Ed Schonberg <schonber@gnat.com>
41946 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41947 is discrete before analyzing choices.
41949 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41951 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41952 containing the name of the Ada Main Program. This string is mainly
41953 intended for the debugger.
41954 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41956 2001-12-17 Robert Dewar <dewar@gnat.com>
41958 * ali.adb: Set new Dummy_Entry field in dependency entry
41960 * ali.ads: Add Dummy_Entry field to source dependency table
41962 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41964 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41966 * lib-writ.ads: Document dummy D lines for missing files.
41968 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41970 2001-12-17 Robert Dewar <dewar@gnat.com>
41972 * ali.adb: Type reference does not reset current file.
41974 * ali.adb: Recognize and scan renaming reference
41976 * ali.ads: Add spec for storing renaming references.
41978 * lib-xref.ads: Add documentation for handling of renaming references
41980 * lib-xref.adb: Implement output of renaming reference.
41983 (Determine_Range): Document local variables
41984 (Determine_Range): Make sure Hbound is initialized. It looks as though
41985 there could be a real problem here with an uninitialized reference
41986 to Hbound, but no actual example of failure has been found.
41988 2001-12-17 Laurent Pautet <pautet@gnat.com>
41991 Fix comment of Shutdown_Socket and Close_Socket. These functions
41992 should not fail silently because if they are called twice, this
41993 probably means that there is a race condition in the user program.
41994 Anyway, this behaviour is consistent with the rest of this unit.
41995 When an error occurs, an exception is raised with the error message
41996 as exception message.
41998 2001-12-17 Robert Dewar <dewar@gnat.com>
42000 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
42001 that it happens before modification of Sloc values for -gnatD.
42003 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
42004 so that it happens before modification of Sloc values for -gnatD.
42006 * switch.adb: Minor reformatting
42008 2001-12-15 Richard Henderson <rth@redhat.com>
42010 * sem_ch7.adb: Wrap comment.
42012 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42014 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
42015 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
42016 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
42017 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
42018 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
42019 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
42020 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
42021 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
42022 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
42023 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
42024 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
42025 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
42026 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
42027 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
42028 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
42029 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
42030 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
42031 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
42032 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
42033 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
42034 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
42035 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
42036 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
42037 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
42040 2001-12-14 Vincent Celier <celier@gnat.com>
42042 * osint.adb(Create_Debug_File): When an object file is specified,
42043 put the .dg file in the same directory as the object file.
42045 2001-12-14 Robert Dewar <dewar@gnat.com>
42047 * osint.adb: Minor reformatting
42049 * lib-xref.adb (Output_Instantiation): New procedure to generate
42050 instantiation references.
42052 * lib-xref.ads: Add documentation of handling of generic references.
42054 * ali.adb (Read_Instantiation_Ref): New procedure to read
42055 instantiation references
42057 * ali.ads: Add spec for storing instantiation references
42059 * bindusg.adb: Minor reformatting
42061 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42063 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42065 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42067 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42071 Add 2001 to copyright date
42072 Add entry for Latin-5 (Cyrillic ISO-8859-5)
42074 2001-12-14 Matt Gingell <gingell@gnat.com>
42076 * adaint.c: mktemp is a macro on Lynx and can not be used as an
42079 2001-12-14 Richard Kenner <kenner@gnat.com>
42081 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42082 if operand is CONSTRUCTOR.
42084 2001-12-14 Ed Schonberg <schonber@gnat.com>
42086 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42087 before emiting check on right-hand side, so that exception information
42090 2001-12-14 Richard Kenner <kenner@gnat.com>
42092 * utils.c (create_var_decl): Throw away initializing expression
42093 if just annotating types and non-constant.
42095 2001-12-14 Vincent Celier <celier@gnat.com>
42097 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42100 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42102 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42104 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42106 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42108 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42110 * ChangeLog: Remove piece of diff output.
42112 2001-12-14 Geert Bosch <bosch@gnat.com>
42114 * config-lang.in: Update copyright notice
42116 * layout.adb: Remove commented out code.
42118 * mdllfile.ads: Update copyright notice. Fix header format.
42120 * sem_case.ads: Likewise.
42122 * sem_ch3.adb: Minor reformatting.
42124 2001-12-12 Geert Bosch <bosch@gnat.com>
42126 * freeze.ads: Update copyright date.
42128 * g-comlin.ads: Minor reformatting.
42130 * gnat-style.texi: Fix typo.
42132 2001-12-12 Geert Bosch <bosch@gnat.com>
42134 * einfo.h: Regenerate.
42136 2001-12-12 Ed Schonberg <schonber@gnat.com>
42138 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42139 on known node types, rather than untyped fields. Further cleanups.
42141 2001-12-12 Robert Dewar <dewar@gnat.com>
42144 (Save_Entity_Descendant): Minor comment update.
42145 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42146 of an N_Attribute_Reference node. As per note below, this does not
42147 eliminate need for Associated_Node in attribute ref nodes.
42148 (Associated_Node): Documentation explicitly mentions attribute
42149 reference nodes, since this field is used in such nodes.
42151 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42153 2001-12-12 Robert Dewar <dewar@gnat.com>
42155 * s-stalib.adb: Add more comments on with statements being needed
42157 * par-ch12.adb: Minor reformatting
42159 * prj-dect.ads: Fix copyright header
42161 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42162 inputs fit in 32 bits, but the result still overflows.
42164 * s-fatgen.ads: Minor comment improvement
42166 2001-12-12 Ed Schonberg <schonber@gnat.com>
42168 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42169 formal derived type, look for an inherited component from the full
42170 view of the parent, if any.
42172 2001-12-12 Robert Dewar <dewar@gnat.com>
42174 * checks.ads (Apply_Alignment_Check): New procedure.
42176 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42177 ensure that the alignment of objects with address clauses is
42178 appropriate, and raise PE if not.
42180 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42181 Exp_Pakd.Known_Aligned_Enough
42183 * mdllfile.ads: Minor reformatting
42185 * mlib-fil.ads: Minor reformatting
42187 2001-12-12 Ed Schonberg <schonber@gnat.com>
42189 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42190 fix to any component reference if enclosing record has non-standard
42193 2001-12-12 Vincent Celier <celier@gnat.com>
42195 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42198 2001-12-12 Ed Schonberg <schonber@gnat.com>
42200 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42203 2001-12-12 Robert Dewar <dewar@gnat.com>
42205 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42207 2001-12-12 Emmanuel Briot <briot@gnat.com>
42209 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42210 and it adds dependencies to system.io.
42212 2001-12-12 Pascal Obry <obry@gnat.com>
42214 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42217 2001-12-11 Ed Schonberg <schonber@gnat.com>
42219 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42220 that is the parent of other generics, the instance body replaces the
42221 instance node. Retrieve the instance of the spec, which is the one
42222 that is visible in clients and within the body.
42224 2001-12-11 Vincent Celier <celier@gnat.com>
42226 * gnatmain.adb: Initial version.
42228 * gnatmain.ads: Initial version.
42230 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42232 * snames.adb: Updated to match snames.ads.
42234 * snames.ads: Added Gnatstub.
42236 2001-12-11 Vincent Celier <celier@gnat.com>
42238 * prj-attr.adb (Initialization_Data): Change name from
42239 Initialisation_Data.
42241 2001-12-11 Emmanuel Briot <briot@gnat.com>
42243 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42244 + and * applied to backslashed expressions like \r.
42246 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42248 * g-os_lib.ads: String_List type added, Argument_List type is now
42249 subtype of String_List.
42251 2001-12-11 Robert Dewar <dewar@gnat.com>
42253 * g-os_lib.ads: Change copyright to FSF
42254 Add comments for String_List type
42256 2001-12-11 Vincent Celier <celier@gnat.com>
42258 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42259 string to the buffer).
42261 2001-12-11 Ed Schonberg <schonber@gnat.com>
42263 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42266 * sem_attr.adb: Simplify previous fix for Address.
42267 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42268 to avoid anomalies where the bound of the type appears to raise
42271 2001-12-11 Robert Dewar <dewar@gnat.com>
42273 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42276 2001-12-11 Ed Schonber <schonber@gnat.com>
42278 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42279 renamed unit before checking for recursive instantiations.
42281 2001-12-11 Emmanuel Briot <briot@gnat.com>
42283 * prj.ads: Add comments for some of the fields.
42285 2001-12-11 Robert Dewar <dewar@gnat.com>
42287 * lib-xref.adb (Output_Refs): Don't output type references outside
42288 the main unit if they are not otherwise referenced.
42290 2001-12-11 Ed Schonberg <schonber@gnat.com>
42292 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42293 code and diagnose additional illegal uses
42295 * sem_util.adb (Is_Object_Reference): An indexed component is an
42296 object only if the prefix is.
42298 2001-12-11 Vincent Celier <celier@gnat.com>
42300 * g-diopit.adb: Initial version.
42302 * g-diopit.ads: Initial version.
42305 (Expand_Path): Avoid use of Unbounded_String
42306 (Find, Wildcard_Iterator): Moved to child package Iteration
42308 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42310 2001-12-11 Robert Dewar <dewar@gnat.com>
42312 * sem_attr.adb: Minor reformatting
42314 2001-12-11 Ed Schonberg <schonber@gnat.com>
42316 * sem_ch3.adb: Clarify some ???.
42318 2001-12-11 Robert Dewar <dewar@gnat.com>
42320 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42321 Exp_Pakd.Known_Aligned_Enough
42323 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42324 version is moved to Exp_Ch13.
42326 2001-12-11 Robert Dewar <dewar@gnat.com>
42328 * einfo.ads: Minor reformatting
42330 * exp_ch5.adb: Add comment for previous.change
42332 * ali.adb: New interface for extended typeref stuff.
42334 * ali.ads: New interface for typeref stuff.
42336 * checks.adb (Apply_Alignment_Check): New procedure.
42338 * debug.adb: Add -gnatdM for modified ALI output
42340 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42342 * lib-xref.adb: Extend generation of <..> notation to cover
42343 subtype/object types. Note that this is a complete rewrite,
42344 getting rid of the very nasty quadratic algorithm previously
42345 used for derived type output.
42347 * lib-xref.ads: Extend description of <..> notation to cover
42348 subtype/object types. Uses {..} for these other cases.
42349 Also use (..) for pointer types.
42351 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42353 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42354 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42356 2001-12-11 Vincent Celier <celier@gnat.com>
42359 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42360 Changed /BIND_ONLY to /ACTIONS=BIND
42361 Changed /LINK_ONLY to /ACTIONS=LINK
42363 2001-12-11 Ed Schonberg <schonber@gnat.com>
42365 * sem_ch8.adb (Find_Selected_Component): improved search for a
42366 candidate package in case of error.
42368 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42369 chain back on scope stack before reinstalling use clauses.
42371 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42372 is enabled, do not kill the code for the condition, to preserve
42375 2001-12-11 Robert Dewar <dewar@gnat.com>
42377 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42378 of conversion, not to result of conversion.
42380 2001-12-11 Ed Schonberg <schonber@gnat.com>
42382 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42383 before freezing parent. If the declarations are mutually recursive,
42384 an access to the current record type may be frozen before the
42385 derivation is complete.
42387 2001-12-05 Vincent Celier <celier@gnat.com>
42389 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42390 -c /COMPILE_ONLY, -l /LINK_ONLY
42393 (Bind_Only): New Flag
42394 (Link_Only): New flag
42396 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42399 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42402 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42403 (Gnatmake): Set the step flags. Only perform a step if the
42404 corresponding step flag is True.
42405 (Scan_Make_Arg): Reset the bind and link step flags when -u
42406 or -gnatc has been specified.
42408 2001-12-05 Ed Schonberg <schonber@gnat.com>
42410 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42411 get bounds from right operand.
42413 * sem_eval.adb: Minor reformatting
42415 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42416 than Index'First, its lower bound may be different from 1.
42418 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42421 2001-12-05 Vincent Celier <celier@gnat.com>
42423 * prj-nmsc.adb Minor reformatting
42425 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42426 set and libraries are not supported.
42428 2001-12-05 Ed Schonberg <schonber@gnat.com>
42430 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42431 private view explicitly, so the back-end can treat as a global
42434 2001-12-05 Ed Schonberg <schonber@gnat.com>
42436 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42437 unit, always replace instance node with new body, for ASIS use.
42439 2001-12-05 Vincent Celier <celier@gnat.com>
42441 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42442 libraries are not supported and both attributes Library_Name and
42443 Library_Dir are specified.
42445 * prj-proc.adb (Expression): Set location of Result to location of
42448 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42449 (prj-nmsc is now importing MLib.Tgt)
42451 * prj-proc.adb: Put the change indicated above that was forgotten.
42453 2001-12-05 Robert Dewar <dewar@gnat.com>
42455 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42457 2001-12-05 Ed Schonberg <schonber@gnat.com>
42459 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42460 constraint, introduce explicit subtype declaration and derive from it.
42462 * sem_ch3.adb: Minor reformatting
42464 2001-12-05 Robert Dewar <dewar@gnat.com>
42466 * checks.adb (Determine_Range): Increase cache size for checks.
42469 * exp_ch6.adb: Minor reformatting
42470 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42471 a parameter whose root type is System.Address, since treating such
42472 subprograms as pure in the code generator is almost surely a mistake
42473 that will lead to unexpected results.
42475 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42476 change handling of conversions.
42478 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42480 2001-12-05 Ed Schonberg <schonber@gnat.com>
42482 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42483 aggregate with static wrong size, attach generated Raise node to
42486 2001-12-05 Robert Dewar <dewar@gnat.com>
42488 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42489 Fixes compilation abandoned bomb in B24009B.
42491 2001-12-05 Ed Schonberg <schonber@gnat.com>
42494 Document use of Associated_Node on Selected_Components.
42495 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42496 to clarify use of untyped descendant fields.
42498 2001-12-05 Robert Dewar <dewar@gnat.com>
42500 * prj-dect.ads: Add ??? comment
42501 Add 2001 to copyright notice (was not done in after all)
42503 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42505 * prj.ads: Minor reformatting throughout, and add some ??? comments
42507 * snames.ads: Minor reformatting
42509 2001-12-05 Geert Bosch <bosch@gnat.com>
42511 * snames.adb: Autoupdate
42513 2001-12-05 Vincent Celier <celier@gnat.com>
42515 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42517 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42519 * prj-env.adb: Minor comment changes (modifying -> extends).
42521 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42523 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42526 * prj.adb (Initialize): Change Modifying to Extends.
42528 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42530 * prj.ads: Minor comment change (Modifying -> extending).
42532 * snames.ads: Change modifying to extends.
42534 2001-12-05 Robert Dewar <dewar@gnat.com>
42536 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42539 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42540 do this after all. Add 2001 to copyright notice
42542 2001-12-04 Geert Bosch <bosch@gnat.com>
42544 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42546 2001-12-04 Robert Dewar <dewar@gnat.com>
42548 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42549 location if we already have errors. Stops some cases of cascaded
42552 * errout.adb: Improve comment.
42554 2001-12-04 Robert Dewar <dewar@gnat.com>
42557 (Analyze_Formal_Type_Definition): Defend against Error.
42558 (Analyze_Formal_Subprogram): Defend against Error.
42560 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42561 remove following semicolon if present. Removes cascaded error.
42563 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42566 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42567 exceptions equals 0.
42568 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42569 Fixes PIWG E tests (which have to be run with -gnatL).
42571 2001-12-04 Robert Dewar <dewar@gnat.com>
42573 * einfo.ads: Minor reformatting
42575 2001-12-04 Ed Schonberg <schonber@gnat.com>
42577 * einfo.ads: Block_Node points to the identifier of the block, not to
42578 the block node itself, to preserve the link when the block is
42579 rewritten, e.g. within an if-statement with a static condition.
42581 * inline.adb (Cleanup_Scopes): recover block statement from block
42582 entity using new meaning of Block_Node.
42584 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42585 identifier of block node, rather than to node itself.
42587 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42590 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42591 (Discrimify): Go back to setting the Etypes of the selected component
42592 because the Vname component does not exist at this point and will
42593 fail name resolution. Also set Analyzed.
42594 Remove with and use of Sem_Res.
42596 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42598 * Makefile.in: (HIE_SOURCES): add s-fat*.
42600 2001-12-04 Robert Dewar <dewar@gnat.com>
42603 (Compile_Time_Known_Attribute): New procedure.
42604 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42605 proper range check.
42607 2001-12-04 Ed Schonberg <schonber@gnat.com>
42609 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42610 processing discriminants to diagnose illegal default values.
42612 2001-12-04 Ed Schonberg <schonber@gnat.com>
42614 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42615 access discriminant within a type extension that constrains its
42616 parent discriminants.
42618 2001-12-04 Ed Schonberg <schonber@gnat.com>
42620 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42621 is malformed, use instance of Any_Id to allow analysis to proceed.
42623 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42624 type definition is illegal.
42625 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42628 2001-12-04 Ed Schonberg <schonber@gnat.com>
42630 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42633 2001-12-04 Robert Dewar <dewar@gnat.com>
42635 * errout.adb: Minor reformatting
42637 2001-12-04 Robert Dewar <dewar@gnat.com>
42639 * exp_util.adb: Minor reformatting from last change
42641 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42642 which is a rewriting of an expression, traverse the original
42643 expression to remove warnings that may have been posted on it.
42645 2001-12-04 Ed Schonberg <schonber@gnat.com>
42647 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42648 record that has other packed components.
42650 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42652 * adaint.c: Minor cleanups.
42654 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42656 * adaint.c: Do not use utime.h on vxworks.
42658 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42660 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42661 more confusion than it solves.
42663 2001-12-04 Geert bosch <bosch@gnat.com>
42665 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42667 2001-12-04 Geert Bosch <bosch@gnat.com>
42669 * Makefile.in (update-sources): New target.
42670 For use by gcc_release script.
42672 2001-12-04 Ed Schonberg <schonber@gnat.com>
42674 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42675 a configuration pragma, it is now legal wherever a pragma can appear.
42677 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42679 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42680 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42681 is now @CROSS@ -DIN_GCC; update comment.
42683 2001-12-04 Robert Dewar <dewar@gnat.com>
42685 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42686 Fix problem that stopped ceinfo from working
42688 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42690 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42692 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42695 (File_Time_Stamp): New procedure.
42696 (Preserve_Mode): New boolean.
42697 (Write_Unit): Pass time stamp.
42698 Implement -p switch (preserve time stamps).
42700 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42702 * gnatchop.adb: Do usage info for -p switch
42704 * adaint.h (__gnat_set_file_time_name): New function
42706 * adaint.c (__gnat_set_file_time_name): Implement
42708 * adaint.h: Fix typo
42710 2001-12-03 Robert Dewar <dewar@gnat.com>
42712 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42713 have Associated_Node.
42715 2001-12-03 Robert Dewar <dewar@gnat.com>
42717 * prj-proc.adb: Minor reformatting
42719 * make.adb: Minor reformatting
42721 2001-12-03 Geert Bosch <bosch@gnat.com>
42723 * make.adb: Minor reformatting.
42725 2001-12-03 Robert Dewar <dewar@gnat.com>
42727 * sem_ch12.adb: Minor reformatting
42729 2001-12-03 Ed Schonberg <schonber@gnat.com>
42731 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42732 push Standard on the stack before analyzing the instance body,
42733 in order to have a clean visibility environment.
42735 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42737 2001-12-03 Ed Schonberg <schonber@gnat.com>
42739 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42740 instantiation of a body that contains an inlined body.
42742 2001-12-03 Ed Schonberg <schonber@gnat.com>
42745 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42746 to prevent freezing within formal packages.
42747 (Freeze_Subprogram_Body): If body comes from another instance that
42748 appeared before its own body, place freeze node at end of current
42749 declarative part, to prevent a back-end crash.
42750 (Inline_Instance_Body): Handle properly a package instance within
42751 a subprogram instance that is a child unit.
42753 2001-12-01 Graham Stott <grahams@redhat.com>
42755 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42756 and add optabs.h dependency.
42758 * misc.c: Include optabs.h
42759 (gnat_tree_code_type): Make static and const.
42760 (gnat_tree_code_length): Likewise.
42761 (gnat_tree_code_name): Likewise.
42762 (update_setjmp_buf): Obtain operands mode from insn_data.
42764 2001-11-29 Richard Henderson <rth@redhat.com>
42766 * init.c: Remove obsolete dwarf2 frame.h section.
42768 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42770 * Make-lang.in (ada.generated-manpages): New dummy target.
42772 2001-11-29 Ed Schonberg <schonber@gnat.com>
42774 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42775 into Command, an array conversion is illegal here. Uncovered by
42778 2001-11-28 Geert Bosch <bosch@gnat.com>
42780 * init.c: Minor whitespace changes.
42782 2001-11-28 Doug Rupp <rupp@gnat.com>
42784 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42787 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42789 * misc.c (gnat_expand_constant): Move declaration above
42790 definition of lang_hooks.
42791 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42792 (gnat_init): lang_expand_constant no longer exists.
42794 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42795 always have vprintf.
42796 (gnat_init): Always call set_internal_error_function.
42798 2001-11-27 Andreas Jaeger <aj@suse.de>
42800 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42802 2001-11-27 Laurent Guerby <guerby@acm.org>
42804 * Makefile.in: Regenerate Ada dependencies.
42806 2001-11-26 Richard Henderson <rth@redhat.com>
42808 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42809 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42810 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42812 2001-11-25 Laurent Guerby <guerby@acm.org>
42814 * sysdep.c (rts_get_*): Fix style.
42816 2001-11-19 Laurent Guerby <guerby@acm.org>
42818 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42819 since it is of no apparent use and cause warnings.
42821 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42823 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42825 (gnat_init): Don't return NULL.
42826 (finish_parse): Remove.
42828 2001-11-17 Laurent Guerby <guerby@acm.org>
42830 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42831 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42832 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42833 * lang-spec.h: Add missing struct field to silence warnings.
42834 * sysdep.c (rts_get_*): Provide K&R prototype.
42835 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42836 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42837 * tracebak.c (__gnat_backtrace): Remove unused variable.
42838 * utils.c (end_subprog_body): Move to K&R style.
42840 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42842 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42844 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42846 * misc.c (gnat_init): Change prototype. Include the
42847 functionality of the old init_parse and init_decl_processing.
42848 (gnat_init_decl_processing): New prototype.
42849 (init_parse): Remove.
42850 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42852 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42854 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42855 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42856 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42857 set_yydebug): Remove.
42859 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42861 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42862 (struct lang_hooks): Constify.
42863 (language_string, lang_identify): Remove.
42864 * utils.c (init_decl_processing): Update.
42866 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42868 * misc.c: Include langhooks-def.h.
42869 * Makefile.in: Update.
42871 2001-10-30 Robert Dewar <dewar@gnat.com>
42874 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42875 in the upper half of ASCII.
42876 (Check_Identifier): Minor reformatting
42878 2001-10-30 Geert Bosch <bosch@gnat.com>
42880 * (Associated_Node, Set_Associated_Node): Do not check for
42883 2001-10-30 Robert Dewar <dewar@gnat.com>
42885 * a-reatim.ads: Minor reformatting
42887 2001-10-30 Robert Dewar <dewar@gnat.com>
42889 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42890 undocumented declarations.
42892 2001-10-30 Pascal Obry <obry@gnat.com>
42894 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42895 to the binder and linker.
42898 * mdll.ads: Fix layout. Update copyright notice.
42900 * mdll.adb: Fix layout. Update copyright notice.
42902 2001-10-30 Robert Dewar <dewar@gnat.com>
42904 * usage.adb: Minor fix to output for -gnaty.
42906 2001-10-30 Ed Schonberg <schonber@gnat.com>
42908 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42909 to accommodate all its possible values.
42911 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42912 and of small absolute values of T.
42914 2001-10-30 Richard Kenner <kenner@gnat.com>
42916 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42917 set_mem_attributes since not needed and wrong if RESULT if a REG;
42918 fixes ACATS failures.
42920 2001-10-30 Geert Bosch <bosch@gnat.com>
42922 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42923 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42925 2001-10-30 Robert Dewar <dewar@gnat.com>
42927 * bindusg.adb: Undocument -f switch.
42929 * gnatcmd.adb: Remove /FULL_ELABORATION.
42931 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42934 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42936 * gnatbind.adb: Minor update of warning msg.
42938 2001-10-30 Vincent Celier <celier@gnat.com>
42940 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42941 for project file switches (-P (/PROJECT_FILE=),
42942 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42945 2001-10-30 Geert Bosch <bosch@gnat.com>
42947 * decl.c: Minor whitespace fixes.
42949 2001-10-30 Richard Kenner <kenner@gnat.com>
42951 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42953 2001-10-30 Geert Bosch <bosch@gnat.com>
42955 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42956 Found due to GCC 3.0 warning of using uninitialized value.
42959 (Get_Max_Size): Use variant record for tracking value/expression.
42960 Makes logic clearer and prevents warnings for uninitialized variables.
42961 (Layout_Array_Type): Use variant record for tracking value/expression.
42962 Makes logic clearer and prevents warnings for uninitialized variables.
42964 2001-10-30 Robert Dewar <dewar@gnat.com>
42966 * lib.adb: Minor reformatting
42968 * s-taprop.ads: Minor reformatting
42970 2001-10-29 Laurent Guerby <guerby@acm.org>
42973 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42975 (_gnat_error_handler): Make MSG const.
42977 2001-10-29 Richard Kenner <kenner@gnat.com>
42979 * sysdep.c: Fix localtime_r problem on LynxOS.
42980 Also remove #elif to avoid warnings.
42982 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42985 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42987 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42989 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42990 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42991 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42992 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42993 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42994 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42995 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42996 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42997 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42998 types.ads, urealp.adb: Fix spelling errors.
43000 2001-10-27 Laurent Guerby <guerby@acm.org>
43002 * trans.c (gigi): Fix non determinism leading to bootstrap
43003 comparison failures for debugging information.
43005 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
43007 * gnat_rm.texi: Use @./@: where appropriate.
43009 2001-10-26 Robert Dewar <dewar@gnat.com>
43011 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
43013 2001-10-26 Richard Kenner <kenner@gnat.com>
43015 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
43017 2001-10-26 Richard Kenner <kenner@gnat.com>
43019 * decl.c (validate_size): Modify message for bad size to avoid
43020 implication that compiler is modifying the size.
43022 2001-10-26 Robert Dewar <dewar@gnat.com>
43024 * prj-util.adb: Minor reformatting. Fix bad header format.
43026 2001-10-26 Robert Dewar <dewar@gnat.com>
43028 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
43030 * sinfo.ads: Clarify use of Associated_Node (documentation only).
43032 * sem_ch12.adb: Change Node4 to Associated_Node. Change
43033 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
43034 much more narrowly in places where needed. These are cleanups.
43036 2001-10-26 Joel Brobecker <brobecke@gnat.com>
43038 * 5zosinte.ads (null_pthread): new constant.
43041 (Initialize_TCB): Initialize thread ID to null, to be able to verify
43042 later that this field has been set.
43043 (Finalize_TCB): ditto.
43044 (Suspend_Task): Verify that the thread ID is not null before using it.
43045 (Resume_Task): ditto.
43048 (Resume_All_Tasks): Lock the tasks list before using it.
43049 (Suspend_All_Tasks): ditto.
43051 2001-10-26 Richard Kenner <kenner@gnat.com>
43053 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
43054 Make constant variant of designated type for Is_Access_Constant.
43055 Call update_pointer_to with main variant.
43057 * trans.c (process_freeze_entity, process_type):
43058 Call update_pointer_to on main variant.
43060 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43061 If main variant, update all other variants.
43063 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
43066 2001-10-26 Robert Dewar <dewar@gnat.com>
43068 * prj-util.adb: Minor reformatting
43070 2001-10-26 Robert Dewar <dewar@gnat.com>
43072 * prj-util.adb: Minor reformatting
43074 2001-10-26 Robert Dewar <dewar@gnat.com>
43076 * prj-attr.adb: Minor reformatting throughout
43078 2001-10-26 Robert Dewar <dewar@gnat.com>
43080 * prj-attr.ads: Minor reformatting
43081 Add ??? comment (this whole spec has almost no comments)
43083 2001-10-26 Vincent Celier <celier@gnat.com>
43085 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43086 ("//") that precede the drive letter on Interix.
43088 2001-10-26 Geert Bosch <bosch@gnat.com>
43090 * gnat_rm.texi: Add GNAT Reference Manual.
43092 2001-10-25 Robert Dewar <dewar@gnat.com>
43094 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43095 is Error. Similar change for other renaming cases.
43097 2001-10-25 Robert Dewar <dewar@gnat.com>
43099 * s-atacco.ads: Add pragma Inline_Always for functions.
43100 Fix header format. Add copyright 2001
43102 2001-10-25 Ed Schonberg <schonber@gnat.com>
43104 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43105 return Error rather than Empty so that analysis can proceed.
43107 2001-10-25 Ed Schonberg <schonber@gnat.com>
43109 * sem_util.adb (Enter_Name): better handling of cascaded error
43110 messages when a unit appears in its own context.
43112 2001-10-25 Ed Schonberg <schonber@gnat.com>
43114 * sem_util.adb (Defining_Entity): in case of error, attach created
43115 entity to specification, so that semantic analysis can proceed.
43117 2001-10-25 Robert Dewar <dewar@gnat.com>
43120 (Defining_Entity): Deal with Error.
43121 (Process_End_Label): Deal with bad end label for.
43123 2001-10-25 Ed Schonberg <schonber@gnat.com>
43125 * sem_elab.adb (Check_A_Call): refine message when call is in an
43126 instance but callee is not declared in the generic unit.
43128 2001-10-25 Ed Schonberg <schonber@gnat.com>
43130 * sem_elab.adb (Check_A_Call): check for renaming before finding the
43131 enclosing unit, which may already be different from the calling unit.
43133 2001-10-25 Geert Bosch <bosch@gnat.com>
43135 * 4gintnam.ads: fix header format.
43137 2001-10-25 Ed Schonberg <schonber@gnat.com>
43139 * sem_res.adb (Resolve_Call): if the call is actually an indexing
43140 operation on the result of a parameterless call, perform elaboration
43141 check after the node has been properly rewritten.
43143 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43144 inlined within the generic tree, the defining identifier is not a
43147 2001-10-25 Ed Schonberg <schonber@gnat.com>
43149 * sem_res.adb (Resolve): special-case resolution of Null in an
43150 instance or an inlined body to avoid view conflicts.
43152 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43153 compatibility by retrieving the access type of the generic copy.
43155 2001-10-25 Robert Dewar <dewar@gnat.com>
43158 (Analyze_Number_Declaration): Handle error expression.
43159 (Signed_Integer_Type_Declaration): Handle error bound.
43160 (Analyze_Subtype_Indication): Handle error range.
43162 * sem_util.adb (Get_Index_Bounds): Check for Error.
43164 2001-10-25 Robert Dewar <dewar@gnat.com>
43166 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43167 in no run time mode.
43169 2001-10-25 Pascal Obry <obry@gnat.com>
43171 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43172 mode case for ALLOC case.
43174 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43175 all platforms. Improvement of last change.
43177 2001-10-25 Robert Dewar <dewar@gnat.com>
43179 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43181 2001-10-25 Geert Bosch <bosch@gnat.com>
43183 * osint.adb (Is_Relative): Remove duplicate.
43185 2001-10-25 Pascal Obry <obry@gnat.com>
43187 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43188 pathnames in UNIX and DOS style with drive letter.
43189 (Is_Relative): new routine.
43191 * osint.adb: Minor reformatting
43193 * osint.adb (Is_Relative): implementation using
43194 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43196 2001-10-25 Pascal Obry <obry@gnat.com>
43198 * g-dirope.adb (Basename): correctly compute offset between the
43199 original Path and the translated one.
43201 * g-dirope.adb: (Base_Name): add some comments.
43203 2001-10-25 Robert Dewar <dewar@gnat.com>
43205 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43206 in HIE mode, avoids compilation abandoned message
43208 * exp_imgv.adb: Correct typo in previous change
43210 * exp_imgv.adb: Correct typo in previous change (not my day!)
43212 2001-10-25 Robert Dewar <dewar@gnat.com>
43214 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43216 2001-10-25 Pascal Obry <obry@gnat.com>
43218 * g-awk.ads: Move all pragma inlines next to the routine
43219 declarations. This is more uniform with other GNAT spec.
43221 2001-10-22 Geert Bosch <bosch@gnat.com>
43223 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43225 2001-10-19 Geert Bosch <bosch@gnat.com>
43227 * Makefile.in (tools, gnattools): Remove gnatmem.
43229 2001-10-17 Richard Henderson <rth@redhat.com>
43231 * Makefile.in (misc.o): Depend on langhooks.h.
43232 * misc.c: Include it.
43233 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43234 (LANG_HOOKS_DECODE_OPTION): New.
43235 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43237 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43239 * trans.c (tree_transform): Adjust to recent change in
43240 expand_asm_operands to implement named asm operands.
43242 2001-10-11 Ed Schonberg <schonber@gnat.com>
43244 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43245 renaming of discriminant for mutable record type.
43247 2001-10-11 Robert Dewar <dewar@gnat.com>
43249 * validsw.adb: Properly save -gnatVn status.
43251 2001-10-11 Robert Dewar <dewar@gnat.com>
43253 * usage.adb: Add lines for V switch.
43255 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43256 (/VALIDITY_CHECKING).
43258 2001-10-11 Ed Schonberg <schonber@gnat.com>
43260 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43261 an extension of System is known to be visible.
43263 2001-10-11 Ed Schonberg <schonber@gnat.com>
43265 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43266 properly. Fixes regression on ACATS C34005G.
43268 2001-10-11 Robert Dewar <dewar@gnat.com>
43270 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43271 loop in generic instance, since this is likely not very useful.
43273 2001-10-11 Robert Dewar <dewar@gnat.com>
43275 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43276 the error message for high integrity mode.
43278 * rtsfind.adb (RTE): Give message if we try to find an entity that
43279 is not available in high integrity mode.
43282 (OK_To_Use_In_HIE_Mode): New array.
43283 (RTE): May return Empty in high integrity mode.
43285 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43286 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43288 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43289 unit if not inlined always and in no runtime mode. Fixes problem
43290 caused by new Rtsfind changes.
43292 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43295 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43296 giving message for entity not available in high integrity mode.
43298 2001-10-11 Pascal Obry <obry@gnat.com>
43300 * impunit.adb: Add GNAT.CRC32.
43302 2001-10-11 Ed Schonberg <schonber@gnat.com>
43304 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43305 properly the case where one universal operand in a non-static
43306 exponentiation of a real literal.
43308 2001-10-11 Ed Schonberg <schonber@gnat.com>
43310 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43311 clause, return the gobal finalization list, for lack of anthing else.
43313 2001-10-11 Ed Schonberg <schonber@gnat.com>
43315 * exp_ch7.adb (Make_Transient_Block): if statement is within
43316 exception handler, always use new transient scope to place Clean
43319 2001-10-11 Pascal Obry <obry@gnat.com>
43322 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43323 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43324 (GNATLS_RTL_OBJS): add g-crc32.o
43325 (GNATMAKE_RTL_OBJS): add g-crc32.o
43328 (CRC_Match): new function.
43329 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43330 instead of the previous simple checksum algorithm.
43331 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43332 (Set_Source_Table): idem.
43335 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43336 instead of simple checksum.
43337 (CRC_Match): new function.
43338 (CRC_Error): new constant.
43340 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43341 a CRC now and not a simple checksum. A CRC uses lower-case hex
43342 letters, fixes ambiguity in parsing.
43344 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43345 is what this variable will store.
43347 * bcheck.adb: Change reference to chechsum in comments by CRC.
43348 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43349 rename All_Checksum_Match to All_CRC_Match. Change due to API
43350 renaming since now GNAT does not use a simple checksum but a
43351 CRC using GNAT.CRC32.
43353 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43354 now and not anymore a simple checksum.
43356 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43359 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43362 (Restore_Scan_State): rename Checksum to CRC.
43363 (Save_Scan_State): idem.
43367 (Checksum): rename to CRC.
43368 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43370 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43371 GNAT.CRC32). Update copyright notice.
43373 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43374 GNAT.CRC32). Update copyright notice.
43377 (Accumulate_Checksum): removed.
43378 (Update): new procedure. Add a wide-character into the CRC.
43381 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43382 (Load_File): fix initialization of S (change Source_Checksum to
43385 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43386 Source_CRC in S initialization.
43388 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43390 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43391 Update comments for the CRC.
43393 * types.adb (Hex): Use lowercase for the letter part.
43395 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43396 for a word. This is currently used only for CRC. In previous version,
43397 the checksum was using a representation with all letter being
43398 upper-case. With the new implementation (using CRC) we do not remove
43399 the 32th bit of the CRC, so we can have an upper-case starting letter
43400 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43401 It is ambigous since the CRC was optional and could be followed by
43402 options like EB, EE. So now this routines uses lower-case letter for
43403 the hexadecimal representation. Strange enough only lower case letters
43404 where checked in Scan_ALI (even if this was not a possible case).
43406 * gnatvsn.ads (Library_Version): changed to 3.15a.
43408 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43411 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43414 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43415 Add 2001 to copyright notice
43416 (Accumulate_Checksum): Modify to use System.CRC32.
43418 * ali-util.ads: Redo changes of previous revision to continue to use
43419 the word Checksum. Add 2001 to copyright notice.
43421 * ali.adb: Undo some of previous changes, not needed.
43422 Keep the change for lower case letters in the checksum.
43424 * ali.ads: Undo previous change not needed.
43426 * bcheck.adb: Undo most of previous change, not needed.
43427 But do use Checksums_Match for checksum comparison.
43429 * gnatls.adb: Undo most of previous change, not needed.
43430 But do use Checksums_Match for comparing checksums.
43432 * lib-load.adb: Undo previous change, not needed.
43434 * lib-writ.adb: Undo previous change, not needed.
43436 * lib-writ.ads: Document that checksums use lower case,
43437 not upper case letters.
43439 * scans.adb: Undo previous change, not needed
43441 * scans.ads: Undo previous change, not needed.
43443 * scn-nlit.adb: Undo previous changes, not needed.
43445 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43448 (Accumulate_Checksum): Use System.CRC32.
43449 (Initialize_Checksum): New procedure.
43450 Remove other changes of previous revision.
43452 * sinput-p.adb: Undo previous change, not needed.
43454 * sinput.adb: Undo previous change, not needed.
43456 * sinput-l.adb: Undo previous change, not needed.
43458 * sinput.ads: Undo previous change, not needed. Keep only comment
43459 on new checksum algorithm
43461 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43462 Also remove a-tags and a-stream from GNAT sources.
43464 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43466 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43468 2001-10-11 Geert Bosch <bosch@gnat.com>
43470 * einfo.h: Regenerate.
43472 * nmake.ads: Regenerate.
43474 * nmake.adb: Regenerate.
43476 * sinfo.h: Regenerate.
43478 * treeprs.adb: Regenerate.
43480 2001-10-10 Geert Bosch <bosch@gnat.com>
43482 * gnat-style.texi: New file describing coding guidelines for Ada.
43484 2001-10-10 Ed Schonberg <schonber@gnat.com>
43486 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43489 2001-10-10 Geert Bosch <bosch@gnat.com>
43491 * snames.ads: Add new names for project facility.
43493 * snames.adb: Update to reflect snames.ads changes.
43495 * snames.h: Update to reflect snames.ads changes.
43497 2001-10-10 Vincent Celier <celier@gnat.com>
43500 (Add_Switches): reflect the changes for the switches attributes
43501 Default_Switches indexed by the programming language,
43502 Switches indexed by the file name.
43503 (Collect_Arguments_And_Compile): Idem.
43504 Reflect the attribute name changes.
43507 (Initialisation_Data): Change the names of some packages and
43509 (Initialize): process case insensitive associative arrays.
43512 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43515 (Parse_Attribute_Declaration): For case insensitive associative
43516 arrays, set the index string to lower case.
43519 Reflect the changes of the project attributes.
43522 Replace Check_Naming_Scheme by Ada_Check and
43523 Language_Independent_Check.
43526 Replaced Check_Naming_Scheme by 2 procedures:
43527 Ada_Check and Language_Independent_Check.
43530 (Process_Declarative_Items): For case-insensitive associative
43531 arrays, set the index string to lower case.
43532 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43533 Prj.Nmsc.Check_Naming_Scheme.
43536 (Case_Insensitive): New function
43537 (Set_Case_Insensitive): New procedure
43540 (Case_Insensitive): New function
43541 (Set_Case_Insensitive): New procedure
43542 (Project_Node_Record): New flag Case_Insensitive.
43545 (Value_Of): new function to get the string value of a single
43546 string variable or attribute.
43549 (Value_Of): new function to get the string value of a single
43550 string variable or attribute.
43553 (Ada_Default_Spec_Suffix): New function
43554 (Ada_Default_Impl_Suffix): New function
43555 Change definitions of several constants to reflect
43556 new components of record types.
43559 (Naming_Data): Change several components to reflect new
43560 elements of naming schemes.
43561 (Project_Data): New flags Sources_Present and
43562 Language_Independent_Checked.
43563 (Ada_Default_Spec_Suffix): New function.
43564 (Ada_Default_Impl_Suffix): New function.
43567 Modification of predefined names for project manager: added
43568 Implementation, Specification_Exceptions, Implementation_Exceptions,
43569 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43570 Default_Switches, _Languages, Builder, Cross_Reference,
43571 Finder. Removed Body_Part, Specification_Append, Body_Append,
43572 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43575 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43578 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43579 not that it is Nil_Variable_Value.
43581 * prj.ads: Add ??? for uncommented declarations
43583 2001-10-10 Ed Schonberg <schonber@gnat.com>
43585 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43586 constant, do not indicate possible modification, so that gigi can
43587 treat it as a bona fide constant.
43589 2001-10-10 Robert Dewar <dewar@gnat.com>
43591 * sem_prag.adb: Add processing for pragma External.
43593 * snames.ads: Add entry for pragma External.
43595 * par-prag.adb: Add pragma External.
43597 * snames.adb: Updated to match snames.ads.
43599 2001-10-10 Ed Schonberg <schonber@gnat.com>
43601 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43602 a dynamic task if the allocator appears in an indexed assignment
43603 or selected component assignment.
43605 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43606 For a dynamic task in an assignment statement, use target of
43607 assignment to generate meaningful name.
43609 2001-10-10 Ed Schonberg <schonber@gnat.com>
43611 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43614 * einfo.ads: Body_Entity is also defined for generic package.
43615 Documentation change only
43617 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43618 others_choice for a discriminated component initialization,
43619 convert discriminant references into the corresponding discriminals.
43621 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43622 only if original type is private and expression has to be wrapped
43626 (Apply_Constraint_Check): Do not perform length check
43627 if expression is an aggregate with only an others_choice.
43628 (Length_N_Cond): two references to the same in_parameter
43629 (typically the discriminal in an init_proc) denote the same value.
43630 Two useful optimization uncovered by bugfixes above.
43632 2001-10-10 Robert Dewar <dewar@gnat.com>
43634 * xeinfo.adb: Change int to char in translation of enumeration types.
43635 This fixes a problem in the C representation of component alignment.
43636 Add 2001 to copyright notice
43638 2001-10-10 Richard Kenner <kenner@gnat.com>
43640 * decl.c: (validate_size): Do check size of object of integral type
43641 if it is a packed array type.
43643 2001-10-10 Richard Kenner <kenner@gnat.com>
43645 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43646 VAR_DECL for constant if not Is_Public but -O0.
43648 2001-10-10 Richard Kenner <kenner@gnat.com>
43650 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43652 2001-10-10 Geert Bosch <bosch@gnat.com>
43654 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43655 use '/' as switch character, allowing for absolute file names.
43657 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43659 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43662 2001-10-08 Geert Bosch <bosch@gnat.com>
43664 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43665 Automatically build utilities when files need to be regenerated.
43667 2001-10-08 Geert Bosch <bosch@gnat.com>
43669 * xsnames.adb: New utility for updating snames.ads and snames.adb
43671 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43673 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43674 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43675 (gnat1): Also depend on attribs.o.
43676 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43677 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43678 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43679 (ADAFLAGS): Add -W -Wall.
43680 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43683 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43684 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43685 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43686 Use $(ADAC), not $(CC), as compilation command.
43688 (gnattools): Depend directly on tools to build, don't use
43690 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43692 * einfo.h, sinfo.h: New files (autogenerated).
43694 2001-10-08 Richard Henderson <rth@redhat.com>
43696 * comperr.adb (Abort_In_Progress): New.
43697 (Compiler_Abort): Use it to prevent recursion.
43699 2001-10-08 Robert Dewar <dewar@gnat.com>
43701 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43703 * par-endh.adb (Output_End_Expected): We should also not test
43704 Error_Posted on the Error node, since now it is always set.
43706 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43707 to help error recovery. Part of general work on 9407-004.
43709 * par.adb: Add ??? for misuse of error
43712 (Resolve): Defend against Error, fixes 9407-003.
43713 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43715 * sinfo.ads (N_Error): Now has Etype field (which will be set
43716 to Any_Type to help error recovery).
43718 2001-10-08 Richard Kenner <kenner@gnat.com>
43720 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43721 Consistently set MEM attributes from expression; fixes
43722 bootstrap failure on x86.
43724 2001-10-08 Geert Bosch <bosch@gnat.com>
43726 * 5oosinte.adb: Add 2001 to copyright notice.
43728 2001-10-08 Geert Bosch <bosch@gnat.com>
43730 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43732 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43734 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43736 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43738 2001-10-05 Geert Bosch <bosch@gnat.com>
43740 * adaint.h: Small formatting fix.
43742 2001-10-04 Geert Bosch <bosch@gnat.com>
43744 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43745 Arg is int, not FILE *, in dummy version of functions.
43747 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43748 Arg is int, not FILE *.
43750 2001-10-04 Geert Bosch <bosch@gnat.com>
43752 * 3lsoccon.ads: Added file, missed with initial check ins.
43754 * 4lintnam.ads: Fix header format.
43755 Change Linux to GNU/Linux.
43757 * 5iosinte.adb: Change Linux to GNU/Linux.
43759 * 5iosinte.ads: Change Linux to GNU/Linux.
43761 * 5itaprop.adb: Change Linux to GNU/Linux.
43763 * 5itaspri.ads: Change Linux to GNU/Linux.
43764 Update copyright notice.
43766 * 5lintman.adb: Change Linux to GNU/Linux.
43768 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43770 * 5losinte.ads: Change Linux to GNU/Linux.
43772 * 5lsystem.ads: Change Linux to GNU/Linux.
43774 * 5qosinte.adb: Change Linux to GNU/Linux.
43776 * 5qosinte.ads: Change Linux to GNU/Linux.
43778 * 5qparame.ads: Change Linux to GNU/Linux.
43780 * 5qtaprop.adb: Change Linux to GNU/Linux.
43782 * 5qtaspri.ads: Change Linux to GNU/Linux.
43783 Add 2001 to copyright notice.
43785 * 5vintman.ads: Change Linux to GNU/Linux.
43786 Fix header format. Add 2001 to copyright notice.
43788 * g-soccon.ads: Change Linux to GNU/Linux.
43790 * g-trasym.ads: Change Linux to GNU/Linux.
43791 Add 2001 to copyright notice.
43793 * memtrack.adb: Change Linux to GNU/Linux.
43795 * s-intman.ads: Change Linux to GNU/Linux.
43796 Add 2001 to copyright notice. Fix header format.
43798 * s-stache.adb: Change Linux to GNU/Linux.
43800 * adaint.c: Change Linux to GNU/Linux.
43802 * cio.c: Change Linux to GNU/Linux.
43804 * cstreams.c: Change Linux to GNU/Linux.
43806 * init.c: Change Linux to GNU/Linux.
43808 * gmem.c: Change Linux to GNU/Linux.
43810 * tracebak.c: Change Linux to GNU/Linux.
43813 2001-10-02 Geert Bosch <bosch@gnat.com>
43815 * misc.c (insert_default_attributes): Add dummy version.