1 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
7 2009-03-11 Olivier Hainque <hainque@adacore.com>
9 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
10 checks processing, remove unintended TREE_TYPE walk on index type.
12 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
15 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
16 call make_packable_type on fat pointer types.
17 <E_Array_Subtype>: Likewise.
18 <E_Record_Subtype>: Call make_packable_type on all record types
19 except for fat pointer types.
20 (make_packable_type): Likewise.
21 (gnat_to_gnu_field): Likewise.
23 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
25 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
26 EH_MECHANISM change made on 2007-12-06.
28 2009-02-26 Andreas Schwab <schwab@suse.de>
31 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
32 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
33 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
35 (target_cpu_default): Substitute.
37 2009-02-25 Laurent GUERBY <laurent@guerby.net>
40 * a-teioed.adb (Expand): Fix Result overflow.
42 2009-02-25 Laurent GUERBY <laurent@guerby.net>
44 * gcc-interface/Makefile.in: Fix multilib handling for
47 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
49 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
51 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
53 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
55 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
57 * gcc-interface/deftarg.c: Remove.
59 2009-02-10 Olivier Hainque <hainque@adacore.com>
60 Eric Botcazou <ebotcazou@adacore.com>
62 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
63 (copy_alias_set): Rename into...
64 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
65 underlying array of unconstrained arrays for the new type as well.
66 If the old and new alias sets don't conflict, make one a subset of
67 the other as per the OP parameter.
68 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
69 <E_Record_Type>: Do not copy the alias set for derived types.
70 For all types, make the alias set of derived types a superset of
71 that of their parent type.
72 (make_aligning_type): Adjust calls to copy_alias_set.
73 (make_packable_type): Likewise.
74 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
75 Check for alias set conflict instead of strict equality to issue the
78 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
80 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
81 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
82 (copy_alias_set): Assert that arrays have the same aliasing settings.
83 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
85 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
87 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
88 Set TYPE_NONALIASED_COMPONENT on the array type.
90 2009-01-31 Laurent GUERBY <laurent@guerby.net>
92 * gcc-interface/Makefile.in: Fix mipsel linux handling.
94 2009-01-16 Jakub Jelinek <jakub@redhat.com>
96 * gcc-interface/Makefile.in: Fix multilib handling for
99 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
101 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
102 only useless conversions around renamed objects.
104 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
106 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
107 the _Tag field before any discriminants in the field list.
108 (components_to_record): Remove obsolete comment.
110 2008-12-09 Jakub Jelinek <jakub@redhat.com>
113 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
114 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
117 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
120 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
122 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
125 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
127 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
129 * gcc-interface/decl.c: Fix various nits.
131 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
133 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
135 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
138 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
139 special-case boolean types. Propagate the name.
140 * gcc-interface/targtyps.c: Tweak comment.
142 2008-11-15 Geert Bosch <bosch@adacore.com>
144 * gcc-interface/trans.c (emit_check): Put back a final save_expr
145 to prevent exponential expansion during gimplification.
147 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
149 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
151 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
153 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
154 initialized to a static constant to be statically allocated even if
155 they are of a padding type, provided the original type also has
158 2008-11-15 Laurent Guerby <laurent@guerby.net>
161 * gcc-interface/Makefile.in: Add multilib handling for x86_64
163 * system-darwin-x86_64.ads: New file.
165 2008-11-13 Olivier Hainque <hainque@adacore.com>
167 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
168 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
169 are explicit to the middle-end. Tidy.
171 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
173 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
174 (MINUS_NOMOD_EXPR): Likewise.
175 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
177 <PLUS_NOMOD_EXPR>: New case.
178 <MINUS_NOMOD_EXPR>: Likewise.
179 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
180 assignment statement instead of using an increment operator.
182 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
184 * system-irix-n64.ads: New file.
185 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
188 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
191 * system-solaris-x86_64.ads: New file.
192 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
194 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
195 Eric Botcazou <ebotcazou@adacore.com>
198 * lib.ads: (Enable_Switch_Storing): Declare.
199 * lib.adb: (Enable_Switch_Storing): New procedure.
200 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
201 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
202 (Display): Never display -gnatea
203 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
205 2008-11-07 Thomas Quinot <quinot@adacore.com>
207 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
208 for empty range in original base type, not converted result type.
210 2008-11-07 Geert Bosch <bosch@adacore.com>
212 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
213 and result for call to __gnat_mulv64.
215 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
217 * gcc-interface/trans.c: Fix formatting nits.
219 2008-11-07 Geert Bosch <bosch@adacore.com>
221 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
222 overflow check for constant result.
224 2008-11-07 Geert Bosch <bosch@adacore.com>
226 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
227 overflow check for addition/subtraction if neither operand is constant.
229 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
231 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
232 files for the target-dependent part of the runtime.
233 (SPARC/Linux): Likewise.
235 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
237 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
238 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
241 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
243 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
246 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
249 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
250 Generate a call to memmove for an assignment between overlapping
253 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
256 * gcc-interface/Makefile.in: Add multilib handling for
257 s390-linux and s390x-linux.
259 2008-10-24 Jakub Jelinek <jakub@redhat.com>
261 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
262 check-acats-subtargets and check-gnat-subtargets.
263 (check_acats_targets): New variable.
264 (check-acats-subtargets, check-acats%): New targets.
265 (check-acats): If -j is used and CHAPTERS is empty, run the testing
266 in multiple make goals, possibly parallel, and afterwards run
267 dg-extract-results.sh to merge the sum and log files.
269 2008-10-17 Geert Bosch <bosch@adacore.com>
271 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
272 to use only a single check instead of three, and avoid unnecessary
274 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
275 creating more opportunities for optimizations.
277 2008-10-13 Jakub Jelinek <jakub@redhat.com>
280 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
283 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
285 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
286 dealing with volatileness to after code dealing with renaming.
288 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
290 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
291 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
293 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
295 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
296 (unchecked_convert): Use it to disable problematic folding with
297 VIEW_CONVERT_EXPR in the general case. Always disable it for the
298 special VIEW_CONVERT_EXPR built for integral types and cope with
299 its addressability issues by preserving the first conversion.
301 2008-10-01 Andreas Schwab <schwab@suse.de>
303 * system-linux-ppc64.ads: New file.
304 * gcc-interface/Makefile.in: Add multilib handling for
307 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
309 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
310 to that of ptr_mode instead of word_mode.
312 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
315 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
317 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
320 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
321 instead of deprecated FILE_WRITE_PROPERTIES.
323 2008-09-22 Olivier Hainque <hainque@adacore.com>
325 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
326 are never assigned, volatile entities are not constant for code
329 2008-09-21 Laurent Guerby <laurent@guerby.net>
332 * gcc-interface/Makefile.in: Add multilib handling for x86_64
334 * system-linux-sparcv9.ads: New file.
336 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
338 * exp_dbug.ads: Document new convention for the XVZ variable.
339 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
340 debug info if necessary for the type padding the component type.
341 <E_Array_Subtype>: Likewise.
342 (maybe_pad_type): Emit the XVZ variable in units.
343 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
344 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
345 on statements generated to initialize the parameter attributes cache.
346 Set the source line of the end label of the body on the special return
347 statement built for a procedure with copy-in copy-out parameters.
349 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
352 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
353 inlined external functions if they contain a nested function not
356 2008-09-18 Jan Hubicka <jh@suse.cz>
358 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
359 (end_subprog_body): Do not set DECL_INLINE.
361 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
364 * gnat_ugn.texi: Use proper format in direntry.
366 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
368 * gcc-interface/trans.c (gigi): Declare the name of the compilation
369 unit as the first global name.
371 2008-09-14 Jan Hubicka <jh@suse.cz>
373 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
375 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
377 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
378 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
379 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
380 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
381 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
382 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
383 gcc-interface/gigi.h, gcc-interface/trans.c,
384 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
385 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
386 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
387 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
388 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
389 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
390 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
391 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
393 * gnathtml.pl: Fix typos.
395 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
397 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
398 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
399 layer. RTEMS binds to OS provided adapter routines so there are
400 no modifications to s-osinte-rtems.adb.
402 2008-09-09 Arnaud Charlet <charlet@adacore.com>
403 Joel Sherrill <joel.sherrill@oarcorp.com>
405 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
407 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
409 * s-interr-hwint.adb: New file.
411 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
412 needed by s-interr-hwint.adb.
414 * s-osinte-vxworks-kernel.adb: New file.
416 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
418 * s-stchop-rtems.adb: Add file missed in early commit. Already
419 referenced in gcc-interface/Makefile.in.
421 2008-08-30 Thomas Quinot <quinot@adacore.com>
423 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
424 be built even without a separate libada directory.
426 2008-08-22 Arnaud Charlet <charlet@adacore.com>
428 * lib-xref.ads: Fix typo in subprogram reference definition.
430 2008-08-22 Robert Dewar <dewar@adacore.com>
432 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
435 * g-trasym.adb: Ditto
437 * s-utf_32.adb (Get_Category): Fix obvious typo
439 * s-wwdcha.adb: Minor code reorganization
442 2008-08-22 Robert Dewar <dewar@adacore.com>
444 * checks.adb (Determine_Range): Deal with values that might be invalid
446 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
447 configuration switches.
449 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
451 * sem_prag.adb: Implement pragma Assume_No_Default_Values
453 * snames.adb, snames.ads, snames.h:
454 Add entries for pragma Assume_No_Invalid_Values
456 * switch-c.adb: Add processing for -gnatB switch
458 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
460 2008-08-22 Javier Miranda <miranda@adacore.com>
462 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
463 init procedure all the expanded code associated with the spec of
464 task types and protected types.
466 2008-08-22 Gary Dismukes <dismukes@adacore.com>
468 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
469 component expression copies rather than directly setting Etype and
470 Is_Static_Expression.
472 2008-08-22 Gary Dismukes <dismukes@adacore.com>
474 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
475 private types to allow for types derived from a private type with
476 preelaborable initialization, but return False for a private extension
477 (unless it has the pragma).
479 2008-08-22 Robert Dewar <dewar@adacore.com>
481 * opt.ads: Minor code reorganization (put entries in alpha order)
483 2008-08-22 Pascal Obry <obry@adacore.com>
485 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
488 2008-08-22 Geert Bosch <bosch@adacore.com>
490 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
491 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
493 2008-08-22 Doug Rupp <rupp@adacore.com>
495 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
499 (__gnat_set_features): New function.
500 (__gnat_features_set): New tracking variable.
501 (__gl_no_malloc_64): New feature global variable
503 2008-08-22 Ed Schonberg <schonberg@adacore.com>
505 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
506 use_type_clause in an instance.
508 2008-08-22 Bob Duff <duff@adacore.com>
510 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
512 2008-08-22 Robert Dewar <dewar@adacore.com>
514 * exp_ch6.adb: Minor reformatting
516 * exp_ch7.adb: Minor reformatting
518 * exp_ch7.ads: Put routines in proper alpha order
520 * exp_dist.adb: Minor reformatting
522 2008-08-22 Vincent Celier <celier@adacore.com>
524 * prj.ads: Minor comment update
526 2008-08-22 Robert Dewar <dewar@adacore.com>
528 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
530 2008-08-22 Ed Schonberg <schonberg@adacore.com>
533 (Base_Init_Proc): For a protected subtype, use the base type of the
534 corresponding record to locate the propoer initialization procedure.
536 2008-08-22 Robert Dewar <dewar@adacore.com>
539 (In_Subrange_Of): New calling sequence
540 (Determine_Range): Prepare for new processing using base type
543 (Compile_Time_Compare): Use new calling sequence
546 (Compile_Time_Compare): Use new calling sequence
549 (Compile_Time_Compare): New calling sequence allows dealing with
551 (In_Subrange_Of): Ditto
554 (Compile_Time_Compare): New calling sequence allows dealing with
556 (In_Subrange_Of): Ditto
558 2008-08-22 Pascal Obry <obry@adacore.com>
560 * adaint.c: Fix possible race condition on win32_wait().
562 2008-08-22 Bob Duff <duff@adacore.com>
564 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
565 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
566 exp_intr.adb, exp_ch3.adb: Rename:
567 Exp_Ch7.Controlled_Type => Needs_Finalization
568 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
569 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
571 (Has_Some_Controlled_Component): Fix bug in array case.
573 2008-08-22 Robert Dewar <dewar@adacore.com>
575 * sem_ch8.adb: Minor reformatting
577 2008-08-22 Kevin Pouget <pouget@adacore.com>
579 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
580 Shared_Var_Close procedure specifications from package spec to package body.
582 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
583 RE_Shared_Var_WOpen entries.
585 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
586 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
588 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
590 * init.c: adjust EH support code on Alpha/Tru64 as well.
592 * raise-gcc.c: Add back a couple of comments.
594 2008-08-22 Ed Schonberg <schonberg@adacore.com>
596 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
597 involved and the return type is class-wide, use the type of the expression
598 for the generated access type. Suppress useless discriminant checks on the
601 2008-08-22 Bob Duff <duff@adacore.com>
603 * exp_ch7.adb: Minor comment fix
605 * exp_ch6.ads: Minor comment fix
607 2008-08-22 Thomas Quinot <quinot@adacore.com>
609 * sem_ch8.adb: Minor reformatting
610 Minor code reorganization (introduce subprogram to factor duplicated
613 2008-08-22 Sergey Rybin <rybin@adacore.com>
615 * gnat_ugn.texi: Change the description of gnatcheck default rule
618 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
620 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
621 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
622 do not adjust the PC anymore.
623 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
624 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
626 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
627 instead of _Unwind_GetIP.
629 2008-08-22 Gary Dismukes <dismukes@adacore.com>
631 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
632 with a range is transformed into a positional aggregate, any copied
633 component literals should be marked Is_Static_Expression.
635 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
636 not being known at at compile time when Configurable_Run_Time_Mode is
639 2008-08-22 Robert Dewar <dewar@adacore.com>
642 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
643 Read or Input attribute.
645 2008-08-22 Ed Schonberg <schonberg@adacore.com>
647 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
648 clauses in related units is redundant, if one of the units is a package
649 instantiation, use its instance_spec to determine which unit is the
650 ancestor of the other.
652 2008-08-22 Javier Miranda <miranda@adacore.com>
654 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
655 attributes add missing support to handle designated types that come
656 from the limited view.
658 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
660 2008-08-22 Sergey Rybin <rybin@adacore.com>
662 * vms_data.ads: Add entry for new gnatcheck -mNNN option
664 * gnat_ugn.texi: Add description for gnatcheck option '-m'
666 2008-08-22 Sergey Rybin <rybin@adacore.com>
668 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
669 acoording to the latest changes in the metric rule interface
671 2008-08-22 Vincent Celier <celier@adacore.com>
673 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
674 (Check): Check if the file names registered in the ALI file for the
675 spec, the body and each of the subunits are the ones expected.
677 2008-08-22 Robert Dewar <dewar@adacore.com>
679 * g-catiio.adb: Code cleanup.
681 2008-08-20 Vincent Celier <celier@adacore.com>
683 * make.adb (Gnatmake): Remove extra space in version line
686 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
687 as the name may already have been entered in the table by the Project
690 2008-08-20 Jose Ruiz <ruiz@adacore.com>
692 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
693 weak symbols so we use the version provided by MaRTE when available.
695 2008-08-20 Emmanuel Briot <briot@adacore.com>
697 * g-catiio.ads, g-catiio.adb:
698 (Value): Avoid an unnecessary system call to Clock in most cases.
699 This call is only needed when only the time is provided in the string,
700 and ignored in all other cases. This is more efficient.
702 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
704 * raise-gcc.c: Fix formatting nits.
706 2008-08-20 Robert Dewar <dewar@adacore.com>
709 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
710 non-existing component clause.
712 * exp_ch5.adb: Minor reformatting
714 * g-comlin.adb: Minor reformatting
716 * make.adb: Minor reformatting
718 * prj-proc.adb: Minor reformatting
720 * stylesw.ads: Minor reformatting
722 2008-08-20 Vincent Celier <celier@adacore.com>
724 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
725 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
726 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
727 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
728 and a switch is not recognized by gnatmake.
729 (Gnatmake): Implement new scheme for gnatmake switches and global
730 compilation switches.
731 (Switches_Of): Try successively Switches (<file name>),
732 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
734 2008-08-20 Ed Schonberg <schonberg@adacore.com>
736 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
737 implement style check that overriding operations are explicitly marked
740 * style.ads (Missing_Overriding): new procedure that provides interface
743 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
744 that the declaration or body of overriding operations carries an
745 explicit overriding indicator.
748 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
749 explicit indicator should be present.
751 * sem_ch6.adb (Verify_Overriding_Indicator,
752 Check_Overriding_Indicator): If operation is overriding, check whether
753 declaration and/or body of subprogram should be present
755 2008-08-20 Vincent Celier <celier@adacore.com>
757 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
758 gprbuild when casing is MixedCase, whatever the casing of the letters
761 2008-08-20 Gary Dismukes <dismukes@adacore.com>
763 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
764 creating dummy init proc.
765 (Requires_Init_Proc): Return False in the case No_Default_Initialization
766 is in force and the type does not have associated default
767 initialization. Move test of Is_Public (with tests of restrictions
768 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
769 for default initialization.
771 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
773 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
774 of any alias or prefix but having attached parameters (as \"-O2\").
776 2008-08-20 Robert Dewar <dewar@adacore.com>
778 * s-fileio.adb: Minor reformatting
780 2008-08-20 Thomas Quinot <quinot@adacore.com>
782 * exp_strm.adb (Build_Elementary_Input_Call,
783 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
784 selects the stream attribute routines for long float types.
786 2008-08-20 Vincent Celier <celier@adacore.com>
788 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
790 * prj.ads (Array_Data): Add a component Location
792 2008-08-20 Ed Schonberg <schonberg@adacore.com>
795 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
796 argument for ASIS and navigation use.
798 2008-08-20 Ed Schonberg <schonberg@adacore.com>
800 * einfo.ads: Add comment.
802 2008-08-20 Bob Duff <duff@adacore.com>
804 * sem_eval.ads: Minor comment fix.
806 2008-08-20 Bob Duff <duff@adacore.com>
808 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
809 folding. We were folding things like "False and then ...", but not
810 "X and then ..." where X is a constant whose value is known at compile
813 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
815 * exp_ch5.adb (Controlled_Type): New routine.
816 (Expand_N_Extended_Return_Statement): When generating a move of the
817 final list in extended return statements, check the type of the
818 function and in the case of double expanded return statements, the type
819 of the returned object.
820 (Expand_Simple_Function_Return): Perform an interface conversion when
821 the type of the returned object is an interface and the context is an
822 extended return statement.
824 2008-08-20 Ed Schonberg <schonberg@adacore.com>
826 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
827 and the full view is visible, set flag on full view as well.
829 2008-08-20 Thomas Quinot <quinot@adacore.com>
831 * g-comlin.adb: Minor reformatting
832 Minor code reorganization.
834 * freeze.adb: Minor reformatting
836 2008-08-20 Vincent Celier <celier@adacore.com>
838 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
839 source of another project.
841 2008-08-20 Pascal Obry <obry@adacore.com>
843 * s-os_lib.ads: Minor reformatting.
845 2008-08-20 Arnaud Charlet <charlet@adacore.com>
847 * gnatvsn.ads: Minor reformatting.
849 2008-08-20 Arnaud Charlet <charlet@adacore.com>
851 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
852 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
853 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
854 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
855 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
856 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
857 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
858 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
859 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
860 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
861 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
862 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
863 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
864 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
865 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
866 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
867 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
868 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
869 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
870 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
871 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
872 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
873 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
874 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
875 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
876 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
877 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
878 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
879 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
880 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
881 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
882 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
883 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
884 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
885 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
886 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
887 s-poosiz.adb, link.c: Fix copyright notice.
889 2008-08-20 Arnaud Charlet <charlet@adacore.com>
891 * g-comlin.ads: Update comments.
893 2008-08-20 Ed Schonberg <schonberg@adacore.com>
895 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
897 2008-08-20 Gary Dismukes <dismukes@adacore.com>
900 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
901 Make_Implicit_Exception_Handler when rewriting an exception handler with
902 a choice parameter, and pass the handler's Sloc instead of that of the
903 handled sequence of statements. Make_Implicit_Exception_Handler sets the
904 Sloc to No_Location (unless debugging generated code), which we don't
905 want for the case of a user handler.
907 2008-08-20 Robert Dewar <dewar@adacore.com>
909 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
912 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
913 now labeled as info msgs, not warnings.
915 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
917 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
919 * a-textio.adb: Remove redundant test.
921 * a-witeio.adb: Minor code reorganization
922 Remove redundant test found working on another issue
924 * a-ztexio.adb: Minor code reorganization
925 Remove redundant test found working on another issue
927 2008-08-20 Thomas Quinot <quinot@adacore.com>
929 * s-fileio.adb (Open) Use C helper function to determine whether a
930 given errno value corresponds to a "file not found" error.
932 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
934 2008-08-20 Jose Ruiz <ruiz@adacore.com>
936 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
937 to get access to the per-task errno variable.
938 (__set_errno for MaRTE): Do not redefine this function here since it is
939 already defined in MaRTE.
941 2008-08-20 Tristan Gingold <gingold@adacore.com>
943 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
945 2008-08-20 Robert Dewar <dewar@adacore.com>
947 * freeze.adb: Minor reformatting
949 * g-comlin.adb: Minor reformatting
951 * g-socket.adb: Minor reformatting
953 * g-socthi-mingw.adb: Minor reformatting
955 * g-stheme.adb: Minor reformatting
957 2008-08-20 Ed Schonberg <schonberg@adacore.com>
959 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
960 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
961 confusion between partial and full views of an ancestor of the context
962 type when the parent is a private extension declared in a parent unit,
963 and full views are available for the context type.
965 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
966 Robert Dewar <dewar@adacore.com>
969 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
971 Move comment in the right place.
972 * g-comver.adb (Version): Look for a zero-termination in
973 addition to a closing parenthesis.
975 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
977 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
978 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
979 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
980 Is_Package_Or_Generic_Package instead of hand-crafted tests.
982 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
985 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
988 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
990 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
992 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
994 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
995 for back-copy statements in lieu of that of the actual.
997 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1000 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
1001 setjmp test consistently. Adjust for new behavior of flag_stack_check.
1002 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
1003 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
1005 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
1008 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
1009 * sem_attr.adb (Check_Type): The current instance of a protected
1010 object is not a type name.
1011 (Analyze_Access_Attribute): Accept instances of protected objects.
1012 (Analyze_Attribute, Attribute_Address clause): Ditto.
1013 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
1014 the prefix as being the current instance if needed.
1016 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1018 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
1019 Remove duplicate s-win32.o. Add s-winext.o.
1021 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1023 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
1024 with SOSC.SOCK__STREAM.
1025 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
1028 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
1030 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
1031 * gsocket.h, socket.c: Update to support RTEMS.
1032 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
1034 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
1035 Robert Dewar <dewar@adacore.com>
1037 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
1038 left argument even when right argument is 0.
1039 (Expand_N_Op_Mod): Ditto when right argument is 1.
1040 (Expand_N_Op_Multiply): Ditto when any argument is 0.
1041 (Expand_N_Op_Rem): Ditto when right argument is 1.
1043 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1045 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1048 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1050 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1051 from Freeze_Entity. Used to generate cross-reference information for
1052 types declared in generic packages.
1054 2008-08-08 Thomas Quinot <quinot@adacore.com>
1056 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1059 2008-08-08 Thomas Quinot <quinot@adacore.com>
1062 On Windows, include <errno.h> and redefine only selected errno values
1063 from their <winsock2.h> definitions.
1065 * s-osinte-freebsd.ads: Minor reformatting
1067 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1069 * g-soccon.ads: New file.
1071 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1072 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1073 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1074 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1075 unit, to allow building software that depends on this internal unit
1076 with both older and newer compilers.
1078 2008-08-08 Robert Dewar <dewar@adacore.com>
1080 * s-strxdr.adb: Minor reformatting
1082 2008-08-08 Bob Duff <duff@adacore.com>
1084 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1085 checking for integer operations (including division by zero)", which
1086 is wrong -- divide by zero is not part of overflow checking.
1087 Also added misc clarification about what check-suppression means.
1089 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1091 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
1093 * g-comlin.adb (Add_Switch): Handle addition of switches at the
1094 begining of the command line.
1095 (Append, Add): Renaming of Append to Add as this now allows addition
1096 at the begining of the list.
1098 * g-comlin.ads (Add_Switch): Handle addition of switches at the
1099 begining of the command line.
1101 2008-08-08 Thomas Quinot <quinot@adacore.com>
1104 (Name): Document application scope (only legacy PC serial ports on
1107 2008-08-08 Thomas Quinot <quinot@adacore.com>
1109 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1110 previous change, not needed after all.
1112 2008-08-08 Ed Schonberg <schonberg@adacore.com>
1114 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1115 exclusion indicator is present
1117 2008-08-08 Robert Dewar <dewar@adacore.com>
1119 * g-comlin.adb: Minor code reorganization
1122 * g-comlin.ads: Minor reformatting
1124 * s-fileio.adb: Minor reformatting
1126 * sem_attr.adb: Minor code reorganization (use Nkind_In)
1129 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1131 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1132 with s-oscons-tmplt.i.
1134 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
1136 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1138 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1140 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1143 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1144 of a formal parameter of an incomplete type. Improve error message for
1145 other improper uses of incomplete types.
1147 2008-08-06 Robert Dewar <dewar@adacore.com>
1149 * gnat_ugn.texi: Clarify -gnato documentation
1151 2008-08-06 Thomas Quinot <quinot@adacore.com>
1153 * gcc-interface/Makefile.in,
1154 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1155 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1156 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1157 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1158 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1159 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1160 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1161 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1162 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1163 Remove GNAT.Sockets.Constants. This internal package is replaced by
1164 System.OS_Constants.
1166 2008-08-06 Thomas Quinot <quinot@adacore.com>
1168 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1169 Remove obsolete targets referencing gen-soccon
1170 When generating s-oscons.ads, use a file name that includes the
1171 THREAD_KIND, to ensure that the (potentially different) version from a
1172 previous build with a different threads flavour does not get reused.
1174 2008-08-06 Thomas Quinot <quinot@adacore.com>
1176 * sem_res.adb: Minor reformatting
1178 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1179 only when the operating system reports a non-existing file or directory
1180 (ENOENT), otherwise raise Name_Error.
1182 * exp_ch11.adb: Minor reformatting
1184 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1186 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1187 incomplete, add the access_to_subprogram type to the list of private
1188 dependents only if the incomplete type will be completed in the current
1190 (Build_Discriminant_Constraints): If the type of the discriminant is
1191 access_to_variable, reject a constraint that is access_to_constant.
1193 2008-08-06 Thomas Quinot <quinot@adacore.com>
1195 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1196 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1197 g-sttsne-dummy.ads: New files.
1199 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1200 with pragma Unimplemented_Unit for sockets packages on Nucleus.
1202 2008-08-06 Pascal Obry <obry@adacore.com>
1204 * adaint.c: Another fix for ACL support on Windows.
1206 2008-08-06 Javier Miranda <miranda@adacore.com>
1208 * exp_disp (Expand_Interface_Actuals): Adds missing support for
1209 expansion of calls to subprograms using selected components.
1211 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1213 * sem_res.adb (Resolve_Call): Use base type to determine whether a
1214 dereference is needed because a subtype of an access_to_subprogram is
1215 simply an access-subtype
1217 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1219 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1220 parameters, always specify the expected separator.
1222 2008-08-06 Thomas Quinot <quinot@adacore.com>
1224 * xnmake.adb: Use new XUtil package for platform independent text
1227 2008-08-06 Vincent Celier <celier@adacore.com>
1229 * gnat_ugn.texi: Document compiler switch -gnateG
1231 2008-08-06 Quentin Ochem <ochem@adacore.com>
1233 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1234 in the case of an empty pattern size.
1235 (Compute_Result): Do not do any computation in the case of an empty
1237 (Report_Result): Fixed computation of the overflow guard.
1239 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1241 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1242 finalization routine to prevent elaboration order anomalies in new
1243 finalization scheme.
1245 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1247 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1248 declaration for the same type.
1250 2008-08-06 Thomas Quinot <quinot@adacore.com>
1252 * sem.adb: Minor rewording (comment)
1254 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1256 * g-comlin.adb (Define_Switch, Get_Switches): New.
1257 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1258 ungrouping switches.
1259 (For_Each_Simple_Switch): Allow more control over parameters handling.
1260 This generic method now allows ungrouping of switches with parameters
1261 and switches with more than one letter after the prefix.
1262 (Set_Command_Line): Take care of switches that are prefixed with a
1263 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1265 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1266 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1268 (Start, Alias_Switches, Group_Switches): Take care of parameters
1269 possibly present inside a group.
1271 * g-comlin.ads (Define_Switch): New method used to define a list of
1272 expected switches, that are necessary for correctly ungrouping switches
1273 with more that one character after the prefix.
1274 (Get_Switches): Method that builds a getopt string from the list of
1275 switches as set previously by Define_Switch.
1276 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1277 status of the operation. Also allow the removal of switches with
1279 (Command_Line_Configuration_Record): Maintain a list of expected
1282 2008-08-06 Doug Rupp <rupp@adacore.com>
1284 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1285 TARGET_MALLOC64 clear.
1287 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1288 if TARGET_MALLOC64 clear.
1290 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1291 (TARGET_MALLC64): New macro. Default to clear.
1293 2008-08-06 Doug Rupp <rupp@adacore.com>
1295 * gcc-interface/utils2.c (snames.h) Include
1296 (TARGET_ABI_OPEN_VMS): Initialize.
1297 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1300 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1302 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1303 null exclusion in a discriminant declaration
1305 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1306 indicators when type is not an access type.
1308 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1309 indicators when type is not an access type.
1311 2008-08-06 Javier Miranda <miranda@adacore.com>
1313 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1314 with the target interface before expanding the code of the interface
1317 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1320 (Freeze_Entity): A deferred constant does not violate the restriction
1321 No_Default_Initialization,
1323 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1324 can carry a null exclusion indicator, and on which an error may be
1325 posted if the indicator is redundant.
1327 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1328 does not apply to a subtype mark that already excludes null.
1330 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1331 exclusion does not apply to a subtype mark that already excludes null.
1333 2008-08-05 Thomas Quinot <quinot@adacore.com>
1335 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1337 2008-08-05 Doug Rupp <rupp@adacore.com>
1339 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1341 2008-08-05 Thomas Quinot <quinot@adacore.com>
1343 * gsocket.h: Make this file includable in a Nucleus environment, which
1344 does not support sockets.
1346 * socket.c: Remove Nucleus-specific hack.
1348 2008-08-05 Pascal Obry <obry@adacore.com>
1350 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1352 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1355 (Analyze_Attribute, case 'Result): handle properly the case where some
1356 operand of the expression in a post-condition generates a transient
1359 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1360 right-hand side when it is an anonymous access_to_subprogram, to force
1361 static accessibility check when needed.
1363 2008-08-05 Sergey Rybin <rybin@adacore.com>
1365 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1366 rule according to the change in the rule option.
1367 Add documentation for -gnatw.b/-gnatw.B
1369 2008-08-05 Robert Dewar <dewar@adacore.com>
1371 * ug_words: Add entries for -gnatw.b/-gnatw.B
1373 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1375 2008-08-05 Vincent Celier <celier@adacore.com>
1377 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1380 * a-ztdeio.adb: Ditto.
1382 2008-08-05 Pascal Obry <obry@adacore.com>
1384 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1387 2008-08-05 Vincent Celier <celier@adacore.com>
1390 (Wide_String_To_String): Returns a String with the same 'First as its
1392 (Wide_Wide_String_To_String): Ditto
1395 (Wide_String_To_String): Document that the lowest index of the returned
1396 String is equal to S'First.
1398 2008-08-05 Thomas Quinot <quinot@adacore.com>
1400 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1402 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1405 2008-08-05 Robert Dewar <dewar@adacore.com>
1407 * opt.ads (Warn_On_Biased_Representation): New flag
1410 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1411 representation is required.
1412 (Minimum_Size): Don't allow biasing if enum rep clause case
1415 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1416 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1418 * usage.adb: Add lines for -gnatw.b/B switches
1420 2008-08-05 Pascal Obry <obry@adacore.com>
1422 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1424 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1426 2008-08-05 Thomas Quinot <quinot@adacore.com>
1428 * socket.c: Minor reformatting.
1430 2008-08-05 Robert Dewar <dewar@adacore.com>
1432 * sem_ch3.adb: Minor reformatting
1434 * prj-nmsc.adb: Minor reformatting
1436 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1438 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1439 visibility check on the component type if the simple test fails.
1441 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1443 * init.c (__gnat_install_handler for linux): If we are building the
1444 Xenomai run time then we need to do two additional things: avoid
1445 memory swapping and transform the Linux environment task into a native
1448 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1449 time): Use interface to Xenomai native skin and avoid linux-specific
1450 way of setting CPU affinity.
1451 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1453 2008-08-05 Bob Duff <duff@adacore.com>
1455 * checks.ads: Minor comment fix
1457 2008-08-05 Thomas Quinot <quinot@adacore.com>
1459 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1460 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1463 2008-08-05 Robert Dewar <dewar@adacore.com>
1465 * mlib.adb: Minor code reorganization
1468 * make.adb: Minor reformatting
1470 * prj-attr.ads: Minor reformatting
1472 * s-os_lib.adb: Minor reformatting
1474 * s-fileio.adb: Minor code reorganization
1477 * prj.ads: Minor reformatting
1479 2008-08-05 Bob Duff <duff@adacore.com>
1481 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1482 unresolved initial value of "null", because it causes implicitly
1483 generated "=" operators to be ambiguous, and because this type should
1484 not be passed to gigi.
1486 2008-08-05 Vincent Celier <celier@adacore.com>
1488 * mlib.adb: Update comments.
1490 * make.adb (Switches_Of): Check for Switches (others), before checking
1491 for Default_Switches ("Ada").
1492 (Gnatmake): Use Builder'Switches (others) in preference to
1493 Builder'Default_Switches ("Ada") if there are several mains.
1496 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1500 Add markers to indicates that attributes Switches allow others as index
1501 (Others_Allowed_For): New Boolean function, returning True for
1502 attributes with the mark.
1503 (Initialize): Recognize optional letter 'O' as the marker for
1504 associative array attributes where others is allowed as the index.
1507 (Others_Allowed_For): New Boolean function
1508 (Attribute_Record): New Boolean component Others_Allowed
1511 (Parse_Attribute_Declaration): For associative array attribute where
1512 others is allowed as the index, allow others as an index.
1515 (Process_Binder): Skip associative array attributes with index others
1516 (Process_Compiler): Ditto
1519 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1520 index is All_Other_Names.
1523 (All_Other_Names): New constant
1526 (Process_Declarative_Items): Skip associative array attribute when index
1527 is reserved word "others".
1529 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1531 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1533 2008-08-05 Thomas Quinot <quinot@adacore.com>
1535 * a-rttiev.adb: Minor reformatting (comments)
1537 * gen-soccon.c: Rename to gen-oscons.c
1539 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1540 GNAT.Sockets.Constants.
1541 Add new constants for GNAT.Serial_Communications and System.File_IO.
1543 2008-08-05 Javier Miranda <miranda@adacore.com>
1545 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1546 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1547 implementation of this routine has been simplified.
1549 2008-08-05 Pascal Obry <obry@adacore.com>
1551 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1552 Set_Read_Only Win32 implementation.
1554 2008-08-05 Thomas Quinot <quinot@adacore.com>
1556 * exp_strm.adb: Minor reformatting (comments)
1558 * sem_ch12.adb: Minor reformatting.
1560 2008-08-05 Robert Dewar <dewar@adacore.com>
1562 * sem_ch3.adb: Minor reformatting
1564 * checks.adb: Minor reformatting
1566 2008-08-05 Thomas Quinot <quinot@adacore.com>
1568 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1569 restriction on Prefix.
1571 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1573 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1574 methods needed to handle switch sections when building a command line.
1575 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1576 Current_Section): New public methods or methods modified to handle
1577 building command lines with sections.
1578 (Set_Command_Line): Take into account sections when analysing a switch
1580 (Start): Sort the switches by sections before iterating the command line
1583 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1584 Is_New_Section, Current_Section): New methods or methods modified to
1585 handle building command lines with sections.
1587 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1589 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1590 discriminants, indicate that the corresponding object declaration has
1591 no initialization, to prevent spurious warnings when the access type is
1594 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1596 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1597 Abort_Task, warn if the call appears within a protected operation.
1599 2008-08-04 Robert Dewar <dewar@adacore.com>
1601 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1603 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1606 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1607 anonymous access to protected subprogram that is the return type of the
1608 specification of a subprogram body.
1611 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1612 subprogram, freeze it now to prevent access anomalies in the back-end.
1614 * exp_ch9.adb: Minor code cleanup.
1615 Make sure that new declarations are inserted into the tree before
1616 analysis (from code reading).
1618 2008-08-04 Robert Dewar <dewar@adacore.com>
1621 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1624 2008-08-04 Thomas Quinot <quinot@adacore.com>
1626 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1628 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1630 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1632 2008-08-04 Javier Miranda <miranda@adacore.com>
1634 * sem_prag.adb (Process_Convention): Add missing support for
1635 N_Private_Extension_Declaration nodes.
1637 2008-08-04 Robert Dewar <dewar@adacore.com>
1639 * exp_ch4.adb: Minor reformatting
1641 2008-08-04 Pascal Obry <obry@adacore.com>
1643 * adaint.h: Add missing prototype.
1645 * adaint.c: Refine support for Windows file attributes.
1647 2008-08-04 Robert Dewar <dewar@adacore.com>
1650 (Valid_Conversion): Catch case of designated types having different
1651 sizes, even though they statically match.
1653 2008-08-04 Javier Miranda <miranda@adacore.com>
1655 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1656 added in previous patch to handle access to subprograms.
1658 2008-08-04 Robert Dewar <dewar@adacore.com>
1661 (Freeze_Entity): Only check No_Default_Initialization restriction for
1662 constructs that come from source
1664 2008-08-04 Thomas Quinot <quinot@adacore.com>
1666 * exp_ch6.adb: Minor comment fix.
1668 * sem_ch4.adb: Minor reformatting.
1670 2008-08-04 Robert Dewar <dewar@adacore.com>
1672 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1674 2008-08-04 Pascal Obry <obry@adacore.com>
1676 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1679 2008-08-04 Javier Miranda <miranda@adacore.com>
1681 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1682 for N_Formal_Object_Declaration nodes. Adding kludge required by
1683 First_Formal to provide its functionality with access to functions.
1684 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1685 for anonymous access types returned by functions.
1687 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1688 conversion of null-excluding access types (required only once to force
1689 the generation of the required runtime check).
1691 * sem_type.adb (Covers): minor reformating
1693 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1694 with internally generated nodes. Avoid generating the error inside init
1697 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1698 (Resolve_Null): Generate the null-excluding check in case of assignment
1699 to a null-excluding object.
1700 (Valid_Conversion): Add missing support for anonymous access to
1703 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1704 anonymous access types whose designated type is an itype. This case
1705 occurs with anonymous access to protected subprograms types.
1706 (Analyze_Return_Type): Add missing support for anonymous access to
1707 protected subprogram.
1709 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1710 subprograms addition of missing check on matching convention. Required
1711 to properly handle access to protected subprogram types.
1713 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1714 null excluding access types.
1716 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1718 * sem_ch12.adb: Add comments
1720 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1721 access type and the allocator is not initialized, warn rather than
1724 2008-08-04 Robert Dewar <dewar@adacore.com>
1726 * exp_ch4.adb: Minor reformatting
1728 * exp_dist.adb: Minor reformatting
1730 * g-comlin.adb: Minor reformatting
1732 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1734 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1735 target to the type of the aggregate in the case where the target object
1738 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1739 result type is class-wide and inherently limited, and the expression
1740 has a specific type, create a return object of the specific type, for
1741 more efficient handling of returns of build-in-place aggregates (avoids
1742 conversions of the class-wide return object to the specific type on
1743 component assignments).
1745 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1746 about a type mismatch for a class-wide function with a return object
1747 having a specific type when the object declaration doesn't come from
1748 source. Such an object can result from the expansion of a simple return.
1750 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1752 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1754 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1755 compiling for 64bit windows.
1757 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1759 * g-comlin.adb (Group_Switches): Preserve the switch order when
1760 grouping and allow switch grouping of switches with more than one
1761 character extension (e.g. gnatw.x).
1762 (Args_From_Expanded): Remove this now obsolete method.
1764 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1766 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1767 chain at once, to ensure that type is properly decorated for back-end,
1768 when allocator appears within a loop.
1770 2008-08-04 Kevin Pouget <pouget@adacore.com>
1772 * snames.h, snames.adb, snames.ads:
1773 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1775 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1776 Build_To_Any_Call and Build_TypeCode_Call procedures.
1778 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1780 * rtsfind.ads: Add corresponding names.
1782 * tbuild.adb: Update prefix restrictions to allow '_' character.
1784 2008-08-04 Doug Rupp <rupp@adacore.com>
1786 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1787 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1788 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1789 use it. Calculate pointer range overflow using 64bit types.
1791 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1793 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1794 legal context for an anonymous access to subprogram.
1796 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1797 indirect call, report success to the caller to include possible
1800 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1802 of the extended return is an anonymous access_to_subprogram type.
1805 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1806 access_to_subprogram and the context requires its return type, and a
1807 dereference has not been introduced previously.
1809 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1811 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1812 gnatcheck support in GPS.
1814 2008-08-04 Vincent Celier <celier@adacore.com>
1816 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1819 2008-08-04 Vincent Celier <celier@adacore.com>
1821 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1822 variable, but don't check the resulting value as it has no impact on
1826 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1827 when switch -gnateG is used.
1830 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1831 when the source is modified by the preprocessor and there is no
1832 preprocessing errors.
1834 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1837 (Load_File): Output the result of preprocessing if the source text was
1840 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1842 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1844 * ug_words: Add VMS equivalent for -gnateG
1847 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1849 2008-08-04 Doug Rupp <rupp@adacore.com>
1851 * gcc-interface/utils2.c:
1852 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1853 in 32bit descriptor.
1855 2008-08-04 Robert Dewar <dewar@adacore.com>
1857 * par-ch10.adb: Minor reformatting
1859 * i-cobol.adb: Minor reformatting.
1861 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1863 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1864 anonymous access return type of a regular function that is not a
1867 2008-08-04 Vincent Celier <celier@adacore.com>
1869 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1871 * snames.adb: New standard name Global_Compilation_Switches
1873 * snames.ads: New standard name Global_Compilation_Switches
1875 * make.adb: Correct spelling error in comment
1877 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1879 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1882 2008-08-04 Thomas Quinot <quinot@adacore.com>
1884 * sem_ch10.adb: Minor comment fix.
1886 2008-08-04 Robert Dewar <dewar@adacore.com>
1888 * restrict.adb: Improved messages for restriction warnings
1890 * restrict.ads: Improved messages for restriction messages
1892 * s-rident.ads (Profile_Name): Add No_Profile
1894 2008-08-04 Robert Dewar <dewar@adacore.com>
1896 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1898 2008-08-04 Robert Dewar <dewar@adacore.com>
1900 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1902 2008-08-04 Vincent Celier <celier@adacore.com>
1905 (Copy_Package_Declarations): When inheriting package Naming from a
1906 project being extended, do not inherit source exception names.
1908 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1910 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1911 list of declaration to find previous subprogram, do not go to the
1912 original node of a generic unit.
1914 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1916 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1917 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1919 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1921 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1922 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1923 and adjust for above renaming.
1924 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1925 gnu_expr_alt_type parameter. Convert the expression to it instead
1926 of changing its type in place.
1927 (build_function_stub): Adjust call to above function.
1929 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1931 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1932 code. Do not get full definition of deferred constants with address
1933 clause for a use. Do not ignore deferred constant definitions with
1934 address clause. Ignore constant definitions already marked with the
1936 <object>: Remove obsolete comment. For a deferred constant with
1937 address clause, get the initializer from the full view.
1938 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1939 Rework and remove obsolete comment.
1940 <N_Object_Declaration>: For a deferred constant with address clause,
1941 mark the full view with the error node.
1942 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1945 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1947 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1949 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1950 sem_prag.adb, snames.adb, snames.ads, snames.h,
1951 par-prag.adb: Undo previous stream related changes.
1953 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1955 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1956 Define enumeration type to designate different IO mechanisms.
1957 Enchance generic package Stream_Ops_Internal to include an
1958 implementation of Input and Output.
1960 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1961 No_Stream_Optimization is active, choose the default byte IO
1962 implementations of stream attributes for Strings.
1963 Otherwise use the corresponding block IO version.
1965 2008-08-01 Olivier Hainque <hainque@adacore.com>
1967 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1968 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1970 2008-08-01 Robert Dewar <dewar@adacore.com>
1972 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1973 convert plain identifier into defining identifier.
1975 2008-08-01 Robert Dewar <dewar@adacore.com>
1977 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1980 * lib-xref.adb: Add error defense.
1982 2008-08-01 Bob Duff <duff@adacore.com>
1984 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1986 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1988 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1989 correct accessibility levels. In the "when others" case, retrieve the
1990 access level of the Etype of Prev rather than Prev_Orig, because the
1991 original exression has not always been analyzed.
1993 2008-08-01 Robert Dewar <dewar@adacore.com>
1995 * prj-nmsc.adb: Minor reformatting
1997 * sem_ch4.adb: Minor reformatting
1998 Minor code reorganization
2000 * prj.ads: Minor reformatting
2002 * s-os_lib.adb: Minor reformatting
2004 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
2007 * scans.ads: Minor reformatting.
2009 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2010 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
2013 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2015 * sem_ch12.adb: Minor comment reformatting
2017 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
2020 2008-08-01 Robert Dewar <dewar@adacore.com>
2022 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
2025 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2027 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
2028 converted is a real literal and the target type has static bounds,
2029 perform the conversion exactly to prevent floating-point anomalies on
2032 2008-08-01 Vincent Celier <celier@adacore.com>
2034 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
2036 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
2038 * prj.adb (Object_Exist_For): Use Object_Generated, not
2039 Objects_Generated that is removed and was never modified anyway.
2042 (Path_Syntax_Kind): New enumeration type
2043 (Language_Config): New component Path_Syntax, defaulted to Host.
2044 Components PIC_Option and Objects_Generated removed, as they are not
2047 * snames.adb: New standard name Path_Syntax
2049 * snames.ads: New standard name Path_Syntax
2051 2008-08-01 Vincent Celier <celier@adacore.com>
2054 (Adalib_Path): New variable to store the path of the adalib directory
2055 when procedure Specify_Adalib_Dir is called.
2056 (Lib_Directory): If Adalib_Path is not null, return its value
2057 (Specify_Adalib_Dir): New procedure
2059 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2061 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2064 (Check_Precondition_Postcondition): If not generating code, analyze the
2065 expression in a postcondition that appears in a subprogram body, so that
2066 it is properly decorated for ASIS use.
2068 2008-08-01 Gary Dismukes <dismukes@adacore.com>
2070 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2071 Orig_Prev to Prev in the case where the actual is N_Function_Call or
2072 N_Identifier. This was interfering with other cases that are rewritten
2073 as N_Identifier, such as allocators, resulting in passing of the wrong
2074 accessibility level, and based on testing this code is apparently no
2075 longer needed at all.
2077 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2079 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2080 procedure call whose prefix
2081 is a parameterless function call that returns an access_to_procedure.
2083 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2085 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2086 for RTX. Adding a suffix that is incremented at each iteration.
2088 2008-08-01 Robert Dewar <dewar@adacore.com>
2090 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2093 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
2095 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2096 paths, which are authorized by Windows but can lead to errors when used
2099 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2101 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2102 a pending instantiation for the body of a subprogram that is to be
2106 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2108 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2109 create a pending instance for its body, so that calls to the subprogram
2110 can be inlined by the back-end.
2112 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2114 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2117 2008-08-01 Robert Dewar <dewar@adacore.com>
2119 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2121 2008-08-01 Doug Rupp <rupp@adacore.com>
2123 * gnat_rm.texi: Document new mechanism Short_Descriptor.
2125 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2128 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2129 mechanism and Short_Descriptor mechanism values.
2131 * snames.adb (preset_names): Add short_descriptor entry.
2133 * snames.ads: Add Name_Short_Descriptor.
2135 * types.h: Add new By_Short_Descriptor mechanism values.
2137 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2138 mechanism and Short_Descriptor mechanism values.
2140 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2142 (Descriptor_Codes): Modify range for new mechanism values.
2144 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2147 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2148 (gnat_to_gnu_param): Handle By_Short_Descriptor.
2150 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2151 (build_vms_descriptor32): New prototype.
2152 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2154 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2155 argument in call fill_vms_descriptor.
2157 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2158 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
2159 (build_vms_descriptor): Renamed from build_vms_descriptor64.
2160 (convert_vms_descriptor32): New function.
2161 (convert_vms_descriptor64): New function.
2162 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2165 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2168 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2170 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2171 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2174 2008-08-01 Jose Ruiz <ruiz@adacore.com>
2176 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2177 current directory so only fully qualified names are allowed.
2179 2008-08-01 Robert Dewar <dewar@adacore.com>
2182 Minor editing, remove uncomfortable use of semicolon
2184 * s-ststop.adb: Add some ??? comments
2186 * sem_ch10.adb: Minor reformatting
2189 Minor comment fixes, some pragmas were not properly
2190 categorized in the comments, documentation change only
2192 * xref_lib.adb: Minor reformatting
2194 * sinput.adb: Minor reformatting
2196 * gnatchop.adb: Minor reformatting
2198 * sem_util.ads: Minor reformatting.
2200 * opt.ads: Minor documentation fix
2202 * scng.adb: Minor reformatting
2204 * prj-part.adb: Update comments
2206 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2208 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2209 tagged synchronized type, use corresponding record type.
2211 2008-08-01 Doug Rupp <rupp@adacore.com>
2213 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2214 dummy transfer address for debugging.
2216 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2218 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2220 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2222 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2223 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2225 2008-07-31 Pascal Obry <obry@adacore.com>
2227 * prj-nmsc.adb: Keep Object and Exec directory casing.
2229 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2231 * system-rtx-rtss.ads
2232 Change the default stack size. It is important to set the commit part.
2235 (Initialize): Get the clock resolution.
2236 (RT_Resolution): Return the clock resolution that is indicated by the
2239 * s-parame-vxworks.adb
2240 Document that this body is used for RTX in RTSS (kernel) mode.
2242 * gcc-interface/Makefile.in
2243 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2244 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2245 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2246 cannot ask for too big values.
2248 2008-07-31 Robert Dewar <dewar@adacore.com>
2250 * exp_aggr.adb: Minor reformatting
2252 * makeutl.adb: Minor reformatting
2254 * prj-env.adb: Minor reformatting
2256 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2258 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2259 tagged type is completed by a concurrent type.
2261 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2264 (Resolve_Record_Aggregate): Bypass error that a type without
2265 components must have a "null record" aggregate when compiling for Ada
2266 2005, since it's legal to give an aggregate of form (others => <>)
2269 2008-07-31 Javier Miranda <miranda@adacore.com>
2271 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2272 handle synchronized types. Required to handle well the object.operation
2273 notation applied to synchronized types.
2275 2008-07-31 Quentin Ochem <ochem@adacore.com>
2277 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2278 anymore - just used internally.
2279 Added handling of very small tasks - when the theoretical size is
2280 already full at the point of the call.
2281 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2282 not need to be added to the result.
2284 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2286 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2287 corresponding spec is a primitive wrapper. Update comment.
2289 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2291 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2292 (Gen_Adainit_Ada): Add the declaration, import and value set for
2293 configuration flag Canonical_Streams.
2294 (Gen_Adainit_C): Add the declaration and initial value of external
2295 symbol __gl_canonical_streams.
2297 * init.c: Update the list of global values computed by the binder.
2299 * opt.ads: Add flag Canonical_Streams.
2301 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2302 semantically handled pragmas.
2304 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2305 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2307 * snames.adb: Add character value for name Canonical_Streams.
2310 Add Name_Canonical_Streams to the list of configuration pragmas.
2311 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2313 * snames.h: Add a definition for Pragma_Canonical_Streams.
2316 Add a flag and import to seize the value of external symbol
2317 __gl_canonical_streams. Update comment and initial value of constant
2320 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2323 Add pragma Canonical_Streams to the list of configuration pragmas.
2325 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2327 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2328 has the form A.B.C and B is a unit renaming, analyze its compilation
2329 unit and add a with_clause on A.b to the context.
2331 2008-07-31 Vincent Celier <celier@adacore.com>
2333 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2334 return the empty string, instead of raising Constraint_Error.
2336 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2338 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2340 * checks.adb (Apply_Accessibility_Check): Insert the check on
2344 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2345 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2346 Necessary to distinguish the insertion node because the dereferenced
2347 formal may come from a rename, but the check must be inserted in
2348 front of the attribute.
2351 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2352 call to Apply_Accessibility_Check.
2353 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2354 on call to Apply_Accessibility_Check.
2357 2008-07-31 Javier Miranda <miranda@adacore.com>
2359 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2360 types when the candidate type is a synchronized type.
2362 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2363 types, and complete management of synchronized types adding missing
2364 code to handle formal that is a synchronized type.
2366 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2367 are not available and cause the compiler to blowup. Found compiling
2368 test with switch -gnatc
2370 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2371 Has_Correct_Formal_Mode plus code cleanup.
2373 2008-07-31 Bob Duff <duff@adacore.com>
2375 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2376 recognized as two end-of-lines, but it should be just one.
2378 2008-07-31 Thomas Quinot <quinot@adacore.com>
2380 * exp_ch9.adb: Minor reformatting
2382 * tbuild.ads: Fix several occurrences of incorrectly referring to
2383 Name_Find as Find_Name.
2385 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2387 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2388 and the context is an object declaration with non-static bounds, treat
2389 the aggregate as non-static.
2391 2008-07-31 Vincent Celier <celier@adacore.com>
2393 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2394 Move back spec of Parse_Single_Project to body, as it is not called
2395 outside of package Prj.Part.
2396 (Project_Data): Remove components Linker_Name, Linker_Path and
2397 Minimum_Linker_Options as they are no longer set.
2398 Remove function There_Are_Ada_Sources from package Prj and move code
2399 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2401 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2403 * mlib-utl.ads: Fix typo.
2405 2008-07-31 Robert Dewar <dewar@adacore.com>
2407 * sem_ch12.adb: Minor reformatting
2409 2008-07-31 Sergey Rybin <rybin@adacore.com>
2411 * gnat_ugn.texi: Change the description of the
2412 Overly_Nested_Control_Structures: now the rule always requires a
2413 positive parameter for '+R' option
2415 2008-07-31 Thomas Quinot <quinot@adacore.com>
2417 * g-pehage.adb: Minor reformatting
2419 2008-07-31 Pascal Obry <obry@adacore.com>
2421 * s-finimp.ads: Minor reformatting.
2423 2008-07-31 Vincent Celier <celier@adacore.com>
2425 * s-regexp.ads: Minor comment fix
2427 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2429 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2430 so that we can compile this file successfully with -gnatc.
2432 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2434 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2435 of the type when looking for stream subprograms for type String,
2436 Wide_String and Wide_Wide_String.
2438 * s-ststop.adb: Change the initialization expression of constant
2441 2008-07-31 Geert Bosch <bosch@adacore.com>
2444 New file implementing __gnat_mulv64 signed integer multiplication with
2447 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2449 * gcc-interface/gigi.h:
2450 (standard_types): Add ADT_mulv64_decl
2451 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2453 * gcc-interface/utils.c:
2454 (init_gigi_decls): Add initialization of mulv64_decl
2456 * gcc-interface/trans.c:
2457 (build_unary_op_trapv): New function
2458 (build_binary_op_trapv): New function
2459 (gnat_to_gnu): Use the above functions instead of
2460 build_{unary,binary}_op
2462 * gcc-interface/Makefile.in
2463 (LIBGNAT_SRCS): Add arit64.c
2464 (LIBGNAT_OBJS): Add arit64.o
2466 2008-07-31 Vincent Celier <celier@adacore.com>
2468 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2469 Linker'Default_Switches are declared. Warn if they are declared.
2471 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2473 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2474 Insert_Actions to place the pointer declaration in the code, rather
2475 than Insert_Before_And_Analyze, so that insertions of temporaries are
2476 kept in the proper order when transient scopes are present.
2479 2008-07-31 Robert Dewar <dewar@adacore.com>
2481 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2483 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2485 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2488 2008-07-31 Vincent Celier <celier@adacore.com>
2490 * s-os_lib.adb: Minor comment fix
2492 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2494 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2495 transfer pre/postconditions from generic copy to original tree, so that
2496 they will appear in each instance.
2497 (Process_PPCs): Do not transform postconditions into a procedure in a
2498 generic context, to prevent double expansion of check pragmas.
2500 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2501 can be the renaming of the
2502 current instance, so check validity of the name accordingly.
2504 2008-07-31 Robert Dewar <dewar@adacore.com>
2506 * mlib-utl.ads: Minor reformatting
2508 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2510 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2511 from context. This attribute must be usable in Ada95 mode.
2512 The attribute can appear in the body of a function marked
2513 Inline_Always, but in this case the postocondition is not enforced.
2515 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2516 of an inlined call pre- and postconditions are legal
2518 2008-07-31 Vincent Celier <celier@adacore.com>
2520 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2521 were for gprmake only
2523 2008-07-31 Robert Dewar <dewar@adacore.com>
2525 * gnat_ugn.texi: Update -gnatN documentation.
2527 * gnat_rm.texi: Add note about pre/postcondition
2528 pragmas not checked in conjunction with front-end inlining.
2530 2008-07-31 Robert Dewar <dewar@adacore.com>
2532 * g-pehage.adb, g-pehage.ads: Minor reformatting
2534 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2536 * mlib-utl.ads, prj-makr.ads: Add comments.
2538 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2540 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2541 [WINDOWS]: Add s-winext.o.
2543 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2546 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2547 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2548 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2549 Set precision to 1 for subtype of BOOLEAN_TYPE.
2550 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2551 (make_type_from_size): Deal with BOOLEAN_TYPE.
2552 * gcc-interface/misc.c (gnat_print_type): Likewise.
2553 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2554 Set boolean_type_node as its translation in the table, as well
2555 as boolean_false_node for False and boolean_true_node for True.
2556 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2557 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2558 (create_param_decl): Deal with BOOLEAN_TYPE.
2559 (build_vms_descriptor): Likewise.
2560 (build_vms_descriptor64): Likewise.
2561 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2563 2008-07-30 Robert Dewar <dewar@adacore.com>
2565 * exp_ch9.adb: Minor reformatting
2567 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2568 if no primitive operation is found.
2570 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2572 * sem_ch8.adb: Minor reformatting
2574 2008-07-30 Laurent Pautet <pautet@adacore.com>
2577 Remove a limitation on the length of the words handled by the minimal
2578 perfect hash function generator.
2581 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2584 2008-07-30 Robert Dewar <dewar@adacore.com>
2586 * gnatlink.adb: Minor reformatting
2588 2008-07-30 Thomas Quinot <quinot@adacore.com>
2590 * rtsfind.adb (Check_RPC): Check version consistency even when not
2591 generating RCI stubs. Provide more detailed error message in case of
2594 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2596 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2597 as a actual in an instance, check for a missing attribute to prevent
2598 program_error on an illegal program.
2600 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2601 error if primitive is not found, so that exception can be handled
2602 elsewhere on illegal programs.
2604 2008-07-30 Robert Dewar <dewar@adacore.com>
2606 * uintp.adb (UI_GCD): Fix potential overflow
2608 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2610 * einfo.adb: Flag245 is now used.
2611 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2612 check to include functions.
2613 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2614 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2616 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2617 to the list of displayed flags.
2619 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2620 Wrapped_Entity. These two flags are now present in functions.
2621 New flag Is_Private_Primitive.
2622 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2625 (Build_Wrapper_Bodies): New subprogram.
2626 (Build_Wrapper_Body): The spec and body have been moved to in
2627 Build_Wrapper_ Bodies. Code cleanup.
2628 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2629 Wrappers are now generated for primitives declared between the private
2630 and full view of a concurrent type that implements an interface.
2631 (Build_Wrapper_Specs): New subprogram.
2632 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2633 creation mechanism with a call to Build_Wrapper_Bodies.
2634 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2635 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2636 (Expand_N_Task_Body): Replace the wrapper body creation
2637 mechanism with a call to Build_Wrapper_Bodies.
2638 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2639 creation mechanism with a call to Build_Wrapper_Specs.
2640 (Is_Private_Primitive_Subprogram): New subprogram.
2641 (Overriding_Possible): Code cleanup.
2642 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2644 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2646 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2647 (Process_Full_View): Build wrapper specs for all primitives
2648 that belong to a private view completed by a concurrent type
2649 implementing an interface.
2651 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2653 concurrent type with a private view that implements an interface, try to
2654 find the proper spec.
2655 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2656 primitive if the type of its first parameter is a non-generic tagged
2658 (Analyze_Subprogram_Specification): Code reformatting.
2659 (Disambiguate_Spec): New routine.
2660 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2661 (Is_Private_Concurrent_Primitive): New routine.
2664 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2666 2008-07-30 Doug Rupp <rupp@adacore.com>
2668 * gigi.h (build_vms_descriptor64): New function prototype.
2669 (fill_vms_descriptor): Modified function prototype.
2671 * utils.c (build_vms_descriptor64): New function.
2673 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2675 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2678 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2679 64bit and 32bit descriptor and save the 64bit version as an alternate
2680 TREE_TYPE in the parameter.
2681 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2684 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2686 2008-07-30 Robert Dewar <dewar@adacore.com>
2688 * make.adb: Minor reformatting
2690 * mlib-utl.adb: Minor reformatting
2692 * osint.ads: Minor reformatting
2694 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2697 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2698 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2699 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2702 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2703 the function RtPrintf for console output.
2705 * argv.c Do not use the environ variable for RTX.
2707 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2708 been moved before the call to Osint.Add_Default_Search_Dirs in order
2709 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2710 from the appropriate run time.
2713 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2714 target is a RTSS module for RTX.
2716 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2717 RTX_RTSS_Kernel_Module
2718 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2720 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2721 exception handling mechanism for Windows and RTX in Win32 mode, but
2722 not for RTX in kernel mode (RTSS).
2723 (LIBGNAT_SRCS): Remove ada.h
2725 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2727 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2728 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2729 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2730 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2731 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2732 ALL_ADA_CFLAGS): Remove.
2733 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2734 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2735 (GCC_CFLAGS): Remove X_CFLAGS.
2736 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2737 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2738 (ADA_CFLAGS): Substitute.
2740 2008-07-30 Laurent Guerby <laurent@guerby.net>
2743 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2744 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2745 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2746 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2747 by stamp-gnatlib2-rts.
2749 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2751 PR documentation/15479
2752 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2753 statement for GNAT. Add @copying stanza, use it. Update to
2754 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2755 title as Front-Cover Text.
2756 * gnat_rm.texi: Likewise.
2757 * gnat_ugn.texi: Likewise.
2759 2008-07-29 Jan Hubicka <jh@suse.cz>
2761 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2764 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2766 * gcc-interface: New directory.
2768 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2769 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2770 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2771 to gcc-interface subdirectory.
2773 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2775 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2777 2008-07-28 Jan Hubicka <jh@suse.cz>
2779 * misc.c (gnat_post_options): Do not set flag_no_inline.
2781 2008-07-28 Richard Guenther <rguenther@suse.de>
2783 Merge from gimple-tuples-branch.
2785 2008-07-22 Olivier Hainque <hainque@adacore.com>
2787 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2788 this is called for an elab proc to be discarded if empty.
2789 * utils.c (end_subprog_body): Honor ELAB_P.
2790 (build_function_stub): Adjust call to end_subprog_body.
2791 * trans.c (Subprogram_Body_to_gnu): Likewise.
2792 (gigi): Reorganize processing of elab procs to prevent
2793 gimplifying twice, using the new end_subprog_body argument.
2795 2008-07-19 Richard Guenther <rguenther@suse.de>
2797 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2798 (utils.o): Likewise.
2799 * trans.c: Include tree-iterator.h.
2800 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2801 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2802 (set_expr_location_from_node): Likewise.
2804 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2806 * utils.c: Include tree-iterator.h.
2807 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2809 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2811 * trans.c: Include gimple.h instead of tree-gimple.h.
2814 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2816 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2818 2008-07-25 Jan Hubicka <jh@suse.cz>
2820 * utils.c (end_subprog_body): Remove inline trees check.
2821 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2823 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2825 * raise-gcc.c: Move tsystem.h before tm.h.
2827 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2829 * gnathtml.pl: New file.
2831 2008-07-19 Olivier Hainque <hainque@adacore.com>
2833 * targtyps.c (get_target_default_allocator_alignment): Use
2834 MALLOC_ABI_ALIGNMENT.
2836 2008-07-17 Olivier Hainque <hainque@adacore.com>
2838 * adaint.c (__MINGW32__ section): Include ctype.h and define
2839 a fallback ISALPHA if IN_RTS.
2840 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2842 2008-07-17 Olivier Hainque <hainque@adacore.com>
2844 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2845 argument, to apply to references in addition to definitions. Prevent
2846 setting TREE_STATIC on externals.
2847 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2849 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2851 PR documentation/15479
2852 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2853 Replace backets around optional parameters with @ovar
2854 where possible, use @r{[}, @r{]} otherwise.
2855 Replace some @r, @i, and @emph with @var where appropriate.
2857 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2859 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2861 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2863 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2864 -Wc++-compat warnings.
2865 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2866 __gnat_locate_exec_on_path): Likewise.
2867 * decl.c (annotate_value): Likewise.
2868 * misc.c (gnat_handle_option): Likewise.
2869 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2870 post_error_ne_tree): Likewise.
2872 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2874 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2875 version of its type, attempt to first convert its elements.
2877 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2879 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2881 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2883 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2885 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2887 * utils2.c (known_alignment): Derive the alignment from pointed-to
2888 types only if it is otherwise unknown.
2889 <INTEGER_CST>: Tidy.
2890 <MULT_EXPR>: Likewise.
2891 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2894 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2897 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2899 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2901 * gnat_rm.texi (Implementation Defined Characteristics)
2902 (Standard Library Routines): Use @smallexample for indented
2903 text. Drop Indentation outside examples.
2904 * gnat_ugn.texi: Likewise.
2906 2008-06-13 Olivier Hainque <hainque@adacore.com>
2908 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2910 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2911 realignment with force_align_arg_pointer attribute on foreign
2912 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2914 2008-06-13 Olivier Hainque <hainque@adacore.com>
2916 * utils.c (rest_of_record_type_compilation): When computing
2917 encodings for the components of a variable size type, early
2918 strip conversions on the current position expression to make
2919 sure it's shape is visible. Use remove_conversions for this
2922 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2924 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2925 constrained subtype of a discriminated type, discard the fields that
2926 are beyond its limits according to its size.
2928 2008-06-10 Olivier Hainque <hainque@adacore.com>
2930 * utils.c (create_subprog_decl): If this is for the 'main' entry
2931 point according to the asm name, redirect main_identifier_node.
2933 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2935 * decl.c (components_to_record): Adjust the packedness for the
2936 qualified union as well.
2938 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2940 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2943 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2945 * sem_res.adb (Large_Storage_Type): A type is large if it
2946 requires as many bits as Positive to store its values and its
2947 bounds are known at compile time.
2948 * sem_ch13.adb (Minimum_Size): Note that this function returns
2949 0 if the size is not known at compile time.
2951 2008-06-06 Nicolas Setton <setton@adacore.com>
2952 Olivier Hainque <hainque@adacore.com>
2954 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2955 attribute, parallel descriptive type attached to another
2956 type for debug info generation purposes.
2957 * utils.c (add_parallel_type): New function, register
2958 parallel type to be attached to a type.
2959 (get_parallel_type): New function, fetch a registered
2960 parallel type, if any.
2961 (rest_of_record_type_compilation): Register the parallel
2962 type we make for variable size records.
2963 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2964 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2965 parallel debug types we make.
2966 * trans.c (extract_encoding, decode_name): New functions.
2967 (gigi): If the DWARF attribute extensions are available, setup
2969 * lang.opt: Register language specific processing request
2971 * misc.c (gnat_dwarf_extensions): New global variable. How much
2972 do we want of our DWARF extensions. 0 by default.
2973 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2974 (gnat_post_options): Map gnat_dwarf_extensions to the
2975 commonuse_gnu_debug_info_extensions for later processing.
2977 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2979 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2981 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2983 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2984 * gnat_ugn.texi (Style Checking)
2985 (Adding the Results of Compiler Checks to gnatcheck Output)
2986 (Example of Binder Output File): Fix typos.
2987 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2988 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2989 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2990 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2991 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2992 sinfo.ads, utils.c: Fix typos in comments.
2993 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2995 2008-05-29 Thomas Quinot <quinot@adacore.com>
2997 * sem_eval.adb: Minor reformatting
2999 2008-05-29 Ed Schonberg <schonberg@adacore.com>
3001 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
3002 is abstract, do not apply abstractness check on subprogram if this is
3003 a renaming declaration.
3005 2008-05-29 Arnaud Charlet <charlet@adacore.com>
3008 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
3009 allow recognition of program suffix in addition to prefix.
3011 * gnatchop.adb (Locate_Executable): Add support for prefix.
3013 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
3014 mlib-utl.adb: Adjust calls to Program_Name.
3016 2008-05-29 Robert Dewar <dewar@adacore.com>
3018 * sem_ch3.adb: Minor reformatting
3019 * sem_prag.adb: Minor reformatting
3020 * sem_res.adb: Minor reformatting
3021 * sinput-p.ads: Minor reformatting
3023 2008-05-29 Javier Miranda <miranda@adacore.com>
3026 (Abstract_Interface_List): Add missing support for full type-declaration
3027 associated with synchronized types.
3029 2008-05-29 Robert Dewar <dewar@adacore.com>
3031 * sem_eval.adb (Is_Same_Value): Take care of several more cases
3033 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3035 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
3036 access type, wrap the expression in a conversion to force an
3037 accessibility check.
3039 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
3040 accessibility checks even when expansion is disabled in order to
3041 generate messages in the presence of previous errors or in
3042 semantics-only mode.
3044 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
3046 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3047 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3049 2008-05-28 Vincent Celier <celier@adacore.com>
3052 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3053 preprocessing expressions
3055 2008-05-28 Vincent Celier <celier@adacore.com>
3057 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3060 * sinput-p.ads: Minor comment update and reformatting
3062 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3064 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3065 type has a deeper level than any master only when it is the type of an
3068 2008-05-28 Javier Miranda <miranda@adacore.com>
3070 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3072 2008-05-28 Javier Miranda <miranda@adacore.com>
3074 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3075 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3076 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3077 Add code that was previously located in
3078 Find_Overridden_Synchronized_Primitive because it is only used here.
3080 2008-05-28 Sergey Rybin <rybin@adacore.com>
3082 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3083 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3085 2008-05-28 Robert Dewar <dewar@adacore.com>
3088 Add missing restrictions, and properly label all GNAT defined ones
3091 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3092 Add entry for Ada.Task_Termination.Set_Specific_Handler
3093 Add entry for Ada.Task_Termination.Specific_Handler
3096 Add missing restrictions and properly mark all gnat defined ones
3099 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
3102 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3104 * gnat_rm.texi: Add missing restrictions, and properly label all
3107 2008-05-28 Robert Dewar <dewar@adacore.com>
3110 (Check_Restriction): violation of restriction No_Finalization is
3111 treated as a serious error to stop expansion
3113 2008-05-28 Robert Dewar <dewar@adacore.com>
3115 * exp_util.adb: Minor reformatting
3116 * exp_util.ads: Minor reformatting.
3118 2008-05-28 Arnaud Charlet <charlet@adacore.com>
3120 * Make-lang.in: Remove gprmake.
3122 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3124 2008-05-28 Ed Schonberg <schonberg@adacore.com>
3126 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3127 improper progenitor names, and avoid cascaded errors.
3129 2008-05-28 Robert Dewar <dewar@adacore.com>
3131 * gnat_rm.texi: Add note on Old giving warning when applied to constant
3133 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3136 2008-05-28 Robert Dewar <dewar@adacore.com>
3138 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3141 2008-05-28 Robert Dewar <dewar@adacore.com>
3144 (Expand_Simple_Function_Return): Copy unaligned result into temporary
3146 2008-05-28 Javier Miranda <miranda@adacore.com>
3148 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3149 for user-defined predefined primitives.
3151 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3152 (Find_Overridden_Synchronized_Primitive): Ditto.
3154 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3156 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3158 * a-ststio.adb, s-direio.adb:
3159 Further code clean up of previous change.
3162 2008-05-27 Vincent Celier <celier@adacore.com>
3164 * prj-nmsc.adb: Minor reformatting
3166 2008-05-27 Bob Duff <duff@adacore.com>
3168 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3169 untagged private type with a tagged full type, where the full type has
3170 a self reference, create the corresponding class-wide type early, in
3171 case the self reference is "access T'Class".
3173 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3175 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3176 tasks and context is an object declaration. create master entity before
3179 2008-05-27 Robert Dewar <dewar@adacore.com>
3181 * mlib-prj.adb: Minor reformatting
3183 * prj-part.adb: Minor reformatting
3185 * prj.ads: Minor reformatting
3187 * exp_ch3.adb: Minor reformatting.
3189 * sem_ch3.ads: Minor reformatting
3191 * sem_eval.adb: Minor reformatting
3193 2008-05-27 Vincent Celier <celier@adacore.com>
3196 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3198 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3200 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3201 tasks, create an activation chain now, before the expansion into
3202 assignments and build-in-place calls that require the presence of an
3204 (Backend_Processing_Possible): If the component type is inherently
3205 limited, the aggregate must be expanded into individual built-in-place
3208 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3209 determine whether an allocation extra parameter must be built, to
3210 handle case of a private type whose full type is a discriminated type
3213 2008-05-27 Bob Duff <duff@adacore.com>
3216 Document the new behavior regarding trampolines.
3218 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3220 * a-direio.adb, a-sequio.adb: Replace address clause by
3221 unrestricted_access, simpler and compatible with .NET.
3223 2008-05-27 Vincent Celier <celier@adacore.com>
3226 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3227 a project file, so that symbolic links are not resolved.
3229 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3231 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3232 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3233 portable across GNAT targets, since this kind of address clause is not
3234 supported by VM back-ends (.NET/JGNAT).
3236 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3238 * bindgen.adb: Update comments.
3240 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3242 2008-05-27 Vincent Celier <celier@adacore.com>
3244 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3245 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3246 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3247 (Path_Information): New record type
3248 Use component of type Path_Information when there are two paths, one in
3249 canonical format and one in display format.
3250 Update the project manager to these new components.
3252 2008-05-27 Robert Dewar <dewar@adacore.com>
3254 * makeutl.adb: Minor reformatting
3255 * prj-nmsc.adb: Minor reformatting
3256 * s-stausa.adb: Minor reformatting
3257 * s-stausa.ads: Minor reformatting
3258 * sem_ch6.adb: Minor reformatting
3260 2008-05-27 Thomas Quinot <quinot@adacore.com>
3262 * sem_res.adb: Minor comment fixes
3264 2008-05-27 Thomas Quinot <quinot@adacore.com>
3266 * makeutl.adb: Minor code reorganization
3268 * exp_aggr.adb: Add ??? comment
3271 * exp_ch6.adb: Minor reformatting
3273 2008-05-27 Quentin Ochem <ochem@adacore.com>
3275 * s-stausa.adb (Initialize): Updated result initialization, and
3276 initialization of environment stack.
3277 (Fill_Stack): Improved computation of the pattern zone, taking into
3278 account already filled at the calling point.
3279 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3280 Measure and Overflow_Guard.
3281 (Report_Result): Fixed computation of the result using new fields of
3284 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3285 params by more explicit Stack_Size / Max_Pattern_Size params.
3286 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3287 Added Stack_Used_When_Filling field.
3288 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3289 Min_Measure and Max_Measure fields.
3291 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3293 2008-05-27 Vincent Celier <celier@adacore.com>
3296 (Check_File): Make sure that a unit that replaces the same unit in a
3297 project being extended is properly processed.
3299 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3302 (Get_Discr_Value): Remove obsolete code that failed to find the value
3303 of a discriminant for an inherited task component appearing in a type
3306 2008-05-27 Thomas Quinot <quinot@adacore.com>
3308 (System.File_IO.{Close, Delete, Reset}):
3309 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3311 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3312 Pass File parameter by reference.
3314 2008-05-27 Vincent Celier <celier@adacore.com>
3317 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3318 sources of the same project that have the same object file name.
3319 (Find_Explicit_Sources): Always remove a source exception that was not
3322 2008-05-27 Thomas Quinot <quinot@adacore.com>
3324 * sem_ch3.adb: Minor reformatting
3326 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3329 (Is_Interface_Conformant): Handle properly a primitive operation that
3330 overrides an interface function with a controlling access result.
3331 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3332 inherited and overriding operations, omit as well the conformance check
3333 on result types, to prevent spurious errors.
3335 2008-05-27 Vincent Celier <celier@adacore.com>
3337 * makeutl.ads, makeutl.adb:
3338 (Set_Location): New procedure
3339 (Get_Location): New function
3340 (Update_Main): New procedure
3342 2008-05-27 Vincent Celier <celier@adacore.com>
3345 (Check_Library): Allow standard project to be extended as a static
3347 (Get_Mains): Do not inherit attribute Main in an extending library
3350 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3352 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3353 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3354 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3355 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3356 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3357 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3358 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3359 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3360 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3361 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3363 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3365 * sem_attr.adb: add guard to previous patch.
3367 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3369 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3370 a synchronized tagged type, do not attempt to build dispatch table for
3371 full view. The table is built for the corresponding record type, which
3372 has its own declaration.
3374 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3376 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3377 to the known type entity E, rather than setting it to Any_Type. Fixes
3378 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3379 for objects whose type had an illegal constraint.
3381 2008-05-27 Vincent Celier <celier@adacore.com>
3384 Add succinct documentation for attribute Excluded_Source_List_File
3386 2008-05-27 Vincent Celier <celier@adacore.com>
3388 * prj-attr.adb: Add new project level attribute Map_File_Option
3390 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3392 * prj.ads: Minor reformatting and comment update
3393 (Project_Configuration): New component Map_File_Option
3395 * snames.adb: New standard name Map_File_Option
3397 * snames.ads: New standard name Map_File_Option
3399 2008-05-27 Vincent Celier <celier@adacore.com>
3401 * xsnames.adb: Remove unused variable Oname
3403 2008-05-27 Doug Rupp <rupp@adacore.com>
3406 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3409 (Expand_Vax_Foreign_Return): Fix comments.
3411 2008-05-27 Thomas Quinot <quinot@adacore.com>
3413 * exp_dist.adb: Minor reformating
3415 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3417 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3418 No_Default_Initialization, which is now delayed until the freeze point
3419 of the object. Add a comment about deferral of the check.
3421 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3422 on objects is moved here.
3424 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3426 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3427 (Compare_Array_S16): Adjust for above change.
3428 * s-casi32.adb (Uword): Likewise.
3429 (Compare_Array_S32): Likewise.
3430 * s-casi64.adb (Uword): Likewise.
3431 (Compare_Array_S64): Likewise.
3432 * s-caun16.adb (Uhalf): Likewise.
3433 (Compare_Array_U16): Likewise.
3434 * s-caun32.adb (Uword): Likewise.
3435 (Compare_Array_U32): Likewise.
3436 * s-caun64.adb (Uword): Likewise.
3437 (Compare_Array_U64): Likewise.
3439 2008-05-26 Robert Dewar <dewar@adacore.com>
3441 * exp_ch6.adb: Add ??? comment for previous change
3443 * exp_vfpt.adb: Minor reformatting
3445 * exp_vfpt.ads: Add ??? comment for last change
3447 * sem_attr.adb: Add some ??? comments for previous change
3449 * s-vaflop.ads: Add comments for previous change
3451 2008-05-26 Doug Rupp <rupp@adacore.com>
3453 * s-vaflop-vms-alpha.adb:
3454 Remove System.IO use clause, to prevent spurious ambiguities when
3455 package is access through rtsfind.
3457 2008-05-26 Sergey Rybin <rybin@adacore.com>
3459 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3462 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3465 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3466 converted to S (A)'address only if A .. B is known to be a non-null
3469 2008-05-26 Doug Rupp <rupp@adacore.com>
3472 (Return_D, Return_F, Return_G): New functions.
3475 (Return_D, Return_F, Return_G): New functions.
3478 (Expand_Vax_Foreign_Return): New procedure
3481 (Expand_Vax_Foreign_Return): New procedure
3484 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3485 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3489 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3491 * s-vaflop-vms-alpha.adb:
3492 (Return_D, Return_F, Return_G): New functions.
3494 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3496 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3497 init proc entity when there is actual default initialization associated
3498 with the component type, to avoid spurious errors on objects of scalar
3499 array types that are marked Is_Public when No_Default_Initialization
3502 2008-05-26 Thomas Quinot <quinot@adacore.com>
3504 * rtsfind.ads, rtsfind.adb:
3505 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3506 (Check_RPC): Support per-PCS-kind API versioning.
3508 exp_dist.ads, exp_dist.adb:
3509 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3510 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3511 library function Get_RACW.
3512 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3513 library function Get_Reference.
3514 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3515 through an intermediate Any.
3516 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3517 going through an intermediate Any.
3519 * sem_dist.adb: Minor reformatting.
3521 2008-05-26 Javier Miranda <miranda@adacore.com>
3523 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3524 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3525 (Is_Internal): Adding documentation on internal entities that have
3526 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3528 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3529 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3530 Added assertion to force entities with this attribute to have
3531 attribute Is_Internal set to True.
3532 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3534 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3535 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3536 a new implementation.
3537 (Add_Interface_Tag_Components): Remove special management of
3538 synchronized interfaces.
3539 (Analyze_Interface_Declaration): Minor reformating
3540 (Build_Derived_Record_Type): Minor reformating
3541 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3542 predefined primitive inherited from interface type because the body of
3543 internally generated predefined primitives of tagged types are generated
3544 later by Freeze_Type
3545 (Derive_Subprogram): Avoid generating an internal name if the parent
3546 subprogram overrides an interface primitive.
3547 (Derive_Subprograms): New implementation that keeps separate the
3548 management of tagged types not implementing interfaces, from tagged
3549 types that implement interfaces.
3550 (Is_Progenitor): New implementation.
3551 (Process_Full_View): Add documentation
3552 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3553 by call to Derive_Progenitor_Subprograms.
3555 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3556 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3557 Skip_Controlling_Formals.
3559 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3560 (Check_Conventions): New implementation. Remove local subprogram
3561 Skip_Check. Remove formal Search_From of routine Check_Convention.
3562 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3563 Skip_Controlling_Formals.
3564 (New_Overloaded_Entity): Enable addition of predefined dispatching
3568 (Find_Primitive_Covering_Interface): New subprogram.
3570 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3571 the task body procedure as a primitive of the corresponding tagged
3573 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3574 to the list of primitives.
3575 (Find_Primitive_Covering_Interface): New subprogram.
3576 (Override_Dispatching_Operation): Add documentation.
3578 * sem_type.adb (Covers): Minor reformatings
3580 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3583 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3584 (Implements_Interface): New subprogram.
3585 (Is_Parent): Removed.
3586 (Primitive_Names_Match): New subprogram.
3587 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3588 (Ultimate_Alias): New subprogram.
3590 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3592 Remove special management for synchronized types. Rename formal. Remove
3593 internal subprograms Interface_Present_In_Parent and Add_Interface.
3594 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3595 on non-record types by code to return false in such case.
3596 (Implements_Interface): New subprogram.
3597 (Is_Parent): Removed. No special management is now required for
3598 synchronized types covering interfaces.
3599 (Primitive_Names_Match): New subprogram.
3600 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3601 (Ultimate_Alias): New subprogram.
3603 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3604 Add internal entities associated with secondary dispatch tables to
3605 the list of tagged type primitives that are not interfaces.
3606 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3607 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3608 the management of predefined equality operator. In addition, if
3609 the type has an equality function corresponding with a primitive
3610 defined in an interface type, the inherited equality is abstract
3611 as well, and no body can be created for it.
3613 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3614 exp_util to exp_disp.
3615 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3616 an entity corresponds with one of the predefined primitives required
3617 to implement interfaces.
3618 Update copyright notice.
3620 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3621 final check on abstract subprograms all the primitives associated with
3622 interface primitives because they must be visible in the public and
3624 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3625 interface type. This allows the use of this routine, for debugging
3626 purposes, when the tagged type is not fully decorated.
3627 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3628 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3629 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3630 entity corresponds with one of the predefined primitives required to
3631 implement interfaces.
3633 * exp_util.adb (Find_Interface_ADT): New implementation
3634 (Find_Interface): Removed.
3636 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3637 list of interfaces associated with nodes
3638 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3640 2008-05-26 Thomas Quinot <quinot@adacore.com>
3642 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3643 condition for assignment to temporary.
3645 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3647 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3648 checks on the upper bound if the index type is a modular type, to
3649 prevent wrap-around computations when size is close to upper bound of
3652 2008-05-26 Robert Dewar <dewar@adacore.com>
3654 * sem_ch3.adb: Minor reformatting
3656 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3658 * sem_ch12.adb (Remove_Parent): Use specification of instance
3659 to retrieve generic parent,
3660 to handle properly the case where the instance is a child unit.
3661 Add guard to handle properly wrapper packages.
3664 2008-05-26 Thomas Quinot <quinot@adacore.com>
3666 * sinfo.ads: Minor reformatting
3668 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3670 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3671 Generate a tag check when the result subtype of a function, defined by
3672 an access definition, designates a specific tagged type.
3673 (Make_Tag_Check): New routine.
3675 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3677 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3679 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3681 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3682 (builtin_decl_for): Likewise.
3683 * trans.c (gigi): Likewise.
3684 * utils.c (def_builtin_1): Fix formatting.
3686 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3688 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3689 Create the statements which map a string name to protected or task
3692 * exp_ch9.adb: Add with and use clause for Stringt.
3693 Minor code reformatting.
3694 (Build_Entry_Names): New routine.
3695 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3696 for flag Build_Entry_Names which controls the allocation of the data
3697 structure for the string names of entries.
3699 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3701 * exp_util.adb (Entry_Names_OK): New function.
3703 * exp_util.ads (Entry_Names_OK): New function.
3705 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3706 enumerations RE_Id and RE_Unit_Table.
3708 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3709 (Free_Entry_Names_Array): New routine.
3711 * s-taskin.ads: Comment reformatting.
3712 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3713 Add component Entry_Names to record Ada_Task_Control_Block.
3714 (Free_Entry_Names_Array): New routine.
3716 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3717 dynamically allocate an array
3718 of string pointers. This structure holds string entry names.
3719 (Free_Entry_Names): New routine.
3720 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3721 (Set_Entry_Names): New routine.
3724 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3725 control the allocation of the data structure which stores entry names.
3726 (Set_Entry_Name): New routine.
3729 Add with and use clause for Ada.Unchecked_Conversion.
3730 (Finalize): Deallocate the entry names array.
3731 (Free_Entry_Names): New routine.
3732 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3733 create an array of string pointers to hold the entry names.
3734 (Set_Entry_Name): New routine.
3737 Add field Entry_Names to record Protection_Entries.
3738 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3739 (Set_Entry_Name): New routine.
3741 2008-05-26 Vincent Celier <celier@adacore.com>
3744 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3747 (Project_Configuration): New component Shared_Lib_Driver
3749 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3752 (Cleanup_Scopes): For a protected operation, transfer finalization list
3753 to protected body subprogram, to force cleanup actions when needed.
3755 2008-05-26 Robert Dewar <dewar@adacore.com>
3757 * sem_cat.adb: Minor reformatting
3759 * gnatname.adb: Minor reformatting
3761 * osint.ads: Minor reformatting
3763 * s-carun8.ads: Minor reformatting
3765 * g-heasor.ads: Minor comment fix (unit is now pure)
3767 2008-05-26 Robert Dewar <dewar@adacore.com>
3770 (Expand_Current_Value): Properly type generated integer literal
3772 2008-05-26 Sergey Rybin <rybin@adacore.com>
3774 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3775 Separate_Numeric_Error_Handlers.
3777 2008-05-26 Pascal Obry <obry@adacore.com>
3779 * sem_aggr.adb: Minor reformatting.
3781 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3784 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3785 the scheduling policy to FIFO within priorities or round-robin
3787 Hence, the priority must be set in this case to the one selected by the
3790 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3793 (Remove_Parent): If the enclosing scope is an instance whose generic
3794 parent is declared within some parent scope of the just completed
3795 instance, make full views of the entities in that parent visible, when
3798 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3800 * mingw32.h (STD_MINGW): Set to true for target w64.
3802 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3804 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3805 instead of TREE_STATIC on the ADDR_EXPR.
3807 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3809 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3810 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3811 GNAT standard locations.
3813 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3815 * gigi.h (mark_visited): Declare.
3816 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3817 only the topmost node of expressions.
3818 (elaborate_expression_1): Look deeper for read-only variables.
3819 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3820 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3821 (mark_visited_r): New function.
3823 2008-05-23 Vincent Celier <celier@adacore.com>
3825 * snames.adb: New standard name Excluded_Source_List_File.
3827 * snames.ads: New standard name Excluded_Source_List_File.
3829 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3831 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3832 Get excluded sources from
3833 file indicated by attribute Excluded_Source_List_File, when present and
3834 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3836 2008-05-23 Robert Dewar <dewar@adacore.com>
3838 * exp_dist.adb: Minor reformatting
3840 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3842 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3843 slice, convert it to an indexed component, which is equivalent, more
3844 efficient, and usable even if the slice itself is not addressable.
3846 2008-05-23 Olivier Hainque <hainque@adacore.com>
3848 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3849 convention also allows access to named compiler built-in subprograms
3850 such as the GCC __builtin family.
3852 2008-05-23 Vincent Celier <celier@adacore.com>
3854 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3855 sep. If there are several possibilities, choose the one with the
3858 2008-05-23 Vincent Celier <celier@adacore.com>
3860 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3861 back end switches when executable specified with --GCC= is same as
3862 default, even if there are additional options.
3865 Document when the back end switches from the ALI file are taken into
3866 account when gnatlink is invoked with --GCC=
3868 2008-05-23 Thomas Quinot <quinot@adacore.com>
3871 (copy_File): Do not open destination file if source file is unreadable.
3873 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3875 * utils.c (handle_type_generic_attribute): Adjust to accept
3876 fixed arguments before an elipsis.
3878 2008-05-21 Thomas Quinot <quinot@adacore.com>
3880 * g-sothco.ads, g-sothco.adb: New files.
3882 2008-05-20 Thomas Quinot <quinot@adacore.com>
3884 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3886 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3887 Add missing "with" of Ada.Unchecked_Conversion
3889 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3890 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3891 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3892 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3893 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3894 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3895 Move common code out of GNAT.Sockets.Thin implementations and into
3897 New constant SIZEOF_fd_set
3898 New flag Has_Sockaddr_Len
3899 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3901 * g-stsifd-sockets.adb
3902 (Create): Remove call to Set_Length; use Set_Family to set the family
3903 and (on appropriate platforms) length fields in struct sockaddr.
3905 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3906 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3907 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3908 Move common code out of GNAT.Sockets.Thin implementations and into
3911 * g-socket.ads, g-socket.adb:
3912 Move common code out of GNAT.Sockets.Thin implementations and into
3914 (Connect_Socket, Accept_Socket): Provide new versions of these two
3915 routines that operate with a user specified timeout.
3916 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3917 this is now handled automatically by Set_Family on platforms that
3921 Move common code out of GNAT.Sockets.Thin implementations and into
3923 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3924 this constant to 0 (not -1) because we use it to initialize an
3925 unsigned_char value.
3926 Align values for numeric constants only.
3927 Handle the case of systems that do not support AF_INET6.
3928 New constant SIZEOF_fd_set
3929 New flag Has_Sockaddr_Len
3930 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3932 * gsocket.h: New flag Has_Sockaddr_Len
3933 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3935 2008-05-20 Santiago Uruena <uruena@adacore.com>
3937 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3939 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3941 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3942 the underlying issue with malloc/free has been fixed. Remove associated
3945 Related to PR ada/24533
3947 2008-05-20 Robert Dewar <dewar@adacore.com>
3949 * ali.adb: Correct casing of ASCII.NUL
3951 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3954 2008-05-20 Robert Dewar <dewar@adacore.com>
3955 Gary Dismukes <dismukes@adacore.com>
3957 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3958 overflow if result converted to wider integer type.
3959 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3960 discriminated types when discriminant checks are suppressed.
3962 2008-05-20 Vincent Celier <celier@adacore.com>
3964 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3965 Wide_Wide_Character.
3967 2008-05-20 Tristan Gingold <gingold@adacore.com>
3969 * decl.c: Do not emit a variable for a object that has an address
3970 representation clause whose value is known at compile time.
3971 When a variable has an address clause whose value is known at compile
3972 time, refer to this variable by using directly the address instead of
3973 dereferencing a pointer.
3975 2008-05-20 Robert Dewar <dewar@adacore.com>
3978 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3979 subtypes, always False for non-modular types.
3980 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3981 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3982 for Shared_Storage package.
3983 (Is_RACW_Stub_Type): New entity flag.
3986 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3987 case where we have a modular type with a non-binary modules.
3988 Comments reformattings.
3990 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3993 2008-05-20 Javier Miranda <miranda@adacore.com>
3996 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3997 tests did not covered the case in which the type of the aggregate has
3998 no progenitors but some its parents has progenitors.
4000 2008-05-20 Gary Dismukes <dismukes@adacore.com>
4001 Hristian Kirtchev <kirtchev@adacore.com>
4004 (Expand_N_Object_Declaration): Correct the condition which triggers the
4005 generation of a call to Displace when initializing a class-wide object.
4006 (Build_Dcheck_Functions): Build discriminant-checking for null variants
4007 when Frontend_Layout_On_Target is true to ensure that they're available
4008 for calling when a record variant size function is built in Layout.
4010 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4012 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4013 procedure for a derived type retrieve the discriminant values from the
4014 parent using the corresponding discriminant.
4015 (Expand_N_Assignment_Statement): Skip generation of implicit
4016 if-statement associated with controlled types if we are
4017 compiling with restriction No_Finalization.
4019 2008-05-20 Vincent Celier <celier@adacore.com>
4021 * prj.adb (Hash (Project_Id)): New function
4022 (Project_Empty): Add new component Interfaces_Defined
4024 * prj.ads (Source_Data): New component Object_Linked
4025 (Language_Config): New components Object_Generated and Objects_Linked
4026 (Hash (Project_Id)): New function
4027 (Source_Data): New Boolean components In_Interfaces and
4028 Declared_In_Interfaces.
4029 (Project_Data): New Boolean component Interfaces_Defined
4032 New project level attribute Object_Generated and Objects_Linked
4033 Add new project level attribute Interfaces
4035 * prj-dect.adb: Use functions Present and No throughout
4036 (Parse_Variable_Declaration): If a string type is specified as a simple
4037 name and is not found in the current project, look for it also in the
4038 ancestors of the project.
4041 Replace procedure Make with procedures Initialize, Process and Finalize
4042 to implement H414-023: process different directories with different
4044 Use functions Present and No throughout
4047 Replace procedure Make with procedures Initialize, Process and Finalize
4050 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4051 the language configuration.
4052 (Process_Project_Level_Array_Attributes): Process new attributes
4053 Object_Generated and Object_Linked.
4054 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4055 False, to indicate that the erreor/warning is a continuation.
4056 (Check): Call Report_No_Sources with Contnuation = True after the first
4058 (Error_Msg): Process successively contnuation character and warning
4060 (Find_Explicit_Sources): Check that all declared sources have been found
4061 (Check_File): Indicate in hash table Source_Names when a declared source
4063 (Check_File): Set Other_Part when found
4064 (Find_Explicit_Sources): In multi language mode, check if all exceptions
4065 to the naming scheme have been found. For Ada, report an error if an
4066 exception has not been found. Otherwise, disregard the exception.
4067 (Check_Interfaces): New procedure
4068 (Add_Source): When Other_Part is defined, set mutual pointers in spec
4070 (Check): In multi-language mode, call Check_Interfaces
4071 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4072 for an excluded source.
4073 (Remove_Source): A source replacing a source in the interfaces is also
4076 * prj-pars.adb: Use function Present
4078 * prj-part.adb: Use functions Present and No throughout
4079 (Parse_Single_Project): Set the parent project for child projects
4080 (Create_Virtual_Extending_Project): Register project with no qualifier
4081 (Parse_Single_Project): Allow an abstract project to be extend several
4082 times. Do not allow an abstract project to extend a non abstract
4085 * prj-pp.adb: Use functions Present and No throughout
4086 (Print): Take into account the full associative array attribute
4089 * prj-proc.adb: Use functions Present and No throughout
4090 (Expression): Call itself with the same From_Project_Node for the
4091 default value of an external reference.
4093 * prj-strt.adb: Use functions Present and No throughout
4094 (Parse_Variable_Reference): If a variable is specified as a simple name
4095 and is not found in the current project, look for it also in the
4096 ancestors of the project.
4098 * prj-tree.ads, prj-tree.adb (Present): New function
4100 Use functions Present and No throughout
4101 (Parent_Project_Of): New function
4102 (Set_Parent_Project_Of): New procedure
4104 * snames.ads, snames.adb:
4105 Add new standard names Object_Generated and Objects_Linked
4107 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4109 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4110 and the derived type are of the same kind.
4111 (Expand_Call): Generate type conversions for actuals of
4112 record or array types when the parent and the derived types differ in
4113 size and/or packed status.
4115 2008-05-20 Javier Miranda <miranda@adacore.com>
4116 Ed Schonberg <schonberg@adacore.com>
4118 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4119 generating dispatch tables of locally defined tagged types statically.
4120 Remove implicit if-statement that is no longer required.
4121 (Expand_Dispatching_Call): If this is a call to an instance of the
4122 generic dispatching constructor, the type of the first argument may be
4123 a subtype of Tag, so always use the base type to recognize this case.
4125 2008-05-20 Thomas Quinot <quinot@adacore.com>
4128 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4129 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4130 assigning NULL into the result, to avoid a spurious warning.
4131 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4133 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4135 (Build_From_Any_Function, Build_To_Any_Function,
4136 Build_TypeCode_Function): For a type that has user-specified stream
4137 attributes, use an opaque sequence of octets as the representation.
4139 2008-05-20 Kevin Pouget <pouget@adacore.com>
4141 * exp_smem.ads, exp_smem.adb: Construction of access and assign
4142 routines has been replaced by an instantiation of
4143 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4144 shared variable declaration.
4145 Calls to access and assign routines have been replaced by calls to
4146 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4147 instantiated package.
4149 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4150 It identifies the new generic package added in s-shasto.
4152 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4153 is instantiated for each shared passive variable. It provides
4154 supporting procedures called upon each read or write access by the
4158 For this runtime unit (always compiled in GNAT mode), we allow
4159 stream attributes references for limited types for the case where
4160 shared passive objects are implemented using stream attributes,
4161 which is the default in GNAT's persistent storage implementation.
4163 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4166 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4167 convention from its base type, do not set the type to that of integer,
4168 because it may inherit a size clause.
4169 Warn on a size clause with a size different
4170 from that of Integer, if the type has convention C.
4172 2008-05-20 Vincent Celier <celier@adacore.com>
4175 (Scan_Args): Rewrite to take into account new switch --and to separate
4176 arguments into sections.
4177 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4178 section, then Finalize.
4180 2008-05-20 Tristan Gingold <gingold@adacore.com>
4182 * init.c: Enable stack probing on ppc-linux.
4184 * tracebak.c: Add symbolic traceback for ppc-linux.
4186 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4188 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4191 (common-tools): New rule, to avoid parallel build failure on gnat tools.
4192 Reenable parallel builds on this Makefile.
4194 * Make-lang.in: Update dependencies.
4196 2008-05-20 Robert Dewar <dewar@adacore.com>
4198 * opt.ads (Treat_Restrictions_As_Warnings): New switch
4200 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4201 Treat_Restrictions_As_Warnings.
4203 * switch-c.adb: Recognize new switch -gnatr
4205 * usage.adb: Add line for -gnatr
4207 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4210 (P_Access_Definition): Change the error message when parsing "access
4211 all" in Ada 95 mode. The message no longer forces the user to recompile
4212 in 05 mode only to discover that anonymous access types are not allowed
4215 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4218 (P_Protected): Update the error message on missing "-gnat05" switch when
4219 using interfaces in conjunction with protected types. Remove the
4220 incorrect error message associated with the presence of "private" after
4223 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4225 * sem_aggr.adb: Update comments.
4226 Improve previous change for PR ada/17985
4228 2008-05-20 Thomas Quinot <quinot@adacore.com>
4231 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4232 the visible part of the spec of a remote types unit.
4233 (Validate_Remote_Access_Object_Type_Declaration):
4234 New local subprogram Is_Valid_Remote_Object_Type, replaces
4235 Is_Recursively_Limited_Private.
4236 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4237 non-controlling formals (and the return type, even though this is not
4238 explicit in the standard) must support external streaming.
4239 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4240 as above for of RAS types and RCI subprograms. (The return type is not
4242 Update comments related to RACWs designating limited interfaces per
4243 ARG ruling on AI05-060.
4245 * sem_util.ads, sem_util.adb
4246 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4247 Is_Remote_Call_Interface to identify RACW types in a stable and
4248 consistent way. We used to rely in this predicate on the privateness of
4249 the designated type and its ancestors, but depending on the currently
4250 visible private parts, this caused false negatives. We now uniformly
4251 rely on checks made at the point where the RACW type is declared.
4252 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4254 2008-05-20 Javier Miranda <miranda@adacore.com>
4255 Ed Schonberg <schonberg@adacore.com>
4256 Hristian Kirtchev <kirtchev@adacore.com>
4259 (Analyze_Object_Declaration): Fix over-conservative condition
4260 restricting use of predefined assignment with tagged types that have
4262 (Analyze_Object_Declaration): Relax the check regarding deferred
4263 constants declared in scopes other than packages since they can be
4264 completed with pragma Import.
4265 Add missing escaping of all-caps word 'CPP' in error messages.
4266 (Build_Discriminated_Subtype): Do not inherit representation clauses
4267 from parent type if subtype already carries them, because they are
4268 inherited earlier during derivation and already include those that may
4269 come from a partial view.
4271 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4272 Check the declarations of a subprogram body for proper deferred
4273 constant completion.
4275 * sem_ch7.ads, sem_ch7.adb
4276 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4278 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4279 Thomas Quinot <quinot@adacore.com>
4282 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4283 F is a parameterless function that returns an array, and S is a subtype
4285 (Analyze_Call): Insert dereference when the prefix is a parameterless
4286 function that returns an access to subprogram and the call has
4288 Reject a non-overloaded call whose name resolves to denote
4289 a primitive operation of the stub type generated to support a remote
4290 access-to-class-wide type.
4292 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4295 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4296 when there is a use clause for the same entity in the context.
4297 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4298 created for a stream attribute of an abstract type or interface type.
4300 2008-05-20 Thomas Quinot <quinot@adacore.com>
4302 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4306 (Add_One_Interp): Ignore any interpretation that is a primitive
4307 operation of an RACW stub type (these primitives are only executed
4308 through dispatching, never through static calls).
4309 (Collect_Interps): When only one interpretation has been found, set N's
4310 Entity and Etype to that interpretation, otherwise Entity and Etype may
4311 still refer to an interpretation that was ignored by Add_One_Interp,
4312 in which case would end up with being marked as not overloaded but with
4313 an Entity attribute not pointing to its (unique) correct interpretation.
4315 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4318 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4319 denotes the whole array of its prefix.
4321 2008-05-20 Robert Dewar <dewar@adacore.com>
4323 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4325 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4328 (Print_Itype): Do not modify the sloc of the component type of a
4329 (packed) array itype, because it is an unrelated type whose source
4330 location is independent of the point of creation of the itype itself.
4332 2008-05-20 Thomas Quinot <quinot@adacore.com>
4334 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4337 2008-05-20 Robert Dewar <dewar@adacore.com>
4338 Vincent Celier <celier@adacore.com>
4340 * vms_data.ads: Add entry for -gnatr
4341 Put GNAT SYNC section in proper alpha order
4342 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4344 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4345 Update the style checks section
4346 Add documentation of -gnatr
4347 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4348 subsection the explanation how compiler checks should be disabled for
4350 Update the list of Ada 95 reserved words used by in the project language
4351 Add documentation for project qualifiers.
4352 Document that abstract projects may be extended by different projects in
4353 the same project tree.
4354 Add documentation for gnatmake switch -d
4356 * ug_words: Add -gnatyy VMS equivalence string.
4357 Add entry for -gnatr
4359 2008-05-20 Bob Duff <duff@adacore.com>
4362 (Set_Handler): Remove code from both of these that implements
4363 RM-D.15(15/2), because it causes a race condition and potential
4365 (Process_Queued_Events): Add comment explaining "exception when others
4366 => null". Add clarifying ".all", even though implicit .all is legal
4369 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4371 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4372 equivalent representation, but has the advantage of allowing
4373 compilation of this file under 64 bits platforms.
4375 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4377 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4380 Don't define dummy implementation of convert_addresses on ppc-linux.
4382 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4385 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4386 if expression is aggregate component.
4388 2008-05-20 Robert Dewar <dewar@adacore.com>
4390 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4391 sem_ch12.adb: Update comments. Minor reformatting.
4395 * s-unstyp.ads: Fixed some typos in comments.
4397 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4399 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4402 * g-socthi-vxworks.ads: Update to latest socket changes.
4404 * a-caldel-vms.adb: Resync with a-caldel spec.
4406 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4409 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4411 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4412 for dummy types pointed to by the converted pointer types.
4414 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4416 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4417 of records and unions.
4418 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4420 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4421 Robert Dewar <dewar@adacore.com>
4423 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4424 restrictions to the prefix of 'Old.
4425 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4426 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4429 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4433 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4434 expression to an integral type with lower precision, use NOP_EXPR
4435 directly in a couple of special cases.
4437 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4438 Ed Schonberg <schonberg@adacore.com>
4440 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4441 constraint expressions.
4443 2008-05-12 Tomas Bily <tbily@suse.cz>
4445 * utils2.c (known_alignment, contains_save_expr_p)
4446 (gnat_mark_addressable): Use CASE_CONVERT.
4447 * decl.c (annotate_value): Likewise.
4448 * trans.c (maybe_stabilize_reference): Likewise.
4449 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4450 * utils.c (rest_of_record_type_compilation): Likewise.
4451 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4452 (protect_multiple_eval): Likewise.
4454 2008-05-08 Andreas Schwab <schwab@suse.de>
4456 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4457 DECL_IS_PURE to DECL_PURE_P.
4459 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4461 * decl.c (maybe_pad_type): Add ??? comment.
4463 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4465 * decl.c (components_to_record): Zero the alignment of the qualified
4466 union built for the variant part upon creating it.
4468 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4470 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4471 mode even if the alignment is not a factor of the original size. But
4472 make sure to create the inner field with the original size. Reorder.
4473 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4474 record as always addressable.
4475 * utils.c (convert): Deal specially with conversions between original
4476 and packable versions of a record type.
4477 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4478 recognizing an assignment between padded objects.
4480 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4482 * decl.c (make_packable_type): Resize the last component to its RM size
4483 only if it is of an aggregate type.
4484 * trans.c (call_to_gnu): Fix nit in comment.
4485 (gnat_to_gnu): Likewise.
4487 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4489 * Makefile.in: Adapt sh4-linux target.
4491 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4494 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4495 tagged type by an untagged protected or task type.
4497 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4498 Tristan Gingold <gingold@adacore.com>
4501 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4502 of aliased objects with an unconstrained nominal subtype.
4503 Cap the promotion to the effective alignment of the word mode.
4505 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4507 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4508 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4509 Use '&&' instead of ';'.
4511 2008-04-24 Olivier Hainque <hainque@adacore.com>
4513 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4514 doesn't require signed arithmetic anymore.
4516 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4518 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4519 (call_to_gnu): Don't set TREE_INVARIANT.
4520 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4522 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4524 * s-osinte-rtems.adb: Add sigalstack function.
4525 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4526 function. Add Alternate_Stack and Alternate_Stack_Size.
4527 Add missing process_shared field to pthread_condattr_t
4528 and change ss_low_priority to int from timespec.
4530 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4532 * i-forbla.adb: Link against -llapack and -lblas by default
4533 instead of the private -lgnalasup.
4535 2008-04-21 Olivier Hainque <hainque@adacore.com>
4537 Access to most C builtins from Ada
4538 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4539 (handle_pure_attribute, handle_novops_attribute,
4540 handle_nonnull_attribute, handle_sentinel_attribute,
4541 handle_noreturn_attribute, handle_malloc_attribute,
4542 handle_type_generic_attribute): New attribute handlers, from C fe.
4543 (gnat_internal_attribute_table): Map the new handlers.
4544 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4545 (init_gigi_decls): ... here.
4546 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4547 Move to a section dedicated to builtins processing.
4548 (build_void_list_node, builtin_type_for_size): New functions.
4549 (def_fn_type, get_nonnull_operand): Likewise.
4550 (install_builtin_elementary_type, install_builtin_function_types,
4551 install_builtin_attributes): Likewise.
4552 (fake_attribute_handler): Fake handler for attributes we don't
4554 (def_builtin_1): New function, worker for DEF_BUILTIN.
4555 (install_builtin_functions): New function.
4556 (gnat_install_builtins): Move to the builtins processing section.
4557 Now calling the newly introduced installers.
4559 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4561 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4562 constant objects, but not exceptions.
4563 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4565 * utils.c (create_var_decl_1): Likewise.
4566 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4567 the type when copying to padded object and the source is a constructor.
4569 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4571 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4572 alignment, reset it to zero if it would end up not being greater
4573 than that of the type.
4575 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4577 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4578 the padded type has a variable size.
4580 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4582 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4583 target pointer mechanism as soon as the size is not constant.
4585 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4587 * gigi.h (create_var_decl_1): Declare.
4588 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4589 (create_true_var_decl): Likewise.
4590 * utils.c (create_var_decl_1): Make global and reorder parameters.
4591 (create_var_decl): Delete.
4592 (create_true_var_decl): Likewise.
4594 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4596 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4598 * fe.h (Debug_Flag_Dot_A): Delete.
4599 * debug.adb (-gnatd.a): Update documentation.
4601 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4603 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4604 "not null" parameter.
4606 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4608 * g-socket.adb: Add a message "IPv6 not supported" to the
4609 Socket_Error exception.
4611 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4614 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4615 the type is known instead of the underlying type.
4617 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4620 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4621 procedure for a derived type retrieve the discriminant values from
4622 the parent using the corresponding discriminant.
4624 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4625 Gary Dismukes <dismukes@adacore.com>
4628 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4629 which is not an entity (and hence not a package).
4630 (End_Use_Package): Ditto.
4632 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4635 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4636 protected operation that matches the signature, not only an entry, a
4637 regular subprogram or a literal.
4639 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4641 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4642 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4643 if a size or alignment is specified. Do not take into account
4644 alignment promotions for the computation of the object's size.
4645 <type>: Call maybe_pad_type only if a size or alignment is specified.
4646 (maybe_pad_type): Really reuse the RM_Size of the original type if
4648 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4649 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4650 statements. Use the padded view of the type when copying between
4651 padded objects of the same underlying type.
4653 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4655 * vms_data.ads: Fix typo in constant.
4656 * gen-soccon.c: Fix typo in error string.
4657 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4659 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4660 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4661 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4662 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4663 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4664 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4665 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4666 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4667 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4668 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4669 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4670 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4671 sinfo.ads: Fix typos in comments.
4673 2008-04-14 Robert Dewar <dewar@adacore.com>
4675 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4676 to every non-object and change error message.
4678 2008-04-14 Robert Dewar <dewar@adacore.com>
4680 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4681 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4684 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4687 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4688 apply pragma Linker_Section on type.
4690 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4693 * sem_prag.adb (Error_Pragma_Ref): New.
4694 (Process_Convention): Specialized message for non-local
4695 subprogram renaming. Detect the problem in homonyms as well.
4697 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4700 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4701 * sem_ch12.adb (Instantiate_Object): Use it.
4702 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4703 storage pool denotes a variable as per RM 13.11(15).
4705 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4707 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4708 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4710 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4713 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4714 line endings even on non-Unix platforms.
4716 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4719 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4720 renaming information.
4722 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4725 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4728 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4730 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4731 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4732 snames.ads, sprint.adb, stand.ads, stringt.ads,
4733 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4734 switch.ads, sysdep.c, table.adb, table.ads,
4735 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4736 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4737 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4738 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4739 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4740 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4743 * sem_ch10.adb, sem_ch10.ads,
4744 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4745 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4746 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4747 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4748 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4749 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4750 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4751 sem_warn.ads: Fix comment typos.
4753 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4754 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4755 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4756 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4757 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4758 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4759 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4760 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4761 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4762 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4763 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4764 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4765 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4766 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4767 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4768 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4769 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4770 sem_cat.adb, sem_cat.ads: Fix comment typos.
4772 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4775 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4777 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4779 * s-linux-hppa.ads: Fix syntax errors.
4781 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4783 * gnat_ugn.texi: Fix typos.
4784 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4785 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4786 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4787 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4788 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4789 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4790 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4791 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4792 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4793 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4794 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4795 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4796 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4797 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4798 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4799 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4800 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4801 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4802 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4803 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4804 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4805 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4806 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4807 s-rident.ads: Fix comment typos.
4809 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4812 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4813 environment if generic instance is a top-level one.
4815 2008-04-09 Doug Rupp <rupp@adacore.com>
4817 * decl.c (validate_size): Set minimum size for fat pointers same as
4818 access types. Code clean ups.
4820 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4821 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4823 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4825 * s-crtl.ads (malloc32) New function, alias for malloc
4826 (realloc32) New function, alias for realloc
4828 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4830 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4831 allocator size is 32 and default pointer size is 64.
4832 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4833 lhs type if smaller, whatever the modes.
4835 * gigi.h (malloc32_decl): New macro definition
4837 * utils.c (init_gigi_decls): New malloc32_decl
4838 Various code clean ups.
4840 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4841 Task_Address vice System.Address.
4843 * s-taspri-vms.ads: Import System.Aux_DEC
4844 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4845 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4847 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4848 Task_Address vice System.Address.
4850 * s-inmaop-vms.adb: Import System.Task_Primitives
4851 (To_Address): Unchecked convert to Task_Address vice System.Address
4853 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4855 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4856 (To_Address) Unchecked convert to Task_Address vice System.Address
4858 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4860 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4862 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4864 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4865 (fdesc_type_node): Define.
4866 (null_fdesc_node): Likewise.
4867 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4868 uses descriptors for vtables and the type comes from a dispatch table,
4869 return the descriptor type.
4870 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4871 uses descriptors for vtables and the type comes from a dispatch table,
4872 build a descriptor in the static case and copy the existing one in the
4874 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4875 the type is a pointer-to-subprogram coming from a dispatch table,
4876 return the null descriptor.
4877 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4878 vtables, the source type is the descriptor type and the target type
4879 is a pointer type, first build the pointer.
4880 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4881 build the descriptor type and the null descriptor.
4883 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4885 * decl.c (prepend_attributes): Fix typo.
4886 * trans.c (Pragma_to_gnu): Likewise.
4887 * utils.c (gnat_genericize): Likewise.
4889 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4890 Richard Kenner <kenner@adacore.com>
4892 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4893 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4894 <E_Record_Type>: Try to get a better form of the component for
4895 packing, even if it has an integral mode.
4896 <E_Record_Subtype>: Likewise.
4897 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4898 exception suppressing the final conversion between record types.
4900 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4902 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4903 alignment for space, promote the alignment of non-scalar variables with
4904 no size and alignment.
4905 * gigi.h (gnat_types_compatible_p): Declare.
4906 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4907 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4908 * utils.c (gnat_types_compatible_p) : New predicate.
4909 (convert): Use it throughout to test for cases where a mere view
4910 conversion is sufficient.
4911 * utils2.c (build_binary_op): Minor tweaks.
4912 (build_unary_op): Likewise.
4914 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4916 * decl.c (adjust_packed): Expand comment.
4918 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4920 * s-tasuti.ads: Use Task_Address instead of System.Address.
4922 * makeutl.adb (Path_Or_File_Name): New function
4924 * nlists.ads, itypes.ads: Update comments.
4926 * s-crtl.ads (malloc32, realloc32): New functions.
4928 * s-auxdec.ads (Short_Address_Size): New constant.
4930 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4932 * s-ststop.ads, s-ststop.adb: New file.
4934 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4937 2008-04-08 Pascal Obry <obry@adacore.com>
4939 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4940 (Stop_Bits_Number): New type.
4941 (Parity_Check): Likewise.
4942 (Set): Add parameter to set the number of stop bits and
4943 the parity. Parameter timeout is now a duration instead
4946 * g-sercom-linux.adb:
4947 Implement the stop bits and parity support for GNU/Linux.
4948 Fix handling of timeout, it must be given in tenth of seconds.
4950 * g-sercom-mingw.adb:
4951 Implement the stop bits and parity support for Windows.
4952 Use new s-win32.ads unit instead of declaring Win32 services
4953 directly into this body.
4954 Update handling of timeout as now a duration.
4956 * s-win32.ads, s-winext.ads: New files.
4958 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4959 Arnaud Charlet <charlet@adacore.com>
4961 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4963 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4964 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4966 * s-osinte-lynxos-3.ads,
4967 (Alternate_Stack): Remove when not needed. Simplify declaration
4969 (Alternate_Stack_Size): New constant.
4971 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4972 'Unrestricted_Access.
4974 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4975 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4976 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4977 s-osinte-solaris.ads, s-osinte-vms.ads
4978 (SA_ONSTACK): New constant.
4979 (stack_t): New record type.
4980 (sigaltstack): New imported function.
4981 (Alternate_Stack): New imported variable.
4982 (Alternate_Stack_Size): New constant.
4984 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4986 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4987 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4988 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4989 (Task_Address_Size): New constant size of System.Address
4990 (Alternate_Stack_Size): New constant.
4992 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4993 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4994 Establish the alternate stack if the platform makes use of n alternate
4995 signal stack for stack overflows.
4996 (Create_Task): Take into account the alternate stack in the stack size.
4997 (Initialize): Save the address of the alternate stack into the ATCB for
4998 the environment task.
4999 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
5001 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
5003 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
5005 * s-intman-posix.adb:
5006 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
5007 alternate signal stack for stack overflows.
5009 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
5010 x86-64, adjust the saved value of the stack pointer if the signal was
5011 raised by a stack checking probe.
5012 (HP-UX section): Use global __gnat_alternate_stack as signal handler
5013 stack and only for SIGSEGV.
5014 (Linux section): Likewise on x86 and x86-64.
5016 (__gnat_map_signal): Now static.
5017 (__gnat_error_handler): Not static any more.
5018 (__gnat_adjust_context_for_raise): New function. Signal context
5019 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
5020 propagation circuitry.
5021 (__gnat_error_handler): Second argument of a sigaction handler is a
5022 pointer, not an int, and is unused.
5023 Adjust signal context before mapping to exception.
5024 Install signal handlers for LynxOS case.
5026 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
5027 (Task_Id): Set size to Task_Address_Size
5028 (To_Task_id): Unchecked convert from Task_Address vice System.Address
5029 (To_Address): Unchecked convert to Task_Address vice System.Address
5031 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
5032 address into the ATCB if the platform makes use of an alternate signal
5033 stack for stack overflows.
5034 (Free_Task): Add call to Finalize_Attributes_Link.
5035 Add argument Relative_Deadline to pass the value specified for
5036 the task. This is not yet used for any target.
5038 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
5039 the value specified for the task.
5041 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5043 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5044 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5045 s-vxwext-rtp.adb): New files.
5047 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
5048 Minor updates to accomodate changes above.
5050 2008-04-08 Pascal Obry <obry@adacore.com>
5052 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5053 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5054 Use new s-win32.ads unit instead of declaration
5055 from s-osinte-mingw.ads.
5057 * s-osinte-mingw.ads:
5058 Move all non tasking based interface to s-win32.ads.
5060 * s-osprim-mingw.adb:
5061 Remove duplicated declarations and use s-win32.ads
5064 2008-04-08 Vincent Celier <celier@adacore.com>
5065 Arnaud Charlet <charlet@adacore.com>
5067 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5068 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5069 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5070 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5071 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5073 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5074 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5075 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5076 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5077 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5078 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5079 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5080 mlib-tgt-specific-mingw.adb: New names.
5083 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5085 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5086 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5087 Minor updates for VMS
5089 * gnatbl.c: Removed.
5091 2008-04-08 Thomas Quinot <quinot@adacore.com>
5093 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5094 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5095 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5096 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5097 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5098 ASCII.NUL throughout.
5100 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5101 Matthew Heaney <heaney@adacore.com>
5103 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5106 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
5107 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5108 to convention for non-RM specs.
5109 Add descriptive header, and documented each operation
5110 document each operation
5112 2008-04-08 Robert Dewar <dewar@adacore.com>
5113 Bob Duff <duff@adacore.com>
5114 Gary Dismukes <dismukes@adacore.com>
5115 Ed Schonberg <schonberg@adacore.com>
5117 * alloc.ads: Add entries for Obsolescent_Warnings table
5119 * einfo.ads, einfo.adb: Minor reformatting.
5120 (Is_Discriminal): New subprogram.
5121 (Is_Prival): New subprogram.
5122 (Is_Protected_Component): New subprogram.
5123 (Is_Protected_Private): Removed.
5124 (Object_Ref, Set_Object_Ref): Removed.
5125 (Prival, Set_Prival): Change assertion.
5126 (Privals_Chain, Set_Privals_Chain): Removed.
5127 (Prival_Link, Set_Prival_Link): New subprogram.
5128 (Protected_Operation, Set_Protected_Operation): Removed.
5129 (Protection_Object, Set_Protection_Object): New subprogram.
5130 (Write_Field17_Name): Remove case for Object_Ref.
5131 (Write_Field20_Name): Add case for Prival_Link.
5132 (Write_Field22_Name): Remove case for Protected_Operation,
5134 Add case for Protection_Object.
5135 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5137 (Overlays_Constant): New flag
5138 (Is_Constant_Object): New predicate
5139 (Is_Standard_Character_Type): New predicate
5140 (Optimize_Alignment_Space): New flag
5141 (Optimize_Alignment_Time): New flag
5142 (Has_Postconditions): New flag
5143 (Obsolescent_Warrning): Field removed
5144 (Spec_PPC_List): New field
5145 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5146 subprograms to get and set the relative deadline associated to a task.
5148 * exp_attr.adb (May_Be_External_Call): Account for the case where the
5149 Access attribute is part of a named parameter association.
5150 (Expand_Access_To_Protected_Op): Test for the attribute occurring
5151 within an init proc and use that directly as the scope rather than
5152 traversing up to the protected operation's enclosing scope. Only apply
5153 assertion on Is_Open_Scopes in the case the scope traversal is done.
5154 For the init proc case use the address of the first formal (_init) as
5155 the protected object reference.
5156 Implement Invalid_Value attribute
5157 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5158 contents of the dispatch table there is no need to duplicate the
5159 itypes associated with record types (i.e. the implicit full view
5161 Implement Enum_Val attribute
5162 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5163 within _Postconditions procedure
5164 (Expand_N_Attribute_Reference, case Result): Implement new attribute
5166 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5167 a return statement calls a function that is not available in
5168 configurable runtime.
5169 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5170 (Expand_Non_Function_Return): Generate call to _Postconditions proc
5171 (Expand_Simple_Function_Return): Ditto
5173 * frontend.adb: Add call to Sem_Aux.Initialize
5175 * sem_aux.ads, sem_aux.adb: New file.
5177 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5178 Add new Pragma_Relative_Deadline.
5179 Add support for pragmas Check and Check_Policy
5181 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5182 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5183 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5184 missing check because they are not allowed in CPP tagged types.
5185 Add Sure parameter to Note_Possible_Modification calls
5186 Add implementation of Invalid_Value attribute
5187 Implement new attribute Has_Tagged_Values
5188 Implement Enum_Val attribute
5189 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5190 generated attributes.
5191 (Analyze_Attribute, case Result): If prefix of the attribute is
5192 overloaded, it always resolves to the enclosing function.
5193 (Analyze_Attribute, case Result): Properly deal with analysis when
5194 Postconditions are not active.
5195 (Resolve_Attribute, case Result): Properly deal with appearence during
5196 preanalysis in spec.
5197 Add processing for attribute Result
5199 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5201 (Analyze_Subprogram_Body): Install private_with_clauses when the body
5203 (Check_Inline_Pragma): recognize an inline pragma that appears within
5204 the subprogram body to which it applies.
5205 (Analyze_Function_Return): Check that type of the expression of a return
5206 statement in a function with a class-wide result is not declared at a
5207 deeper level than the function.
5208 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5209 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5210 user- defined operators.
5211 (Install_Formals): Moved to spec to allow use from Sem_Prag for
5212 analysis of precondition/postcondition pragmas.
5213 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5214 Last_Formal, along with lots of comments on what this is about
5215 (Analyze_Subprogram_Body): Fix case where we move entities from the
5216 spec to the body when there are no body entities (now possible with
5217 precondition and postcondition pragmas).
5218 (Process_PPCs): New procedure
5219 (Analyze_Subprogram_Body): Add call to Process_PPCs
5221 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5223 (Pop_Scope): Restore Check_Policy_List on scope exit
5224 (Push_Scope): Save Check_Policy_List on scope entry
5225 Change name In_Default_Expression => In_Spec_Expression
5226 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5227 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5228 (Analyze_Object_Renaming): Allow 'Reference as object
5229 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5230 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5231 of restriction identifier.
5232 Add Sure parameter to Note_Possible_Modication calls
5234 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5235 Don't check for primitive operations when calling Rep_Item_Too_Late.
5236 (Process_Import_Or_Interface): Do not place flag on formal
5238 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5239 propagate information to full view, which is the one elaborated by the
5241 (Make_Inline): the pragma is effective if it applies to an internally
5242 generated subprogram declaration for a body that carries the pragma.
5243 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5244 Optimize_Alignment_Local.
5245 (Analyze_PPC_In_Decl_Part): New procedure
5246 (Get_Pragma_Arg): Moved to outer level
5247 (Check_Precondition_Postcondition): Change to allow new visibility
5248 rules for package spec
5249 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5250 same as pragma Suppress/Unsuppress.
5251 Change name In_Default_Expression => In_Spec_Expression
5252 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5253 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5254 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5255 for the case of these pragmas appearing in the spec.
5256 (Check_Enabled): New function
5257 (Initialize): New procedure
5258 (Tree_Read): New procedure
5259 (Tree_Write): New procedure
5260 (Check_Precondition_Postcondition): New procedure
5261 Implement pragmas Check and Check_Policy
5262 Merge Assert processing with Check
5264 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5265 New warning flag -gnatw.e
5267 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5268 returning whether a task (or main procedure) has a pragma
5270 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5271 (or main procedure) has a pragma Relative_Deadline.
5272 Add Next_Pragma field to N_Pragma node
5273 (PPC_Enabled): New flag
5274 (Next_Pragma): Now used for Pre/Postcondition processing
5276 * snames.h, snames.ads, snames.adb: New standard name
5278 Add entry for 'Invalid_Value attribute
5279 Add entry for new attribute Has_Tagged_Values
5280 Add entry for Enum_Val attribute
5281 Add new standard names Aggregate, Configuration and Library.
5284 Add Pragma_Precondition
5285 Add Pragma_Postcondition
5286 Add Attribute_Result
5287 New standard name Archive_Builder_Append_Option
5288 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5289 There was also a missing non_preemptive_within_priorities.
5290 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5292 Add support for pragmas Check and Check_Policy
5294 * tree_gen.adb: Call Sem_Aux.Tree_Write
5296 * tree_in.adb: Call Sem_Aux.Tree_Read
5298 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5301 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5304 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5305 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5307 (Expand_Pragma_Check): New procedure
5309 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5312 * sinfo.adb (PPC_Enabled): New flag
5314 2008-04-08 Robert Dewar <dewar@adacore.com>
5315 Gary Dismukes <dismukes@adacore.com>
5316 Javier Miranda <miranda@adacore.com>
5317 Ed Schonberg <schonberg@adacore.com>
5319 * fe.h: Remove global Optimize_Alignment flag, no longer used
5321 * layout.adb: Test Optimize_Alignment flags rather than global switch
5323 * lib.ads, lib.adb: New OA_Setting field in library record
5325 * lib-load.adb: New OA_Setting field in library record
5327 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5328 units mentioned in limited_with_ clauses in the ali file, with an
5330 New Ox fields in U line
5332 * opt.adb: New flag Optimize_Alignment_Local
5333 (Check_Policy_List[_Config]): New flags
5335 * opt.ads (Invalid_Value_Used): New flag
5336 New switch Optimize_Alignment_Local
5337 (Warn_On_Parameter_Order): New flag
5338 (Check_Policy_List[_Config]): New flags
5340 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5341 limited_with clauses.
5342 New data structures for Optimize_Alignment
5344 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5346 (Check_Consistent_Optimize_Alignment): Rework for new structure
5347 (Check_Consistent_Restrictions): Fix incorrect error message
5349 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5350 created class-wide type (to the Parent field of the specific type).
5351 (Install_Siblings): Handle properly private_with_clauses on subprogram
5352 bodies and on generic units.
5353 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5354 illegal limited_with_clause that names a non-existent package.
5355 (Check_Body_Required): Determine whether a unit named a limited_with
5356 clause needs a body.
5357 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5358 Capture Optimize_Alignment settings to set new OA_Setting field in
5360 (Build_Limited_Views): Include task and protected type declarations.
5362 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5363 case of a possible constant redeclaration where the current object is
5364 an entry index constant.
5365 (Analyze_Object_Declaration): Generate an error in case of CPP
5366 class-wide object initialization.
5367 (Analyze_Object_Declaration): Add extra information on warnings for
5368 declaration of unconstrained objects.
5369 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5370 conflicts with the setting of Stored_Constraint in the case where the
5371 access type entity has already been created as an E_Incomplete_Type due
5372 to a limited with clause.
5373 Use new Is_Standard_Character_Type predicate
5374 (Analyze_Object_Declaration): Apply access_constant check only after
5375 expression has been resolved, given that it may be overloaded with
5376 several access types.
5377 (Constant_Redeclaration): Additional legality checks for deferred
5378 constant declarations tha involve anonymous access types and/or null
5379 exclusion indicators.
5380 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5381 (Analyze_Subtype_Declaration): Ditto
5382 (Analyze_Object_Declaration): Ditto
5383 (Analyze_Object_Declaration): Don't count tasks in generics
5384 Change name In_Default_Expression => In_Spec_Expression
5385 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5386 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5387 (Process_Discriminants): Additional check for illegal use of default
5388 expressions in access discriminant specifications in a type that is not
5390 (Check_Abstract_Overriding): If an inherited function dispaches on an
5391 access result, it must be overridden, even if the type is a null
5393 (Derive_Subprogram): The formals of the derived subprogram have the
5394 names and defaults of the parent subprogram, even if the type is
5395 obtained from the actual subprogram.
5396 (Derive_Subprogram): In the presence of interfaces, a formal of an
5397 inherited operation has the derived type not only if it descends from
5398 the type of the formal of the parent operation, but also if it
5399 implements it. This is relevant for the renamings created for the
5400 primitive operations of the actual for a formal derived type.
5401 (Is_Progenitor): New predicate, to determine whether the type of a
5402 formal in the parent operation must be replaced by the derived type.
5404 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5405 predicate recursive to handle components that have a user-defined
5406 Initialize procedure. Handle controlled derived types whose ancestor
5407 has a user-defined Initialize procedured.
5408 (Note_Possible_Modification): Add Sure parameter, generate warning if
5409 sure modification of constant
5410 Use new Is_Standard_Character_Type predicate
5411 (Find_Parameter_Type): when determining whether a protected operation
5412 implements an interface operation, retrieve the type of the formal from
5413 the entity when the formal is an access parameter or an
5414 anonymous-access-to-subprogram.
5415 Move Copy_Parameter_List to sem_util, for use when building stubbed
5417 (Has_Access_Values): Tagged types now return False
5418 (Within_HSS_Or_If): New procedure
5419 (Set_Optimize_Alignment_Flags): New procedure
5420 Change name In_Default_Expression => In_Spec_Expression
5421 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5422 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5424 2008-04-08 Tristan Gingold <gingold@adacore.com>
5426 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5428 2008-04-08 Tristan Gingold <gingold@adacore.com>
5432 * cuintp.c: Fix 16 bits issue for AVR.
5433 On AVR, integer is 16 bits, so it can't be used to do math with
5435 So use long_integer instead.
5437 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5439 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5440 System.OS_Primitives.
5441 Change type of various constants, parameters and local variables from
5442 Time to representation type OS_Time.
5443 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5444 Remove the declaration of constant Mili_F from several routines. New
5445 body for internal package Conversions_Operations.
5446 (Time_Of): Add default parameters for several formals.
5448 * a-caldel.adb: Minor reformatting
5450 * a-calend.ads, a-calend.adb: New body for internal package
5451 Conversions_Operations.
5452 (Time_Of): Add default parameters for several formals.
5454 * Makefile.rtl: Add a-ststop
5455 Add Ada.Calendar.Conversions to the list of runtime files.
5458 * a-calcon.adb, a-calcon.ads: New files.
5460 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5461 Tristan Gingold <gingold@adacore.com>
5463 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5464 (Install_Restricted_Handlers): New procedure
5465 which is a simplified version of Install_Handlers that does not store
5466 previously installed.
5468 * s-interr-vxworks.adb: Fix ACATS cxc3001
5469 On VxWorks interrupts can't be detached.
5470 (Install_Restricted_Handlers): New procedure.
5472 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5475 2008-04-08 Olivier Hainque <hainque@adacore.com>
5477 * s-intman-vxworks.ads, s-intman-vxworks.adb
5478 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5479 required services already implemented elsewhere.
5480 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5481 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5482 argument passed to the handler, which we need for ZCX propagation
5485 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5487 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5489 * g-timsta.adb, g-timsta.ads: New files.
5491 2008-04-08 Robert Dewar <dewar@adacore.com>
5493 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5494 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5495 (Raise_Exception_Always): Fix documentation accordingly
5497 2008-04-08 Robert Dewar <dewar@adacore.com>
5499 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5502 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5505 2008-04-08 Javier Miranda <miranda@adacore.com>
5506 Robert Dewar <dewar@adacore.com>
5507 Ed Schonberg <schonberg@adacore.com>
5509 * a-tags.adb (Register_Interface_Offset): New subprogram.
5510 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5511 (To_Predef_Prims_Table_Ptr): Removed.
5512 (Acc_Size): Removed.
5513 (To_Acc_Size): Removed.
5514 (Parent_Size): Modified to the call the subprogram returning the size of
5515 the parent by means of the new TSD component Size_Func.
5517 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5518 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5519 code referencing the Offset_To_Top component of the dispatch table's
5521 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5522 use of 'address to initialize dispatch table slots.
5523 (Size_Func): New component of the TSD. Used by the run-time to call the
5524 size primitive of the tagged type.
5526 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5527 Offset_To_Top component of a dispatch table.
5528 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5529 deferred constant declaration. do not add a null expression, to prevent
5530 spurious errors when full declaration is analyzed.
5531 (Apply_Discriminant_Check): If both discriminant constraints share a
5532 node which is not static but has no side effects, do not generate a
5533 check for that discriminant.
5534 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5535 subexpr, since the prefix of an attribute is a name.
5537 * checks.ads: Fix nit in comment.
5539 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5540 and body of predefined primitives in case of CPP tagged type
5542 (Freeze_Type): Deal properly with no storage pool case
5543 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5544 primitive Deep_Adjust if a nonlimited interface is derived from a
5546 (Build_Dcheck_Functions): Create discriminant-checking functions only
5547 for variants that have some component(s).
5548 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5549 properly the case where the slice bounds extend to the last value of the
5550 underlying representation.
5551 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5552 (Is_Variable_Size_Record): An array component has a static size if
5553 index bounds are enumeration literals.
5555 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5556 an external tag has been specified for the type.
5557 (Building_Static_DT): Add missing support for private types.
5558 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5559 to the entity associated with the parent of Typ. This is done to
5560 avoid wrong access when the parent is a private type.
5561 (Expand_Interface_Conversion): Improve error message when the
5562 configurable runtime has no support for dynamic interface conversion.
5563 (Expand_Interface_Thunk): Add missing support to interface types in
5564 configurable runtime.
5565 (Expand_Dispatching_Call): remove obsolete code.
5566 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5567 ensure that all subtypes and aggregates associated with dispatch
5568 tables have the attribute Is_Dispatch_Table_Entity set to true.
5569 (Register_Primitive): Rename one variable to improve code reading.
5570 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5571 of the pointer to the 'size primitive in the TSD.
5573 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5574 (RE_Offset_To_Top_Ptr): New entity.
5575 (RE_Register_Interface_Offset): New entity.
5576 (RE_Set_Dynamic_Offset_To_Top): New entity.
5577 (RE_Set_Offset_To_Top): Removed entity.
5578 (RE_Prim_Ptr): New entity
5579 (RE_Size_Func): New entity
5580 (RE_Size_Ptr): New entity
5581 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5582 (Ada_Dispatching_Child): Define this new subrange.
5583 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5584 RE_Time_Span, and RE_Time_Span_Zero).
5585 (RE_Unit_Table): Add new required run-time calls
5587 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5590 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5591 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5592 initializes the Offset_To_Top component of a dispatch table.
5593 (Build_Predef_Prims): Removed.
5594 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5596 (Build_Set_Size_Function): New subprogram.
5598 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5599 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5601 2008-04-08 Robert Dewar <dewar@adacore.com>
5603 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5604 computing Fore when Exp > 0
5606 2008-04-08 Robert Dewar <dewar@adacore.com>
5608 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5610 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5611 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5613 * fmap.adb: Remove Big_String declarations (now in Types)
5614 (No_Mapping_File): New Boolean global variable
5615 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5617 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5618 tables were empty before adding entries, open the mapping file
5619 with Truncate = True, instead of delete/re-create.
5621 * fname-sf.adb: Remove Big_String declarations (now in Types)
5623 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5624 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5627 * table.ads: Add for Table_Ptr'Storage_Size use 0
5629 * types.ads: Add Big_String declarations
5630 Add Size_Clause of zero for big pointer types
5632 2008-04-08 Vincent Celier <celier@adacore.com>
5634 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5635 (Usage): Add line for switch --subdirs=
5636 Add new switch -eL, to follow symbolic links when processing project
5639 * gnatcmd.adb: Process switches -eL and --subdirs=
5640 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5641 Program_Name to get proper tool names when AAMP_On_Target is set.
5642 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5643 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5644 Osint.Program_Name).
5646 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5647 (Usage): Add lines for switches -eL and --subdirs=
5649 * makeusg.adb: Add line for switch --subdirs=
5652 (Source_Data): New Boolean component Compiled, defaulted to True
5653 (Empty_File_Name: New global variable in private part, initialized in
5654 procedure Initialize.
5655 (Subdirs_Option): New constant string
5656 (Subdirs): New String_Ptr global variable
5657 (Language_Config): New component Include_Compatible_Languages
5658 (Project_Qualifier): New type for project qualifiers
5659 (Project_Data): New component Qualifier
5660 (Project_Configuration): New component Archive_Builder_Append_Option
5662 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5663 another imported project indicate the name of this imported project.
5664 (Check_File): When a unit is in two project files, indicate the project
5665 names and the paths of the source files for each project.
5666 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5667 set object, dependency and switches file names if Compiled is True.
5668 (Process_Compiler): Allow the empty string for value of attribute Driver
5669 (Get_Directories): When Subdirs is not null and Object_Dir is not
5670 specified, locate and create if necessary the actual object dir.
5671 (Locate_Directory): When Subdirs is not empty and Create is not the
5672 empty string, locate and create if necessary the actual directory
5673 as a subdirectory of directory Name.
5674 (Check_Library_Attributes.Check_Library): Allow a project where the only
5675 "sources" are header files of file based languages to be imported by
5676 library projects, in multi-language mode (gprbuild).
5677 (Check_Library_Attributes.Check_Library): In multi-language mode
5678 (gprbuild), allow a library project to import a project with no
5679 sources, even when this is not declared explicitly.
5680 (Check_If_Externally_Built): A virtual project extending an externally
5681 built project is also externally built.
5682 (Check_Library_Attributes): For a virtual project extending a library
5683 project, inherit the library directory.
5684 (Process_Project_Level_Array_Attributes): Process new attribute
5685 Inherit_Source_Path.
5686 For projects with specified qualifiers "standard", "library" or
5687 "abstract", check that the project conforms to the qualifier.
5688 (Process_Project_Level_Simple_Attributes): Process new attribute
5689 Archive_Builder_Append_Option.
5691 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5692 (Normalize_Compiler_Switches): Only keep compiler switches that are
5693 passed to gnat1 by the gcc driver and that are stored in the ALI file
5695 Do not take into account switc -save-temps
5697 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5698 gprmake is called with -eL.
5699 (Scan_Arg): Recognize switch -eL
5700 (Usage): Add line for switch -eL
5702 * prj.adb (Initialize): Initialize Empty_File_Name
5703 (Project_Empty): New component Qualifier
5705 * prj-attr.ads, prj-attr.adb: New project level attribute
5706 Inherit_Source_Path.
5707 New project level attribute Archive_Builder_Append_Option
5709 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5711 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5712 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5713 upward compatibility.
5715 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5716 each Trying ..." on different lines.
5717 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5718 is "configuration" when not in configuration. Fail when in configuration
5719 when a specified qualifier is other than "configuration".
5721 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5722 full associative array together.
5723 (Recursive_Process): Put the project qualifier in the project data
5725 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5726 (Set_Project_Qualifier_Of): New procedure
5728 2008-04-08 Robert Dewar <dewar@adacore.com>
5730 * errout.ads: Update comments for new handling of info: messages
5732 * erroutc.adb (Matches): New procedure
5733 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5734 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5735 info messages as well as style messages.
5737 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5739 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5741 (Check_A_Call): Special "info: " warnings now have ? in the text
5742 (Elab_Warning): Use info message in static case
5744 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5746 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5747 whether an array aggregate with static bounds and scalar components
5748 should be expanded into a static constant.
5750 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5751 Ed Schonberg <schonberg@adacore.com>
5752 Robert Dewar <dewar@adacore.com>
5754 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5755 Has_Stream_Attribute_ Definition when checking for available stream
5756 attributes on parameters of a limited type in Ada 2005. Necessary for
5757 proper recognition of visible stream attribute clauses.
5758 (Has_Stream_Attribute_Definition): If the type is derived from a
5759 private type, then use the derived type's underlying type for checking
5760 whether it has stream attributes.
5761 (Validate_Object_Declaration): The check for a user-defined Initialize
5762 procedure applies also to types with controlled components or a
5763 controlled ancestor.
5764 Reject an object declaration in a preelaborated unit if the type is a
5765 controlled type with an overriding Initialize procedure.
5766 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5767 checking when the parent of a dereference is a selected component and
5768 the name has not been analyzed.
5770 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5771 prefixes that are invalid explicit dereferences of remote
5772 access-to-class-wide values, first checking whether the selected
5773 component is a prefixed form of call to a tagged operation.
5774 (Analyze_Call): Remove code that issues an error for limited function
5775 calls in illegal contexts, as we now support all of the contexts that
5776 were forbidden here.
5777 Allow a function call that returns a task.and appears as the
5778 prefix of a selected component.
5779 (Analyze_Reference): Give error message if we try to make a 'Reference
5780 for an object that is atomic/aliased without its type having the
5781 corresponding attribute.
5782 (Analyze_Call): Remove condition checking for attributes to allow
5783 calls to functions with inherently limited results as prefixes of
5784 attributes. Remove related comment about Class attributes.
5785 (Analyze_Selected_Component): If the prefix is a remote type, check
5786 whether this is a prefixed call before reporting an error.
5787 (Complete_Object_Operation): If the controlling formal is an access to
5788 variable reject an actual that is a constant or an access to one.
5789 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5790 primitive operations from base type.
5792 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5794 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5795 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5796 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5797 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5798 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5799 (Analyze_Call): Remove code that issues an error for limited function
5800 calls in illegal contexts, as we now support all of the contexts that
5801 were forbidden here.
5802 New calling sequence for Get_Simple_Init_Val
5803 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5804 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5806 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5807 Ed Schonberg <schonberg@adacore.com>
5808 Robert Dewar <dewar@adacore.com>
5810 * exp_ch2.adb: Minor reformatting.
5811 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5812 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5813 (Expand_Protected_Component): New routine.
5814 (Expand_Protected_Private): Removed.
5815 Add Sure parameter to Note_Possible_Modification calls
5817 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5818 generated subprogram declaration must inherit the overriding indicator
5819 from the instantiation node.
5820 (Validate_Access_Type_Instance): If the designated type of the actual is
5821 a limited view, use the available view in all cases, not only if the
5822 type is an incomplete type.
5823 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5824 and the actual subtype does not exclude null.
5825 (Process_Default): Handle properly abstract formal subprograms.
5826 (Check_Formal_Package_Instance): Handle properly defaulted formal
5827 subprograms in a partially parameterized formal package.
5828 Add Sure parameter to Note_Possible_Modification calls
5829 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5830 actual cannot be limited.
5831 (Collect_Previous_Instances): Generate instance bodies for subprograms
5834 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5836 Add Sure parameter to Note_Possible_Modification calls
5837 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5838 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5839 constant overlaid by variable and issue warning.
5840 Use new Is_Standard_Character_Type predicate
5841 (Analyze_Record_Representation_Clause): Check that the specified
5842 Last_Bit is not less than First_Bit - 1.
5843 (Analyze_Attribute_Definition_Clause, case Address): Check for
5844 self-referential address clause
5846 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5847 detection mechanism when the lhs is a prival.
5848 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5849 assignment of a pointer to protected data, to an object declared
5850 outside of the protected object.
5851 (Analyze_Loop_Statement): Check for unreachable code after loop
5852 Add Sure parameter to Note_Possible_Modication calls
5853 Protect analysis from previous syntax error such as a scope mismatch
5855 (Analyze_Assignment_Statement): The assignment is illegal if the
5856 left-hand is an interface.
5858 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5859 violation of restriction No_Implicit_Conditionals
5860 Add Sure parameter to Note_Possible_Modication calls
5861 Use new Is_Standard_Character_Type predicate
5862 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5863 call as operator. Fixes problems (e.g. validity checking) which
5864 come from the result looking as though it does not come from source).
5865 (Resolve_Call): Check case of name in named parameter if style checks
5867 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5868 from the checking that such calls should not occur from an entry body.
5869 (Resolve_Call): If the return type of an Inline_Always function
5870 requires the secondary stack, create a transient scope for the call
5871 if the body of the function is not available for inlining.
5872 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5873 that are actuals for in-out formals.
5874 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5875 primitive operations from base type.
5876 (Analyze_Selected_Component): If the context is a call to a protected
5877 operation the parent may be an indexed component prior to expansion.
5878 (Resolve_Actuals): If an actual is of a protected subtype, use its
5879 base type to determine whether a conversion to the corresponding record
5881 (Resolve_Short_Circuit): Handle pragma Check
5883 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5884 Use new Is_Standard_Character_Type predicate
5885 (Eval_Relational_Op): Catch more cases of string comparison
5887 2008-04-08 Robert Dewar <dewar@adacore.com>
5888 Gary Dismukes <dismukes@adacore.com>
5890 * s-rident.ads: Add No_Default_Initialization restriction
5893 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5894 (Set_TSS): Handle No_Default_Initialization case
5896 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5897 No_Default_Initialization
5898 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5899 parameters when Normalize_Scalars is active.
5900 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5901 Fix casing error in formal parameter name in call
5902 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5903 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5904 dispatching call on VM targets.
5906 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5907 Thomas Quinot <quinot@adacore.com>
5909 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5910 selected component from an access type's Associated_Final_Chain to
5911 check for the presence of that field, rather than assuming it exists
5912 for all named access types.
5913 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5914 procedure to call at the end of the generated cleanup procedure.
5915 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5916 and an At_End_Proc already exists in the handled sequence of statements
5917 for which cleanup actions are being expanded, the original cleanup
5918 action must be preserved.
5920 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5921 Ed Schonberg <schonberg@adacore.com>
5922 Robert Dewar <dewar@adacore.com>
5923 Gary Dismukes <dismukes@adacore.com>
5925 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5926 Build_Unprotected_Subprogram_Body): Generate debug info for
5927 declarations related to the handling of private data in task and
5929 (Debug_Private_Data_Declarations): New subprogram.
5930 (Install_Private_Data_Declarations): Remove all debug info flagging.
5931 This is now done by Debug_Private_Data_Declarations at the correct
5933 (Build_Simple_Entry_Call): If the task name is a function call, expand
5934 the prefix into an object declaration, and make the surrounding block a
5936 (Build_Master_Entity): An internal block is a master if it wraps a call.
5937 Code reformatting, update comments. Code clean up.
5938 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5939 (Replicate_Entry_Formals): If the formal is an access parameter or
5940 anonymous access to subprogram, copy the original tree to create new
5941 entities for the formals of the subprogram.
5942 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5943 for tasks to store the value passed using pragma Relative_Deadline.
5944 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5945 run-time call to create a task.
5946 (Build_Wrapper_Spec): If the controlling argument of the interface
5947 operation is an access parameter with a non-null indicator, use the
5948 non-null indicator on the wrapper.
5950 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5951 present, which it may not be in the case where the type entity is an
5952 incomplete view brought in by a limited with.
5953 (Analyze_Task_Type): Only retrieve the full view when present, which it
5954 may not be in the case where the type entity is an incomplete view brought
5955 in by a limited with.
5956 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5957 private components of a protected type, to prevent the generation of freeze
5958 nodes for which there is no proper scope of elaboration.
5960 * exp_util.ads, exp_util.adb
5961 (Remove_Side_Effects): If the expression is a function call that returns a
5962 task, expand into a declaration to invoke the build_in_place machinery.
5963 (Find_Protection_Object): New routine.
5964 (Remove_Side_Effects): Also make a copy of the value
5965 for attributes whose result is of an elementary type.
5966 (Silly_Boolean_Array_Not_Test): New procedure
5967 (Silly_Boolean_Array_Xor_Test): New procedure
5968 (Is_Volatile_Reference): New function
5969 (Remove_Side_Effects): Use Is_Volatile_Reference
5970 (Possible_Bit_Aligned_Component): Handle slice case properly
5972 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5973 case test to Exp_Util
5974 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5976 2008-04-08 Thomas Quinot <quinot@adacore.com>
5978 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5980 (Add_RACW_Features): When processing an RACW in another unit than the
5981 main unit, set Body_Decls to No_List to indicate that the bodies of
5982 the type's TSS must not be generated.
5983 (GARLIC_Support.Add_RACW_Read_Attribute,
5984 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5985 Body_Decls is No_List.
5986 (PolyORB_Support.Add_RACW_Read_Attribute,
5987 PolyORB_Support.Add_RACW_Write_Attribute,
5988 PolyORB_Support.Add_RACW_From_Any,
5989 PolyORB_Support.Add_RACW_To_Any,
5990 PolyORB_Support.Add_RACW_TypeCode): Same.
5991 (Transmit_As_Unconstrained): New function.
5992 (Build_Ordered_Parameters_List): Use the above to order parameters.
5993 (GARLIC_Support.Build_General_Calling_Stubs):
5994 Use the above to determine which parameters to unmarshall using 'Input
5995 at the point where their temporary is declared (as opposed to later on
5997 (PolyORB_Support.Build_General_Calling_Stubs):
5998 Use the above to determine which parameters to unmarshall using From_Any
5999 at the point where their temporary is declared (as opposed to later on
6000 with an assignment).
6002 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6004 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
6005 an Input function for an access type, do not perform default
6006 initialization on the local variable that receives the value, to
6007 prevent spurious warnings when the type is null-excluding.
6009 2008-04-08 Robert Dewar <dewar@adacore.com>
6010 Ed Schonberg <schonberg@adacore.com>
6012 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
6014 (Size_Known): Generic formal scalar types have known at compile
6015 time size, so remove check.
6016 Fix casing error in formal parameter name in call
6017 (Freeze_Subprogram): If the subprogram is a user-defined operator,
6018 recheck its overriding indication.
6020 2008-04-08 Vincent Celier <celier@adacore.com>
6022 * gnat1drv.adb: Send all messages indicating an error to standard error
6024 2008-04-08 Robert Dewar <dewar@adacore.com>
6026 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
6027 (List_Applicable_Restrictions): Do not list existing restrictions
6029 2008-04-08 Thomas Quinot <quinot@adacore.com>
6031 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
6032 add a pointer to generic sockets literature
6033 do not mention that the given example is "typical" usage.
6034 Remove obsolete comment about multicast not being supported on Windows.
6035 (Connect_Socket): Make Server mode IN rather than IN OUT
6036 since this formal is never modified.
6038 2008-04-08 Robert Dewar <dewar@adacore.com>
6040 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6041 the declaration for some different entity.
6042 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6043 list is precent (following the parent subtype indication), display
6044 appropriate "and" keyword.
6046 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6047 Remove unnecessary calls to Init_Size_Align and Init_Esize.
6048 Add notes on use of Parent field of an Itype
6050 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6051 Robert Dewar <dewar@adacore.com>
6052 Gary Dismukes <dismukes@adacore.com>
6054 * lib-xref.adb (Is_On_LHS): Remove dead code
6055 (Output_Overriden_Op): If the overridden operation is itself inherited,
6056 list the ancestor operation, which is the one whose body or absstract
6057 specification is actually being overridden. For source navigation
6060 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6061 operation is primitive for the type.
6062 (Declare_Inherited_Private_Subprograms): If the new operation overrides
6063 an inherited private subprogram, set properly the Overridden_Operation
6064 attribute, for better cross-reference information.
6065 (Analyze_Package_Specification): Do late analysis of spec PPCs
6066 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6067 properly the full view and underlying full views of a private type in a
6068 child unit, whose full view is derived from a private type in a parent
6069 unit, and whose own full view becomes visible in the child body.
6071 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6072 primitive operation after the type has been frozen, add an explicit
6073 reference to the type and the operation, because other primitive
6074 references have been emitted already.
6075 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6076 dispatching call on VM targets.
6078 2008-04-08 Vincent Celier <celier@adacore.com>
6079 Thomas Quinot <quinot@adacore.com>
6081 * make.adb: (Gnatmake_Called): Remove, no longer necessary
6082 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6083 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6084 (Insert_Project_Sources): Take into account index in multi-unit source
6086 After building a library project, delete all temporary files.
6087 (Initialize): Reset current output after parsing project file.
6088 (Collect_Arguments_And_Compile): Never insert in the queue the sources
6089 of library projects that are externally built.
6090 Put file name in error and inform messages if -df is used
6091 (Display): If invoked with -d7, do not display path names, but only
6094 * makeutl.ads (Path_Or_File_Name): New function
6095 (Path_Or_File_Name): New function
6097 2008-04-08 Arnaud Charlet <charlet@adacore.com>
6099 * Make-lang.in: Disable warnings during first stage of bootstrap
6101 Update dependencies.
6103 2008-04-08 Vincent Celier <celier@adacore.com>
6105 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6106 case to decide if ALI object file is included in library.
6107 (Build_Library): Never attempt to build a library if the project is
6110 2008-04-08 Thomas Quinot <quinot@adacore.com>
6112 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6113 (No_List) is defined to return Empty.
6115 2008-04-08 Jose Ruiz <ruiz@adacore.com>
6117 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6120 (Read_Default_Search_Dirs): Do not consider spaces as path separators
6121 because spaces may be part of legal paths.
6123 2008-04-08 Robert Dewar <dewar@adacore.com>
6125 * par-ch11.adb (P_Exception_Handler): Check indentation level for
6128 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6130 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6131 in a type declaration, if this is not an interface declaration or
6132 private type extension.
6134 2008-04-08 Vincent Celier <celier@adacore.com>
6136 * prj-util.adb (Executable_Of): New String parameter Language. When
6137 Ada_Main is False and Language is not empty, attempt to remove the body
6138 suffix or the spec suffix of the language to get the base of the
6139 executable file name.
6140 (Put): New Boolean parameter Lower_Case, defauilted to False. When
6141 Lower_Case is True, put the value in lower case in the name list.
6142 (Executable_Of): If there is no executable suffix in the configuration,
6143 then do not modify Executable_Extension_On_Target.
6145 * prj-util.ads (Executable_Of): New String parameter Language,
6146 defaulted to the empty string.
6147 (Put): New Boolean parameter Lower_Case, defauilted to False
6149 2008-04-08 Robert Dewar <dewar@adacore.com>
6151 * scng.adb (Scan_Identifier): Handle case of identifier starting with
6152 wide character using UTF-8 encoding.
6154 2008-04-08 Javier Miranda <miranda@adacore.com>
6156 * sem.adb (Analyze): Consider case in which we analyze an empty node
6157 that was generated by a call to a runtime function that is not
6158 available under the configurable runtime.
6160 * sem.ads (Inside_Freezing_Actions): New flag.
6161 (Save_Check_Policy_List): New field in scope stack entry
6163 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6164 Robert Dewar <dewar@adacore.com>
6166 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6167 the ancestor part of an extension aggregate for a limited type.
6168 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6169 enumeration index bounds.
6170 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6171 when array is too short.
6172 (Check_Expr_OK_In_Limited_Aggregate): Move function
6173 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6175 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6176 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6177 component associations.
6178 (Check_Non_Limited_Type): Moved to outer level and renamed.
6179 (Resolve_Record_Aggregate): In an extension aggregate, an association
6180 with a box initialization can only designate a component of the
6181 extension, not a component inherited from the given ancestor
6183 * sem_case.adb: Use new Is_Standard_Character_Type predicate
6185 2008-04-08 Robert Dewar <dewar@adacore.com>
6187 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6189 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6190 Properly handle case where Aft > Scale and input number is less than
6193 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6195 * s-stoele.ads, s-soflin.ads: Move the location of
6196 Dummy_Communication_Block from System.Storage_Elements to
6199 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6200 emulate Communication_Block in certain scenarios.
6202 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6204 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6206 Add new subtype S_WWC, unchecked conversion routines From_WWC and
6208 (I_WWC, O_WWC): New routines for input and output of
6209 Wide_Wide_Character.
6211 2008-04-08 Robert Dewar <dewar@adacore.com>
6213 * stringt.adb (Write_String_Table_Entry): Handle wide characters
6216 2008-04-08 Robert Dewar <dewar@adacore.com>
6218 * styleg.adb (Check_Comment): Allow special char after -- in
6219 non-end-of-line case
6221 2008-04-08 Robert Dewar <dewar@adacore.com>
6223 * stylesw.adb: Implement -gnaty + - y options
6224 (Set_GNAT_Style_Check_Options): Includ I in style check string
6226 * stylesw.ads: Add comments for new style switch options
6228 2008-04-08 Sergey Rybin <rybin@adacore.com>
6230 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6231 to the set of the GNAT components needed by ASIS.
6233 2008-04-08 Bob Duff <duff@adacore.com>
6235 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6237 2008-04-08 Tristan Gingold <gingold@adacore.com>
6239 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6240 Improve error message generation.
6242 2008-04-08 Vincent Celier <celier@adacore.com>
6244 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6245 Use_Error, as specified in the RM. Check if directory is open and raise
6246 Use_Error if it is not.
6248 2008-04-08 Vincent Celier <celier@adacore.com>
6249 Robert Dewar <dewar@adacore.com>
6251 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6252 AAMP_On_Target is set.
6254 * vms_data.ads: Add NOxxx to style check switch list
6255 Add entry COMPONENTS for -gnatVe
6256 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6258 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6259 Add qualifiers for gnatmetric coupling options
6260 Add note that -gnata enables all checks
6261 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6262 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6263 New warning flag -gnatw.e
6265 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6266 Add entry for -gnatyN (forgotten before)
6267 Line for new warning switch -gnatw.p
6268 New warning flag -gnatw.e
6270 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6271 Document -gnaty - + y
6272 Replace occurences of "package specification" with "package spec"
6273 Define preprocessing symbols in documentation of gnatprep
6274 Clarify reason for distinguishing overflow checking
6275 Add documentation for project-aware tool switches -eL and --subdirs=
6276 Complete list of configuration pragmas
6277 Specify that, even when gnatmake switch -x is used, mains on the command
6278 line need to be sources of project files.
6279 Editing of gnatcheck/gnatmetric doc.
6280 Add documentation for -gnatw.p/-gnatw.P
6281 Add missing documentation for -fno-inline-functions.
6282 Add documentation for -gnatw.e
6284 * gnat_rm.texi: Add documentation for No_Default_Initialization
6285 Replace occurences of "package specification" with "package spec"
6286 Document use of * in Warnings Off string
6287 Update documentation of alignment/component clauses.
6288 Add documentation for Invalid_Value
6289 Document new consistency rule for Optimize_Alignment
6290 Add documentation for Precondition and Postcondition pragmas
6291 Add documentation for Check and Check_Policy pragmas
6292 Document new Enum_Val attribute
6293 Remove requirement for static string in pragma Assert
6294 Add documentation on GNAT.Time_Stamp
6296 * ug_words: add entry for -gnatVe
6297 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6298 Add entry for -gnatw.e
6300 * debug.adb: Add missing documentation for d.a flag
6301 Document new -gnatd.a switch.
6302 Add documentation for new gnatmake debug switch -df
6304 2008-04-08 Thomas Quinot <quinot@adacore.com>
6306 * gen-soccon.c: Bump year in copyright notices.
6308 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6310 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6312 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6315 2008-04-08 Robert Dewar <dewar@adacore.com>
6316 Bob Duff <duff@adacore.com>
6318 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6319 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6321 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6323 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6325 * g-trasym.ads: Minor comment improvements
6327 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6329 * a-sequio.ads, a-direio.ads: improve message for tagged type
6331 * a-strunb.ads: Minor reformatting
6333 * a-tifiio.adb: Minor reformatting
6335 * atree.adb (Fix_Parents): Use clearer names for formals
6336 Cleanup and simplify code
6337 Use named notation in calls
6339 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6342 * uintp.adb: Used named notation for some confusing calls
6344 * bindusg.adb: Minor change in one line of output
6346 * cstand.adb: Minor reformatting of src representation of Standard
6348 * a-assert.ads: Add comment.
6350 * g-decstr.adb: Fix bad indentation
6352 * expander.ads, expander.adb: Code clean up.
6354 * sem_dist.ads: Minor comment improvement
6356 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6357 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6359 * i-cstrin.adb: Fix casing error in formal parameter name in call
6361 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6363 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6364 mentioned in limited_with_clauses to do create semantic dependencies
6365 even though they appear in the ali file.
6367 2008-04-08 Emmanuel Briot <briot@adacore.com>
6369 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6371 (Get_Configuration): New subprogram.
6373 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6374 These optional parameters help preserve the casing of the project's name
6375 when pretty-printing.
6377 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6378 Arnaud Charlet <charlet@adacore.com>
6380 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6381 then use __gnat_set_exit_status to report the returned status code.
6383 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6384 messages on .NET, since some constructs of the language are not
6387 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6388 .NET linker, gnatlink now concatenate all .il files and pass this to
6391 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6392 Xavier Grave <grave@ipno.in2p3.fr>
6394 * Makefile.in: Add make ifeq define for mips/mipsel support.
6395 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6396 system-linux-mips.ads: New files.
6398 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6400 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6401 detect systems using GNU libc.
6407 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6409 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6410 constant constant for sysconf call.
6411 (bit_field): New packed boolean type used by cpu_set_t.
6412 (cpu_set_t): New type corresponding to the C type with
6413 the same name. Note that on the Ada side we use a bit
6414 field array for the affinity mask. There is not need
6415 for the C macro for setting individual bit.
6416 (pthread_setaffinity_np): New imported routine.
6417 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6420 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6422 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6424 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6426 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6427 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6428 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6429 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6430 Return by Depressed Stack Pointer.
6432 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6434 * decl.c (is_variable_size): Do not unconditionally return false
6435 on non-strict alignment platforms.
6437 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6439 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6440 used to process all the variants of the specified type.
6441 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6442 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6443 (rest_of_type_decl_compilation): Likewise.
6444 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6446 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6448 * gigi.h (insert_block): Kill.
6449 * utils.c (insert_block): Kill.
6451 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6453 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6454 type has self-referential size, get the size from the initializing
6455 expression directly if it is also a constant whose nominal type
6456 has self-referential size.
6458 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6461 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6464 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6465 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6467 2008-04-01 Andreas Jaeger <aj@suse.de>
6469 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6472 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6474 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6475 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6476 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6477 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6478 gnatlink.adb, gnatmem.adb, gprep.adb,
6479 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6480 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6481 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6482 lib-xref.ads, lib.adb, link.c, live.ads,
6483 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6484 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6485 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6486 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6487 namet.adb, namet.h, nlists.adb, nlists.ads,
6488 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6489 osint-c.ads, osint.adb, osint.ads, output.ads,
6490 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6491 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6492 par-endh.adb, par-labl.adb, par-prag.adb,
6493 par-sync.adb, par-tchk.adb, par-util.adb,
6494 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6495 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6496 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6497 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6499 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6501 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6502 size if it has overflowed.
6504 2008-03-31 Olivier Hainque <hainque@adacore.com>
6505 Eric Botcazou <ebotcazou@adacore.com>
6507 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6508 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6510 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6512 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6513 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6514 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6515 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6516 exp_tss.ads, exp_util.adb, exp_util.ads,
6517 exp_vfpt.adb, freeze.adb, freeze.ads,
6518 frontend.adb, g-alleve.adb, g-altcon.adb,
6519 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6520 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6521 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6522 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6523 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6524 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6525 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6526 g-except.ads, g-expect.ads, g-heasor.adb,
6527 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6528 g-locfil.ads, g-md5.adb, g-md5.ads,
6529 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6530 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6531 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6532 g-soccon-aix.ads, g-soccon-darwin.ads,
6533 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6534 g-soccon-hpux.ads, g-soccon-irix.ads,
6535 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6536 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6537 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6538 g-soccon-solaris.ads, g-soccon-tru64.ads,
6539 g-soccon-vms.ads, g-soccon-vxworks.ads,
6540 g-soccon.ads, g-socket.adb, g-socket.ads,
6541 g-socthi-mingw.adb, g-socthi-vms.adb,
6542 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6543 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6544 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6547 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6549 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6550 if the procedure is imported.
6552 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6554 * adaint.c: Fix warnings.
6556 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6558 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6560 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6562 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6563 Fix problem of status check for null file
6565 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6567 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6568 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6569 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6570 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6571 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6574 2008-03-26 Thomas Quinot <quinot@adacore.com>
6577 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6578 Get_Socket_Option): Add support for Receive_Packet_Info.
6580 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6581 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6582 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6583 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6584 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6585 new constants SO_REUSEPORT and IP_PKTINFO
6587 2008-03-26 Robert Dewar <dewar@adacore.com>
6589 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6590 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6591 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6592 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6593 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6594 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6595 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6596 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6597 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6598 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6599 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6600 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6601 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6602 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6603 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6604 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6605 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6606 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6607 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6608 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6609 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6610 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6611 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6612 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6613 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6614 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6615 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6616 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6617 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6618 s-tasloc.adb: Minor reformatting.
6620 Remove "used for" sections from comments.
6622 2008-03-26 Robert Dewar <dewar@adacore.com>
6624 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6625 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6626 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6627 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6628 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6629 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6630 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6631 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6632 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6633 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6634 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6635 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6636 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6637 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6638 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6639 double spaced if it fits on one line and otherwise single spaced.
6641 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6643 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6644 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6645 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6646 or task info if the thread could not be created.
6648 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6650 * gnatvsn.ads (Library_Version): Bump to 4.4.
6651 (Current_Year): Bump to 2008.
6653 2008-03-26 Robert Dewar <dewar@adacore.com>
6655 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6657 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6659 * debug.adb: Add debug flags d.r and d.v
6660 Add debug flag .T (Optimize_Alignment (Time))
6661 Add debug flag .S (Optimize_Alignment (Space))
6663 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6664 depending on setting of relevant debug flags.
6665 Replace use of Warnings_Off by Has_Warnings_Off
6666 (Freeze_Entity): In circuit for warning on suspicious convention
6667 actuals, do not give warning if subprogram has same entity as formal
6668 type, or if subprogram does not come from source.
6669 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6670 if Optimize_Alignment set to Space.
6672 * frontend.adb: Add call to Sem_Warn.Initialize
6673 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6674 Reset Optimize_Alignment mode from debug switches .S and .T
6676 * layout.adb (Layout_Composite_Object): Rewritten for
6677 Optimize_Aligment pragma.
6679 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6682 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6684 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6685 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6686 this change. Add entry for pragma Optimize_Alignment
6688 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6689 (Pragma_Identifier (..
6690 instead, adjustments throughout to accomodate this change.
6691 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6692 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6693 Add implementation of pragma Optimize_Alignment
6695 2008-03-26 Vincent Celier <celier@adacore.com>
6697 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6698 Improve memory usage to avoid use of stack.
6700 2008-03-26 Robert Dewar <dewar@adacore.com>
6702 * a-teioed.ads: Correct value of Default_Fill
6704 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6706 2008-03-26 Robert Dewar <dewar@adacore.com>
6708 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6709 with Current_Output (introduce Self).
6711 2008-03-26 Robert Dewar <dewar@adacore.com>
6713 * checks.adb (Ensure_Valid): Capture valid status if possible
6716 2008-03-26 Robert Dewar <dewar@adacore.com>
6718 * stand.ads: Deal with reordering of package standard declarations
6720 * cstand.adb: Put package Standard declarations in proper order
6722 2008-03-26 Robert Dewar <dewar@adacore.com>
6724 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6725 (Pragma_Identifier (.. instead.
6726 (OK_To_Reorder_Components): New flag
6727 (Has_Entries): Code cleanup.
6728 (Warnings_Off_Used): New flag
6729 (Warnings_Off_Used_Unmodified): New flag
6730 (Warnings_Off_Used_Unreferenced): New flag
6731 (Has_Warnings_Off): New function
6732 (Has_Unmodified): New function
6733 (Has_Unreferenced): New function
6734 (Is_Trivial_Subprogram): New flag
6735 (Is_Static_Dispatch_Table_Entity): New attribute.
6736 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6737 (more consistent with other similar names)
6738 (Access_Subprogram_Type): New classification function
6740 2008-03-26 Robert Dewar <dewar@adacore.com>
6742 * errout.ads: Document new !! insertion sequence
6744 * errout.adb (N_Pragma): Chars field removed, use Chars
6745 (Pragma_Identifier (.. instead.
6746 Replace use of Warnings_Off by Has_Warnings_Off
6747 (Error_Msg_Internal): Don't delete warning ending in !!
6749 2008-03-26 Robert Dewar <dewar@adacore.com>
6751 * par.adb (Check_No_Right_Paren): Removed no longer used
6753 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6754 (Pragma_Identifier (.. instead.
6756 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6758 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6759 par-ch4.adb: Minor improvements in error recovery and messages.
6761 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6764 * par-ch9.adb: Minor improvements in error recovery and messages
6765 (P_Protected): Better error recovery for "protected type x;"
6767 * par-util.adb: Minor improvements in error recovery and messages
6768 (Check_No_Right_Paren): Removed no longer used
6770 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6772 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6773 that the prefix of an attribute is the type of the aggregate being
6776 2008-03-26 Javier Miranda <miranda@adacore.com>
6777 Robert Dewar <dewar@adacore.com>
6779 * exp_attr.adb (N_Pragma): Chars field removed.
6780 (Expand_N_Attribute_Reference): If the designated type associated with
6781 attribute 'Unrestricted_Access is a subprogram entity then replace it
6782 by an E_Subprogram_Type itype.
6783 Implement attribute Old
6785 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6787 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6789 New_Internal_Entity by call to Create_Itype to centralize calls
6790 building itypes, ad propagate the convention of the designated
6791 subprogram. In addition, disable the machinery cleaning constant
6792 indications from all entities in current scope when 'Unrestricted_Access
6793 corresponds with a node initializing a dispatch table slot.
6794 (Analyze_Attribute): Parameterless attributes returning a string or a
6795 type will not be called with improper arguments, so we can remove junk
6796 code that was dealing with this case.
6797 Implement attribute Old
6799 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6800 Add entry for pragma Optimize_Alignment
6801 New standard names Sync and Synchronize
6803 2008-03-26 Robert Dewar <dewar@adacore.com>
6804 Arnaud Charlet <charlet@adacore.com>
6806 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6808 (No_Exception_Propagation_Active): New function.
6809 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6810 Update comments, and review all uses of No_Exception_Propagation, which
6811 are now correct and in sync with what gigi expects.
6813 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6815 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6816 Update comments, and review all uses of No_Exception_Propagation, which
6817 are now correct and in sync with what gigi expects.
6819 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6821 * sem_ch3.adb (Access_Definition): If the access type is the return
6822 result of a protected function, create an itype reference for it
6823 because usage will be in an inner scope from the point of declaration.
6824 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6825 OK_To_Reorder_Components.
6826 (Make_Index): If an overloaded range includes a universal integer
6827 interpretation, resolve to Standard.Integer.
6828 (Analyze_Subtype_Indication): Copy Convention to subtype
6829 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6830 limited an synchronized progenitors in type declaration and private
6831 extension declarations.
6833 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6834 protected subprogram body, determine proper scope from subprogram
6837 2008-03-26 Robert Dewar <dewar@adacore.com>
6839 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6842 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6844 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6845 of a heap allocator for a limited unconstrained function return when
6846 resstriction No_Allocators is active.
6847 (Analyze_Allocator): The restriction No_Allocators is now only checked
6848 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6850 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6851 of a heap allocator for a limited unconstrained function return when
6852 resstriction No_Allocators is active.
6853 (Analyze_Allocator): The restriction No_Allocators is now only checked
6854 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6855 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6856 operands are fixed-point types, the universal_fixed predefined operation
6857 is used, regardless of whether the operand type (s) have a primitive
6858 operation of the same name.
6860 2008-03-26 Javier Miranda <miranda@adacore.com>
6862 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6863 Is_Static_Dispatch_Table
6864 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6865 to Exchange_Declarations to exchange the private and full-view. Bug
6866 found working in this issue.
6867 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6868 to the subprogram pointer type.
6869 (Make_Secondary_DT): Replace generation of Prim'Address by
6870 Address (Prim'Unrestricted_Access)
6871 (Make_DT): Replace generation of Prim'Address by
6872 Address (Prim'Unrestricted_Access)
6873 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6874 simple call form for single entry.
6875 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6876 tables of predefined primitives).
6877 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6878 predefined primitives.
6879 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6880 access to dispatch tables containing predefined primitives.
6882 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6883 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6885 (Register_Predefined_DT_Entry): Updated to handle the new contents
6886 of attribute Access_Disp_Table (pointers to dispatch tables containing
6887 predefined primitives).
6889 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6891 (Find_Interface_ADT): Updated to skip the new contents of attribute
6892 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6895 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6897 (Set_Convention): Use new function Is_Access_Subprogram_Type
6898 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6899 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6902 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6903 expanded code avoiding calls to Build_Predef_Prims.
6904 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6905 call to Build_Get_Predefined_Prim_Op_Address.
6907 2008-03-26 Javier Miranda <miranda@adacore.com>
6909 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6910 subprogram Corresponding_Runtime_Package to know the runtime package
6911 that will provide support to a given protected type.
6913 * exp_ch9.adb (Add_Private_Declarations,
6914 Build_Protected_Subprogram_Call,
6915 Build_Protected_Entry, Build_Simple_Entry_Call,
6916 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6917 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6918 cleanup using the new centralized subprogram Corresponding_Runtime
6919 Package to know the runtime package that provides support to
6920 a given protected type.
6922 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6924 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6925 assignment is within the initialization procedure for a packed array,
6926 and Initialize_Scalars is enabled, compile right-hand side with checks
6927 off, because the value is purposely out of range.
6929 2008-03-26 Vincent Celier <celier@adacore.com>
6931 * gnatcmd.adb: Add processing for GNAT SYNC
6933 * vms_conv.ads: (Command_Type): Add command Sync
6935 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6937 * vms_data.ads: Add entries for -gnatw.w
6938 Add qualifier for gnatstub --header-file option
6939 Add switches for GNAT SYNC
6941 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6942 (Add_Package_Name): New procedure
6943 (Package_Name_List): New function
6944 (Initialize): Add known package names to the list
6945 (Register_New_Package): Add the new package name to the list
6947 2008-03-26 Robert Dewar <dewar@adacore.com>
6949 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6950 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6951 Raise_Exception by "raise with" construct.
6953 2008-03-26 Pascal Obry <obry@adacore.com>
6955 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6956 supported platforms.
6958 * Makefile.rtl: Add g-sercom.o.
6960 * impunit.adb: Add g-sercom.adb.
6962 * s-crtl.ads (open): New routine.
6966 * s-osinte-mingw.ads (BYTE): New type.
6968 (OVERLAPPED): Likewise.
6969 (GENERIC_READ): New constant.
6970 (GENERIC_WRITE): Likewise.
6971 (OPEN_EXISTING): Likewise.
6972 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6974 (CreateFile): New routine.
6975 (WriteFile): Likewise.
6976 (ReadFile): Likewise.
6977 (CloseHandle): Move next to the other file oriented routines.
6979 * g-sercom.ads: New unit.
6981 * g-sercom.adb: Default implementation, calls to this unit will raise
6982 a program error exception.
6984 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6985 GNU/Linux implementations.
6987 2008-03-26 Robert Dewar <dewar@adacore.com>
6989 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6991 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6992 unchecked conversion for different conventions only for subprogram
6995 2008-03-26 Vincent Celier <celier@adacore.com>
6997 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6998 to check if the specified object file is correct.
7000 2008-03-26 Thomas Quinot <quinot@adacore.com>
7002 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
7003 Comes_From_Source to exclude primitives from being checked. We want to
7004 exclude predefined primitives only, so use the appropriate specific
7005 predicate. Also, flag a formal parameter of an anonymous
7006 access-to-subprogram type as illegal for a primitive operation of a
7007 remote access to class-wide type.
7009 2008-03-26 Vincent Celier <celier@adacore.com>
7011 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
7012 known, check if it may be a missspelling of a known package name. In
7013 not verbose, not mode, issue warnings only if the package name is a
7014 possible misspelling.
7015 In verbose mode, always issue a warning for a not known package name,
7016 plus a warning if the name is a misspelling of a known package name.
7018 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
7019 limited withs or limited withs are parse during one call.
7020 (Parse_Single_Project): Post parse context clause in two passes: non
7021 limited withs before current project and limited withs after current
7024 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
7025 project with the name With_Name, even if it is only extended indirectly.
7026 (Recursive_Process): Process projects in order: first single withs, then
7027 current project, then limited withs.
7029 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
7030 project with the name With_Name, even if it is only extended indirectly.
7032 2008-03-26 Robert Dewar <dewar@adacore.com>
7034 * scn.adb (Initialize_Scanner): Format messages belong on standard error
7036 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7038 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
7039 a generic subprogram that is imported, do not attempt to compile
7042 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7043 imported, do not generate a raise_program_error for the non-existent
7045 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7046 perform minimal name resolution on the generic to avoid spurious
7048 (Find_Actual_Type): the designated type of the actual in a child unit
7049 may be declared in a parent unit without being an actual.
7051 2008-03-26 Robert Dewar <dewar@adacore.com>
7053 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7054 * sinfo.ads, sinfo.adb (From_At_End): New flag
7056 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7058 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7059 operations that have an interface parameter.
7060 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7061 Don't treat No_Return call as raise.
7063 * sem_disp.adb (Check_Dispatching_Operations): apply check for
7064 non-primitive interface primitives to access parameters, not to all
7065 parameters of an access type.
7067 2008-03-26 Ed Schonberg <schonberg@adacore.com>
7069 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7070 declarations of a parent unit are made visible when compiling a child
7071 instance, the parent is not a hidden open scope, even though it may
7072 contain other pending instance.
7074 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7075 hidden open scope for some child instance, it does affect the
7076 visibility status of other stach entries.
7077 (Analyze_Object_Renaming): Check that a class-wide object cannot be
7078 renamed as an object of a specific type.
7080 2008-03-26 Robert Dewar <dewar@adacore.com>
7082 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7083 recursion and raise SE directly.
7084 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7085 set for formal type for IN mode parameter.
7087 2008-03-26 Robert Dewar <dewar@adacore.com>
7089 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7090 (Initialize): New procedure
7091 (Output_Warnings_Off_Warnings): New procedure
7092 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7093 (Output_Non_Modifed_In_Out_Warnings): Ditto
7094 (Warn_On_Unreferenced_Entity): Ditto
7096 2008-03-26 Vincent Celier <celier@adacore.com>
7098 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7101 2008-03-26 Matthew Heaney <heaney@adacore.com>
7103 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
7104 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7105 Marked with clauses as private, and controlled operations as overriding
7107 2008-03-26 Robert Dewar <dewar@adacore.com>
7109 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7111 2008-03-26 Robert Dewar <dewar@adacore.com>
7113 * back_end.adb, back_end.ads: Minor reformatting
7115 * bindgen.adb: Minor clarification of comments
7117 * fname.ads: Minor comment fixes
7119 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7120 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7122 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7123 xsnames.adb: Remove warnings off pragma no longer needed
7125 * a-catizo.ads, a-calari.ads, a-calfor.adb,
7126 a-calfor.ads: Fix header.
7128 2008-03-26 Tristan Gingold <gingold@adacore.com>
7130 * init.c: Do not adjust pc for HPARITH on alpha/vms.
7132 2008-03-26 Robert Dewar <dewar@adacore.com>
7134 * lib-xref.adb: (OK_To_Set_Reference): New function
7135 (Generate_Reference): Don't set referenced from occurrence in Warnings,
7136 Unmodified, or Unreferenced pragma
7138 2008-03-26 Robert Dewar <dewar@adacore.com>
7140 * alloc.ads: Add entries for Warnings_Off_Pragmas table
7142 2008-03-26 GNAT Script <nobody@adacore.com>
7144 * Make-lang.in: Makefile automatically updated
7146 2008-03-26 Robert Dewar <dewar@adacore.com>
7148 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7149 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7150 removed, use Chars (Pragma_Identifier (.. instead, adjustments
7151 throughout to accomodate this change.
7153 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7155 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7156 Einfo.Set_Needs_Debug_Info)
7158 2008-03-26 Robert Dewar <dewar@adacore.com>
7160 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7161 Add description for the new gnatstub option '--header-file'
7162 clarification of -gnatwz/-gnatwZ
7163 Add a "Irix-Specific Considerations" section to document the need to
7164 set LD_LIBRARY_PATH when using the default shared runtime library.
7165 Added documentation for both gcov and gprof.
7167 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7168 messages that are not suppressed when clients are compiled.
7169 Add documentation of s-pooglo s-pooloc
7170 Document the new GNAT.Serial_Communications API.
7171 Add documentation for 'Old attribute
7172 Add description of pragma Optimize_Alignment
7174 * ug_words: Add entries for -gnatw.w -gnatw.W
7176 * usage.adb: Add line for -gnatw.w (warn on warnings off)
7178 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7181 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7183 * decl.c (maybe_pad_type): Avoid padding an integral type when
7184 bumping its alignment is sufficient.
7186 2008-03-25 Arnaud Charlet <charlet@adacore.com>
7188 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7189 Fix wrong formatting (lines too long)
7191 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7193 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7194 a-calend-vms.adb, a-calend.adb, a-calend.ads,
7195 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7196 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7197 a-cohama.ads, a-comlin.ads, a-coorse.adb,
7198 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7199 a-except-2005.ads, a-except.adb, a-except.ads,
7200 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7201 a-exextr.adb, a-filico.ads, a-finali.ads,
7202 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7203 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7204 a-sequio.ads, a-strbou.ads, a-strfix.adb,
7205 checks.adb, exp_ch3.adb, exp_ch4.adb,
7206 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7207 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7208 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7209 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7210 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7212 2008-03-24 Robert Dewar <dewar@adacore.com>
7214 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7215 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7216 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7217 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7218 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7219 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7220 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7221 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7222 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7223 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7224 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7225 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7226 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7227 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7228 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7229 double spaced if it fits on one line and otherwise single spaced.
7231 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7233 PR documentation/15479
7234 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7235 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7236 (doc/gnat_ugn.info): Renamed from ...
7237 (doc/gnat_ugn_unw.info): ... this.
7238 (doc/gnat_ugn.dvi): Renamed from ...
7239 (doc/gnat_ugn_unw.dvi): ... this.
7240 (doc/gnat_ugn.pdf): Renamed from ...
7241 (doc/gnat_ugn_unw.pdf): ... this.
7242 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7244 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7245 unconditionally to gnat_ugn.info. Fix cross references to the
7246 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7247 and GNU make manuals to be proper texinfo links.
7248 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7250 2008-03-21 Olivier Hainque <hainque@adacore.com>
7252 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7253 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7255 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7257 * trans.c (addressable_p): Add notes on addressability issues.
7259 2008-03-21 Olivier Hainque <hainque@adacore.com>
7260 Ed Schonberg <schonberg@adacore.com>
7262 * trans.c (addressable_p): Accept COND_EXPR when both arms
7264 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7265 (call_to_gnu): Do not use name reference in the error message
7266 for a misaligned by_reference_parameter. The actual may be a
7269 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7271 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7273 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7275 * gnat_rm.texi (Implementation Defined Characteristics)
7276 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7278 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7279 (Switches for gnatchop, Installing a library): Likewise.
7281 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7283 * trans.c (emit_range_check): Do not emit the check if the base type
7284 of the expression is the type against which its range must be checked.
7286 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7288 * decl.c (maybe_pad_type): Use value_factor_p.
7290 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7292 * lang.opt (nostdlib): Move around.
7293 * misc.c (gnat_handle_option): Fix formatting.
7294 (gnat_dwarf_name): Move around.
7295 * trans.c (Case_Statement_to_gnu): Fix formatting.
7296 (gnat_to_gnu): Likewise.
7297 * utils.c (aggregate_type_contains_array_p): Likewise.
7298 (create_subprog_decl): Likewise.
7300 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7302 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7303 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7305 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7307 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7308 BIGGEST_ALIGNMENT when capping the alignment of records with
7309 strict alignment and size clause.
7311 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7313 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7314 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7315 and -Wuninitialized.
7316 (gnat_post_options): Clear warn_unused_parameter.
7318 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7320 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7321 aligned bit-fields, bumping the alignment of the record type if deemed
7323 (value_factor_p): Return false instead of 0.
7325 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7327 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7328 for scalar types with small alignment.
7330 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7332 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7333 from that of the front-end's end label.
7334 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7335 from that of the loop label.
7337 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7339 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7340 comment for the packed array type case.
7341 * utils.c (build_template): Use a loop to strip padding or
7342 containing records for justified modular types.
7344 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7346 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7347 large alignments specified for types.
7348 (validate_alignment): Minor cleanup.
7350 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7352 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7353 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7354 the component for packing, if possible, as well as if a component
7355 size clause is specified.
7356 <E_Record_Subtype>: For an array type used to implement a packed
7357 array, get the component type from the original array type.
7358 Try to get a smaller form of the component for packing, if possible,
7359 as well as if a component size clause is specified.
7360 (round_up_to_align): New function.
7361 (make_packable_type): Add in_record parameter.
7362 For a padding record, preserve the size. If not in_record and the
7363 size is too large for an integral mode, attempt to shrink the size
7364 by lowering the alignment.
7365 Ditch the padding bits of the last component.
7366 Compute sizes and mode manually, and propagate the RM size.
7367 Return a BLKmode record type if its size has shrunk.
7368 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7369 Use Original_Array_Type to retrieve the type in case of an error.
7370 Adjust call to make_packable_type.
7371 (gnat_to_gnu_field): Likewise.
7372 (concat_id_with_name): Minor tweak.
7373 * trans.c (larger_record_type_p): New predicate.
7374 (call_to_gnu): Compute the nominal type of the object only if the
7375 parameter is by-reference. Do the conversion actual type -> nominal
7376 type if the nominal type is a larger record.
7377 (gnat_to_gnu): Do not require integral modes on the source type to
7378 avoid the conversion for types with identical names.
7379 (addressable_p): Add gnu_type parameter. If it is specified, do not
7380 return true if the expression is not addressable in gnu_type.
7381 Adjust recursive calls.
7382 * utils.c (finish_record_type): Remove dead code.
7384 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7387 * decl.c (maybe_pad_type): Avoid padding an integral type when
7388 bumping its alignment is sufficient.
7390 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7392 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7393 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7395 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7396 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7397 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7398 code output strings.
7399 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7400 system-vms_64.ads: Fix typos in ada source code comments.
7401 * sinfo-cn.adb: Remove incomplete sentence.
7403 PR documentation/15479
7404 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7406 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7409 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7411 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7414 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7415 that underlying type is present.
7417 2008-02-26 Tom Tromey <tromey@redhat.com>
7419 * misc.c (internal_error_function): Remove test of
7420 USE_MAPPED_LOCATION.
7421 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7422 (Sloc_to_locus): Remove old location code.
7424 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7426 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7427 `i.e.' by adding comma or `@:' as appropriate.
7428 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7429 plain characters `C', use `@samp{C}'.
7430 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7431 (Krunching Method): Likewise.
7433 * gnat_ugn.texi (Conventions): List environment variables and
7434 metasyntactic variables.
7435 (Compiling Programs): Fix notation of metasyntactic variables.
7436 Add @file where appropriate. Use @file for file extensions,
7438 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7439 instead of @file, @env instead of @code.
7441 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7443 PR documentation/15479
7444 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7445 and `...' with `@dots{}' or `@enddots{}'.
7447 PR documentation/15479
7448 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7449 use @command instead of @code, @option instead of @samp or @code,
7450 @code instead of @var, @samp instead of @file.
7452 PR documentation/15479
7453 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7454 in Makefile rules, by using `&&' rather than `;'.
7456 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7458 PR documentation/15479
7459 * gnat_ugn.texi: In non-code, avoid space before colon.
7460 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7461 (Examples of gnatxref Usage): Use @command{vi} instead of
7463 (Character Set Control): Do not use @code for UTF-8.
7464 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7466 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7468 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7470 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7473 * env.c: Add __rtems__ to if defined.
7474 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7475 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7476 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7477 pragma Convention as required.
7478 * gsocket.h: Make compile in and out of RTS.
7479 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7480 Use g-soccon-rtems.ads.
7481 * g-soccon-rtems.ads, system-rtems.ads: New files.
7483 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7486 * Make-lang.in (gnat1): Add $(GMPLIBS).
7488 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7490 * decl.c (components_to_record): Improve comment.
7492 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7494 * decl.c (components_to_record): Do not reuse the empty union type
7495 if there is a representation clause on the record.
7496 * trans.c (addressable_p): Return true for INTEGER_CST.
7498 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7500 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7501 in pointer arithmetics.
7502 * utils2.c (build_allocator): Likewise.
7504 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7506 * utils.c (build_function_stub): Properly build the call expression.
7508 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7510 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7511 before converting the expression to the type of the object.
7512 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7513 Stabilize constructors for special wrapping types.
7515 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7517 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7518 when necessary. Merge some conditional statements. Update comments.
7519 Rename unchecked_convert_p local variable to suppress_type_conversion.
7520 Do not suppress conversions in the In case.
7521 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7522 into account on non strict-alignment platforms.
7524 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7526 * utils.c (aggregate_type_contains_array_p): New predicate.
7527 (create_field_decl): In a packed record, force byte alignment
7528 for fields without specified position that contain an array.
7530 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7532 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7534 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7537 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7539 (bit_field): New packed boolean type used by cpu_set_t.
7540 (cpu_set_t): New type corresponding to the C type with
7541 the same name. Note that on the Ada side we use a bit
7542 field array for the affinity mask. There is not need
7543 for the C macro for setting individual bit.
7544 (pthread_setaffinity_np): New imported routine.
7546 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7549 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7550 on OpenBSD as is done on other BSD systems.
7553 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7554 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7558 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7562 * init.c (__gnat_error_handler, __gnat_install_handler,
7563 __gnat_init_float): Define for OpenBSD.
7565 * initialize.c (__gnat_initialize): Define for OpenBSD.
7567 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7570 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7571 instead of mktemp() or tmpnam() on NetBSD.
7573 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7575 * trans.c (call_to_gnu): Make the temporary for non-addressable
7576 In parameters passed by reference.
7577 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7579 2007-12-19 Robert Dewar <dewar@adacore.com>
7581 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7582 Add pragma Warnings (Off) for unassigned IN OUT arguments
7584 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7585 (Check_References): Extensive changes to tune up warnings
7586 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7587 (Has_Pragma_Unmodifed_Check_Spec): New function
7588 (Check_References): Implement pragma Unmodified
7589 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7591 * par-prag.adb: Dummy entry for pragma Unmodified
7593 * sem_prag.adb: Implement pragma Unmodified
7595 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7596 (Proc_Next_Component_Or_Discriminant): Fix typo.
7599 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7601 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7602 because the former already takes care of discarding the result.
7603 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7606 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7608 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7610 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7611 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7612 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7613 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7614 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7615 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7616 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7617 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7618 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7619 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7620 (Dynamic_Trampolines_Used): Delete.
7622 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7623 Turn on stack probing mechanism on LynxOS.
7625 2007-12-19 Bob Duff <duff@adacore.com>
7627 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7628 the resulting tail recursion by hand. This prevents running out of
7629 memory on deeply nested concatenations, since Field2 is where the left
7630 operand of concatenations is stored.
7631 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7632 clarify that it can only return OK or Abandon.
7634 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7635 operand by iteration, in order to avoid running out of memory on
7636 deeply-nested concatenations. Use the Parent pointer to get back up the
7638 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7639 Resolve_Op_Concat_Rest): New procedures split out of
7640 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7643 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7644 Traverse_Func, because the former already takes care of discarding the
7647 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7648 because the former already takes care of discarding the result.
7649 (Remove_Warning_Messages): Use appropriate subtype for Status and
7652 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7654 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7655 discriminants forces expansion of the aggregate into assignments.
7656 (Init_Record_Controller): If the type of the aggregate is untagged and
7657 is not inherently limited, the record controller is not limited either.
7659 2007-12-19 Robert Dewar <dewar@adacore.com>
7661 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7662 handling compile time known size of record or array (case of front end
7663 layout active, e.g. in GNAAMP).
7665 2007-12-19 Javier Miranda <miranda@adacore.com>
7667 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7668 that forces the construction of static dispatch tables in case of
7671 2007-12-19 Robert Dewar <dewar@adacore.com>
7673 * exp_ch9.adb (Null_Statements): Moved to library level
7674 (Trivial_Accept_OK): New function
7675 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7676 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7678 2007-12-19 Robert Dewar <dewar@adacore.com>
7680 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7681 in complex case where array is Volatile.
7683 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7685 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7686 properly the Ada2005 rules concerning when the current instance of a
7687 record type is aliased.
7689 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7691 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7693 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7695 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7697 2007-12-19 Vincent Celier <celier@adacore.com>
7699 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7700 package is not known
7702 * prj-attr.ads (Unknown_Package): New constant
7703 Do not crash when an unknown package is in several projects
7705 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7708 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7709 existing package Language_Processing.
7711 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7712 Gary Dismukes <dismukes@adacore.com>
7713 Samuel Tardieu <sam@rfc1149.net>
7715 PR ada/15803, ada/15805
7716 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7717 illegal access subtypes when there is a constrained partial view.
7718 (Check_For_Premature_Usage): New procedure inside
7719 Access_Subprogram_Declaration for checking that an access-to-subprogram
7720 type doesn't reference its own name within any formal parameters or
7721 result type (including within nested anonymous access types).
7722 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7723 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7724 context is an access_to_variable, the expression cannot be an
7727 2007-12-19 Bob Duff <duff@adacore.com>
7729 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7730 (Analyze_Concatenation): Use iteration instead of recursion in order
7731 to avoid running out of stack space for deeply nested concatenations.
7733 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7734 Gary Dismukes <dismukes@adacore.com>
7736 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7737 whose renamed entity is a subprogram that requires overriding.
7738 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7739 issuing an error for premature usage and issue a message that says
7740 'type' rather than 'object'.
7742 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7745 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7746 presence of a statically tagged operand (Present (Static_Tag)) with
7747 test for Indeterm_Ancestor_Call when determining whether to propagate
7748 the static tag to tag-indeterminate operands (which forces dispatching
7750 (Check_Controlling_Formals): Ada2005, access parameters can have
7752 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7753 not insert subprogram in list of primitive operations if already there.
7755 2007-12-19 Tristan Gingold <gingold@adacore.com>
7757 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7760 2007-12-19 Thomas Quinot <quinot@adacore.com>
7762 Part of PR ada/33688
7763 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7764 datagram info on Linux.
7766 2007-12-19 Vincent Celier <celier@adacore.com>
7768 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7769 that the source path name is always found in the dependencies.
7771 2007-12-19 Robert Dewar <dewar@adacore.com>
7773 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7774 Fix name of Wide_Wide_Latin_1/9 file names
7775 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7776 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7777 Add missing documentation for Ada.Command_Line.Response_File
7778 Update list of warning letters for Warnings pragma
7779 Add documentation for pragma Unmodified
7781 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7783 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7785 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7787 * s-vxwork-alpha.ads: Removed, no longer used.
7789 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7791 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7793 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7796 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7797 mlib-tgt-specific.adb.
7799 2007-12-13 Bob Duff <duff@adacore.com>
7801 * trans.c (Attribute_to_gnu): Check for violations of the
7802 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7803 the front end, but is moved here so we can make it more accurate.
7805 2007-12-13 Pascal Obry <obry@adacore.com>
7807 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7808 version is provided for older GNU/Linux distribution not
7809 supporting thread affinity sets.
7811 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7813 (bit_field): New packed boolean type used by cpu_set_t.
7814 (cpu_set_t): New type corresponding to the C type with
7815 the same name. Note that on the Ada side we use a bit
7816 field array for the affinity mask. There is not need
7817 for the C macro for setting individual bit.
7818 (pthread_setaffinity_np): New imported routine.
7820 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7822 (Create_Task): Set the processor affinity mask if information
7825 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7827 2007-12-13 Robert Dewar <dewar@adacore.com>
7829 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7830 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7831 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7832 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7833 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7834 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7835 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7836 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7837 for subprogram pointers.
7839 * g-ctrl_c.adb: New file.
7841 * g-ctrl_c.ads (Install_Handler): New body.
7843 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7844 instead of obsolete function Is_Always_Inlined.
7845 (Freeze_Entity): check for tagged type in imported C subprogram
7846 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7847 (Freeze_Entity): check for convention Ada subprogram pointer in
7848 imported C subprogram.
7849 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7850 bound would be chopped off and go from negative to zero, force
7851 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7852 bound) so that the size computation for the base type will take
7853 negative values into account.
7855 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7856 Bob Duff <duff@adacore.com>
7857 Tristan Gingold <gingold@adacore.com>
7859 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7860 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7861 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7862 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7863 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7864 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7865 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7866 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7867 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7868 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7869 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7870 (Always_Compatible_Rep): New flag to control trampolines globally.
7871 (Dynamic_Trampolines_Used): New flag for implementing the
7872 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7873 and not yet set correctly for some targets).
7875 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7876 Simply indirectly call s-stchop when a task is created.
7879 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7880 appears as an argument (entries A) in an ALI file.
7882 * fe.h (Stack_Check_Limits): Declare new target parameter.
7883 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7885 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7886 This variable is declared in C to be sure not subject to elaboration
7888 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7891 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7892 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7894 * s-stchop.ads: Add comments.
7896 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7897 limit method of stack checking.
7899 * s-stchop-limit.ads: New file.
7901 2007-12-13 Robert Dewar <dewar@adacore.com>
7903 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7904 a-cihama.adb, g-awk.adb,
7905 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7908 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7910 * sem.adb: Update handling of assigned value/unreferenced warnings
7912 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7914 * lib-xref.ads: Improve documentation for k xref type
7917 Update handling of assigned value/unreferenced warnings
7918 (Generate_Reference): Warning for reference to entity for which a
7919 pragma Unreferenced has been given should be unconditional.
7920 If the entity is a discriminal, mark the original
7921 discriminant as referenced.
7923 * sem_warn.ads, sem_warn.adb
7924 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7925 no entities referenced in package
7926 (Check_One_Unit): Don't give message about no entities referenced in
7927 a package if a pragma Unreferenced has appeared.
7928 Handle new warning flag -gnatw.a/-gnatw.A
7929 Update handling of assigned value/unreferenced warnings
7931 * atree.h: Add flags up to Flag247
7932 (Flag231): New macro.
7934 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7936 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7938 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7941 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7942 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7943 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7944 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7947 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7949 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7950 since we only have problems with Windows 95/98, which are not
7952 (__gnat_ttyname): Return the empty string on Nucleus, just as
7955 2007-12-13 Robert Dewar <dewar@adacore.com>
7957 * a-textio.adb, a-textio.ads:
7958 Extensive changes to private part for wide character encoding
7960 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7961 (Look_Ahead): Fix mishandling of encoded sequences
7962 Move declaration of Wch_Con to private part (should not be visible)
7964 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7965 UTF-8. Probably this is never used, but if it is, brackets is
7968 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7969 setting wide character encoding for no main program case and when
7970 encoding is specified using -W?
7971 Initialize stack limit of environment task if stack limit method of
7972 stack checking is enabled.
7973 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7974 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7975 (Get_Main_Unit_Name): New function.
7976 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7977 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7979 * bindusg.adb: Add line for -Wx switch
7981 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7983 Add new useful constant WC_Longest_Sequences
7985 * switch-b.adb: Clean up handling of -Wx switch
7986 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7988 * switch-c.adb: -gnatg activates warning on assertion errors
7989 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7991 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7993 2007-12-13 Robert Dewar <dewar@adacore.com>
7994 Ed Schonberg <schonberg@adacore.com>
7996 * a-ngcoty.adb: New pragma Fast_Math
7998 * opt.adb: New pragma Fast_Math
8001 Add Implemented_By_Entry to the list of pragmas which do not require any
8003 (Favor_Top_Level): New pragma.
8004 New pragma Fast_Math
8006 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
8007 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8008 Expand_Allocator_Expression): Take into account VM_Target
8009 (Expand_Attribute, case 'Identity): Handle properly the case where
8010 the prefix is a task interface.
8011 New pragma Fast_Math
8013 * par.adb (Next_Token_Is): New function
8014 (P_Pragma): Add Skipping parameter
8015 (U_Left_Paren): New procedure
8016 (U_Right_Paren): New procedure
8017 New pragma Fast_Math
8019 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
8021 New pragma Fast_Math
8023 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
8024 Implemented_By_Entry.
8025 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
8026 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
8027 items, since it can apply to more than one overloadable entity. Set
8028 new flag Has_Pragma_Inline_Always for Inline_Always case.
8029 (Analyze_Pragma, case Complex_Representation): Improve error message.
8030 (Analyze_Pragma, case Assert): When assertions are disabled build the
8031 rewritten code with Sloc of expression rather than pragma, so new
8032 warning about failing is not deleted.
8033 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
8034 protected types and update error message to reflect that. Test whether
8035 the protected type is allowed for the pragma (an error is issued if the
8036 type has any entries, or components that do not have preelaborable
8038 New pragma Fast_Math
8039 (Analyze_Pragma, case No_Return): Handle generic instance
8041 * snames.h, snames.ads, snames.adb:
8042 Add new predefined name for interface primitive _Disp_Requeue.
8043 New pragma Fast_Math
8045 * a-tags.ads, a-tags.adb: New calling sequence for
8046 String_To_Wide_[Wide_]String
8047 (Secondary_Tag): New subprogram.
8049 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8051 New calling sequence for String_To_Wide_[Wide_]String
8052 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8053 the use of the secondary stack for image routines.
8055 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8056 calling sequence for String_To_Wide_[Wide_]String
8058 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8060 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8061 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8063 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8064 (P_Formal_Part): Use Skipping parameter in P_Pragma call
8065 to improve error recovery
8067 * par-util.adb (Next_Token_Is): New function
8068 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8070 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8071 semicolon if missing
8072 (P_Pragma): Implement new Skipping parameter
8073 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8074 Fix location of flag for unrecognized pragma message
8076 * par-tchk.adb (U_Left_Paren): New procedure
8077 (U_Right_Paren): New procedure
8079 2007-12-13 Geert Bosch <bosch@adacore.com>
8082 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8083 the second or later Scaled_Divide would omit leading zeroes,
8084 resulting in too few digits produced and a Layout_Error as result.
8085 (Put): Initialize Pos.
8087 2007-12-13 Robert Dewar <dewar@adacore.com>
8089 atree.ads, atree.adb (Flag231..Flag247): New functions
8090 (Set_Flag231..Set_Flag247): New procedures
8091 (Basic_Set_Convention): Rename Set_Convention to be
8092 Basic_Set_Convention
8093 (Nkind_In): New functions
8094 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8096 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8098 of obsolete function Is_Always_Inlined
8099 (Register_Predefined_DT_Entry): Initialize slots of the second
8100 secondary dispatch table.
8101 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8102 (Expand_N_Function_Call): Remove special provision for stack checking.
8104 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8105 Include _Disp_Requeue in the list of predefined operations.
8106 (Find_Interface_ADT): Modified to fulfill the new specification.
8107 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8109 * par-ch4.adb, nlists.ads, nlists.adb:
8110 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8112 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8113 Fix location of flag for unrecognized pragma message
8115 * sem_ch7.adb: Use Nkind_In
8117 2007-12-13 Vincent Celier <celier@adacore.com>
8120 Indicate what flags are used by the Project Manager, gprbuild and
8122 (Opt.Follow_Links_For_Dirs): New flag
8123 (Warn_On_Assertion_Failure): New flag
8124 (Wide_Character_Encoding_Method_Specified): New flag
8125 (Suppress_All_Inlining): New switch set by -fno-inline
8126 (Real_VMS_Target): New flag
8127 New pragma Fast_Math
8129 2007-12-13 Robert Dewar <dewar@adacore.com>
8131 * back_end.adb: Recognize -fno-inline
8133 2007-12-13 Robert Dewar <dewar@adacore.com>
8135 * checks.adb: Fix optimization problem with short-circuited form
8137 2007-12-13 Bob Duff <duff@adacore.com>
8139 * clean.adb (Usage): Add line for -aP
8140 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8141 with a parameter "procedure Usage", instead of passing a pointer to a
8142 procedure. This is to eliminate trampolines (since the Usage procedure
8143 is often nested in a main procedure, and it would be inconvenient to
8146 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8147 to be generic, with a parameter "procedure Callback (...)", instead of
8148 passing a pointer to a procedure. This is to eliminate trampolines
8149 (since the Callback procedure is usually nested).
8151 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
8152 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8153 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8155 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8156 Use the generic Heap_Sort_G instead of Heap_Sort_A.
8158 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8160 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8161 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8162 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8163 (Renamed_In_Spec): New flag
8164 (Has_Pragma_Inline_Always): New flag
8165 Add missing doc for pragma Obsolescent_Warning
8166 Add missing doc for 17 additional unused flags (230-247)
8167 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8168 Alphabetize with clauses.
8169 Separate Is_Thunk and Has_Thunks flags
8170 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8171 (Related_Interface): Renamed to Related_Type.
8172 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8173 (Set_Is_Flag): Restrict the assertion.
8175 2007-12-13 Vincent Celier <celier@adacore.com>
8177 * errout.adb (Output_Source_Line): Do not keep a trailing space after
8178 the source line number if the source line is empty.
8180 2007-12-13 Geert Bosch <bosch@adacore.com>
8182 * eval_fat.adb (Decompose_Int): Handle argument of zero.
8183 (Compose): Remove special casing of zero.
8184 (Exponent): Likewise.
8185 (Fraction): Likewise.
8186 (Machine): Likewise.
8187 (Decompose): Update comment.
8189 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8191 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8192 limited ancestor part, initialize controllers of enclosing record
8193 before expanding ancestor aggregate.
8194 (Gen_Assign): If a component of the aggregate is box-initialized, add
8195 code to call Initialize if the component is controlled, and explicit
8196 assignment of null if the component is an access type.
8198 Handle properly aggregates for limited types that appear in object
8199 declarations when the aggregate contains controlled values such as
8201 When expanding limited aggregates into individual components, do not
8202 call Adjust on controlled components that are limited.
8204 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8206 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8208 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8210 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8211 predefined primitive _Disp_Requeue.
8212 (Make_Predefined_Primitive_Specs): Create the spec for predefined
8213 primitive _Disp_Requeue.
8214 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8215 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8216 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8217 an interface type. In case of limited interfaces we now declare all the
8218 predefined primitives associated with synchronized interfaces as
8220 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8222 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8223 tagged type is an interface type and there is no user-defined equality
8225 Add also bodies of predefined primitives associated with synchronized
8227 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8228 interface types because they are now defined abstract.
8229 Add missing documentation.
8230 (Expand_Record_Controller): Update occurrence of Related_Interface
8232 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8233 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8234 class wide interface object declaration.
8235 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8236 if the access type already has one.
8237 (Expand_N_Object_Declaration): Defend against attempt to validity check
8238 generic types. Noticed for -gnatVcf specified with previous errors.
8240 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8242 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8243 Expand_Allocator_Expression): Take into account VM_Target
8245 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8246 secondary stack when VM_Target /= No_VM
8248 2007-12-13 Javier Miranda <miranda@adacore.com>
8249 Ed Schonberg <schonberg@adacore.com>
8251 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8252 Is_Complation_Unit by Is_Library_Level_Entity in the code
8253 that decides if the static dispatch tables need to be built.
8254 (Wrap_Transient_Declaration): Do not generate a finalization call if
8255 this is a renaming declaration and the renamed object is a component
8256 of a controlled type.
8258 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8260 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8261 In the case where the renamed subprogram is a dereference, call
8262 Force_Evaluation on the prefix.
8264 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8265 Ed Schonberg <schonberg@adacore.com>
8267 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8268 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8269 comment reformatting.
8270 (Set_Privals): Inherit aliased flag from formal. From code reading.
8271 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8272 by copy and initialized from the actual. This includes entry parameters.
8273 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8274 and Ada 2005 models of requeue.
8275 (Null_Statements): Still connsider do-end block null if it contains
8276 Unreferenced and Warnings pragmas.
8277 (Expand_N_Accept_Statement): Do not optimize away null do end if
8278 dispatching policy is other than defaulted.
8279 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8280 dispatching call, manually analyze the delay statement.
8281 (Find_Parameter_Type): Move subprogram to Sem_Util.
8283 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8284 Javier Miranda <miranda@adacore.com>
8286 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8287 _Disp_Requeue occupies dispatch table slot number 15. Move
8288 _Disp_Timed_Select to slot 16.
8289 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8290 generate the spec and body of _Disp_Reqeueue.
8291 (Make_DT): Build and initialize the second dispatch table.
8292 Handle initialization of RC_Offset when the parent
8293 is a private type with variable size components.
8294 (Make_Secondary_DT): Complete documentation. Add support to
8295 initialize the second dispatch table.
8296 (Make_Tags): Generate the tag of the second dispatch table.
8297 (Register_Primitive): Add support to register primitives in the
8298 second dispatch table.
8300 2007-12-13 Pascal Obry <obry@adacore.com>
8302 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8303 Windows. This signal is used by gnatmake to kill child processes for
8306 2007-12-13 Javier Miranda <miranda@adacore.com>
8308 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8309 support for generic dispatching constructor calls in which we need to
8310 locate the tag of a secondary dispatch table associated with an
8311 interface type to properly dispatch the call.
8312 (Expand_N_Attribute_Reference [case Address],
8313 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8314 handling of VM targets.
8316 2007-12-13 Robert Dewar <dewar@adacore.com>
8317 Ed Schonberg <schonberg@adacore.com>
8319 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8322 * ug_words: Add entries for -gnatw.a -gnatw.A
8324 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8325 literal is a subtype with non-static constraints, use the base type of
8326 the context as the base of the string subtype, to prevent type
8328 (Resolve_Actuals): If the actual is an entity name, generate a
8329 reference before the actual is resolved and expanded, to prevent
8330 spurious warnings on formals of enclosing protected operations.
8331 (Analyze_Overloaded_Selected_Component): If type of prefix if
8332 class-wide, use visible components of base type.
8333 (Resolve_Selected_Component): Ditto.
8334 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8335 evaluating to False, and issue warning message.
8337 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8339 2007-12-13 Emmanuel Briot <briot@adacore.com>
8341 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8344 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8346 (Month_Name_To_Number): New subprogram
8348 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8349 letter to upper-case.
8351 2007-12-13 Robert Dewar <dewar@adacore.com>
8352 Ed Schonberg <schonberg@adacore.com>
8354 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8356 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8357 context is a limited view, use non-limited view when available. If the
8358 non-limited view is an unconstrained array, this enforces consistency
8359 requirements in 3.10.2 (27).
8360 (Layout_Type): For an access type whose designated type is a limited
8361 view, examine its declaration to determine if it is an unconstrained
8362 array, and size the access type accordingly.
8363 (Layout_Type): Do not force 32-bits for convention c subprogram
8364 pointers in -gnatdm mode, only if real vms target.
8366 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8367 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8368 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8369 violations of the No_Implicit_Dynamic_Code restriction.
8370 (Resolve_Attribute, case 'Access): If designated type of context is a
8371 limited view, use non-limited view when available. If the non-limited
8372 view is an unconstrained array, this enforces consistency requirements
8374 (Layout_Type): For an access type whose designated type is a limited
8375 view, examine its declaration to determine if it is an unconstrained
8376 array, and size the access type accordingly.
8378 2007-12-13 Vincent Celier <celier@adacore.com>
8380 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8381 object directory of main project does not exist.
8382 On VMS, correctly set then environment variable for the source
8385 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8387 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8388 set to True this procedure will create the value of type REG_EXPAND_SZ.
8389 It was only possible to create REG_SZ values before.
8391 2007-12-13 Robert Dewar <dewar@adacore.com>
8393 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8394 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8395 namet-sp.adb, namet-sp.ads: New files.
8397 * g-speche.adb: Use generic routine in g-spchge
8399 * s-wchcnv.ads, s-wchcnv.adb:
8400 Minor code cleanup (make formal type consistent with spec)
8402 * namet.adb: Update comments.
8404 * par-endh.adb (Evaluate_End_Entry): Use new
8405 Namet.Sp.Is_Bad_Spelling_Of function
8407 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8409 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8410 ancestor is an access type initialized with a box, set its type
8411 explicitly, for use in subsequent expansion.
8412 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8415 2007-12-13 Robert Dewar <dewar@adacore.com>
8417 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8420 2007-12-13 Robert Dewar <dewar@adacore.com>
8422 * inline.adb (Back_End_Cannot_Inline): Use new flag
8423 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8425 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8426 Has_Pragma_Inline_Always instead.
8427 of obsolete function Is_Always_Inlined
8428 (Build_Body_To_Inline): Same change
8429 (Cannot_Inline): Same change
8430 Do not give warning on exception raise in No_Return function
8432 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8433 component has two inconsistent component clauses in the same record
8434 representation clause, favor the message that complains about
8435 duplication rather than inconsistency.
8437 (Record_Representation_Clause): Do not warn on missing component
8438 clauses for inherited components of a type extension.
8439 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8440 an overloadable item if it is a pragma that can apply to multiple
8441 overloadable entities (e.g. Inline) because a pragma cannot be on
8442 more than one chain at a time.
8443 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8444 conversion where one of the operands is Ada.Calendar.Time.
8445 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8446 For now, ignore Component_Size clause on VM targets, as done for
8449 2007-12-13 Emmanuel Briot <briot@adacore.com>
8450 Vincent Celier <celier@adacore.com>
8452 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8454 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8456 (Hash): Move instantiation of System.HTable.Hash from spec to body
8457 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8458 systems, since we do not need to recompute the Name_Id for the canonical
8460 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8461 as a parameter. This parameter is in fact always "ada" in all calls, and
8462 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8463 while loading a project with 40000 files
8465 * prj-attr.adb: Fix name of attribute Dependency_Driver
8466 Change the kind of indexing for attribute Root
8468 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8469 variables already declared, in case constructions.
8471 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8472 Current_Object_Path_File to No_Path.
8474 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8475 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8477 * prj-makr.adb: new parameter Current_Dir
8479 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8480 Ada sources when language is not Ada.
8481 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8482 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8483 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8484 (Locate_Directory): Always resolve links when computing Canonical_Path
8485 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8486 in Source_Files before checking for the presence of a directory
8488 Optimize calls to Name_Find when on case sensitive systems.
8489 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8491 (Prj.Nmsc.Check): new parameter Current_Dir
8492 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8493 cannot be empty and the spec suffix cannot be the same as the body or
8495 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8496 subunit), always consider the longest suffix.
8497 (Check_Configuration): Do not issue an error if there is no compiler
8498 for a language. Just issue a warning and ignore the sources for the
8500 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8502 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8503 (Unit_Exceptions): New hash table
8504 (Check_Naming_Schemes): Check if a file that could be a unit because of
8505 the naming scheme is not in fact a source because there is an exception
8507 (Look_For_Sources): Put the unit exceptions in hash table
8509 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8510 Other_Part to avoid exception when code is compiled with validity
8512 (Get_Sources_From_File): Check that there is no directory information
8514 (Look_For_Sources): Check that there is no directory information in the
8515 list of file names in Source_Files.
8516 (Look_For_Sources): In multi-language mode, do not allow exception file
8517 names that are excluded.
8518 (Excluded_Sources_Htable): New hash table
8519 (Search_Directories.Check_File): New procedure to simplify
8521 (Search_Directories): Do not consider excluded sources
8522 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8524 (Get_Exceptions): Set component Lang_Kind of Source_Data
8525 (Get_Unit_Exceptions): Ditto
8526 (Search_Directories): Ditto
8528 * prj-pars.adb: new parameter Current_Dir
8530 * prj-part.ads, prj-part.adb:
8531 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8532 (Opt.Follow_Links_For_Dirs): New flag
8533 (Project_Path_Name_Of): Cache information returned by this routine as
8534 Locate_Regular_File is a costly routine. The code to output a log
8535 information and the effective call to Locate_Regular_File is now
8536 factorized into a routine (code clean-up).
8537 (Parse, Parse_Single_Project): new parameter Current_Dir
8538 When main project file cannot be found, indicate in the error
8539 message the project path that was used to do the search.
8541 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8542 (Prj.Proc.Process*): new parameter Current_Dir
8544 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8546 2007-12-13 Bob Duff <duff@adacore.com>
8548 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8549 procedure to be called from the back end to check the
8550 No_Implicit_Dynamic_Code restriction.
8552 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8554 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8555 Fixes another case where RTE_Available_Call was ignored instead of being
8559 * rtsfind.ads: Add new entries.
8561 2007-12-13 Robert Dewar <dewar@adacore.com>
8563 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8564 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8566 * scn.adb: Implement BOM recognition
8568 2007-12-13 Thomas Quinot <quinot@adacore.com>
8569 Ed Schonberg <schonberg@adacore.com>
8571 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8572 subprogram body that acts as its own spec may not have a non-private
8573 WITH clause on a private sibling.
8574 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8575 child unit is a renaming, create an implicit with_clause on that
8576 parent, and not on the unit it renames, to prevent visibility errors
8577 in the current unit.
8579 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8581 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8582 renaming declaration, use the Slocs of the formal parameters from the
8583 declaration of the formal subprogram when creating the formal parameter
8584 entities in the renaming declaration.
8585 (Analyze_Formal_Type_Declaration): Change the placement of the error
8586 message concerning illegal known discriminants. It is now posted on the
8587 type rather than on the first discriminant. This change ensures early
8589 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8590 the package body that contains the instance, do not generate an
8591 out-of-place freeze node for the enclosing package.
8592 (Collect_Previous_Instantiations): Ignore internal instantiations
8593 generated for formal packages.
8594 (Validate_Derived_Type_Instance): Add a check that when a formal
8595 derived type is Known_To_Have_Preelab_Init then the actual type must
8596 have preelaborable initialization, and issue an error when this
8597 condition is violated.
8599 2007-12-13 Robert Dewar <dewar@adacore.com>
8601 * s-imenne.adb, s-imenne.ads: New files.
8603 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8604 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8605 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8606 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8607 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8610 2007-12-13 Javier Miranda <miranda@adacore.com>
8611 Ed Schonberg <schonberg@adacore.com>
8613 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8614 generation of spurious error if parent is an interface type; caused
8615 because predefined primitive bodies will be generated later by
8617 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8619 (Derive_Subprograms): Handle derivations of predefined primitives
8620 after all the user-defined primitives to ensure that they are
8621 found in proper order in instantiations.
8622 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8623 of Related_Interface to Related_Type.
8624 (Record_Type_Declaration): Minor reordering of calls to decorate the
8625 Tag component because the entity must have set its Ekind attribute
8626 before setting its Is_Tag attribute.
8627 (Analyze_Subtype_Declaration): In the case of subtypes with
8628 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8630 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8631 Ed Schonberg <schonberg@adacore.com>
8633 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8634 statement to the list of contexts where a selected component with a
8635 concurrent tagged type prefix should yield a primitive operation.
8636 (Find_Primitive_Operation): Handle case of class-wide types.
8637 (Analyze_Overloaded_Selected_Component): If type of prefix is
8638 class-wide, use visible components of base type.
8639 (Resolve_Selected_Component): Ditto.
8640 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8641 formal of a generic subprogram. find candidate interpretations by
8642 scanning the list of generic formal declarations.:
8643 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8644 type from a limited_with_clause, and the full view is available, use it
8645 for subsequent semantic checks.
8646 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8647 (Find_Primitive_Operation): New function.
8648 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8649 only once if several interpretations of the prefix yield an access type.
8650 (Try_Object_Operation): Code and comment cleanup.
8651 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8652 code reformatting. When the type of the prefix is tagged concurrent, a
8653 correct interpretation might be available in the primitive and
8654 class-wide operations of the type.
8656 2007-12-13 Robert Dewar <dewar@adacore.com>
8657 Ed Schonberg <schonberg@adacore.com>
8659 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8660 renaming entry as subprogram using rename-as-body if subprogram spec
8662 (Use_One_Type): The clause is legal on an access type whose designated
8663 type has a limited view.
8664 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8665 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8666 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8667 operation denoted by a selected component.
8668 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8669 it can be an expression, possibly overloaded, that returns a task or
8672 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8673 Gary Dismukes <dismukes@adacore.com>
8675 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8676 requeue statement is dispatching. Do not emit an error when the name is
8677 not an entry and the context is a dispatching select. Add code to
8678 perform subtype conformance between the formals of the current entry
8679 and those of the target interface primitive.
8680 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8681 Timed_Entry_Call): Analyze the triggering statement as the first step of
8682 the processing. If this is a dispatching select, postpone the analysis
8683 of all select statements until the Expander transforms the select. This
8684 approach avoids generating duplicate identifiers after the Expander has
8685 replicated some of the select statements. In case the Expander is
8686 disabled, perform regular analysis.
8687 (Check_Triggering_Statement): New routine.
8688 (Analyze_Requeue): Exclude any interpretations that are not entries when
8689 checking overloaded names in a requeue. Also test type conformance for
8690 matching interpretations rather than requiring subtype conformance at
8691 that point to conform with the RM's resolution rule for requeues.
8693 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8695 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8696 inherited operation is a defaulted tag-indeterminate call, and there is
8697 a statically tagged actual, use the static tag as a controlling actual
8698 for the defaulted actual.
8700 2007-12-13 Geert Bosch <bosch@adacore.com>
8702 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8703 context, so do not call Check_Non_Static_Context.
8705 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8707 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8708 whether formal E is an entity which may have parameters.
8710 2007-12-13 Bob Duff <duff@adacore.com>
8711 Javier Miranda <miranda@adacore.com>
8712 Robert Dewar <dewar@adacore.com>
8714 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8715 (Set_Convention): New procedure to set the Convention flag, and in
8716 addition make sure the Favor_Top_Level flag is kept in sync (all
8717 foreign-language conventions require Favor_Top_Level = True).
8718 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8720 (Collect_Interfaces_Info): Minor update to handle the two secondary
8721 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8722 (Generate_Parent_Ref): Add parameter to specify entity to check
8723 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8724 initialize a component of a type with preelaborable initialization.
8725 This includes the case of a discriminal used in such a context.
8726 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8727 latest Ada 2005 rules about renaming and 'Access of
8728 discriminant-dependent components.
8729 (Check_Nested_Access): Add handling when there are no enclosing
8730 subprograms (e.g. case of a package body).
8731 (Find_Parameter_Type): Factor routine from several other compiler files.
8732 Remove routine from Find_Overridden_Synchronized_Primitive.
8734 2007-12-13 Thomas Quinot <quinot@adacore.com>
8736 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8737 an invalid access to an uninitialized slot in the
8738 Source_File_Index_Table.
8740 2007-12-13 Thomas Quinot <quinot@adacore.com>
8742 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8744 2007-12-13 Bob Duff <duff@adacore.com>
8746 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8747 access-to-subprogram types in this package.
8749 2007-12-13 Olivier Hainque <hainque@adacore.com>
8751 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8752 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8753 Stack_Overlay_Address and document that we are using an internal
8755 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8756 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8757 consistently throughout the various implementation pieces.
8759 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8760 overlay we are using to fill the stack area with patterns.
8761 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8762 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8763 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8765 2007-12-13 Robert Dewar <dewar@adacore.com>
8767 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8769 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8772 (Create_Task): Take into account tasks created by foreign threads.
8773 Code clean up: use constants instead of hard coded values.
8775 2007-12-13 Robert Dewar <dewar@adacore.com>
8777 * styleg.adb (Check_Comment): More liberal rules for comment placement
8779 2007-12-13 Olivier Hainque <hainque@adacore.com>
8781 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8782 of Procedure Value instead of Frame Pointer as the invocation
8783 identifier associated with the instruction pointer in each traceback
8786 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8787 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8788 Pointer as the invocation identifier passed to tbk$symbolize.
8790 * s-traent-vms.ads, s-traent-vms.adb
8791 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8792 Procedure Value instead of Frame Pointer as the invocation identifier
8793 passed to tbk$symbolize.
8795 2007-12-13 Robert Dewar <dewar@adacore.com>
8797 * tbuild.ads, tbuild.adb:
8798 Fix location of flag for unrecognized pragma message
8800 2007-12-13 Robert Dewar <dewar@adacore.com>
8802 * treepr.ads, treepr.adb: (pl): implement use of positive value
8805 2007-12-13 Robert Dewar <dewar@adacore.com>
8807 * xeinfo.adb: Remove warnings
8808 * xnmake.adb: Remove warnings
8809 * xsinfo.adb: Remove warnings
8810 * xtreeprs.adb: Remove warnings
8811 * xsnames.adb: Remove warnings
8813 * a-ngcoar.adb: Fix typo.
8814 * s-interr.adb: Minor reformatting
8815 * env.c: Minor reformatting.
8816 * g-bytswa.adb: Minor reformatting.
8817 * g-rannum.ads: Minor documentation improvements
8818 * s-tasinf-mingw.adb: Minor header fix
8819 * a-clrefi.adb: Minor reformatting
8820 * g-sttsne.ads: Minor documentation improvement
8821 * g-sttsne-locking.ads: Minor documentation improvement
8822 * g-soliop-solaris.ads: Minor documentation improvement
8823 * g-soliop-mingw.ads: Minor documentation improvement
8824 * g-soliop.ads: Minor documentation improvement
8825 * exp_aggr.ads: Minor reformatting
8826 * debug.adb: Add documentation for the gprbuild debug flags
8827 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8828 * exp_pakd.adb: Minor reformatting
8830 * g-altive.ads, g-alleve.adb: Remove assertions.
8831 Add comment about minor differences between targets regarding
8832 floating-point operations.
8834 * g-thread.adb: Remove pragma unreferenced.
8835 * lib.ads: Minor reformatting
8836 * par-ch9.adb: Minor reformatting of error messages
8837 * sem_case.adb: Minor reformatting
8838 * s-fileio.adb: Minor reformattinng
8839 * s-vmexta.ads: Minor typo
8841 Take into account 'Success' value as per new GNAT warning.
8843 2007-12-13 Vincent Celier <celier@adacore.com>
8845 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8848 2007-12-13 Robert Dewar <dewar@adacore.com>
8849 Bob Duff <duff@adacore.com>
8851 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8852 Document that suffixes may be terminations of each others
8853 Add doc for -gnatw.a and -gnatw.A
8854 Document gnatbind -Wx switch
8855 Document BOM recognition
8856 Document pragma Implemented_By_Entry.
8859 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8860 Add doc for pragma Unreferenced suppressing no entities referenced msg
8861 Add documentation of GNAT.Directory_Operations.Iteration
8862 Add documentation of GNAT.Random_Numbers
8863 Add documentation for pragma Shared.
8864 Correct documentation for Bit_Order
8865 Add documentation for the Pool_Address attribute.
8866 Fix and improve documentation of pragma machine_attribute.
8867 New pragma Fast_Math
8868 Document BOM recognition
8870 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8871 Add /Wide_Character_Encoding for binder
8872 Add qualifier for the new gnatpp option --no-separate-loop-then
8874 2007-12-13 Matthew Heaney <heaney@adacore.com>
8876 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8877 which generic formal operations are called for each operation.
8879 2007-12-13 Olivier Hainque <hainque@adacore.com>
8881 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8882 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8884 2007-12-13 Emmanuel Briot <briot@adacore.com>
8886 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8887 Reference_Dir unless we actually need it.
8889 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8890 Tristan Gingold <gingold@adacore.com>
8892 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8895 a-calend-vms.adb: Remove pragma warning off and add pragma
8898 2007-12-13 Robert Dewar <dewar@adacore.com>
8900 * impunit.adb: Add entries for missing units
8902 * Makefile.rtl: Add new run-time units.
8904 * Make-lang.in: Update dependencies.
8906 2007-12-13 Bob Duff <duff@adacore.com>
8908 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8909 types, set Can_Use_Internal_Rep appropriately, based on
8910 Always_Compatible_Rep_On_Target.
8912 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8913 Arnaud Charlet <charlet@adacore.com>
8915 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8916 it to the front end and setting the aamp_target environment variable
8917 to the switch's argument to ensure that gnaampbind and gnaamplink will
8918 take the specified library into account.
8919 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8920 target, since the CIL compiler supports an "object" file (.il files).
8922 2007-12-13 Vincent Celier <celier@adacore.com>
8924 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8925 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8927 2007-12-13 Geert Bosch <bosch@adacore.com>
8929 * s-parame-vxworks.adb:
8930 Update comments to reflect usage of this package by Nucleus.
8932 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8934 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8935 spec would break code.
8937 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8939 * system-vxworks-alpha.ads: Removed.
8941 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8943 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8945 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8948 * sem_ch3.adb (Designates_T): New function.
8949 (Mentions_T): Factor reusable part of the logic into Designates_T.
8950 Consider non-access parameters and access and non-access result.
8951 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8952 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8954 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8956 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8959 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8960 the new implementation of target-specific calls.
8962 2007-12-07 Olivier Hainque <hainque@adacore.com>
8964 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8965 the designated full view, only follow a second level Full_View link
8966 for Non_Limited_Views of from_limited_with references.
8968 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8971 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8972 to be initialized with an access to constant object.
8974 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8975 when an access to constant is used to initialize an access
8979 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8981 2007-12-07 Olivier Hainque <hainque@adacore.com>
8984 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8985 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8986 this is from an alignment clause on the GNAT entity.
8987 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8988 to distinguish the case where we set it from the type's alignment.
8989 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8990 whether this alignment was set from an explicit alignment clause.
8992 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8994 * decl.c (make_packable_type): Revert last change.
8995 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8996 * utils.c (finish_record_type): Retrieve the real name of the type.
8998 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
9000 * trans.c (lvalue_required_p): Take base node directly instead
9001 of its parent. Rename second parameter to 'gnu_type'.
9002 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
9003 <N_Slice>: Likewise.
9004 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
9005 Adjust calls to lvalue_required_p.
9007 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
9010 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
9011 parameters of an entry call.
9013 2007-12-03 Robert Dewar <dewar@adacore.com>
9014 Samuel Tardieu <sam@rfc1149.net>
9017 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
9018 of variables declared in a library-level package.
9020 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
9022 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
9023 of Empty_String'Unchecked_Access.
9025 * Makefile.in: Add support for sh4-linux.
9027 * system-linux-sh4.ads: New file.
9029 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
9032 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
9033 and its argument must not be free()ed.
9035 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
9037 * decl.c (make_packable_type): Retrieve the real name of the type.
9038 (maybe_pad_type): Simplify similar code.
9040 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
9043 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9044 than an identifier is used after "case" in a variant_part.
9047 * par-ch4.adb (Is_Parameterless_Attribute): New map.
9048 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9049 attribute name or not depending on the new map.
9051 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9052 returning a string or a type will not be called with improper
9055 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9057 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9060 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9061 Signal an error when attribute argument is a fixed-point value of
9065 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9066 a derived ordinary fixed point type.
9068 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9069 RM_Size when a Small clause is found.
9071 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
9074 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9075 Pass 'false' for the new allocate_struct_function parameter.
9076 * utils.c (build_function_stub): Likewise.
9078 2007-11-25 Richard Guenther <rguenther@suse.de>
9080 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
9081 (gnat_poplevel): Likewise.
9083 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
9085 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9086 strict alignment, no alignment clause and a known static size, cap
9087 the type alignment to the greatest power of 2 factor of the size.
9088 (gnat_to_gnu_field): If the field has a component clause, is aliased
9089 or of a type with strict alignment, require that its size be equal to
9091 (validate_size): Use the type size as the minimum size for a type with
9094 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
9096 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9097 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9098 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9099 Use 'Access instead of 'Unchecked_Access in second and third
9100 arguments of pthread_sigmask.
9102 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
9104 * decl.c (ceil_alignment): New function.
9105 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9106 (make_packable_type): Likewise.
9108 2007-11-22 Olivier Hainque <hainque@adacore.com>
9110 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9111 to fit in 80 columns.
9113 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
9115 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9116 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9118 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
9121 * misc.c (gnat_adjust_rli): Delete.
9122 (gnat_init): Do not initialize the translation code here.
9123 Do not call set_lang_adjust_rli.
9124 * trans.c (init_code_table): Make static.
9125 (gnat_init_stmt_group): Delete.
9126 (gigi): Initialize the translation code entirely here.
9127 Emit debug info for the common types here instead of...
9128 * utils.c (gnat_init_decl_processing): ...here.
9129 * gigi.h (init_code_table): Delete.
9130 (gnat_init_stmt_group): Likewise.
9132 2007-11-16 Olivier Hainque <hainque@adacore.com>
9134 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9135 retrieving an allocator return value from a super-aligned address from
9137 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9138 expect a super-aligned address for a fat or thin pointer.
9140 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
9142 * trans.c (call_to_gnu): Always set the source location on the call
9143 expression. If the function returns-by-target, also set it on the
9146 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
9148 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
9149 sections of non-supported Interix target.
9151 * s-osinte-interix.ads: Removed.
9153 * i-cstrin.ads (chars_ptr): Make it a C convention type.
9155 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
9157 * a-tasatt.adb: Add a comment at the beginning of the package
9158 explaining why in general 'Unchecked_Access must be used instead
9161 * sem_prag.adb (Process_Convention): Move the test for the
9162 entity on which the Convention pragma applies down to also
9163 forbid pragma Convention on enumeration literals reached
9166 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
9168 * a-tasatt.adb: Revert previous change for this file as it will
9169 generate an error when this package is instantiated from a
9172 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
9174 * a-tasatt.adb: Type Wrapper should be declared in comment instead
9175 of already declared type Node_Access.
9176 Use 'Access instead of 'Unchecked_Access when applicable. Local
9177 lifetime is the one of the package.
9178 (Set_Value): W is allocated on the heap.
9180 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9182 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9184 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9187 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9189 (elaboration code): Timer_Queue lifetime is the one of the
9192 * tracebak.c (i386 alternative): Remove useless comparaison
9193 which is always false; LOWEST_ADDRESS is 0 and is never greater
9194 than an unsigned integer.
9196 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9197 embedded check for "Ada_Version >= Ada_05".
9199 2007-11-07 Olivier Hainque <hainque@adacore.com>
9201 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9202 craft and expand comment.
9204 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
9206 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9208 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
9210 * misc.c (gnat_handle_option): Replace call to abort with
9211 call to gcc_unreachable.
9212 (gnat_init): Likewise.
9213 (gnat_expand_expr): Likewise.
9214 (fp_prec_to_size): Likewise.
9215 (fp_size_to_prec): Likewise.
9217 2007-10-23 Richard Guenther <rguenther@suse.de>
9220 * tracebak.c: #undef abort after including system.h.
9222 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9224 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9225 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9227 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9229 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9231 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9232 Set the protection status of the guard page based on the value of On.
9234 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9236 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9237 (Exit_Task): Pass False to Hide_Yellow_Zone.
9239 2007-10-15 Robert Dewar <dewar@adacore.com>
9241 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9242 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9243 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9244 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9245 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9246 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9247 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9248 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9249 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9250 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9251 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9252 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9253 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9254 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9255 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9256 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9258 Add Unreferenced and Warnings (Off) pragmas for cases of
9259 variables modified calls where they are IN OUT or OUT parameters and
9260 the resulting values are not subsequently referenced. In a few cases,
9261 we also remove redundant code found by the new warnings.
9263 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9264 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9265 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9266 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9267 warning controlled by -gnatw.o that warns on cases of out parameter
9268 values being ignored.
9270 2007-10-15 Geert Bosch <bosch@adacore.com>
9272 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9274 * expect.c: Initial port to arm-mentor-nucleus.
9275 Use kill for __gnat_kill() on VMS.
9277 2007-10-15 Emmanuel Briot <briot@adacore.com>
9279 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9281 (Xref_Record): Change type for Line, since in the case of a reference to
9282 a predefined entity (as happens for array index types), the line is set
9284 Add support for parsing multiple array index types info, or
9285 multiple inherited interfaces info. This information cannot be stored
9286 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9287 and is therefore stored in the list of references instead. It has a
9288 special treatement later on in tools that use this information.
9290 2007-10-15 Tristan Gingold <gingold@adacore.com>
9292 * debug.adb: Document use of -gnatd.a and -gnatd.I
9294 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9296 2007-10-15 Javier Miranda <miranda@adacore.com>
9298 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9299 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9300 care of access to class-wide interface types plus removal of bizarre
9301 conversion of tagged object to access type (reported by Gary
9302 Dismukes). After this patch there is no need to perform any
9303 additional management on these nodes in Expand_Interface_Actuals.
9305 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9306 that handles use of 'Access and 'Unchecked_Access applied to
9307 actuals covering interface types. Such code is now
9308 centralized in Expand_N_Attribute_Reference.
9310 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9312 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9313 of tagged types whose ultimate ancestor is a CPP type.
9314 (Freeze_Array_Type): For a packed array type, generate an initialization
9315 procedure if the type is public, to handle properly a client that
9316 specifies Normalize_Scalars.
9318 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9320 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9321 inside a generic body, retrieve the full view of the entry family
9322 discrete subtype if available.
9324 2007-10-15 Thomas Quinot <quinot@adacore.com>
9326 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9327 attempt to generate stubs for hidden primitive operations.
9329 2007-10-15 Vincent Celier <celier@adacore.com>
9331 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9332 returning None, used when there is no platform specific body for
9335 2007-10-15 Bob Duff <duff@adacore.com>
9337 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9338 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9339 the generic Heap_Sort_G, in order to avoid trampolines.
9341 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9342 Jose Ruiz <ruiz@adacore.com>
9344 * vx_stack_info.c: New file.
9346 * i-forbla-unimplemented.ads: New file.
9348 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9349 for unsupported configurations; use it on VMS targets instead of the
9351 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9352 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9353 used by VxWorks targets to have access to task-specific data and be
9354 able to extract the stack boundaries for stack checking.
9355 Use system-vms-ia64.ads on ivms.
9357 * Make-lang.in: Update dependencies.
9359 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9362 2007-10-15 Vincent Celier <celier@adacore.com>
9364 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9366 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9368 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9370 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9371 the source is unknown.
9373 * prj-ext.adb: Spelling error fix
9375 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9376 95 reserved word in its name.
9377 (Process_Project_Level_Array_Attributes): Process new attribute
9378 Runtime_Library_Dir.
9380 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9381 config project against the user project names.
9383 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9384 not include a dot are always case insensitive.
9385 (Process_Declarative_Items): Ditto
9386 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9389 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9390 True, compare both indexes in lower case.
9392 2007-10-15 Robert Dewar <dewar@adacore.com>
9394 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9396 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9398 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9399 association for an access component, add an association with null as
9400 the expression. Remove testing for array subtypes and the setting in
9401 that case of Ctyp to the array component type, which prevented proper
9402 inclusion of an association for null-initialized arrays. Collapse
9403 condition that tests for array subtypes into just a test of
9404 Is_Partially_Initialized_Type (which already covers arrays anyway).
9406 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9408 * sem_ch12.adb: Minor code reformatting.
9409 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9410 find the parent package which may have been hidden by local
9413 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9415 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9416 flag of derived concurrent types, taking into account the flag setting
9417 on the parent subtype and any new set of discriminants.
9419 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9421 * sem_ch4.adb: Minor code and comment reformatting.
9422 (Analyze_Allocator): When the designated type of an unconstrained
9423 allocator is a record with unknown discriminants or an array with
9424 unknown range bounds, emit a detailed error message depending on the
9425 compilation mode and whether the designated type is limited.
9427 2007-10-15 Tristan Gingold <gingold@adacore.com>
9429 * system-vms-ia64.ads: New file.
9431 * system-vms_64.ads: Minor comment fix.
9433 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9435 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9436 body generated for a function with a controlling result that is a null
9437 extension, discard the generated body in favor of the current explicit
9440 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9442 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9443 examining its original form, to handle properly operator calls that
9444 have been rewritten.
9446 2007-10-15 Olivier Hainque <hainque@adacore.com>
9448 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9449 instead of a procedure value in each traceback entry.
9451 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9452 instead of procedure value to TBK$SYMBOLIZE.
9454 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9456 (TB_Entry_For): Account for the PV/FP renaming.
9458 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9460 (Null_TB_Entry): Account for change of component name.
9461 (PV_For): Rename as FP_For.
9463 2007-10-15 Tristan Gingold <gingold@adacore.com>
9465 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9466 This optimize assignment to over-aligned record.
9468 2007-10-15 Emmanuel Briot <briot@adacore.com>
9470 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9473 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9474 type, for dispatching calls.
9476 2007-10-15 Vincent Celier <celier@adacore.com>
9477 Robert Dewar <dewar@adacore.com>
9479 * gnat_ugn.texi: Add documentation for switches --version and --help
9480 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9481 gnatxref, gnatfind, gnatls, and gnatclean.
9483 Mention attribute Excluded_Source_Dirs
9484 Replace obsolescent attribute Locally_Removed_Files with attribute
9485 Excluded_Source_Files.
9486 Improve documentation of -u (gnatbind)
9487 Document how to do reliable stack checking for the environmental task
9490 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9491 Document attribute Excluded_Source_Files and indicate that attribute
9492 Locally_Removed_Files is obsolescent.
9494 2007-10-15 Thomas Quinot <quinot@adacore.com>
9496 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9499 Update documentation to note that OpenVMS 8.3 or later must be used
9500 to generate g-soccon-vms.ads.
9502 * atree.adb: Add ??? comment
9504 * exp_util.adb: Minor reformatting.
9505 Add ??? comment in Kill_Dead_Code.
9507 2007-10-15 Robert Dewar <dewar@adacore.com>
9509 * errout.ads: Comment clarification
9511 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9512 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9514 * lib.ads: Comment update
9516 * init.c: Minor reformatting.
9518 * sem_attr.adb: Minor formatting
9520 * osint-b.ads: Minor reformatting
9522 * sem_ch9.adb: Implement -gnatd.I switch
9524 * g-comlin.adb: (Start): Fix handling of empty command line.
9526 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9527 even when -rules follows the -cargs section.
9529 2007-10-08 Ollie Wild <aaw@google.com>
9531 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9533 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9535 (gnat_eh_runtime_type): Removed.
9536 (gnat_return_tree): New function.
9538 2007-10-08 Ben Elliston <bje@au.ibm.com>
9542 2007-08-31 Ben Elliston <bje@au.ibm.com>
9544 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9545 when compiling for powerpc64-*-linux.
9546 * system-linux-ppc64.ads: New file.
9548 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9550 Mapped location support
9551 * back_end.adb (Call_Back_End): Pass information about source
9552 files instead of units to gigi.
9553 * gigi.h (struct File_Info_Type): New.
9554 (gigi): Rename and change type of number_units parameter, change
9555 type of file_info_ptr parameter.
9556 * trans.c (number_files): New global variable.
9557 (gigi): Rename and change type of number_units parameter, change
9558 type of file_info_ptr parameter.
9559 If mapped location support is enabled, create the isomorphic mapping
9560 between source files and line maps.
9561 (Sloc_to_locus): If mapped location support is enabled, translate
9562 source location into mapped location.
9563 (annotate_with_node): Rename into set_expr_location_from_node.
9564 Call set_expr_location instead of annotate_with_locus.
9565 (Pragma_to_gnu): Adjust for above change.
9566 (Loop_Statement_to_gnu): Likewise.
9567 (call_to_gnu): Likewise.
9568 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9569 (gnat_to_gnu): Likewise.
9570 (add_stmt_with_node): Likewise.
9571 (add_cleanup): Likewise.
9572 * utils.c (gnat_init_decl_processing): Do not set input_line.
9574 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9576 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9577 (Applicable_Use): Emit a warning when a package tries to use itself.
9578 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9579 is already in use or the package where it is declared is in use or is
9580 declared in the current package.
9581 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9583 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9584 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9585 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9587 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9589 * a-calend-vms.adb, a-calend.adb:
9590 Add a section on leap seconds control along with two entities used to
9591 enable and disable leap seconds support. The array Leap_Second_Times is
9592 now constant and contains hard time values pre-generated. Remove
9593 all elaboration code used to populate the table of leap seconds.
9596 Add entity Leap_Seconds_Support to the list of global run-time variables
9597 along with a comment on its usage and values.
9598 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9599 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9600 or one (enabled) depending on the presence of binder switch "-y".
9601 (Gen_Adainit_C): Add code to generate the declaration of external int
9602 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9603 (enabled) depending on the presence of binder switch "-y".
9605 * init.c: Add __gl_leap_seconds_support to the list of global values
9606 computed by the binder.
9608 2007-09-26 Jerome Guitton <guitton@adacore.com>
9610 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9611 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9612 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9613 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9615 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9617 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9618 function which can be called by the debugger to interrupt the tasks of
9619 an Ada application asynchronously, as needed on VxWorks.
9620 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9622 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9623 renamed from Stop_All_Tasks. Update comments.
9624 (Stop_All_tasks): New function declaration.
9626 2007-09-26 Olivier Hainque <hainque@adacore.com>
9628 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9629 #include <utime.h> and #define GCC_RESOURCE_H before
9630 #include <sys/wait.h>.
9631 Add more protections in __gnat_translate_vms.
9633 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9634 #include <sys/wait.h>.
9636 2007-09-26 Thomas Quinot <quinot@adacore.com>
9637 Sergey Rybin <rybin@adacore.com>
9639 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9641 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9644 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9646 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9649 * sem_dist.ads: Minor comment fix
9651 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9653 2007-09-26 Javier Miranda <miranda@adacore.com>
9654 Eric Botcazou <ebotcazou@adacore.com>
9657 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9658 indirection added to the HT_Link component of the TSD. This is required
9659 to statically allocate the TSD.
9662 Minor reordering of the declarations in the private part. Required to
9663 add a level of indirection to the contents of the TSD component HT_Link.
9664 This is required to statically allocate the TSD.
9666 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9667 Is_Statically_Allocated set from constant objects.
9668 Do not make exported constants created by the compiler volatile.
9669 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9672 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9673 before returning them.
9675 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9676 public part of the package.
9677 (Make_DT): Move HT_Link component out of the TSD record. For this
9678 purpose Make_DT now declares a separate object that stores the
9679 HT_Link value, and initializes the TSD component with the address
9680 of this new object. The addition of this level of indirection is
9681 required to statically allocate the TSD because the TSD cannot
9682 have variable components.
9683 (Expand_Interface_Conversion): Improve the expanded code.
9684 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9686 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9687 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9688 if we are building static dispatch tables then we must not generate
9689 extra code to register the primitive because the dispatch table will
9690 be built at the end of the library package; otherwise we notify that
9691 we cannot build the static dispatch table.
9693 2007-09-26 Robert Dewar <dewar@adacore.com>
9695 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9698 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9699 (Analyze_Record_Representation_Clause): Suppress junk warning for
9700 missing component clause.
9701 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9702 tests for controlled type overlay to composites with controlled
9704 (Analyze_Record_Representation_Clause): Add reference for component name
9706 2007-09-26 Javier Miranda <miranda@adacore.com>
9707 Gary Dismukes <dismukes@adacore.com>
9709 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9710 for thunks associated with interface types.
9712 * einfo.ads: Improve documentatation of Is_Internal
9713 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9714 associated with interface types.
9715 Extensive comment fixes regarding flags that appear in all entities. The
9716 documentation is now consistent for all such flags (there were a number
9717 of errors in the documentation in this regard).
9719 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9721 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9722 of these procedures are passed a function call that already has
9723 build-in-place actuals (testing new flag
9724 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9725 the case where processing continues.
9726 (Expand_Call): If the call is generated from a thunk body then we
9727 propagate the extra actuals associated with the accessibility
9728 level of the access type actuals.
9730 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9731 of each extra formal of a protected operation to reference the
9732 corresponding extra formal of the subprogram denoted by the
9733 operation's Protected_Body_Subprogram.
9735 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9736 N_Function_Call nodes.
9738 2007-09-26 Robert Dewar <dewar@adacore.com>
9740 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9742 * debug.adb: Add d.s flag.
9744 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9746 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9747 debug variable so that it won't be initialized when pragma
9748 Initialize_Scalars is in effect.
9750 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9752 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9753 initialization of a full view. This is moved to
9754 Analyze_Package_Specification.
9756 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9757 preelaborable initialization of a full view in entity loop.
9758 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9759 its child units are use-visible only if they are visible child units.
9761 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9762 whether an expression can be used within a type declaration that
9763 requires preelaborable init.
9764 (Check_Components): Replace inline code that does partial checking for
9765 preelaborable default expressions with call to
9766 Is_Preelaborable_Expression.
9767 (Has_Preelaborable_Initialization): In the case of a generic actual
9768 subtype, (that is, Is_Generic_Actual is True), return the result of
9769 applying Has_Preelaborable_Initialization to the generic actual's base
9772 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9774 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9775 call to Jan_1_Day _Of_Week to optimize its performance.
9776 (Is_Leap): Move the routine to the scope of Week_In_Year.
9777 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9778 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9779 avoids calling Time_Of and Split, thus making it more efficent.
9780 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9782 * g-calend.ads (Week_In_Year): Change comment to reflect new
9785 2007-09-26 Emmanuel Briot <briot@adacore.com>
9787 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9788 Command_Line): New types
9789 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9790 support for defining how switches can be grouped on a command line (as
9791 is the case for -gnatw... for GNAT), and how simple switches can be
9792 used as aliases for more complex switches (-gnatwa is same as
9794 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9795 (Start, Current_*): New subprograms
9796 Added support for parsing an array of strings in addition to the real
9798 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9799 be moved from the body to the private part of the spec.
9800 (*): All subprograms now have an extra parameter with default value to
9801 specify which parser should be used. For backward compatibility, it
9802 defaults to parsing the command line of the application. They were also
9803 modified to properly handle cases where each of the argument does not
9804 start at index 1 (which is always true for Ada.Command_Line, but not
9805 when processing any Argument_List).
9806 (Free): New subprogram
9807 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9808 Argument): New subprograms
9809 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9810 special characters like ':', '=',... are now handled in a single place,
9811 which makes the code more extensible eventually.
9812 (Getopt, Full_Switch): When the switch was returned as part of the
9813 special character '*', make sure it is prepended by the switch character
9814 ('-' in general), so that the application knows whether "foo" or "-foo"
9815 was specified on the command line.
9817 2007-09-26 Florian Villoing <villoing@adacore.com>
9819 * g-dirope.adb (Remove_Dir): In case we are removing directories
9820 recursively, make sure that if an exception is raised during the
9821 processing, the current working directory is reset to its initial
9822 value before propagating the exception.
9824 2007-09-26 Vincent Celier <celier@adacore.com>
9826 * gnatbind.adb: If there are several ALI files specified and there is
9827 a main program to bind, the first ALI is expected to contain the main
9828 subprogram and the names of the binder generated files will be derived
9829 from the first ALI file name.
9830 (Gnatbind): Fix insertion character in invocation of Error_Msg
9832 2007-09-26 Vincent Celier <celier@adacore.com>
9834 * gnatcmd.adb (Check_Files): Do not include sources that have been
9835 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9837 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9839 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9840 information about each of its index types, following the type
9841 reference for its component type.
9843 2007-09-26 Vincent Celier <celier@adacore.com>
9845 * make.adb: (Kill): New procedure (__gnat_kill imported)
9846 (Running_Compile, Outstanding_Compiles): Global variables that
9847 were previously local to procedure Compile_Sources.
9848 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9849 compilation processes.
9851 (Gnatmake): If project files are used, create the mapping of all the
9852 sources, so that the correct paths will be found.
9854 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9856 2007-09-26 Vincent Celier <celier@adacore.com>
9858 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9860 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9861 Replace components Compiler_Min_Options and Binder_Min_Options with
9862 Compiler_Required_Switches and Binder_Required_Switches in record
9864 Remove components Default_Language and Config in Project_Tree_Data,
9867 * prj-attr.adb: New attributes Required_Switches (<language>) in
9868 packages Compiler and Binder.
9870 * prj-nmsc.adb: Major rewrite of the processing of configuration
9871 attributes for gprbuild. No impact on GNAT tools.
9873 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9874 process configuration attributes: this is done in Prj.Nmsc.Check.
9875 (Recursive_Process): Make a full copy of packages inherited from project
9876 being extended, instead of a shallow copy.
9877 (Process_Project_Tree_Phase_1): New procedure
9878 (Process_Project_Tree_Phase_1): New procedure
9879 (Process): Implementation now uses the two new procedures
9881 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9882 from the project config, not the tree config that no longer exists.
9884 2007-09-26 Vincent Celier <celier@adacore.com>
9886 * Make-lang.in: Update dependencies..
9888 2007-09-26 Vincent Celier <celier@adacore.com>
9890 * osint.adb, osint.ads: Minor reformatting
9892 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9894 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9896 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9897 message to cite use of <> in aggregate component associations rather
9898 than wrongly indicating use of limited aggregates.
9900 2007-09-26 Robert Dewar <dewar@adacore.com>
9902 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9905 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9907 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9908 ancestor of the derived type, the operations are inherited from the
9909 primary dispatch table of the parent.
9910 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9911 when the context is an explicit type conversion.
9913 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9915 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9916 rule for qualified expressions properly, to detect improper conversions
9917 and resolve some cases of overloading.
9919 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9921 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9922 proper kind of reference to the primitive operation, for better source
9924 (Valid_Conversion): A tagged conversion is legal if both operands are
9927 2007-09-26 Robert Dewar <dewar@adacore.com>
9929 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9932 2007-09-26 Vincent Celier <celier@adacore.com>
9934 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9936 2007-09-26 Robert Dewar <dewar@adacore.com>
9938 * s-wchstw.adb: provide messages for run time unit exceptions
9940 * a-witeio.adb: Minor reformatting
9942 * exp_ch13.adb: Minor reformatting
9944 2007-09-26 Sergey Rybin <rybin@adacore.com>
9946 * vms_data.ads: Revise gnatmetric qualifiers.
9947 Add qualified for the new gnatbind option '-y'
9949 * gnat_ugn.texi: Revise the gnatmetric section.
9950 Add entry for new gnatbind option '-y'.
9952 * gnat_rm.texi: Minor spelling correction.
9953 Document restriction on overlaying controlled types
9955 2007-09-26 Vincent Celier <celier@adacore.com>
9957 * makegpr.adb (Link_Executables): Do not fail when the root project has
9958 no sources, but is an extending project.
9960 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9962 * trans.c: Fix misplaced #define.
9964 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9966 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9967 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9969 2007-09-21 Olivier Hainque <hainque@adacore.com>
9971 * utils.c (type_for_nonaliased_component_p): Return false for
9972 all AGGREGATE_TYPEs.
9974 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9976 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9977 object covered by 13.3(19) volatile.
9979 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9983 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9984 in the special VIEW_CONVERT_EXPR case.
9986 2007-09-12 Robert Dewar <dewar@adacore.com>
9988 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9990 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9991 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9992 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9993 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9994 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9995 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9996 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9997 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9998 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9999 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
10000 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
10001 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
10002 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
10003 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
10004 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
10005 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
10006 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
10007 pragma Compiler_Unit and adds it to relevant library units.
10009 2007-09-12 Ed Schonberg <schonberg@adacore.com>
10011 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
10012 a box need not correspond to any component.
10014 2007-09-12 Robert Dewar <dewar@adacore.com>
10016 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
10017 the tasking version of the Ada run time when foreign threads are
10018 present and there are no explicit Ada tasks or tasking constructs.
10020 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
10022 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
10024 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
10025 the usage of switch -y.
10027 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
10028 when switch -y is present.
10030 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
10031 leap seconds in Ada.Calendar and its children.
10033 2007-09-12 Jose Ruiz <ruiz@adacore.com>
10035 * a-extiti.ads (Timer): The discriminant is a "not null access
10036 constant" in the Reference Manual.
10037 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
10039 2007-09-12 Robert Dewar <dewar@adacore.com>
10041 * a-swuwha.adb: Remove junk RM header
10043 2007-09-12 Vincent Celier <celier@adacore.com>
10045 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10048 * g-bytswa.ads: Minor reformatting
10050 2007-09-12 Thomas Quinot <quinot@adacore.com>
10052 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
10053 Add new constant Thread_Blocking_IO, always True by default, set False
10054 on a per-runtime basis.
10055 (Need_Netdb_Buffer): New constant.
10057 2007-09-12 Arnaud Charlet <charlet@adacore.com>
10059 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10060 Added renames for corresponding functions in System.Partition_Interface.
10062 2007-09-12 Doug Rupp <rupp@adacore.com>
10064 * Makefile.in: Remove VMS specific System.CRTL packages which are no
10067 * s-crtl-vms64.ads: Removed.
10069 2007-09-12 Olivier Hainque <hainque@adacore.com>
10071 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10072 with discriminant constraints, generalize the code for BIT_FIELDs
10073 to PACKED fields of constant size and propagate DECL_PACKED.
10075 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
10077 * decl.c (array_type_has_nonaliased_component): New predicate.
10078 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10079 set the TYPE_NONALIASED_COMPONENT flag on the type.
10080 <E_Array_Subtype>: Likewise.
10081 * gigi.h (type_for_nonaliased_component_p): Declare.
10082 * utils.c (type_for_nonaliased_component_p): New predicate.
10083 (create_field_decl): Invoke the above predicate to set the
10084 DECL_NONADDRESSABLE_P flag on the field.
10086 2007-09-11 Javier Miranda <miranda@adacore.com>
10088 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10089 in library level record type entities if we are generating statically
10090 allocated dispatch tables.
10092 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10093 importing/exporting the _tag declaration by new code
10094 importing/exporting the dispatch table wrapper. This change allows us
10095 to statically allocate of the TSD.
10096 (Make_DT.Export_DT): New procedure.
10097 (Build_Static_DT): New function.
10098 (Has_DT): New function.
10100 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10101 True_Constant and Current_Value. Required to statically
10102 allocate the dispatch tables.
10103 (Check_Allocator): Make function iterative instead of recursive.
10104 Also return inner allocator node, when present, so that we do not have
10105 to look for that node again in the caller.
10107 2007-09-11 Jan Hubicka <jh@suse.cz>
10109 * misc.c (gnat_expand_body): Kill.
10110 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10112 2007-09-10 Robert Dewar <dewar@adacore.com>
10114 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10115 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10116 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10117 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10118 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10119 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10120 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10121 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10122 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10123 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10124 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10125 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10126 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10127 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10128 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10129 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10130 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10131 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10132 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10133 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10134 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10135 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10136 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10137 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10138 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10139 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10140 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10141 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10142 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10143 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10144 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10145 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10146 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10147 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10148 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10149 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10150 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10151 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10152 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10153 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10154 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10155 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10156 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10157 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10158 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10159 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10160 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10161 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10162 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10163 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10164 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10165 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10166 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10167 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10168 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10169 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10170 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10171 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10172 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10173 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10174 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10175 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10176 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10177 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10178 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10179 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10180 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10181 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10182 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10183 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10184 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10185 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10186 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10187 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10188 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10189 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10190 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10191 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10192 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10193 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10194 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10195 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10196 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10198 2007-09-10 Emmanuel Briot <briot@adacore.com>
10200 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10203 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
10205 * adaint.c (__gnat_translate_vms): new function.
10207 2007-09-10 Gary Dismukes <dismukes@adacore.com>
10208 Thomas Quinot <quinot@adacore.com>
10210 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10211 create an abstract subprogram in the case of 'Input. For 'Output we now
10212 create a real spec/body when the type is abstract, since it can
10213 potentially be called.
10214 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10215 body for 'Output when the type is abstract (only the creation of the
10216 body for 'Input is excluded when the type is abstract).
10217 (Stream_Operation_OK): Add an additional condition in the return
10218 statement, so that False will be returned for TTS_Stream_Input if the
10219 associated tagged type is an abstract extension. Add comments for
10221 (Expand_N_Object_Declaration): For the case of a shared passive
10222 variable, insert init proc call only after the shared variable
10223 procedures have been processed, because the IP call needs to undergo
10224 shared passive variable reference expansion, which requires these
10225 procedures to be available (and elaborated).
10227 2007-09-10 Vincent Celier <celier@adacore.com>
10229 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10230 parameter Runtime_Project.
10232 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10234 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10235 given a box association, the type of the component is discriminated,
10236 and the value of the discriminant is the discriminant of the enclosing
10237 type, retrieve its value from the aggregate itself, where it must have
10240 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10241 to remove other spurious ambiguities on arithmetic operations involving
10242 literals and addresses, on systems where Address is a visible integer
10243 type, when the operator is called in functional notation.
10244 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10245 is legal when the types match, even if the operation is currently
10248 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10250 * sem_ch12.adb (Build_Local_Package): A formal package with no
10251 associations is legal if all formals have defaults. It is not
10252 equivalent to a formal declared with a box.
10254 2007-09-10 Sergey Rybin <rybin@adacore.com>
10256 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10258 2007-09-10 Sergey Rybin <rybin@adacore.com>
10260 * gnat_ugn.texi: Add description of the new '-lratio' option
10261 Update 7.3.1 section about availability of the feature.
10263 2007-09-10 Thomas Quinot <quinot@adacore.com>
10265 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10268 2007-09-10 Olivier Hainque <hainque@adacore.com>
10270 * Makefile.in: (mips-irix section): Activate build of libgmem.
10272 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10274 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10277 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10279 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10280 a debug renaming declaration specially.
10282 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10284 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10285 which a constant renaming is treated as a normal object declaration.
10286 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10287 the N_Indexed_Component case.
10288 <N_Indexed_Component>: Fall through to above case.
10289 <N_Object_Renaming_Declaration>: Return true for all composite types.
10291 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10293 * decl.c (make_packable_type): If the new type has been given BLKmode,
10294 try again to get an integral mode for it.
10296 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10298 Re-apply accidentally reverted change:
10300 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10302 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10303 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10304 and _Unwind_SWord with _sleb128_t.
10306 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10308 * trans.c (convert_with_check): Update call to real_2expN.
10310 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10312 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10313 * utils.c (end_subprog_body): Likewise.
10315 2007-09-03 Nick Clifton <nickc@redhat.com>
10317 * Make-lang.in: Change copyright header to refer to version 3 of
10318 the GNU General Public License and to point readers at the
10319 COPYING3 file and the FSF's license web page.
10320 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10321 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10322 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10323 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10326 2007-08-31 Vincent Celier <celier@adacore.com>
10330 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10331 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10332 (Check_Version_And_Help): New procedure in package Switch to process
10333 switches --version and --help.
10334 Use Check_Version_And_Help in GNAT tools
10337 (Compile_Sources): Make sure that sources that are "excluded" are not
10339 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10340 project file is used.
10341 (Version_Switch): Remove, moved to Switch
10342 (Help_Switch): Remove, moved to Switch
10343 (Display_Version): Remove, moved to Switch
10345 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10346 package Switch to process switches --version and --help.
10347 (Display_Version): New procedure
10349 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10351 2007-08-31 Javier Miranda <miranda@adacore.com>
10353 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10356 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10358 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10359 (Mark_Non_Null): If the node for which we just generated an access check
10360 is a reference to an *in* parameter and the reference appears in the
10361 declarative part of a subprogram body, mark the node as known non null.
10363 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10365 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10366 structure of E_Exception to reflect the new flag.
10367 (Is_Raised, Set_Is_Raised): New inlined routines.
10368 Update the usage of available flag to reflect the addition of Is_Raised.
10369 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10370 (Write_Entity_Flags): Write the status of flag Is_Raised.
10371 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10372 spurious ambiguities when integer literals appear in the context of an
10373 address type that is a visible integer type.
10375 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10376 exceptions never being raised.
10377 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10380 2007-08-31 Javier Miranda <miranda@adacore.com>
10382 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10383 statement when compiling under restriction No_Exceptions_Proparation.
10385 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10387 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10388 initialization aggregate for the type, generate itype references for
10389 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10391 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10393 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10394 library-level package renaming, pass the declaration associated with
10395 the renaming's special debug variable to Qualify_Entity_Names to ensure
10396 that its encoded name is properly qualified.
10398 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10399 occurring in the list of entities to qualify, and do not attempt to
10400 traverse an entity list in that case. Variables associated with
10401 ` library-level package renamings can now occur in the table.
10403 * exp_dbug.ads: Revise documentation of the encoding for renaming
10406 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10408 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10409 access type points to an unconstrained array.
10411 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10413 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10416 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10417 simple redundant qualifications. The check is performed whenever the
10418 expression is a non-overloaded identifier.
10419 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10420 to include loop parameters.
10421 (Valid_Conversion): Avoid generation of spurious error message.
10423 2007-08-31 Bob Duff <duff@adacore.com>
10425 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10426 concatenations of string literals into a single literal, in order to
10427 avoid very deep recursion in the front end, which was causing stack
10430 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10431 string, and the right operand is a string literal (the case of "" &
10432 "..."), optimize by avoiding copying the right operand -- just use the
10433 value of the right operand directly.
10435 * stringt.adb (Store_String_Chars): Optimize by growing the
10436 String_Chars table all at once, rather than appending characters one by
10438 (Write_String_Table_Entry): If the string to be printed is very long,
10439 just print the first few characters, followed by the length. Otherwise,
10440 doing "pn(n)" in the debugger can take an extremely long time.
10442 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10443 Store_String_Char with Store_String_Chars.
10445 2007-08-31 Vincent Celier <celier@adacore.com>
10447 * prj-attr.adb: Add new attribute Excluded_Source_Files
10449 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10450 Locally_Removed_Files.
10452 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10454 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10456 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10457 clauses of subunits, ignore limited_with_clauses that are illegal and
10458 have not been fully analyzed.
10460 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10462 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10463 flag, for effiency. It is called when analyzing arithmetic operators
10464 and also for actuals in calls that are universal_integers. The flag is
10465 set for the predefined type address, and for any type or subtype
10468 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10469 Universal_Integer, when the formal is a descendent of address and the
10470 call appears in user code.
10471 (Analyze_Selected_Component): if the prefix is a private extension, the
10472 tag component is visible.
10474 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10477 2007-08-31 Robert Dewar <dewar@adacore.com>
10479 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10480 sensitive file name systems to avoid unexpected mismatch in Vista.
10482 2007-08-31 Vincent Celier <celier@adacore.com>
10484 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10486 2007-08-31 Vincent Celier <celier@adacore.com>
10488 * symbols-vms.adb (Initialize): Read symbol files with continuation
10490 (Finalize): If symbol is long, split the line
10492 2007-08-31 Vincent Celier <celier@adacore.com>
10494 * fmap.ads: Minor comment updates
10496 2007-08-31 GNAT Script <nobody@adacore.com>
10498 * Make-lang.in: Makefile automatically updated
10500 2007-08-31 Bob Duff <duff@adacore.com>
10502 * sinfo.ads: Minor comment fix.
10504 2007-08-31 Thomas Quinot <quinot@adacore.com>
10506 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10507 with implementation.
10508 Documentation cleanup only.
10510 2007-08-31 Sergey Rybin <rybin@adacore.com>
10512 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10513 gnatpp '--separate-stmt-name' option.
10514 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10517 * gnat_ugn.texi: Add description for the new gnatpp
10518 '--separate-stmt-name' and '--use-on-new-line' options.
10520 2007-08-31 Ben Elliston <bje@au.ibm.com>
10522 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10523 when compiling for powerpc64-*-linux.
10524 * system-linux-ppc64.ads: New file.
10526 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10528 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10531 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10533 * misc.c (gnat_type_max_size): Constify.
10535 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10537 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10538 associated with Standard_Debug_Renaming_Type, to be used as the type of
10539 the special variables whose names provide debugger encodings for
10540 renaming declarations.
10542 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10543 (Set_Debug_Renaming_Link): Change to set Node25.
10544 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10545 (Write_Field25_Name): Add case for E_Variable to output
10546 "Debug_Renaming_Link".
10547 (Write_Field23_Name): Correct the output string for "Limited_View".
10549 * exp_dbug.adb: Add with and use of Tbuild.
10550 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10551 and literal with creation of a variable of type
10552 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10553 and the entity of the renaming declaration.
10554 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10555 part of the name of a variable that has a Debug_Renaming_Link.
10557 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10558 special type to be associated with variables that provide debugger
10559 encodings for renaming declarations.
10561 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10562 Ed Schonberg <schonberg@adacore.com>
10563 Javier Miranda <miranda@adacore.com>
10565 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10566 ancestor part given by an aggregate to test for an unchecked conversion,
10567 since this can occur in some cases when the ancestor part is a function
10568 call, and we don't want to fall into the recursive call to this
10569 procedure in that case.
10571 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10572 stream attributes on limited types to account for user-specified
10573 attributes as well as whether Input (resp. Output) becomes available
10574 due to Read (resp. Write) being available for the type. Change Boolean
10575 variable to the more accurate name
10576 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10577 double-"not" predicate at beginning of return statement to more
10578 understandable form.
10580 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10581 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10582 in a block statement and use that as the first statement of the
10583 expanded return rather than incorrectly using the handled sequence as
10584 the first statement.
10586 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10587 operation, generate an explicit freeze node for it rather than
10588 generating extra formals, to ensure that gigi has the proper order of
10589 elaboration for anonymous subtypes in the signature of the subprograms.
10590 (Build_In_Place_Formal): Move assertion to beginning of loop.
10591 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10592 applied to a function call (occurs for some cases of 'Input).
10593 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10594 applied to a function call (occurs for some cases of 'Input).
10596 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10597 2005, generate an extended return statement enclosing the result object
10600 * freeze.adb (Freeze_Record_Type): Extend the current management of
10601 components that are access type with an allocator as default value: add
10602 missing support to the use of qualified expressions of the
10603 allocator (which also cause freezing of the designated type!)
10604 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10605 dispatching operation, since extra formals may be needed by calls to
10606 build-in-place functions (such as stream 'Input).
10608 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10609 formals for 'Constrained and accessibility level in the case of a
10610 predefined dispatching operation.
10612 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10613 point, no need to find the parent node.
10615 2007-08-16 Javier Miranda <miranda@adacore.com>
10617 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10618 and entry barriers.
10620 2007-08-16 Javier Miranda <miranda@adacore.com>
10622 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10623 is not really required and can introduce regression with the debugger.
10624 The original problem is fixed with the patch written for checks.adb.
10626 2007-08-16 Thomas Quinot <quinot@adacore.com>
10628 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10629 Range_Check on Allocated_Table.
10631 2007-08-16 Vincent Celier <celier@adacore.com>
10633 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10634 Including_Non_Switch set to False.
10635 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10636 Including_Non_Switch set to False.
10638 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10639 parameter Including_Non_Switch, defaulted to True. When
10640 Including_Non_Switch is False, options that are not switches and
10641 appear as relative path are not converted to absolute paths.
10643 2007-08-16 Nicolas Roche <roche@adacore.com>
10645 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10648 * Make-lang.in: Update dependencies
10650 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10652 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10653 currently inspected is a selected component, retrieve the entity of
10655 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10656 from the immediate ancestor of Main_Unit_Entity.
10657 (Install_Limited_Withed_Unit): Do not install the limited view of
10658 package P if P is reachable through an ancestor chain from package C
10659 and C also has a with clause for P in its body.
10660 (Has_Limited_With_Clause): New routine.
10661 (Has_With_Clause): New routine.
10663 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10665 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10666 generic for an enclosing instance is a global reference, even though
10667 its scope is the enclosing instance.
10669 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10670 Javier Miranda <miranda@adacore.com>
10672 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10673 initialize a limited object.
10674 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10676 Make sure Has_Complex_Representation is inherited by derived type.
10678 2007-08-16 Robert Dewar <dewar@adacore.com>
10680 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10683 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10685 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10686 implements an operation inherited from a progenitor interface, verify
10687 that they are subtype-conformant.
10689 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10690 Bob Duff <duff@adacore.com>
10691 Nicolas Setton <setton@adacore.com>
10693 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10694 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10695 the statement which is being resolved comes from a predefined library
10696 unit, all non-predefined library interpretations are skipped.
10697 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10698 but the "&" is user defined, give an error, because the folding would
10701 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10702 the parser has folded a long sequence of concatenations of string
10705 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10706 and "JMP_BUF" variables as artificial.
10707 (N_String_Literal): Do not use alloca for very long string literals. Use
10708 xmalloc/free instead. Otherwise the stack might overflow.
10710 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10713 2007-08-16 Vincent Celier <celier@adacore.com>
10715 * vms_conv.adb (Process_Argument): Ensure that project related options
10716 are not put in the -cargs section when using GNAT COMPILE.
10718 2007-08-16 Robert Dewar <dewar@adacore.com>
10720 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10722 2007-08-16 Thomas Quinot <quinot@adacore.com>
10724 * a-tags.adb: Minor reformatting.
10726 2007-08-16 Bob Duff <duff@adacore.com>
10728 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10730 2007-08-14 Thomas Quinot <quinot@adacore.com>
10732 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10733 s-osinte-interix.ads, system-interix.ads: Removed.
10735 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10737 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10738 calls to Check_Within_Time_Bounds.
10739 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10740 (Difference): Account for possible rounding of the resulting difference
10742 2007-08-14 Robert Dewar <dewar@adacore.com>
10744 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10745 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10746 s-osinte-solaris.adb, s-osinte-solaris.ads,
10747 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10749 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10750 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10752 2007-08-14 Robert Dewar <dewar@adacore.com>
10753 Ed Schonberg <schonberg@adacore.com>
10755 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10756 Suppress unmodified in-out parameter warning in some cases
10757 This patch is a also fairly significant change to the way suppressible
10758 checks are handled.
10760 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10761 needed for access to concurrent record types generated by the expander.
10762 (Generate_Range_Check): When generating a temporary to capture the
10763 value of a conversion that requires a range check, set the type of the
10764 temporary before rewriting the node, so that the type is always
10765 properly placed for back-end use.
10766 (Apply_Float_Conversion_Check): Handle case where the conversion is
10768 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10769 for a protected type in order to examine its discriminants.
10771 2007-08-14 Robert Dewar <dewar@adacore.com>
10772 Gary Dismukes <dismukes@adacore.com>
10773 Ed Schonberg <schonberg@adacore.com>
10774 Thomas Quinot <quinot@adacore.com>
10776 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10777 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10778 tests optimized out.
10780 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10781 (Get_Allocator_Final_List): For the case of an anonymous access type
10782 that has a specified Associated_Final_Chain, do not go up to the
10784 (Expand_N_Type_Conversion): Test for the case of renamings of access
10785 parameters when deciding whether to apply a run-time accessibility
10787 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10788 aggregate code before allocator, and ahead of declaration for
10789 temporary, to prevent access before elaboration when the allocator is
10790 an actual for an access parameter.
10791 (Expand_N_Type_Conversion): On an access type conversion involving an
10792 access parameter, do not apply an accessibility check when the
10793 operand's original node was an attribute other than 'Access. We now
10794 create access conversions for the expansion of 'Unchecked_Access and
10795 'Unrestricted_Access in certain cases and clearly accessibility should
10796 not be checked for those.
10798 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10799 includes a type conversion of a packed component that has been expanded,
10800 recover the original expression for the object, and use this expression
10801 in the post-call assignment statement, so that the assignment is made
10802 to the object and not to a back-end temporary.
10803 (Freeze_Subprogram): In case of primitives of tagged types not defined
10804 at the library level force generation of code to register the primitive
10805 in the dispatch table. In addition some code reorganization has been
10806 done to leave the implementation clear.
10807 (Expand_Call): When expanding an inherited implicit conversion,
10808 preserve the type of the inherited function after the intrinsic
10809 operation has been expanded.
10811 * exp_ch2.ads, exp_ch2.adb
10812 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10813 of an entry formal appearing in an assignment statement does not assign
10815 (Expand_Current_Value): Instead of calling a routine to determine
10816 whether the prefix of an attribute reference should be optimized or
10817 not, prevent the optimization of such prefixes all together.
10819 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10820 component whose prefix is known to be of an access type is an implicit
10821 dereference and does not assign to the prefix.
10823 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10824 Robert Dewar <dewar@adacore.com>
10826 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10827 itype is visited, make an entry into table to link associated node and
10829 Add comments and correct harmless error in Build_NCT_Hash_Tables
10830 (Array_Aggr_Subtype): Associate each itype created for an index type to
10831 the corresponding range construct, and not to the aggregate itself. to
10832 maintain a one-to-one correspondence between itype and its associated
10833 node, to prevent errors when complex expression is copied.
10834 Fix mishandling of multiple levels of parens
10836 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10837 treatment of limited views uniform for all visible declarations in a
10838 limited_withed package.
10839 (New_Copy_Tree): If hash table is being used and itype is visited,
10840 make an entry into table to link associated node and new itype.
10841 (Resolve_Record_Aggregate): Do not add an others box association for a
10842 discriminated record component that has only discriminants, when there
10843 is a box association for the component itself.
10845 * par-ch4.adb: Fix mishandling of multiple levels of parens
10847 2007-08-14 Robert Dewar <dewar@adacore.com>
10849 * comperr.adb: Fix problem with suppressing warning messages from gigi
10851 * erroutc.ads, erroutc.adb, errout.ads,
10852 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10853 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10854 possible trailing spaces.
10855 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10856 Fix problem with suppressing warning messages from back end
10857 Improve handling of deleted warnings
10860 Fix problem with suppressing warning messages from back end
10861 Handle setting of Static_Dispatch_Tables flag.
10864 Fix problem with suppressing warning messages from back end
10866 * exp_intr.adb: Improve handling of deleted warnings
10868 2007-08-14 Robert Dewar <dewar@adacore.com>
10870 * debug.adb: Improve -gnatdI to cover all cases of serialization
10871 Add documentation of dZ, d.t
10873 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10875 (Sprint_Node_Actual): Generate new output associated with implicit
10876 importation and implicit exportation of object declarations.
10878 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10879 Robert Dewar <dewar@adacore.com>
10880 Javier Miranda <miranda@adacore.com>
10881 Gary Dismukes <dismukes@adacore.com>
10883 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10884 to make treatment of limited views uniform for all visible declarations
10885 in a limited_withed package.
10886 Improve warnings for in out parameters
10887 (Set_Related_Interaface/Related_Interface): Allow the use of this
10888 attribute with constants.
10889 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10890 Warn on duplicate pragma Preelaborable_Initialialization
10892 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10893 generation of a freezing node to ensure proper management of null
10894 excluding access types in the backend.
10895 (Create_Extra_Formals): Test base type of the formal when checking for
10896 the need to add an extra accessibility-level formal. Pass the entity E
10897 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10898 originally being done in a couple of cases), to ensure that the
10899 Extra_Formals list gets set on the entity E when the first entity is
10901 (Conforming_Types): Add missing calls to Base_Type to the code that
10902 handles anonymous access types. This is required to handle the
10903 general case because Process_Formals builds internal subtype entities
10904 to handle null-excluding access types.
10905 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10906 functions that need it, even when not marked Requires_Overriding.
10907 Improve warnings for in out parameters
10908 (Analyze_Function_Return): Warn for disallowed null return
10909 Warn on return from procedure with unset out parameter
10910 Ensure consistent use of # in error messages
10911 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10912 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10913 the implicit conversion of the expression done for anonymous access
10914 types. This is required to generate the code of the null excluding
10915 check (if required).
10917 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10918 A formal parameter is never publicly referenceable outside of its body.
10919 (Check_References): For an unreferenced formal parameter in an accept
10920 statement, use the same warning circuitry as for subprogram formal
10922 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10923 Output_Unreferenced_Messages, containing the part of that routine that
10924 is now reused for entry formals as described above.
10925 (Goto_Spec_Entity): New function
10926 (Check_References): Do not give IN OUT warning for dispatching operation
10927 Improve warnings for in out parameters
10928 (Test_Ref): Check that the entity is not undefinite before calling
10929 Scope_Within, in order to avoid infinite loops.
10930 Warn on return from procedure with unset out parameter
10931 Improved warnings for unused variables
10933 2007-08-14 Robert Dewar <dewar@adacore.com>
10934 Javier Miranda <miranda@adacore.com>
10935 Gary Dismukes <dismukes@adacore.com>
10937 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10938 (Expand_N_Attribute_Reference): Further unify the handling of the
10939 three forms of access attributes, using common code now for all three
10940 cases. Add a test for the case of applying an access attribute to
10941 an explicit dereference when the context is an access-to-interface
10942 type. In that case we need to apply the conversion to the prefix
10943 of the explicit dereference rather than the prefix of the attribute.
10944 (Attribute_Version, UET_Address): Set entity as internal to ensure
10945 proper dg output of implicit importation.
10946 (Expand_Access_To_Type): Removed.
10947 (Expand_N_Attribute_Reference): Merge the code from the three cases
10948 of access attributes, since the processing is largely identical for
10949 these cases. The substantive fix here is to process the case of a
10950 type name prefix (current instance case) before handling the case
10951 of interface prefixes.
10953 2007-08-14 Thomas Quinot <quinot@adacore.com>
10954 Ed Schonberg <schonberg@adacore.com>
10955 Javier Miranda <miranda@adacore.com>
10956 Robert Dewar <dewar@adacore.com>
10958 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10959 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10960 type that is an anonymous access to controlled object, establish
10961 an associated finalization chain to avoid corrupting the global
10962 finalization list when a dynamically allocated object designated
10963 by such a component is deallocated.
10964 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10965 functions that need it, even when not marked Requires_Overriding.
10966 (Initialize_Tag): Replace call to has_discriminants by call to
10967 Is_Variable_Size_Record in the circuitry that handles the
10968 initialization of secondary tags.
10969 (Is_Variable_Size_Record): New implementation.
10970 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10971 Suppress_Initialization pragma for a derived type.
10972 (Is_Variable_Size_Record): New subprogram.
10973 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10974 initial version of this routine and also fixes problems causing
10975 incomplete initialization of the table of interfaces.
10976 (Build_Init_Procedure): Improve the generation of code to initialize the
10977 the tag components of secondary dispatch tables.
10978 (Init_Secondary_Tags): New implementation that simplifies the previous
10979 version of this routine.
10980 (Make_DT): Add parameter to indicate when type has been frozen by an
10981 object declaration, for diagnostic purposes.
10982 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10983 diagnose attemps to freeze a subprogram when some untagged type of its
10984 profile is a private type whose full view has not been analyzed yet.
10985 (Freeze_Array_Type): Generate init proc for packed array if either
10986 Initialize or Normalize_Scalars is set.
10987 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10988 constructing the new profile, copy the null_exclusion indicator for each
10989 parameter, to ensure full conformance of the new body with the spec.
10991 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10992 Create wrappers for constructor functions that need it, even when not
10993 marked Requires_Overriding.
10994 (Covers): Handle properly designated types of anonymous access types,
10995 whose non-limited views are themselves incomplete types.
10996 (Add_Entry): Use an entity to store the abstract operation which hides
10998 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10999 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
11000 initialization aggregate.
11001 (Function_Interp_May_Be_Hidden): Rename to
11002 Function_Interp_Has_Abstract_Op.
11003 (Has_Compatible_Type): Remove machinery that skips interpretations if
11004 they are labeled as potentially hidden by an abstract operator.
11005 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
11006 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
11007 (Write_Overloads): Output the abstract operator if present.
11008 (Add_Entry): Before inserting a new entry into the interpretation table
11009 for a node, determine whether the entry will be disabled by an abstract
11011 (Binary_Op_Interp_May_Be_Hidden): New routine.
11012 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
11014 (Function_Interp_May_Be_Hidden): New routine.
11015 (Has_Compatible_Type): Do not consider interpretations hidden by
11016 abstract operators when trying to determine whether two types are
11018 (Has_Hidden_Interp): New routine.
11019 (Set_May_Be_Hidden_Interp): New routine.
11020 (Write_Overloads): Write the status of flag May_Be_Hidden.
11022 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11023 Javier Miranda <miranda@adacore.com>
11025 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
11026 types declared in the declarative part of a nested package body or in
11027 the proper body of a stub.
11028 (Set_All_DT_Position): Add missing check to avoid wrong assignation
11029 of the same dispatch table slot to renamed primitives.
11030 (Make_Select_Specific_Data_Table): Handle private types.
11031 (Tagged_Kind): Handle private types.
11032 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
11033 output of implicit importation and exportation.
11034 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
11035 first formal of the thunk is always associated with the controlling
11036 type. In addition perform the following code cleanup: remove formal
11037 Thunk_Alias which is no longer required, cleanup evaluation of the
11038 the controlling type, and update the documentation.
11039 Replace occurrence of Default_Prim_Op_Count by
11040 Max_Predef_Prims. Addition of compile-time check to verify
11041 that the value of Max_Predef_Prims is correct.
11042 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11043 (Make_DT): Add parameter to indicate when type has been frozen by an
11044 object declaration, for diagnostic purposes.
11045 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11046 construction of statically allocated dispatch tables.
11047 (Make_DT): In case of library-level tagged types export the declaration
11048 of the primary tag. Remove generation of tags (now done by Make_Tags).
11049 Additional modifications to handle non-static generation of dispatch
11050 tables. Take care of building tables for asynchronous interface types
11051 (Make_Tags): New subprogram that generates the entities associated with
11052 the primary and secondary tags of Typ and fills the contents of Access_
11053 Disp_Table. In case of library-level tagged types imports the forward
11054 declaration of the primary tag that will be declared later by Make_DT.
11055 (Expand_Interface_Conversion): In case of access types to interfaces
11056 replace an itype declaration by an explicit type declaration to avoid
11057 problems associated with the scope of such itype in transient blocks.
11059 2007-08-14 Robert Dewar <dewar@adacore.com>
11060 Ed Schonberg <schonberg@adacore.com>
11061 Javier Miranda <miranda@adacore.com>
11063 * exp_util.ads, exp_util.adb:
11064 This patch replaces a number of occurrences of explicit tests for N_Null
11065 with calls to Known_Null. This improves tracking of null values, since
11066 Known_Null also catches null constants, and variables currently known to
11067 be null, so we get better tracking.
11068 (Ensure_Defined): create an itype reference only in the scope of the
11070 (Side_Effect_Free): A selected component of an access type that
11071 denotes a component with a rep clause must be treated as not
11072 side-effect free, because if it is part of a linked structure its
11073 value may be affected by a renaming.
11074 (Expand_Subtype_From_Expr): For limited objects initialized with build
11075 in place function calls, do nothing; otherwise we prematurely introduce
11076 an N_Reference node in the expression initializing the object, which
11077 breaks the circuitry that detects and adds the additional arguments to
11078 the called function. Bug found working in the new patch for statically
11079 allocated dispatch tables.
11080 (Is_Library_Level_Tagged_Type): New subprogram.
11081 (Remove_Side_Effects): If the expression of an elementary type is an
11082 operator treat as a function call.
11083 (Make_Literal_Range): If the index type of the array is not integer, use
11084 attributes properly to compute the constraint on the resulting aggregate
11087 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11088 class-wide type whose base type is an incomplete private type, leave
11089 class-wide type unfrozen so that freeze nodes can be generated
11090 properly at a later point.
11091 (Freeze_Entity, array case): Handle case of pragma Pack and component
11092 size attributre clause for same array.
11094 2007-08-14 Vincent Celier <celier@adacore.com>
11096 * prj.ads, prj.adb: Update Project Manager to new attribute names for
11098 Allow all valid declarations in configuration project files
11099 (Reset): Initialize all tables and hash tables in the project tree data
11100 Major update of the Project Manager and of the project aware tools,
11101 including gprmake, so that the same sources in the GNAT repository
11102 can be used by gprbuild.
11103 (Slash_Id): Change type to be Path_Name_Type
11104 (Slash): Return a Path_Name_Type instead of a File_Name_Type
11106 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11108 Update Project Manager to new attribute names for ghprbuild
11109 Allow all valid declarations in configuration project files
11110 Major update of the Project Manager and of the project aware tools,
11111 including gprmake, so that the same sources in the GNAT repository
11112 can be used by gprbuild.
11115 Major update of the Project Manager and of the project aware tools,
11116 including gprmake, so that the same sources in the GNAT repository
11117 can be used by gprbuild.
11119 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11120 insensitive flag for attributes with optional index.
11121 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11122 array attribute, put the index in lower case.
11123 Update Project Manager to new attribute names for ghprbuild
11124 Allow all valid declarations in configuration project files
11125 Major update of the Project Manager and of the project aware tools,
11126 including gprmake, so that the same sources in the GNAT repository
11127 can be used by gprbuild.
11129 * prj-env.ads, prj-env.adb:
11130 Major update of the Project Manager and of the project aware tools,
11131 including gprmake, so that the same sources in the GNAT repository
11132 can be used by gprbuild.
11133 (Get_Reference): Change type of parameter Path to Path_Name_Type
11135 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11136 removing '-' from the path to start with the first character of the
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 Major update of the Project Manager and of the project aware tools,
11142 including gprmake, so that the same sources in the GNAT repository
11143 can be used by gprbuild.
11145 * prj-nmsc.ads, prj-nmsc.adb:
11146 Update Project Manager to new attribute names for ghprbuild
11147 Allow all valid declarations in configuration project files
11148 (Search_Directories): Detect subunits that are specified with an
11149 attribute Body in package Naming. Do not replace a source/unit in the
11150 same project when the order of the source dirs are known. Detect
11151 duplicate sources/units in the same project when the order of the
11152 source dirs are not known.
11153 (Check_Ada_Name): Allow all identifiers that are not reserved words
11155 Major update of the Project Manager and of the project aware tools,
11156 including gprmake, so that the same sources in the GNAT repository
11157 can be used by gprbuild.
11158 (Look_For_Sources): If the list of sources is empty, set the object
11159 directory of non extending project to nil.
11160 Change type of path name variables to be Path_Name_Type
11161 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11162 otherwise creating missing directories will fail.
11164 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
11165 prj-part.ads, prj-part.adb:
11166 Major update of the Project Manager and of the project aware tools,
11167 including gprmake, so that the same sources in the GNAT repository
11168 can be used by gprbuild.
11170 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11171 insensitive flag for attributes with optional index.
11172 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11173 array attribute, put the index in lower case.
11174 (Parse_Variable_Reference): Allow the current project name to be used in
11175 the prefix of an attribute reference.
11177 * prj-util.ads, prj-util.adb
11178 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11179 defaulted to False. When True, always check against indexes in lower
11182 * snames.ads, snames.h, snames.adb:
11183 Update Project Manager to new attribute names for gprbuild
11184 Allow all valid declarations in configuration project files
11186 2007-08-14 Robert Dewar <dewar@adacore.com>
11187 Ed Schonberg <schonberg@adacore.com>
11189 * opt.ads: Warning for non-local exception propagation now off by
11191 New switch -gnatI to disable representation clauses
11192 Implement new pragma Implicit_Packing
11195 Warning for non-local exception propagation now off by default
11196 Add warning for unchecked conversion of pointers wi different
11198 New switch -gnatI to disable representation clauses
11200 * usage.adb: new switch -gnatyS
11202 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11203 note that aggregates of anonymous array types are not flagged.
11204 -gnatwc now includes membership tests optimized away
11205 -gnatw.x warnings are now off by default
11206 Added conditional compilation Appendix
11207 Add documentation of -gnatI
11208 Add documentation for new -gnatyS style check
11209 Update documentation about SAL and auto-init on Windows.
11212 Add documentation for pragma Check_Name and 'Enabled attribute
11213 Document that Eliminate on dispatching operation is ignored
11214 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11215 Document pragma Main
11216 Document pragma Implicit_Packing
11218 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11219 different conventions
11220 New switch -gnatI to disable representation clauses
11222 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11223 recognized, report the invalid characters including "-gnat" instead of
11224 just the first character in the switch.
11225 New switch -gnatI to disable representation clauses
11226 Set Warn_On_Object_Renames_Function true for -gnatg
11228 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11229 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11230 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11231 to switch -aP (add directory to project search dir).
11233 * par-prag.adb: Implement new pragma Implicit_Packing
11235 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11236 type as having a non-standard representation, to force expansion on
11237 conversion to related types.
11238 (Analyze_Pragma): Warn on misspelled pragma
11239 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11240 Ensure consistent use of # in error messages
11241 Implement pragma Implicit_Packing
11243 2007-08-14 Olivier Hainque <hainque@adacore.com>
11244 Eric Botcazou <ebotcazou@adacore.com>
11246 * targtyps.c (get_target_maximum_default_alignment): New function.
11248 that the compiler might choose by default for a type or object.
11249 (get_target_default_allocator_alignment): New function. Alignment known
11250 to be honored by the target default allocator.
11251 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11252 we might accept for any type or object on the target.
11253 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11255 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11256 (get_target_default_allocator_alignment): Likewise.
11257 (get_target_maximum_allowed_alignment): Likewise.
11260 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11261 result of a function call, first try to use a stabilized reference for
11262 a constant renaming too.
11263 (validate_alignment): Use target_maximum_allowed_alignment instead of
11264 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11265 (gnat_to_gnu_entity): Use common nodes directly.
11266 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11267 alignment and size for the object.
11268 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11269 and N_Procedure_Call_Statement.
11270 (takes_address): Rename to lvalue_required_p, add third parameter
11271 'aliased' and adjust recursive calls.
11272 <N_Indexed_Component>: Update 'aliased' from the array type.
11273 <N_Selected_Component>: New case.
11274 <N_Object_Renaming_Declaration>: New Likewise.
11275 (Identifier_to_gnu): Adjust for above changes.
11276 (maybe_stabilize_reference) <CONST_DECL>: New case.
11278 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11279 between type variants.
11280 (build_simple_component_ref): Likewise.
11281 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11282 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11283 aligning type circuitry for allocations from the default storage pool.
11284 (build_allocator): Likewise.
11285 (build_simple_component_ref): Manually fold the reference for a
11286 constructor if the record type contains a template.
11288 * utils.c (value_zerop): Delete.
11289 (gnat_init_decl_processing): Emit debug info for common types.
11290 (rest_of_record_type_compilation): If a union contains a field
11291 with a non-constant qualifier, treat it as variable-sized.
11292 (finish_record_type): Give the stub TYPE_DECL a name.
11293 (rest_of_record_type_compilation): Likewise.
11294 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11295 types are equivalent array types.
11296 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11297 even if the type is not passed by reference.
11298 (static_ctors, static_dtors): Delete.
11299 (end_subprog_body): Do not record constructors and destructors.
11300 (build_global_cdtor): Delete.
11301 (gnat_write_global_declarations): Do not call build_global_cdtor.
11303 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11304 -fRTS=rtp is specified.
11305 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11308 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11309 of the personality function with SJLJ exceptions.
11311 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11312 the name of the personality function with SJLJ exceptions.
11314 2007-08-14 Robert Dewar <dewar@adacore.com>
11315 Ed Schonberg <schonberg@adacore.com>
11317 * par.ads, par.adb: Improve handling of extra right parens.
11318 (Par): Remove flag From_Limited_With_Clause.
11320 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11321 Improve handling of extra right parens.
11323 2007-08-14 Robert Dewar <dewar@adacore.com>
11325 * par-tchk.adb (TF_Semicolon): Improve error recovery
11327 2007-08-14 Robert Dewar <dewar@adacore.com>
11328 Ed Schonberg <schonberg@adacore.com>
11330 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11331 enumeration type, mark all literals as referenced.
11332 (Eval_Attribute, case 'Image): If the argument is an enumeration
11333 literal and names are available, constant-fold but mark nevertheless as
11335 Clean up function names.
11336 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11338 (Requires_Simple_Name_Prefix): Removed.
11340 2007-08-14 Robert Dewar <dewar@adacore.com>
11341 Ed Schonberg <schonberg@adacore.com>
11343 * sem_ch11.adb: Improved warnings for unused variables
11345 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11346 is a synchronized interface, the derived type is limited.
11347 (Analyze_Object_Declaration): Mark the potential coextensions in the
11348 definition and expression of an object declaration node.
11349 (Build_Derived_Type): For the completion of a private type declaration
11350 with a derived type declaration, chain the parent type's representation
11351 items to the last representation item of the derived type (not the
11352 first one) if they are not present already.
11353 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11354 object declaration of forward references to tags.
11355 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11356 subprogram types can appear as access discriminants of synchronized
11358 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11359 given in prefixed form as a selected component.
11360 (Process_Discriminants): If not all discriminants have defaults, place
11361 error message on a default that is present.
11362 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11363 extend a synchronized tagged type.
11364 Improved warnings for unused variables
11365 (Is_Visible_Component): Fix a visibility hole on a component inherited
11366 by a private extension when parent is itself declared as a private
11367 extension, and the derivation is in a child unit.
11368 (Find_Hidden_Interface): Move spec from the package body.
11370 2007-08-14 Robert Dewar <dewar@adacore.com>
11371 Ed Schonberg <schonberg@adacore.com>
11373 * sem_ch5.adb: Improve warnings on redundant assignments
11375 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11377 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11378 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11379 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11380 is set to False. Improves handling of Known_[Not_]Null.
11381 (Wrong_Type): Special case address arithmetic attempt
11382 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11383 abstract interfaces just using the partial view of private types.
11384 (Has_Abstract_Interfaces): Add new formal to allow checking types
11385 covering interfaces using the partial view of private types.
11386 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11387 component still needs to be defined in this case, but is never
11388 initialized as VMs are using other dispatching mechanisms.
11389 (Abstract_Interface_List): For a protected type, use base type to get
11390 proper declaration.
11391 Improve warnings on redundant assignments
11392 (Is_Variable): Handle properly an implicit dereference of a prefixed
11394 (Build_Actual_Subtype): If this is an actual subtype for an
11395 unconstrained formal parameter, use the sloc of the body for the new
11396 declaration, to prevent anomalises in the debugger.
11398 2007-08-14 Robert Dewar <dewar@adacore.com>
11400 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11401 dispatching operation
11403 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11404 Gary Dismukes <dismukes@adacore.com>
11407 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11408 expanded aggregate code before allocator, and ahead of declaration for
11409 temporary, to prevent access before elaboration when the allocator is
11410 an actual for an access parameter.
11411 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11412 the TSD and the table of interfaces.
11413 (Convert_To_Assignments): Augment the test for delaying aggregate
11414 expansion for limited return statements to include the case of extended
11415 returns, to prevent creation of an unwanted transient scope.
11416 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11417 (Expand_Array_Aggregate): Handle aggregates associated with
11418 statically allocated dispatch tables.
11419 (Expand_Record_Aggregate): Handle aggregates associated with
11420 statically allocated dispatch tables.
11421 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11422 of anonymous access type.
11424 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11426 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11427 is a variable that renames a slice, use the variable itself in the
11428 expannsion when the renamed expression itself may be modified between
11429 the declaration of the renaming and the array assignment.
11431 2007-08-14 Jerome Guitton <guitton@adacore.com>
11433 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11434 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11435 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11436 New functions; dummy implementations.
11438 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11439 functions, used to implement the multi-tasks mode routines on VxWorks.
11441 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11442 New functions, thin
11443 binding to the VxWorks routines which have changed between VxWorks 5
11445 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11446 which are not callable from a RTP.
11448 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11449 implemented for the multi-tasks mode on VxWorks 5 and 6.
11451 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11453 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11456 2007-08-14 Vincent Celier <celier@adacore.com>
11458 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11459 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11460 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11461 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11462 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11463 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11464 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11466 (Major_Id_Name): New function.
11467 mlib-tgt.ads/mlib.tgt.adb:
11468 (Library_Major_Minor_Id_Supported): New function, default returns True
11469 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11470 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11471 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11472 Implementation of Library_Major_Minor_Id_Supported returns False
11474 (Clean_Library_Directory): If major/minor ids are supported, clean all
11476 Major update of the Project Manager and of the project aware tools,
11477 including gprmake, so that the same sources in the GNAT repository
11478 can be used by gprbuild.
11480 2007-08-14 Olivier Hainque <hainque@adacore.com>
11482 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11483 (GCC_ZCX_Support): Switch to True.
11485 * s-intman-solaris.adb (Notify_Exception): Call
11486 Adjust_Context_For_Raise before raising, as expected for signal
11487 handlers in general.
11489 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11490 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11491 to other implementation bodies.
11493 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11494 be visible by multiple implementation bodies.
11496 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11497 only for conditions coming from hardware.
11498 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11499 adjustments to signal context prior to exception raise from signal
11501 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11503 Solaris section: (__gnat_adjust_context_for_raise): New function.
11504 Implementation of the machine context adjustments to perform prior to
11505 raise from a signal handler. Version for both sparc and x86.
11506 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11507 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11508 prior to raising as expected for any handler, before possible nested
11509 faults to make sure all the contexts in a chain have been adjusted by
11510 the time we propagate.
11512 2007-08-14 Pascal Obry <obry@adacore.com>
11514 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11515 (SYSTEM_INFO): New record.
11516 (SetThreadIdealProcessor): New imported routine needed for supporting
11517 task_info pragma on Windows.
11519 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11520 info can be applied to the current host.
11521 (Create_Task): Set the ideal processor if information is present.
11523 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11524 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11526 2007-08-14 Olivier Hainque <hainque@adacore.com>
11528 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11529 stack size and initial stack pointer value for a given task.
11530 (Enter_Task): Get the stack attributes of the task we are entering and
11531 let the stack checking engine know about them.
11533 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11534 Let the stack-checking engine know about the initial sp value and stack
11535 size associated with the current task.
11536 (Set_Stack_Info): If a stack base has been notified for the current
11537 task, honor it. Fallback to the previous less accurate method otherwise.
11539 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11541 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11543 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11544 treatment of limited views uniform for all visible declarations in a
11545 limited_withed package.
11546 Set flag indicating that a subprogram body for a child unit has a
11548 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11549 separate declaration, remove the unit name from visibility after
11550 compilation, so that environment is clean for subsequent compilations.
11551 (Install_Limited_Context_Clauses): Do not install a
11552 limited_private_with_clause unless the current unit is a body or a
11553 private child unit.
11554 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11555 in the same fashion.
11556 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11557 it applies to the declaration of the current package body.
11558 (Remove_Private_With_Clauses): If there is a regular with_clause for
11559 the unit, delete Private_With_Clause from context, to prevent improper
11560 hiding when processing subsequent nested packages and instantiations.
11562 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11564 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11565 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11566 representing absolute path names.
11567 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11569 * cstreams.c (__gnat_full_name for VxWorks): Use
11570 __gnat_is_absolute_path to detect whether we need to add the current
11571 directory to normalize the path.
11573 2007-08-14 Javier Miranda <miranda@adacore.com>
11576 a-tags.adb (Displace): Associate a message with the raised CE
11578 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11579 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11580 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11582 (Default_Prim_Op_Count): Removed.
11583 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11584 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11585 Remove pragma Inline_Always.
11587 * rtsfind.ads (Default_Prim_Op_Count): Removed
11588 (Max_Predef_Prims): New entity
11589 (RE_Expanded_Name): Removed
11590 (RE_HT_Link): Removed
11591 (RE_Iface_Tag): Remmoved
11592 (RE_Ifaces_Table): Removed
11593 (RE_Interfaces_Array): Removed
11594 (RE_Interface_Data_Element): Removed
11595 (RE_Nb_Ifaces): Removed
11596 (RE_RC_Offset): Removed
11597 (RE_Static_Offset_To_Top): Removed
11599 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11601 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11602 Prim_Op_Count by Max_Predef_Prims.
11604 2007-08-14 Thomas Quinot <quinot@adacore.com>
11605 Vincent Celier <celier@adacore.com>
11607 * binde.adb (Elab_All_Links): Remove unnecessary call to
11608 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11609 won't be an associated Afile).
11610 (Elab_All_Links): Fail if a referenced unit cannot be found
11613 Fix comments in bindgen regarding consistency checks done in Bcheck:
11614 the checks are made across units within a partition, not across several
11616 Fix generation of C binder file for VxWorks.
11618 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11619 Generic_May_Lack_ALI, more descriptive of the current use of the
11620 predicate, and update documentation.
11622 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11623 reorganization and documentation update for the case of predefined
11624 library generics (for which we do not reference an Afile).
11626 2007-08-14 Robert Dewar <dewar@adacore.com>
11628 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11629 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11630 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11631 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11632 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11633 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11634 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11635 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11636 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11637 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11638 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11639 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11640 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11641 g-altcon.adb: Minor reformatting
11643 ada-tree.h: Delete empty line.
11645 ali.ads: Minor reformatting
11646 Clarification of comments.
11647 Minor spelling correction
11649 * exp_dbug.adb: Add Warnings Off to suppress new warning
11651 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11654 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11657 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11659 * a-textio.ads: Reorder the standard input/output/error declarations
11662 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11664 * par-ch2.adb: Recognize RM specially in errout
11665 Change 'R'M to RM in all error messages
11667 * scng.adb: Recognize RM specially in errout
11669 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11670 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11672 * s-direio.adb: Add missing routine header box.
11674 * sem_attr.ads: Add ??? comments
11676 * sem_eval.adb: Recognize RM specially in errout
11677 Change 'R'M to RM in all error messages
11679 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11681 * s-tasinf.ads: Fix minor comment typo.
11683 * a-cihama.adb: Minor comment addition
11685 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11688 * s-tasinf-tru64.ads: Fix minor comment typo.
11690 * itypes.ads: Comment update.
11692 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11695 * argv.c: Added protection against null gnat_argv and gnat_envp.
11697 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11698 warning message when Tolerate_Consistency_Errors is True.
11700 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11701 Any_Id, as this subprogram is only applicable to *type* entities (it
11702 sets RM_Size). Instead initialize just Esize and Alignment.
11704 2007-08-14 Bob Duff <duff@adacore.com>
11706 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11707 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11708 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11709 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11710 a-coorse.ads (Next): Applied pragma Inline.
11711 Make all Containers packages Remote_Types (unless they are already
11713 (Previous): applied pragma Inline
11714 (Elements_Type): is now a record instead of an array
11716 2007-08-14 Thomas Quinot <quinot@adacore.com>
11718 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11720 (Set_Item): When the new item is an element of the currently allocated
11721 table passed by reference, save a copy on the stack if we're going
11722 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11723 variable to determine whether to call Set_Last.
11725 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11726 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11727 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11728 some occurrences of the pattern
11730 T.Table (T.Last) := Value;
11731 with a cleaner call to
11734 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11735 Gary Dismukes <dismukes@adacore.com>
11736 Thomas Quinot <quinot@adacore.com>
11738 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11739 derived type with interface progenitors use the analyzed formal as the
11740 parent of the actual, to create renamings for all the inherited
11741 operations in Derive_Subprograms.
11742 (Collect_Previous_Instances): new procedure within of
11743 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11744 unit being loaded, to ensure that the generation of global symbols is
11745 consistent in different compilation modes.
11746 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11747 takes progenitor types into account.
11748 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11749 traversing over the primitives of the formal and actual types to locate
11750 any abstract subprograms of the actual type that correspond to a
11751 nonabstract subprogram of the formal type's ancestor type(s), and issue
11752 an error if such is found.
11753 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11754 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11755 Remove bogus guard around calls to Inherit_Context.
11756 (Reset_Entity): If the entity is the selector of a selected component
11757 that denotes a named number, propagate constant-folding to the generic
11758 template only if the named number is global to the generic unit.
11759 (Set_Instance_Env): Only reset the compilation switches when compiling
11760 a predefined or internal unit.
11762 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11764 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11765 parameter to determine whether operation applies to the prefix.
11766 (Complete_Object_Operation): If actual has an access type and
11767 controlling formal is not an in_parameter, reject the actual if it is
11768 an access_to_constant type.
11769 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11770 type, the candidate operations are found in the scope of declaration of
11771 the type, because the type has no primitive subprograms.
11772 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11773 a private extension, only examine visible components before trying to
11774 analyze as a prefixed call.
11775 Change Entity_List to Type_To_Use, for better readability.
11776 (Has_Fixed_Op): Use base type when checking whether the type of an
11777 operator has a user-defined multiplication/division
11778 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11779 user-defined operators are available for fixed-point types.
11781 2007-08-14 Thomas Quinot <quinot@adacore.com>
11782 Ed Schonberg <schonberg@adacore.com>
11784 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11785 formal At_Any_Place indicating, when True, that we want to test for
11786 availability of the stream attribute at any place (as opposed to the
11787 current visibility context only).
11788 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11789 purpose of enforcing E.2.2(8) only if it is not available at any place.
11790 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11791 when checking the legality of an extension aggregate in a preelaborable
11792 package. Treat the literal null as a valid default expression in a
11793 component declaration for a type with preelaborable initialization.
11794 A limited interface is a legal progenitor for the designated type of a
11795 remote access to class-wide type.
11797 2007-08-14 Thomas Quinot <quinot@adacore.com>
11798 Ed Schonberg <schonberg@adacore.com>
11800 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11801 reference): Use correct entity as denoted entity for the selector of
11802 the rewritten node.
11803 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11804 setting the Referenced_As_LHS flag for entities that are implicitly
11806 (Find_Type): If the type is an internally generated incomplete type,
11807 mark the full view as referenced, to prevent spurious warnings.
11808 (Find_Selected_Component, Has_Components): Handle properly non-limited
11809 views that are themselves incomplete types.
11810 Handle interfaces visible through limited-with clauses.
11811 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11812 subprogram generic actual for which we have generated a renaming.
11813 Warn when the renaming introduces a homonym of
11814 the renamed entity, and the renamed entity is directly visible.
11816 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11817 Hristian Kirtchev <kirtchev@adacore.com>
11819 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11820 appear in the subtree to the current allocator if it is not a static
11822 (Resolve_Allocator): Perform cleanup if resolution has determined that
11823 the allocator is not a coextension.
11824 (Resolve): Skip an interpretation hidden by an abstract operator only
11825 when the type of the interpretation matches that of the context.
11826 (Resolve): When looping through all possible interpretations of a node,
11827 do not consider those that are hidden by abstract operators.
11828 (Resolve_Actuals): When verifying that an access to class-wide object
11829 is an actual for a controlling formal, ignore anonymous access to
11830 subprograms whose return type is an access to class_wide type.
11831 (Resolve_Slice): If the prefix of the slice is a selected component
11832 whose type depends on discriminants, build its actual subtype before
11833 applying range checks on the bounds of the slice.
11834 (Valid_Conversion): In an instance or inlined body, compare root types,
11835 to prevent anomalies between private and public views.
11836 (Resolve): Improve error message for ambiguous fixed multiplication
11837 expressions that involve universal_fixed multiplying operations.
11839 2007-08-14 Javier Miranda <miranda@adacore.com>
11840 Hristian Kirtchev <kirtchev@adacore.com>
11842 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11843 location to allow the correct generation of errors in case of
11844 restrictions applied to the expanded code.
11845 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11846 function if the condition does not reference them.
11847 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11850 2007-08-14 Thomas Quinot <quinot@adacore.com>
11851 Pablo Oliveira <oliveira@adacore.com>
11853 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11854 typecode parameters for a union (in a variant record), remove
11855 extraneous layer of Any wrapping for member label.
11856 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11857 elabration statements, register the package with the name server
11858 at the beginning, not at the end, of the elaboration statements so
11859 that they can create remote access to subprogram values that designate
11860 remote subprograms from the package.
11862 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11864 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11865 values to compute the number of seconds since the Unix Epoc in order to
11866 account for Daylight Savings Time. Perform special processing for dates
11867 that are earlier than the Unix Epoc to obtain a negative number.
11869 2007-08-14 Emmanuel Briot <briot@adacore.com>
11871 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11874 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11876 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11877 binder-generated file is not in Ada.
11878 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11879 recorded in the ALI file.
11880 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11882 2007-08-14 Vincent Celier <celier@adacore.com>
11884 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11885 (Output_Source): Do nothing if parameter is No_Sdep_Id
11887 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11888 shared library it imports has a later time stamp.
11889 (Check): Resolve the symbolic links in the path name of the object
11891 Check that the ALI file is in the correct object directory
11892 Check if a file name does not correspond to the mapping of units
11894 (Display_Version): New procedure
11895 (Initialize): Process switches --version and --help
11896 Use type Path_Name_Type for path name
11898 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11900 * impunit.adb: Re-organize System.Random_Numbers and
11901 GNAT.Random_Numbers and add to builds.
11903 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11905 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11907 * a-assert.ads, a-assert.adb: New files.
11909 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11911 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11912 if AAMP_On_Target is True, then the size of the type encompasses two
11913 addresses (a static link and a subprogram address), except in the case
11914 of library-level access types.
11916 2007-08-14 Vincent Celier <celier@adacore.com>
11918 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11920 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11921 possible trailing spaces.
11922 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11924 2007-08-14 Javier Miranda <miranda@adacore.com>
11926 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11927 null-excluding access types.
11929 2007-08-14 Javier Miranda <miranda@adacore.com>
11931 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11932 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11933 of private types add missing check on matching interfaces in the
11934 partial and full declarations.
11935 (Analyze_Protected_Type): Code cleanup.
11936 (Analyze_Task_Type): Code cleanup.
11938 2007-08-14 Javier Miranda <miranda@adacore.com>
11940 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11941 generated interface thunk.
11943 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11945 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11946 obsolescent warning on application of 'Class to an incomplete type.
11948 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11949 prevent obsolescent warning on application of 'Class to an incomplete
11952 2007-08-14 Pascal Obry <obry@adacore.com>
11954 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11957 2007-08-14 Cyrille Comar <comar@adacore.com>
11959 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11960 since it is potentially used in cases implying double finalization of
11963 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11965 * s-tasini.adb (Get_Stack_Info): Move this function to
11966 System.Soft_Links.Tasking because it is common to the full and the
11967 restricted run times.
11968 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11969 in SSL.Tasking.Init_Tasking_Soft_Links.
11971 * s-solita.adb (Get_Stack_Info): Function moved from
11972 System.Tasking.Initialization because it is common to the full and the
11973 restricted run times.
11974 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11976 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11978 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11979 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11980 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11983 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11986 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11988 * s-veboop.adb (SU): New named number initialized to
11989 System.Storage_Unit.
11990 (True_Val): The initialization expression is revised to use SU (=
11991 Storage_Unit) rather than assuming 8 for the component size of an
11992 unpacked Boolean array.
11994 2007-08-14 Tristan Gingold <gingold@adacore.com>
11996 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11998 * tb-ivms.c: New file.
12000 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
12002 2007-08-14 Geert Bosch <bosch@adacore.com>
12004 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
12005 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
12006 Add required linker pragmas for automatically linking with the gnalasup
12007 linear algebra support library, and the systems math library.
12008 Rename cdot to cdotu and zdot to zdotu.
12009 Update header comment to describe purpose of package.
12011 2007-08-14 Thomas Quinot <quinot@adacore.com>
12013 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
12014 an explicitly specified Associated_Final_Chain, use that list.
12015 (Expand_N_Package_Body): Build dispatch tables of library level tagged
12017 (Expand_N_Package_Declaration): Build dispatch tables of library level
12018 tagged types. Minor code cleanup.
12020 2007-08-14 Vincent Celier <celier@adacore.com>
12022 * gnatchop.adb (Terminate_Program): Remove exception and use
12023 Types.Terminate_Program instead.
12025 * osint.ads, osint.adb (Current_Exit_Status): New global variable
12026 (Find_Program_Name): Added protection against empty name.
12027 (OS_Exit_Through_Exception): New procedure
12029 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
12030 (OS_Exit_Default): New procedure that contains the previous
12031 implementation of procedure OS_Exit.
12032 (Final_Value): Remove obsolete Interix stuff.
12034 2007-08-14 Thomas Quinot <quinot@adacore.com>
12036 * g-socket.ads: Reorganize example code so that it also works on
12039 2007-08-14 Tristan Gingold <gingold@adacore.com>
12041 * g-trasym.ads: AIX now supports symbolic backtraces.
12043 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12045 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12046 units being loaded to detect circularities. A circularity may be
12047 present even if the current chain of pending units to load starts from
12048 a limited_with_clause.
12050 * lib-load.ads: Change profile of Load_Unit to use a with_clause
12051 rather than a boolean flag, in order to detect circularities in
12054 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12055 than propagating the From_Limited_With flag, in order to handle
12056 properly circularities involving with_clauses.
12058 2007-08-14 Nicolas Setton <setton@adacore.com>
12060 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12063 2007-08-14 Arnaud Charlet <charlet@adacore.com>
12065 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12066 to build for libgnala.
12067 libgnat: Add rules to build libgnala.a
12068 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12069 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12070 Add s-osinte-vxworks-kernel.adb to the target pairs of the
12071 kernel run-time lib for VxWorks 6, which would provide a different
12072 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12073 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12074 running ZCX by default.
12075 Add g-sttsne-locking to LynxOS version.
12076 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12077 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12079 * system-darwin-x86.ads: New file.
12081 * Make-lang.in: Delete files before copying onto them, so if they are
12082 read-only, the copy won't fail.
12083 Update dependencies
12085 2007-08-14 Pascal Obry <obry@adacore.com>
12087 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12090 2007-08-14 Vincent Celier <celier@adacore.com>
12092 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12093 (Gcc): Initialize Gcc_Name at the first call
12095 2007-08-14 Ed Schonberg <schonberg@adacore.com>
12097 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12098 with_clauses of the enclosing unit when analyzing the package
12099 specification of a nested instance.
12101 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12103 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12104 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12105 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12106 layout of N_Allocator.
12108 2007-08-14 Thomas Quinot <quinot@adacore.com>
12110 * rtsfind.adb (Check_RPC): Add PCS version check.
12112 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12113 (Gnat_Free_Software): New function.
12115 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12116 the PCS_Version value from s-parint, used to check that it is consistent
12117 with what exp_dist expects.
12119 * s-parint.ads (PCS_Version): New entity for checking consistency
12120 between exp_dist and PCS.
12122 * gen-soccon.c: (SO_REUSEPORT): New constant.
12124 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12126 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12127 variable Sub_Second to Duration in order to accomodate a larger range
12128 of arithmetic operations.
12130 2007-08-14 Bob Duff <duff@adacore.com>
12132 * g-sttsne-locking.ads: Move comments from spec to body.
12133 * g-sttsne-locking.adb: Move comments from spec to body.
12134 * g-sttsne-vxworks.ads: Removed.
12135 * g-sttsne-vxworks.adb: Removed.
12137 2007-08-11 Ian Lance Taylor <iant@google.com>
12139 * misc.c (gnat_get_alias_set): Change return type to
12142 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12144 * decl.c, utils2.c: Fix whitespace in last change.
12146 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12148 * decl.c (compare_field_bitpos): Constify.
12149 * utils2.c (compare_elmt_bitpos): Likewise.
12151 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
12153 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
12154 anonymous access type.
12155 (pthread_sigmask): Now take an access sigset_t.
12157 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12159 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12161 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
12163 PR tree-optimization/25737
12164 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12166 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12168 * trans.c (Attribute_to_gnu): When subtracting an
12169 offset from a pointer, use POINTER_PLUS_EXPR with
12170 NEGATE_EXPR instead of MINUS_EXPR.
12171 (gnat_to_gnu): Likewise.
12172 * utils.c (convert): When converting between
12173 thin pointers, use POINTER_PLUS_EXPR and sizetype
12175 * utils2.c (known_alignment): POINTER_PLUS_EXPR
12176 have the same semantics as PLUS_EXPR for alignment.
12177 (build_binary_op): Add support for the semantics of
12178 POINTER_PLUS_EXPR's operands.
12179 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12181 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
12183 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12184 of get_signed_or_unsigned_type.
12185 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12187 2007-06-11 Bob Duff <duff@adacore.com>
12188 Thomas Quinot <quinot@adacore.com>
12190 * g-stsifd-sockets.adb (Create): Work around strange behavior of
12191 'bind' on windows that causes 'connect' to fail intermittently, by
12192 retrying the 'bind'.
12193 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12195 2007-06-10 Duncan Sands <baldrick@free.fr>
12197 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12198 than to void, for the fields when making a new fat pointer type.
12199 (gnat_substitute_in_type): Now substitute_in_type.
12200 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
12201 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12202 * utils.c (update_pointer_to): Update fat pointers by updating the
12203 dummy node pointers used for the fields.
12205 2007-06-06 Thomas Quinot <quinot@adacore.com>
12206 Bob Duff <duff@adacore.com>
12208 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12209 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12210 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
12211 constant Thread_Blocking_IO, always True by default, set False
12212 on a per-runtime basis.
12213 (Need_Netdb_Buffer): New constant.
12215 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12216 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12219 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12220 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12221 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12222 child package Task_Safe_NetDB
12223 (Host_Error_Messages): Add stub body.
12224 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12226 * g-soccon-mingw.ads: Add Windows-specific constants.
12227 (Need_Netdb_Buffer): New constant.
12228 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12229 wrapper and import inet_addr(3) from the standard sockets library
12231 (In_Addr): Add alignment clause.
12232 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12234 2007-06-06 Robert Dewar <dewar@adacore.com>
12236 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12237 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12238 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12239 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12240 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12241 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12242 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12243 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12244 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12245 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12246 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12247 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12248 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12249 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12250 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12251 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12252 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12253 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12254 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12255 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12256 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12257 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12258 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12259 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12260 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12261 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12262 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12263 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12264 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12265 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12266 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12267 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12268 Unchecked_* by Ada.Unchecked_*
12270 2007-06-06 Robert Dewar <dewar@adacore.com>
12272 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12273 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12274 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12275 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12276 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12277 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12279 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12280 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12281 s-tasloc.adb, s-tasloc.ads: New files.
12283 2007-06-06 Bob Duff <duff@adacore.com>
12285 * g-expect-vms.adb:
12286 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12287 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12288 (Send_Signal, Close): Raise Invalid_Process if the process id is
12290 (Pattern_Matcher_Access): Is now a general access type to be able to
12291 use aliased string.
12293 2007-06-06 Thomas Quinot <quinot@adacore.com>
12294 Arnaud Charlet <charlet@adacore.com>
12296 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12297 (SIGEMT is now used instead of SIGTERM on AIX).
12299 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12300 (Time_Slice_Supported): Set to True.
12301 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12303 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12305 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12306 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12307 express the bounds of Duration as Time. Raise Time_Error when the
12308 result is greater or equal to the higher bound of Duration (on the
12310 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12311 Ada_High_And_Leaps.
12312 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12313 Ada_High_And_Leaps.
12314 ("-" (Time, Time)): Reorder code.
12315 (All_Leap_Seconds): Removed.
12316 (Arithmetic_Operations.Add): Remove sign related kludge.
12317 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12318 with flag Leap_Support.
12319 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12320 (Check_Within_Time_Bounds): New procedure.
12321 (Clock): Control the leap seconds processing with flag Leap_Support.
12322 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12323 (Formatting_Operations.Split): Control the leap seconds processing with
12325 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12326 with flag Leap_Support. Adjust the year, month and day (if applicable)
12327 when the value of day seconds designates a new day.
12328 (Split): Use parameter associations for better readability. Integrate
12330 (Time_Of): Use parameter associations for better readability. Integrate
12333 * a-calfor.adb (Split): Use parameter associations for better
12334 readability. Integrate flag Is_Ada_05.
12335 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12336 better readability. Integrate flag Is_Ada_05.
12338 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12340 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12341 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12342 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12343 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12344 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12345 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12346 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12347 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12348 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12349 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12350 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12351 time when entering this routine to detect a backward clock setting
12352 (manual setting or DST adjustment), to avoid waiting for a longer delay
12354 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12355 Remove handling of deferred priority change, and replace by setting the
12356 task priority directly, as required by AI-188.
12358 (Max_Task_Image_Length): New constant.
12359 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12360 (Dynamic_Priority_Support): Removed, no longer needed.
12361 (Poll_Base_Priority_Change): Ditto.
12362 (Set_Ceiling): Add this procedure to change the ceiling priority
12363 associated to a lock. This is a dummy implementation because dynamic
12364 priority ceilings are not supported by the underlying system.
12366 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12367 accepting a RV with its priority boosted.
12368 Remove handling of deferred priority change, and replace by setting the
12369 task priority directly, as required by AI-188.
12371 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12373 Remove handling of deferred priority change, and replace by setting the
12374 task priority directly, as required by AI-188.
12375 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12376 of Self_Id earlier.
12378 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12379 (Poll_Base_Priority_Change): Removed.
12380 Code clean up: use SSL.Current_Target_Exception.
12382 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12383 to run as this is a potentially dispatching point.
12384 (Call_Synchronous): Use Local_Defer_Abort.
12385 (Callable): Relax assertion.
12386 (Selective_Wait): Relax assertion in case abort is not allowed.
12387 Remove handling of deferred priority change, and replace by setting the
12388 task priority directly, as required by AI-188.
12390 * s-tasuti.adb (Make_Passive): Adjust assertions.
12391 Remove handling of deferred priority change, and replace by setting the
12392 task priority directly, as required by AI-188.
12394 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12396 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12397 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12398 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12399 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12400 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12401 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12402 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12403 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12404 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12405 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12406 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12407 This patch changes the largest non-binary modulus from 2**31-1 to
12409 (Compiler_System_Version): Removed, no longer used.
12410 Clean up system files by removing flags only used on a single target.
12411 Also remove obsolete flags, only used during bootstrap from system.ads
12412 (Address): Add a pragma Preelaborable_Initialization.
12414 * system-aix.ads: Ditto.
12415 (GCC_ZCX_Support): Set to true.
12416 Update priority range on AIX and map Ada priorities to target
12417 priorities appropriately for different scheduling policies.
12419 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12421 2007-06-06 Vincent Celier <celier@adacore.com>
12423 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12424 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12426 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12427 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12428 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12429 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12430 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12431 MLib.Tgt, containing the default versions of the exported subprograms.
12432 For each platform, create a specific version of the body of new child
12433 package MLib.Tgt.Specific that contains only the body of subprograms
12434 that are different from the default.
12435 (Archive_Builder_Append_Options): New function.
12437 2007-06-06 Matthew Gingell <gingell@adacore.com>
12439 * s-osinte-aix.adb: Map Ada priorities to target priorities
12440 appropriately for different scheduling policies.
12442 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12444 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12446 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12447 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12449 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12451 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12452 Noop on VMS, added for interface commonality.
12454 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12455 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12456 Olivier Hainque <hainque@adacore.com>
12458 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12459 renamed expression of a full renaming at toplevel.
12460 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12461 the values the constant is initialized to if it is an N_Allocator.
12462 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12463 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12464 (make_aligning_type): Accept an extra ROOM argument for storage to be
12465 made available before the aligned field, and an extra BASE_ALIGN
12466 argument for callers to pass the alignment guaranteed to be honored for
12467 the whole aligning object. Avoid call to finish_record_type, which only
12468 interferes with the sizes we want to set.
12469 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12470 make_aligning_type for super-aligned objects on stack.
12471 (components_to_record): Pass the adjusted size of the type when creating
12472 fields in the qualified union for the variant part.
12473 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12474 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12476 (maybe_pad_type): Set TYPE_USER_ALIGN.
12477 (make_aligning_type): Likewise.
12478 ALIGN argument is unsigned int.
12479 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12480 (gnat_to_gnu_param): Likewise, for parameters.
12481 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12482 if it is constant and stems from a function call.
12483 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12484 of the record is specified. Adjust accordingly.
12485 (adjust_packed): New static function.
12486 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12487 (components_to_record): Likewise.
12488 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12489 side-effects if the object is deemed constant.
12490 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12491 type instead of merely finalizing it. Tidy.
12492 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12493 <E_Access_Type>: Likewise.
12494 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12495 (defer_debug_level): Delete.
12496 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12497 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12499 <E_Record_Type>: Do not explicitly defer finalizing the type.
12500 Adjust for write_record_type_debug_info renaming.
12501 <E_Subprogram_Type>: Likewise.
12502 Finalize deferred types right after deferred incomplete types are
12504 (rest_of_type_decl_compilation): New global function.
12505 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12506 (components_to_record): Propagate the packedness to the fields of the
12507 qualified union type if there is a variant part.
12508 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12509 instead of inline code to adjust the XUT field offsets.
12510 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12511 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12512 and write the debug info if the type derives from a discriminated one.
12513 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12514 <E_Array_Subtype>: Likewise.
12515 <E_String_Literal_Subtype>: Likewise.
12516 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12517 an alignment clause.
12518 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12519 before giving warning.
12520 (prepend_one_attribute_to): New function, helper to prepend an attribute
12521 to an attribute list.
12522 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12523 (prepend_attributes): Likewise.
12524 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12525 <E_Array_Type>: Declare the padding type for the element type, if any.
12526 <E_Array_Subtype>: Likewise.
12527 (defer_limited_with): New variable.
12528 (Gigi_Equivalent_Type): New function.
12529 (gnat_to_gnu_entity): Use it at start and use result throughout.
12530 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12531 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12532 indirection, precompute if unconstrained array to simplify logic, and
12533 use defer_limited_with to defer elaboration of some types from limited
12535 (finalize_from_with_types): New function.
12537 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12538 Eric Botcazou <ebotcazou@adacore.com>
12539 Tristan Gingold <gingold@adacore.com>
12540 Olivier Hainque <hainque@adacore.com>
12542 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12543 adding guard that the entity is an E_Constant before testing presence
12544 of Full_view (and remove unnecessary test that entity is not a type).
12545 For a CONST_DECL used by reference, manually retrieve
12546 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12547 (struct language_function): Move from utils.c to here.
12548 (struct parm_attr): New structure.
12549 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12550 (f_parm_attr_cache): New macro.
12551 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12552 expressions for the 'First, 'Last and 'Length attributes of the
12553 unconstrained array IN parameters.
12554 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12555 Allocate the information structure for the function earlier, as well
12556 as the language-specific part.
12557 If the parameter attributes cache has been populated, evaluate the
12558 cached expressions on entry.
12559 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12560 N_Procedure_Call_Statement and N_Indexed_Component.
12561 (Pragma_to_gnu): Translate inspection_point to an asm statement
12562 containaing a comment and a reference to the object (either its address
12563 for BLKmode or its value).
12564 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12565 to go to DECL_INITIAL. Together with the size constraint relaxation
12566 in create_var_decl, enlarges the set of situations in which an
12567 identifier may be used as an initializer without implying elaboration
12569 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12570 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12572 (maybe_stabilize_reference): Remove lvalues_only parameter.
12573 (gnat_stabilize_reference): Adjust for above change.
12574 (gnat_to_gnu): Do not set location information on the result
12575 if it is a reference.
12576 (add_cleanup): Add gnat_node parameter and set the location of the
12578 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12579 (Exception_Handler_to_gnu_zcx): Likewise.
12580 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12581 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12582 the former right after the latter.
12583 (start_stmt_group): Make global.
12584 (end_stmt_group): Likewise.
12585 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12587 (gnu_program_error_label_stack): Likewise.
12588 (gigi): Initialize them.
12589 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12590 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12592 (push_exception_label_stack): New function.
12593 (takes_address): New function.
12595 * utils.c (struct language_function): Move to trans.c from here.
12596 (unchecked_convert): Do not wrap up integer constants in
12597 VIEW_CONVERT_EXPRs.
12598 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12599 the latter for aggregate types, unexpected by later passes, and relax an
12600 arbitrary size constraint on the former.
12601 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12602 to compare the sizes.
12603 (convert_vms_descriptor): When converting to a fat pointer type, be
12604 prepared for a S descriptor at runtime in spite of a SB specification.
12605 (shift_unc_components_for_thin_pointers): New function.
12606 (write_record_type_debug_info): For variable-sized fields, cap the
12607 alignment of the pointer to the computed alignment.
12608 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12609 If REP_LEVEL is 2, do not compute the sizes.
12610 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12611 (build_unc_object_type): Likewise.
12612 (declare_debug_type): New function.
12614 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12616 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12617 no statement is expandable anymore.
12618 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12619 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12620 when the user requested it explicitely.
12621 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12623 (get_alias_set): Return alias set 0 for a type if
12624 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12626 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12627 (DECL_FUNCTION_STUB): New accessor macro.
12628 (SET_DECL_FUNCTION_STUB): New setter macro.
12630 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12632 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12635 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12637 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12638 Rename to Abort_Task_Interrupt to be able to keep the same interface
12639 as the rest of the targets.
12641 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12642 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12644 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12647 2007-06-06 Robert Dewar <dewar@adacore.com>
12649 * a-chahan.ads: Remove obsolescent pragmas
12651 * a-chlat1.ads: Minor reformatting
12653 2007-06-06 Robert Dewar <dewar@adacore.com>
12655 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12658 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12661 * errout.ads (Finalize): Changed interface
12662 (Output_Messages): New procedure
12663 (Compilation_Errors): New Interface
12665 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12666 Finalize/Output_Messages interface for Errout
12667 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12670 2007-06-06 Thomas Quinot <quinot@adacore.com>
12671 Olivier Hainque <hainque@adacore.com>
12672 Robert Dewar <dewar@adacore.com>
12674 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12676 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12677 propagation starts, to let debuggers know about the event in a reliable
12679 (Local_Raise): Moved to System.Exceptions
12680 More convenient to have this as a separate unit
12682 * s-except.adb, s-except.ads: New files.
12684 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12685 Debug_Unhandled_Exception in System.Exceptions where it belongs
12686 together with a couple of other debug helpers.
12687 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12688 the former Unhandled_Exception.
12690 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12691 (Warn_No_Exception_Propagation): New procedure
12692 (Warn_If_No_Propagation): Rewritten for new warning generation
12693 (Expand_Exception_Handlers): New warning generation
12694 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12695 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12696 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12697 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12698 even if restriction is set (makes life easier in Check_Returns)
12699 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12700 checking exception identities.
12701 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12702 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12703 block for handler (used by Check_Returns)
12704 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12705 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12706 remove all exception handlers when optimizing local raise statements.
12707 (Find_Local_Handler): Use Get_Renamed_Entity
12708 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12709 marked analyzed after expanding exception handlers, do not generate
12710 redundant cleanup actions, because they have been constructed already.
12712 2007-06-06 Thomas Quinot <quinot@adacore.com>
12714 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12715 presence of this categorization pragma is mandated by the language.
12716 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12719 2007-06-06 Vincent Celier <celier@adacore.com>
12720 Robert Dewar <dewar@adacore.com>
12722 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12723 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12724 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12725 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12726 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12727 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12728 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12729 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12730 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12731 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12732 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12734 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12735 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12736 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12737 Use variables of types File_Name_Type and Unit_Name_Type in error
12739 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12740 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12742 Define flags Flag217-Flag230 with associated subprograms
12743 (Flag_Word5): New record type.
12744 (Flag_Word5_Ptr): New access type.
12745 (To_Flag_Word5): New unchecked conversion.
12746 (To_Flag_Word5_Ptr): Likewise.
12747 (Flag216): New function.
12748 (Set_Flag216): New procedure.
12750 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12752 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12755 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12757 2007-06-06 Javier Miranda <miranda@adacore.com>
12759 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12761 (Object_Specific_Data_Array): This is now internal to the package.
12762 (Object_Specific_Data): This is now internal to the package.
12763 (Select_Specific_Data_Element): This is now internal to the package.
12764 (Select_Specific_Data_Array): This is now internal to the package.
12765 (Select_Specific_Data): This is now internal to the package.
12766 (Offset_To_Top_Function_Ptr): This is now public.
12767 (To_Offset_To_Top_Function_Ptr): Removed.
12768 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12769 local to subprogram Offset_To_Top.
12770 (Predefined_DT): Removed.
12771 (Typeinfo_Ptr): Removed.
12772 (OSD): This function is now internal to this package.
12773 (SSD): This function is now internal to this package.
12774 (DT): New function that displaces the pointer to the table of primitives
12775 to get access to the enclosing wrapper record.
12776 (IW_Membership): Code cleanup.
12777 (Offset_To_Top): Code cleanup.
12778 (Predefined_DT): Removed.
12779 (Register_Interface_Tag): Removed.
12780 (Set_Interface_Table): Removed.
12781 (Set_Offset_Index): Removed.
12782 (Set_Offset_To_Top): Code cleanup.
12783 (Set_OSD): Removed.
12784 (Set_Signature): Removed.
12785 (Set_SSD): Removed.
12786 (Set_Tagged_Kind): Removed.
12787 (Typeinfo_Ptr): Removed.
12789 (Displace): Add missing check on null actual.
12791 * exp_disp.ads, exp_disp.adb
12792 (Select_Expansion_Utilities): Removed.
12793 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12794 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12795 the interface requires a new parameter.
12796 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12797 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12798 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12799 Done to remove package Select_Expansion_Utilities.
12800 (Make_DT): New implementation for statically allocated dispatch tables.
12801 (Make_Secondary_DT): Moved to the scope of Make_DT.
12802 (Register_Primitive): Code cleanup plus incoporate the use of the new
12803 function DT_Address_Attribute.
12804 (Expand_Interface_Thunk): The profile of this subprogram has been
12805 changed to return the Thunk_Id and the corresponding code.
12806 (Fill_DT_Entry): Removed. Its functionality is now provided by
12807 subprogram Register_Primitive.
12808 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12809 subprogram Register_Primitive.
12810 (Register_Primitive): New subprogram that incorporates the previous
12811 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12812 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12813 was only required to call Make_DT_Access_Action, which is now removed.
12814 (Ada_Actions): Removed
12815 (Action_Is_Proc): Removed
12816 (Action_Nb_Arg): Removed
12817 Replace all the calls to Make_DT_Access_Action by direct calls to
12818 Make_Procedure_Call_Statement or Make_Function_Call.
12819 (Set_DTC_Entity_Value): New subprogram.
12820 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12821 (Expand_Interface_Thunk): Add missing support for primitives that are
12822 functions with a controlling result (case in which there is no need
12823 to generate the thunk).
12825 * exp_atag.ads, exp_atag.adb
12826 (Build_DT): New subprogram that displaces the pointer to reference the
12827 base of the wrapper record.
12828 (Build_Typeinfo_Offset): Removed.
12829 (RTE_Tag_Node): Removed.
12830 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12831 (Build_Get_RC_Offset): Removed.
12832 (Build_Inherit_Predefined_Prims): Removed.
12833 (Build_Inherit_TSD: Removed.
12834 (Build_New_TSD): Removed.
12835 (Build_Set_External_Tag): Removed.
12836 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12837 (Build_Set_Prim_Op_Address): Add documentation.
12838 (Build_Set_TSD): Removed.
12840 * rtsfind.ads, rtsfind.adb
12841 (Load_Fail): If load fails and we are not in configurable run-time
12842 mode, then raise Unrecoverable_Error.
12843 (Text_IO_Kludge): Generate an error message if a run-time library is
12844 not available in a given run-time (ie. zfp run-time).
12845 (RTE_Record_Component): Add code to check that the component we search
12846 for is not found in two records in the given run-time package.
12847 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12848 (RE_DT_Predef_Prims_Offset): New entity
12849 (RE_Static_Offset_To_Top): New entity
12850 (RE_HT_Link): New entity.
12851 (System_Address_Image): Addition of this run-time package.
12852 (RE_Address_Image): New entity.
12853 (RE_Abstract_Interface): Removed.
12854 (RE_Default_Prim_Op_Count): Removed.
12855 (RE_DT_Entry_Size): Removed.
12856 (RE_DT_Min_Prologue_Size): Removed.
12857 (RE_DT_Prologue_Size): Removed.
12858 (RE_Ifaces_Table_Ptr): Removed.
12859 (RE_Interface_Data_Ptr): Removed.
12860 (RE_Type_Specific_Data): Removed.
12861 (RE_Primary_DT): Removed.
12862 (RE_Register_Interface_Tag): Removed.
12863 (RE_Set_Offset_Index): Removed.
12864 (RE_Set_OSD): Removed.
12865 (RE_Set_SSD): Removed.
12866 (RE_Set_Signature): Removed.
12867 (RE_Set_Tagged_Kind): Removed.
12868 (RE_Address_Array): New entity.
12869 (RE_DT): New entity.
12870 (RE_Iface_Tag): New entity.
12871 (RE_Interfaces_Table): New entity.
12872 (RE_No_Dispatch_Table): New entity.
12873 (RE_NDT_Prims_Ptr): New entity.
12874 (RE_NDT_TSD): New entity.
12875 (RE_Num_Prims): New entity.
12876 (RE_Offset_To_Top_Function_Ptr): New entity.
12877 (RE_OSD_Table): New entity.
12878 (RE_OSD_Num_Prims): New entity.
12879 (RE_Predef_Prims): New entity
12880 (RE_Predef_Prims_Table_Ptr): New entity.
12881 (RE_Primary_DT): New entity.
12882 (RE_Signature): New entity.
12883 (RE_SSD): New entity.
12884 (RE_TSD): New entity.
12885 (RE_Type_Specific_Data): New entity.
12886 (RE_Tag_Kind): New entity.
12888 2007-06-06 Thomas Quinot <quinot@adacore.com>
12890 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12891 C imported variable.
12892 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12895 2007-06-06 Robert Dewar <dewar@adacore.com>
12897 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12900 2007-06-06 Vincent Celier <celier@adacore.com>
12902 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12903 is room for at least one digit and the minus sign.
12904 (Put.Put_Character): Never put a character outside of the range of
12907 2007-06-06 Olivier Hainque <hainque@adacore.com>
12908 Eric Botcazou <ebotcazou@adacore.com>
12910 * utils2.c (build_allocator): Provide the extra arguments to
12911 make_aligning_type for super-aligned objects allocated from the default
12912 pool. Leave enough room for a pointer before the aligning field, and
12913 store the system's allocator return value there.
12914 (build_call_alloc_dealloc): When releasing a super-aligned object,
12915 retrieve the system's allocator return value from where build_allocator
12916 has stored it, just ahead of the adjusted address we are passed.
12917 (build_call_raise): Handle properly the generation of line numbers when
12918 the node is marked No_Location.
12919 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12920 by using DECL_UID on ties.
12921 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12923 (build_call_raise): Handle converting exception into goto; support new
12925 (build_component_ref): Add new arg to build_call_raise.
12927 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12929 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12930 "." in the case of nnn.xxx when nnn terminates with an underscore.
12931 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12933 2007-06-06 Robert Dewar <dewar@adacore.com>
12935 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12937 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12938 Vincent Celier <celier@adacore.com>
12939 Robert Dewar <dewar@adacore.com>
12941 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12943 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12944 ((destructor)) for adafinal, even when switch -a is used.
12945 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12947 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12948 Output_Linker_Option_List is set. Suppress this formatting when
12949 Zero_Formatting is set.
12950 Add case for CLI_Target.
12951 (System_Restrictions_Used): New flag, used to avoid generating with of
12952 System_Restrictions and initialization of the data unless there is
12953 some use of System.Restrictions in the partition.
12954 (Check_System_Restrictions_Used): New procedure
12956 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12957 since we only with this unit in the binder file if it is used elsewhere
12960 2007-06-06 Vincent Celier <celier@adacore.com>
12962 * bindusg.adb: Add line for @<response file>
12963 Add lines for new switches -R and -Z
12965 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12966 hierarchy in the list of files of the closure when -R is used
12967 (Gnatbind): Accept arguments starting with '@' to indicate response
12968 files and take the arguments from the response files.
12969 If List_Closure is set, display the referenced files
12971 2007-06-06 Javier Miranda <miranda@adacore.com>
12972 Robert Dewar <dewar@adacore.com>
12973 Ed Schonberg <schonberg@adacore.com>
12975 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12976 which the address-clause is applied to in-mode actuals (allowed by
12978 (Apply_Discriminant_Check): Do not generate a check if the type is
12979 constrained by a current instance.
12980 (Activate_Division_Check): New procedure
12981 (Activate_Overflow_Check): New procedure
12982 (Activate_Range_Check): New procedure
12983 Call these new Activate procedures instead of setting flags directly
12984 (Apply_Array_Size_Check): Removed, no longer needed.
12985 Code clean up: remove obsolete code related to GCC 2.
12986 (Get_E_Length): Protect against bomb in case scope is standard
12987 (Selected_Range_Checks): If the node to be checked is a conversion to
12988 an unconstrained array type, and the expression is a slice, use the
12989 bounds of the slice to construct the required constraint checks.
12990 Improve NOT NULL error messages
12991 (Apply_Constraint_Check): If the context is a null-excluding access
12992 type, diagnose properly the literal null.
12994 2007-06-06 Pascal Obry <obry@adacore.com>
12996 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12997 and the corresponding .deps file.
12998 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12999 src directory. Minor code-clean-up. Use untouched casing for files
13000 read into the library src dir.
13001 (Clean_Library_Directory): Idem.
13002 (Parse_Cmd_Line): Accept new switch -aP
13004 2007-06-06 Javier Miranda <miranda@adacore.com>
13005 Ed Schonberg <schonberg@adacore.com>
13006 Robert Dewar <dewar@adacore.com>
13007 Eric Botcazou <ebotcazou@adacore.com>
13008 Arnaud Charlet <charlet@adacore.com>
13010 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
13011 applicable to types that have the With_Type flag set. Returns the
13012 non-limited view of the type, if available, otherwise the type itself.
13013 For class-wide types, there is no direct link in the tree, so we have
13014 to retrieve the class-wide type of the non-limited view of the Etype.
13015 New attributes Static_Initialization and Static_Elaboration_Desired.
13016 Remove the pragma Thread_Body, and the associated flag
13017 Is_Thread_Body in entities, and all related code.
13018 (Suppress_Value_Tracking_On_Call): New flag
13019 E_Exception has Esize and Alignment fields
13020 (Universal_Aliasing): New function.
13021 (Set_Universal_Aliasing): New procedure.
13022 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
13023 (Check_Nested_Access): New procedure.
13024 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13025 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13026 (Related_Interface): New attribute. Present in dispatch table pointer
13027 components of records. Set to point to the entity of the corresponding
13029 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
13030 (Original_Access_Type): Remove, not needed.
13031 (Root_Type): Handle properly subtypes of class-wide-types.
13034 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
13035 class-wide types visible through limited-with clauses.
13036 (Try_Primitive_Operation): When examining all primitive operations of a
13037 tagged type, do not consider subprograms labeled as hidden unless they
13038 belong to a private generic type with a tagged parent.
13039 (Try_Object_Operation): Extensive rewriting, to handle properly various
13040 overloading cases, when several ancestors may have class-wide operations
13041 that are possible candidates, and when the overloaded functions return
13042 array types and have defaulted parameters so that the call may be
13043 interpreted as an indexing.
13044 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13045 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13046 successive actuals before analyzing the call itself.
13047 (Try_Primitive_Operation): A primitive operation is compatible with the
13048 prefix if the prefix has a synchronized type and the type of the formal
13049 is its corresponding record, as can be the case when the primitive
13050 operation is declared outside of the body of the type.
13051 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13052 perform homonym traversal, looking for class-wide operation matches
13053 (formerly done in statements of Try_Class_Wide_Operation). Matches on
13054 access parameters are now restricted to anonymous access types.
13055 (Mark_Allocator): An allocator with a discriminant association parent is
13057 (Try_One_Prefix_Interpretation): If the type of the object is
13058 incomplete, as can be happen when it is a limited view obtained through
13059 a limited_with_clause, the selected component is not part of a prefixed
13061 (Complete_Object_Operation): Diagnose properly an object that is not
13062 aliased when the corresponding controlling formal is an access
13064 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13065 ambiguous calls in prefixed notation, where two primitives differ only
13066 in that the controlling argument of one is an access parameter.
13068 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13069 whether a function that returns an unconstrained type can be inlined.
13070 (Process_Formals): Diagnose properly the illegal use of an incomplete
13071 type in the profile of an access_to_subprogram declaration.
13072 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13073 operations are attached to the corresponding record.
13074 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13075 When processing a primitive of a concurrent type which implements an
13076 interface change the type of all controlling formals to that of the
13077 corresponding record type.
13078 (Check_Synchronized_Overriding): Relax the conditional logic when trying
13079 to determine the tagged type to which a primitive belongs.
13080 (Check_Conventions): Capture condition to ignore a primitive operation
13081 (which is shared between the loop in Check_Conventions and the one in
13082 Check_Convention) in a new local function Skip_Check.
13083 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13084 confusion with Check_Conventions' own Prim_Op local variable.
13085 (Create_Extra_Formals): Test for a tagged result type rather than a
13086 controlling result when determining whether to add a BIP_Alloc_Form
13087 formal and a BIP_Final_List formal to the function.
13088 (Check_Conformance); For parameters that are anonymous access types,
13089 subtype conformance requires that the not null and the constant
13090 indicators must match
13091 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13092 to retrieve the appropriate type when processing a concurrent type
13093 declared within a generic. Minor comment reformatting. Change invocation
13094 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13096 (Analyze_Subprogram_Body): If the return type of a function is an
13097 anonymous access to the limited view of a class-wide type, and the
13098 non-limited view of the type is available, update the type of the
13099 function so that code can be generated.
13100 (Process_Formals): In case of access-subtype itype whose designated
13101 type is also an itype (situation that happens now with access to
13102 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13103 attribute to avoid backend problems.
13104 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13105 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13106 anonymous types' designated types are same before testing
13107 Subtypes_Statically_Match.
13108 (Create_Extra_Formals): Test for a named access parameter that is a
13109 controlling formal as an additional condition for adding an
13110 accessibility level formal. This can occur in the subp type created for
13111 dispatching calls in Expand_Dispatching_Call, and allows calling
13112 Create_Extra_Formals from that procedure rather than special-casing the
13113 extra formals there.
13114 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13115 when the function has a controlling result.
13116 (Check_Returns): Add much more knowledge of the optimization of local
13117 raise statements to gotos, to retain proper warnings in this case.
13118 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13119 nodes when looking for last statement.
13121 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13122 class-wide types visible through limited with clauses.
13123 (Add_One_Interp): If the operands are anonymous access types, the
13124 predefined operator on universal_access is immediately visibles
13125 (Find_Unique_Type): Handle anonymous access to subprogram types just as
13126 other anonymous access types.
13127 (Disambiguate): Take into account CIL convention.
13128 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13130 2007-06-06 Robert Dewar <dewar@adacore.com>
13132 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13133 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13134 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13135 Fix lower bound of tables.
13138 * nlists.adb: Ditto.
13139 (Prev_Node, Next_Node): Change index type to Int so that it properly
13140 covers the range First_Node_Id - 1 up.
13142 2007-06-06 Javier Miranda <miranda@adacore.com>
13143 Ed Schonberg <schonberg@adacore.com>
13144 Bob Duff <duff@adacore.com>
13145 Hristian Kirtchev <kirtchev@adacore.com>
13147 * exp_aggr.ads, exp_aggr.adb:
13148 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13149 in extension aggregates.
13150 (Flatten): Other conditions being met, an aggregate is static if the
13151 low bound given by component associations is different from the low
13152 bound of the base index type.
13153 (Packed_Array_Aggregate_Handled): If the component type is itself a
13154 packed array or record, the front-end must expand into assignments.
13155 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13156 Init_Pr, instead of Ancestor_Is_Expression.
13157 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13158 coextension chain root, either generate a list controller or use the
13159 already existing one.
13160 (Static_Array_Aggregate): New procedure to construct a positional
13161 aggregate that can be handled by the backend, when all bounds and
13162 components are compile-time known constants.
13163 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13164 types covering interface types into assignments.
13165 (Replace_Type): move to Build_Record_Aggr_Code.
13166 (Expand_Record_Aggr_Code): if the target of the aggregate is an
13167 interface type, convert to the definite type of the aggregate itself,
13168 so that needed components are visible.
13169 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13170 components and the context is an extended return statement do not
13171 create a transient block for it, to prevent premature finalization
13172 before the return is executed.
13173 (Gen_Assign): Do not generate a call to deep adjust routine if the
13174 component type is itself an array of controlled (sub)-components
13175 initialized with an inner aggregate.
13176 (Component_Check): New name for Static_Check. This name is now more
13177 appropriate, and documentation is added which was missing.
13178 (Component_Check): Add test for bit aligned component value
13179 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13180 Tagged_Comps, name is more appropriate given added function below.
13181 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13183 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13184 Javier Miranda <miranda@adacore.com>
13185 Robert Dewar <dewar@adacore.com>
13187 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13188 Terminated: Add unchecked type conversion from System.Address to
13189 System.Tasking.Task_Id when calling the predefined primitive
13191 Disable new Ada 05 accessibility check for JVM.NET targets, which
13192 cannot be implemented in a practical way.
13193 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13194 the sources always references the tag of the actual object. Therefore,
13195 if 'Tag is applied in the sources to class-wide interface objects we
13196 generate code that displaces "this" to reference the base of the object.
13197 (Expand_N_Attribute_Reference, case Size): Return specified size if
13198 known to front end.
13199 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13200 has code that displaces the pointer of the object to manage interface
13201 types. However this code must not be executed when the prefix is a
13202 subprogram. This bug caused the wrong expansion of the internally
13203 generated assignment that fills the dispatch table when the primitive
13204 is a function returning a class-wide interface type.
13205 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13206 Set_Attribute_Name for Name_Unaligned_Valid.
13208 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13209 Gary Dismukes <dismukes@adacore.com>
13211 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13212 If the initialization is the equivalent aggregate of the initialization
13213 procedure of the type, do not remove it.
13214 (Expand_N_Attribute_Definition_Clause): Exclude access variables
13215 initialized to null from having their expression reset to empty and
13216 note this exception in the comment.
13218 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13219 Robert Dewar <dewar@adacore.com>
13220 Ed Schonberg <schonberg@adacore.com>
13221 Gary Dismukes <dismukes@adacore.com>
13223 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13224 Add "with" and "use" clauses for Sem_Attr.
13225 (Expand_Current_Value): Do not replace occurences of attribute
13226 references where the prefix must be a simple name.
13228 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13229 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13230 Attribute_Requires_Simple_Name_Prefix.
13231 (Name_Modifies_Prefix): Body of new function.
13232 (Requires_Simple_Name_Prefix): Body of new function.
13233 (Resolve_Attribute, case Access): Improve error message for case of
13234 mismatched conventions.
13235 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13237 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13238 constrained subtype for a nominal unconstrained type, use its base type
13239 to check for conformance with the context.
13240 (Resolve_Attribute): Remove test of the access type being associated
13241 with a return statement from condition for performing accessibility
13242 checks on access attributes, since this case is now captured by
13243 Is_Local_Anonymous_Access.
13244 (Analyze_Access_Attribute): Set Address_Taken on entity
13245 (Analyze_Attribute, case Address): Set Address_Taken on entity
13246 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13247 validating an access attribute whose prefix is a current instance.
13248 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13249 applied to dispatching operations, if freezing is required then we set
13250 the attribute Has_Delayed_Freeze in the prefix's entity.
13251 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13252 current scope if access of local subprogram taken
13253 (Analyze_Access_Attribute): Check legality of self-reference even if the
13254 expression comes from source, as when a single component association in
13255 an aggregate has a box association.
13256 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13257 the prefix if it is a protected operation and the attribute is
13258 Unrestricted_Access.
13259 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13260 reference to the base type of the context, to force a constraint check
13261 when the context is an access subtype with an explicit constraint.
13262 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13263 node is rewritten as an interface conversion. leave unanalyzed after
13264 resolution, to ensure that type checking against the context will take
13267 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13268 Javier Miranda <miranda@adacore.com>
13269 Robert Dewar <dewar@adacore.com>
13271 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13272 wrapper when the full view of the controlling type of an inherited
13273 function that dispatches on result implements interfaces.
13274 (Expand_N_Object_Declaration): In cases where the type of the
13275 declaration is anonymous access, create finalization list for it.
13276 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13277 if the object has no explicit initialization, to match description of
13278 functionality of pragam Persistent_BSS.
13279 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13280 new function to build static aggregates, to replace initialization call
13281 when static initialization is desired.
13282 (Freeze_Type): Generate a list controller for an access type whenever
13283 its designated type has controlled anonymous access discriminants.
13284 (Build_Equivalent_Aggregate): New procedure to compute a static
13285 aggregate to be used as default initialization for composite types,
13286 instead of a generating a call to the initialization procedure for the
13288 (Build_Initialization_Call): When available, replace a call to the
13289 initialization procedure with a copy of the equivalent static aggregate
13291 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13292 declarations for objects of a class-wide interface type, rather than
13293 just identifiers, to prevent visibility problems.
13294 (Expand_N_Object_Declaration): When expanding the declaration for an
13295 object of a class-wide interface type, preserve the homonym chain of
13296 the original entity before exchanging it with that of the generated
13297 renaming declaration.
13298 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13299 active, because there is no way to handle the exception.
13300 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13301 to do a minimum decoration of the Access_Disp_Table list.
13302 (Expand_Record_Controller): Avoid the addition of the controller between
13303 the component containing the tag of a secondary dispatch table and its
13304 adjacent component that stores the offset to the base of the object.
13305 This latter component is only generated when the parent type has
13306 discriminants ---documented in Add_Interface_Tag_Components).
13307 (Apply_Array_Size_Check): Removed, no longer needed.
13308 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13309 components, create a Master_Entity for it only if it contains tasks.
13310 (Build_Init_Procedure): Suppress the tag assignment compiling under
13312 (Freeze_Record_Type): Remove code associated with creation of dispatch
13314 (Init_Secondary_Tags): Update type of actuals when generating calls to
13315 Ada.Tags.Set_Offset_To_Top
13316 (Stream_Operation_OK): Disable use of streams compiling under no
13318 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13319 if Has_Init_Expression set.
13320 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13321 Register_Primitive, which provides the same functionality.
13322 (Requires_Init_Proc): Return false in case of interface types.
13323 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13325 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13326 is always associated with a predefined primitive because the internal
13327 entities associated with interface types are not predefined primitives.
13328 Therefore, the call to Is_Internal is replaced by a call to the
13329 function Is_Predefined_Dispatching_Operation.
13330 (Make_Eq_If): When generating the list of comparisons for the
13331 components of a given variant, omit the controller component that is
13332 present if the variant has controlled components.
13334 2007-06-06 Javier Miranda <miranda@adacore.com>
13335 Hristian Kirtchev <kirtchev@adacore.com>
13336 Bob Duff <duff@adacore.com>
13338 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13339 handle the creation of finalization lists and calls for nested
13340 coextensions when the root of the chains is part of a return statement.
13341 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13343 (Expand_Record_Equality): Skip components that are interface types.
13344 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13345 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13346 with Rewrite_Coextension. Change the condition for detecting coextension
13348 (Is_Local_Access_Discriminant): Removed.
13349 (Rewrite_Coextension): New routine which rewrites a static coextension
13350 as a temporary and uses its unrestricted access in the construction of
13352 (Complete_Coextension_Finalization): New routine. Generate finalization
13353 attachment calls to all delayed coextensions.
13354 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13355 the allocator is not a coextension itself and has delayed coextensions.
13356 If the current allocator is controlled, but also a coextension, delay
13357 the generation of the finalization attachment call.
13358 Rename local variable "Node" to "Nod" in order to avoid confusion with
13360 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13361 limited types that are not inherently limited. Such an allocator is
13362 illegal, but is generated by the expander for a return statement, to
13363 copy the result onto the secondary stack. This is the only case where a
13364 limited object can be copied. Generate code to displace the pointer
13365 to the object if the qualified expression is a class-wide interface
13366 object. Such displacement was missing and hence the copy of the object
13368 (Apply_Accessibility_Check): Handle allocated objects initialized in
13370 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13371 and Expand_Allocator_Expression. Allocating class-wide interface objects
13372 this routine displaces the pointer to the allocated object to reference
13373 the component referencing the corresponding secondary dispatch table.
13374 Expand_Allocator_Expression): Add missing support to allocate class-wide
13375 interface objects initialized with a qualified expression.
13376 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13377 function result type, and use the finalization list associated with the
13378 function scope in that case (such an anonymous type should not be
13379 treated like an access parameter's type).
13381 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13382 Gary Dismukes <dismukes@adacore.com>
13383 Javier Miranda <miranda@adacore.com>
13385 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13386 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13387 required exception handler.
13388 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13389 properly the case of a function whose return type is a limited
13390 class-wide interface type. Modify the code of the accessibility
13391 check to handle class-wide interface objects. In this case we need to
13392 displace "this" to reference the primary dispatch table to get access
13393 to the TSD of the object (to evaluate its accessibility level).
13394 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13395 rather than a controlling result as one of the conditions for
13396 generating tests of the implicit BIP_Alloc_Form formal. The
13397 initialization assignment is also handled according to whether the
13398 result is tagged instead of controlling.
13399 In the case where the init assignment is inserted in the "then" part of
13400 the allocation conditional, rewrite the target to be a dereference of
13401 the implicit BIP_Object_Access formal.
13402 If the returned value is unconstrained and created on the secondary
13403 stack, mark the enclosing block and function so that the secondary
13404 stack is not reclaimed on return.
13405 Treat returns from functions with controlling results similarly to
13406 returns from functions with unconstrained result subtypes.
13407 If the object returned is unconstrained, and an allocator must be
13408 created for it, analyze the allocator once the block for the extended
13409 return is installed, to ensure that finalizable components
13410 of the expression use the proper finalization list. Guard the call to
13411 Move_Final_List with a check that there is something to finalize.
13412 (Make_Tag_Ctrl_Assignment): Use "old" handling
13413 of controlled type assignment for virtual machines, since new code uses
13414 unsupported features (such as direct access to bytes in memory).
13416 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13417 Ed Schonberg <schonberg@adacore.com>
13419 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13420 accessibility actual, check for the case of an aliased object that has
13421 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13422 we fall into processing for the attribute rather than the name of the
13424 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13425 formal has its address taken in the body, create a temporary to capture
13426 value. If the return type is a limited interface, do not treat the
13427 return value as Controlled.
13428 (Is_In_Place_Function): If the return type is a limited interface,
13429 treat as returning in place. The actual returned object may not always
13430 be limited, but the caller has to assume that it is returned in place.
13431 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13432 context of an allocator, use the correct finalization chain (that is,
13433 the chain belonging to the access type, rather than the chain belonging
13434 to the current scope).
13435 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13436 result type rather than a controlling result as a precondition for
13437 adding an allocation form actual to a build-in-place call.
13438 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13439 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13440 primitive in the dispatch tables. This work is now done by Make_DT when
13441 the type is frozen.
13442 (Register_Predefined_DT_Entry): Removed.
13443 (Add_Return): If end label is not present, use sloc of last statement
13444 for generated return statement in procedure, for better gdb behavior
13446 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13447 object address nodes to ensure proper processing by routines like
13449 (Expand_Call): Fix generation of validity check for parameter
13450 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13451 the allocation form parameter if the result subtype is constrained,
13452 except when the function has a controlling result.
13453 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13454 rather than Is_Controlled and Has_Controlled_Component, since we want to
13455 include class-wide result types in this treatment. Also test for a
13456 controlling result, since that also requires passing a finalization
13458 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13459 even when the result subtype is constrained, to handle calls involving
13460 controlling results.
13461 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13462 is now called even when the result subtype is constrained, to handle
13463 calls involving controlling results.
13464 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13465 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13466 now performs the test).
13467 (Make_Build_In_Place_Call_In_Object_Declaration):
13468 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13469 constrained, to handle calls involving controlling results.
13470 (Add_Return): Accomodate rewritten pattern from local raise to goto
13471 transformation, so that we still recognize an transfer statement
13472 and do the right thing here in that case.
13473 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13474 and end of subprogram code.
13475 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13476 support for primitives that are functions (without formals) with a
13477 controlling result.
13478 (Inherited_From_Formal): If the actual subtype has not generic parent
13479 type, it is not an actual for a formal derived type, and there is no
13480 operation to inherit from the formal.
13482 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13483 Thomas Quinot <quinot@adacore.com>
13485 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13486 inserted cleanup code appropriately for GDB use.
13487 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13488 exception handler for Deep_Adjust or Deep_Finalize.
13489 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13490 Raise_From_Controlled_Operation is available, use a call to that
13491 subprogram instead of a plain "raise Program_Error" node to raise
13492 Program_Error if an exception is propagated from an Adjust or Finalize
13494 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13495 appears in the optional statement list of a triggering alternative, the
13496 scope actions can be inserted directly there, and not in the list that
13497 includes the asynchronous select itself.
13499 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13500 Robert Dewar <dewar@adacore.com>
13501 Hristian Kirtchev <kirtchev@adacore.com>
13503 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13504 generated exception handler appropriately when debugging generated code.
13505 Deal properly with No_Exception_Propagation restriction mode.
13506 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13507 System.Address to System.Tasking.Task_Id when processing the result of
13508 the predefined primitive _disp_get_task_id.
13509 (Expand_N_Asynchronous_Select): Clarify comment.
13510 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13511 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13512 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13513 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13514 privals and for generated call to Complete_Entry_Body, for better gdb
13516 (Copy_Result_Type): Utility to construct a parameter and result profile
13517 for protected functions whose return type is an anonymous access to
13519 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13521 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13522 point when the local-raise-to-goto transformation has taken place.
13524 2007-06-06 Javier Miranda <miranda@adacore.com>
13525 Nicolas Setton <setton@adacore.com>
13527 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13528 functionality when the backend is generating code.
13529 Otherwise any serious error
13530 reported by the backend calling the frontend routine Error_Msg
13531 changes the Compilation_Mode to Check_Semantics, disables the
13532 functionality of this routine and causes the generation of
13533 spureous additional errors.
13535 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13536 debugging information now generated by the compiler for fat-pointer
13538 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13540 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13542 2007-06-06 Thomas Quinot <quinot@adacore.com>
13544 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13545 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13546 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13547 For a remote call to a function with a classwide return type, apply an
13548 E.4(18) check to the returned value.
13549 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13550 stream attributes of the designated type of an RACW, as they are not
13551 dispatching primitive operations.
13553 2007-06-06 Geert Bosch <bosch@adacore.com>
13555 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13557 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13559 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13560 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13562 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13564 2007-06-06 Javier Miranda <miranda@adacore.com>
13566 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13567 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13569 2007-06-06 Javier Miranda <miranda@adacore.com>
13571 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13572 deallocation of class-wide interface objects.
13573 (Expand_Dispatching_Constructor_Call): Take into account that if the
13574 result of the dispatching constructor is an interface type, the
13575 function returns a class-wide interface type; otherwise the returned
13576 object would be actual. The frontend previously accepted returning
13577 interface types because Expand_Interface_Actuals silently performed
13578 the management of the returned type "as if" it were a class-wide
13580 (Expand_Dispatching_Constructor_Call): Replace call to
13581 Make_DT_Access_Action by direct call to Make_Function_Call.
13583 2007-06-06 Robert Dewar <dewar@adacore.com>
13584 Ed Schonberg <schonberg@adacore.com>
13586 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13587 compute masking constant, since we now set Esize properly to the
13589 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13590 to match the alignment.
13591 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13592 packed arrays of 8 bits or less.
13594 * freeze.adb (Freeze_Entity): When freezing the formals of a
13595 subprogram, freeze the designated type of a parameter of an access type
13596 only if it is an access parameter.
13597 Increase size of C convention enumeration object
13598 (Freeze_Entity, array type case): Make sure Esize value is properly
13599 adjusted for the alignment if it is known.
13600 (Freeze_Entity, array type case): When checking bit packed arrays for
13601 the size being incorrect, check RM_Size, not Esize.
13602 (Freeze_Record_Type): Check for bad discriminated record convention
13603 (In_Exp_Body): Return true if the body is generated for a subprogram
13604 renaming, either an attribute renaming or a renaming as body.
13605 (Check_Itype): If the designated type of an anonymous access component
13606 is a non-protected subprogram type, indicate that it is frozen, to
13607 prevent out-of-scope freeze node at some subsequent call.
13608 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13609 only if the subprogram is neither imported nor exported, as well as the
13610 NCA descriptor class if the subprogram is exported.
13612 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13613 Arnaud Charlet <charlet@adacore.com>
13614 Robert Dewar <dewar@adacore.com>
13615 Gary Dismukes <dismukes@adacore.com>
13617 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13618 default initialization on an imported object, when there is no
13619 initialization call generated for it.
13620 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13623 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13624 Static_Elaboration_Desired.
13625 Remove pragma Thread_Body.
13626 Implement a new pragma No_Body
13627 Removes the Explicit_Overriding pragma
13628 Remove Optional_Overriding pragma
13629 (Prag): Deal with Universal_Aliasing.
13630 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13631 Pragma_CIL_Constructor): New names.
13633 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13634 uses the equivalent aggregate of a type must be treated as an implicit
13636 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13637 has none of the other categories.
13638 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13639 to apply Import to an object renaming declaration.
13641 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13642 from a C++ class should be declared as limited and that it will be
13643 considererd limited.
13644 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13645 should be declared as limited and that it will be considererd limited.
13646 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13647 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13648 (Analyze_Pragma): Deal with Universal_Aliasing.
13649 (Sig_Flags): Likewise.
13650 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13651 (Overflow_Checks_Unsuppressed): New flag.
13652 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13653 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13654 case of JVM or .NET targets, and compiling user code.
13655 Add debugging convenience routine rv
13657 2007-06-06 Robert Dewar <dewar@adacore.com>
13659 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13660 are interface type.
13661 (Build_Elementary_Input_Call): For floating-point use right type in the
13662 absence of strange size or stream size clauses.
13663 (Build_Elementary_Write_Call): Same fix
13664 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13665 set to value that does not match base type size.
13667 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13669 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13670 object of a limited type can be initialized with a call to a function
13671 that returns in place. If the limited type has unknown discriminants,
13672 and the underlying type is a constrained composite type, build an actual
13673 subtype from the function call, as is done for private types.
13674 (Side_Effect_Free): An expression that is the renaming of an object or
13675 whose prefix is the renaming of a object, is not side-effect free
13676 because it may be assigned through the renaming and its value must be
13677 captured in a temporary.
13678 (Has_Controlled_Coextensions): New routine.
13679 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13680 as is done for other limited types.
13681 (Non_Limited_Designated_Type): new predicate.
13682 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13684 Remove all handling of with_type clauses.
13686 * par-ch10.adb: Remove all handling of with_type clauses.
13688 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13689 checksum if the main source could not be parsed.
13690 (Loat_Unit): When processing a child unit, determine properly whether
13691 the parent unit is a renaming when the parent is itself a child unit.
13692 Remove handling of with_type clauses.
13694 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13695 (Set_Is_Static_Coextension): New procedure.
13696 (Has_Local_Raise): New function
13697 (Set_Has_Local_Raise): New procedure
13698 (Renaming_Exception): New field
13699 (Has_Init_Expression): New flag
13700 (Delay_Finalize_Attach): Remove because flag is obsolete.
13701 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13702 Remove all handling of with_type clauses.
13703 (Exception_Junk): Can now be set in N_Block_Statement
13705 2007-06-06 Vincent Celier <celier@adacore.com>
13706 Robert Dewar <dewar@adacore.com>
13708 * frontend.adb (Frontend): Return immediately if the main source could
13709 not be parsed, because of preprocessing errors.
13711 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13712 (Gnat1drv): Exit with errors if the main source could not be parsed,
13713 because of preprocessing errors.
13714 (Check_Rep_Info): New procedure
13716 2007-06-06 Robert Dewar <dewar@adacore.com>
13718 * g-hesorg.ads, g-heasor.ads,
13719 g-busorg.ads, g-bubsor.ads: Update documentation
13720 GNAT.Heap/Bubble_Sort_G is now pure
13722 2007-06-06 Robert Dewar <dewar@adacore.com>
13724 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13726 2007-06-06 Robert Dewar <dewar@adacore.com>
13727 Ed Schonberg <schonberg@adacore.com>
13729 * g-comlin.ads, g-comlin.adb:
13730 Add new warning for renaming of function return objects
13732 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13733 (Tree_Read): Use size of object instead of type'object_size, since the
13734 latter is incorrect for packed array types.
13735 (Tree_Write): Same fix
13737 * opt.ads: Add new warning for renaming of function return objects
13738 (Generating_Code): New boolean variable used to indicate that the
13739 frontend as finished its work and has called the backend to process
13740 the tree and generate the object file.
13741 (GCC_Version): Is now private
13742 (Static_Dispatch_Tables): New constant declaration.
13743 (Overflow_Checks_Unsuppressed): New flag.
13744 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13745 (List_Closure): New flag for gnatbind (-R)
13746 Zero_Formatting: New flag for gnatbind (-Z)
13747 (Special_Exception_Package_Used): New flag.
13748 (Warn_On_Unrepped_Components): New flag.
13750 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13751 unit is a compilation unit, rather than relying on its scope, so that
13752 Standard can be renamed.
13753 (Analyze_Object_Renaming): Add new warning for renaming of function
13755 Also reject attempt to rename function return object in Ada 83 mode.
13756 (Attribute_Renaming): In case of tagged types, add the body of the
13757 generated function to the freezing actions of the type.
13758 (Find_Type): A protected type is visible right after the reserved word
13759 "is" is encountered in its type declaration. Set the entity and type
13760 rather than emitting an error message.
13761 (New_Scope): Properly propagate Discard_Names to inner scopes
13762 (Check_Nested_Access): New procedure.
13763 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13764 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13766 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13767 Add new warning for renaming of function return objects
13768 (Check_References): Suppress warnings for objects whose type or
13769 base type has Warnings suppressed.
13770 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13771 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13773 2007-06-06 Vincent Celier <celier@adacore.com>
13774 Emmanuel Briot <briot@adacore.com>
13775 Olivier Hainque <hainque@adacore.com>
13777 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13778 absolute value of Header.Block_Size when displaying the freed physical
13780 (Allocate): Compute Storage_Address using Integer_Address, not
13781 Storage_Offset, because the range of Storage_Offset may not be large
13783 (Configure): New parameter Low_Level_Traces
13784 (Allocate, Deallocation, Free_Physically): Added low-level traces
13785 (Configure): new parameter Errors_To_Stdout.
13786 (Output_File): new subprogram
13787 (Deallocate, Dereference): Send error messages to the proper stream
13788 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13789 documented. Previous code would send it to the current output file
13790 defined in GNAT.IO, which might not be stdout
13791 (Is_Valid): Adjust comment to mention that a positive reply means that
13792 Header_Of may be used to retrieve the allocation header associated with
13793 the subprogram Storage address argument. Return False early if this
13794 address argument is misaligned.
13796 2007-06-06 Vincent Celier <celier@adacore.com>
13798 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13800 (ASIS_Main): New global variable
13801 (Get_Closure): New procedure
13802 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13803 check, metric or pretty. Call Get_Closure in this case.
13804 (Check_Files): For GNAT LIST, check all sources of all projects when
13805 All_Projects is True.
13806 (GNATCmd): Accept -U for GNAT LIST
13808 2007-06-06 Vincent Celier <celier@adacore.com>
13810 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13812 Correct error message when invocation of the linker fails
13813 Add explicit size clause for the C imported variables
13814 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13815 we expect char size.
13816 Read target parameters earlier, since this is needed to set
13817 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13820 2007-06-06 Vincent Celier <celier@adacore.com>
13823 Add 3 spaces before the default project directory when displaying
13824 the project search path.
13825 Add new command line switch '-l' to display license information.
13827 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13829 * gmem.c: Add support for timestamps on memory operations.
13831 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13832 operations (not used currently, just foundation for future
13833 enhancements). Add possibility to perform full dump of gmem.out file.
13834 (Print_Back_Traces): Declare accesses to root arrays constants since
13835 they aren't modified.
13836 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13838 2007-06-06 Vincent Celier <celier@adacore.com>
13840 * gnatsym.adb: Update Copyright notice
13841 (Parse_Cmd_Line): Accept new switch -D
13842 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13845 * prj.ads (Policy): New policy Direct
13846 (Yes_No_Unknown): New enumeration type
13847 (Project_Data): New component Libgnarl_Needed
13849 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13850 use the untouched pathname casing.
13851 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13852 proper casing on non case-sensitive platforms like Windows.
13853 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13854 on all platforms, as it is not possible to know which one is allowed
13855 before processing the project files.
13856 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13857 specified when symbol policy is Direct. Check that when there is a
13858 symbol file defined (either by default or with attribute
13859 Library_Symbol_File) it is not the same as the reference symbol file.
13860 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13861 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13862 extending projects.
13863 (Record_Ada_Source): Record a source that has been locally removed in an
13866 * symbols.ads (Policy): New policy Direct
13868 * symbols-vms.adb (Initialize): Take new policy Direct in case
13871 2007-06-06 Vincent Celier <celier@adacore.com>
13873 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13874 Correct obvious bug (return Dir; instead of return Directory;).
13875 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13877 2007-06-06 Thomas Quinot <quinot@adacore.com>
13879 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13880 they have UNIX line endings (LF only) even on Windows, and thus pass
13881 all GNAT style checks.
13883 2007-06-06 Emmanuel Briot <briot@adacore.com>
13885 * g-regpat.adb (Quote): Fix improper quoting of '.'
13887 2007-06-06 Thomas Quinot <quinot@adacore.com>
13889 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13890 default, set False on a per-runtime basis.
13891 (Need_Netdb_Buffer): New constant.
13893 * g-socket.ads, g-socket.adb: Import new package
13894 GNAT.Sockets.Thin.Task_Safe_NetDB.
13895 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13896 binding to obtain proper message.
13897 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13898 Replace various occurrences of Arry (Arry'First)'Address with the
13899 equivalent Arry'Address (GNAT always follows implementation advice from
13901 (Get_Host_By_Address, Get_Host_By_Name,
13902 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13903 instead, rely on platform-specific task safe netdb operations provided
13906 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13907 parameter Process_Blocking_IO.
13908 (Host_Error_Messages): Add stub body.
13909 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13910 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13911 Safe_Getservbyport): Move functions into new child package
13913 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13914 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13915 (In_Addr): Add alignment clause.
13917 2007-06-06 Robert Dewar <dewar@adacore.com>
13919 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13920 Add note about symbolic traceback
13922 2007-06-06 Pascal Obry <obry@adacore.com>
13924 * hostparm.ads (Normalized_CWD): Use the host directory separator
13925 instead of the hardcoded forward slash which is not the proper
13926 character on Windows for example.
13927 (Java_VM): Removed.
13929 2007-06-06 Vincent Celier <celier@adacore.com>
13930 Arnaud Charlet <charlet@adacore.com>
13932 * a-clrefi.adb, a-clrefi.ads: New files
13934 * impunit.adb: Add s-os_lib in the list of user visible units.
13935 (Non_Imp_File_Names_95): Add a-clrefi to this list
13936 Remove obsolete run-time entries.
13937 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13938 "a-exetim" -- Ada.Execution_Time
13939 "a-extiti" -- Ada.Execution_Time.Timers
13941 * mlib-prj.ads, mlib-prj.adb
13942 (Build_Library): Use untouched object dir and library dir. At the
13943 same time makes sure that the checks are done using the canonical
13944 form. Removes hard-coded directory separator and use the proper host
13946 (Process_Project): Do not look in object directory to check if libgnarl
13947 is needed for a library, if there is no object directory.
13948 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13950 (Build_Library): When invoking gnatbind, use a response file if the
13951 total size of the arguments is too large.
13953 * Makefile.rtl: (g-sttsne): New object file.
13954 Add entry for a-clrefi, s-utf_32, System.Exceptions
13956 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13957 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13958 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13959 Change g-string to s-string, g-os_lib to s-os_lib
13960 Change all g-utf_32 references to s-utf_32
13962 2007-06-06 Tristan Gingold <gingold@adacore.com>
13963 Olivier Hainque <hainque@adacore.com>
13965 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13966 LIB$STOP is called to raise an exception and the IP of the exception
13967 is the instruction right after the call.
13968 (__gnat_adjust_context_for_raise, AIX): Implement.
13969 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13970 adjust_context_for_raise before Raise_From_Signal_Hanler.
13971 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13972 siginfo is passed to the handler, necessary to let the zcx propagation
13973 engine unwind past it.
13975 2007-06-06 Olivier Hainque <hainque@adacore.com>
13977 * initialize.c (__gnat_initialize for vxworks): Update documentation
13978 on the ZCX support, using different sets of crtstuff objects than with
13981 2007-06-06 Robert Dewar <dewar@adacore.com>
13983 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13985 (Layout_Type): Fix recomputation of size from alignment.
13987 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13988 Javier Miranda <miranda@adacore.com>
13990 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13991 association in an instance.
13992 (Copy_Generic_Node): If the node is a string literal, no need to copy
13994 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13995 grandparent of the entity.
13996 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13997 to simplify handling of formal interfaces that derive from other formal
13999 (Instantiate_Subprogram_Body): The defining unit name of the body of
14000 the instance should be a defining identifier.
14001 (Install_Formal_Packages): make global to the package, for use in
14002 instantiations of child units.
14003 (Analyze_Package_Instantiation): Do not attempt to set information on an
14004 enclosing master of an entry when expansion is disabled.
14005 (Instantiate_Type): If the actual is a tagged synchronized type and the
14006 generic ancestor is an interface, create a generic actual for the
14007 corresponding record.
14008 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
14009 declaration, to ensure that the interface list is processed correctly.
14010 (Inline_Instance_Body): If enclosing scope is an instance body, remove
14011 its entities from visibiility as well.
14012 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
14013 given with a named association, analyze the expression only, not the
14014 discriminant association itself.
14015 (Reset_Entity): If the analysis of a selected component is transformed
14016 into an expanded name in the prefix of a call with parameters, do not
14017 transform the original node into an expanded name, to prevent visibility
14018 errors in the case of nested generics.
14019 (Check_Private_View): For an array type, check whether the index types
14020 may need exchanging.
14022 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14023 Vincent Celier <celier@adacore.com>
14025 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
14026 since both are separated.
14027 Add support for imported CIL packages.
14028 Add further special handling of "value_type" for CIL.
14029 Add special handling of pragma Import for CIL.
14031 * make.ads, make.adb: When switch -eS is used, direct all outputs to
14032 standard output instead of standard error, except errors.
14033 (Absolute_Path): Use untouched casing for the parent directory.
14034 (Add_Library_Search_Dir): Use the untouched directory name.
14035 (Add_Source_Search_Dir): Idem.
14036 (Change_To_Object_Directory): Update output to use proper casing.
14037 (Create_Binder_Mapping_File): Use the untouched filename to set
14039 (Gnatmake): Use untouched library and executable directory names.
14040 (Insert_Project_Sources): Use untouched filename for spec and body.
14041 (Is_In_Object_Directory): Use untouched object directory.
14042 (Mark_Directory): Idem.
14043 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14044 contains the non-canonical filename in all cases.
14045 (Change_To_Object_Directory): In verbose mode, display the name of the
14046 object directory we're changing to.
14047 (Compile_Sources): Make sure, when a project file is used, to compile
14048 the body of the unit, when there is one, even when only the spec is
14049 recorded in an ALI file.
14050 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14052 (Report_Compilation_Failed): New procedure
14053 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14054 procedures moved from the spec to the body.
14055 (Extract_Failure): Removed, not used
14056 Replace explicit raises of exception Bind_Failed and Link_Failed with
14057 calls to Make_Failed with the proper message.
14058 Replace explicit raises of exception Compilation_Failed with calls to
14059 procedure Report_Compilation_Failed.
14060 (Initialize): Create mapping files unconditionally when using project
14063 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14064 Pragma_CIL_Constructor): New names.
14066 * targparm.ads, targparm.adb
14067 (Compiler_System_Version): Removed, no longer used.
14068 (Get_Target_Parameters): Relax checks on system.ads validity. Add
14069 handling of two new system flags: JVM and CLI.
14071 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14072 Arnaud Charlet <charlet@adacore.com>
14074 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14075 time, use the default s-interr body that provides interrupt support
14077 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14078 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14079 g-soccon.ads, and s-taprop.adb for the marte run time.
14080 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14081 timers are supported on marte.
14082 (EH_MECHANISM for marte): Do not use ZCX.
14083 (THREADSLIB for marte): Use -lmarte.
14084 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14085 Add mlib-tgt-specific.o to gnatmake objects
14086 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14087 longer of MLib.Tgt.
14088 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14089 6, either kernel or rtp, use a specialized version of s-osinte.ads.
14091 2007-06-06 Pascal Obry <obry@adacore.com>
14093 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14095 2007-06-06 Vincent Celier <celier@adacore.com>
14097 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14098 separator, use instead the proper host directory separator.
14099 (Copy_ALI_Files): Make sure that an already existing ALI file in the
14100 ALI copy dir is writable, before doing the copy.
14102 * mlib-utl.ads, mlib-utl.adb:
14103 (Gcc): If length of command line is too long, put the list of object
14104 files in a response file, if this is supported by the platform.
14105 (Ar): If invocation of the archive builder is allowed to be done in
14106 chunks and building it in one shot would go above an OS dependent
14107 limit on the number of characters on the command line, build the archive
14110 2007-06-06 Vincent Celier <celier@adacore.com>
14112 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14113 of specified object file is not equal to base name of source.
14115 2007-06-06 Javier Miranda <miranda@adacore.com>
14116 Hristian Kirtchev <kirtchev@adacore.com>
14117 Ed Schonberg <schonberg@adacore.com>
14119 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14120 the full type declaration.
14121 (Analyze_Component_Declaration): Add local variable E to capture the
14122 initialization expression of the declaration. Replace the occurences of
14123 Expression (N) with E.
14124 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14125 limited interface object with a function call.
14126 (Array_Type_Declaration): If the declaration lacks subtype marks for
14127 indices, create a simple index list to prevent cascaded errors.
14128 (Is_Null_Extension): Ignore internal components created for secondary
14129 tags when checking whether a record extension is a null extension.
14130 (Check_Abstract_Interfaces): Add missing support for interface subtypes
14131 and generic formals.
14132 (Derived_Type_Declaration): Add missing support for interface subtypes
14133 and generic formals.
14134 (Analyze_Object_Declaration): If an initialization expression is
14135 present, traverse its subtree and mark all allocators as static
14137 (Add_Interface_Tag_Component): When looking for components that may be
14138 secondary tags, ignore pragmas that can appear within a record
14140 (Check_Abstract_Overriding): an inherited function that dispatches on
14141 result does not need to be overriden if the controlling type is a null
14143 (Mentions_T): Handle properly a 'class attribute in an anonymous access
14144 component declaration, when the prefix is an expanded name.
14145 (Inherit_Component): If the derivation is for a private extension,
14146 inherited components remain visible and their ekind should not be set
14148 (Find_Type_Of_Object): In the case of an access definition, always set
14149 Is_Local_Anonymous_Access. We were previously not marking the anonymous
14150 access type of a return object as a local anonymous type.
14151 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14152 range with character literal bounds.
14153 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14154 (Access_Subprogram_Declaration): Indicate that the type declaration
14155 depends on an incomplete type only if the incomplete type is declared
14157 (Analyze_Subtype_Declaration): Handle properly subtypes of
14158 synchronized types that are tagged, and that may appear as generic
14160 (Access_Subprogram_Declaration): An anonymous access to subprogram can
14161 appear as an access discriminant in a private type declaration.
14162 (Add_Interface_Tag_Components): Complete decoration of the component
14163 containing the tag of a secondary dispatch table and the component
14164 containing the offset to the base of the object (this latter component
14165 is only generated when the parent type has discriminants --as documented
14167 (Inherit_Components): Use the new decoration of the tag components to
14168 improve the condition that avoids inheriting the components associated
14169 with secondary tags of the parent.
14170 (Build_Discriminanted_Subtype): Indicate to the backend that the
14171 size of record types associated with dispatch tables is known at
14173 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14174 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14175 to include task, protected, and synchronized interfaces as limited
14177 (Process_Discriminants): Remove the setting of
14178 Is_Local_Anonymous_Access on the type of (anonymous) access
14179 discriminants of nonlimited types.
14180 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14181 class-wide entity it is is already present. This situation occurs if
14182 the limited-view has been previously built.
14183 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14185 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14188 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14190 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14191 of the type that specify the position of interface tags when the type
14192 inherits discriminated array components from the parent type.
14193 If a component is initialized with a box, check for the presence of a
14194 default expression in its declaration before using its default
14195 initialization procedure.
14196 (Resolve_Record_Aggregate): If a component is box-initialized, and the
14197 component type has a discriminants, create a partial aggregate for it
14198 by copying the discriminants of the component subtype.
14199 Reject attempt to initialize a discriminant with a box.
14200 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14201 associated with dispatch tables is known at compile time.
14202 (Get_Value): If an association in a record aggregate has a box
14203 association, and the corresponding record component has a default
14204 expression, always copy the default expression, even when the
14205 association has a single choice, in order to create a proper
14206 association for the expanded aggregate.
14208 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14209 Robert Dewar <dewar@adacore.com>
14211 * par-ch12.adb (P_Generic_Associations): The source position of an
14212 Others association is that of the others keyword, not that of the token
14213 that follows the box.
14214 (P_Formal_Type_Definition): Handle formal access types that carry a
14215 not null indicator.
14217 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14218 multiple identifier are present, save Scan_State before scanning the
14219 colon, to ensure that separate trees are constructed for each
14221 (P_Identifier_Declarations): For object declaration, set new flag
14222 Has_Init_Expression if initialization expression present.
14223 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14224 Improve NOT NULL error messages
14226 2007-06-06 Robert Dewar <dewar@adacore.com>
14228 * par-ch4.adb: (P_Name): Recover from literal used as name
14230 2007-06-06 Vincent Celier <celier@adacore.com>
14232 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14233 defaulted to False.
14234 In the "not" case, recursive call with Complemented set to True.
14235 Do not allow "or" or "and" operators when Complemented is True.
14237 2007-06-06 Vincent Celier <celier@adacore.com>
14239 * prj.adb (Project_Empty): Gives default value for new component
14242 * prj-attr.ads: Minor reformatting
14244 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14245 directory using the untouched casing.
14246 (For_All_Source_Dirs): Idem.
14248 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14249 directories specified with switches -aP.
14250 (Add_Search_Project_Directory): New procedure
14251 (Initialize_Project_Path): Put the directories in table
14252 Search_Directories in the project search path.
14253 (Initialize_Project_Path): For VMS, transform into canonical form the
14256 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14258 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14259 true if configurable run-time or No_Run_Time is set.
14260 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14261 processing an unit which is not the one being compiled.
14263 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14265 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14266 Replace UC by Ada.UC
14268 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14269 Replace UC by Ada.UC
14271 2007-06-06 Robert Dewar <dewar@adacore.com>
14273 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14275 2007-06-06 Robert Dewar <dewar@adacore.com>
14277 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14278 Remove no longer used nodes.
14280 2007-06-06 Javier Miranda <miranda@adacore.com>
14281 Ed Schonberg <schonberg@adacore.com>
14282 Robert Dewar <dewar@adacore.com>
14284 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14285 on obsolescent withed unit in case of limited-withed units.
14286 (Analyze_Compilation_Unit): Add guard to code that removed an
14287 instantiation from visibility, to prevent compiler aborts when
14288 instantiation is abandoned early on.
14289 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14290 current unit being analyzed, and Distinguish local incomplete types
14291 from limited views of types declared elsewhere.
14292 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14293 to state that the class-wide entity is shared by the limited-view
14295 (Analyze_With_Clause): Improve placement of flag for case of
14296 unimplemented unit.
14297 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14298 manner similar to GNAT.Current_Exception. This is a violation of
14299 restriction (No_Exception_Propagation), and also inhibits the
14300 optimization of local raise to goto.
14301 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14302 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14303 for violation of restriction No_Exception_Propagation.
14305 2007-06-06 Javier Miranda <miranda@adacore.com>
14306 Hristian Kirtchev <kirtchev@adacore.com>
14307 Gary Dismukes <dismukes@adacore.com>
14309 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14310 use of entity Exception_Occurrence if it is not available in the
14313 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14314 concurrent types are declared within an Ada 2005 generic, build their
14315 corresponding record types since they are needed for overriding-related
14317 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14318 protected type does not implement a task interface or a nonlimited
14320 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14321 type does not implement a protected interface or a nonlimited interface.
14322 (Single_Task_Declaration, Single_Protected_Declaration): use original
14323 entity for variable declaration, to ensure that debugging information
14324 is correcty generated.
14325 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14326 routines if the expander is not active.
14327 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14328 raise, since special things happen for task exception handlers.
14330 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14331 concurrent types declared within a generic.
14332 (Check_Dispatching_Operation): Do not emit warning about late interface
14333 operations in the context of an instance.
14334 (Check_Dispatching_Call): Remove restriction against calling a
14335 dispatching operation with a limited controlling result.
14336 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14337 Register_Interface_DT_Entry by calls to Register_Primitive.
14338 (Check_Dispatching_Formals): Handle properly a function with a
14339 controlling access result.
14341 2007-06-06 Robert Dewar <dewar@adacore.com>
14342 Arnaud Charlet <charlet@adacore.com>
14344 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14345 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14346 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14347 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14348 message when using a VM, since this attribute is not supported.
14349 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14351 * usage.adb: Add new warning for renaming of function return objects
14352 Indicate that -gnatwp and -gnatwP concern front-end inlining
14353 Add line for -gnatyg
14354 Add usage information for -gnatw.c/C
14356 2007-06-06 Robert Dewar <dewar@adacore.com>
14357 Ed Schonberg <schonberg@adacore.com>
14360 (Find_Var): Do not consider function call in test for infinite loop
14361 warning if warnings set off for function entity.
14362 (One_Bound): Do not create a temporary for a loop bound if it is a
14364 (Analyze_Assignment): Traverse the right hand side of an assignment and
14365 mark all allocators as static coextensions.
14366 (Analyze_Assignment): Exempt assignments involving a dispatching call
14367 to a function with a controlling access result from the check requiring
14368 the target to be class-wide.
14370 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14371 Ed Schonberg <schonberg@adacore.com>
14372 Robert Dewar <dewar@adacore.com>
14373 Javier Miranda <miranda@adacore.com>
14375 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14376 chain of coextensions when an allocator serves as the root of such a
14378 (Propagate_Coextensions): Remove the test for the root being an
14380 (Resolve_Allocator): Add condition to ensure that all future decoration
14381 occurs on an allocator node. Add processing and cleanup for static
14383 (Valid_Conversion): If the operand type is the limited view of a
14384 class-wide type, use the non-limited view is available to determine
14385 legality of operation.
14386 (Ambiguous_Character): move to spec, for use elsewhere.
14387 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14388 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14389 character literals.
14390 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14391 Do_Division_Check flag explicitly.
14392 (Resolve_Actuals): If the actual is of a synchronized type, and the
14393 formal is of the corresponding record type, this is a call to a
14394 primitive operation of the type, that is declared outside of the type;
14395 the actual must be unchecked-converted to the type of the actual
14396 (Resolve_Call): Kill all current values for any subprogram call if
14397 flag Suppress_Value_Tracking_On_Call is set.
14398 (Resolve_Type_Conversion): Generate error message the the operand
14399 or target of interface conversions come from a limited view.
14400 (Check_Infinite_Recursion): Ignore generated calls
14401 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14402 that an expression that constrains an access discriminant in an
14403 allocator does not denote an object with a deeper level than the
14404 allocator's access type.
14405 (Resolve_Allocator): In the case of an allocator initialized by an
14406 aggregate of a discriminated type, check that associations for any
14407 access discriminants satisfy accessibility requirements by calling
14408 Check_Allocator_Discrim_Accessibility.
14409 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14410 subprogram types in the same fashion as other anonymous access types.
14411 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14412 message that is not a continuation message.
14413 (Resolve_Type_Conversion): Add missing support for conversion to
14415 (Resolve_Actuals): Introduce a transient scope around the call if an
14416 actual is a call to a function returning a limited type, because the
14417 resulting value must be finalized after the call.
14418 (Resolve_Actuals): If the call was given in prefix notations, check
14419 whether an implicit 'Access reference or implicit dereference must be
14420 added to make the actual conform to the controlling formal.
14422 2007-06-06 Robert Dewar <dewar@adacore.com>
14423 Javier Miranda <miranda@adacore.com>
14425 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14426 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14427 overriding of an inherited private subprogram now there is no need to
14428 inherit its dispatching slot and reduce the size of the dispatch table.
14429 Set_All_DT_Position now ensures that the same slot is now assigned to
14430 both entities. This is required to statically build the dispatch table.
14431 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14432 of calling Set_All_DT_Position to re-evaluate the position of the
14433 entries in the dispatch table. Such reevaluation is not desired if
14434 the tagged type is already frozen.
14436 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14437 Gary Dismukes <dismukes@adacore.com>
14438 Robert Dewar <dewar@adacore.com>
14439 Javier Miranda <miranda@adacore.com>
14441 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14442 reference acts as an lvalue when the attribute name modifies the prefix
14443 (Is_Coextension_Root): New routine.
14444 (Mark_Static_Coextensions): New routine.
14445 (Type_Access_Level): Revise code for checking the level of the
14446 anonymous access type of a return object.
14447 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14448 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14449 retrieval of the corresponding controlling record type.
14450 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14451 concurrent types declared within a generic as well as class wide types.
14452 Emit a mode incompatibility error whenever a protected entry or routine
14453 override an interface routine whose first parameter is not of mode
14454 "out", "in out" or access to variable.
14455 (Overrides_Synchronized_Primitive): Rename to
14456 Find_Overridden_Synchronized_Primitive.
14457 (Collect_Interface_Components): New subprogram that collects all the
14458 components of a tagged record containing tags of secondary dispatch
14460 (Add_Global_Declaration): New procedure
14461 (Abstract_Interface_List): Handle properly the case of a subtype of a
14463 (Type_Access_Level): In the case of a type whose parent scope is a
14464 return statement, call Type_Access_Level recursively on the enclosing
14465 function's result type to determine the level of the return object's
14467 (Build_Elaboration_Entity): Build name of elaboration entity from the
14468 scope chain of the entity, rather than the unit name of the file name.
14469 (Check_Nested_Access): New procedure.
14470 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14471 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14472 (Get_Renamed_Entity): Utility routine for performing common operation
14473 of chasing the Renamed_Entity field of an entity.
14475 2007-06-06 Robert Dewar <dewar@adacore.com>
14477 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14479 (Check_A_Call): Add check for entry call which was causing blowup
14481 2007-06-06 Olivier Hainque <hainque@adacore.com>
14483 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14484 special code on ia64-vms to handle major incompatibilities between the
14485 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14486 this routine with a very different set of arguments and expectations on
14489 2007-06-06 Thomas Quinot <quinot@adacore.com>
14491 * socket.c (__gnat_close_signalling_fd): New function.
14492 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14493 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14494 New supporting functions for task safe Netdb operations.
14496 2007-06-06 Thomas Quinot <quinot@adacore.com>
14497 Olivier Hainque <hainque@adacore.com>
14499 * a-except-2005.ads, a-except-2005.adb
14500 (Raise_From_Controlled_Operation): New procedure in
14501 (private part of) Ada.Exceptions (standard runtime version). Used to
14502 provide informational exception message when Program_Error is raised as
14503 a result of an Adjust or Finalize operation propagating an exception.
14504 (Rmsg_28): Fix description for E.4(18) check.
14505 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14506 propagation starts, to let debuggers know about the event in a reliable
14508 Take the address of E and dereference to make sure it is homed on stack
14509 and prevent the stores from being deleted, necessary for proper
14510 debugger behavior on "break exception" hits.
14511 (Local_Raise): Moved to System.Exceptions
14513 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14514 exception message from the current occurrence and raise Program_Error
14515 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14517 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14518 Arnaud Charlet <charlet@adacore.com>
14520 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14523 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14524 priority associated to a lock.
14526 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14527 assertion to take into account case of no abort restriction.
14528 (Initialize_Protection_Entries): Add initialization for the field
14529 New_Ceiling associated to the protected object.
14530 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14533 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14534 since this function needs to be set consistently with Update_Exception.
14536 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14537 since this function needs to be set consistently with Update_Exception.
14539 * s-taskin.ads: Update comments on
14540 Interrupt_Server_Blocked_On_Event_Flag.
14541 (Unbind_Handler): Fix handling of server_task wakeup
14542 (Server_Task): Set self's state so that Unbind_Handler can take
14543 appropriate actions.
14544 (Common_ATCB): Now use a constant from System.Parameters to determine
14545 the max size of the Task_Image field.
14547 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14548 Initialize_Analyzer function.
14549 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14550 take into account case of no abort restriction.
14551 ([Vulnerable_]Complete_Master): Modify assertion.
14553 * s-tataat.adb (Finalize): Use the nestable versions of
14554 Defer/Undefer_Abort.
14556 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14558 * s-tpobop.ads: Update comments.
14560 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14561 of locking the object manually, to avoid inconsistencies between
14562 Lock/Unlock_Entry assertions.
14564 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14566 application and System.Parameters.No_Abort is True.
14567 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14568 (Unbind_Handler): Fix handling of server_task wakeup
14569 (Server_Task): Set self's state so that Unbind_Handler can take
14570 appropriate actions.
14572 2007-06-06 Thomas Quinot <quinot@adacore.com>
14574 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14575 declarations instead of an explicit null body, for conciseness.
14577 2007-06-06 Robert Dewar <dewar@adacore.com>
14579 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14580 illegal aggregate and the type is still Any_Composite.
14581 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14583 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14585 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14586 to prevent subsequent expansion.
14588 2007-06-06 Robert Dewar <dewar@adacore.com>
14590 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14592 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14593 Robert Dewar <dewar@adacore.com>
14595 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14597 (Write_Itype): Handle case of string literal subtype, which
14598 comes up in this context.
14599 (Update_Itype): when debugging expanded code, update sloc of itypes
14600 associated with defining_identifiers and ranges, for gdb use.
14601 (Sprint_Node_Actual): Add static keyword to object or exception
14602 declaration output if Is_Statically_Allocated is True.
14603 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14604 or task body, so that the tree carries the proper Sloc information for
14606 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14608 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14610 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14611 compile time, to avoid dynamic memory allocation
14612 (Elaboration code): Only use dynamic memory allocation when needed.
14614 2007-06-06 Quentin Ochem <ochem@adacore.com>
14616 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14618 (Stack_Analyzer): Added field "Overflow_Guard"
14619 (Task_Result): Added field "Overflow_Guard".
14620 (Index_Str): New constant.
14621 (Task_Name_Str): New constant.
14622 (Actual_Size_Str): New constant.
14623 (Pattern_Array_Element_Size): New constant.
14624 (Get_Usage_Range): New subprogram.
14625 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14626 Now align the output.
14628 (Initialize): Added value for Overflow_Guard.
14629 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14630 Update the value of the overflow guard according to the actual
14631 beginning of the pattern array.
14632 (Initialize_Analyzer): Added parameter Overflow_Guard.
14633 Take this parameter into accound when computing the max size.
14634 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14635 (Report_Result): Removed extra useless procedure.
14636 Updated call to Output_Result.
14637 Moved full computation of the Task_Result here.
14639 2007-06-06 Thomas Quinot <quinot@adacore.com>
14641 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14642 Thread_Blocking_IO, always True by default, set False on a per-runtime
14644 Add Windows-specific constants
14645 Add new constant Need_Netdb_Buffer.
14646 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14647 not, whether to use getXXXbyYYY_r.
14649 * gsocket.h: Add new constant Need_Netdb_Buffer.
14650 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14651 not, whether to use getXXXbyYYY_r.
14653 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14655 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14656 than their first call.
14657 Add type Dummy_Communication_Block used in the generation of the pre-
14658 defined dispatching primitive _disp_asynchronous_select.
14659 (Storage_Element): Put Pragma Universal_Aliasing on it.
14661 2007-06-06 Vincent Celier <celier@adacore.com>
14663 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14666 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14667 letter if it is not followed by a '/' or a '\'.
14668 (Windows): New Boolean function
14670 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14672 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14674 (Containing_Directory): Raise Use_Error when the directory is a root
14676 (Extension): When returning the result, use a conversion to Result_Type,
14677 not a qualification.
14679 2007-06-06 Robert Dewar <dewar@adacore.com>
14681 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14682 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14684 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14685 Warn_On_Non_Local_Exception to False, to turn off warnings for
14686 No_Exception_Propagation in ZFP runtime.
14687 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14689 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14691 2007-06-06 Vincent Celier <celier@adacore.com>
14693 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14696 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14697 (Scan_Make_Switches): Recognize new switch -aP
14699 2007-06-06 Matthew Gingell <gingell@adacore.com>
14700 Jose Ruiz <ruiz@adacore.com>
14702 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14703 VxWorks task descriptor in the Ada run time, call a C subprogram
14704 (__gnat_get_stack_info) that extracts the required information.
14706 * sysdep.c: Back out temporary lynxos workaround.
14707 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14708 time the stack information associated to the currently executing task.
14709 Only VxWorks systems require this function.
14711 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14713 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14714 add the stack bias if the offset is computed from a frame address.
14715 (__gnat_backtrace): Adjust for above change.
14717 2007-06-06 Thomas Quinot <quinot@adacore.com>
14719 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14720 PE_Non_Transportable_Actual.
14721 (By_Descriptor_Last): New constant.
14722 (By_Copy_Return): Likewise.
14724 2007-06-06 Vincent Celier <celier@adacore.com>
14726 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14729 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14730 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14731 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14732 Add missing comment for /OPTIMIZE=SPACE
14733 Add entry for OPTIMIZE=SPACE
14734 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14735 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14737 2007-06-06 Vincent Celier <celier@adacore.com>
14738 Robert Dewar <dewar@adacore.com>
14740 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14743 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14744 Document gnatbind switch -a
14745 (case Constructions): Document that variables declarations are allowed
14746 for previously declared variables.
14747 Fix external lib project example
14748 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14749 Indicate that "#if not X or Y then" is not allowed in input files to
14751 Document gnatw.x and gnatw.X warning flags
14752 Mention -Winline switch to activate warnings when back-end inlining is
14754 Add gnatcheck rule descriptions
14755 Describe how to use the GNAT driver to call a tool on a closure.
14756 Describe how to run project-wide checks or metrics.
14757 Document gnatbind's -R option
14758 Updated to account for Ada 2005 support
14760 * gnat_rm.texi (Case Construction): Allow variable declarations for
14761 previously declared variables.
14762 (Representation Clauses and Pragmas): Lift restriction on alignment
14763 clauses for record types.
14764 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14765 Document No_Exception_Propagation restriction
14766 Document No_Body pragma
14767 Updated to account for Ada 2005 support; corrected some typos
14768 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14770 * gnat-style.texi: Make it clear that we never use mode IN for
14771 procedures or functions
14773 * ug_words: Add entries for -gnatw.x and -gnatw.X
14774 Add entries for -gnatw.c/.C
14776 2007-06-06 Pascal Obry <obry@adacore.com>
14777 Vincent Celier <celier@adacore.com>
14779 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14780 dirs and library name.
14781 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14783 (Build_Library): Idem.
14784 (Compile_Individual_Sources): Idem.
14785 (Compile_Link_With_Gnatmake): Idem.
14786 (Compile_Sources): Idem.
14787 (Get_Imported_Directories): Idem.
14788 (Link_Executables): Idem. Same change for the executable dir.
14789 (Check_Compilation_Needed): C_Source_Path new variable containing
14790 the canonical form of Source_Path to check against the source names
14791 in the dependency file.
14792 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14793 verbose mode, display the name of the object directory we're changing
14795 (Saved_Switches): New name of table X_Switches
14796 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14797 (Usage): New line for switch -aP
14798 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14799 testing if a directory should be added to the search path.
14801 2007-06-06 Javier Miranda <miranda@adacore.com>
14803 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14804 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14805 declaration after freezing point of all its associated tagged types;
14806 otherwise such types are frozen too early.
14808 2007-06-06 Robert Dewar <dewar@adacore.com>
14810 * a-reatim.adb: Documentation addition
14812 * g-cgideb.adb: Minor code reorganization
14814 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14815 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14816 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14818 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14819 function. Change name New_Scope to Push_Scope
14820 (Get_Debug_Flag_K): Remove unused obsolete function.
14822 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14825 * makeusg.adb: Update Copyright notice
14826 Add line for switch -aP
14828 * makeusg.adb: Fix wording of some usage messages
14830 * s-assert.adb (Raise_Assert_Failure): Add call to
14831 Debug_Raise_Assert_Failure.
14833 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14834 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14835 is restricted to 1).
14837 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14839 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14840 node location to No_Location when we're not debugging the expanded
14843 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14845 * misc.c (enumerate_modes): Consider log2_b to always be one.
14847 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14849 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14851 2007-05-02 Pascal Obry <obry@adacore.com>
14853 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14854 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14855 encoding support of Stream_IO.
14856 (Write_Unit): Idem.
14858 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14859 filename and corresponding encoding to match the OS requirement.
14860 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14861 routine will fail on specific devices like CON: AUX: ...
14863 PR ada/29856: Add missing braces
14865 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14868 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14870 2007-04-21 Jan Hubicka <jh@suse.cz>
14872 * misc.c (gnat_expand_body): Don't call target for destructors,
14873 avoid redundant check on syntax errors.
14875 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14877 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14878 instead of checking GIMPLE_STMT_P in chain_next.
14880 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14883 * system-linux-alpha.ads: Disable constant condition warning for the
14884 Default_Bit_Order variable.
14885 * system-linux-s390.ads: Likewise.
14886 * system-linux-s390x.ads: Likewise.
14887 * system-linux-sparc.ads: Likewise.
14889 2007-04-06 Javier Miranda <miranda@adacore.com>
14890 Matt Heaney <heaney@adacore.com>
14891 Robert Dewar <dewar@adacore.com>
14893 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14894 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14895 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14896 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14897 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14898 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14899 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14900 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14901 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14902 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14903 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14904 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14905 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14906 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14907 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14908 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14909 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14910 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14911 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14912 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14913 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14914 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14915 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14916 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14917 s-taprop-tru64.adb, s-taprop-irix.adb,
14918 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14919 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14920 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14921 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14922 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14923 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14924 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14925 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14926 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14927 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14928 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14929 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14930 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14931 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14932 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14933 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14934 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14935 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14936 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14937 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14939 Update documentation.
14942 2007-04-06 Robert Dewar <dewar@adacore.com>
14944 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14945 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14946 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14947 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14948 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14949 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14950 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14951 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14952 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14953 system-hpux-ia64.ads, targparm.adb,
14954 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14956 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14957 kept for bootstrap purposes only.
14959 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14961 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14962 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14963 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14964 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14966 2007-04-06 Robert Dewar <dewar@adacore.com>
14968 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14969 (Local_Raise): New dummy procedure called when a raise is converted
14970 to a local goto. Used for debugger to detect that the exception
14973 * debug.adb: Document new d.g flag (expand local raise statements to
14974 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14976 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14978 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14979 suppress warnings for unused handlers.
14980 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14981 warnings for raise statements not handled locally.
14982 (Get_RT_Exception_Entity): New function
14983 (Get_Local_Call_Entity): New function
14984 (Find_Local_Handler): New function
14985 (Warn_If_No_Propagation): New procedure
14986 (Expand_At_End_Handler): Call Make_Implicit_Handler
14987 (Expand_Exception_Handlers): Major additions to deal with local handlers
14988 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14989 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14992 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14993 (Get_Local_Call_Entity): New function
14995 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14996 of restrictions that the binder will never suggest adding.
14998 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
15001 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
15002 be with'ed in the presence of pragma Restriction
15003 (No_Exception_Propagation).
15005 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
15007 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
15008 parameter, then the handler is not a suitable target for a local raise,
15009 and this is a violation of restriction No_Exception_Propagation.
15010 (Analyze_Handled_Statements): Analyze choice parameters in exception
15011 handlers before analyzing statement sequence (needed for proper
15012 detection of local raise statements).
15013 (Analyze_Raise_Statement): Reraise statement is a violation of the
15014 No_Exception_Propagation restriction.
15016 * s-rident.ads: Add new restriction No_Exception_Propagation
15018 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
15019 function, like Make_Exception_Handler but sets Local_Raise_Statements
15021 (Add_Unique_Serial_Number): Deal with case where this is called during
15022 processing of configuration pragmas.
15024 2007-04-06 Thomas Quinot <quinot@adacore.com>
15025 Pat Rogers <rogers@adacore.com>
15026 Pascal Obry <obry@adacore.com>
15028 * g-stsifd-sockets.adb: New file.
15030 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
15031 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
15032 g-socthi-vms.adb: Move signalling
15033 fd management to a nested package, so that they can conveniently be
15034 moved to a subunit that is shared across Windows, VMS, and VxWorks
15035 (Ada implementation) or completed with imported bodies from socket.c
15037 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
15039 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
15040 the signalling file descriptor.
15041 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15042 signalling file descriptor.
15043 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15044 instead of creating a pair of sockets for signalling here.
15046 * g-socthi.adb: Ditto.
15047 Set the runtime process to ignore SIGPIPEs on platforms that support
15048 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15050 * g-socthi-mingw.adb: Ditto.
15051 (WS_Version): Use Windows 2.2.
15052 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15054 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15055 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15057 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15058 added GNAT byte swapping facility
15059 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15061 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15063 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15065 (__gnat_create_signalling_fds): New subprogram.
15066 Set the runtime process to ignore SIGPIPEs on platforms that support
15067 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15069 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
15070 Vincent Celier <celier@adacore.com>
15072 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15073 New version of Ada.Calendar which supports the new upper bound of Ada
15074 time (2399-12-31 86_399.999999999).
15075 The following modifications have been made to the package:
15076 - New representation of time as count of nanoseconds since the start of
15077 Ada time (1901-1-1 0.0).
15078 - Target independent Split and Time_Of routines which service both
15079 Ada 95 and Ada 2005 code.
15080 - Target independent interface to the Ada 2005 children of Calendar.
15081 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15082 - Handling of non-leap centenial years.
15083 - Updated clock function.
15084 - Updated arithmetic and comparison operators.
15086 * a-caldel.adb (To_Duration): Add call to target independent routine in
15087 Ada.Calendar to handle the conversion of time to duration.
15089 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15091 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15093 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15094 targets do not have a natural time zone, GMT is used as a default.
15095 (__gnat_get_task_options): New.
15097 * a-direct.adb (Modification_Time): Add with and use clauses for
15098 Ada.Calendar and Ada.
15099 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15100 since it is no longer needed.
15101 (Duration_To_Time): Removed.
15102 (OS_Time_To_Long_Integer): Removed.
15103 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15104 Formatting Time_Of routines which automatically handle time zones,
15105 buffer periods and leap seconds.
15107 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15108 target independent routines in Ada.Calendar.
15110 * a-calfor.ads, a-calfor.adb:
15111 Code cleanup and addition of validity checks in various routines.
15112 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15115 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15116 independent routine in Ada.Calendar.
15118 2007-04-06 Olivier Hainque <hainque@adacore.com>
15121 (convert_addresses): Adjust prototype and dummy definition to expect an
15122 extra file_name argument.
15124 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15125 filling the now expected file_name argument with the appropriate
15127 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15128 (tracebk): Array of void * instead of char *, corresponding to what
15129 convert_addresses expects.
15130 (exename): New static global, to hold the executable file name to be
15131 used in all convert_addresses invocations.
15132 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15134 (__gnat_gmem_a2l_initialize): Resolve exename.
15135 (__gnat_convert_addresses): Use exename as the convert_addresses
15136 file_name argument.
15138 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15139 "convert_addresses", now expecting a filename argument. Import the
15140 necessary entities to compute the filename to use and pass it to
15143 2007-04-06 Matt Gingell <gingell@adacore.com>
15145 * system-aix.ads: Back out previous change.
15146 (Functions_Return_By_DSP): Removed
15148 2007-04-06 Pascal Obry <obry@adacore.com>
15150 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15151 or the monotonic used by Ada.Real_Time) to compute the sleep duration
15154 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15156 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15157 function. Its value changes in different VxWorks versions, and it is
15158 now handled by the function __gnat_get_task_options.
15160 * s-taprop-vxworks.adb (Create_Task): Call the function
15161 __gnat_get_task_options to get the required options for creating a task.
15163 2007-04-06 Pascal Obry <obry@adacore.com>
15164 Thomas Quinot <quinot@adacore.com>
15166 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15167 dealing with filename.
15168 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15169 filename from a standard string to a wide-string depending on the
15171 (__gnat_freopen): Idem.
15172 (__gnat_current_time): New function (wrapper for time(3) standard C
15175 * g-os_lib.ads (Current_Time): New function. Returns the current
15176 system time as an OS_Time value.
15178 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15179 (Monotonic_Clock): Same.
15181 2007-04-06 Quentin Ochem <ochem@adacore.com>
15183 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15185 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15187 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15189 * a-retide.adb: Add elaboration code to ensure that the tasking run
15190 time is initialized when using delay operations even when no task is
15193 2007-04-06 Javier Miranda <miranda@adacore.com>
15195 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15196 component Num_Prim_Ops.
15197 (Set_Num_Prim_Ops): Removed.
15198 Remove all the assertions because all the routines of this
15199 package are inline always.
15200 (Get_Offset_Index): Add support to primary dispatch tables.
15201 Move the documentation about the dispatch table to a-tags.ads
15202 (Set_External_Tag): Removed
15203 (Inherit_TSD): Removed.
15204 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15205 moved to a-tags.ads
15206 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15207 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15208 of the TSD field "Table" because this field has been renamed to
15210 (Inherit_CPP_DT): Removed.
15211 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15212 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15213 declarations have been moved to a-tags.ads
15214 (Check_Size): Removed.
15215 (Expanded_Name): Updated to get access to the new field of TSD
15216 containing the address of the expanded name.
15217 (Get_Access_Level/Set_Access_Level): Removed.
15218 (Get_Predefined_Prim_Op_Address): Removed.
15219 (Set_Predefined_Prim_Op_Address): Removed.
15220 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15221 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15222 (Set_Expanded_Name): Removed.
15223 (Inherit_DT): Removed.
15224 (Inherit_CPP_DT): Removed.
15225 (Set_RC_Offset): Removed.
15226 (Set_TSD): Removed.
15227 (Base_Address): New function that displaces "this" to point to the base
15228 of the object (that is, to point to the primary tag of the object).
15230 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15231 Javier Miranda <miranda@adacore.com>
15233 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15234 anonymous access component, do not create a master_id if type already
15235 has one, as may happen if the type is a subcomponent of a packed array
15237 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15238 Initialize_Tag): Remove code associated with the old CPP pragmas.
15239 CPP_Virtual and CPP_Vtable are no longer supported.
15240 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15241 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15242 (Freeze_Record_Type): Remove call to
15243 Init_Predefined_Interface_Primitives.
15244 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15245 code required to initialize the tags of the secondary dispatch tables.
15246 This leaves the algoritm more clear.
15247 (Init_Secondary_Tags): Add support for concurrent record types
15248 (Make_Predefined_Primitive_Specs): Code cleanup.
15249 (Predefined_Primitive_Bodies): Code cleanup.
15250 (Build_Master_Renaming): New local subprogram.
15251 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15252 anonymous access to task type components.
15253 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15254 subtype indication are resolved during analysis, and must not be done
15256 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15258 2007-04-06 Geert Bosch <bosch@adacore.com>
15259 Ed Schonberg <schonberg@adacore.com>
15260 Javier Miranda <miranda@adacore.com>
15261 Bob Duff <duff@adacore.com>
15263 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15264 for conversion of a Float_Type'Truncation to integer.
15266 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15267 check if a node is an attribute that can be handled directly by the
15269 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15270 attributes that can be handled directly by the back end.
15271 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15272 use new predicate Is_Access_Protected_Subprogram_Type.
15273 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15274 and Unchecked_Union if it is generated as part of the default Output
15275 procedure for a type with default discriminants.
15276 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15277 if we are compiling under restriction No_Dispatching_Calls.
15278 (Constrained): Use Underlying_Type, in case the type is private without
15279 discriminants, but the full type has discriminants.
15280 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15281 call to Build_Get_Access_Level.
15282 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15283 interface objects requires a call to the run-time subprogram that
15284 returns the base address of the object.
15285 (Valid_Conversion): Improve error message on illegal attempt to store
15286 an anonymous access to subprogram value into a record component.
15288 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15290 (Simplify_Type_Conversion): New procedure that performs simplification
15291 of Int_Type (Float_Type'Truncation (X)).
15292 (Resolve_Type_Conversion): Call above procedure after resolving operand
15293 and before performing checks. This replaces the existing ineffective
15295 (Set_String_Literal_Subtype): When creating the internal static lower
15296 bound subtype for a string literal, use a newly created copy of the
15297 subtree representing the lower bound.
15298 (Resolve_Call): Exclude build-in-place function calls from transient
15299 scope treatment. Update comments to describe this exception.
15300 (Resolve_Equality_Op): In case of dispatching call check violation of
15301 restriction No_Dispatching_Calls.
15302 (Resolve_Call): If the call returns an array, the context imposes the
15303 component type of the array, and the function has one non-defaulted
15304 parameter, rewrite the call as the indexing of a call with a single
15305 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15307 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15308 the master of the created object is the innermost enclosing statement.
15309 (Remove_Conversions): For a binary operator, check if type of second
15310 formal is numeric, to check if an abstract interpretation is present
15311 in the case of exponentiation as well.
15313 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15314 Bob Duff <duff@adacore.com>
15316 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15317 copying a parameter list in a call, set properly the First_Named_Formal
15318 and Next_Named_Formal fields in the new list and in the enclosing call.
15319 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15320 names, to ease typing in the debugger. Improve comments.
15321 (Watch_Node): New variable, intended to be set in the debugger.
15322 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15323 called when the watched node is created.
15324 (New_Node_Debugging_Output): Combined version of local procedures
15325 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15326 with a parameter so that conditional breakpoints like "if Node = 12345"
15328 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15329 Add Elist1 function
15331 2007-04-06 Thomas Quinot <quinot@adacore.com>
15332 Ed Schonberg <schonberg@adacore.com>
15333 Gary Dismukes <dismukes@adacore.com>
15335 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15336 required for a conversion between two access-to-unconstrained-array
15338 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15339 to discriminant constraints on discriminant objects. This rule must
15340 apply as well to discriminants of protected types in private components.
15341 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15342 object of a null-excluding access type then don't require the
15343 the object declaration to have an expression and don't emit a
15346 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15347 Eric Botcazou <botcazou@adacore.com>
15349 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15352 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15353 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15356 * fe.h (Compiler_Abort): Add third parameter.
15358 * misc.c (internal_error_function): Build third argument from current
15359 input location and pass it to Compiler_Abort.
15361 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15363 * cstand.adb (Create_Standard): When the target's storage unit size is
15364 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15367 2007-04-06 Nicolas Roche <roche@adacore.com>
15369 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15370 absolute path can have the following form: device:/a/b. In this case
15371 '/' should be inserted between the path and the filename.
15373 2007-04-06 Olivier Hainque <hainque@adacore.com>
15374 Eric Botcazou <botcazou@adacore.com>
15376 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15377 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15378 corresponding definition has created the so made visible variable.
15379 Handle anonymous access to protected subprogram.
15380 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15381 object with an address clause volatile. Re-enable original fix.
15382 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15384 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15385 associated with either the Equivalent or Root type, instead of the
15387 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15388 subtree for every field of a global record type.
15389 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15390 discriminants, invoke again variable_size on its newly computed sizes.
15392 2007-04-06 Robert Dewar <dewar@adacore.com>
15393 Thomas Quinot <quinot@adacore.com>
15394 Ed Schonberg <schonberg@adacore.com>
15395 Bob Duff <duff@adacore.com>
15397 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15398 (Next_Component_Or_Discriminant): New function and procedure
15399 (First_Index, First_Literal, Master_Id,
15400 Set_First_Index, Set_First_Literal, Set_Master_Id):
15401 Add missing Ekind assertions.
15402 (Is_Access_Protected_Subprogram_Type): New predicate.
15403 (Has_RACW): New entity flag, set on package entities to indicate that
15404 the package contains the declaration of a remote accecss-to-classwide
15406 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15407 attribute, in case the result type has controlled parts.
15408 (Requires_Overriding): Add this new flag, because "requires
15409 overriding" is subtly different from "is abstract" (see AI-228).
15410 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15411 Is_Abstract_Type. Make sure these are called only when appropriate.
15412 (Has_Pragma_Unreferenced_Objects): New flag
15414 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15415 class-wide, the tag of the right-hand side must be an exact match, not
15416 an ancestor of that of the object on left-hand side.
15417 (Move_Activation_Chain): New procedure to create the call to
15418 System.Tasking.Stages.Move_Activation_Chain.
15419 (Expand_N_Extended_Return_Statement): Generate code to call
15420 System.Finalization_Implementation.Move_Final_List at the end of a
15421 return statement if the function's result type has controlled parts.
15422 Move asserts to Build_In_Place_Formal.
15423 (Move_Final_List): New function to create the call statement.
15424 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15425 tagged type, replace generation of call to the run-time subprogram
15426 CW_Membership by call to Build_CW_Membership.
15427 (Expand_N_Return_Statement): Replace generation of call to the run-time
15428 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15429 (Expand_N_Simple_Function_Return): Replace generation of call to the
15430 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15432 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15433 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15434 access to protected operations.
15435 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15436 master and chain actual parameters to a build-in-place function call
15438 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15440 (Make_Build_In_Place_Call_In_Allocator,
15441 Make_Build_In_Place_Call_In_Anonymous_Context,
15442 Make_Build_In_Place_Call_In_Assignment,
15443 Make_Build_In_Place_Call_In_Object_Declaration): Call
15444 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15445 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15446 stubbed procedure with a null body, replace the call with a null
15447 statement without using the full inlining machinery, for efficiency
15448 and to avoid invalid values in source file table entries.
15450 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15451 renamings of calls to build-in-place functions.
15453 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15454 provides the functionality of RTE_Available to record components.
15455 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15456 to avoid undesired overloading.
15457 (Entity): New subprogram that returns the entity for the referened
15458 unit. If this unit has not been loaded, it returns Empty.
15459 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15460 Remove no longer used entities.
15461 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15462 (RE_Type_Specific_Data): New entity.
15463 (RE_Move_Any_Value): New entity.
15464 (RE_TA_A, RE_Get_Any_Type): New entities.
15465 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15466 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15467 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15468 (Entity): New subprogram that returns the entity for the referened
15469 unit. If this unit has not been loaded, it returns Empty.
15470 (RTE): Addition of a new formal that extends the search to the scopes
15471 of the record types found in the chain of the package.
15473 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15474 "abstract subprograms must be visible" message, whether or not the type
15475 is an interface; that is, remove the special case for interface types.
15476 (Analyze_Function_Return): Remove error message "return of task objects
15477 is not yet implemented" because this is now implemented.
15478 (Create_Extra_Formals): Add the extra master and activation chain
15479 formals in case the result type has tasks.
15480 Remove error message "return of limited controlled objects is not yet
15482 (Create_Extra_Formals): Add the extra caller's finalization list formal
15483 in case the result type has controlled parts.
15484 (Process_Formals): In case of access formal types there is no need
15485 to continue with the analysis of the formals if we already notified
15487 (Check_Overriding_Indicator): Add code to check overriding of predefined
15489 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15490 flags for formals that do not require them,.
15491 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15492 hidden entity is use visible or directly visible.
15493 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15494 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15495 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15496 New_Overloaded_Entity): Split Is_Abstract flag into
15497 Is_Abstract_Subprogram and Is_Abstract_Type.
15499 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15500 a return statement's finalization list to the caller's list, used for
15501 build-in-place functions with result type with controlled parts.
15502 Remove no longer used entities.
15504 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15505 longer needed, because the full type is now limited, and therefore a
15506 pass-by-reference type.
15507 (Foreign_Task_Level): New constant.
15509 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15510 move tasks from the activation chain belonging to a return statement to
15511 the one passed in by the caller, and update the master to the one
15512 passed in by the caller.
15513 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15514 of unactivated tasks, so we don't kill the ones that are being returned
15515 by a build-in-place function.
15516 (Create_Task): Ignore AI-280 for foreign threads.
15518 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15519 Robert Dewar <dewar@adacore.com>
15520 Bob Duff <duff@adacore.com>
15521 Gary Dismukes <dismukes@adacore.com>
15523 * errout.adb (Unwind_Internal_Type): Use predicate
15524 Is_Access__Protected_Subprogram_Type.
15526 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15527 (Freeze_Entity, packed array case): Do not override explicitly set
15528 alignment and size clauses.
15529 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15530 the enclosing subprogram is a child unit body that acts as a spec.
15531 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15532 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15533 Remove all code for DSP option
15535 * layout.adb (Layout_Record_Type): Use First/
15536 Next_Component_Or_Discriminant
15537 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15538 to handle properly the anonymous access case.
15540 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15541 for all access attributes, because overload resolution should work the
15542 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15543 causes the error message for the ambiguous "X'Access = Y'Access" and
15544 "X'Unrestricted_Access = Y'Access" and so forth to match.
15545 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15546 now that anonymous access to protected operations have their own kind.
15547 (Resolve_Attribute): In case of dispatching call check the violation of
15548 restriction No_Dispatching_Calls.
15549 (Check_Array_Type): Check new -gnatyA array index style option
15551 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15552 attempt to derive from a synchronized tagged type.
15553 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15554 type, inherit the class-wide type already created, because it may
15555 already have been used in a self-referential anonymous access component.
15556 (Mentions_T): Recognize self-referential anonymous access components
15557 that use (a subtype of) the class-wide type of the enclosing type.
15558 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15559 Derived_Type for Prev formal on call to
15560 Check_Anonymous_Access_Components rather than Empty.
15561 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15562 a record extension in deciding whether to create a class-wide type,
15563 rather than just checking Tagged_Present.
15564 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15565 to stand-alone object declarations as well as component declarations.
15566 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15567 prevent accidental overwriting when enclosing package appears in
15568 a limited_with_clause.
15569 (Array_Type_Declaration): If the component type is an anonymous access,
15570 the associated_node for the itype is the type declaration itself.
15571 (Add_Interface_Tag_Components): Modified to support concurrent
15572 types with abstract interfaces.
15573 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15574 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15575 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15576 to complete the decoration of synchronized interface types. Add also
15577 a call to Check_Abstract_Interfaces to verify the ARM rules.
15578 (Derive_Interface_Subprograms): Modified to support concurrent types
15579 with abstract interfaces.
15580 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15581 mark, rather than delaying the full resolution depending on context.
15582 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15583 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15584 Array_Type_Declaration,Build_Derived_Record_Type,
15585 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15586 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15587 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15588 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15589 called only when appropriate.
15590 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15592 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15593 an itype reference for the anonymous designated subtype, to prevent
15594 scope anonmalies in gigi.
15595 (Build_Itype_Reference): New utility, to simplify construction of such
15598 2007-04-06 Vincent Celier <celier@adacore.com>
15600 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15601 are suppressed, supply an initial dummy entry covering all possible
15604 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15605 and start with only one, such as "-RTS=none".
15606 (Collect_Arguments): Do not check for sources outside of projects.
15607 Do not collect arguments if project is externally built.
15608 (Compile_Sources): Do nothing, not even check if the source is up to
15609 date, if its project is externally built.
15610 (Compile): When compiling a predefined source, add -gnatpg
15611 as the second switch, after -c.
15612 (Compile_Sources): Allow compilation of Annex J renames without -a
15613 (Is_In_Object_Directory): Check if the ALI file is in the object
15614 even if there is no project extension.
15615 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15616 gnatbind if the ALI file effectively exists.
15617 (Initialize): Add the directory where gnatmake is invoked in front of
15618 the path if it is invoked from a bin directory, even without directory
15619 information, so that the correct GNAT tools will be used when spawned
15620 without directory information.
15622 * makeusg.adb: Change switch -S to -eS
15623 Add lines for new switches -we, -wn and -ws
15624 Add line for new switch -p
15626 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15627 Treat_As_Error and there are warnings.
15629 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15630 -gnatww Change gnatmake switch -S to -eS
15631 (Scan_Make_Switches): Code reorganisation. Process separately multi
15632 character switches and single character switches.
15633 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15634 False when switch is not recognized by gnatmake.
15635 (Scan_Make_Switches): Set Setup_Projects True when -p or
15636 --create-missing-dirs is specified.
15638 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15639 renamings Calendar, Machine_Code, Unchecked_Conversion and
15640 Unchecked_Deallocation only when Renamings_Included is True.
15642 * par.adb: Allow library units Calendar, Machine_Code,
15643 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15644 when -gnatg is not specified.
15645 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15646 there is no need to generate always a record_definition_node in case
15647 of synchronized interface types.
15648 (SIS_Entry_Active): Initialize global variable to False
15649 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15650 indicate cases where AI-447 says "not null" is legal.
15652 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15654 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15655 files with with several lines starting with the object fileb name.
15656 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15658 (Initialize): Add the directory where gprmake is invoked in front of the
15659 path, if it is invoked from a bin directory or with directory
15660 information, so that the correct GNAT tools will be used when invoked
15662 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15664 * vms_data.ads: Update switches/qualifiers
15666 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15667 Thomas Quinot <quinot@adacore.com>
15670 If the array component is a discriminated record, the array aggregate
15671 is non-static even if the component is given by an aggregate with
15673 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15674 (Convert_Aggr_In_Allocator): If the allocator is for an access
15675 discriminant and the type is controlled. do not place on a finalization
15676 list at this point. The proper list will be determined from the
15678 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15679 initialize record controller if needed, before the components, to ensure
15680 that they are properly finalized.
15681 (Build_Record_Aggr_Code): For the case of an array component that has a
15682 corresponding array aggregate in the record aggregate, perform sliding
15685 2007-04-06 Javier Miranda <miranda@adacore.com>
15686 Gary Dismukes <dismukes@adacore.com>
15687 Ed Schonberg <schonberg@adacore.com>
15689 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15690 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15692 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15693 accessibility on class-wide allocators if the allocator occurs at the
15694 same scope level as the allocator's type. The check is guaranteed to
15695 succeed in that case, even when the expression originates from a
15696 parameter of the containing subprogram.
15697 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15698 under No_Dispatching_Calls restriction. During the semantic analysis
15699 we already notified such violation.
15700 (Tagged_Membership): Constant folding. There is no need to check
15701 the tag at run-time if the type of the right operand is non
15702 class-wide abstract.
15703 Replace call to Is_Ancestor by call to Is_Parent
15704 to support concurrent types with interface types.
15705 (Expand_N_Allocator): Add an assertion associated with the generation
15707 (Expand_N_Slice): Do not enable range check to nodes associated
15708 with the frontend expansion of the dispatch table.
15709 (Is_Local_Access_Discriminant): Subsidiary function to
15710 Expand_N_Allocator.
15711 (Tagged_Membership): Replace generation of call to the run-time
15712 subprogram CW_Membership by call to Build_CW_Membership.
15713 (Expand_Allocator_Expression): Replace generation of call to the
15714 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15716 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15717 initialize most the TSD components by means of an aggregate.
15718 Modify the declaration of the object containing the TSD
15719 because we now expand code that has a higher level of abstraction.
15720 The TSD has a discriminant containing the Inheritance Depth Level,
15721 value that is used in the membership test but also to fix the size
15722 of the table of ancestors.
15723 (Expand_Interface_Conversion): Insert function body at the closest place
15724 to the conversion expression, to prevent access-before-elaboration
15725 errors in the backend.
15726 Code improved to reduce the size of the dispatch table if
15727 compiling under restriction No_Dispatching_Calls plus code cleanup.
15728 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15729 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15730 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15731 code to return immediately if compiling under No_Dispatching_Calls
15733 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15734 CPP_Virtual and CPP_Vtable are no longer supported.
15735 (Expand_Interface_Conversion): Add missing support for interface type
15737 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15738 Is_Parent to support concurrent types with interfaces.
15739 (Init_Predefined_Interface_Primitives): Removed.
15740 (Make_Secondary_DT): Modified to support concurrent record types.
15741 (Set_All_DT_Position): Modified to support concurrent record types.
15742 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15743 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15744 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15745 with CW_Membership.
15746 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15747 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15748 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15749 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15750 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15751 (Expand_Dispatching_Call): Replace generation of call to the run-time
15752 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15753 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15755 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15756 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15757 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15758 Build_Set_Prim_Op_Address.
15759 (Get_Remotely_Callable): Subprogram removed.
15760 (Init_Predefined_Interface_Primitives): Replace generation of call to
15761 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15764 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15765 First (Parameter_Associations ()) with the call to First_Actual that
15766 returns an actual parameter expression for both named and positional
15769 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15770 check violation of restriction No_Dispatching_Calls.
15771 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15772 controlling argument.
15774 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15775 First/Next_Component_Or_Discriminant
15776 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15777 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15778 specify Any_Limited_Interface, and this functionality is already
15779 provided by the function Has_Abstract_Interfaces.
15780 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15781 support concurrent types implementing interfaces.
15782 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15783 specify kind Any_Limited_Interface, and this functionality is already
15784 provided by the function Has_Abstract_Interfaces.
15785 (Remove_Side_Effects): replace Controlled_Type by
15786 CW_Or_Controlled_Type whenever the issue is related to
15787 using or not the secondary stack.
15789 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15790 P_Interface_Type_Definition to fulfill the new interface (the formal
15791 Is_Synchronized is no longer required).
15793 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15794 Update dependencies.
15796 * exp_atag.ads, exp_atag.adb: New file
15798 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15799 Bob Duff <duff@adacore.com>
15800 Cyrille Comar <comar@adacore.com>
15802 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15803 anonymous, use finalization list of enclosing dynamic scope.
15804 (Expand_N_Package_Declaration): For a library package declaration
15805 without a corresponding body, generate RACW subprogram bodies in the
15806 spec (just as we do for the task activation call).
15807 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15808 Is_Abstract_Type. Make sure these are called only when appropriate.
15809 Remove all code for DSP option
15810 (CW_Or_Controlled_Type): new subprogram.
15812 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15813 Ed Schonberg <schonberg@adacore.com>
15814 Gary Dismukes <dismukes@adacore.com>
15816 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15817 parameter. If it is set to true, return a result capped according to
15818 the global upper bound for the index of an entry family.
15819 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15820 (Build_Find_Body_Index): Adjust for above change.
15821 (Entry_Index_Expression): Likewise.
15822 (Is_Potentially_Large_Family): New function extracted from...
15823 (Collect_Entry_Families): ...here. Call it to detect whether the family
15824 is potentially large.
15825 (Build_Entry_Count_Expression): If the family is potentially large, call
15826 Family_Size with 'Cap' set to true.
15827 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15828 a protected version of an operation declared in the private part of
15829 a protected object, because they may be invoked through a callback.
15830 (Set_Privals): If the type of a private component is an anonymous access
15831 type, do not create a new itype for each protected body.
15832 If the body of a protected operation creates
15833 controlled types (including allocators for class-widetypes), the
15834 body of the corresponding protected subprogram must include a
15836 (Build_Activation_Chain_Entity): Build the chain entity for extended
15838 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15839 to determine whether operation overrides an inherited primitive.
15840 (Build_Wrapper_Spec): Add code to examine the parents while looking
15841 for a possible overriding candidate.
15842 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15843 hold an actual parameter value since its initialization is separated
15844 from the the declaration. Prevents errors on null-excluding access
15847 2007-04-06 Thomas Quinot <quinot@adacore.com>
15848 Pablo Oliveira <oliveira@adacore.com>
15850 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15851 Do an Unchecked_Conversion to handle the passage from the Underlying
15852 Type to the Base Type when calling Build_To_Any_Call and
15853 Build_From_Any_Call.
15854 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15855 E_Constant, depending upon Variable formal.
15856 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15857 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15858 parameter that requires an extra constrained parameter, declare
15859 temporary for actual as a variable, not a constant.
15860 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15861 the unit being compiled is the one that contains the stub type.
15862 Change primitive operation name for the RACW associated with a RAS
15863 from Call to _Call so it cannot clash with any legal identifier.
15864 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15866 (Append_RACW_Bodies): New subprogram.
15867 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15868 Add_Receiving_Stubs_To_Declarations functions.
15869 When expanding a package body, this list correspond to the
15870 statements in the HSS at the end of the pacakge.
15871 When expanding a package spec, this list correspond to the
15873 (Add_Receiving_Stubs_To_Declarations): Append the function
15874 registering the receiving stubs at the end of the 'Stmts' list.
15875 (RCI_Package_Locator): Pass the new Version generic formal when
15876 instantiating a RCI_Locator package.
15877 (Build_From_Any_Function): To compute the High bound for an
15878 unconstrained array actual, we add the Low bound with the length.
15879 Thus we must convert the low bound and the length to an appropriate
15880 type before doing the sum.
15881 (Build_Subprogram_Receiving_Stubs, PolyORB):
15882 * Retrieve the extra formals parameters at the
15883 end of the parameter stream.
15884 * Use Move_Any_Value to write back out parameters
15885 after executing the request as it is more efficient
15886 than Copy_Any_Value.
15887 * Build the any containing Extra Formals with the
15888 appropriate typecode.
15889 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15890 empty Component_List.
15891 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15892 the tree the declaration for an object that serves as actual parameter
15893 in server-side stubs.
15894 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15895 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15896 Use Build_Actual_Object_Declaration to prepare the actuals.
15897 (Add_Parameter_To_NVList): Set the parameter mode to In for
15898 Extra Constrained Parameters.
15899 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15900 Extra Constrained parameters.
15901 (Build_To_Any_Function, Build_From_Any_Function,
15902 Built_TypeCode_Function): When Typ is implicit, call the correct
15903 function with the first not implicit parent type.
15904 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15905 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15906 typecode from the Etype. Therefore we retrieve the correct typecode
15907 with a call to Get_Any_Type.
15908 (Copy_Specification): Do controlling formal type substitution based on
15909 Is_Controlling_Formal flag, instead of caller-provided object type.
15910 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15911 a RACW primitive operation, we might get a subprogram declaration for an
15912 ancestor of the RACW designated type (not for the designated type
15913 itself), in the case where this operation is inherited. In this case we
15914 have no easy means of determining the original tagged type for which
15915 the primitive was declared, so instead we now rely on
15916 Copy_Specification to use the Is_Controlling_Formal flag to determine
15917 which formals require type substitution.
15919 2007-04-06 Robert Dewar <dewar@adacore.com>
15920 Ed Schonberg <schonberg@adacore.com>
15922 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15923 GNAT.Current_Exception are not allowed if pragma Restrictions
15924 (No_Exception_Propagation) is set and in any case make the associated
15925 handler unsuitable as a target for a local raise statement.
15926 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15927 run-time subprogram CW_Membership by call to Build_CW_Membership.
15928 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15929 by a function call, a temporary must be created before expanding the
15930 Constructor_Call itself, to prevent out-of-order elaboration in the
15931 back-end when stack checking is enabled..
15933 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15935 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15936 result are the bounds of the left operand, not the right.
15938 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15941 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15942 discriminant defaults.
15943 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15944 (Make_Component_List_Attributes): Ditto.
15946 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15947 Bob Duff <duff@adacore.com>
15949 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15950 an association with a box as providing a value even though the
15951 initialization procedure for the type is not available.
15952 (Resolve_Record_Aggregate): Check that a choice of an association with a
15953 box corresponds to a component of the type.
15954 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15955 Is_Abstract_Subprogram and Is_Abstract_Type.
15957 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15960 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15961 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15962 called only when appropriate.
15964 2007-04-06 Olivier Hainque <hainque@adacore.com>
15966 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15967 associated vector view instead of all to the unsigned char view.
15969 * g-altcon.adb (Generic_Conversions): New internal generic package,
15970 offering facilities for all the Vector/View conversion routines
15971 implemented by this unit.
15972 (To_View/To_Vector - all versions): Reimplemented in a systematic
15973 manner, using the internal Generic_Conversions facilities.
15975 2007-04-06 Pascal Obry <obry@adacore.com>
15977 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15979 (Create): Free the source string before storing the new one.
15981 2007-04-06 Vincent Celier <celier@adacore.com>
15983 * g-debpoo.adb (Validity): New package with a complete new
15984 implementation of subprograms Is_Valid and Set_Valid.
15985 (Is_Valid): Move to local package Validity
15986 (Set_Valid): Move to local package Validity
15988 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15989 Pablo Oliveira <oliveira@adacore.com>
15991 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15992 we must ensure that there is enough place for the new data we are going
15995 2007-04-06 Thomas Quinot <quinot@adacore.com>
15997 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
16000 2007-04-06 Jose Ruiz <ruiz@adacore.com>
16001 Vincent Celier <celier@adacore.com>
16003 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
16004 (Stack_String): Add this String that contains the name of the Stack
16005 package in the project file.
16006 (Packages_To_Check_By_Stack): Add this list that contains the packages
16007 to be checked by gnatstack, which are the naming and the stack packages.
16008 (Check_Files): If no .ci files were specified for gnatstack we add all
16009 the .ci files belonging to the projects, including binder generated
16011 (Non_VMS_Usage): Document that gnatstack accept project file switches.
16012 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
16013 Add gnatstack to the list of commands that use project file related
16014 switches, and get the single attribute Switches from the stack package
16015 in a project file when calling gnatstack. Parse the -U flag for
16016 processing files belonging to all projects in the project tree.
16017 Remove all processing for command Setup
16019 * prj-attr.adb: Add new package Stack with single attribute Switches
16021 * vms_conv.ads (Command_Type): Add command Stack.
16022 Move to body declarations that are only used in the body: types Item_Id,
16023 Translation_Type, Item_Ptr, Item and its subtypes.
16025 * vms_conv.adb: (Initialize): Add data for new command Stack.
16026 Add declarations moved from the spec: types Item_Id, Translation_Type,
16027 Item_Ptr, Item and its subtypes.
16028 (Cargs_Buffer): New table
16029 (Cargs): New Boolean global variable
16030 (Process_Buffer): New procedure to create arguments
16031 (Place): Put character in table Buffer or Cargs_Buffer depending on the
16033 (Process_Argument): Set Cargs when processing qualifiers for GNAT
16035 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
16036 empty, for table Cargs_Buffer.
16037 (Initialize): Remove component Setup in Command_List
16039 2007-04-06 Vincent Celier <celier@adacore.com>
16041 * gprep.adb (Process_Files.Process_One_File): Use full file name when
16042 issuing pragma Source_Reference.
16044 2007-04-06 Emmanuel Briot <briot@adacore.com>
16046 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16047 [[:xdigit:]] character class.
16048 Also raise an exception when an invalid character class is used.
16050 2007-04-06 Pascal Obry <obry@adacore.com>
16052 * i-cstrea.ads: (fopen): Add encoding parameter.
16054 Change reference from a-sysdep.c to sysdep.c in comment.
16055 Update copyright notice.
16056 This set of patch add support for the encoding form parameter.
16058 * mingw32.h (S2WSU): New macro to convert from a string to a
16059 wide-string using the UTF-8 encoding. The S2WS macro supports now only
16060 standard 8bits encoding.
16061 (WS2SU): As above but converting from wide-sring to string.
16062 This is needed as it is necessary to have access to both versions in the
16063 runtime for the form parameter encoding support.
16064 This set of patch add support for the encoding form parameter.
16065 (S2WS): Improve implementation to handle cases where the filename is not
16066 UTF-8 encoded. In this case we default to using the current code page
16067 for the conversion.
16069 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16070 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16071 the constants defined in adaint.h.
16072 (fopen): Add encoding parameter.
16075 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16076 encoding. This is needed for the Reset routine (freopen low level-call).
16078 * s-fileio.adb (Open): Decode encoding form parameter and set the
16079 corresponding encoding value into AFCB structure.
16080 (Reset): Pass the encoding value to freopen.
16081 (Close): Move the call to Lock_Task to the beginning of the procedure.
16083 2007-04-06 Geert Bosch <bosch@adacore.com>
16084 Robert Dewar <dewar@adacore.com>
16086 * i-fortra.ads: Add Double_Complex type.
16088 * impunit.adb: (Is_Known_Unit): New function
16089 Add Gnat.Byte_Swapping
16091 Add new Ada 2005 units
16092 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16093 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16094 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16095 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16097 * impunit.ads (Is_Known_Unit): New function
16099 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16100 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16101 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16102 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16103 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16104 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16107 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16109 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16111 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16112 Arnaud Charlet <charlet@adacore.com>
16114 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16115 __gnat_adjust_context_for_raise.
16116 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16117 implementation of floating point operations as native x86 targets.
16118 So the FPU should be initialized in the same way using finit. Fix
16119 floating point operations accuracy issues.
16120 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16121 member in struct sigaction, so as to avoid warning for incompatible
16124 2007-04-06 Serguei Rybin <rybin@adacore.com>
16126 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16127 switches from previously loaded tree
16129 2007-04-06 Thomas Quinot <quinot@adacore.com>
16131 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16132 cases where a given dependency has a body or not.
16133 (Write_With_File_Names): New subprogram, common code for the two cases
16136 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16137 Javier Miranda <miranda@adacore.com>
16139 * lib-xref.ads, lib-xref.adb:
16140 Modify the loop that collects type references, to include interface
16141 types that the type implements. List each of these interfaces when
16142 building the entry for the type.
16143 (Generate_Definition): Initialize component Def and Typ of new entry
16144 in table Xrefs, to avoid to have these components unitialized.
16145 (Output_References): Split Is_Abstract flag into
16146 Is_Abstract_Subprogram and Is_Abstract_Type.
16147 (Generate_Reference): Add barrier to do not generate the warning
16148 associated with Ada 2005 entities with entities generated by the
16151 2007-04-06 Robert Dewar <dewar@adacore.com>
16152 Arnaud Charlet <charlet@adacore.com>
16153 Vincent Celier <celier@adacore.com>
16155 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16156 Update 'Exception Handling Control' chapter which was outdated.
16157 Minor fix to documentation of -gnatwq
16158 Remove section "Adapting the Run Time to a New C++ Compiler" because
16159 it is now obsolete.
16160 Add passage on need of -nostart-files in some non-ada-main cases.
16161 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16162 Update documentation about Interfacing with C++
16163 Add documentation for new gnatmake switch -p
16164 Add missing protocol part in URLs.
16166 Document pragma Compile_Time_Error
16167 Add documentation for Object_Size indicating that stand alone
16168 objects can have a larger size in some cases.
16169 Add node for GNAT.Byte_Swapping, GNAT.SHA1
16170 Update reference to the Ravenscar profile.
16171 Document pragma Unreferenced_Objects
16173 * gnat-style.texi: Fix typo
16175 2007-04-06 Vincent Celier <celier@adacore.com>
16177 * mlib.adb (Building_Library): Only output "building a library..." in
16180 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16181 files in verbose mode.
16183 * mlib-utl.adb (Ar): Only output the first object files when not in
16185 (Gcc): Do not display all the object files if not in verbose mode, only
16188 2007-04-06 Robert Dewar <dewar@adacore.com>
16190 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16191 it no longer destroys the contents of Name_Buffer or Name_Len and
16192 non-standard and invalid names are handled better.
16193 (Get_Decoded_Name_String): Improve performance by using
16194 Name_Has_No_Encodings flag in the name table.
16195 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16196 Used for debugging printouts.
16198 2007-04-06 Robert Dewar <dewar@adacore.com>
16199 Javier Miranda <miranda@adacore.com>
16200 Bob Duff <duff@adacore.com>
16202 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16203 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16204 there is no need to generate always a record_definition_node in case
16205 of synchronized interface types.
16206 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16207 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16208 illegal in Ada 95, in cases where it is legal. Change the warnings to
16209 errors in other cases. Don't give the error unless the "not null"
16210 parses properly. Correct the source position at which the error occurs.
16211 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16212 P_Null_Exclusion, to suppress "not null" warnings.
16213 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16214 associated goto statements.
16216 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16219 * scans.ads (Type_Token_Location): New flag
16221 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16222 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16223 P_Null_Exclusion, to suppress "not null" warnings.
16225 2007-04-06 Robert Dewar <dewar@adacore.com>
16226 Javier Miranda <miranda@adacore.com>
16227 Bob Duff <duff@adacore.com>
16228 Vincent Celier <celier@adacore.com>
16230 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16231 (Extensions_Allowed): No longer sets Ada_Version
16232 Entry for pragma Unreferenced_Objects
16234 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16235 system.tasking if pragma priority used in a procedure
16236 (Analyze_Pragma, case Warning): Handle dot warning switches
16237 (Process_Compile_Time_Warning_Or_Error): New procedure
16238 (Analyze_Pragma): Add processing for Compile_Time_Error
16239 Add support for extra arguments External_Name and Link_Name.
16240 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16241 (Process_Import_Or_Interface): Add support for the use of pragma Import
16243 (Extensions_Allowed): No longer affects Ada_Version
16244 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16245 Is_Abstract_Type. Make sure these are called only when appropriate.
16246 Add processing for pragma Unreferenced_Objects
16248 * snames.h, snames.ads, snames.adb: Add entry for pragma
16250 Add new standard name Minimum_Binder_Options for new gprmake
16251 Add new standard names for gprmake: Archive_Suffix,
16252 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16253 Library_Support, Library_Version_Options,
16254 Shared_Library_Minimum_Options,
16255 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16256 Change Name_Call to Name_uCall so that it cannot clash with a legal
16258 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16259 Append C_Plus_Plus to convention identifiers as synonym for CPP
16260 Add new standard names Stack and Builder_Switches
16261 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16262 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16263 Run_Path_Option, Toolchain_Version.
16264 Entry for pragma Unreferenced_Objects
16266 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16267 switches, without repetition of "eD". Make sure that last character of
16268 -gnatep= switch is not taken as -gnat switch character.
16269 Complete rewrite of circuit for handling saving compilation options
16270 Occasioned by need to support dot switchs for -gnatw, but cleans up
16272 -gnatX does not affect Ada_Version
16273 Include -gnatyA in -gnatg style switches
16275 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16276 warnings on return objects.
16277 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16278 (Set_Dot_Warning_Switch): New procedure
16279 (Check_References): Add missing case of test for
16280 Has_Pragma_Unreferenced_Objects
16281 (Output_Unreferenced_Messages): Implement effect of new pragma
16282 Unreferenced_Objects, remove special casing of limited controlled
16285 2007-04-06 Vincent Celier <celier@adacore.com>
16287 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16288 the default project path, initially done during elaboration of the
16290 If the prefix returned by Sdefault is null, get the prefix from a call
16291 to Executable_Prefix_Path.
16292 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16295 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16296 canonical directory name to open the directory from which files are
16298 (Record_Other_Sources): Idem.
16299 (Locate_Directory): Add the possibility to create automatically missing
16300 directories when Setup_Projects is True.
16301 Call Locate_Directory so that the directory will be created when
16302 Setup_Projects is True, for object dir, library dir, library ALI dir,
16303 library source copy dir and exec dir.
16305 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16308 2007-04-06 Robert Dewar <dewar@adacore.com>
16310 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16311 Use First/Next_Component_Or_Discriminant
16312 (Analyze_Record_Representation_Clause):
16313 Use First/Next_Component_Or_Discriminant
16314 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16315 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16316 definition if type is unconstrained.
16317 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16318 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16319 Is_Abstract_Subprogram and Is_Abstract_Type.
16320 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16322 * repinfo.adb (List_Record_Info): Use First/
16323 Next_Component_Or_Discriminant.
16325 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16328 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16329 Include -gnatyA in default switches
16331 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16332 (Warn_On_Reverse_Bit_Order): New flag
16333 (Extensions_Allowed): Update the documentation.
16334 (Warn_On_Questionable_Missing_Parens): Now on by default
16336 * usage.adb: Add documentation of -gnatw.x/X switches
16337 Document new -gnatyA style switch
16338 -gnatq warnings are on by default
16340 2007-04-06 Ed Falis <falis@adacore.com>
16342 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16343 full word is no longer compared twice.
16345 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16347 * sem_ch10.adb (Install_Limited_Context_Clauses.
16348 Expand_Limited_With_Clause): Use a new copy of selector name in the
16349 call to Make_With_Clause. This fixes the tree structure for ASIS
16350 purposes. Nothing is changed in the compiler behaviour.
16351 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16352 a package renaming.
16353 (Install_Limited_With_Clauses): Do not install non-limited view when it
16354 is still incomplete.
16356 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16357 Gary Dismukes <dismukes@adacore.com>
16359 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16360 when capturing size information, instead of base type, which for a
16361 formal array type will be the unconstrained type.
16362 (Analyze_Formal_Object_Declaration): Add check for illegal default
16363 expressions for a formal in object of a limited type.
16364 (Instantiate_Object): Ditto.
16365 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16366 because they were defaulted in the formal package and no check applies
16368 (Check_Formal_Package_Instance): Extend conformance check to other
16369 discrete types beyond Integer.
16370 (Process_Default): Copy directly the unmatched formal. A generic copy
16371 has already been performed in Analyze_Formal_Package.
16372 (Analyze_Associations): If a formal subprogram has no match, check for
16373 partial parametrization before looking for a default, to prevent
16375 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16376 not set the instantiation environment before analyzing the actuals.
16377 Fixes regression on 8515-003 with implementation of AI-133.
16378 Set_Instance_Env checks whether the generic unit is a predefined
16379 unit, in which case the instance must be analyzed with the latest Ada
16380 mode. This setting must take place after analysis of the actuals,
16381 because the actuals must be analyzed and frozen in the Ada mode extant
16382 outside of the current instantiation.
16383 (Save_Env, Restore_Env): Preserve and restore the configuration
16384 parameters so that predefined units can be compiled in the proper Ada
16386 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16387 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16388 and Is_Abstract_Type.
16389 (Analyze_Formal_Package): For better error recovery, Add exception
16390 handler to catch Instantion_Error, which can be raised in
16391 Analyze_Associations
16393 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16394 Bob Duff <duff@adacore.com>
16395 Gary Dismukes <dismukes@adacore.com>
16397 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16398 prefix type is a discriminated subtype of the type of the formal.
16399 (Analyze_Allocator): Collect all coextensions regardless of the context.
16400 Whether they can be allocated statically is determined in exp_ch4.
16401 (Analyze_Selected_Component): If the prefix is a limited view and the
16402 non-limited view is available, use the non-limited one.
16403 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16404 therefore illegal), suggest a qualified expression rather than a type
16405 conversion, because a type conversion would be illegal in this context.
16406 (Anayze_Allocator): Trace recursively all nested allocators so that all
16407 coextensions are on the corresponding list for the root. Do no mark
16408 coextensions if the root allocator is within a declaration for a stack-
16409 allocated object, because the access discriminants will be allocated on
16411 (Analyze_Call): Remove restriction on calls to limited functions for the
16412 cases of generic actuals for formal objects, defaults for formal objects
16413 and defaults for record components.
16414 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16415 element list. Their expansion is delayed until the enclosing allocator
16416 is processed and its finalization list constructed.
16417 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16418 for an operation with the given name among the primitive operations of
16419 the corresponding record type.
16420 (Analyze_Selected_Component): If the prefix is a task type that
16421 implements an interface, and there is no entry with the given name,
16422 check whether there is another primitive operation (e.g. a function)
16424 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16425 properly the indexing of a function call written in prefix form, where
16426 the function returns an array type, and all parameters of the function
16427 except the first have defaults.
16428 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16429 the original operands, rather than relocating them, for efficiency and
16430 to work properly when an operand is overloaded.
16431 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16432 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16433 (Analyze_Selected_Component): If the prefix is a private extension, only
16434 scan the visible components, not those of the full view.
16435 (Try_Primitive_Operation): If the operation is a procedure, collect all
16436 possible interpretations, as for a function, because in the presence of
16437 classwide parameters several primitive operations of the type can match
16438 the given arguments.
16440 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16441 Robert Dewar <dewar@adacore.com>
16443 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16444 tag-indeterminate call to an abstract function, when the left-hand side
16446 (Analyze_Loop_Statement): Improve detection of infinite loops
16448 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16449 Thomas Quinot <quinot@adacore.com>
16451 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16452 out of Analyze_Package_Declaration, because processing must be applied
16453 to package bodies as well, for deferred constants completed by pragmas.
16454 (Analyze_Package_Declaration): When the package declaration being
16455 analyzed does not require an explicit body, call Check_Completion.
16456 (May_Need_Implicit_Body): An implicit body is required when a package
16457 spec contains the declaration of a remote access-to-classwide type.
16458 (Analyze_Package_Body): If the package contains RACWs, append the
16459 pending subprogram bodies generated by exp_dist at the end of the body.
16460 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16461 Is_Abstract_Subprogram and Is_Abstract_Type.
16462 (Preserve_Full_Attributes): The full entity list is not an attribute
16463 that must be preserved from full to partial view.
16465 * sem_dist.adb (Add_RAS_Dereference_TSS):
16466 Change primitive name to _Call so it cannot clash with any legal
16467 identifier, and be special-cased in Check_Completion.
16468 Mark the full view of the designated type for the RACW associated with
16469 a RAS as Comes_From_Source to get proper view switching when installing
16470 private declarations.
16471 Provite a placeholder nested package body along with the nested spec
16472 to have a place for Append_RACW_Bodies to generate the calling stubs
16473 and stream attributes.
16475 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16476 Robert Dewar <dewar@adacore.com>
16478 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16479 that is a limited view, check the non-limited view if available.
16480 (Undefined): Refine error message for missing with of Text_IO
16481 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16482 to distinguish real missing with cases.
16483 Fix format of all missing with messages
16484 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16485 renaming as body when renamed entity is abstract.
16487 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16488 Javier Miranda <miranda@adacore.com>
16490 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16491 predicate recursive, to handle complex expressions on literals whose
16492 spurious ambiguity comes from the abstract interpretation of some
16494 (Interface_Present_In_Ancestor): Add support to concurrent record
16496 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16497 Is_Abstract_Subprogram and Is_Abstract_Type.
16499 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16500 Javier Miranda <miranda@adacore.com>
16502 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16503 dereference of a local object R created as a reference to another
16504 object O, use the access level of O.
16505 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16506 rather than local Same_Formal_Type, to check whether protected operation
16507 overrides an inherited one.
16508 (Same_Formal_Type): New predicate, used when matching signatures of
16509 overriding synchronized operations, to handle the case when a formal
16510 has a type that is a generic actual.
16511 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16512 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16513 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16514 syntactic ambiguities involving indexing of function calls that return
16516 (Abstract_Interface_List): New subprogram that returns the list of
16517 abstract interfaces associated with a concurrent type or a
16518 concurrent record type.
16519 (Interface_Present_In_Parent): New subprogram used to check if a
16520 given type or some of its parents implement a given interface.
16521 (Collect_Abstract_Interfaces): Add support for concurrent types
16522 with interface types.
16523 (Has_Abstract_Interfaces): Add support for concurrent types with
16525 (Is_Parent): New subprogram that determines whether E1 is a parent
16526 of E2. For a concurrent type its parent is the first element of its
16527 list of interface types; for other types this function provides the
16528 same result than Is_Ancestor.
16529 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16530 (Collect_Synchronized_Interfaces): Removed because the subprogram
16531 Collect_Abstract_Interfaces provides this functionality.
16532 (Collect_Abstract_Interfaces): Minor update to give support to
16533 concurrent types and thus avoid undesired code duplication.
16534 (Get_Subprogram_Entity): Handle entry calls.
16535 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16537 (Enter_Name): Do not give -gnatwh hiding warning for record component
16538 entities, they never result in hiding.
16540 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16541 Robert Dewar <dewar@adacore.com>
16543 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16544 to chain nested components that are allocators for access discriminants
16545 of the enclosing object.
16546 Add N_Push and N_Pop nodes
16547 New field Exception_Label added
16548 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16549 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16550 (Is_Coextension): New flag for allocators, to mark allocators that
16551 correspond to access discriminants of dynamically allocated objects.
16552 (N_Block_Statement): Document the fact that the corresponding entity
16553 can be an E_Return_Statement.
16554 (Is_Coextension): New flag for allocators.
16555 Remove all code for DSP option
16557 * sprint.ads, sprint.adb: Display basic information for class_wide
16558 subtypes. Add handling of N_Push and N_Pop nodes
16560 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16562 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16563 before propagating exception.
16565 2007-04-06 Olivier Hainque <hainque@adacore.com>
16567 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16568 an address always within the call instruction from a return address.
16570 2007-04-06 Olivier Hainque <hainque@adacore.com>
16571 Eric Botcazou <botcazou@adacore.com>
16573 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16574 expression with a COMPOUND_EXPR including the call instead of emitting
16575 the call directly here.
16576 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16577 high bound is constant and the slice is empty. Tidy.
16578 (tree_transform, case N_Op_Not): Handle properly the case where the
16579 operation applies to a private type whose full view is a modular type.
16580 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16581 Address_Clause, use the associated Expression as the GNAT tree
16582 representing the choice value to ensure the corresponding GCC tree is
16583 of the proper kind.
16584 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16585 instead of just the operands, as the base GCC stabilize_reference does.
16586 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16587 requested; otherwise fail.
16588 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16590 2007-04-06 Thomas Quinot <quinot@adacore.com>
16592 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16593 implementation of UI_Div.
16594 (UI_Div): Reimplement as a call to UI_Div_Rem.
16595 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16596 remainder, avoiding the cost of a multiplication and a subtraction.
16597 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16598 provides both quotient and remainder in a single computation.
16599 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16600 functions for uint.
16601 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16602 is undefined if the given n is not inversible.
16604 2007-04-06 Olivier Hainque <hainque@adacore.com>
16606 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16607 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16610 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16611 Olivier Hainque <hainque@adacore.com>
16613 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16614 when updating the contents of the old pointer to an unconstrained array.
16615 (end_subprog_body): Set error_gnat_node to Empty.
16616 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16617 (unchecked_convert): For subtype to base type conversions, require that
16618 the source be a subtype if it is an integer type.
16619 (builtin_decls): New global, vector of available builtin functions.
16620 (gnat_pushdecl): Add global builtin function declaration nodes to the
16621 builtin_decls list.
16622 (gnat_install_builtins): Adjust comments.
16623 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16624 calling gnat_pushdecl, so that it knows when it handed a builtin
16625 function declaration node.
16626 (builtin_decl_for): Search the builtin_decls list.
16628 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16630 * s-stchop-vxworks.adb:
16631 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16633 2007-04-06 Robert Dewar <dewar@adacore.com>
16634 Arnaud Charlet <charlet@adacore.com>
16636 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16638 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16640 Add mention of -Sev (set initialize_scalars option from environment
16641 variable at run time) in gnatbind usage message.
16643 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16645 * fname-uf.ads: Minor comment fix
16647 * osint.ads: Change pragma Elaborate to Elaborate_All
16649 * par-load.adb: Add documentation.
16651 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16653 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16655 * s-secsta.ads: Extra comments
16657 * s-soflin.ads: Minor comment fixes
16659 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16661 * s-wchcon.ads: Minor comment addition
16663 * treepr.adb: Minor change in message
16664 (Print_Name,Print_Node): Make these debug printouts more robust: print
16665 "no such..." instead of crashing on bad input.
16667 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16669 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16670 instead of gnat_signed_or_unsigned_type.
16671 * utils.c (gnat_signed_or_unsigned_type): Remove.
16672 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16673 * gigi.h (gnat_signed_or_unsigned_type): Remove
16675 2007-03-09 Roger Sayle <roger@eyesopen.com>
16677 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16678 fold with the result of buildN.
16679 * decl.c (gnat_to_gnu_entity): Likewise.
16680 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16681 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16683 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16684 nonbinary_modular_operation, build_binary_op, build_unary_op,
16685 build_cond_expr): Likewise.
16687 * utils.c (convert): Use fold_build1 when casting values to void.
16688 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16689 fold_convert instead of convert when appropriate.
16691 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16693 * Make-lang.in: Add install-pdf target as copied from
16694 automake v1.10 rules.
16696 2007-02-28 Andreas Schwab <schwab@suse.de>
16698 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16699 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16700 (doc/gnat-style.info): Likewise.
16702 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16704 * gnat-style.texi: Standardize title page.
16705 * gnat_rm.texi: Likewise.
16706 * gnat_ugn.texi: Likewise.
16708 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16710 * decl.c (annotate_value): Adjust for refactoring of tree_map
16713 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16715 * decl.c (annotate_value): Adjust for refactoring of tree_map
16718 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16721 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16722 untagged derived type, add hidden components to keep discriminant
16723 layout consistent, when a given discriminant of the derived type
16724 constraints several discriminants of the parent type.
16726 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16727 Sandra Loosemore <sandra@codesourcery.com>
16729 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16730 build the call expression.
16731 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16732 * utils.c (max_size) <tcc_exceptional>: Delete.
16733 <tcc_vl_exp>: New case.
16734 <tcc_expression>: Delete CALL_EXPR subcase.
16735 (build_global_cdtor): Use build_call_nary instead of build3.
16736 * utils2.c (build_call_1_expr): Likewise.
16737 (build_call_2_expr): Likewise.
16738 (build_call_0_expr): Likewise.
16739 (build_call_alloc_dealloc): Likewise.
16741 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16743 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16744 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16745 and _Unwind_SWord with _sleb128_t.
16747 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16749 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16750 * decl.c: Include gt-ada-decl.h.
16751 (annotate_value_cache): New.
16752 (annotate_value): Use it instead of TREE_COMPLEXITY.
16754 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16756 * misc.c, utils2.c: Fix comment typos.
16758 2007-01-24 Roger Sayle <roger@eyesopen.com>
16760 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16761 TREE_CONSTANT_OVERFLOW.
16762 (allocatable_size_p, annotate_value): Likewise.
16763 * trans.c (gnat_to_gnu): Likewise.
16764 * utils.c (unchecked_convert): Likewise.
16765 * utils2.c (build_simple_component_ref): Likewise.
16767 2007-01-23 Richard Guenther <rguenther@suse.de>
16770 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16771 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16772 (gnatboot3): Likewise.
16773 (GNATBIND): Do not define.
16774 * Makefile.in (GNATBIND): Do not define.
16776 2007-01-08 Richard Guenther <rguenther@suse.de>
16778 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16779 * trans.c (gnat_to_gnu): Likewise.
16781 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16783 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16784 * adaint.c: Likewise.
16786 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16788 Merge from gimple-tuples-branch:
16789 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16791 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16792 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16793 GIMPLE_MODIFY_STMT.
16795 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16797 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16798 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16801 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16804 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16805 if the initializer takes into account the padding.
16807 2006-11-11 Richard Guenther <rguenther@suse.de>
16809 * trans.c (maybe_stabilize_reference): Remove handling of
16810 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16812 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16815 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16816 (To_Target_Priority): New function.
16818 2006-10-31 Robert Dewar <dewar@adacore.com>
16820 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16821 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16822 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16823 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16824 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16825 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16826 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16827 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16828 a-szbzha.adb: Minor reformatting. Fix header.
16830 * a-numaux-x86.adb: Add parentheses for use of unary minus
16831 * a-ngcefu.adb: Supply missing parentheses for unary minus
16832 * a-ngcoty.adb: Add parens for use of unary minus
16833 * a-ngelfu.adb: Add missing parens for unary minus
16834 * a-tifiio.adb: Add parentheses for uses of unary minus
16836 2006-10-31 Robert Dewar <dewar@adacore.com>
16837 Bob Duff <duff@adacore.com>
16838 Ed Schonberg <schonberg@adacore.com>
16840 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16841 with multiplying operator.
16842 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16843 pointer whether the context expects "any real type".
16844 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16845 universal_fixed "*" and "/" operators when they are used in a context
16846 that expects any real type. Also set the type of the node to
16847 Universal_Real in this case, because downstream processing requires it
16848 (mainly static expression evaluation).
16849 Reword some continuation messages
16850 Add some \\ sequences to continuation messages
16851 (Resolve_Call): Refine infinite recursion case. The test has been
16852 sharpened to eliminate some false positives.
16853 Check for Current_Task usage now includes entry barrier, and is now a
16854 warning, not an error.
16855 (Resolve): If the call is ambiguous, indicate whether an interpretation
16856 is an inherited operation.
16857 (Check_Aggr): When resolving aggregates, skip associations with a box,
16858 which are priori correct, and will be replaced by an actual default
16859 expression in the course of expansion.
16860 (Resolve_Type_Conversion): Add missing support for conversion from
16861 a class-wide interface to a tagged type. Minor code cleanup.
16862 (Valid_Tagged_Converion): Add support for abstact interface type
16864 (Resolve_Selected_Component): Call Generate_Reference here rather than
16865 during analysis, and use May_Be_Lvalue to distinguish read/write.
16866 (Valid_Array_Conversion): New procedure, abstracted from
16867 Valid_Conversion, to incorporate accessibility checks for arrays of
16868 anonymous access types.
16869 (Valid_Conversion): For a conversion to a numeric type occurring in an
16870 instance or inlined body, no need to check that the operand type is
16871 numeric, since this has been checked during analysis of the template.
16872 Remove legacy test for scope name Unchecked_Conversion.
16874 * sem_res.ads: Minor reformatting
16876 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16877 (PE_Current_Task_In_Entry_Body): New exception code
16878 (SE_Restriction_Violation): Removed, not used
16880 * a-except.ads: Update comments.
16882 * types.h, types.ads: Add definition for Validity_Check
16883 (PE_Current_Task_In_Entry_Body): New exception code
16884 (SE_Restriction_Violation): Removed, not used
16886 2006-10-31 Thomas Quinot <quinot@adacore.com>
16888 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16891 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16892 Jose Ruiz <ruiz@adacore.com>
16894 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16895 part of Ada.Calendar: all subprogram raise Unimplemented.
16896 (Split_W_Offset): Temp function body, raising Unimplemented
16898 * a-calend.ads, a-calend-vms.ads:
16899 Add imported variable Invalid_TZ_Offset used to designate targets unable
16900 to support time zones.
16901 (Unimplemented): Temporary function raised by the body of new
16903 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16904 unit provides handling of leap seconds and is used by the new Ada 2005
16905 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16906 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16907 version returns an extra value which is the offset to UTC.
16909 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16910 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16911 (Split_W_Offset): New function body.
16912 (Time_Of): When a date is close to UNIX epoch, compute the time for
16913 that date plus one day (that amount is later substracted after
16914 executing mktime) so there are no problems with time zone adjustments.
16916 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16918 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16919 a-catizo.ads, a-catizo.adb: New files.
16921 * impunit.adb: Add new Ada 2005 entries
16923 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16924 Rename all occurences of "__gnat_localtime_r" to
16925 "__gnat_localtime_tzoff".
16926 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16927 zone data and calculate the GMT offset.
16928 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16929 Use the field "tm_gmtoff" to extract the GMT offset.
16930 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16931 the external variable "timezone" to calculate the GMT offset.
16933 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16934 Jose Ruiz <ruiz@adacore.com>
16936 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16937 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16938 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16939 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16940 System.Any_Priority to a POSIX priority on the target.
16942 * system-linux-ia64.ads:
16943 Extend range of Priority types on Linux to use the whole range made
16944 available by the system.
16946 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16947 function maps from System.Any_Priority to a POSIX priority on the
16949 (PTHREAD_PRIO_PROTECT): Set real value.
16950 (PTHREAD_PRIO_INHERIT): Now a function.
16951 (SIGCPUFAIL): New signal.
16952 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16953 are documented as reserved by the OS.
16955 * system-aix.ads: Use the full range of priorities provided by the
16958 * s-taprop-posix.adb: Call new function To_Target_Priority.
16959 (Set_Priority): Take into account Task_Dispatching_Policy and
16960 Priority_Specific_Dispatching pragmas when determining if Round Robin
16961 must be used for scheduling the task.
16963 * system-linux-x86_64.ads, system-linux-x86.ads,
16964 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16965 the whole range made available by the system.
16967 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16968 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16969 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16970 when deallocating the TCB in order to avoid potential references to
16972 (Set_Priority): Take into account Task_Dispatching_Policy and
16973 Priority_Specific_Dispatching pragmas when determining if Round Robin
16974 or FIFO within priorities must be used for scheduling the task.
16976 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16977 the Thread field (to be used internally by the run-time system) and the
16978 kernel-level task id in the LWP field (to be used by the debugger).
16979 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16980 instance, and propagate the current task options to the spawned task.
16981 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16982 (Initialize): Set Round Robin dispatching when the corresponding pragma
16985 2006-10-31 Robert Dewar <dewar@adacore.com>
16987 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16988 system-linux-hppa.ads, system-hpux-ia64.ads,
16989 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16990 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16991 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16992 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16993 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16994 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16995 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16996 Default_Bit_Order) to kill constant condition warnings for references
16999 2006-10-31 Vincent Celier <celier@adacore.com>
17000 Eric Botcazou <ebotcazou@adacore.com>
17002 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
17003 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
17004 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
17005 Ext_To, when building the library file name
17007 * mlib-tgt-vxworks.adb: ditto.
17008 (Get_Target_Suffix): Add support for x86 targets.
17010 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
17012 * mlib-tgt-darwin.adb:
17013 Use Append_To, instead of Ext_To, when building the library file name
17014 (Flat_Namespace): New global variable.
17015 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
17016 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
17017 (Link_Shared_Libgcc): Delete.
17018 (Build_Dynamic_Library): Adjust for above changes.
17020 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
17022 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17024 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
17025 (Initialize): Add type conversions required by above change.
17027 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17029 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
17030 (getpid): New body for this function that uses the underlying taskIdSelf
17031 function for VxWorks 5 and VxWorks 6 in kernel mode.
17032 (unsigned_int): New type, modular to allow logical bit operations.
17033 (taskOptionsGet): New imported function.
17035 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
17036 field to be compliant with the type used by the corresponding operating
17039 2006-10-31 Pascal Obry <obry@adacore.com>
17040 Eric Botcazou <ebotcazou@adacore.com>
17041 Vincent Celier <celier@adacore.com>
17043 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17044 ASCII version of the registry API. This is needed as the GNAT runtime
17045 is now UNICODE by default.
17047 (get_gcc_version): Do not hardcode the return value.
17048 (__gnat_file_time_name): On Windows properly set the default returned
17049 value to -1 which corresponds to Invalid_Time.
17050 (__gnat_fopen): New routine. A simple wrapper on all plateforms
17051 except on Windows where it does conversion for unicode support.
17052 (__gnat_freopen): Idem.
17053 (__gnat_locate_exec_on_path): If environment variable PATH does not
17054 exist, return a NULL pointer
17056 * adaint.h: (__gnat_fopen): Declare.
17057 (__gnat_freopen): Likewise.
17059 * mingw32.h (_tfreopen): Define this macro here for older MingW
17061 Activate the unicode support on platforms using a MingW runtime
17062 version 3.9 or newer.
17064 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17065 This is needed for proper unicode support on Windows.
17068 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17069 Nicolas Setton <setton@adacore.com>
17070 Olivier Hainque <hainque@adacore.com>
17071 Gary Dismukes <dismukes@adacore.com>
17073 * gigi.h: (tree_code_for_record_type): Declare.
17074 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17075 (get_global_renaming_pointers): Rename to
17076 invalidate_global_renaming_pointers.
17077 (static_ctors): Delete.
17078 (static_dtors): Likewise.
17079 (gnat_write_global_declarations): Declare.
17080 (create_var_decl): Adjust descriptive comment to indicate that the
17081 subprogram may return a CONST_DECL node.
17082 (create_true_var_decl): Declare new function, similar to
17083 create_var_decl but forcing the creation of a VAR_DECL node.
17084 (get_global_renaming_pointers): Declare.
17085 (add_global_renaming_pointer): Likewise.
17087 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17089 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17090 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17092 (gnat_to_gnu_entity): Remove From_With_Type from computation for
17094 <E_Access_Type>: Use the Non_Limited_View as the full view of the
17095 designated type if the pointer comes from a limited_with clause. Make
17096 incomplete designated type if it is in the main unit and has a freeze
17098 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17099 Underlying_Full_View similarly. Return earlier if the full view already
17100 has an associated tree.
17101 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17102 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17103 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17104 reference type built for objects with an address clause.
17105 Use create_true_var_decl with const_flag set for
17106 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17108 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17109 for Character and Wide_Character types. This info is read by the
17110 dwarf-2 writer, and is needed to be able to use the command "ptype
17111 character" in the debugger.
17112 (gnat_to_gnu_entity): When generating a type representing
17113 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17114 so that debug writers can distinguish it from ordinary integers.
17115 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17116 addition to TREE_READONLY to assert the constantness of variables for
17117 elaboration purposes.
17118 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17119 parameters to call new Einfo function First_Formal_With_Extras.
17120 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17121 protected type with its corresponding discriminant, to obtain a usable
17123 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17124 for a multiple elaboration of the "equivalent" type.
17125 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17126 into record_global_renaming_pointer.
17127 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17128 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17129 <E_Array_Subtype>: Likewise.
17130 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17131 incomplete subtypes and incomplete subtypes of incomplete types visible
17132 through a limited with clause.
17133 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17134 the base index type for the maximum size of the array only if they are
17136 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17137 expression into a SAVE_EXPR if stabilization failed.
17139 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17140 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17141 by lower level compilation passes.
17142 (gnat_genericize): New function, lowering a function body to GENERIC.
17143 Turn the type of RESULT_DECL into a real reference type if the decl
17144 has been marked DECL_BY_REFERENCE, and adjust references to the latter
17146 (gnat_genericize_r): New function. Tree walking callback for
17148 (convert_from_reference, is_byref_result): New functions. Helpers for
17150 (create_type_decl): Call gnat_pushdecl before calling
17151 rest_of_decl_compilation, to make sure that field TYPE_NAME of
17152 type_decl is properly set before calling the debug information writers.
17153 (write_record_type_debug_info): The heuristics which compute the
17154 alignment of a field in a variant record might not be accurate. Add a
17155 safety test to make sure no alignment is set to a smaller value than
17156 the alignment of the field type.
17157 (make_dummy_type): Use the Non_Limited_View as the underlying type if
17158 the type comes from a limited_with clause. Do not loop on the full view.
17159 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17160 (dummy_node_table): New global variable, moved from decl.c.
17161 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17162 (save_gnu_tree): Use above macros.
17163 (get_gnu_tree): Likewise.
17164 (present_gnu_tree): Likewise.
17165 (init_dummy_type): New function, moved from decl.c. Use above macros.
17166 (make_dummy_type): Likewise.
17167 (tree_code_for_record_type): New function extracted from make_dummy_type
17168 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17169 (static_ctors): Change it to a vector, make static.
17170 (static_dtors): Likewise.
17171 (end_subprog_body): Adjust for above change.
17172 (build_global_cdtor): Moved from trans.c.
17173 (gnat_write_global_declarations): Emit global constructor and
17174 destructor, and call cgraph_optimize before emitting debug info for
17175 global declarations.
17176 (global_decls): New global variable.
17177 (gnat_pushdecl): Store the global declarations in global_decls, for
17179 (gnat_write_global_declarations): Emit debug information for global
17181 (create_var_decl_1): Former create_var_decl, with an extra argument to
17182 state whether the creation of a CONST_DECL is allowed.
17183 (create_var_decl): Behavior unchanged. Now a wrapper around
17184 create_var_decl_1 allowing CONST_DECL creation.
17185 (create_true_var_decl): New function, similar to create_var_decl but
17186 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17187 (create_field_decl): Do not always mark the field as addressable
17188 if its type is an aggregate.
17189 (global_renaming_pointers): New static variable.
17190 (add_global_renaming_pointer): New function.
17191 (get_global_renaming_pointers): Likewise.
17193 * misc.c (gnat_dwarf_name): New function.
17194 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17195 (gnat_post_options): Add comment about structural alias analysis.
17196 (gnat_parse_file): Do not call cgraph_optimize here.
17197 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17199 * trans.c (process_freeze_entity): Don't abort if we already have a
17200 non dummy GCC tree for a Concurrent_Record_Type, as it might
17201 legitimately have been elaborated while processing the associated
17202 Concurrent_Type prior to this explicit freeze node.
17203 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17204 exception handler volatile if it is of variable size.
17205 (process_type): Remove bypass for types coming from a limited_with
17207 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17208 actual, convert the corresponding gnu_actual to the real destination
17209 type when necessary.
17210 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17211 originally TREE_READONLY but whose elaboration cannot be performed
17213 Part of fix for F504-021.
17214 (tree_transform, subprogram cases): Change loops on formal parameters to
17215 call new Einfo function First_Formal_With_Extras.
17216 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17217 stemming from type conversion for the lhs.
17218 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17219 number of bits per unit for components of records.
17220 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17221 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17222 with At_End_Proc after the SJLJ EH cleanup.
17223 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17225 (elaborate_all_entities): Do not retest type_annotate_only.
17226 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17227 result type of an abstract subprogram, which may be an itype associated
17228 with an anonymous access result (related to AI-318-02).
17229 (build_global_cdtor): Move to utils.c.
17230 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17231 this choice is not a null tree nor an integer constant.
17232 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17233 on the body of elaboration routines instead of mark_unvisited.
17234 (add_stmt): Do not mark the tree.
17235 (add_decl_expr): Tweak comment.
17236 (mark_unvisited): Delete.
17237 (unshare_save_expr): New static function.
17238 (call_to_gnu): Issue an error when making a temporary around a
17239 procedure call because of non-addressable actual parameter if the
17240 type of the formal is by_reference.
17241 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17242 after building the elaboration routine.
17244 2006-10-31 Bob Duff <duff@adacore.com>
17246 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17247 as finalization-started, so we can raise Program_Error on 'new'.
17249 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17250 collection has already started.
17252 * s-finimp.ads (Collection_Finalization_Started): Added new special
17253 flag value for indicating that a collection's finalization has started.
17255 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17256 create a task whose master has already waited for dependent tasks.
17258 2006-10-31 Robert Dewar <dewar@adacore.com>
17260 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17262 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17263 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17264 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17265 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17266 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17267 a-except-2005.ads: Add pragma Preelaborable_Warning
17269 2006-10-31 Robert Dewar <dewar@adacore.com>
17270 Jose Ruiz <ruiz@adacore.com>
17272 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17274 * ali.adb (Get_Name): Properly handle scanning of wide character names
17275 encoded with brackets notation.
17276 (Known_ALI_Lines): Add S lines to this list.
17277 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17278 New flag Elaborate_All_Desirable in unit table
17280 * ali.ads (Priority_Specific_Dispatching): Add this range of
17281 identifiers to be used for Priority_Specific_Dispatching table entries.
17282 (ALIs_Record): Add First_Specific_Dispatching and
17283 Last_Specific_Dispatching that point to the first and last entries
17284 respectively in the priority specific dispatching table for this unit.
17285 (Specific_Dispatching): Add this table for storing each S (priority
17286 specific dispatching) line encountered in the input ALI file.
17287 New flag Elaborate_All_Desirable in unit table
17289 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17290 Check_Consistent_Dispatching_Policy.
17291 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17292 verifying that the use of Priority_Specific_Dispatching,
17293 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17296 * bindgen.adb: (Public_Version_Warning): function removed.
17297 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17298 required information from ALI files in order to initialize the table
17299 containing the specific dispatching policy.
17300 (Gen_Adainit_Ada): Generate the variables required for priority specific
17301 dispatching entries (__gl_priority_specific_dispatching and
17302 __gl_num_specific_dispatching).
17303 (Gen_Adainit_C): Generate the variables required for priority specific
17304 dispatching entries (__gl_priority_specific_dispatching and
17305 __gl_num_specific_dispatching).
17306 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17308 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17309 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17311 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17312 a call to gnat_set_globals.
17313 Generate a string containing settings from
17314 Priority_Specific_Dispatching pragma entries.
17315 (Gen_Object_Files_Options): Do not include the runtime libraries when
17316 pragma No_Run_Time is specified.
17318 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17319 consistency with s-intman-posix.adb.
17320 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17321 handler is installed with SA_SIGINFO.
17322 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17323 FreeBSD ZCX support, copied from Linux version.
17324 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17325 sigfillset, and sigemptyset so the routines defined by MaRTE.
17326 (__gl_priority_specific_dispatching): Add this variable that stores the
17327 string containing priority specific dispatching policies in the
17329 (__gl_num_specific_dispatching): Add this variable that indicates the
17330 highest priority for which a priority specific dispatching pragma
17332 (__gnat_get_specific_dispatching): Add this routine that returns the
17333 priority specific dispatching policy, as set by a
17334 Priority_Specific_Dispatching pragma appearing anywhere in the current
17335 partition. The input argument is the priority number, and the result
17336 is the upper case first character of the policy name.
17337 (__gnat_set_globals): Now a dummy function.
17338 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17339 mechargs instead of sigargs, as the latter can be retrieved from the
17340 former and sigargs is not what we want on ia64.
17341 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17343 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17344 (tasking_error): Remove unused symbol.
17345 (_abort_signal): Move this symbol to the IRIX specific part since this
17346 is the only target that uses this definition.
17347 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17348 this is the only target that uses this definition.
17349 (Lock_Task): Remove unused symbol.
17350 (Unlock_Task): Remove unused symbol.
17352 * lib-writ.adb (Write_ALI): Output new S lines for
17353 Priority_Specific_Dispatching pragmas.
17354 Implement new flag BD for elaborate body desirable
17356 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17357 (Specific_Dispatching): Add this table for storing the entries
17358 corresponding to Priority_Specific_Dispatching pragmas.
17359 Document new BD flag for elaborate body desirable
17361 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17364 2006-10-31 Javier Miranda <miranda@adacore.com>
17366 * a-tags.ads, a-tags.adb:
17367 (Predefined_DT): New function that improves readability of the code.
17368 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17369 Inherit_DT): Use the new function Predefined_DT to improve code
17371 (Register_Interface_Tag): Update assertion.
17372 (Set_Interface_Table): Update assertion.
17373 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17374 determining progenitor interfaces in Tags.
17375 (Inherit_CPP_DT): New subprogram.
17377 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17378 analysis of the thunk code.
17379 (Expand_Interface_Conversion): Handle run-time conversion of
17380 access to class wide types.
17381 (Expand_Dispatching_Call): When generating the profile for the
17382 subprogram itype for a dispatching operation, properly terminate the
17383 formal parameters chaind list (set the Next_Entity of the last formal
17385 (Collect_All_Interfaces): Removed. This routine has been moved to
17386 sem_util and renamed as Collect_All_Abstract_Interfaces.
17387 (Set_All_DT_Position): Hidden entities associated with abstract
17388 interface primitives are not taken into account in the check for
17389 3.9.3(10); this check is done with the aliased entity.
17390 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17391 interfacing with CPP by default.
17392 (Expand_Interface_Conversion): Add missing support for static conversion
17393 from an interface to a tagged type.
17394 (Collect_All_Interfaces): Add new out formal containing the list of
17395 abstract interface types to cleanup the subprogram Make_DT.
17396 (Make_DT): Update the code to generate the table of interfaces in case
17397 of abstract interface types.
17398 (Is_Predefined_Dispatching_Alias): New function that returns true if
17399 a primitive is not a predefined dispatching primitive but it is an
17400 alias of a predefined dispatching primitive.
17401 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17402 compiling under full ABI compatibility mode we avoid the generation of
17403 calls to run-time services that fill the dispatch tables because under
17404 this mode we currently inherit the dispatch tables in the IP subprogram.
17405 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17406 (Expand_Interface_Conversion): Use an address as the type of the formal
17407 of the internally built function that handles the case in which the
17408 target type is an access type.
17410 2006-10-31 Robert Dewar <dewar@adacore.com>
17412 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17414 2006-10-31 Robert Dewar <dewar@adacore.com>
17416 * bindusg.ads, bindusg.adb:
17417 Change to package and rename procedure as Display, which
17418 now ensures that it only outputs usage information once.
17420 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17422 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17425 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17428 2006-10-31 Robert Dewar <dewar@adacore.com>
17429 Ed Schonberg <schonberg@adacore.com>
17431 * treepr.adb: Use new subtype N_Membership_Test
17433 * checks.ads, checks.adb: Add definition for Validity_Check
17434 (Range_Or_Validity_Checks_Suppressed): New function
17435 (Ensure_Valid): Test Validity_Check suppressed
17436 (Insert_Valid_Check): Test Validity_Check suppressed
17437 (Insert_Valid_Check): Preserve Do_Range_Check flag
17438 (Validity_Check_Range): New procedure
17439 (Expr_Known_Valid): Result of membership test is always valid
17440 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17441 by themselves. Disabling those checks must also be done for task types,
17442 where discriminants may be used for the bounds of entry families.
17443 (Apply_Address_Clause_Check): Remove side-effects if address expression
17444 is non-static and is not the name of a declared constant.
17445 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17446 Code cleanup and new error messages.
17447 (Enable_Range_Check): Test for some cases of suppressed checks
17448 (Generate_Index_Checks): Suppress index checks if index checks are
17449 suppressed for array object or array type.
17450 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17451 length check failure, even if checks are off.
17452 (Ensure_Valid): Do not generate a check on an indexed component whose
17453 prefix is a packed boolean array.
17454 * checks.adb: (Alignment_Checks_Suppressed): New function
17455 (Apply_Address_Clause_Check): New procedure, this is a completely
17456 rewritten replacement for Apply_Alignment_Check
17457 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17458 we request a discriminal value only in case of discriminants.
17459 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17460 assignments where the target subtype is unconstrained and the target
17461 object is a parameter or dereference (other aliased cases are known
17462 to be unconstrained).
17464 2006-10-31 Robert Dewar <dewar@adacore.com>
17466 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17467 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17468 vms_conv.adb: Fix bad table increment values (much too small)
17470 * table.adb (Realloc): Make sure we get at least some new elements
17471 Defends against silly small values for table increment
17473 2006-10-31 Robert Dewar <dewar@adacore.com>
17474 Ed Schonberg <schonberg@adacore.com>
17475 Bob Duff <duff@adacore.com>
17477 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17478 entities. Move other fields around to make this possible
17479 (Is_Derived_Type): Add missing call to Is_Type.
17480 (Extra_Formals): New function for subprograms, entries, subprogram
17482 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17483 (First_Formal_With_Extras): New function for subprogs, entries, subp
17485 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17486 Add node information for E_Return_Statement.
17487 (Elaborate_Body_Desirable): New flag
17488 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17489 to be Is_Inherently_Limited_Type, because return-by-reference has
17490 no meaning in Ada 2005.
17491 (E_Return_Statement): New entity kind.
17492 (Return_Applies_To): Field of E_Return_Statement.
17493 (Is_Return_Object): New flag in object entities.
17494 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17495 (Must_Have_Preelab_Init): New flag
17496 (Known_To_Have_Preelab_Init): New flag
17497 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17498 (Is_Visible_Formal): New flag on entities in formal packages.
17499 (Low_Bound_Known): New flag
17500 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17502 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17503 output when Id is an incomplete subtype.
17505 2006-10-31 Robert Dewar <dewar@adacore.com>
17507 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17508 Avoid abbreviation Creat
17509 (Finalize): List all sources in extended mail source if -gnatl
17511 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17512 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17513 (Set_Specific_Warning_On): New procedure
17514 (Set_Specific_Warning_Off): New procedure
17515 Add implementation of new insertion \\
17516 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17517 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17519 (Error_Msg_Internal): Make sure that we set Last_Killed to
17520 True when a message from another package is suppressed.
17521 Implement insertion character ~ (insert string)
17522 (First_Node): Minor adjustments to get better placement.
17525 Implement new -gnatl=xxx switch to output listing to file
17528 Implement new -gnatl=xxx switch to output listing to file
17530 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17531 (Commands_To_Stdout): New flag
17532 Implement new -gnatl=xxx switch to output listing to file
17533 New switch Dump_Source_Text
17534 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17535 Define Error_Msg_Line_Length
17536 (Warn_On_Assumed_Low_Bound): New switch
17538 * osint.ads, osint.adb
17539 (Normalize_Directory_Name): Fix bug.
17540 Implement new -gnatl=xxx switch to output listing to file
17541 (Concat): Removed, replaced by real concatenation
17542 Make use of concatenation now allowed in compiler
17543 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17544 we find the 'lib' or 'bin' directory even when the tool has been
17545 invoked with a relative path.
17546 (Executable_Name): New function taking string parameters.
17548 * osint-c.ads, osint-c.adb:
17549 Implement new -gnatl=xxx switch to output listing to file
17551 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17554 Implement new -gnatl=xxx switch to output listing to file
17555 Recognize new -gnatL switch
17556 (no longer keep in old warning about old style usage)
17557 Use concatenation to simplify code
17558 Recognize -gnatjnn switch
17559 (Scan_Front_End_Switches): Clean up handling of -gnatW
17560 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17562 2006-10-31 Robert Dewar <dewar@adacore.com>
17564 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17565 (Set_Specific_Warning_Off): New procedure
17566 (Warning_Specifically_Suppressed): New function
17567 (Validate_Specific_Warnings): New procedure
17568 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17570 * err_vars.ads: Implement insertion character ~ (insert string)
17572 2006-10-31 Bob Duff <duff@adacore.com>
17573 Ed Schonberg <schonberg@adacore.com>
17575 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17576 the parent part is a build-in-place function call, generate assignments.
17577 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17578 are build-in-place function calls.
17579 (Replace_Self_Reference): New subsidiary of
17580 Make_OK_Assignment_Statement, to replace an access attribute that is a
17581 self-reference into an access to the appropriate component of the
17582 target object. Generalizes previous mechanism to handle self-references
17583 nested at any level.
17584 (Is_Self_Referential_Init): Remove, not needed.
17585 (Is_Self_Referential_Init): New predicate to simplify handling of self
17586 referential components in record aggregates.
17587 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17588 check for presence of entity before checking for self-reference.
17589 (Has_Default_Init_Comps): Return True if a component association is a
17590 self-reference to the enclosing type, which can only come from a
17591 default initialization.
17592 (Make_OK_Assignment_Statement): If the expression is of the form
17593 Typ'Acc, where Acc is an access attribute, the expression comes from a
17594 default initialized self-referential component.
17595 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17596 that has been derived from several abstract interfaces we must also
17597 initialize the tags of the secondary dispatch tables.
17599 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17600 Thomas Quinot <quinot@adacore.com>
17601 Javier Miranda <miranda@adacore.com>
17602 Robert Dewar <dewar@adacore.com>
17605 (Expand_Access_To_Protected_Op): If the context indicates that an access
17606 to a local operation may be transfered outside of the object, create an
17607 access to the wrapper operation that must be used in an external call.
17608 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17609 target, pass the Valid attribute applied to a floating-point prefix on
17610 to the back end without expansion.
17611 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17612 the allocated storage when it is specified by a per-object expression.
17613 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17614 Nothing to do here, the attribute has been rewritten during semantic
17616 (Expand_Attribute_Reference): Handle expansion of the new Priority
17618 (Find_Fat_Info): Handle case of universal real
17619 (Expand_Access_To_Protected_Op): Fix use of access to protected
17620 subprogram from inside the body of a protected entry.
17621 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17622 'Access and 'Unrestricted_Access, to transform the attribute reference
17623 into a fat pointer.
17624 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17625 subcomponent's enclosing variable is aliased with a constrained subtype.
17626 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17627 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17628 an aliased prefix must be known to be constrained in order to use True
17629 for the attribute value, and now it's possible for some aliased views
17630 to be unconstrained.
17632 2006-10-31 Robert Dewar <dewar@adacore.com>
17634 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17635 (Expand_Entity_Reference): Correct error of not handling subprogram
17636 formals in current_value processing.
17638 2006-10-31 Javier Miranda <miranda@adacore.com>
17639 Robert Dewar <dewar@adacore.com>
17640 Ed Schonberg <schonberg@adacore.com>
17641 Gary Dismukes <dismukes@adacore.com>
17643 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17644 register in the final list objects containing class-wide interfaces;
17645 otherwise we incorrectly register the tag of the interface in the final
17647 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17648 generate the wrapper if the parent primitive is abstract. This is
17649 required to report the correct error message.
17650 (Expand_N_Subtype_Indication): Do validity checks on range
17651 (Clean_Task_Names): If an initialization procedure includes a call to
17652 initialize a task (sub)component, indicate that the procedure will use
17653 the secondary stack.
17654 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17655 compatibility for interfacing with CPP by default.
17656 (Expand_N_Object_Declaration): Only build an Adjust call when the
17657 object's type is a nonlimited controlled type.
17658 * exp_ch3.adb: Add with and use of Exp_Ch6.
17659 (Expand_N_Object_Declaration): Check for object initialization that is a
17660 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17661 Object_Declaration to the call.
17662 (Freeze_Type): When the designated type of an RACW was not frozen at the
17663 point where the RACW was declared, validate the primitive operations
17664 with respect to E.2.2(14) when it finally is frozen.
17665 (Build_Initialization_Call,Expand_Record_Controller): Rename
17666 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17667 return-by-reference has no meaning in Ada 2005.
17668 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17669 to register tag of the immediate ancestor interfaces in the
17670 run-time structure.
17671 (Init_Secondary_Tags): Moved to the specification to allow the
17672 initialization of extension aggregates with abstract interfaces.
17673 (Build_Master_Renaming): Make public, for use by function declarations
17674 whose return type is an anonymous access type.
17675 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17676 Insert_List_Before_And_Analyze after the generation of the specs
17677 associated with null procedures.
17678 (Expand_Tagged_Root): Update documentation in its specification.
17679 (Init_Secondary_Tags): Update documentation.
17680 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17681 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17682 then generate code to inherit the contents of the dispatch table
17683 directly from the ancestor.
17684 (Expand_Record_Controller): Insert controller component after tags of
17685 implemented interfaces.
17686 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17687 create null procedure overridings when null procedures are inherited
17689 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17690 declarations for overriding null primitives inherited from interfaces.
17691 (Is_Null_Interface_Procedure): New function in
17692 Make_Null_Procedure_Specs.
17693 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17694 immediate ancestor of a tagged type is an abstract interface type we
17695 must generate the specification of the predefined primitives associated
17696 with controlled types (because the dispatch table of the ancestor is
17697 null and hence these entries cannot be inherited). This is required to
17698 elaborate well the dispatch table.
17700 2006-10-31 Javier Miranda <miranda@adacore.com>
17701 Ed Schonberg <schonberg@adacore.com>
17702 Bob Duff <duff@adacore.com>
17703 Gary Dismukes <dismukes@adacore.com>
17704 Robert Dewar <dewar@adacore.com>
17706 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17708 (Expand_N_In): Do validity checks on range
17709 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17710 (Expand_N_Allocator): For "new T", if the object is constrained by
17711 discriminant defaults, allocate the right amount of memory, rather than
17712 the maximum for type T.
17713 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17714 when the allocator is initialized by a build-in-place call, since the
17715 allocator is already rewritten as a reference to the function result,
17716 and this prevents an unwanted duplication of the function call.
17717 Add with and use of Exp_Ch6.
17718 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17719 is a call to build-in-place function and apply
17720 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17721 untagged designated types).
17722 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17723 optimization if source or target is biased.
17724 (Expand_N_Allocator): Add comments for case of an allocator within a
17725 function that returns an anonymous access type designating tasks.
17726 (Expand_N_Allocator): apply discriminant checks for access
17727 discriminants of anonymous access types (AI-402, AI-416)
17729 2006-10-31 Bob Duff <duff@adacore.com>
17730 Robert Dewar <dewar@adacore.com>
17731 Gary Dismukes <dismukes@adacore.com>
17732 Ed Schonberg <schonberg@adacore.com>
17734 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17736 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17737 (Expand_N_Assignment_Statement): Call
17738 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17739 build-in-place function call. Currently, this can happen only for
17740 assignments that come from aggregates.
17741 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17742 in order to alleviate the upward compatibility introduced by AI-318.
17743 (Expand_N_Extended_Return_Statement): Add support for handling the
17744 return object as a build-in-place result.
17745 (Expand_Non_Function_Return): Implement simple return statements nested
17746 within an extended return.
17747 (Enable_New_Return_Processing): Turn on the new processing of return
17749 (Expand_Non_Function_Return): For a return within an extended return,
17750 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17751 (Expand_N_Extended_Return_Statement): Implement AI-318
17752 (Expand_Simple_Function_Return): Ditto.
17753 (Expand_N_If_Statement): Handle new -gnatwt warning
17754 (Expand_N_Case_Statement): Handle new -gnatwt warning
17755 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17756 a protected object.
17757 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17758 validity checking of assignments to elementary record components.
17759 (Expand_N_Return_Statement): return Class Wide types on the secondary
17760 stack independantly of their controlled status since with HIE runtimes,
17761 class wide types are not potentially controlled anymore.
17763 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17766 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17767 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17768 it expects a block, procedure, or task. The return statement will get
17769 turned into a block, and Expand_Cleanup_Actions will happen then.
17771 2006-10-31 Robert Dewar <dewar@adacore.com>
17772 Ed Schonberg <schonberg@adacore.com>
17773 Bob Duff <duff@adacore.com>
17774 Gary Dismukes <dismukes@adacore.com>
17776 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17778 (Expand_Inlined_Call): Tagged types are by-reference types, and
17779 therefore should be replaced by a renaming declaration in the expanded
17780 body, as is done for limited types.
17781 (Expand_Call): If this is a call to a function with dispatching access
17782 result, propagate tag from context.
17783 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17785 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17786 build-in-place when the right-hand side of an assignment is a
17787 build-in-place function call.
17788 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17789 of the explicit dereference of the allocator to the result subtype of
17790 the build-in-place function. This is needed to satisfy type checking
17791 in cases where the caller's return object is created by an allocator for
17792 a class-wide access type and the type named in the allocator is a
17794 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17795 conversion of the reference to the declared object to the result subtype
17796 of the build-in-place function. This is needed to satisfy type checking
17797 in cases where the declared object has a class-wide type. Also, in the
17798 class-wide case, change the type of the object entity to the specific
17799 result subtype of the function, to avoid passing a class-wide object
17800 without explicit initialization to the back end.
17801 (Register_Interface_DT_Entry): Moved outside the body of
17802 Freeze_Subprogram because this routine is now public; it is called from
17803 Check_Dispatching_Overriding to handle late overriding of abstract
17804 interface primitives.
17805 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17806 adding an implicit access actual on a call to a build-in-place function.
17807 (Expand_Actuals): Test for an actual parameter that is a call to a
17808 build-in-place function and apply
17809 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17810 (Is_Build_In_Place_Function): New function to determine whether an
17811 entity is a function whose calls should be handled as build-in-place.
17812 (Is_Build_In_Place_Function_Call): New function to determine whether an
17813 expression is a function call that should handled as build-in-place.
17814 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17815 calls to build-in-place functions as the initialization of an allocator.
17816 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17817 handling calls to build-in-place functions in contexts that do not
17818 involve init of a separate object (for example, actuals of subprogram
17820 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17821 handling calls to build-in-place functions as the initialization of an
17822 object declaration.
17823 (Detect_Infinite_Recursion): Add explicit parameter Process to
17824 instantiation of Traverse_Body to avoid unreferenced warning.
17825 (Check_Overriding_Inherited_Interfaces): Removed.
17826 (Register_Interface_DT_Entry): Code cleanup.
17827 (Register_Predefined_DT_Entry): Code cleanup.
17828 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17829 inlined statements if within a transient scope.
17830 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17831 formal parameters with occurrences of actuals in inlined body, establish
17832 visibility on the proper view of the actual's subtype for the body's
17834 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17835 compatibility mode and we have an imported CPP subprogram because
17836 for now we assume that imported CPP primitives correspond with
17837 objects whose constructor is in the CPP side (and therefore we
17838 don't need to generate code to register them in the dispatch table).
17839 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17840 aligned selected component.
17841 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17842 the actual of an in-mode parameter is a type conversion.
17843 (Expand_Actuals): If the call does not come from source and the actual
17844 is potentially misaligned, let gigi handle it rather than rejecting the
17845 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17846 Class Wide types as returning by reference independantly of their
17847 controlled status since with HIE runtimes class wide types are not
17848 potentially controlled anymore.
17850 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17852 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17853 references that are private components of the protected object.
17854 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17855 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17856 instantiation to deal with warnings.
17857 (Initialize_Protection): If expression for priority is non-static, use
17858 System_Priority as its expected type, in case the expression has not
17861 2006-10-31 Robert Dewar <dewar@adacore.com>
17863 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17864 initialization of Homonym_Len.
17865 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17866 names from fully qualified name. Fixes problem of duplicate
17867 external names differing only in the presence of such a block name.
17869 2006-10-31 Thomas Quinot <quinot@adacore.com>
17870 Pablo Oliveira <oliveira@adacore.com>
17872 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17873 subprogram Ids, even if they are not yet assigned.
17874 (Build_Subprogram_Id): It is now this function that will take care of
17875 calling Assign_Subprogram_Ids if necessary.
17876 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17877 should be done only once they are assigned.
17878 (Build_From_Any_Function, case of tagged types): Add missing call to
17880 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17881 type for an RACW type.
17882 (Add_RACW_Features): When processing an RACW declaration for which the
17883 designated type is already frozen, enforce E.2.2(14) rules immediately.
17884 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17885 special reordering of controlling formals.
17887 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17888 associated stub type for an RACW type.
17890 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17892 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17893 fixed-point operations in an integer context, i.e. as operands of a
17894 conversion to an integer type, indicate that result must be rounded.
17896 2006-10-31 Robert Dewar <dewar@adacore.com>
17898 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17899 cases, pass the encoding method, since it is now required by the run
17902 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17903 assumption that Str'First = 1.
17904 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17905 it on to the Value_Wide_Wide_Character call.
17906 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17907 properly handles a string of the form quote-encoded_wide_char-quote.
17909 * s-wchcnv.adb: Minor reformatting
17911 2006-10-31 Javier Miranda <miranda@adacore.com>
17913 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17914 run-time membership test to ensure that the constructed object
17915 implements the target abstract interface.
17917 2006-10-31 Robert Dewar <dewar@adacore.com>
17919 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17920 Machine_Attribute pragma internally to implement the user pragma.
17921 Add processing for pragma Interface so that it is now completely
17922 equivalent to pragma Import.
17924 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17925 so that it can be applied to all entities, including record components
17926 and enumeration literals.
17927 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17928 priority ranges are correct, verify compatibility against task
17929 dispatching and locking policies, and if everything is correct an entry
17930 is added to the table containing priority specific dispatching entries
17931 for this compilation unit.
17932 (Delay_Config_Pragma_Analyze): Delay processing
17933 Priority_Specific_Dispatching pragmas because when processing the
17934 pragma we need to access run-time data, such as the range of
17935 System.Any_Priority.
17936 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17937 Allow pragma Unreferenced as a context item
17938 Add pragma Preelaborable_Initialization
17939 (Analyze_Pragma, case Interface): Interface is extended so that it is
17940 now syntactically and semantically equivalent to Import.
17941 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17942 insertion characters.
17943 Add handling for Pragma_Wide_Character_Encoding
17944 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17945 never supercedes a real restriction, and that a real restriction
17946 always supercedes a warning.
17947 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17950 2006-10-31 Bob Duff <duff@adacore.com>
17951 Ed Schonberg <schonberg@adacore.com>
17952 Robert Dewar <dewar@adacore.com>
17954 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17955 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17956 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17958 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17959 type of the function containing a return statement, because the
17960 Return_Type field was removed. We now use the Return_Applies_To field.
17962 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17963 (Build_Task_Image_Decl): If procedure is not called from an
17964 initialization procedure, indicate that function that builds task name
17965 uses the sec. stack. Otherwise the enclosing initialization procedure
17966 will carry the indication.
17967 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17968 N_Object_Declaration instead.
17969 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17970 conditional dead code killed, and change implementation accordingly.
17971 (Insert_Actions): Add N_Return_Object_Declaration case.
17972 Correct comment to mention N_Extension_Aggregate node.
17973 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17974 attempts to save information for global variables which cannot be
17976 (Get_Current_Value_Condition): Handle conditions the other way round
17977 (constant on left). Also handle right operand of AND and AND THEN
17978 (Set_Current_Value_Condition): Corresponding changes
17979 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17980 (Get_Current_Value_Condition): Handle simple boolean operands
17981 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17982 (Get_Current_Value_Condition): If the variable reference is within an
17983 if-statement, does not appear in the list of then_statments, and does
17984 not come from source, treat it as being at unknown location.
17985 (Get_Current_Value_Condition): Enhance to allow while statements to be
17986 processed as well as if statements.
17987 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17989 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17990 of loop. This is safe now that we fixed Kill_Current_Values.
17991 (OK_To_Do_Constant_Replacement): Check whether current scope is
17992 Standard, before examining outer scopes.
17994 2006-10-31 Vincent Celier <celier@adacore.com>
17996 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17997 When True, apply VMS treatment to children of packages A, G, I and S.
18000 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
18002 2006-10-31 Robert Dewar <dewar@adacore.com>
18003 Ed Schonberg <schonberg@adacore.com>
18005 * freeze.adb: Add handling of Last_Assignment field
18006 (Warn_Overlay): Supply missing continuation marks in error msgs
18007 (Freeze_Entity): Add check for Preelaborable_Initialization
18009 * g-comlin.adb: Add Warnings (Off) to prevent new warning
18011 * g-expect.adb: Add Warnings (Off) to prevent new warning
18013 * lib-xref.adb: Add handling of Last_Assignment field
18014 (Generate_Reference): Centralize handling of pragma Obsolescent here
18015 (Generate_Reference): Accept an implicit reference generated for a
18016 default in an instance.
18017 (Generate_Reference): Accept a reference for a node that is not in the
18018 main unit, if it is the generic body corresponding to an subprogram
18021 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
18023 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
18025 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
18027 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
18028 use clauses, to avoid messages on packages used to qualify, and also
18029 to avoid messages from obsolescent units.
18030 (Warn_On_Useless_Assignments): Don't generate messages for imported
18031 and exported variables.
18032 (Warn_On_Useless_Assignments): New procedure
18033 (Output_Obsolescent_Entity_Warnings): New procedure
18034 (Check_Code_Statement): New procedure
18036 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
18037 Change name Is_Ada_2005 to Is_Ada_2005_Only
18038 (Last_Assignment): New field for useless assignment warning
18040 2006-10-31 Olivier Hainque <hainque@adacore.com>
18042 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18043 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18045 2006-10-31 Bob Duff <duff@adacore.com>
18046 Robert Dewar <dewar@adacore.com>
18047 Ed Schonberg <schonberg@adacore.com>
18049 * g-awk.adb (Default_Session, Current_Session): Compile this file in
18050 Ada 95 mode, because it violates the new rules for AI-318.
18052 * g-awk.ads: Use overloaded subprograms in every case where we used to
18053 have a default of Current_Session. This makes the code closer to be
18054 correct for both Ada 95 and 2005.
18056 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18057 code, relying on the fact that the compiler generates a warning
18058 instead of an error in -gnatg mode.
18060 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18061 E_Return_Statement entity kind.
18062 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18064 * par.adb (P_Interface_Type_Definition): Addition of one formal to
18065 report an error if the reserved word abstract has been previously found.
18066 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
18068 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
18069 parenthesized range attribute usage
18070 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18072 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18073 in the syntax for extended_return_statement. This is not in the latest
18074 RM, but the ARG is expected to issue an AI allowing this.
18075 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18076 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18077 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18078 P_Return_Statement): Parse the new syntax for extended_return_statement.
18080 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18081 Output_End_Missing): Add error-recovery code for the new
18082 extended_return_statement syntax; that is, the new E_Return entry on
18085 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18086 limited to nonlimited, because otherwise we violate the new Ada 2005
18087 rules about returning limited types in function Create_AST_Handler in
18090 * sem.adb (Analyze): Add cases for new node kinds
18091 N_Extended_Return_Statement and N_Return_Object_Declaration.
18093 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18094 type is in the same category as type of context before applying check,
18095 to prevent anomalies in instantiations.
18096 (Resolve_Aggregate): Remove test for limited components in aggregates.
18097 It's unnecessary in Ada 95, because if it has limited components, then
18098 it must be limited. It's wrong in Ada 2005, because limited aggregates
18100 (Resolve_Record_Aggregate): Move check for limited types later, because
18101 OK_For_Limited_Init requires its argument to have been resolved.
18102 (Get_Value): When copying the component default expression for a
18103 defaulted association in an aggregate, use the sloc of the aggregate
18104 and not that of the original expression, to prevent spurious
18105 elaboration errors, when the expression includes function calls.
18106 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18107 were missing. We also didn't handle qualified expressions. Now also
18108 allow function calls. Use new common routine OK_For_Limited_Init.
18109 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18110 with space can upper case letter).
18112 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
18113 Has_Static_Discriminants flag
18114 (Record_Type_Declaration): Diagnose an attempt to declare an interface
18115 type with discriminants.
18116 (Process_Range_Expr_In_Decl): Do validity checks on range
18117 (Build_Discriminant_Constraints): Use updated form of
18118 Denotes_Discriminant.
18119 (Process_Subtype): If the subtype is a private subtype whose full view
18120 is a concurrent subtype, introduce an itype reference to prevent scope
18122 (Build_Derived_Record_Type, Collect_Interface_Primitives,
18123 Record_Type_Declaration): The functionality of the subprograms
18124 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18125 is now performed by a single routine.
18126 (Build_Derived_Record_Type): If the type definition includes an explicit
18127 indication of limitedness, then the type must be marked as limited here
18128 to ensure that any access discriminants will not be treated as having
18129 a local anonymous access type.
18130 (Check_Abstract_Overriding): Issue a detailed error message when an
18131 abstract subprogram was not overridden due to incorrect mode of its
18133 (Analyze_Private_Extension_Declaration): Add support for the analysis of
18134 synchronized private extension declarations. Verify that the ancestor is
18135 a limited or synchronized interface or in the generic case, the ancestor
18136 is a tagged limited type or synchronized interface and all progenitors
18137 are either limited or synchronized interfaces.
18138 Derived_Type_Declaration): Check for presence of private extension when
18139 dealing with synchronized formal derived types.
18140 Process_Full_View): Enchance the check done on the usage of "limited" by
18141 testing whether the private view is synchronized.
18142 Verify that a synchronized private view is completed by a protected or
18144 (OK_For_Limited_Init_In_05): New function.
18145 (Analyze_Object_Declaration): Move check for limited types later,
18146 because OK_For_Limited_Init requires its argument to have been resolved.
18147 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18148 in order to alleviate the upward compatibility introduced by AI-318.
18149 (Constrain_Corresponding_Record): If the constraint is for a component
18150 subtype, mark the itype as frozen, to avoid out-of-scope references to
18151 discriminants in the back-end.
18152 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18153 this subprogram against wrong sources.
18154 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18155 discriminant of limited type completed with a protected type, when the
18156 discriminant is used to constrain a private component of the type, and
18157 expansion is disabled.
18158 (Find_Type_Of_Object): Do not treat a return subtype that is an
18159 anonymous subtype as a local_anonymous_type, because its accessibility
18160 level is the return type of the enclosing function.
18161 (Check_Initialization): In -gnatg mode, turn the error "cannot
18162 initialize entities of limited type" into a warning.
18163 (OK_For_Limited_Init): Return true for generated nodes, since it
18164 sometimes violates the legality rules.
18165 (Make_Incomplete_Declaration): If the type for which an incomplete
18166 declaration is created happens to be the currently visible entity,
18167 preserve the homonym chain when removing it from visibility.
18168 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18169 inherited subprograms.
18170 (Access_Definition): If this is an access to function that is the return
18171 type of an access_to_function definition, context is a type declaration
18172 and the scope of the anonymous type is the current one.
18173 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18174 incomplete subtype to the set of private dependents of the original
18176 (Constrain_Discriminated_Type): Emit an error message whenever an
18177 incomplete subtype is being constrained.
18178 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18179 corresponding subtype of the full view of the original incomplete type.
18180 (Check_Incomplete): Properly detect invalid usage of incomplete types
18183 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18185 * g-catiio.ads, g-catiio.adb (Value): New function.
18186 Given an input String, try and parse a valid Time value.
18188 2006-10-31 Vincent Celier <celier@adacore.com>
18190 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18191 Integer_Address arithmetic, as in Set_Valid.
18193 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18194 Robert Dewar <dewar@adacore.com>
18196 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18197 handling executable extension manually and duplicating code.
18199 * make.adb: Implement new -S switch
18200 (Gnatmake): Use new function Osint.Executable_Name instead
18201 of handling executable extension manually.
18203 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18204 is specified, the executable name ends with this suffix.
18205 Take advantage of Osint.Executable_Name instead of duplicating code.
18207 * switch-m.adb: Recognize new gnatmake -S switch
18209 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18211 (Get_Target_Parameters): Set Executable_Extension_On_Target if
18214 * makeusg.adb: Add line for gnatmake -S switch
18216 2006-10-31 Vincent Celier <celier@adacore.com>
18218 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18219 call it with -static-libgcc, as there are some platforms, such as
18220 Darwin, where one of these two switches is compulsory to link.
18222 2006-10-31 Vincent Celier <celier@adacore.com>
18224 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18225 instead of ADA_PROJECT_PATH, for the project path.
18226 (Gnatls): When displaying the project path directories, use host dir
18229 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18230 names in the project path, as absolute paths may correspond to
18231 multi-valued VMS logical names.
18233 2006-10-31 Vincent Celier <celier@adacore.com>
18235 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18236 absolute path name.
18237 (Locate_Regular_File): Ditto
18238 (Change_Dir): Remove, no longer used
18239 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18240 on Windows. Get it calling Get_Current_Dir.
18241 (OpenVMS): Remove imported boolean, no longer needed.
18242 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18243 (Pid_To_Integer): New function to convert a Process_Id to Integer
18245 2006-10-31 Thomas Quinot <quinot@adacore.com>
18247 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18248 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18250 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18253 2006-10-31 Robert Dewar <dewar@adacore.com>
18255 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18256 initial letter o as a zero.
18258 2006-10-31 Robert Dewar <dewar@adacore.com>
18260 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18262 2006-10-31 Robert Dewar <dewar@adacore.com>
18264 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18266 (Layout_Variant_Record): Retrieve the discriminants from the entity
18267 rather than from the type definition, because in the case of a full
18268 type for a private type we need to take the discriminants from the
18270 (Layout_Component_List): When applying the Max operator to variants with
18271 a nonstatic size, check whether either operand is static and scale that
18272 operand from bits to storage units before applying Max.
18273 (Layout_Type): In VMS, if a C-convention access type has no explicit
18274 size clause (and does not inherit one in the case of a derived type),
18275 then the size is reset to 32 from 64.
18277 2006-10-31 Vincent Celier <celier@adacore.com>
18279 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18280 its file has already been loaded, according to the unit being loaded,
18281 not to the current value of Multiple_Unit_Index.
18283 2006-10-31 Thomas Quinot <quinot@adacore.com>
18284 Eric Botcazou <ebotcazou@adacore.com>
18285 Arnaud Charlet <charlet@adacore.com>
18287 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18288 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18290 (a-except.o): Pass it to the compiler.
18291 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18292 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18293 a-calend-mingw.adb version.
18295 * Makefile.rtl: Added s-dsaser.
18296 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18297 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18298 Ada.Dispatching.Round_Robin.
18299 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18301 * Make-lang.in: Remove all references to gt-ada-decl.h.
18302 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18304 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18305 Update dependencies.
18307 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18309 2006-10-31 Vincent Celier <celier@adacore.com>
18311 * mlib-utl.adb (Initialized): Remove, no longer used
18312 (Initialize): Remove, no longer used
18313 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18314 if there is one, the archive indexer. Fail if the archive builder cannot
18316 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18319 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18321 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18322 Process_Body_Clauses): If the context of a body includes a use clause
18323 for P.Q then a with_clause for P in the same body is not redundant,
18324 even if the spec also has a with_clause on P.
18325 Add missing continuation mark to error msg
18326 (Build_Limited_Views): A limited view of a type is tagged if its
18327 declaration includes a record extension.
18328 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18329 node, even if the subunit has errors. This avoids malfunction by
18330 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18331 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18332 generation of obsolescent messages for with statements (cannot do
18333 this too early, or we cannot implement avoiding the messages in the
18334 case of obsolescent units withing obsolescent units).
18335 (Install_Siblings): If the with_clause is on a remote descendant of
18336 an ancestor of the current compilation unit, find whether there is
18337 a sibling child unit that is immediately visible.
18338 (Remove_Private_With_Clauses): New procedure, invoked after completing
18339 the analysis of the private part of a nested package, to remove from
18340 visibility the private with_clauses of the enclosing package
18342 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18343 now centralized in Generate_Reference.
18344 (Install_Limited_Context_Clauses): Remove superfluous error
18345 message associated with unlimited view visible through use
18346 and renamings. In addition, at the point in which the error
18347 is reported, we add the backslash to the text of the error
18348 to ensure that it is reported as a single error message.
18349 Use new // insertion for some continuation messages
18350 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18351 to create implicit with_clause for parent unit mentioned in original
18352 limited_with_clause.
18353 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18354 unit is a child unit. For ASIS queries.
18355 (Analyze_Subunit): If the subunit appears within a child unit, make all
18356 ancestor child units directly visible again.
18358 2006-10-31 Robert Dewar <dewar@adacore.com>
18360 * par-ch10.adb (P_Context_Clause): Minor error message fix
18362 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18363 Javier Miranda <miranda@adacore.com>
18365 * par-ch12.adb: Grammar update and cleanup.
18366 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18367 support for synchronized derived type definitions.
18368 Add the new actual Abstract_Present to every call to
18369 P_Interface_Type_Definition.
18370 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18371 a formal object declaration with an access definition or a subtype mark
18372 with a null exclusion.
18373 (P_Generic_Association): Handle association with box, and others_choice
18374 with box, to support Ada 2005 partially parametrized formal packages.
18376 2006-10-31 Robert Dewar <dewar@adacore.com>
18377 Javier Miranda <miranda@adacore.com>
18379 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18380 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18381 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18382 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18383 private extensions.
18384 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18385 to P_Interface_Type_Definition.
18386 (P_Interface_Type_Definition): Addition of one formal to report an error
18387 if the reserved word abstract has been previously found.
18388 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18389 object renaming declaration with an access definition or subtype mark
18390 with a possible null exclusion.
18392 * par-ch9.adb: Minor error msg fix
18394 * par-load.adb: Add missing continuation mark to error msg
18396 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18398 2006-10-31 Vincent Celier <celier@adacore.com>
18400 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18401 unknown attribute in unknown package or in package that does not need
18403 (Parse_Package_Declaration): Do not issue warning for unknown package in
18406 2006-10-31 Vincent Celier <celier@adacore.com>
18408 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18409 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18412 2006-10-31 Vincent Celier <celier@adacore.com>
18414 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18415 on VMS, change "__" to '.' before checking the name.
18416 (Record_Ada_Source): Always add the source file name in the list of
18417 of sources, even if it is not the first time, as it is for another
18419 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18420 dot, instead of replacing only the first '_'.
18422 * prj-part.adb (Parse): Convert project file path to canonical form
18424 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18425 extended, the project id of the project extending it is recorded in its
18426 data, even when it has already been processed as an imported project.
18428 2006-10-31 Robert Dewar <dewar@adacore.com>
18430 * repinfo.adb (List_Entities): Don't list entities from renaming
18433 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18434 Robert Dewar <dewar@adacore.com>
18436 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18437 only a restriction warning is active for the given restriction. This is
18438 desirable because we do not want to modify code in the case where only
18440 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18441 causes overriding of real restrictions.
18442 Take advantage of new No_Restrictions constant.
18444 * raise.h: (__gnat_set_globals): Change profile.
18446 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18448 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18451 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18452 Move all the entities in obsolete package System.PolyORB_Interface to
18453 System.Partition_Interface.
18454 (RE_Storage_Size): New function in System.Tasking.
18455 (RE_Get_Ceiling): New entity.
18456 (RE_Set_Ceiling): New entity.
18457 (RO_PE_Get_Ceiling): New entity.
18458 (RO_RE_Set_Ceiling): New entity.
18459 (Inherit_CPP_DT): New entity
18461 2006-10-31 Robert Dewar <dewar@adacore.com>
18463 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18464 starting with a digit.
18466 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18467 Thomas Quinot <quinot@adacore.com>
18468 Javier Miranda <miranda@adacore.com>
18469 Gary Dismukes <dismukes@adacore.com>
18471 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18472 properly an attempt to apply Unchecked_Access to a protected operation.
18473 (OK_Self_Reference): New subprogram to check the legality of an access
18474 attribute whose prefix is the type of an enclosing aggregate.
18475 Generalizes previous mechanism to handle attribute references nested
18476 arbitrarily deep within the aggregate.
18477 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18478 can appear in an aggregate if this is a default-initialized aggregate
18479 for a self-referential type.
18480 (Resolve_Attribute, case Access): Ditto.
18481 Add support for new implementation defined attribute Stub_Type.
18482 (Eval_Attribute, case Attribute_Stub_Type): New case.
18483 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18484 (Stream_Attribute_Available): Implement using new subprogram from
18485 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18486 Has_Specified_Stream_Attribute flag.
18487 Disallow Storage_Size and Storage_Pool for access to subprogram
18488 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18489 access types of return subtypes in extended return statements. Remove
18490 accessibility checks on anonymous access types when Unchecked_Access is
18492 (Analyze_Attribute): Add support for the use of 'Class to convert
18493 a class-wide interface to a tagged type.
18494 Add support for the attribute Priority.
18495 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18496 whether the designated type is discriminated with a constrained partial
18497 view and require static matching in that case.
18498 Add local variable Des_Btyp. The Designated_Type
18499 of an access to incomplete subtype is either its non-limited view if
18500 coming from a limited with or its etype if regular incomplete subtype.
18502 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18503 Fix predicate to identify and allow cases of (expander-generated)
18504 references to tag of designated object of a RACW.
18505 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18506 non-static, and therefore cannot appear as a primary in a preelaborable
18508 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18509 Has_Read_Write_Attributes.
18510 (Has_Read_Write_Attributes): Reimplement in termes of
18511 Has_Stream_Attribute_Definition.
18512 (Missing_Read_Write_Attributes): When checking component types in a
18513 record, unconditionally call Missing_Read_Write_Attributes recursively
18514 (remove guard checking for Is_Record_Type / Is_Access_Type).
18516 2006-10-31 Robert Dewar <dewar@adacore.com>
18518 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18519 useless assignments here and conditionalize it on absence of exception
18521 (Analyze_Exception_Handlers): Small code reorganization of error
18522 detection code, for new handling of formal packages.
18524 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18525 Hristian Kirtchev <kirtchev@adacore.com>
18527 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18528 that has been constant-folded, preserve information of original tree,
18530 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18531 generated private extension declaration if the formal derived type is
18532 synchronized. Carry synchronized present over to the generated private
18534 (Validate_Derived_Type_Instance): Ensure that the actual of a
18535 synchronized formal derived type is a synchronized tagged type.
18536 (Instantiate_Formal_Package): When creating the instantiation used to
18537 validate the actual package of a formal declared without a box, check
18538 whether the formal itself depends on a prior actual.
18539 (Instantiate_Formal_Subprogram): Create new entities for the defining
18540 identifiers of the formals in the renaming declaration, for ASIS use.
18541 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18542 a renaming declaration or a subtype declaration for an actual in an
18543 instance, capture location information of declaration in generic, for
18545 (Instantiate_Formal_Package): Add comments on needed additional tests.
18546 AI-317 (partial parametrization) is fully implemented.
18547 (Validate_Private_Type_Instance): Add check for actual which
18548 must have preelaborable initialization
18549 Use new // insertion for some continuation messages
18550 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18551 Default_Expression. Add type retrieval when the declaration has an
18552 access definition. Update premature usage of incomplete type check.
18553 (Check_Access_Definition): New subsidiary routine. Check whether the
18554 current compilation version is Ada 05 and the supplied node has an
18556 (Instantiate object): Alphabetize local variables. Handle the creation
18557 of new renaming declarations with respect to the kind of definition
18558 used - either an access definition or a subtype mark. Guard against
18559 unnecessary error message in the context of anonymous access types after
18560 they have been resolved. Add check for required null exclusion in a
18561 formal object declaration.
18562 (Switch_View): A private subtype of a non-private type needs to be
18563 switched (the base type can have been switched without its private
18564 dependents because of the last branch of Check_Private_View.
18565 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18567 (Instantiate_Type): Emit an error message whenever a class-wide type of
18568 a tagged incomplete type is used as a generic actual.
18569 (Find_Actual_Type): Extend routine to handle a component type in a child
18570 unit that is imported from a formal package in a parent.
18571 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18572 agree on constrainedness, rather than checking against ultimate ancestor
18573 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18574 generic body, for navigation purposes.
18576 2006-10-31 Robert Dewar <dewar@adacore.com>
18577 Thomas Quinot <quinot@adacore.com>
18579 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18581 (New_Stream_Subprogram): When processing an attribute definition clause
18582 for a stream-oriented subprogram, record an entity node occurring at
18583 the point of clause to use for checking the visibility of the clause,
18584 as defined by 8.3(23) as amended by AI-195.
18585 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18586 New_Stream_Function and New_Stream_Procedure.
18587 (New_Stream_Function, New_Stream_Procedure): Removed.
18588 (Analyze_Attribute_Definition_Clause, case Address): Check new
18589 Alignment_Check check
18591 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18592 Javier Miranda <miranda@adacore.com>
18593 Robert Dewar <dewar@adacore.com>
18595 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18596 generate the same errors compiling under -gnatc.
18597 (Try_Object_Operation): If no candidate interpretation succeeds, but
18598 there is at least one primitive operation with the right name, report
18599 error in call rather than on a malformed selected component.
18600 (Analyze_Selected_Component): If the prefix is an incomplete type from
18601 a limited view, and the full view is available, use the full view to
18602 determine whether this is a prefixed call to a primitive operation.
18603 (Operator_Check): Verify that a candidate interpretation is a binary
18604 operation before checking the type of its second formal.
18605 (Analyze_Call): Add additional warnings for function call contexts not
18607 (Analyze_Allocator): Move the check for "initialization not allowed for
18608 limited types" after analyzing the expression. This is necessary,
18609 because OK_For_Limited_Init looks at the structure of the expression.
18610 Before analysis, we don't necessarily know what sort of expression it
18611 is. For example, we don't know whether F(X) is a function call or an
18612 indexed component; the former is legal in Ada 2005; the latter is not.
18613 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18614 were missing. We also didn't handle qualified expressions. Now also
18615 allow function calls. Use new common routine OK_For_Limited_Init.
18616 (Analyze_Type_Conversion): Do not perform some legality checks in an
18617 instance, because the error message will be redundant or spurious.
18618 (Analyze_Overloaded_Selected_Component): Do not do style check when
18619 setting an entity, since we do not know it is the right entity yet.
18620 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18621 (Analyze_Overloaded_Selected_Component): Same change
18622 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18623 since regular incomplete subtypes are transformed into corresponding
18624 subtypes of their full views.
18625 (Complete_Object_Operation): Treat name of transformed subprogram call
18626 as coming from source, for browsing purposes.
18627 (Try_Primitive_Operation): If formal is an access parameter, compare
18628 with base type of object to determine whether it is a primitive
18630 (Operator_Check): If no interpretation of the operator matches, check
18631 whether a use clause on any candidate might make the operation legal.
18632 (Try_Class_Wide_Operation): Check whether the first parameter is an
18633 access type whose designated type is class-wide.
18635 2006-10-31 Robert Dewar <dewar@adacore.com>
18636 Ed Schonberg <schonberg@adacore.com>
18637 Gary Dismukes <dismukes@adacore.com>
18639 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18640 warn on infinite loops.
18641 Add \\ to some continuation messages
18642 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18643 (Process_Bounds): If the bounds are integer literals that result from
18644 constant-folding, and they carry a user-defined type, preserve that type
18645 rather than treating this as an integer range.
18646 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18647 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18648 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18649 left hand side of assignment.
18650 (Analyze_Assignment): Add suport to manage assigments to the attribute
18651 priority of a protected object.
18652 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18653 not just identifiers.
18654 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18655 or AND THEN for possible tracking.
18656 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18657 case of while loops so we can track values in the loop body.
18659 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18660 Hristian Kirtchev <kirtchev@adacore.com>
18661 Bob Duff <duff@adacore.com>
18663 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18664 procedure cannot be a protected operation (it is a basic_declaration,
18665 not a subprogram_declaration).
18666 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18667 Subp. Add logic for entry processing.
18668 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18669 Determine whether an entry or subprogram of a protected or task type
18670 override an inherited primitive of an implemented interface.
18671 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18672 Update the actual used in calls to Check_Overriding_Indicator.
18673 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18674 generate the proper reference to the parent unit, for cross-reference.
18675 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18677 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18678 (Add_Extra_Formal): Revise procedure to allow passing in associated
18679 entity, scope, and name suffix, and handle setting of the new
18680 Extra_Formals field.
18681 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18682 pass new parameters. Add support for adding the new extra access formal
18683 for functions whose calls are treated as build-in-place.
18684 (Analyze_A_Return_Statement): Correct casing in error message.
18685 Move Pop_Scope to after Analyze_Function_Return, because an extended
18686 return statement really is a full-fledged scope. Otherwise, visibility
18687 doesn't work right. Correct use of "\" for continuation messages.
18688 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18689 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18690 the node doesn't get properly marked as analyzed.
18691 (Analyze_Subprogram_Body): If subprogram is a function that returns
18692 an anonymous access type that denotes a task, build a Master Entity
18694 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18695 proper usage of null exclusion in a result definition.
18696 (Process_Formals): Code cleanup and new error message.
18697 (Process_Formals): Detect incorrect application of null exclusion to
18699 (Conforming_Types): Handle conformance between [sub]types and itypes
18700 generated for entities that have null exclusions applied to them.
18701 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18702 base type is an access subtype. This case arrises with null exclusions.
18703 (New_Overloaded_Entity): Do not remove the overriden entity from the
18704 homonym chain if it corresponds with an abstract interface primitive.
18705 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18706 call to the synthesized predicate Is_Incomplete_Type.
18707 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18709 (Analyze_Subprogram_Declaration): Check that abstract interface
18710 primitives are abstract or null.
18711 (Analyze_Subprogram_Specification): Remove previous check for abstract
18712 interfaces because it was not complete.
18713 (Has_Interface_Formals): Removed.
18715 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18716 Javier Miranda <miranda@adacore.com>
18718 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18719 of Analyze_Package_Body, to create Itype references for anonymous
18720 access types created in the package declaration, whose designated types
18721 may have only a limited view.
18722 (Analyze_Package_Specification): For the private part of a nested
18723 package, install private_with_clauses of enclosing compilation unit if
18724 we are in its visible part.
18725 (Declare_Inherited_Private_Subprograms): Complete barrier
18726 to ensure that the primitive operation has an alias to some parent
18727 primitive. This is now required because, after the changes done for the
18728 implementation of abstract interfaces, the contents of the list of
18729 primitives has entities whose alias attribute references entities of
18730 such list of primitives.
18731 (Analyze_Package_Specification): Simplify code that handles parent units
18732 of instances and formal packages.
18733 (Uninstall_Declarations): Check the convention consistency among
18734 primitive overriding operations of a tagged record type.
18736 2006-10-31 Robert Dewar <dewar@adacore.com>
18737 Hristian Kirtchev <kirtchev@adacore.com>
18738 Javier Miranda <miranda@adacore.com>
18739 Ed Schonberg <schonberg@adacore.com>
18741 * sem_ch8.adb: Minor error msg rewording
18742 (Undefined): When checking for misspellings, invert arguments (to get
18743 expected and found set right)
18744 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18745 (Analyze_Generic_Renaming): Same fix
18746 (Use_One_Package): Do not take into account the internal entities of
18747 abstract interfaces during the analysis of entities that are marked
18748 as potentially use-visible.
18749 (Find_Type): Handle the case of an attribute reference for
18750 implementation defined attribute Stub_Type (simply let the analysis of
18751 the attribute reference rewrite it).
18752 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18753 type that appears in a Use_Type clause.
18754 (Analyze_Object_Renaming): Add support for renaming of the Priority
18756 (Find_Type): In Ada 2005, a task type can be used within its own body,
18757 when it appears in an access definition.
18758 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18759 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18760 in a formal object declaration or in a subtype declaration.
18761 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18762 (Check_Null_Exclusion): New local routine to
18763 Analyze_Subprogram_Renaming. Check whether the formals and return
18764 profile of a renamed subprogram have required null exclusions when
18765 their counterparts of the renaming already impose them.
18766 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18767 Determine whether an entity is inside a generic scope.
18768 (In_Open_Scope): First pass of documentation update.
18769 (Find_Expanded_Name): Add support for shadow entities associated with
18770 limited withed packages. This is required to handle nested packages.
18771 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18772 that makes a renaming of a limited withed package illegal.
18774 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18775 Ed Schonberg <schonberg@adacore.com>
18777 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18778 Check_Overriding_Indicator.
18779 (Analyze_Task_Definition): Ditto.
18780 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18781 (Check_Overriding_Indicator): To find overridden interface operation,
18782 examine only homonyms that have an explicit subprogram declaration, not
18783 inherited operations created by an unrelated type derivation.
18784 (Check_Overriding_Indicator): When checking for the presence of "null"
18785 in a procedure, ensure that the queried node is a procedure
18787 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18788 type when the formal is an access to variable.
18789 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18790 (Analyze_Task_Type): Same addition
18791 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18792 provide navigation capabilities for entries.
18794 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18795 Ed Schonberg <schonberg@adacore.com>
18796 Javier Miranda <miranda@adacore.com>
18797 Gary Dismukes <dismukes@adacore.com>
18799 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18800 inherited from an interface ancestor by another interface in the
18801 context of an instance as 'late'.
18802 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18803 of a call to a function that dispatches on access result.
18804 (Check_Dispatching_Operation): In case of late overriding of a primitive
18805 that covers abstract interface subprograms we register it in all the
18806 secondary dispatch tables associated with abstract interfaces.
18807 (Check_Dispatching_Call): Add check that a dispatching call is not made
18808 to a function with a controlling result of a limited type. This is a
18809 current implementation restriction.
18810 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18811 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18812 argument is an interface type that is a generic formal.
18813 (Is_Interface_Subprogram): Removed.
18814 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18815 operation, check the formals to handle the case in which it is
18816 associated with an abstract interface type.
18818 2006-10-31 Robert Dewar <dewar@adacore.com>
18819 Ed Schonberg <schonberg@adacore.com>
18821 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18822 Add new calls to this procedure during traversal
18823 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18824 another unit if expansion is disabled.
18826 2006-10-31 Robert Dewar <dewar@adacore.com>
18828 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18829 Current_Value in the conditional case, to evaluate additional
18830 comparisons at compile time.
18832 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18833 Hristian Kirtchev <kirtchev@adacore.com>
18834 Javier Miranda <miranda@adacore.com>
18836 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18837 subprogram type to provide better diagnostics in case of ambiguity.
18838 (Covers): Handle coverage of formal and actual anonymous access types in
18839 the context of generic instantiation.
18840 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18841 abstract interface types; this is required to handle concurrent types
18842 with discriminants and abstract interface types.
18843 (Covers): Include type coverage of both regular incomplete subtypes and
18844 incomplete subtypes of incomplete type visibles through a limited with
18847 2006-10-31 Robert Dewar <dewar@adacore.com>
18848 Hristian Kirtchev <kirtchev@adacore.com>
18849 Ed Schonberg <schonberg@adacore.com>
18851 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18852 messages for entities in packages which are not used.
18853 (Collect_Synchronized_Interfaces): New procedure.
18854 (Overrides_Synchronized_Primitive): New function.
18855 (Denotes_Discriminant): Extend predicate to apply to task types.
18856 Add missing continuation marks in error msgs
18857 (Unqualify): New function for removing zero or more levels of
18858 qualification from an expression. There are numerous places where this
18859 ought to be used, but we currently only deal properly with zero or one
18861 (In_Instance); The analysis of the actuals in the instantiation of a
18862 child unit is not within an instantiation, even though the parent
18863 instance is on the scope stack.
18864 (Safe_To_Capture_Value): Exclude the case of variables that are
18866 (Check_Obsolescent): Removed
18867 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18868 is an aliased view, even when rewritten as a reference to the target
18869 object in an assignment.
18870 (Get_Subprogram_Entity): New function
18871 (Known_To_Be_Assigned): New function
18872 (Type_Access_Level): Compute properly the access level of a return
18873 subtype that is an anonymous access type.
18874 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18875 (Is_Transfer): The new extended_return_statement causes a transfer of
18877 (Has_Preelaborable_Initialization): New function
18878 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18879 has a null exclusion depending on its Nkind.
18880 Change Is_Lvalue to May_Be_Lvalue
18881 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18882 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18883 (Safe_To_Capture_Value): Extend functionality so it can be used for
18884 the current value condition case.
18885 (Has_Compatible_Alignment): New function
18886 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18887 objects to handle the Ada 2005 case, where aliasedness no longer implies
18888 that the object is constrained. In particular, for dereferenced names,
18889 the designated object must be assumed to be unconstrained.
18890 (Kill_Current_Values): Properly deal with the case where we encounter
18891 a loop in the scope chain.
18892 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18894 (Compile_Time_Constraint_Error): Improve error message in error case
18896 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18897 associated with entities of abstract interface primitives.
18898 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18900 2006-10-31 Robert Dewar <dewar@adacore.com>
18902 * s-osinte-tru64.adb:
18903 Mark Asm statements Volatile to prevent warnings (seems a
18904 reasonable change anyway)
18907 * s-mastop-irix.adb: Add Volatile to Asm statements
18908 Suppresses warning, and seems appropriate in any case
18910 * s-osinte-vms.adb: Add Volatile to Asm statement
18912 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18914 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18916 Add call to Check_Code_Statement
18918 2006-10-31 Robert Dewar <dewar@adacore.com>
18919 Ed Schonberg <schonberg@adacore.com>
18920 Bob Duff <duff@adacore.com>
18922 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18923 Synchronized_Present): Add Formal_Derived_Type_Definition and
18924 Private_Extension_Declaration to the list of assertions.
18925 (Is_Entry_Barrier_Function): New flag
18926 (Has_Self_Reference): New flag on aggregates, to indicate that they
18927 contain a reference to the enclosing type, inserted through a default
18929 (Next_Rep_Item): Move from Node4 to Node5.
18930 (Entity): Add this field for N_Attribute_Definition_Clause.
18931 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18932 (N_Return_Object_Declaration): Remove this node kind. We now use
18933 N_Object_Declaration instead.
18934 (Actual_Designated_Subtype): Move to a different place to make room in
18935 N_Extended_Return_Statement.
18936 (Procedure_To_Call): Move to a different place to make room in
18937 N_Extended_Return_Statement.
18938 (Return_Type): Removed this field to make room in return statements
18940 (Return_Statement_Entity): New field in return statements, in part to
18941 replace Return_Type, and in part to support the fact that return
18942 statements are now pushed on the scope stack during semantic analysis.
18943 (Return_Object_Declarations): New field to support extended return
18945 (N_Extended_Return_Statement): New node for extended_return_statement
18947 (N_Return_Object_Declaration): New node for part of
18948 extended_return_statement nonterminal. Needed because all the necessary
18949 fields won't fit in N_Extended_Return_Statement.
18950 Generic_associations now carry the Box_Present flag, to indicate a
18951 default for an actual in a partially parametrized formal package.
18953 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18954 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18955 and for the new predefined dispatching policies: EDF_Across_Priorities,
18956 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18957 Introduce new name Stub_Type for implementation defined attribute.
18958 Add pragma Preelaborable_Initialization
18959 Add entry for Priority attribute.
18960 Add Pragma_Wide_Character_Encoding
18961 (Get_Convention_Name): Given a convention id, this function returns the
18962 corresponding name id from the names table.
18964 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18965 Robert Dewar <dewar@adacore.com>
18966 Bob Duff <duff@adacore.com>
18968 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18969 print null exclusion twice in the case of an access definition,
18970 Implement new -gnatL switch
18971 Remove N_Return_Object_Declaration. We now use
18972 N_Object_Declaration instead. Implement the case for
18973 N_Extended_Return_Statement. Alphabetize the cases.
18974 Add cases for new nodes N_Extended_Return_Statement and
18975 N_Return_Object_Declaration. The code is not yet written.
18976 Update the output for N_Formal_Object_Declaration
18977 and N_Object_Renaming_Declaration.
18978 (Write_Itype): Account for the case of a modular integer subtype whose
18979 base type is private.
18981 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18983 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18984 Remove elaboration code, now done in the binder.
18986 * s-rident.ads: Make this unit Preelaborate.
18987 (No_Restrictions): New constant used to clean up code and follow
18988 preelaborate constraints.
18991 Add System.Restrictions dependence, referenced directly from the
18992 binder generated file.
18994 2006-10-31 Gary Dismukes <dismukes@adacore.com>
18996 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18997 True when AAMP extended floating-point is in use (48-bit). Change type
18998 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18999 the two byte array types on AFloat. Change type of IV_Ilf overlay
19000 variable from Byte8 to ByteLF. Add appropriate initializations of
19001 floating-point overlays for AAMP cases.
19003 2006-10-31 Javier Miranda <miranda@adacore.com>
19005 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
19006 (Get_Ceiling): New subprogram that returns
19007 the ceiling priority of the protected object.
19008 (Set_Ceiling): New subprogram that sets the new ceiling priority of
19009 the protected object.
19011 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
19013 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
19015 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19017 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
19018 requeuing to the same protected object to give higher priority tasks
19019 the opportunity to execute.
19021 2006-10-31 Robert Dewar <dewar@adacore.com>
19023 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
19024 add more precise check for the character sequence that follows '[' to
19025 avoid possible confusion in case if '[' is the last character of a
19027 (Scan_Wide): Always allow brackets encoding
19029 2006-10-31 Olivier Hainque <hainque@adacore.com>
19031 * s-stchop.ads: make this unit preelaborate. This is desirable in
19032 general and made mandatory by the use of this unit by s-taprop which
19033 is itself preelaborate.
19035 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
19036 Td_Events component.
19038 2006-10-31 Vincent Celier <celier@adacore.com>
19040 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19043 2006-10-31 Vincent Celier <celier@adacore.com>
19045 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19047 2006-10-31 Vincent Celier <celier@adacore.com>
19049 * makegpr.adb (Check_Compilation_Needed): Take into account path names
19051 (Check_Compilation_Needed): When checking a C or C++ source, do not
19052 resolve symbolic links.
19053 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19054 When not in verbose mode and Ellipse is True, display "..." for the
19055 first argument with Display set to False.
19056 (Build_Global_Archive): Always set Display True for the first object
19057 file. Call Display_Command with Ellipse set to True.
19059 2006-10-31 Matt Heaney <heaney@adacore.com>
19061 * a-crbtgo.ads: Commented each subprogram
19063 * a-crbtgo.adb: Added reference to book from which algorithms were
19066 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
19067 indicate which child.
19068 (Generic_Conditional_Insert): changed parameter name from "Success" to
19070 (Generic_Unconditional_Insert_With_Hint): improved algorithm
19072 * a-coorse.adb (Replace_Element): changed parameter name in call to
19073 conditional insert operation.
19075 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19077 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19080 * a-ciorse.adb (Replace_Element): changed parameter name in call to
19081 conditional insert operation.
19083 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19086 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19087 instead of mode inout.
19089 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19091 (Generic_Read): preserve existing buckets array if possible
19092 (Generic_Write): don't send buckets array length anymore
19094 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19095 instead of mode inout.
19097 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19098 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19100 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19101 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19102 (Replace_Element): local operation is now an instantiation
19104 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19105 check current length.
19106 (Generic_Replace_Element): new operation
19108 2006-10-31 Doug Rupp <rupp@adacore.com>
19110 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19111 Call TBK$SYMBOLIZE without omitting parameters.
19113 2006-10-31 Vincent Celier <celier@adacore.com>
19115 * symbols-processing-vms-ia64.adb,
19116 symbols-processing-vms-alpha.adb (Process): Do not include symbols
19117 that come from generic instantiations in bodies.
19119 2006-10-31 Pat Rogers <rogers@adacore.com>
19121 * a-rttiev.ads, a-rttiev.adb:
19122 This is a significant redesign primarily for the sake of automatic
19123 timer task termination but also to fix a design flaw.
19124 Therefore we are now using an RTS lock, instead of a protected
19125 object, to provide mutual exclusion to the queue of pending events
19126 and the type Timing_Event is no longer a protected type.
19128 2006-10-31 Robert Dewar <dewar@adacore.com>
19129 Cyrille Comar <comar@adacore.com>
19130 Ben Brosgol <brosgol@adacore.com>
19132 * debug.adb: Update flags documentation
19134 * gnat_ugn.texi: Add documentation for new -gnatwq switch
19135 Clean up documentation for several other warning switches
19136 Clarify how task stack size can be specified with various
19137 versions of Windows.
19138 Add note that -gnatVo includes ranges including loops
19139 Add documentation for -gnatL switch
19140 Add note on elaboration warning for initializing variables
19141 Add documentation for new -gnatwt warning switch
19142 Document new form of pragma Warnings (On|Off, string)
19143 Add comment on use of pragma Warnings to control warnings
19144 Add documentation for -gnatjnn switch
19145 Modify section on interfacing with C for VMS 64-bit.
19146 Add doc for -gnatVe/E
19147 Add documentation of new warning flags -gnatww/-gnatwW
19148 Add warnings about address clause overlays to list of warnings
19149 (Exception Handling Control): Document that the option --RTS must be
19150 used consistently for gcc and gnatbind.
19151 Clarify that inlining is not always possible
19152 Update documentation on pragma Unchecked_Union.
19155 Add documentation for new extended version of pragma Obsolescent
19156 Add documentation for implementation defined attribute 'Stub_Type.
19157 Add note on use of Volatile in asm statements
19158 Add documentation on use of pragma Unreferenced in context clause
19159 Document new form of pragma Warnings (On|Off, pattern)
19160 Document pragma Wide_Character_Encoding
19161 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19162 enforced if code generation is active.
19163 Add section on pragma Suppress to document GNAT specific check
19165 Clarify difference between No_Dispatching_Calls & No_Dispatch.
19166 Add documentation for pragma Restrictions (No_Elaboration_Code)
19169 Add comments on layout of subprogram local variables in the
19170 presence of nested subprograms.
19172 * ug_words: Resync.
19174 * elists.ads: Minor reformatting
19175 Node returns Node_Or_Entity_Id (doc change only)
19177 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19179 * g-arrspl.ads (Create): Update comments.
19181 * sem.ads: Add details on the handling of the scope stack.
19183 * usage.adb: Update documentation.
19185 * validsw.ads, validsw.adb:
19186 Add definition of Validity_Check_Components and implement -gnatVe/E
19188 * vms_data.ads: Add missing VMS qualifiers.
19190 * s-addope.ads: Add documentation on overflow and divide by zero
19192 2006-10-31 Robert Dewar <dewar@adacore.com>
19193 Thomas Quinot <quinot@adacore.com>
19194 Arnaud Charlet <charlet@adacore.com>
19196 * fmap.adb: Put routines in alpha order
19198 * g-boumai.ads: Remove redundant 'in' keywords
19200 * g-cgi.adb: Minor reformatting
19202 * g-cgi.ads: Remove redundant 'in' keywords
19204 * get_targ.adb: Put routines in alpha order
19206 * prj-attr.ads: Minor reformatting
19208 * s-atacco.ads: Minor reformatting
19210 * scn.adb: Put routines in alpha order
19212 * sinput-l.adb: Minor comment fix
19214 * sinput-p.adb: Minor comment fix
19216 * s-maccod.ads: Minor reformatting
19218 * s-memory.adb: Minor reformatting
19220 * s-htable.adb: Fix typo in comment.
19222 * s-secsta.adb: Minor comment update.
19224 * s-soflin.adb: Minor reformatting
19227 Add comment about odd qualification in Storage_Offset declaration
19230 Remove unnecessary 'in' keywords for formal parameters.
19232 * treeprs.adt: Minor reformatting
19234 * urealp.adb: Put routines in alpha order
19236 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19239 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19241 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19243 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19244 workaround as on other platforms.
19246 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19247 * g-expect-vms.adb: Remove redundant 'in' keywords
19249 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19250 clear error message if the list-of-files file cannot be opened.
19252 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19253 equality operator is always visible.
19255 * lang.opt: Woverlength-strings: New option.
19258 Update copyright, since nmake.ads and nmake.adb have changed.
19260 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19261 (Binder_Output_Time_Stamps_Set): removed.
19262 (Old_Binder_Output_Time_Stamp): idem.
19263 (New_Binder_Output_Time_Stamp): idem.
19264 (Recording_Time_From_Last_Bind): idem.
19265 (Recording_Time_From_Last_Bind): Make constant.
19267 * output.ads, output.adb (Write_Str): Allow LF characters
19268 (Write_Spaces): New procedure
19270 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19272 * inline.adb: Minor reformatting
19274 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19276 * s-mastop-vms.adb: Remove redundant 'in' keywords
19278 * s-osprim-vms.adb: Remove redundant 'in' keywords
19280 * s-trafor-default.adb: Remove redundant 'in' keywords
19282 * 9drpc.adb: Remove redundant 'in' keywords
19284 * s-osinte-mingw.ads: Minor reformatting
19286 * s-inmaop-posix.adb: Minor reformatting
19288 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19290 * a-exexda.adb: Minor code reorganization
19292 * a-filico.adb: Minor reformatting
19294 * a-finali.adb: Minor reformatting
19296 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19298 * a-numeri.ads: Minor reformatting
19300 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19302 * exp_pakd.ads: Fix obsolete comment
19304 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19305 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19306 Probably not a bug, but certainly neater and more efficient.
19308 * a-tienio.adb: Minor reformatting
19310 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19311 Avoid assuming low bound of string is 1.
19313 * gnatbind.adb: Change Bindusg to package and rename procedure as
19314 Display, which now ensures that it only outputs usage information once.
19315 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19317 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19320 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19322 (Match): Add pragma Assert to ensure that Matches'First is zero
19324 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19326 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19327 documented preconditions (also kills warnings about bad indexes).
19329 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19331 (Build_Import_Library): Ditto;
19333 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19335 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19337 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19338 lower bound of choice table is 1.
19340 * sem_case.ads (Analyze_Choices): Document that lower bound of
19343 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19346 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19347 and add appropriate Assert pragma to suppress warnings.
19349 * atree.h, atree.ads, atree.adb
19350 Change Elist24 to Elist25
19351 Add definitions of Field28 and Node28
19352 (Traverse_Field): Use new syntactic parent table in sinfo.
19354 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19356 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19358 * exp_tss.adb: Put routines in alpha order
19360 * fe.h: Remove redundant declarations.
19362 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19364 * utils.c (builtin_function): Rename to gnat_builtin_function.
19365 Move common code to add_builtin_function.
19366 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19367 gnat_builtin_function.
19368 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19369 Change the signature.
19371 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19373 * Makefile.in: Add TEXI2PDF definition.
19374 * Make-lang.in: Add "ada.pdf" target.
19376 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19378 * decl.c, utils.c: Fix comment typos.
19379 * utils.c: Fix a typo.
19381 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19383 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19384 on "pure" Ada subprograms if SJLJ exceptions are used.
19385 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19386 on the declaration node of JMPBUF_SAVE.
19387 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19388 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19389 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19391 2006-08-20 Laurent Guerby <laurent@guerby.net>
19394 g-socket.adb (Bind_Socket): Call Set_Address.
19396 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19399 * decl.c (same_discriminant_p): New static function.
19400 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19401 subtype and we have discriminants, fix up the COMPONENT_REFs
19402 for the discriminants to make them reference the corresponding
19403 fields of the parent subtype after it has been built.
19405 2006-09-15 Roger Sayle <roger@eyesopen.com>
19408 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19409 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19411 2006-09-13 Olivier Hainque <hainque@adacore.com>
19414 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19415 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19416 let the common gimplifier code make and propagate a temporary copy.
19417 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19418 out/in-out actuals and defer setting the addressable/readonly bits
19421 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19424 * decl.c (components_to_record): Defer emitting debug info for the
19425 record type associated with the variant until after we are sure to
19428 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19431 * gigi.h (gnat_internal_attribute_table): Declare.
19432 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19433 * utils.c (gnat_internal_attribute_table): New global variable.
19434 (builtin_function): Always call decl_attributes on the builtin.
19435 (handle_const_attribute): New static function.
19436 (handle_nothrow_attribute): Likewise.
19438 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19440 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19442 2006-06-23 Olivier Hainque <hainque@adacore.com>
19444 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19445 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19447 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19448 Eric Botcazou <ebotcazou@adacore.com>
19451 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19452 check-gnat into check-acats.
19454 2006-06-17 Karl Berry <karl@gnu.org>
19456 * gnat-style.texi (@dircategory): Use "Software development"
19457 instead of "Programming", following the Free Software Directory.
19459 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19462 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19464 2006-06-06 Laurent Guerby <laurent@guerby.net>
19467 mlib-utl.adb: Use Program_Name.
19469 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19471 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19472 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19473 trans.c, utils.c: Fix comment typos. Follow spelling
19475 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19478 2006-05-19 Nicolas Setton <setton@adacore.com>
19480 * misc.c (gnat_dwarf_name): New function.
19481 (LANG_HOOKS_DWARF_NAME): Define to it.
19483 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19485 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19486 (ada/misc.o): Likewise.
19487 (ada/utils.o): Likewise.
19489 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19491 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19492 * s-osinte-kfreebsd-gnu.ads: New file.
19494 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19496 * Make-lang.in: Rename docdir to gcc_docdir.
19498 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19500 * gigi.h (get_ada_base_type): Delete.
19501 * utils2.c (get_ada_base_type): Likewise.
19502 * trans.c (convert_with_check): Operate in the real base type.
19504 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19506 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19508 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19510 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19511 whether to make the decl common.
19513 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19515 * Make-lang.in (Ada): Remove.
19516 (.PHONY): Remove Ada
19518 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19520 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19521 aggregate, check the interpretations of the other operand to find one
19522 that may be a boolean array.
19524 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19525 the prefix is a private extension.
19527 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19530 * utils2.c (find_common_type): If both input types are BLKmode and
19531 have the same constant size, keep using the first one.
19533 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19535 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19537 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19539 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19541 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19542 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19543 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19544 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19545 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19546 aborted while owning a lock.
19548 2006-02-17 Javier Miranda <miranda@adacore.com>
19549 Robert Dewar <dewar@adacore.com>
19551 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19552 through an access to class-wide interface we force the displacement of
19553 the pointer to the allocated object to reference the corresponding
19554 secondary dispatch table.
19555 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19556 if Long_Shifts are supported on the target, even if 64 bit divides
19557 are not supported (configurable run time mode).
19558 (Expand_N_Type_Conversion): Do validity check if validity checks on
19559 operands are enabled.
19560 (Expand_N_Qualified_Expression): Do validity check if validity checks
19561 on operands are enabled.
19563 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19565 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19566 must be materialized when the renamed expression is an explicit
19569 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19571 * freeze.adb (Statically_Discriminated_Components): Return false if
19572 the bounds of the type of the discriminant are not static expressions.
19574 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19575 the bounds of the discriminant type are not static.
19577 2006-02-17 Robert Dewar <dewar@adacore.com>
19579 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19580 then we close To if it is valid.
19582 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19584 * init.c (facility_resignal_table): new array
19585 (__gnat_default_resignal_p): enhance default predicate to resignal if
19586 VMS condition has one of the predefined facility codes.
19588 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19590 * Makefile.in: Use VMS64 specialized versions of several units in
19591 Interfaces.C hierarchy to be compatible with HP C default size choices.
19592 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19594 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19596 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19597 instantiation, the corresponding entity is the related_instance of the
19598 wrapper package created for the instance.
19600 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19602 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19603 the current instance is nested within another instance in a child unit.
19605 2006-02-17 Javier Miranda <miranda@adacore.com>
19606 Ed Schonberg <schonberg@adacore.com>
19608 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19609 type we cannot inherit the primitive operations; we inherit the
19610 Corresponding_Record_Type (which has the list of primitive operations).
19611 (Check_Anonymous_Access_Types): When creating anonymous access types for
19612 access components, use Rewrite in order to preserve the tree structure,
19614 (Analyze_Object_Declaration): For limited types with access
19615 discriminants with defaults initialized by an aggregate, obtain
19616 subtype from aggregate as for other mutable types.
19617 (Derived_Type_Declaration): If the derived type is a limited interface,
19618 set the corresponding flag (Is_Limited_Record is not sufficient).
19620 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19622 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19623 to inline a function that returns an unconstrained type, the return
19624 expression must be the first variable declared in the body of the
19627 2006-02-17 Javier Miranda <miranda@adacore.com>
19629 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19630 abstract interface type, the static analysis is not enough to know if
19631 the interface is implemented or not by the source tagged type. Hence
19632 we must pass the work to the expander to generate the required code to
19633 evaluate the conversion at run-time.
19634 (Resolve_Equality_Op): Do not apply previous
19635 transformation if expansion is disasbled, to prevent anomalies when
19636 locating global references in a generic unit.
19638 2006-02-17 Vincent Celier <celier@adacore.com>
19640 * snames.ads, snames.adb: New standard names for new project attributes:
19641 archive_builder, archive_indexer, compiler_pic_option,
19642 config_body_file_name, config_body_file_name_pattern,
19643 config_file_switches, config_file_unique, config_spec_file_name,
19644 config_spec_file_name_pattern, default_builder_switches,
19645 default_global_compiler_switches, default_language,
19646 dependency_file_kind, global_compiler_switches, include_path,
19647 include_path_file, language_kind, linker_executable_option,
19648 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19649 roots, runtime_project.
19651 2006-02-17 Matthew Heaney <heaney@adacore.com>
19653 * a-convec.ads, a-convec.adb:
19654 (operator "&"): handle potential overflow for large index types
19655 (Insert): removed Contraint_Error when using large index types
19656 (Insert_Space): removed Constraint_Error for large index types
19657 (Length): moved constraint check from Length to Insert
19659 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19660 as not null access.
19661 Explicit raise statements now include an exception message.
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 2006-02-17 Robert Dewar <dewar@adacore.com>
19669 * s-wchcnv.adb: Document handling of [ on output (we do not change
19670 this to ["5B"] and the new comments say why not.
19673 Add note for -gnatVo that this now includes the cases of type
19674 conversions and qualified expressions.
19675 Add comments on handling of brackets encoding for Text_IO
19677 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19678 Thomas Quinot <quinot@adacore.com>
19679 Robert Dewar <dewar@adacore.com>
19680 Javier Miranda <miranda@adacore.com>
19682 * expander.adb: Fix typo in comment
19684 * exp_pakd.adb: Fix typo
19685 Minor comment reformatting.
19687 * g-dyntab.adb: Minor reformatting
19689 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19690 aliased subprograms to look for the abstract interface subprogram.
19692 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19694 * env.c (__gnat_setenv): Use size_t.
19695 (__gnat_unsetenv): Likewise.
19696 (__gnat_clearenv): Likewise.
19698 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19700 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19702 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19704 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19705 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19706 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19707 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19708 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19709 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19710 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19711 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19712 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19715 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19717 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19718 protection against race conditions is not needed.
19719 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19721 (Set_Specific_Handler): Add mutual exclusive access to the specific
19723 (Specific_Handler): Add mutual exclusive access for retrieving the
19726 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19729 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19730 Fall_Back_Handler and Specific_Handler.
19732 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19733 termination handlers.
19734 Set two different owerflow depending on the maximal stack size.
19736 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19737 protection against race conditions is not needed when executing the
19738 task termination handler.
19740 2006-02-13 Robert Dewar <dewar@adacore.com>
19742 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19743 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19744 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19745 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19746 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19747 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19748 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19749 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19750 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19751 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19752 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19753 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19754 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19755 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19756 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19757 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19758 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19759 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19760 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19761 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19762 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19763 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19764 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19765 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19766 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19767 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19768 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19769 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19770 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19771 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19772 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19773 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19774 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19775 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19778 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19780 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19781 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19782 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19783 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19784 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19785 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19786 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19787 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19788 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19790 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19792 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19793 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19794 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19795 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19796 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19797 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19798 replaced by anonymous access type.
19799 (pthread_sigmask): Now take an access sigset_t
19801 * s-osinte-hpux.ads: Ditto.
19802 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19803 properly 32 and 64 bit ABIs.
19805 2006-02-13 Pascal Obry <obry@adacore.com>
19807 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19808 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19809 s-taprop-linux.adb, s-taprop-solaris.adb,
19810 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19811 adjustement is already done when calling this routine.
19813 2006-02-13 Pascal Obry <obry@adacore.com>
19815 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19816 table to take advantage of the 16 priority levels available on Windows
19817 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19818 supported by this new mapping.
19820 2006-02-13 Nicolas Setton <setton@adacore.com>
19822 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19823 (get_encoding): New subprogram. Extracts the encodings from an encoded
19826 2006-02-13 Pascal Obry <obry@adacore.com>
19827 Nicolas Roche <roche@adacore.com>
19828 Arnaud Charlet <charlet@adacore.com>
19830 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19832 (__gnat_try_lock): Add unicode support by using a specific section on
19834 (__gnat_get_current_dir): Idem.
19835 (__gnat_open_read): Idem.
19836 (__gnat_open_rw): Idem.
19837 (__gnat_open_create): Idem.
19838 (__gnat_create_output_file): Idem.
19839 (__gnat_open_append): Idem.
19840 (__gnat_open_new): Idem.
19841 (__gnat_file_time_name): Idem.
19842 (__gnat_set_file_time_name): Idem.
19843 (__gnat_stat): Idem.
19844 (win32_no_block_spawn): Idem.
19845 (__gnat_locate_exec_on_path): Idem.
19846 (__gnat_opendir): New routine.
19847 (__gnat_closedir): Idem.
19848 (__gnat_readdir): Add new parameter length (pointer to int). Update
19849 implementation to use it and add specific Win32 code for Unicode
19851 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19852 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19853 (convert_addresses): Do not define this dummy routine on VMS.
19855 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19856 runtime Unicode support will be activated.
19857 (S2WS): String to Wide-String conversion. This version just copy a
19858 string in non Unicode version.
19859 (WS2S): Wide-String to String conversion. This version just copy a
19860 string in non Unicode version.
19862 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19863 (Open): Now import __gnat_opendir from adaint.c.
19864 (Read): Change the implementation to support unicode characters. It is
19865 not possible to use strlen() on Windows as this version supports only
19866 standard ASCII characters. So the length of the directory entry is now
19867 returned from the imported __gnat_readdir routine.
19868 Update copyright notice.
19870 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19871 (opendir): Moved to adaint.c.
19873 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19874 (Get_Directory): Fix wrong indexing.
19875 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19876 __gnat_getenv from env.c
19877 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19880 * env.h, env.c: New file.
19882 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19883 adaint.c by __gnat_getenv from env.c
19885 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19886 adaint.c by __gnat_getenv from env.c
19888 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19890 Update dependencies.
19892 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19893 Olivier Hainque <hainque@adacore.com>
19894 Eric Botcazou <ebotcazou@adacore.com>
19896 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19898 * gigi.h (value_factor_p): Add prototype and description, now public.
19900 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19901 promotion for field with rep clause if the associated size was proven
19903 Expand comments describing attempts to use a packable type.
19904 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19905 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19906 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19907 necessary since these are not different types and pointers may
19908 actually designate any subtype in this hierarchy.
19909 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19910 discriminants but put them into record only if not Unchecked_Union;
19911 pass flag to components_to_record showing Unchecked_Union.
19912 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19913 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19914 (components_to_record): New argument UNCHECKED_UNION.
19915 Remove special case code for Unchecked_Union and instead use main code
19916 with small changes.
19919 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19920 variable with the expression being built, only its inner field.
19922 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19923 emit_sequence_entry_statements.
19924 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19925 (establish_gnat_vms_condition_handler): Move before
19926 Subprogram_Body_to_gnu.
19927 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19928 for a subprogram if it has a foreign convention or is exported.
19929 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19930 substituted for a CONST_DECL.
19931 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19932 Etype to assoc_to_constructor.
19933 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19934 discriminants of Unchecked_Union.
19935 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19936 don't need cluttering preprocessor directives.
19937 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19938 condition handler as current in the compiled function.
19939 (body_with_handlers_p): New function. Tell whether a given sequence of
19940 statements node is attached to a package or subprogram body and involves
19941 exception handlers possibly nested within inner block statements.
19942 (emit_sequence_entry_statements): New function, to emit special
19943 statements on entry of sequences when necessary. Establish GNAT
19944 condition handler in the proper cases for VMS.
19945 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19946 emit_sequence_entry_statements.
19948 * utils2.c (find_common_type): If both input types are BLKmode and
19949 have a constant size, use the smaller one.
19950 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19953 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19955 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19956 (convert, case UNION_TYPE): Remove special treatment for unchecked
19960 (update_pointer_to): Update variants of pointer types to unconstrained
19961 arrays by attaching the list of fields of the main variant.
19963 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19964 Robert Dewar <dewar@adacore.com>
19966 * a-exexpr.adb, a-exexpr-gcc.adb
19967 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19968 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19969 Remove code unused for exception propagation for the compiler itself
19970 from a-except.adb and update to still share separate packages.
19972 * a-except.ads, a-except.adb: Ditto.
19973 Add comments that this version is now used only by the compiler and
19974 other basic tools. The full version that includes the Ada 2005 stuff
19975 is in separate files a-except-2005.ads/adb. The reason is that we do
19976 not want to cause bootstrap problems with compilers not recognizing
19978 Add exception reason code PE_Implicit_Return
19979 Add new exception reason code (Null Exception_Id)
19981 * a-except-2005.adb, a-except-2005.ads: New files.
19983 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19985 * s-wchcon.adb: New file.
19987 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19988 (traceback.o deps): Likewise.
19989 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19990 Activate build of GMEM instrumentation library on VMS targets.
19991 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19992 Use a-except-2005.ads/adb for all run-time library builds unless
19993 specified otherwise.
19994 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19995 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19996 Use s-parame.adb on all native platforms.
19997 Use s-parame-vxworks.adb on all vxworks platforms.
19998 Add env.c env.h in LIBGNAT_SRCS
19999 Add env.o in LIBGNAT_OBJS
20000 (GNATMAKE_OBJS): Remove ctrl_c.o object.
20001 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
20002 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20003 supports VxWorks 6 RTPs.
20004 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
20005 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20007 * types.h, types.ads (Terminate_Program): New exception
20008 Add comment on modifying multiple versions of a-except.adb when the
20009 table of exception reasons is modified.
20010 Add exception reason code PE_Implicit_Return
20011 Add new exception reason code (Null Exception_Id)
20013 * clean.adb (Initialize): Get the target parameters before checking
20014 if target is OpenVMS. Move the OpenVMS specific code here from package
20015 body elaboration code.
20017 2006-02-13 Thomas Quinot <quinot@adacore.com>
20018 Vincent Celier <celier@adacore.com>
20019 Robert Dewar <dewar@adacore.com>
20021 * ali-util.adb (Get_File_Checksum): Update to account for change in
20022 profile of Initialize_Scanner.
20024 * gprep.adb (Gnatprep): Update to account for change in profile of
20025 Initialize_Scanner.
20026 (Process_One_File): Same.
20028 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
20029 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
20030 that behaviour using the new Unit information recorded in the source
20031 files table, rather than going through all units every time.
20032 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
20033 (Get_Source_Unit): Same.
20035 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
20036 change in profile of Initialize_Scanner.
20037 (Prepare_To_Preprocess): Same.
20039 * lib.ads: Fix typo in comment (templace -> template).
20041 * prj-part.adb (Parse_Single_Project): Update to account for change in
20042 profile of Initialize_Scanner.
20044 * scn.adb (Initialize_Scanner): Account for change in profile of
20045 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20046 Also record the association of the given Source_File_Index to the
20047 corresponding Unit_Number_Type.
20049 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20051 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20052 Remove Unit formal for generic scanner: this formal
20053 is only relevant to Scn (the scanner instance used to parse Ada source
20054 files), not to other instances. Update comment accordingly.
20055 (Scan): Use new function Snames.Is_Keyword_Name.
20057 * sinfo-cn.adb: Fix typo in comment.
20059 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20062 * sinput.ads (Source_File_Record): New component Unit, used to capture
20063 the unit identifier (if any) associated to a source file.
20065 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20066 Unit in Source_File_Record.
20068 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20069 in profile of Initialize_Scanner.
20071 * scans.adb (Initialize_Ada_Keywords): New procedure
20073 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20074 Ada keywords in the Namet table, without the need to call
20075 Initialize_Scanner.
20077 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20078 (Is_Keyword_Name): New function
20080 * snames.ads: Add subtype Configuration_Pragma_Names
20081 Add pragma Ada_2005 (synonym for Ada_05)
20082 (Is_Keyword_Name): New function
20084 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20086 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20088 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20091 * a-stwima.adb (To_Set): Add extra check when N = 0.
20093 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20095 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20097 * s-parame-mingw.adb, s-parame-linux.adb,
20098 s-parame-solaris.adb: Removed, replaced by s-parame.adb
20100 * s-parame-vxworks.ads: Fix typo.
20102 * s-parame-vxworks.adb: New file.
20104 * s-parame.adb: Version now used by all native platforms.
20105 (Default_Stack_Size): Use 2 megs for default stack size and use
20106 __gl_default_stack_size when available.
20107 (Minimum_Stack_Size): Use 12K.
20109 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20110 (Create_Task): Refine implementation taking advantage of the XP stack
20111 size support. On XP, we now create the thread using the flag
20112 STACK_SIZE_PARAM_IS_A_RESERVATION.
20114 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20116 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20117 XP and 0 on older Windows versions.
20119 * interfac-vms.ads: Removed, no longer used.
20121 2006-02-13 Matthew Heaney <heaney@adacore.com>
20123 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20124 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
20125 a-cohase.adb: All explicit raise statements now include an exception
20128 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20129 (Update_Element_Preserving_Key): renamed op to just Update_Element.
20130 Explicit raise statements now include an exception message
20132 * a-cihase.ads, a-cohase.ads: Removed comment.
20134 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20135 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20136 a-szbzha.adb, a-szfzha.ads: New files.
20138 2006-02-13 Matthew Heaney <heaney@adacore.com>
20140 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20143 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20145 * lang.opt: Wvariadic-macros: New option.
20146 Wold-style-definition: Likewise.
20147 Wmissing-format-attribute: Likewise.
20149 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20150 -Wold-style-definition and -Wmissing-format-attribute.
20152 2006-02-13 Robert Dewar <dewar@adacore.com>
20154 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20156 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20158 2006-02-13 Nicolas Roche <roche@adacore.com>
20160 * a-envvar.adb, a-envvar.ads: New files.
20162 2006-02-13 Douglas Rupp <rupp@adacore.com>
20164 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20166 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20168 2006-02-13 Pat Rogers <rogers@adacore.com>
20170 * a-rttiev.adb, a-rttiev.ads: New files.
20172 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20174 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20175 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
20177 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20179 2006-02-13 Robert Dewar <dewar@adacore.com>
20181 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20182 sem_case.adb: Minor code reorganization (not Present should be No)
20184 2006-02-13 Geert Bosch <bosch@adacore.com>
20185 Gary Dismukes <dismukes@adacore.com>
20187 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20188 0, since the lower bound of the actual string may be greater than one.
20191 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20192 layout is requested.
20194 2006-02-13 Vincent Celier <celier@adacore.com>
20196 * back_end.adb (Scan_Compiler_Arguments): Check if
20197 Search_Directory_Present is True and, if it is, add the argument in
20198 the source search directory path.
20200 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20201 Search_Directory_Present to True.
20203 2006-02-13 Joel Brobecker <brobecke@adacore.com>
20205 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20206 volatile, to tell the compiler to preserve this variable at any level
20208 (Gen_Versions_Ada): Temporarily work around codegen bug.
20210 2006-02-13 Vincent Celier <celier@adacore.com>
20212 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20213 gcc to link with option -shared-libgcc.
20214 (Gnatlink): Remove duplicate switches -shared-libgcc
20216 2006-02-13 Robert Dewar <dewar@adacore.com>
20218 * gnatvsn.ads (Current_Year): New constant, used to easily update
20219 copyright on all GNAT tools.
20221 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20224 2006-02-13 Robert Dewar <dewar@adacore.com>
20226 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20227 after hyphen (small aesthetic change useful for a range of numbers
20229 Suppress range checks for a couple of assignments which otherwise
20230 cause validity checks with validity checking turned on.
20232 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20233 Improvement in error message for object.
20234 (Rep_Item_Too_Late): Remove '!' in warning message.
20236 2006-02-13 Robert Dewar <dewar@adacore.com>
20237 Eric Botcazou <ebotcazou@adacore.com>
20239 * err_vars.ads: Suppress range checks for a couple of assignments
20240 which otherwise cause validity checks with validity checking turned on.
20243 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20244 Make message unconditional if it is a warning.
20245 (Error_Msg_NEL): Always output warning messages.
20246 Suppress range checks for a couple of assignments which otherwise
20247 cause validity checks with validity checking turned on.
20249 * errout.ads (Message Insertion Characters): Document that '!' is
20250 implied by '?' in error messages.
20252 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20253 (Gnat1drv): Use a goto to end of main subprogram instead of
20254 Exit_Program (E_Success) so that finalization can occur normally.
20256 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20258 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20261 2006-02-13 Vincent Celier <celier@adacore.com>
20263 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20264 Unchecked_Conversion functions.
20265 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20266 when OpenVMS returns False.
20268 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20269 a-dirval.adb (OpenVMS): New Boolean function
20271 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20272 Thomas Quinot <quinot@adacore.com>
20274 * checks.adb (Build_Discriminant_Checks): If the expression being
20275 checks is an aggregate retrieve the values of its discriminants to
20276 generate the check, rather than creating a temporary and a reference
20278 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20279 (Install_Null_Excluding_Check): Ditto
20280 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20281 not for the renamed object, so that the actual itype is attached in the
20284 2006-02-13 Robert Dewar <dewar@adacore.com>
20285 Vincent Celier <celier@adacore.com>
20287 * debug.adb: Eliminate numeric switches for binder/gnatmake
20289 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20290 switches for the compiler.
20291 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20292 (Scan_Make_Switches): When failing with an illegal switch, output an
20293 error message with the full switch.
20294 Eliminate numeric switches for binder/gnatmake
20296 * switch.ads, switch.adb (Bad_Switch): New procedure
20298 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20299 Remove 0-9 as debug flag character possibilities
20300 -d is now controlling the primary stack size when its value is a
20301 positive. Also add checks against invalid values, and support for kb,
20302 mb. Ditto for -D switch.
20304 2006-02-13 Robert Dewar <dewar@adacore.com>
20305 Serguei Rybin <rybin@adacore.com>
20307 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20308 save/restore routines.
20309 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20310 were not always properly handled previously.
20311 Since we are changing the tree format anyway, also get rid of the
20312 junk obsolete Immediate_Errors flag.
20313 (Tree_Read): Change the way of reading Tree_Version_String - now we
20314 read the version string from the tree even if its length is not the
20315 same as the length of the version string computed from Gnatvsn.
20316 (Search_Directory_Present): New Boolean flag for the compiler.
20317 Define Tree_Version_String as a dynamic string.
20318 (Default_Stack_Size): new variable, used to handle switch -d.
20321 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20322 only for main unit.
20323 Add pragma Ada_2005 (synonym for Ada_05)
20324 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20325 were not always properly handled previously.
20327 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20328 explicit Ada_95 to Ada_2005.
20330 2006-02-13 Javier Miranda <miranda@adacore.com>
20331 Robert Dewar <dewar@adacore.com>
20332 Ed Schonberg <schonberg@adacore.com>
20334 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20335 against errors in the source program: a private types for which the
20336 corresponding full type declaration is missing and pragma CPP_Virtual
20338 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20339 (Is_Known_Null): New flag
20340 (Has_Pragma_Pure): New flag
20341 (No_Return): Present in all entities, set only for procedures
20342 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20343 explicitly declared limited.
20344 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20345 entities. Only used for component marked Is_Tag. If present it stores
20346 the Offset_To_Top function used to provide this value in tagged types
20347 whose ancestor has discriminants.
20349 * exp_ch2.adb: Update status of new Is_Known_Null flag
20351 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20353 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20354 the categorization sense if Is_Pure was set by pragma Pure_Function.
20356 2006-02-13 Quentin Ochem <ochem@adacore.com>
20357 Olivier Hainque <hainque@adacore.com>
20359 * bindusg.adb: Updated documentation for -d and -D switches.
20361 * raise.h (__gnat_set_globals): added new parameter for
20362 Default_Stack_Size.
20364 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20365 (__gnat_handle_vms_condition): Adjust context before raise.
20366 (__gnat_install_handler): Restore the global vector setup for GCC
20367 versions before 3.4, as the frame based circtuitry is not available
20369 (__gnat_set_globals): added a parameter default_stack_size
20370 (__gl_default_stack_size): new variable.
20372 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20374 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20375 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20376 does not exist in the Ada RM.
20377 (Compatible_Int_Bounds): Determine whether two integer range bounds
20378 are of equal length and have the same start and end values.
20379 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20380 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20381 aggregate when it is part of an object declaration.
20382 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20383 constrains discriminants of its parent, add explicitly the discriminant
20384 constraints of the ancestor by retrieving them from the
20385 stored_constraint of the parent.
20387 2006-02-13 Robert Dewar <dewar@adacore.com>
20389 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20390 attribute Mechanism_Code is applied to renamed subprogram, modify
20391 prefix to point to base subprogram.
20392 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20394 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20395 renamed subprograms so that the front-end must replace the prefix
20398 2006-02-13 Javier Miranda <miranda@adacore.com>
20399 Gary Dismukes <dismukes@adacore.com>
20401 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20402 availability of RE_Interface_Tag.
20403 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20404 (Freeze_Record_Type): Do not generate the tables associated with
20405 timed and conditional dispatching calls through synchronized
20406 interfaces if compiling under No_Dispatching_Calls restriction.
20407 When compiling for Ada 2005, for a nonabstract
20408 type with a null extension, call Make_Controlling_Function_Wrappers
20409 and insert the wrapper function declarations and bodies (the latter
20410 being appended as freeze actions).
20411 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20412 predefined primitives associated with timed and conditional
20413 dispatching calls through synchronized interfaces if we are
20414 compiling under No_Dispatching_Calls.
20415 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20416 service is available before generating a call.
20417 (Make_Controlling_Function_Wrappers): New procedure.
20418 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20419 access-to-limited-interfaces because they can be used to reference
20420 tasks that implement such limited interface.
20421 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20422 procedure spec and body of the Offset_To_Top function that is generated
20423 when the parent of a type with discriminants has secondary dispatch
20425 (Init_Secondary_Tags): Handle the case in which the parent of the type
20426 containing secondary dispatch tables has discriminants to generate the
20427 correct arguments to call Set_Offset_To_Top.
20428 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20430 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20431 Add Wide_[Wide_]Expanded_Name.
20432 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20433 the same functionality of Get_Prim_Op_Address but applied to predefined
20434 primitive operations because the pointers to the predefined primitives
20435 are now saved in a separate table.
20436 (Parent_Size): Modified to get access to the separate table of primitive
20437 operations or the parent type.
20438 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20439 functionality of Set_Prim_Op_Address but applied to predefined primitive
20441 (Set_Signature): New subprogram used to store the signature of a DT.
20442 (Displace): If the Offset_To_Top value is not static then call the
20443 function generated by the expander to get such value; otherwise use
20444 the value stored in the table of interfaces.
20445 (Offset_To_Top): The type of the actual has been changed to Address to
20446 give the correct support to tagged types with discriminants. In this
20447 case this value is stored just immediately after the tag field.
20448 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20449 offset_to_top value is static and hence pass this value to the run-time
20450 to store it in the table of interfaces, or else if this value is dynamic
20451 and then pass to the run-time the address of a function that is
20452 generated by the expander to provide this value for each object of the
20455 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20456 (Default_Prim_Op_Count): New entity
20457 (Get_Predefined_Prim_Op_Address): New entity
20458 (Set_Predefined_Prim_Op_Address): New entity
20459 (RE_Set_Signature): New entity
20461 2006-02-13 Thomas Quinot <quinot@adacore.com>
20462 Ed Schonberg <schonberg@adacore.com>
20464 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20465 Make_Adjust_Call done for a newly-allocated object.
20467 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20468 in a subprogram are wrapped in a cleanup block, indicate that the
20469 subprogram contains an inner block with an exception handler.
20470 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20471 Adjust call is for a newly-allocated object. In that case we must not
20472 assume that the finalization list chain pointers are correct (since they
20473 come from a bit-for-bit copy of the original object's pointers) so if
20474 the attach level would otherwise be zero (no change), we set it to 4
20475 instead to cause the pointers to be reset to null.
20477 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20478 reset chain pointers to null.
20480 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20482 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20483 string, and the context requires a loop for the assignment (e.g.
20484 because the left-hand side is packed), generate a unique name for the
20485 temporary that holds the string, to prevent spurious name clashes.
20487 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20488 Javier Miranda <miranda@adacore.com>
20489 Robert Dewar <dewar@adacore.com>
20490 Gary Dismukes <dismukes@adacore.com>
20492 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20493 return unconstrained arrays.
20495 (Expand_Call): An indirect call through an access parameter of a
20496 protected operation is not a protected call.
20497 Add circuit to raise CE in Ada 2005 mode following call
20498 to Raise_Exception.
20499 (Register_DT_Entry): Do nothing if
20500 the run-time does not give support to abstract interfaces.
20501 (Freeze_Subprogram): In case of dispatching operations, do not generate
20502 code to register the operation in the dispatch table if the source
20503 is compiled with No_Dispatching_Calls.
20504 (Register_Predefined_DT_Entry): Generate code that calls the new
20505 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20506 Set_Prim_Op_Address.
20508 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20509 on array assignments if the right-hand side is a function call that has
20510 been inlined. Check is performed on the assignment in the block.
20511 (Process_Bounds): If bounds and range are overloaded, apply preference
20512 rule for root operations to disambiguate, and diagnose true ambiguity.
20513 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20514 a tag-indeterminate right-hand side even when Expander_Active is True.
20515 Needed to ensure that dispatching calls to T'Input are allowed and
20516 get the tag of the target class-wide object.
20518 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20519 an inherited primitive operation that already overrides several
20520 abstract interface primitives. For transitivity, the new entity must
20521 also override all the abstract interface primitives covered by the
20522 inherited overriden primitive.
20523 Emit warning if new entity differs from homograph in same scope only in
20524 that one has an access parameter and the other one has a parameter of
20525 a general access type with the same designated type, at the same
20526 position in the signature.
20527 (Make_Inequality_Operator): Use source locations of parameters and
20528 subtype marks from corresponding equality operator when creating the
20529 tree structure for the implicit declaration of "/=". This does not
20530 change anything in behaviour except that the decoration of the
20531 components of the subtree created for "/=" allows ASIS to get the
20532 string images of the corresponding identifiers.
20533 (Analyze_Return_Statement): Remove '!' in warning message.
20534 (Check_Statement_Sequence): Likewise.
20535 (Analyze_Subprogram_Body): For an access parameter whose designated type
20536 is an incomplete type imported through a limited_with clause, use the
20537 type of the corresponding formal in the body.
20538 (Check_Returns): Implicit return in No_Return procedure now raises
20539 Program_Error with a compile time warning, instead of beging illegal.
20540 (Has_Single_Return): Function returning unconstrained type cannot be
20541 inlined if expression in unique return statement is not an identifier.
20542 (Build_Body_To_Inline): It is possible to inline a function call that
20543 returns an unconstrained type if all return statements in the function
20544 return the same local variable. Subsidiary procedure Has_Single_Return
20545 verifies that the body conforms to this restriction.
20547 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20548 same type, and one of them is of an anonymous access type, convert
20549 the other operand to it, so that this is a valid binary operation for
20551 (Resolve_Type_Conversion): Handle subtypes of protected types and
20552 task types when accessing to the corresponding record type.
20553 (Resolve_Allocator): Add '\' in 2-line warning message.
20554 Remove '!' in warning message.
20555 (Resolve_Call): Add '\' in 2-line warning message.
20556 (Valid_Conversion): Likewise.
20557 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20558 resulting type may be an access type with an implicit dereference.
20559 Obtain the proper component from the designated type.
20560 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20561 given by an expanded name with prefix Standard, when the operands are
20562 of an anonymous access type.
20563 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20564 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20565 prefix of the expression is not of an incomplete type. Allows full
20566 diagnoses of all semantic errors.
20567 (Resolve_Actuals): If the actual is an allocator whose directly
20568 designated type is a class-wide interface we build an anonymous
20569 access type to use it as the type of the allocator. Later, when
20570 the subprogram call is expanded, if the interface has a secondary
20571 dispatch table the expander will add a type conversion to force
20572 the displacement of the pointer.
20573 (Resolve_Call): If a function that returns an unconstrained type is
20574 marked Inlined_Always and inlined, the call will be inlined and does
20575 not require the creation of a transient scope.
20576 (Check_Direct_Boolean_Op): Removed
20577 (Resolve_Comparison_Op): Remove call to above
20578 (Resolve_Equality_Op): Remove call to above
20579 (Resolve_Logical_Op): Inline above, since this is only call.
20580 (Valid_Conversion): Handle properly conversions between arrays of
20581 convertible anonymous access types.
20584 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20585 the literal in an unchecked conversion, because GCC 4.x needs a static
20586 value for a string bound.
20588 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20589 Hristian Kirtchev <kirtchev@adacore.com>
20591 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20592 components of the corresponding record, take into account component
20593 definitions that are access definitions.
20594 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20595 procedure is not considered a dispatching call and will be expanded
20598 2006-02-13 Javier Miranda <miranda@adacore.com>
20600 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20601 controlling argument of the dispatching call is an abstract interface
20602 class-wide type then we use it directly.
20603 Check No_Dispatching_Calls restriction.
20604 (Default_Prim_Op_Position): Remove the code that looks for the last
20605 entity in the list of aliased subprograms. This code was wrong in
20607 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20608 when the source is compiled with the No_Dispatching_Calls restriction.
20609 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20610 if we are compiling with restriction No_Dispatching_Calls.
20611 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20612 subprograms if we are compiling under No_Dispatching_Calls restriction.
20613 (Make_DT): Generate a dispatch table with a single dummy entry if
20614 we are compiling with the No_Dispatching_Calls restriction. In
20615 addition, in this case we don't generate code that calls to the
20616 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20617 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20618 of this subprogram if compiling with the No_Dispatching_Calls
20620 (Expand_Type_Conversion): Instead of using the actual parameter,
20621 the argument passed as parameter to the conversion function was
20622 erroneously referenced by the expander.
20623 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20624 Set_Predefined_Primitive_Op_Address and Set_Signature.
20625 (Expand_Dispatching_Call): Generate call to
20626 Get_Predefined_Prim_Op_Address for predefined primitives.
20627 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20628 predefined primitives.
20629 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20630 primitives we reserve one dummy entry to ensure that the tag does not
20631 point to some memory that is associated with some other object. In
20632 addition, remove all the old code that generated the assignments
20633 associated with the signature of the dispatch table and replace them
20634 by a call to the new subprogram Set_Signature.
20635 (Set_All_DT_Position): Change the algorithm because now we have a
20636 separate dispatch table associated with predefined primitive operations.
20637 (Expand_Interface_Conversion): In case of non-static offset_to_top
20638 add explicit dereference to get access to the object after the call
20639 to displace the pointer to the object.
20640 (Expand_Interface_Thunk): Modify the generation of the actual used
20641 in the calls to the run-time function Offset_To_Top to fulfil its
20643 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20645 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20647 * exp_dist.adb (Copy_Specification): For access parameters, copy
20648 Null_Exclusion flag, which will have been set for stream subprograms
20651 2006-02-13 Pascal Obry <obry@adacore.com>
20653 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20654 previous implementation was using the C runtime spawnve routine but
20655 the corresponding wait was using directly the Win32 API. This was
20656 causing some times a lock when waiting for an event using
20657 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20658 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20659 API fixes this problem.
20661 2006-02-13 Robert Dewar <dewar@adacore.com>
20663 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20666 2006-02-13 Thomas Quinot <quinot@adacore.com>
20668 * exp_pakd.ads: Fix typos in comments.
20670 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20671 array reference that is an explicit dereference, mark the converted
20672 (packed) array reference as analyzed to prevent a forthcoming
20673 reanalysis from resetting its type to the original (non-packed) array
20676 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20677 Javier Miranda <miranda@adacore.com>
20678 Eric Botcazou <ebotcazou@adacore.com>
20680 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20681 Is_Predefined_Primitive_Operation): When
20682 searching for the predefined equality operator, verify that operands
20683 have the same type.
20684 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20685 for the last entity in the list of aliased subprograms. This code
20686 was wrong in case of renamings.
20687 (Set_Renamed_Subprogram): New procedure
20688 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20689 Exp_Type constant computed when entering this subprogram.
20690 (Known_Null): New function
20691 (OK_To_Do_Constant_Replacement): New function
20692 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20693 (Side_Effect_Free): An attribute reference 'Input is not free of
20694 side effect, unlike other attributes that are functions. (from code
20696 (Remove_Side_Effects): Expressions that involve packed arrays or records
20697 are copied at the point of reference, and therefore must be marked as
20698 renamings of objects.
20699 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20700 not a dispatching operation.
20703 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20704 elementary types in all cases.
20706 2006-02-13 Javier Miranda <miranda@adacore.com>
20708 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20709 task types when accessing to the corresponding record type.
20710 Remove '!' in warning message.
20712 2006-02-13 Olivier Hainque <hainque@adacore.com>
20714 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20715 to avoid useless and space inefficient overalignments on targets where
20716 Max_Alignment is larger than 16.
20718 2006-02-13 Pascal Obry <obry@adacore.com>
20720 * g-catiio.adb (Sec_Number): New type used to compute the number of
20721 seconds since 1-1-1970.
20722 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20723 negative numbers (years, months...) it is better to have a Natural here.
20725 (Image) [Number]: Change parameter from Long_Integer to Number.
20726 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20727 overflow for dates past year 2038.
20729 2006-02-13 Matthew Heaney <heaney@adacore.com>
20731 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20734 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20736 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20738 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20739 finalization can occur normally.
20741 2006-02-13 Vincent Celier <celier@adacore.com>
20743 * gnatcmd.adb (Rules_Switches): New table
20744 (Add_To_Rules_Switches): New procedure
20745 (GNATCmd): For command CHECK, put all options following "-rules" in the
20746 Rules_Switches table. Append these -rules switches after the -cargs
20749 2006-02-13 Robert Dewar <dewar@adacore.com>
20751 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20752 These two cases were generating incorrect output, and if this unit
20753 was built with checks on, generated a discriminant mismatch constraint
20756 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20757 Robert Dewar <dewar@adacore.com>
20759 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20760 view is an array type, indicate the component type as well, for
20761 navigation purposes.
20762 (Generate_Reference): Don't consider array ref on LHS to be a case
20763 of violating pragma Unreferenced.
20764 Do not give Ada 2005 warning except on real reference.
20766 2006-02-13 Vincent Celier <celier@adacore.com>
20768 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20769 main source, add switch -mdebug-main=_ada_ so that the executable can
20770 be debugged by the standard VMS debugger.
20771 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20772 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20773 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20774 of the last source, as the binding and linking phases are never
20776 Set all executable obsolete when rebuilding a library.
20778 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20781 2006-02-13 Javier Miranda <miranda@adacore.com>
20784 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20785 code to improve the error message reported when the program has
20786 declarations of abstract interface types and it is not compiled with
20787 the -gnat05 switch.
20788 (P_Access_Definition): Reorganize the code to improve the error
20789 message reported when the new Ada 2005 syntax for anonymous
20790 access types is used and the program is not compiled with the
20793 2006-02-13 Robert Dewar <dewar@adacore.com>
20795 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20796 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20799 2006-02-13 Javier Miranda <miranda@adacore.com>
20801 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20802 against source containing syntax errors.
20804 2006-02-13 Vincent Celier <celier@adacore.com>
20806 * prj.adb (Reset): Initialize the first element of table Namings with
20807 the standard naming data.
20809 2006-02-13 Vincent Celier <celier@adacore.com>
20811 * prj.ads (Error_Warning): New enumeration type
20813 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20814 unknown, use the location of the project to report the error.
20815 (When_No_Sources): New global variable
20816 (Report_No_Ada_Sources): New procedure
20817 (Check): New parameter When_No_Sources. Set value of global variable
20819 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20820 (Get_Sources_From_File): Ditto
20821 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20824 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20825 Call Prj.Proc.Process with parameter When_No_Sources.
20827 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20828 Call Recursive_Check with parameter When_No_Sources.
20829 (Recursive_Check): New parameter When_No_Sources. Call itself and
20830 Prj.Nmsc.Check with parameter When_No_Sources.
20831 (Process): New parameter When_No_Sources. Call Check with parameter
20833 (Copy_Package_Declarations): New procedure to copy renamed parameters
20834 and setting the location of the declared attributes to the location
20835 of the renamed package.
20836 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20839 2006-02-13 Vincent Celier <celier@adacore.com>
20841 * prj-makr.adb (Make): Preserve the comments from the original project
20843 When removing nodes (attributes Source_Dirs, Source_Files,
20844 Source_List_File and package Naming), save the comments and attach the
20845 saved comments to the newly created nodes.
20846 Do not add a with clause for the naming package if one already exists.
20848 2006-02-13 Javier Miranda <miranda@adacore.com>
20849 Gary Dismukes <dismukes@adacore.com>
20850 Robert Dewar <dewar@adacore.com>
20852 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20854 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20855 aliased entities to look for the overriden abstract interface
20857 (Is_Interface_Subprogram): Complete documentation.
20858 (Check_Dispatching_Operation): Do not generate code to register the
20859 operation in the dispatch table if the source is compiled with
20860 restriction No_Dispatching_Calls.
20861 (Override_Dispatching_Operation): Check for illegal attempt to override
20862 No_Return procedure with procedure that is not No_Return
20863 (Check_Dispatching_Call): Suppress the check for an abstract operation
20864 when the original node of an actual is a tag-indeterminate attribute
20865 call, since the attribute, which must be 'Input, can never be abstract.
20866 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20867 call to the Input attribute (even when rewritten).
20868 (Propagate_Tag): Augment comment to indicate the possibility of a call
20869 to an Input attribute.
20871 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20872 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20874 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20875 No_Wide_Characters is no longer partition-wide
20876 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20879 2006-02-13 Douglas Rupp <rupp@adacore.com>
20881 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20883 2006-02-13 Javier Miranda <miranda@adacore.com>
20885 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20886 handles default-initialized components to keep separate the management
20887 of this feature but also avoid the unrequired resolution and
20888 expansion of components that do not have partially initialized
20890 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20891 (Check_Bounds): Likewise.
20892 (Check_Length): Likewise.
20894 2006-02-13 Javier Miranda <miranda@adacore.com>
20895 Ed Schonberg <schonberg@adacore.com>
20897 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20898 abstract interface type call analyze_and_resolve to expand the type
20899 conversion into the corresponding displacement of the
20900 reference to the base of the object.
20901 (Eval_Attribute, case Width): For systems where IEEE extended precision
20902 is supported, the maximum exponent occupies 4 decimal digits.
20903 (Accessibility_Message): Add '\' in 2-line warning message.
20904 (Resolve_Attribute): Likewise.
20905 (case Attribute_Access): Significantly revise checks
20906 for illegal access-to-subprogram Access attributes to properly enforce
20907 the rules of 3.10.2(32/2).
20908 Diagnose use of current instance with an illegal attribute.
20910 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20912 (Enclosing_Generic_Unit): New function to return a node's innermost
20913 enclosing generic declaration node.
20914 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20915 (Type_Access_Level): The accessibility level of anonymous acccess types
20916 associated with discriminants is that of the current instance of the
20917 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20918 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20919 (Kill_Current_Values_For_Entity): New function
20920 (Enter_Name): Change formal type to Entity_Id
20922 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20923 Ed Schonberg <schonberg@adacore.com>
20924 Gary Dismukes <dismukes@adacore.com>
20926 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20927 Analyze_Compilation_Unit.
20928 Detect and warn on redundant with clauses detected in a package spec
20929 and/or body when -gnatwr is used.
20930 (Analyze_Context): Analyze config pragmas before other items
20931 (Install_Context_Items): Don't analyze config pragmas here
20932 (Install_Limited_Withed_Unit): Set limited entity of package in
20933 with_clause so that cross-reference information or warning messages on
20934 unused packages can be properly generated
20935 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20936 has Error_Posted set. Prevent infinite loops in illegal programs.
20937 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20938 to the point of the error test requiring the current unit to be private.
20939 This ensures that private with clauses are not exempted from the basic
20940 checking for being a descendant of the same library unit parent as a
20941 withed private descendant unit.
20942 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20943 handle private with clauses properly, as well as to account for cases
20944 where the withed unit is a public descendant of a private ancestor
20945 (in which case the current unit must be a descendant of the private
20946 ancestor's parent). The spec comments were updated accordingly. Also,
20947 the old error message in this subprogram was replaced with error
20948 messages that mirror the errors tested and reported by
20949 Check_Private_Child_Unit.
20950 Parameter and variable names improved for readability.
20951 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20952 private as the precondition for calling
20953 Check_Private_Limited_Withed_Unit since that subprogram has been
20954 revised to test public units as well as private units.
20956 2006-02-13 Thomas Quinot <quinot@adacore.com>
20957 Robert Dewar <dewar@adacore.com>
20958 Ed Schonberg <schonberg@adacore.com>
20959 Javier Miranda <miranda@adacore.com>
20961 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20962 that Scope_Stack.First = 1.
20963 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20964 were not always properly handled previously.
20965 (Formal_Entity): Complete rewrite, to handle properly some complex case
20966 with multiple levels of parametrization by formal packages.
20967 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20968 to the corresponding derived type declaration for proper semantics.
20970 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20971 (Check_Component): Enforce restriction on components of
20972 unchecked_unions: a component in a variant cannot contain tasks or
20974 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20976 Add pragma Ada_2005 (synonym for Ada_05)
20977 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20978 were not always properly handled previously.
20979 Document that pragma Propagate_Exceptions has no effect
20980 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20981 (Set_Convention_From_Pragma): Check that if a convention is
20982 specified for a dispatching operation, then it must be
20983 consistent with the existing convention for the operation.
20984 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20985 longer required to specify an vtable-ptr component in the record. For
20986 compatibility reasons we leave the support for the previous definition.
20987 (Analyze_Pragma, case No_Return): Allow multiple arguments
20989 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20990 non-overrideen inherited operation with a controlling result as
20991 illegal only its implicit declaration comes from the derived type
20992 declaration of its result's type.
20993 (Check_Possible_Deferred_Completion): Relocate the object definition
20994 node of the subtype indication of a deferred constant completion rather
20995 than directly analyzing it. The analysis of the generated subtype will
20996 correctly decorate the GNAT tree.
20997 (Record_Type_Declaration): Check whether this is a declaration for a
20998 limited derived record before analyzing components.
20999 (Analyze_Component_Declaration): Diagnose record types not explicitly
21000 declared limited when a component has a limited type.
21001 (Build_Derived_Record_Type): Code reorganization to check if some of
21002 the inherited subprograms of a tagged type cover interface primitives.
21003 This check was missing in case of a full-type associated with a private
21005 (Constant_Redeclaration): Check that the subtypes of the partial and the
21006 full view of a constrained deferred constant statically match.
21007 (Mentions_T): A reference to the current type in an anonymous access
21008 component declaration must be an entity name.
21009 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
21010 class_wide type to refer to full type, not to the incomplete one.
21011 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
21012 available. Required to give support to the certified run-time.
21013 (Analyze_Component_Declaration): In case of anonymous access components
21014 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
21015 (Process_Discriminants): For an access discriminant, use the
21016 discriminant specification as the associated_node_for_itype, to
21017 simplify accessibility checks.
21019 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21020 Javier Miranda <miranda@adacore.com>
21022 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
21023 abstract interpretations on an operator, remove interpretations that
21024 yield Address or a type derived from it, if one of the operands is an
21026 (Try_Object_Operation.Try_Primitive_Operation,
21027 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
21028 location when creating the new reference to a primitive or class-wide
21029 operation as a part of rewriting a subprogram call.
21030 (Try_Primitive_Operations): If context requires a function, collect all
21031 interpretations after the first match, because there may be primitive
21032 operations of the same type with the same profile and different return
21033 types. From code reading.
21034 (Try_Primitive_Operation): Use the node kind to choose the proper
21035 operation when a function and a procedure have the same parameter
21037 (Complete_Object_Operation): If formal is an access parameter and prefix
21038 is an object, rewrite as an Access reference, to match signature of
21039 primitive operation.
21040 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21041 by an expanded name with prefix Standard, when the operands are of an
21042 anonymous access type.
21043 (Remove_Abstract_Operations): If the operation is abstract because it is
21044 inherited by a user-defined type derived from Address, remove it as
21045 well from the set of candidate interpretations of an overloaded node.
21046 (Analyze_Membership_Op): Membership test not applicable to cpp-class
21049 2006-02-13 Bob Duff <duff@adacore.com>
21051 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21052 redundant use clauses.
21053 In particular, if the scope of two use clauses overlaps, but one is not
21054 entirely included in the other, we should not warn. This can happen
21055 with nested packages.
21056 (Analyze_Subprogram_Renaming): Protect the compiler against previously
21057 reported errors. The bug was reported when the compiler was built
21058 with assertions enabled.
21059 (Find_Type): If the node is a 'Class reference and the prefix is a
21060 synchronized type without a corresponding record, return the type
21063 2006-02-13 Javier Miranda <miranda@adacore.com>
21065 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21066 if this is the full-declaration associated with a private declaration
21067 that implement interfaces, then the private type declaration must be
21069 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21070 as aliased. The use of the 'access attribute is not available for such
21071 object (for this purpose the object should be explicitly marked as
21072 aliased, but being an anonymous type this is not possible).
21074 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21075 Robert Dewar <dewar@adacore.com>
21077 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21078 compilation unit is an elaboration scope.
21079 (Add_Task_Proc): Add '\' in 2-line warning message.
21080 (Activate_All_Desirable): Deal with case of unit with'ed by parent
21082 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21083 Javier Miranda <miranda@adacore.com>
21085 * sem_type.adb (Write_Overloads): Improve display of candidate
21087 (Add_One_Interp): Do not add to the list of interpretations aliased
21088 entities corresponding with an abstract interface type that is an
21089 immediate ancestor of a tagged type; otherwise we have a dummy
21090 conflict between this entity and the aliased entity.
21091 (Disambiguate): The predefined equality on universal_access is not
21092 usable if there is a user-defined equality with the proper signature,
21093 declared in the same declarative part as the designated type.
21094 (Find_Unique_Type): The universal_access equality operator defined under
21095 AI-230 does not cover pool specific access types.
21096 (Covers): If one of the types is a generic actual subtype, check whether
21097 it matches the partial view of the other type.
21099 2006-02-13 Thomas Quinot <quinot@adacore.com>
21101 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21102 line. This is necessary to allow In_Extended_Main_Unit to provide
21103 correct results for itypes while writing out expanded source.
21104 (Close_File): No need to update the source_index_table here since it's
21105 now done for each line.
21107 2006-02-13 Ed Schonberg <schonberg@adacore.com>
21108 Robert Dewar <dewar@adacore.com>
21110 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21111 preserve the source unit where the itype is declared, and prevent a
21113 (Note_Implicit_Run_Time_Call): New procedure
21114 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21117 * sprint.ads: Document use of $ for implicit run time routine call
21119 2006-02-13 Quentin Ochem <ochem@adacore.com>
21121 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21124 2006-02-13 Bob Duff <duff@adacore.com>
21126 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21127 Scan_Unsigned, so we do not scan leading blanks and sign twice.
21128 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21129 raise Constraint_Error.
21131 * s-vallli.adb (Scan_Long_Long_Integer): Call
21132 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21133 do not scan leading blanks and sign twice.
21134 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21135 raise Constraint_Error.
21137 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21138 Scan_Long_Long_Unsigned): Split out most of the processing from
21139 Scan_Long_Long_Unsigned out into
21140 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21141 This prevents scanning leading blanks and sign twice.
21142 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21145 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21146 out most of the processing from Scan_Unsigned out into
21147 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21148 This prevents scanning leading blanks and sign twice.
21150 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21151 use with Modular'Value attribute.
21152 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21155 2006-02-13 Robert Dewar <dewar@adacore.com>
21157 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21159 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21161 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21162 (PPC VxWorks): Likewise.
21163 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21164 (forced_callee): Make non-inlinable and non-pure.
21165 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21167 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21168 Ben Brosgol <brosgol@adacore.com>
21169 Robert Dewar <dewar@adacore.com>
21171 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21173 Document that gnatbind -M option is for cross environments only.
21174 Added description of using gnatmem to trace gnat rtl allocs and deallocs
21175 Add note on use of $ to label implicit run time calls
21176 Add documentation for -gnatyI (check mode IN)
21177 Updated chapter on compatibility with HP Ada
21178 VMS-oriented edits.
21179 Ran spell and corrected errors
21180 Add documentation for gnatbind -d and rework documentation of -D
21182 Add subprogram/data elimination section.
21183 Minor editing of annex A.
21184 Add section for gnatcheck.
21185 Add documentation for restriction No_Dispatching_Calls
21186 Add documentation for pragma Ada_2005
21187 Remove mention of obsolete pragma Propagate_Exceptions
21188 Document that pragma Unreferenced can appear after DO in ACCEPT
21189 Clarify Pure_Function for library level units
21190 Mention Max/Min in connection with No_Implicit_Conditionals
21191 No_Wide_Characters restriction is no longer partition-wide
21192 Add a nice example for Universal_Literal_String attribute
21193 Document that pragma No_Return can take multiple arguments
21195 * ug_words: Added entry for gnatcheck
21197 * g-ctrl_c.ads (Install_Handler): Enhance comments
21199 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21201 * g-trasym.ads: Add documentation on how to do off line symbolic
21202 traceback computation.
21204 * s-fatgen.adb: Add comments for Unaligned_Valid
21206 * stand.ads: Fix typo in comment
21208 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21210 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21212 2006-02-06 Roger Sayle <roger@eyesopen.com>
21214 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21216 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21219 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21220 implementation that calls __main.
21222 2006-01-25 Peter O'Gorman <peter@pogma.com>
21225 * Makefile.in (GCC_LINK): Remove quotes.
21226 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21229 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21231 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21234 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21236 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21238 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21240 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21242 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21245 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21247 * Make-lang.in: Update dependencies
21249 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21251 * Make-lang.in: Add rule for ada/exp_sel.o
21253 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21255 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21257 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21259 * gnatvsn.ads (Library_Version): Bump to version 4.2
21260 (ASIS_Version_Number): Bumped.
21262 2005-12-09 Doug Rupp <rupp@adacore.com>
21264 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21265 Ada bind file prefix on VMS from b$ to b__.
21266 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21269 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21270 Targparm.OpenVMS_On_Target.
21271 (Object_Suffix): Initialize with target object suffix.
21272 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21274 * butil.adb: Change some Hostparm.OpenVMS checks to
21275 Targparm.OpenVMS_On_Target.
21277 * clean.adb: Change some Hostparm.OpenVMS checks to
21278 Targparm.OpenVMS_On_Target.
21279 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21280 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21281 Ada bind file prefix on VMS from b$ to b__.
21283 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21284 --GCC so that Get_Target_Parameters can find system.ads.
21285 (Gnatlink): Call Get_Target_Parameters in mainline.
21286 Initialize standard packages for Targparm.
21287 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21288 (Process_Args): Also Check for object files with target object
21290 (Make_Binder_File_Names): Create with target object extension.
21291 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21294 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21295 Targparm.OpenVMS_On_Target.
21296 ({declaration},Build_Library,Check_Library): Change Ada bind file
21297 prefix on VMS from b$ to b__.
21299 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21300 Targparm.OpenVMS_On_Target.
21301 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21304 * targext.c: New file.
21306 * Makefile.in: add support for vxworks653 builds
21307 (../../vxaddr2line): gnatlink with targext.o.
21308 (TOOLS_LIBS): Move targext.o to precede libgnat.
21309 (init.o, initialize.o): Minor clean up in dependencies.
21310 (GNATLINK_OBJS): Add targparm.o, snames.o
21311 Add rules fo building targext.o and linking it explicitly with all
21313 Also add targext.o to gnatlib.
21315 * Make-lang.in: Add rules for building targext.o and linking it in
21316 with gnat1 and gnatbind.
21317 Add entry for exp_sel.o.
21319 * osint.adb Change some Hostparm.OpenVMS checks to
21320 Targparm.OpenVMS_On_Target.
21321 (Object_File_Name): Use target object suffix.
21323 * osint.ads (Object_Suffix): Remove, no longer used.
21324 (Target_Object_Suffix): Initialize with target object suffix.
21326 * rident.ads: Add special exception to license.
21328 * targparm.adb (Get_Target_Parameters): Set the value of
21329 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21331 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21333 * targparm.ads: Add special exception to license.
21335 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21337 (Copy_File): Make sure from file is closed if error on to file
21338 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21340 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21341 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21343 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21344 target object suffix.
21346 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21347 Quentin Ochem <ochem@adacore.com>
21348 Florian Villoing <villoing@adacore.com>
21350 * a-taster.ads, a-taster.adb: New files.
21352 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21353 link to the version that does nothing. This way the task termination
21354 routine is not executed twice for the environment task when finishing
21355 because of an unhandled exception.
21357 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21358 handler because of an unhandled exception.
21360 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21361 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21363 * s-finimp.adb (initialization code): Modify the soft link for the
21364 finalization of the global list instead of Adafinal.
21366 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21367 non-tasking version of the soft link for task termination. We do
21368 nothing since if we are using the non-tasking version it
21369 means that the task termination functionality is not used.
21370 (Null_Finalize_Global_List): Add this null version for the procedure
21371 in charge of finalizing the global list for controlled objects.
21372 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21373 instead for handling run-time termination in a more flexible way.
21374 (Adafinal_NT): This new procedure will take care of finalizing the
21375 global list for controlled objects if needed, but no tasking
21378 * s-tarest.adb (Task_Lock): Do not try to lock again the
21379 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21380 some run-time operations.
21381 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21382 until all nested locks have been released.
21383 (Task_Wrapper): Call the fall-back task termination handler. It
21384 applies to all tasks but the environment task.
21385 (Finalize_Global_Tasks): Add the call for the task termination
21386 procedure for the environment task.
21387 (Task_Wrapper): suppress warnings around declaration of
21388 Secondary_Stack_Address.
21390 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21391 moved to the Common_ATCB record.
21392 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21393 Common_ATCB record.
21394 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21395 Common_ATCB record.
21397 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21398 Fall_Back_Handler, and Specific_Handler.
21400 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21401 defined in Ada.Task_Termination, to avoid circular dependencies.
21402 (Termination_Handler): Redefine this type here, alredy defined in
21403 Ada.Task_Termination, for avoiding circular dependencies.
21404 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21405 for storing task termination handlers. In addition,
21406 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21407 Common_ATCB because it is used by both the regular and the restricted
21409 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21410 Common_ATCB because it is used by both the regular and the restricted
21412 (Common_ATCB): Added a dynamic task analyzer field.
21414 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21415 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21416 (Task_Wrapper): Call the task termination handler. It applies to all
21417 tasks but the environment task.
21418 (Finalize_Global_Tasks): Call the task termination procedure for the
21419 environment task. The call to Finalize_Global_List is now performed
21420 using the soft links mechanism.
21421 (Task_Wrapper): added dynamic stack analysis.
21423 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21424 potentially blocking operations has been moved from
21425 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21426 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21427 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21428 this run-time check.
21430 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21431 of task termination procedure.
21432 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21433 link for the task termination procedure.
21435 * bindusg.adb: (Bindusg): Added documentation for -u option.
21437 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21438 (Get_Main_C): Add handling of dynamic stack analysis.
21439 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21441 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21442 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21443 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21445 * opt.ads: Added flags used by dynamic stack measurement.
21446 (Max_Line_Length): Remove (not used anymore)
21448 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21449 (Standart_Output): new subprogram
21450 (Set_Output): new subprogram
21451 (Put): now uses the value of Current_Out to know if the output has to be
21452 send to stderr or stdout.
21454 * s-stausa.ads: Complete implementation.
21456 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21458 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21459 list of Ada 05 files.
21460 (GNAT Library Units): Add AltiVec files.
21462 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21463 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21464 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21466 2005-12-09 Nicolas Setton <setton@adacore.com>
21468 * adaint.c (__gnat_locate_regular_file): Return immediately if
21469 file_name is empty.
21471 2005-12-09 Javier Miranda <miranda@adacore.com>
21472 Hristian Kirtchev <kirtchev@adacore.com>
21474 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21475 to the specification because the frontend generates code that uses this
21477 (Set_Interface_Table): Add missing assertion.
21478 Update documentation describing the run-time structure.
21479 (Displace): New subprogram that displaces the pointer to the object
21480 to reference one of its secondary dispatch tables.
21481 (IW_Membership): Modified to use the new table of interfaces.
21482 (Inherit_TSD): Modified to use the new table of interfaces.
21483 (Register_Interface_Tag): Use the additional formal to fill the
21484 contents of the new table of interfaces.
21485 (Set_Interface_Table): New subprogram that stores in the TSD the
21486 pointer to the table of interfaces.
21487 (Set_Offset_To_Top): Use the additional formal to save copy of
21488 the offset value in the table of interfaces.
21489 Update structure of GNAT Primary and Secondary dispatch table diagram.
21490 Add comment section on GNAT dispatch table prologue.
21491 (Offset_To_Signature): Update the constant value of the Signature field.
21492 (Dispatch_Table): Update comment on hidden fields in the prologue.
21493 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21494 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21495 the type of formal parameter T to Tag, introduce additional assertions.
21496 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21498 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21500 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21501 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21502 record component containing the tag of the secondary dispatch table we
21503 have to use the Offset_To_Top run-time function to get this information;
21504 otherwise if the pointer to the base of the object has been displace
21505 we get a wrong value if we use the 'position attribute.
21507 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21508 all the calls to Expand_Interface_Thunk.
21509 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21510 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21511 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21512 ensure that the interfaces implemented by the ancestors are placed
21513 at the header of the generated list.
21514 (Expand_Interface_Conversion): Handle the case in which the displacement
21515 associated with the interface conversion is not statically known. In
21516 this case we generate a call to the new run-time subprogram Displace.
21517 (Make_DT): Generate and fill the new table of interfaces.
21518 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21519 Get_Tagged_Kind and Set_Tagged_Kind.
21520 (Tagged_Kind): New function that determines the tagged kind of a type
21521 with respect to limitedness and concurrency and returns a reference to
21523 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21524 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21525 primary dispatch table for a type.
21526 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21527 secondary dispatch table respectively of a tagged type.
21529 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21530 (Expand_Interface_Conversion): New subprogram to indicate if the
21531 displacement of the type conversion is statically known.
21532 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21534 * rtsfind.ads (RE_Offset_To_Top): New entity
21535 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21536 accessible to users.
21537 (Re_Displace): New entity
21538 (RE_Interface_Data): New entity
21539 (RE_Set_Interface_Data): New_Entity
21540 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21541 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21542 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21543 RE_TK_Tagged, RE_TK_Task.
21545 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21546 Init_Secondary_Tags_Internal to allow its use with interface types and
21547 also to generate the code for the new additional actual required
21548 by Set_Offset_To_Top.
21549 (Build_Init_Statements): In case of components associated with abstract
21550 interface types there is no need to generate a call to its IP.
21551 (Freeze_Record_Type): Generate Select Specific Data tables only for
21553 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21554 the bodies and specifications of the predefined primitive operations
21555 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21556 for concurrent types.
21558 * exp_sel.ads, exp_sel.adb: New files.
21560 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21561 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21562 properly protected objects and attach handler in the case of the
21563 restricted profile.
21564 Move embeded package Select_Expansion_Utilities into a separate external
21566 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21567 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21568 (Build_K, Build_S_Assignment): New subprograms, part of the select
21569 expansion utilities.
21570 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21571 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21572 where the trigger is a dispatching procedure of a limited tagged type.
21574 2005-12-09 Olivier Hainque <hainque@adacore.com>
21576 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21577 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21578 about the use and expansion of SAVE_EXPRs in the various possible
21579 renaming handling cases.
21580 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21581 abusing DECL_FCONTEXT.
21583 2005-12-09 Matthew Heaney <heaney@adacore.com>
21585 * a-convec.adb (Merge): Added assertions to check whether vector params
21588 * a-coinve.adb (Merge): Added assertions to check whether vector params
21591 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21593 (Cursor'Read): raises PE
21595 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21596 to its default value.
21598 * a-cihama.adb: Manually check whether cursor's key and elem are
21601 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21602 (Merge): Assert that target and source lists are in order
21603 (Swap): Declare non-const temporaries, to pass to Splice
21605 * a-cdlili.ads: (Splice): Changed param name and param mode
21607 * a-cdlili.adb: (Splice): Changed param name and param mode
21608 (Merge): Assert that target and source lists are in order
21609 (Swap): Declare non-const temporaries, to pass to Splice
21611 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21612 (Write): declare Stream param as not null
21614 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21615 an exception message.
21617 2005-12-09 Thomas Quinot <quinot@adacore.com>
21618 Robert Dewar <dewar@adacore.com>
21620 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21621 which is the absolute maximum length we can support.
21623 * frontend.adb: For the processing of configuration pragma files,
21624 remove references to Opt.Max_Line_Length, which is not checked anymore.
21626 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21629 * scn.adb, scng.adb:
21630 Always check line length against the absolute supported maximum,
21631 Hostparm.Max_Line_Length.
21633 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21634 value for the maximum line length is Max_Line_Length (not
21635 Column_Number'Last).
21636 Minor error msg update
21637 (Set_Style_Check_Options): New interface returning error msg
21638 Minor code reorganization (processing for 'M' was out of alpha order)
21640 * switch-c.adb: New interface for Set_Style_Check_Options
21642 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21645 2005-12-09 Javier Miranda <miranda@adacore.com>
21647 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21648 with IP subprogram were only supported if there were limited types.
21650 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21651 records with IP subprogram were only supported if there were limited
21654 2005-12-09 Olivier Hainque <hainque@adacore.com>
21655 Eric Botcazou <ebotcazou@adacore.com>
21657 * trans.c (tree_transform, emit_check): Adjust calls to
21658 build_call_raise, passing the now expected GNAT_NODE argument.
21660 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21661 source line information than what the current global locus indicates
21664 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21665 field has overflowed.
21666 (build_call_raise): Add a GNAT_NODE argument to convey better source
21667 line information than what the current global locus indicates when
21669 (build_component_ref): Adjust call to build_call_raise.
21671 2005-12-09 Pascal Obry <obry@adacore.com>
21673 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21674 the iterator is quitting iteration on parent directory.
21676 2005-12-09 Javier Miranda <miranda@adacore.com>
21678 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21679 and the assignment to a class-wide object, before the assignment we
21680 generate a run-time check to ensure that the tag of the Target is
21681 covered by the tag of the source.
21683 2005-12-09 Robert Dewar <dewar@adacore.com>
21685 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21686 parameter in call to Image_Wide_Character.
21688 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21689 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21690 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21691 annoying FFFE/FFFF inconsistency.
21693 2005-12-09 Robert Dewar <dewar@adacore.com>
21694 Javier Miranda <miranda@adacore.com>
21695 Ed Schonberg <schonberg@adacore.com>
21697 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21698 of type conversion.
21699 (Find_Interface): New subprogram that given a tagged type and one of its
21700 component associated with the secondary table of an abstract interface
21701 type, return the entity associated with such abstract interface type.
21702 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21703 base type to create anonymous subtype, because entity may be a locally
21704 declared subtype or generic actual.
21705 (Find_Interface): New subprogram that given a tagged type and one of its
21706 component associated with the secondary table of an abstract interface
21707 type, return the entity associated with such abstract interface type.
21709 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21710 conversion cannot be handled at compile time. In this case we pass this
21711 information to the expander to generate the appropriate code.
21713 2005-12-09 Robert Dewar <dewar@adacore.com>
21714 Ed Schonberg <schonberg@adacore.com>
21715 Gary Dismukes <dismukes@adacore.com>
21716 Javier Miranda <miranda@adacore.com>
21717 Hristian Kirtchev <kirtchev@adacore.com>
21719 * einfo.adb (Itype_Printed): New flag
21720 (Is_Limited_Type): Derived types do not inherit limitedness from
21721 interface progenitors.
21722 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21725 * einfo.ads (Itype_Printed): New flag
21726 Move Is_Wrapper_Package to proper section
21727 Add missing Inline for Is_Volatile
21729 * output.ads, output.adb (Write_Erase_Char): New procedure
21730 (Save/Restore_Output_Buffer): New procedures
21731 (Save/Restore_Output_Buffer): New procedures
21733 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21734 Add missing support for anonymous access type
21735 (Write_Id): Insert calls to Write_Itype
21736 (Write_Itype): New procedure to output itypes
21738 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21739 use of "limited" in declaration.
21741 * sinfo.ads, sinfo.adb:
21742 Formal derived types can carry an explicit "limited" indication.
21744 * sem_ch3.adb: Add with and use of Targparm.
21745 (Create_Component): If Frontend_Layout_On_Target is True and the
21746 copied component does not have a known static Esize, then reset
21747 the size and positional fields of the new component.
21748 (Analyze_Component_Declaration): A limited component is
21749 legal within a protected type that implements an interface.
21750 (Collect_Interfaces): Do not add to the list the interfaces that
21751 are implemented by the ancestors.
21752 (Derived_Type_Declaration): If the parent of the full-view is an
21753 interface perform a transformation of the tree to ensure that it has
21754 the same parent than the partial-view. This simplifies the job of the
21755 expander in order to generate the correct object layout, and it is
21756 needed because the list of interfaces of the full-view can be given in
21758 (Process_Full_View): The parent of the full-view does not need to be
21759 a descendant of the parent of the partial view if both parents are
21761 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21762 "limited" the parent must be a limited type.
21763 (Build_Derived_Record_Type): A derived type that is explicitly limited
21764 must have limited ancestor and progenitors.
21765 (Build_Derived_Type): Ditto.
21766 (Process_Full_View): Verify that explicit uses of "limited" in partial
21767 and full declarations are consistent.
21768 (Find_Ancestor_Interface): Remove function.
21769 (Collect_Implemented_Interfaces): New procedure used to gather all
21770 implemented interfaces by a type.
21771 (Contain_Interface): New function used to check whether an interface is
21773 (Find_Hidden_Interface): New function used to determine whether two
21774 lists of interfaces constitute a set equality. If not, the first
21775 differing interface is returned.
21776 (Process_Full_View): Improve the check for the "no hidden interface"
21777 rule as defined by AI-396.
21779 2005-12-09 Robert Dewar <dewar@adacore.com>
21781 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21782 types, not on record subtypes.
21783 (Freeze_Entity): Code cleanup. Add barrier to the loop
21784 that generates the references for primitive operations. This allows to
21785 remove an unnecessary exception handler.
21786 Code reformatting and comment clean ups.
21788 2005-12-09 Vincent Celier <celier@adacore.com>
21790 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21791 If GNAT CHECK is called with a project file, but with no
21792 source on the command line, call gnatcheck with all the compilable
21793 sources of the project.
21794 Take into account the new command Check, for gnatcheck. Treat as for
21795 other ASIS tools: take into account project, specific package Check and
21797 For ASIS tools, add the switches in package Compiler for
21798 the invocation of the compiler.
21800 * prj-attr.adb: Add package Check and its attributes
21802 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21804 * vms_conv.adb (Initialize): Change Params of command Check to
21806 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21807 Add data for new command Check
21809 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21811 Add qualifiers for Check command options
21812 (Command_Type): New command Check
21814 2005-12-09 Thomas Quinot <quinot@adacore.com>
21816 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21817 command line switch overruns the output buffer.
21819 2005-12-09 Robert Dewar <dewar@adacore.com>
21821 * sem_prag.adb: Processing for new pragma Complete_Representation
21822 (Analyze_Pragma, case Debug): Implement two argument form.
21824 * par-prag.adb: Entry for new pragma Complete_Representation
21825 (Prag, case Debug): Recognize two argument form of pragma Debug
21826 New interface for Set_Style_Check_Options.
21828 * sem_ch13.adb: Implement new pragma Complete_Representation.
21830 * snames.adb, snames.ads, snames.h: Entry for new pragma
21831 Complete_Representation.
21833 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21835 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21836 available user-specified stream attributes on limited parameters to
21837 also test the type directly rather than only its underlying type (for
21838 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21839 attributes are visible at the point of the subprogram declaration.
21840 For Ada 2005, the error message is modified to indicate that the
21841 type's stream attributes must be visible (again, only for -gnat05).
21843 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21845 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21846 anonymous access types.
21848 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21849 matching of anonymous access types and anonymous access to subprogram
21850 types. 'R'M 4.9.1 (2/2).
21852 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21854 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21855 rule prematurely when operands are universal, remaining ambiguities
21856 will be removed during resolution.
21859 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21860 that are Ada 2005 functions.
21861 (Has_Abstract_Interpretation): Subsidiary to
21862 Remove_Conversions, to remove ambiguities caused by abstract operations
21863 on numeric types when operands are universal.
21865 2005-12-09 Robert Dewar <dewar@adacore.com>
21867 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21868 for case where spec is categorized.
21870 2005-12-09 Javier Miranda <miranda@adacore.com>
21872 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21873 types use the corresponding record type. This was not needed before
21874 the implementation of Ada 2005 synchronized types because
21875 concurrent types were never tagged types in Ada 95.
21877 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21879 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21880 first subtype of the type of the expression to verify that it is a
21883 2005-12-09 Robert Dewar <dewar@adacore.com>
21885 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21888 2005-12-09 Quentin Ochem <ochem@adacore.com>
21889 Robert Dewar <dewar@adacore.com>
21890 Ed Falis <falis@adacore.com>
21891 Florian Villoing <villoing@adacore.com>
21892 Thomas Quinot <quinot@adacore.com>
21893 Arnaud Charlet <charlet@adacore.com>
21895 * gnat_ugn.texi: Created section "Stack Related Tools"
21896 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21897 "Stack Related Tools"
21898 Added subsection "Static Stack Usage Analysis"
21899 Added subsection "Dynamic Stack Usage Analysis"
21900 Include documentation of itypes in sprint listing (-gnatG)
21901 Documented gnatbind -D switch (default sec stack size for fixed sec
21903 Added Interrupt_State and Persistent_BSS to list of configuration
21905 Add missing doc for maximum value of nnn in -gnatyMnnn
21907 * gnat_rm.texi: Document the AltiVec binding.
21908 Add documentation for pragma Complete_Representation
21909 Shortened an overly long line (> 79 chars)
21910 Clarify documentation of unchecked conversion in implementation
21912 Document two argument form of pragma Debug
21914 * types.ads (Column_Number): Update documentation.
21916 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21917 library level Finalize_Storage_Only objects (these are not attached to
21918 any finalization list).
21920 * system-mingw.ads: (Underlying_Priorities): Update comment.
21922 2005-12-09 Robert Dewar <dewar@adacore.com>
21924 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21925 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21926 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21927 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21928 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21929 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21930 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21931 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21934 2005-12-09 Robert Dewar <dewar@adacore.com>
21936 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21937 (Ne_G): New function
21939 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21940 for tag assignment.
21941 (Rewrite_Comparison): Handle case where operation is not a comparison
21942 and ignore, and also handle type conversion case.
21944 2005-12-09 Thomas Quinot <quinot@adacore.com>
21946 * exp_aggr.ads: Fix typo in comment.
21947 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21949 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21951 * layout.adb: Replace various uses of byte by storage unit throughout.
21952 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21953 static size, convert to storage units before returning, to conform to
21956 2005-12-09 Matthew Gingell <gingell@adacore.com>
21958 * g-exctra.ads: Fix typo in comment.
21960 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21962 * utils.c: Minor reformatting.
21964 2005-12-09 Robert Dewar <dewar@adacore.com>
21967 Further comment fixes to make the status of the default file clear
21969 * s-bitops.adb: Clarify comment for Bits_Array
21971 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21973 * Make-lang.in (ada.install-normal): Remove.
21975 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21977 * Make-lang.in: Remove all dependencies on s-gtype.
21979 2005-12-05 Richard Guenther <rguenther@suse.de>
21981 * utils.c (convert): Use fold_convert where appropriate.
21983 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21985 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21988 2005-12-02 Richard Guenther <rguenther@suse.de>
21990 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21992 2005-12-01 Roger Sayle <roger@eyesopen.com>
21994 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21997 2005-11-23 Laurent Guerby <laurent@guerby.net>
21999 * mlib-prj.adb (Build_Library): Initialize Delete.
22001 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
22003 * socket.c: Add extern int h_errno for rtems since networking header
22004 files are not available at this point in a tool bootstrap. Newlib
22005 only has basic C library header files.
22007 2005-11-19 Richard Guenther <rguenther@suse.de>
22008 Roger Sayle <roger@eyesopen.com>
22011 * misc.c (internal_error_function): Don't use vsprintf to format
22012 the error message text, instead use pp_format_text and the new
22013 pretty printer APIs. This allows handling of %qs, %w, etc.
22015 2005-11-18 Laurent Guerby <laurent@guerby.net>
22018 * Makefile.in: Use s-auxdec-empty for RTEMS.
22020 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22023 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
22024 a temporary if taking the address of something that is neither
22025 reference, declaration, or constant, since the gimplifier
22026 can't handle that case.
22028 2005-11-17 Laurent Guerby <laurent@guerby.net>
22031 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
22033 2005-11-16 Richard Guenther <rguenther@suse.de>
22035 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
22037 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
22040 * raise-gcc.c: Add missing stdarg.h include.
22042 2005-11-16 Richard Guenther <rguenther@suse.de>
22044 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22045 (ada/misc.o): Likewise.
22047 2005-11-14 Thomas Quinot <quinot@adacore.com>
22049 * g-soccon.ads: Minor reformatting. Update comments.
22051 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22052 gain visibility on the declaration of struct timeval.
22054 * g-soccon-freebsd.ads,
22055 g-soccon-darwin.ads,
22056 g-soccon-tru64.ads,
22060 g-soccon-solaris.ads,
22062 g-soccon-mingw.ads,
22063 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22065 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22066 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22067 g-soccon-linux-x86.ads: New files.
22069 * g-socthi-mingw.adb:
22070 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22072 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22073 (time_t, suseconds_t): New types constructed to match the tv_sec
22074 and tv_usec fields of C struct timeval.
22075 (Timeval): Construct structure in terms of the new types.
22076 (Host_Errno): New function (imported from socket.c), returns last hosts
22079 * g-socthi-vxworks.adb: Add error handling circuitry.
22081 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22082 components of struct timeval.
22083 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22084 (Check_Selector): In error conditions, clear internal socket sets to
22085 avoid a memory leak.
22086 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22087 Send_Timeout, Receive_Timeout.
22089 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22090 the tv_sec and tv_usec fields of C struct timeval.
22091 (Timeval): Construct structure in terms of the new types.
22092 (Host_Errno): New function (imported from socket.c), returns last hosts
22095 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22096 hosts database last error code.
22098 * gen-soccon.c: Complete value expansion should not be performed on
22099 TARGET, as it has the form of a math expression, and some components
22100 may be platform-defined macros.
22101 For VxWorks, generate the OK and ERROR values.
22102 New constants giving the sizes of the components of C struct timeval.
22104 2005-11-14 Robert Dewar <dewar@adacore.com>
22105 Ed Schonberg <schonberg@adacore.com>
22108 * types.ads: Include All_Checks in Suppress_Array
22110 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22111 not(a=b), since we no longer do this rewriting, and hence it is not
22113 (Elaboration_Checks_Suppressed): Add special casing to
22114 deal with different cases of static and dynamic elaboration checks (all
22115 checks does not count in the first case, but does in the second).
22116 (Expr_Known_Valid): Do not assume that the result of any arbitrary
22117 function call is valid, since this is not the case.
22118 (Ensure_Valid): Do not apply validity check to a real literal
22119 in a universal or fixed context
22121 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22122 elementary types using the operator in standard. It is cleaner not to
22123 modify the programmers intent, especially in the case of floating-point.
22124 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22125 it did not matter because we always rewrote a/=b to not(a=b).
22126 (Expand_Allocator_Expression): For an allocator expression whose nominal
22127 subtype is an unconstrained packed type, convert the expression to its
22128 actual constrained subtype.
22129 Implement warning for <= or >= where < or > not possible
22130 Fix to Vax_Float tests (too early in many routines, causing premature
22131 Vax_Float expansions.
22133 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22134 to be used with packages and generic packages as well as with
22136 (Suppress): Set All_Checks, but not Elaboration_Check, for case
22137 of pragma Suppress (All_Checks)
22138 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22139 a string literal for precise control over warnings.
22140 Avoid raise of pragma in case of unrecognized pragma and just return
22143 * sem_prag.ads: Minor reformatting
22145 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22146 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22147 Switch. Do not handle any exception.
22148 Include -gnatwx as part of -gnatg (warn on redundant parens)
22149 Allow optional = after -gnatm
22150 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22151 longer sets Elaboration_Checks.
22152 Code to set warning mode moved to Sem_Warn
22153 so that it can be shared by pragma processing.
22155 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22158 * s-taprop-solaris.adb:
22159 Change some <= to =, to avoid new warning
22161 * a-exexda.adb, prj-proc.adb:
22162 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22163 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22165 2005-11-14 Robert Dewar <dewar@adacore.com>
22167 * exp_vfpt.adb: Handle /= case
22168 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22169 so that we do not get duplicate scaling for fixed point conversions.
22171 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22173 2005-11-14 Matthew Gingell <gingell@adacore.com>
22175 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
22176 Increase default priority on Lynx from 15 to 17, and meet the Ada
22177 requirement that Default_Priority be ((Priority'First +
22178 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22180 2005-11-14 Vincent Celier <celier@adacore.com>
22182 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22183 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22184 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22185 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22186 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22187 mlib-tgt-lynxos.adb (DLL_Prefix): New function
22189 2005-11-14 Doug Rupp <rupp@adacore.com>
22191 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22194 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22196 * s-traces-default.adb, s-trafor-default.ads,
22197 s-tratas-default.adb: Fix compilation errors.
22199 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22201 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22202 raising the exception so the memory used is freed.
22204 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22206 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22207 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22208 (convert_address): Update comments and list of platforms using this.
22210 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22213 2005-11-14 Pascal Obry <obry@adacore.com>
22214 Vincent Celier <celier@adacore.com>
22216 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22219 * memroot.adb: Remove redundant with/use clause on
22220 System.Storage_Elements.
22222 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22224 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22225 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22226 related code to a-exexpr.adb
22227 (Save_Occurrence_And_Private): Move GCC EH related code to
22229 (Raise_Current_Excep): Add new variable Id with pragma
22230 volatile, to ensure that the variable lives on stack.
22232 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22234 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22236 Move GCC EH related code to a-exexpr-gcc.adb
22238 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22240 Split the Linux version of g-soccon into separate variants for 32 and 64
22242 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22243 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22244 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22245 of host variable $(RANLIB_FLAGS).
22246 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22247 Code clean up: remove unused/obsolete targets.
22248 (EH_MECHANISM): New variable introduced to differenciate between the
22249 two EH mechanisms statically.
22250 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22251 (LIBGNAT_OBJS): Add raise-gcc.o
22252 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22253 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22254 supports VxWorks 6 RTPs.
22255 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22256 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22258 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22260 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22262 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22263 deferral level, when abort is not allowed, to a later stage (the
22265 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22266 it will not get changed by the generated code. It was previously done
22269 2005-11-14 Thomas Quinot <quinot@adacore.com>
22270 Olivier Hainque <hainque@adacore.com>
22271 Eric Botcazou <ebotcazou@adacore.com>
22274 Factor common code to build a storage type for an unconstrained object
22275 from a fat or thin pointer type and a constrained object type.
22276 (annotate_value): Handle BIT_AND_EXPR.
22277 (annotate_rep): Don't restrict the back annotation of inherited
22278 components to the type_annotate_only case.
22279 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22280 we are not defining the type.
22281 <E_Record_Type>: Likewise.
22282 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22283 to get advantage of the new maybe_stabilize_reference interface, to
22284 ensure that what we reference is indeed stabilized instead of relying
22285 on assumptions on what the stabilizer does.
22286 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22287 type imported through a limited_with clause, use its non-limited view.
22288 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22290 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22291 of #if sections + explicit comparisons of convention identifiers.
22292 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22293 before early-returning for certain types when code generation is
22295 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22296 nullification of gnu_expr we do for objects with address clause and
22297 that we are not defining.
22298 (elaborate_expression_1): Do not create constants when creating
22299 variables needed by the debug info: the dwarf2 writer considers that
22300 CONST_DECLs is used only to represent enumeration constants, and emits
22302 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22303 object with an address clause into an indirect reference, drop the
22304 initializing expression.
22306 (STACK_CHECK_BUILTIN): Delete.
22307 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22308 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22309 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22310 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22311 corresponding to the renamed object as ignored for debugging purposes.
22313 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22314 related): For a prefix that is a dereference of a fat or thin pointer,
22315 if there is an actual subtype provided by the front-end, use that
22316 subtype to build an actual type with bounds template.
22317 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22318 is provided by the front-end, use that subtype to compute the size of
22319 the deallocated object.
22320 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22321 check for a potential violation of a No_Elaboration_Code restriction.
22322 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22323 with extra arguments to control whether to recurse through non-values
22324 and to let the caller know if the stabilization has succeeded.
22325 (gnat_stabilize_reference): Now a simple wrapper around
22326 maybe_stabilize, for common uses without restriction on lvalues and
22327 without need to check for the success indication.
22328 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22329 pass false instead of 0 as the FORCE argument which is a bool.
22330 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22331 attached to a renaming pointer has been properly stabilized, as no such
22332 object is attached otherwise.
22333 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22334 function uses the "target pointer" return mechanism.
22335 Reinstate conversion of the actual to the type of the formal
22336 parameter before any other specific treatment based on the passing
22337 mechanism. This turns out to be necessary in order for PLACEHOLDER
22338 substitution to work properly when the latter type is unconstrained.
22340 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22342 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22343 with extra arguments to control whether to recurse through non-values
22344 and to let the caller know if the stabilization has succeeded.
22346 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22347 static output of record constructor if all the components are constant.
22348 (gnat_build_constructor): For a record type, sort the list of field
22349 initializers in increasing bit position order.
22350 Factor common code to build a storage type for an unconstrained object
22351 from a fat or thin pointer type and a constrained object type.
22352 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22353 types variants, and process special cases of VIEW_CONVERT expressions
22354 as their NOP_EXPR counterpart to ensure we get to the
22355 CORRESPONDING_VARs associated with CONST_DECls.
22356 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22357 on the right-hand side.
22359 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22361 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22362 are converting back to its original type.
22363 (convert) <JM input>: Fallthrough regular conversion code instead of
22364 extracting the object if converting to a type variant.
22365 (create_var_decl): When a variable has an initializer requiring code
22366 generation and we are at the top level, check for a potential violation
22367 of a No_Elaboration_Code restriction.
22368 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22369 SIZE and SIZE_UNIT which we need for later back-annotations.
22370 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22371 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22372 is an unchecked union.
22373 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22374 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22375 main variant, just replace the VIEW_CONVERT_EXPR.
22376 <UNION_TYPE>: Revert 2005-03-02 change.
22378 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22380 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22382 2005-11-14 Matthew Heaney <heaney@adacore.com>
22384 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22385 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22386 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22387 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22388 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22389 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22390 Compiles against the spec for ordered maps described in sections
22391 A.18.6 of the most recent (August 2005) AI-302 draft.
22393 2005-11-14 Olivier Hainque <hainque@adacore.com>
22395 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22396 to ensure bias adjustments take place when need be and to prevent
22397 occurrences of intermediate overflows.
22399 2005-11-14 Matthew Gingell <gingell@adacore.com>
22400 Olivier Hainque <hainque@adacore.com>
22402 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22405 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22406 tracebacks on ia64 HP-UX and provide explanatory comment.
22407 Enable backtraces on ia64 GNU/Linux.
22408 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22409 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22411 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22412 Javier Miranda <miranda@adacore.com>
22414 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22415 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22416 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22417 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22419 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22420 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22423 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22424 subprogram that generates the external name associated with a
22425 secondary dispatch table.
22426 (Get_Secondary_DT_External_Name): New subprogram that generates the
22427 external name associated with a secondary dispatch table.
22429 2005-11-14 Emmanuel Briot <briot@adacore.com>
22431 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22432 line in the ALI file to include both an instantiation reference, and a
22435 2005-11-14 Vincent Celier <celier@adacore.com>
22437 * clean.adb (Check_Project): Look for Ada code in extending project,
22438 even if Ada is not specified as a language.
22439 Use new function DLL_Prefix for DLL_Name
22440 (Clean_Interface_Copy_Directory): New procedure
22441 (Clean_Library_Directory): New procedure
22442 (Clean_Directory): Remove procedure, no longer used
22443 (Clean_Project): Do not delete any file in an externally built project
22445 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22446 directory of an extending project, even when there are no Ada source
22448 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22449 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22451 * mlib-prj.adb (Check_Library): For all library projects, get the
22452 library file timestamp.
22453 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22454 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22455 (Clean): Remove procedure, no longer used
22456 (Ultimate_Extension_Of): New function
22457 (Build_Library): When cleaning the library directory, only remove an
22458 existing library file and any ALI file of a source of the project.
22459 When cleaning the interface copy directory, remove any source that
22460 could be a source of the project.
22462 * prj.ads, prj.adb (Project_Empty): Add values of new components
22463 Library_TS and All_Imported_Projects.
22464 (Project_Empty): Add values for new components of Project_Data:
22465 Library_ALI_Dir and Display_Library_ALI_Dir
22467 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22469 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22470 attribute Library_ALI_Dir.
22471 (Check_Library_Attributes): The library directory cannot be the same as
22472 any source directory of the project tree.
22473 (Check_Stand_Alone_Library): The interface copy directory cannot be
22474 the same as any source directory of the project tree.
22476 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22477 all temporary files.
22479 2005-11-14 Robert Dewar <dewar@adacore.com>
22480 Ed Schonberg <schonberg@adacore.com>
22482 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22483 (Check_Elab_Call): A call within a protected body is never an
22484 elaboration call, and does not require checking.
22485 (Same_Elaboration_Scope): Take into account protected types for both
22487 (Activate_Elaborate_All_Desirable): New procedure
22489 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22492 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22493 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22495 * lib-writ.ads, lib-writ.adb:
22496 Implement new AD/ED for Elaborate_All/Elaborate desirable
22497 Use new Elaborate_All_Desirable flag in N_With_Clause node
22499 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22500 N_Free_Statement nodes.
22501 Define new class N_Subprogram_Instantiation
22502 Add Elaborate_Desirable flag to N_With_Clause node
22503 Add N_Delay_Statement (covering two kinds of delay)
22505 * debug.adb: Introduce d.f flag for compiler
22506 Add -da switch for binder
22508 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22509 Cyrille Comar <comar@adacore.com>
22511 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22512 for task component, in the case of a limited aggregate. The enclosed
22513 object declaration will create it earlier. Otherwise, in the case of a
22514 nested aggregate, the object may appear in the wrong scope.
22515 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22516 (Gen_Assign): If the component being assigned is an array type and the
22517 expression is itself an aggregate, wrap the assignment in a block to
22518 force finalization actions on the temporary created for each row of the
22520 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22521 structures are initialized after all discriminants are set so that
22522 they can be accessed even when their offset is dynamic.
22524 2005-11-14 Robert Dewar <dewar@adacore.com>
22525 Hristian Kirtchev <kirtchev@adacore.com>
22527 * sem_attr.adb: Implement Machine_Rounding attribute
22528 (Analyze_Access_Attribute): The access attribute may appear within an
22529 aggregate that has been expanded into a loop.
22530 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22531 'Terminated whenever the prefix is of a task interface class-wide type.
22532 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22533 the prefix is of a task interface class-wide type.
22535 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22538 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22539 Remove pragma Inline for [Unaligned_]Valid.
22540 Add comments that Valid routines do not work for Vax_Float
22542 * exp_attr.adb: Implement Machine_Rounding attribute
22544 * snames.h: Add entry for Machine_Rounding attribute
22546 2005-11-14 Javier Miranda <miranda@adacore.com>
22547 Robert Dewar <dewar@adacore.com>
22548 Hristian Kirtchev <kirtchev@adacore.com>
22550 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22551 and related): For a prefix that is an explicit dereference of an
22552 access to unconstrained packed array type, annotate the dereference
22553 with an actual subtype so GIGI can make a correct size computation.
22554 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22555 'Unrestricted_Access, if the designated type is an interface we
22556 add a type conversion to force the displacement of the pointer
22557 to the secondary dispatch table.
22558 Use Universal_Real instead of Long_Long_Float when we need a high
22559 precision float type for the generated code (prevents gratuitous
22560 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22561 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22562 'Terminated for task interface class-wide objects. Generate a call to
22563 the predefined dispatching routine used to retrieve the _task_id from
22564 a task corresponding record.
22565 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22567 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22568 (Check_Dispatching_Operation): Protect the frontend againts
22569 previously detected errors.
22571 * Makefile.rtl: Add new instantiations of system.fat_gen
22573 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22574 Change name of instantiated package for better consistency
22575 with newly added system.fat_gen instantiations.
22577 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22578 s-fvagfl.ads: New files.
22580 2005-11-14 Cyrille Comar <comar@adacore.com>
22581 Thomas Quinot <quinot@adacore.com>
22583 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22584 assignment of a value of a tagged type that has been rewritten to a
22585 block statement, it is known by construction that no checks are
22586 necessary for the statements within the block: analyze it with checks
22588 (Expand_N_If_Statement): When killing a dead then-branch in an
22589 if-statement that has elsif_parts, recompute the Current_Value node
22590 for any entity whose value is known from the condition of the first
22592 (Expand_N_Return_Statement): When returning a mutable record, convert
22593 the return value into its actual subtype in order to help the backend
22594 to return the actual size instead of the maximum. This is another
22595 aftermath of not returning mutable records on the sec-stack anymore.
22597 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22598 handling of error msg for suspicious reverse range iteration.
22599 (Check_Possible_Current_Value_Condition): Move declaration from body to
22600 spec, to allow this subprogram to be called from exp_ch5.
22602 2005-11-14 Thomas Quinot <quinot@adacore.com>
22604 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22605 generate a set of nested array aggregates instead of a single flat
22606 aggregate for multi-dimensional arrays.
22608 2005-11-14 Pascal Obry <obry@adacore.com>
22610 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22611 by spawnve is a process handle, no need to convert. Add a parameter
22612 close to control wether the process handle must be closed.
22613 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22614 a process handle, not need to convert.
22615 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22617 * g-expect.adb: (Kill): Document the new close parameter.
22618 (Close): Do not release the process handle in the kill there as
22619 waitpid() is using it.
22620 (Send_Signal): Release the process handle.
22622 2005-11-14 Robert Dewar <dewar@adacore.com>
22624 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22625 need a high precision float type for the generated code (prevents
22626 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22629 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22630 need a high precision float type for the generated code (prevents
22631 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22633 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22634 allowed on non-static enumeration subtypes. Force a load error to emit
22635 the correct diagnostic.
22637 2005-11-14 Thomas Quinot <quinot@adacore.com>
22638 Robert Dewar <dewar@adacore.com>
22639 Ed Schonberg <schonberg@adacore.com>
22641 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22642 subtype to compute the size of the designated object at run-time,
22643 create such a subtype and store it in the Actual_Designated_Subtype
22644 attribute of the N_Free_Statement.
22645 Generate itype for classwide designated object in both cases of
22646 user-specified storage pool: specific and class-wide, not only in the
22648 Raise CE when trying to set a not null access type object to null.
22649 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22650 an explicit loop, because freeze nodes make its position variable.
22652 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22655 2005-11-14 Javier Miranda <miranda@adacore.com>
22657 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22658 Build_Stream_Procedure): Add the null-excluding attribute to the first
22660 This has no semantic meaning under Ada95 mode but it is a
22661 requirement under Ada05 mode.
22663 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22664 the null exclusion is used under Ada95 mode
22665 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22666 (P_Access_Definition): Remove assertion that forbids the use of
22667 the null-exclusion feature in Ada95.
22669 2005-11-14 Robert Dewar <dewar@adacore.com>
22671 * impunit.adb: Exclude container helper units not intended for use by
22674 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22676 * freeze.adb (Freeze_Entity): For an access formal that is an access
22677 to subprogram, freeze the anonymous subprogram type at the same time,
22678 to prevent later freezing in the wrong scope, such as the enclosing
22680 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22681 subprogram whenever available.
22683 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22686 * gnatvsn.ads (Library_Version): Bump to 4.1
22688 2005-11-14 Robert Dewar <dewar@adacore.com>
22690 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22691 Storage_Offset to avoid wrap around causing invalid results.
22693 2005-11-14 Pascal Obry <obry@adacore.com>
22695 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22697 (Scan_Bind_Arg): Fail with an error message if -M option is used
22698 on a native compiler.
22700 2005-11-14 Robert Dewar <dewar@adacore.com>
22701 Vincent Celier <celier@adacore.com>
22703 * gprep.adb: Implement -C switch to scan comments
22705 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22707 * scans.ads: Comment updates (including new use of Tok_Comment in
22710 * opt.ads: Add documentation for flags that are used by gprmake,
22711 currently and in the next version of gprmake.
22712 (Verbosity_Level): New variable
22713 Add Replace_In_Comments switch
22715 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22717 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22719 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22721 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22722 message, friendlier.
22724 2005-11-14 Robert Dewar <dewar@adacore.com>
22726 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22728 2005-11-14 Doug Rupp <rupp@adacore.com>
22730 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22732 2005-11-14 Robert Dewar <dewar@adacore.com>
22734 * interfac.ads: Change declarations of IEEE float types so that we no
22735 longer need a separate version of this package for VMS.
22737 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22739 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22740 internal entity created for the declaration of a child subprogram body
22741 with no spec as coming from source, to generate proper cross-reference
22744 2005-11-14 Vincent Celier <celier@adacore.com>
22746 * make.adb (Compile_Sources): Change verbose message to minimum
22747 verbosity level High for "is in an Ada library", "is a read-only
22748 library" and "is an internal library",
22749 (Create_Binder_Mapping_File): Path name of ALI file for library project
22750 must include the library directory, not the object directory.
22751 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22752 for new switches -vl, -vm and -vh.
22753 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22754 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22755 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22756 in a project that is externally built.
22757 (Compute_All_Imported_Projects): New procedure
22758 (Gnatmake): Check if importing libraries should be regenerated because
22759 at least an imported library is more recent.
22760 (Initialize): For each project compute the list of the projects it
22761 imports directly or indirectly.
22762 (Add_Library_Search_Dir): New procedure, used in place of
22763 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22764 put in the search paths.
22765 (Add_Source_Search_Dir): New procedure, used in place of
22766 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22767 put in the search paths.
22768 (Mark_Directory): Resolve the absolute path the directory before marking
22771 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22772 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22773 Switch. Do not handle any exception.
22774 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22775 so that the switch is recognized as valid.
22776 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22778 2005-11-14 GNAT Script <nobody@adacore.com>
22780 * Make-lang.in: Makefile automatically updated
22782 2005-11-14 Pascal Obry <obry@adacore.com>
22784 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22786 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22787 In both cases the last argument was dropped.
22789 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22791 * namet.h: (Column_Numbe): New type.
22792 (Get_Column_Number): Define to sinput__get_column_number.
22793 (Instantiation): Define to sinput__instantiation.
22794 (Get_Column_Number): Declare.
22795 (Instantiation): Likewise.
22797 2005-11-14 Robert Dewar <dewar@adacore.com>
22799 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22800 syntax, which could cause compiler hangs.
22802 2005-11-14 Vincent Celier <celier@adacore.com>
22804 * prj-ext.adb: Take into account new environment variable
22805 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22807 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22808 normalize its path name, making it absolute and resolving symbolic
22809 links, and replace the original if resolved path is different.
22811 2005-11-14 Vincent Celier <celier@adacore.com>
22813 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22814 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22816 2005-11-14 Emmanuel Briot <briot@adacore.com>
22818 * prj-pp.adb (Print): Do not output the with statement if the
22819 associated name is empty, which happens for virtual extending projects.
22820 (Print): Preserve the "extends all" attribute when printing the project.
22822 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22823 a virtual extending project.
22825 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22827 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22828 rhs of an assignment even if the type is unconstrained, when the
22829 context is non-expanding.
22830 In an inlined body, if the context type is private,
22831 resolve with its full view, which must be a composite type.
22833 2005-11-14 Robert Dewar <dewar@adacore.com>
22834 Ed Schonberg <schonberg@adacore.com>
22836 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22837 Do not give obsolescent warning on with of subprogram (since we
22839 (Analyze_With_Clause): Add test for obsolescent package
22840 (Install_Context_Clauses): If the unit is the body of a child unit, do
22841 not install twice the private declarations of the parents, to prevent
22842 circular lists of Use_Clauses in a parent.
22843 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22844 compiling body of child unit.
22845 Use new class N_Subprogram_Instantiation
22846 (Expand_With_Clause): If this is a private with_clause for a child unit,
22847 appearing in the context of a package declaration, then the implicit
22848 with_clauses generated for parent units are private as well.
22849 (License_Check): Do not generate message if with'ed unit is internal
22851 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22852 Ed Schonberg <schonberg@adacore.com>
22853 Thomas Quinot <quinot@adacore.com>
22855 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22856 names are internal, because they will not have a corresponding partner
22857 in the actual package.
22858 (Analyze_Formal_Package): Move the setting of the formal package spec's
22859 Generic_Parent field so that it occurs prior to analyzing the package,
22860 to allow proper operation of Install_Parent_Private_Declarations.
22861 (Analyze_Package_Instantiation): Set the instantiated package entity's
22862 Package_Instantiation field.
22863 (Get_Package_Instantiation_Node): Move declaration to package spec.
22864 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22866 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22867 instantiation is Unchecked_Conversion, for which no parents are needed.
22868 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22869 parent scopes of a scope being removed prior to inlining an instance
22871 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22872 the current context is itself an instance within a non-instance child
22873 unit, to prevent scope stack errors.
22874 (Save_References): If the node is an aggregate that is an actual in a
22875 call, rewrite as a qualified expression to preserve some type
22876 information, to resolve possible ambiguities in the instance.
22877 (Instance_Parent_Unit): New global variable to record the ultimate
22878 parent unit associated with a generic child unit instance (associated
22879 with the existing Parent_Unit_Visible flag).
22880 (type Instance_Env): New component Instance_Parent_Unit for stacking
22881 parents recorded in the global Instance_Parent_Unit.
22882 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22884 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22885 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22886 not already set. Replace test of Is_Child_Unit with test of parent's
22887 scope against package Standard. Add comments and a ??? comment.
22888 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22889 on a child instance parent to test that the parent equals
22890 Instance_Parent rather than simply checking that the unit is not a
22892 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22893 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22894 a formal interface are ancestors of the corresponding actual.
22895 (Validate_Formal_Interface_Type): Additional legality checks.
22896 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22897 interface types with ancestors.
22898 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22899 to diagnose attempts to use generic within its own declaration.
22901 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22902 Javier Miranda <miranda@adacore.com>
22904 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22906 (Build_Private_Derived_Type): The entity of the created full view of the
22907 derived type does not come from source. If after installing the private
22908 declarations of the parent scope the parent is still private, use its
22909 full view to construct the full declaration of the derived type.
22910 (Build_Derived_Record_Type): Relax the condition that controls the
22911 execution of the check that verifies that the partial view and
22912 the full view agree in the set of implemented interfaces. In
22913 addition, this test now only takes into account the progenitors.
22914 (Derive_Interface_Subprograms): No need to derive subprograms
22915 of ancestors that are interfaces.
22916 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22918 Change name Is_Package to Is_Package_Or_Generic_Package
22919 (Complete_Subprograms_Derivation): Handle the case in which the full
22920 view is a transitive derivation of the ancestor of the partial view.
22921 (Process_Full_View): Rename local subprogram Find_Interface_In_
22922 Descendant to Find_Ancestor_Interface to leave the code more clear.
22923 Remove wrong code that avoids the generation of an error message
22924 when the immediate ancestor of the partial view is an interface.
22925 In addition some minor reorganization of the code has been done to
22926 leave it more clear.
22927 (Analyze_Type_Declaration): If type has previous incomplete tagged
22928 partial view, inherit properly its primitive operations.
22929 (Collect_Interfaces): Make public, for analysis of formal
22931 (Analyze_Interface_Declaration): New procedure for use for regular and
22932 formal interface declarations.
22933 (Build_Derived_Record_Type): Add support for private types to the code
22934 that checks if a tagged type implements abstract interfaces.
22935 (Check_Aliased_Component_Type): The test applies in the spec of an
22937 (Access_Type_Declaration): Clean up declaration of malformed type
22938 declared as an access to its own classwide type, to prevent cascaded
22940 (Collect_Interfaces): For private extensions and for derived task types
22941 and derived protected types, the parent may be an interface that must
22942 be included in the interface list.
22943 (Access_Definition): If the designated type is an interface that may
22944 contain tasks, create Master_Id for it before analyzing the expression
22945 of the declaration, which may be an allocator.
22946 (Record_Type_Declaration): Set properly the interface kind, for use
22947 in allocators, the creation of master id's for task interfaces, etc.
22949 2005-11-14 Javier Miranda <miranda@adacore.com>
22950 Ed Schonberg <schonberg@adacore.com>
22952 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22953 omitted in case of stream attribute subprograms.
22954 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22955 appear immediately after a subprogram body, when there is no previous
22956 subprogram declaration.
22957 Change name Is_Package to Is_Package_Or_Generic_Package
22958 (Process_Formals): A non null qualifier on a non null named access
22959 type is not an error, and is a warning only if Redundant_Constructs
22962 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22963 Ed Schonberg <schonberg@adacore.com>
22965 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22966 nested within Analyze_Package_Specification to install the private
22967 declarations and use clauses within each of the parent units of a
22968 package instance of a generic child package.
22969 (Analyze_Package_Specification): When entering a private part of a
22970 package associated with a generic instance or formal package, the
22971 private declarations of the parent must be installed (by calling new
22972 procedure Install_Parent_Private_Declarations).
22973 Change name Is_Package to Is_Package_Or_Generic_Package
22974 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22975 record is absent in a generic context, which does not indicate a
22978 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22980 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22981 not try to rewrite a renamed stream attribute, because the operations
22982 on the type may not have been generated.
22983 Handle properly a renaming_as_body generated for a stream operation
22984 whose default is abstract because the object type itself is abstract.
22985 (Find_Type): If the type is incomplete and appears as the prefix of a
22986 'Class reference, it is tagged, and its list of primitive operations
22987 must be initialized properly.
22988 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22989 private declaration of a parent unit, prior to compiling the private
22990 part of a child unit, find on the scope stack the proper parent entity
22991 on which to link the use clause.
22992 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22994 (Analyze_Object_Renaming): An attribute reference is not a legal object
22995 if it is not a function call.
22997 2005-11-14 Robert Dewar <dewar@adacore.com>
22998 Ed Schonberg <schonberg@adacore.com>
23000 * sem_eval.adb: Implement d.f flag
23001 (Subtype_Statically_Match): A generic actual type has unknown
23002 discriminants when the corresponding actual has a similar partial view.
23003 If the routine is called to validate the signature of an inherited
23004 operation in a child instance, the generic actual matches the full view,
23006 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23007 Ed Schonberg <schonberg@adacore.com>
23008 Robert Dewar <dewar@adacore.com>
23009 Thomas Quinot <quinot@adacore.com>
23011 * sem_res.adb (Resolve_Call): Provide a better error message whenever
23012 a procedure call is used as a select statement trigger and is not an
23013 entry renaming or a primitive of a limited interface.
23014 (Valid_Conversion): If the operand has a single interpretation do not
23015 remove address operations.
23016 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
23017 statement to inhibit warning.
23018 (Resolve_Unary_Op): Do not produce a warning when
23019 processing an expression of the form -(A mod B)
23020 Use Universal_Real instead of Long_Long_Float when we need a high
23021 precision float type for the generated code (prevents gratuitous
23022 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23023 (Resolve_Concatenation_Arg): Improve error message when argument is an
23024 ambiguous call to a function that returns an array.
23025 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
23026 there is an implicit operator in the given scope if we are within an
23027 instance: legality check has been performed on the generic.
23028 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
23029 after resolving operand, to avoid false warnings on overloaded calls.
23031 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23032 Javier Miranda <miranda@adacore.com>
23035 * sem_type.adb (Covers): In an inlined body, a composite type matches
23036 a private type whose full view is a composite type.
23037 (Interface_Present_In_Ancestor): Protect the frontend against
23038 previously detected errors to ensure that its compilation
23039 with assertions enabled gives the same output that its
23040 compilation without assertions.
23041 (Interface_Present_In_Ancestor): Add support for private types.
23042 Change name In_Actual to In_Generic_Actual (clean up)
23043 (Disambiguate): New predicate In_Actual, to recognize expressions that
23044 appear in the renaming declaration generated for generic actuals, and
23045 which must be resolved in the outer context.
23047 2005-11-14 Robert Dewar <dewar@adacore.com>
23048 Thomas Quinot <quinot@adacore.com>
23049 Hristian Kirtchev <kirtchev@adacore.com>
23050 Ed Schonberg <schonberg@adacore.com>
23052 * sem_util.ads, sem_util.adb: Change name Is_Package to
23053 Is_Package_Or_Generic_Package.
23054 (Check_Obsolescent): New procedure.
23055 (Set_Is_Public): Remove obsolete junk test.
23056 (Set_Public_Status): Do not set Is_Public on an object whose declaration
23057 occurs within a handled_sequence_of_statemets.
23058 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23059 for a parameterless procedure.
23060 (Enter_Name): Recognize renaming declarations created for private
23061 component of a protected type within protected operations, so that
23062 the source name of the component can be used in the debugger.
23064 2005-11-14 Ed Schonberg <schonberg@adacore.com>
23065 Robert Dewar <dewar@adacore.com>
23067 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23068 of a generic subprogram are not visible outside the body.
23069 (Set_Warning_Switch): New procedure (code to set warning mode moved
23070 here from Switch.C so that it can be shared by pragma processing.
23071 (Check_References): Special case warning for non-modified non-imported
23073 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23074 form with a string literal argument
23076 2005-11-14 Javier Miranda <miranda@adacore.com>
23078 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23080 (Write): Addition of "not null" to the anonymous access.
23081 (Read): Addition of "not null" to the anonymous access.
23082 (Write): Addition of "not null" to the anonymous access.
23084 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23085 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23086 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23087 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23088 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23089 "not null" to the anonymous access.
23091 2005-11-14 Robert Dewar <dewar@adacore.com>
23093 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23096 2005-11-14 Vincent Celier <celier@adacore.com>
23098 * switch.adb (Bad_Switch): New procedure
23099 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23100 message when in error.
23102 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23103 Too_Many_Output_Files): Remove declarations, no longer used.
23104 (Scan_Nat): New parameter Switch
23106 (Bad_Switch): New procedure
23108 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23109 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23110 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23111 to Osint.Fail. Do not handle any exception.
23113 2005-11-14 Vincent Celier <celier@adacore.com>
23115 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23116 designates a non existent directory.
23118 2005-11-14 Robert Dewar <dewar@adacore.com>
23120 * xgnatugn.adb: Replace invalid membership test by 'Valid
23122 2005-11-14 Vincent Celier <celier@adacore.com>
23124 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23125 there is no object directory.
23127 2005-11-14 Robert Dewar <dewar@adacore.com>
23129 * usage.adb: Minor adjustment to output format, use nn instead of nnn
23130 (so that -gnateInnn does not run into next column)
23132 2005-11-14 Ed Falis <falis@adacore.com>
23134 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23137 2005-11-14 Cyrille Comar <comar@adacore.com>
23139 * s-chepoo.ads: Add comments on Dereference.
23140 Remove unnecessary inherited abstract primitives.
23143 2005-11-14 Robert Dewar <dewar@adacore.com>
23145 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23146 node parameter, not needed, since it is available as Declaration_Node.
23148 2005-11-14 Geert Bosch <bosch@adacore.com>
23150 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23151 grammatically correct.
23153 2005-11-14 Vincent Celier <celier@adacore.com>
23155 * s-fileio.ads: Correct spelling error in comment
23157 2005-11-14 Cyrille Comar <comar@adacore.com>
23158 Robert Dewar <dewar@adacore.com>
23159 Vincent Celier <celier@adacore.com>
23160 Ben Brosgol <brosgol@adacore.com>
23161 Jose Ruiz <ruiz@adacore.com>
23162 Pascal Obry <obry@adacore.com>
23165 Document that -fstack-check is needed for strict compliance with the
23166 Ada 95 Reference Manual.
23167 Correct reference to VAX systems to meet HP guidelines
23168 Add documentation for new gnatmake switches -vl, -vm and -vh
23169 Replace DEC Ada by HP Ada
23170 Replace DIGITAL by HP
23171 Remove empty section on tools in compatibility section
23172 Clarify the Windows convention semantics.
23173 Document the Win32 calling convention.
23174 The Stdcall, Win32 and DLL convention are synonyms.
23175 Add a note in -gnatR description about zero size record components
23176 Note on new >= and <= warnings for -gnatwc
23177 Document that equal sign after -gnatm is optional.
23178 Note that strip is working fine on DLL built with a Library
23179 Project. The restriction apply only to DLL built with gnatdll.
23180 Update section about the way to debug a DLL.
23181 Update information about the DLL convention.
23182 Document -C switch for gnatprep
23183 Document new attribute Library_ALI_Dir
23184 Update elaboration doc to include implicit Elaborate pragmas now
23185 generated for subprogram instantiations.
23186 Document limitation on executable names that include spaces for --GCC,
23187 --GNATBIND, and --GNATLINK switches.
23188 Document that -w causes -gnatws to be added at start of gcc switches
23190 * gnat_rm.texi: Document that -mieee is needed for generating infinite
23191 and NaN values in case of overflow on machines that are not fully
23192 compliant with the IEEE floating-point standard.
23193 Create a section describing the set of compiler options needed for
23194 strict compliance with the Ada 95 Reference Manual.
23195 Add documentation for pragma Obsolescent applied to a package
23196 Clarify potential issues of mixed language programs related to the
23197 I/O buffering enabling in the elaboration of the GNAT runtime.
23198 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23199 This documentation only patch adds extra documentsion for pragma
23200 Restrictions (No_Elaboration_Code), explaining why it is not possible
23201 to document this restriction in terms of allowed source constructs.
23202 Document string literal form of pragma Warnings
23203 Document new attribute Library_ALI_Dir
23204 Add documentation on stable attributes in project files that was missing
23206 * gnat-style.texi: Indicate that paragraphs within a single comment
23207 should be separated by empty comment lines
23209 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23212 * bindusg.adb: Minor cleanup, put -m before -M for consistency
23214 2005-11-14 Robert Dewar <dewar@adacore.com>
23216 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23217 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23218 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23219 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23220 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23221 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23222 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23223 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23224 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23225 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23226 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23227 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23228 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23229 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23230 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23231 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23232 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23233 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23234 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23235 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23236 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23237 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23238 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23239 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23240 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23241 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23242 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23243 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23244 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23245 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23246 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23247 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23248 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23249 system-interix.ads, system-solaris-sparc.ads,
23250 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23251 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23252 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23253 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23254 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23255 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23256 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23257 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23258 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23259 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23260 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23261 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23262 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23263 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23264 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23265 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23266 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23267 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23268 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23269 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23270 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23271 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23272 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23273 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23274 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23275 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23276 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23277 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23278 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23279 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23280 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23281 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23282 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23283 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23284 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23285 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23286 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23287 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23288 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23289 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23290 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23291 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23292 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23293 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23294 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23295 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23296 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23297 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23298 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23299 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23300 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23301 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23302 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23303 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23304 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23305 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23306 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23307 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23308 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23309 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23310 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23311 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23312 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23313 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23314 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23315 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23316 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23317 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23318 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23319 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23320 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23321 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23322 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23323 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23324 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23325 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23326 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23327 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23328 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23329 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23330 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23331 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23332 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23333 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23334 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23335 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23336 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23337 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23338 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23339 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23340 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23341 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23342 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23343 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23344 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23345 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23346 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23347 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23348 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23349 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23350 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23351 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23352 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23353 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23354 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23355 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23356 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23357 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23358 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23359 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23360 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23361 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23362 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23363 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23364 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23365 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23366 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23367 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23368 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23369 a-numaux-darwin.ads, a-numaux-darwin.adb,
23370 a-swuwha.ads, a-stunha.ads: Minor reformatting
23372 2005-11-14 Robert Dewar <dewar@adacore.com>
23375 * osint-m.adb: Add pragma Elaborate_All for Osint
23377 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23380 * trans.c (call_to_gnu): Restore statement lost in translation.
23382 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23384 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23385 (__gnat_adjust_context_for_raise): Add conditional code so that the
23386 IA-64 is also supported.
23388 2005-11-03 James E Wilson <wilson@specifix.com>
23391 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23392 TREE_OVERFLOW check.
23394 2005-09-21 Olivier Hainque <hainque@adacore.com>
23397 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23398 as we create them to store a size in bits.
23400 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23408 * utils2.c (build_return_expr): New helper function.
23409 * gigi.h (build_return_expr): Declare it.
23410 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23411 of manually building the RETURN_EXPR tree.
23412 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23413 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23414 build_binary_op for the "target pointer" case. Use build_return_expr
23415 instead of manually building the RETURN_EXPR tree.
23417 2005-09-16 Laurent Guerby <laurent@guerby.net>
23420 * s-tpinop.ads: Make this unit Preelaborate.
23422 2005-09-16 Andreas Jaeger <aj@suse.de>
23424 * socket.c: Add string.h for memcpy.
23426 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23428 * dec-io.ads, dec-io.adb: Removed, no longer used.
23430 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23432 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23434 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23435 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23436 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23437 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23438 dependent units are Preelaborate.
23439 (Initialize): Call Interrupt_Managemeent.Initialize and
23440 OS_Primitives.Initialize to ensure proper initialization of this unit.
23441 Remove use of System.Soft_Links
23442 Make this unit Preelaborate.
23444 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23445 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23446 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23447 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23448 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23449 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23450 Add pragma Preelaborate, since these packages are suitable for this
23454 * s-traent-vms.ads, s-intman-dummy.adb,
23455 s-taprop-dummy.adb: Make this unit Preelaborate.
23457 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23458 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23459 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23460 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23461 s-intman-solaris.adb, s-intman-irix-athread.adb,
23462 s-intman-irix.adb: Mark this unit Preelaborate.
23463 (Initialize): New procedure.
23466 * s-taspri-linux.ads: Removed.
23468 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23469 as done by other implementations (e.g. posix).
23471 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23472 responsible for deferring abort.
23473 Mark this unit Preelaborate.
23475 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23476 proper initialization of the tasking run-time.
23478 * s-tasdeb.ads: Mark this unit Preelaborate.
23479 (Known_Tasks): Add explicit default value to avoid elaboration code.
23481 * s-inmaop-vms.adb (Elaboration code): Add call to
23482 Interrupt_Management.Initialize since the elaboration code depends on
23483 proper initialization of this package.
23485 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23486 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23487 s-osprim-posix.adb: Make this unit Preelaborate.
23489 * a-calend.adb: Add call to OS_Primitives.Initialize
23491 * a-elchha.adb: Update use of Except.Id.Full_Name.
23492 Minor reformatting.
23493 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23495 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23496 Move with clauses outside Warnings Off now that dependent units are
23498 Use raise xxx with "..."; Ada 2005 form.
23500 * a-taside.ads, a-taside.adb:
23501 Remove some dependencies, to make it easier to make this unit truly
23503 Rewrite some code to be conformant with Preelaborate rules.
23505 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23506 marked Preelaborate in the future.
23508 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23509 these units Preelaborate.
23511 * s-exctab.adb: Update use of Except.Id.Full_Name.
23513 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23514 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23515 Set_Exc_Stack_Addr): Removed, no longer used.
23516 Remove reference to *Machine_State_Addr*, no longer needed.
23518 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23519 (Exception_Data): Full_Name is now a System.Address so that this unit
23520 can be made Preelaborate.
23521 Clean up/simplify code thanks to Full_Name being a System.Address.
23522 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23524 * s-taskin.ads, s-taskin.adb:
23525 Move with clauses outside Warnings Off now that dependent units are
23527 Make this unit Preelaborate.
23528 (Initialize): New proceduure, replace elaboration code and makes the
23529 set up of the tasking run-time cleaner.
23530 (Detect_Blocking): Now a function instead of a deferred boolean, to
23531 obey Preelaborate rules.
23533 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23534 soft links, no longer used.
23536 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23537 packages are suitable for this categorization.
23539 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23540 since we compile run-time sources in Ada 2005 mode.
23541 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23542 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23544 Remove reference to *Machine_State_Addr*, no longer needed.
23546 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23548 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23549 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23550 Remove reference to System.Exceptions.
23552 * s-mastop-x86.adb: Removed, no longer used.
23554 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23556 * a-excach.adb: Minor reformatting.
23558 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23559 instead fix new warnings that were hidden by this change.
23560 (AAA, ZZZ): Removed, replaced by...
23561 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23562 are used instead of constants, to help make Ada.Exception truly
23564 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23565 Raise_Storage_Error): File is now a System.Address, to simplify code.
23566 (Elab code): Removed, no longer used.
23567 (Null_Occurrence): Remove Warnings Off and make this construct
23569 Remove code related to front-end zero cost exception handling, since
23570 it is no longer used.
23571 Remove -gnatL/-gnatZ switches.
23573 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23574 Update use of Except.Msg.
23576 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23577 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23578 to front-end zero cost exception handling, since it is no longer used.
23579 Remove -gnatL/-gnatZ switches.
23581 * lib-writ.ads: Minor reformatting
23584 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23586 * Make-lang.in: Remove references to s-except.ads
23588 * s-except.ads: Removed, no longer used.
23590 * s-mastop.ads, s-mastop.adb:
23591 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23592 Remove reference to System.Exceptions.
23594 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23595 switch-b.adb: Remove code related to front-end zero cost exception
23596 handling, since it is no longer used.
23597 Remove -gnatL/-gnatZ switches.
23599 2005-09-01 Robert Dewar <dewar@adacore.com>
23600 Gary Dismukes <dismukes@adacore.com>
23601 Javier Miranda <miranda@adacore.com>
23603 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23604 type by valid test and generate warning.
23605 (Tagged_Membership): Generate call to the run-time
23606 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23607 Change formal name Subtype_Mark to Result_Definition in several calls to
23608 Make_Function_Specification.
23609 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23610 check for proper accessibility of the operand of a class-wide allocator.
23611 The check can be left out if checks are suppressed or if the expression
23612 has a specific tagged type whose level is known to be safe.
23614 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23615 generates the run-time check associated with null-excluding entities.
23616 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23617 check on the level of the return expression of a class-wide function
23618 can be elided. The check usually isn't needed if the expression has a
23619 specific type (unless it's a conversion or a formal parameter). Also
23620 add a test for whether accessibility checks are suppressed. Augment
23621 the comments to describe the conditions for performing the check.
23623 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23624 Javier Miranda <miranda@adacore.com>
23625 Gary Dismukes <dismukes@adacore.com>
23626 Ed Schonberg <schonberg@adacore.com>
23628 * a-tags.adb (IW_Membership): Give support to
23629 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23630 subprogram has been extended to look for the tag in the ancestors tag
23632 Update the structure of the GNAT Dispatch Table to reflect the
23633 additional two tables used in dispatching selects.
23634 Introduce appropriate array types and record components in
23635 Type_Specific_Data to reflect the two tables.
23636 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23637 the TSD of a tag, indexed by position.
23638 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23639 operation kind in the TSD of a tag, indexed by position.
23641 * a-tags.ads: Introduce an enumeration type to capture different
23642 primitive operation kinds. Define a constant reflecting the number of
23643 predefined primitive operations.
23644 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23645 of an entry wrapper.
23646 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23647 callable entity of a primitive operation.
23649 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23650 primitive operations used in dispatching selects for limited
23651 interfaces, limited tagged, task and protected types what implement a
23653 (Freeze_Type): Generate the bodies of the primitive operations used in
23654 dispatching selects for limited tagged, task and protected types that
23655 implement a limited interface. Generate statements to populate the two
23656 auxiliary tables used for dispatching in select statements.
23657 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23658 associated with predefined interface primitive operations.
23659 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23660 Set_Result_Definition.
23661 (Build_Variant_Record_Equality): Change Subtype_Mark to
23663 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23664 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23665 (Build_Assignment): Simplify the code that adds the run-time-check.
23666 (Expand_N_Object_Declaration): Code cleanup.
23668 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23669 entries when there is a protected type that implements a limited
23672 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23673 common routines used in expansion of dispatching selects.
23674 (Add_Private_Declarations): Select the appropriate protection type when
23675 there is a protected type that implements a limited interface.
23676 (Build_Parameter_Block): Generate a wrapped parameter block.
23677 (Build_Protected_Subprogram_Body): Select the appropriate type for
23678 locking entries when there is a protected type that implements a
23680 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23681 classified as entry wrappers.
23682 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23683 asynchronous selects.
23684 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23685 dispatching conditional selects.
23686 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23687 protection when there is a protected type that implements limited
23689 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23691 (Extract_Dispatching_Call): Extract the entity of the name of a
23692 dispatching call, the object parameter, actual parameters and
23693 corresponding formals.
23694 (Make_Initialize_Protection): Correct logic of protection initialization
23695 when there is a protected type that implements a limited interface.
23696 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23697 values of actual parameters.
23698 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23699 block and assign them to the original actual parameters.
23701 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23702 (Build_Protected_Sub_Specification): Change the type and name of the
23703 last formal to account for the increased variety of protection modes.
23705 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23706 entities. Used to save the value of the Is_Hidden attribute when the
23707 limited-view is installed.
23708 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23709 the attribute of procedures classified as entry wrappers.
23710 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23711 entity of a primitive wrapper.
23712 (Write_Entity_Flags): Output the name and value of the
23713 Is_Primitive_Wrapper attribute.
23714 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23716 (Underlying_Type): If we have an incomplete entity that comes from
23717 the limited view then we return the Underlying_Type of its non-limited
23718 view if it is already available.
23719 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23720 including operators.
23721 (Write_Field26_Name): Add entry for Overridden_Operation
23722 (Overridden_Operation): New attribute of functions and procedures.
23724 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23725 predefined position in the dispatch table for the primitive operations
23726 used in dispatching selects.
23727 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23728 predefined primitive operations and replace it with
23729 Default_Prim_Op_Count.
23730 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23731 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23732 the names of the generated primitive operations used in dispatching
23734 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23735 case of abstract interface types. They will be inherit by the objects
23736 implementing the interface.
23737 (Make_DT): There is no need to inherit the dispatch table of the
23738 ancestor interface for the elaboration of abstract interface types.
23739 The dispatch table will be inherited by the object implementing the
23741 (Copy_Secondary_DTs): Add documentation.
23742 (Validate_Position): Improve this static check in case of
23743 aliased subprograms because aliased subprograms must have
23745 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23746 the entries associated with predefined primitives of all the secondary
23748 (Build_Anonymous_Access_Type): Removed.
23749 (Expand_Interface_Actuals): With the previous cleanup there is no need
23750 to build an anonymous access type. This allows further cleanup in the
23751 code generated by the expander.
23752 (Expand_Interface_Conversion): If the actual is an access type then
23753 build an internal function to handle the displacement. If the actual
23754 is null this function returns null because no displacement is
23755 required; otherwise performs a type conversion that will be
23756 expanded in the code that returns the value of the displaced actual.
23757 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23758 conversions that have no effect in the generated code because no
23759 displacement is required. Code cleanup; use local variables to
23760 avoid repeated calls to the subprogram directly_designated_type().
23762 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23763 Classify the primitive operations used in dispatching selects as
23765 (Implements_Limited_Interface): Determine whether some type either
23766 directly implements a limited interface or extends a type that
23767 implements a limited interface.
23768 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23769 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23770 expression is limited.
23771 (Find_Interface_Tag): Add code to handle class-wide types and
23772 entities from the limited-view.
23774 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23775 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23776 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23777 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23780 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23781 of procedure name or prefix that appears as a trigger in a triggering
23784 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23786 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23788 * s-tataat.adb, a-tasatt.adb:
23789 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23791 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23792 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23793 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23796 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23797 Jose Ruiz <ruiz@adacore.com>
23799 * s-taprop-vxworks.adb:
23800 Move with clauses outside Warnings Off now that dependent units are
23802 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23803 initialization of this unit.
23804 (Specific): Add new procedures Initialize and Delete so that this
23805 package can be used for VxWorks 5.x and 6.x
23806 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23807 differences between VxWorks 5.x and 6.x
23808 Minor reformatting.
23809 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23811 Use only Preelaborate-compatible constructs.
23813 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23814 Primitives.Operations.
23815 (Delete, Initialize): New procedures.
23817 * s-osinte-vxworks.adb: Body used to handle differences between
23818 VxWorks 5.x and 6.x
23819 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23821 * s-osinte-vxworks.ads: Minor reformatting.
23822 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23823 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23825 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23826 between Vxworks 5 and 6.
23827 (taskLock, taskUnlock): Removeed, no longer used.
23829 * adaint.c: The wait.h header is not located in the sys directory on
23830 VxWorks when using RTPs.
23831 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23833 (__gnat_dup): dup is available on Vxworks when using RTPs.
23834 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23836 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23838 * expect.c: The wait.h header is not located in the sys directory on
23839 VxWorks when using RTPs.
23841 2005-09-01 Thomas Quinot <quinot@adacore.com>
23843 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23845 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23847 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23848 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23849 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23850 g-soccon-freebsd.ads: Add new constants:
23852 SO_RCVTIMEO/SO_SNDTIMEO
23856 Move all target-specific file inclusions and macro definitions to
23857 gsocket.h, in order to ensure that any C code in socket.c will see a
23858 set of constants that is consistent with the contents of g-soccon.ads.
23860 * gsocket.h: Code imported from gen-soccon.c:
23861 Move all target-specific file inclusions and macro definitions to
23862 gsocket.h, in order to ensure that any C code in socket.c will see a set
23863 of constants that is consistent with the contents of g-soccon.ads.
23864 This change also makes gen-soccon self-contained (removing dependencies
23865 upon GCC internal headers).
23867 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23869 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23871 * socket.c: Minor reformatting.
23873 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23874 Thomas Quinot <quinot@adacore.com>
23876 * fname-sf.adb, mlib-tgt.ads,
23877 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23878 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23879 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23880 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23881 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23882 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23883 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23884 makegpr.adb: Remove redundant use_clauses.
23886 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23888 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23889 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23890 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23891 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23892 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23893 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23894 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23895 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23896 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23897 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23898 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23899 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23900 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23901 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23902 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23903 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23904 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23905 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23906 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23907 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23908 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23909 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23910 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23911 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23912 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23913 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23914 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23915 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23916 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23917 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23918 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23919 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23920 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23921 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23922 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23923 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23924 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23925 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23926 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23927 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23928 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23929 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23930 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23931 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23932 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23933 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23934 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23935 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23936 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23937 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23938 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23939 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23940 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23941 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23942 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23943 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23944 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23945 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23946 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23947 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23948 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23949 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23950 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23951 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23952 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23953 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23954 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23955 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23956 and always use the no parameter form for consistency.
23958 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23960 2005-09-01 Robert Dewar <dewar@adacore.com>
23962 * binde.adb: Minor reformatting
23963 (Find_Elab_Order): Output warning if -p used with static elab order
23965 2005-09-01 Robert Dewar <dewar@adacore.com>
23967 * checks.adb (Check_Needed): New procedure, deals with removing checks
23968 based on analysis of short-circuited forms. Also generates warnings for
23969 improper use of non-short-circuited forms.
23972 2005-09-01 Robert Dewar <dewar@adacore.com>
23974 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23977 2005-09-01 Robert Dewar <dewar@adacore.com>
23979 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23981 Implement new insertion char < (conditional warning)
23982 * errutil.adb, erroutc.adb: Implement new insertion char <
23983 (conditional warning).
23984 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23985 (Error_Msg_Warn): New variable for < insertion char.
23986 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23988 (Check_For_Source): Change value of Source_Id only after the current
23989 source has been dealt with.
23991 2005-09-01 Robert Dewar <dewar@adacore.com>
23992 Doug Rupp <rupp@adacore.com>
23994 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23995 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23996 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23997 (Valid_D, Valid_F, Valid_G): New functions
23999 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24000 Hristian Kirtchev <kirtchev@adacore.com>
24001 Javier Miranda <miranda@adacore.com>
24003 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
24004 from object notation, the original node is unanalyzed and carries no
24005 semantic information, so that accessiblity checks must be performed on
24006 the type of the actual itself.
24007 (Expand_N_Subprogram_Declaration): Change last actual parameter for
24008 compatibility with Build_Protected_Sub_Specification.
24009 (Check_Overriding_Inherited_Interfaces): Add suport to handle
24010 overloaded primitives.
24011 (Register_Interface_DT_Entry): Use the new name of the formal
24012 the the calls to Expand_Interface_Thunk
24014 * exp_dbug.ads: Augment comments on encoding of protected types to
24015 include the generation of dispatching subprograms when the type
24016 implements at least one interface.
24018 * lib.ads: Extend information in Load_Stack to include whether a given
24019 load comes from a Limited_With_Clause.
24021 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
24022 whether a potential circularity is harmless, because it includes units
24023 loaded through a limited_with clause. Extends previous treatment which
24024 did not handle properly arbitrary combinations of limited and
24025 non-limited clauses.
24027 2005-09-01 Nicolas Setton <setton@adacore.com>
24029 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
24030 to be encoded as typ___XBLU_lowerbound__upperbound instead of
24031 typ___XB_lowerbound__upperbound.
24033 2005-09-01 Thomas Quinot <quinot@adacore.com>
24035 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
24036 dummy access formal for RACW/RAS TypeCode TSS.
24037 (Build_TypeCode_Call): Do not generate dummy null access actual for
24038 calls to the TypeCode TSS.
24040 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24042 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24043 fully qualified name, to distinguish instances with the same local name.
24045 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24048 2005-09-01 Robert Dewar <dewar@adacore.com>
24050 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24053 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
24055 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24056 (Free): New deallocation procedure for filter elements
24057 (Close): Deallocate any existing filter for the concerned connection
24059 2005-09-01 Laurent Pautet <pautet@adacore.com>
24061 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24062 position set is provided, we compute one in order to reduce the maximum
24063 length of the keys. This computation first selects a character
24064 position between 1 and the minimum length of the keys in order to
24065 avoid reducing one of the keys to an empty string.
24066 (Initialize, Compute): When the ratio V to K is too low, the algorithm
24067 does not converge. The initialization procedure now comes with a
24068 maximum number of iterations such that when exceeded, an exception is
24069 raised in Compute. The user can initialize this ratio to another value
24071 Reformating and updated headers.
24073 2005-09-01 Javier Miranda <miranda@adacore.com>
24075 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24076 that given an entity T creates and returns an Itype that duplicates the
24077 contents of T. The returned Itype has the null-exclusion
24078 attribute set to True, and its Etype attribute references T
24079 to keep the association between the two entities.
24080 Update copyright notice
24082 * sem_aggr.adb (Check_Can_Never_Be_Null,
24083 Aggregate_Constraint_Checks, Resolve_Aggregate,
24084 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24086 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24088 2005-09-01 Gary Dismukes <dismukes@adacore.com>
24089 Robert Dewar <dewar@adacore.com>
24090 Hristian Kirtchev <kirtchev@adacore.com>
24092 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24095 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24097 Call Set_Result_Definition instead of Set_Subtype_Mark.
24098 (P_Subprogram_Specification): Add parsing of anonymous access result
24099 plus null exclusions. Call Set_Result_Definition instead of
24102 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24103 (P_Access_Type_Definition): Add parsing for an anonymous access result
24104 subtype, plus parsing for null exclusions. Call Set_Result_Definition
24105 instead of Set_Subtype_Mark.
24107 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24108 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24109 (Result_Definition): New function for N_Function_Specifications.
24110 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24111 N_Function_Specification.
24112 (Set_Null_Exclusion_Present): Allow this flag for
24113 N_Function_Specification.
24114 (Set_Result_Definition): New procedure for N_Function_Specifications.
24115 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24116 and N_Function_Specification.
24118 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24119 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24120 Add support for LIMITED NEW for Ada 2005 AI-419
24121 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24122 syntax for anonymous access results.
24123 Replace Subtype_Mark field by Result_Definition in
24124 N_Function_Specification and N_Access_Definition specs.
24125 Add Null_Exclusion_Present to spec of N_Function_Specification.
24126 (Result_Definition): New function for N_Function_Specification and
24127 N_Access_Function_Definition.
24128 (Set_Result_Definition): New procedure for N_Function_Specification and
24129 N_Access_Function_Definition.
24131 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24132 Result_Definition for cases of N_Access_Function_Definition and
24133 N_Function_Specification.
24134 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24136 2005-09-01 Vincent Celier <celier@adacore.com>
24138 * lib-writ.adb: Update Copyright notice
24139 (Write_With_Lines): On platforms where file names are case-insensitive,
24140 record the file names in lower case.
24141 (Write_ALI): For D lines, on platforms where file names are
24142 case-insensitive, record the file names in lower case.
24144 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24145 Emmanuel Briot <briot@adacore.com>
24147 * lib-xref.adb (Output_Overridden_Op): Display information on
24148 overridden operation.
24150 * lib-xref.ads: Add documentation on overridden operations.
24152 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24155 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24156 overriding entity information.
24158 2005-09-01 Vincent Celier <celier@adacore.com>
24160 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24161 including those that are inherited.
24163 2005-09-01 Robert Dewar <dewar@adacore.com>
24165 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24167 * par-prag.adb: Implement new pragma Debug_Policy
24169 * sem_prag.adb Implement new pragma Debug_Policy
24170 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24171 Component_Size attribute specification. Give warning for ignored pragma
24174 * snames.h, snames.ads, snames.adb: Introduce entries in
24175 Preset_Names for Name_Disp_Asynchronous_Select,
24176 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24177 Name_Disp_Timed_Select.
24178 New pragma Debug_Policy
24180 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24182 Switch -gnata also sets Debug_Pragmas_Enabled
24184 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24185 handle an explicit -gnata when compiling predefined files.
24187 2005-09-01 Vincent Celier <celier@adacore.com>
24189 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24190 directories of projects that have no Ada sources.
24192 2005-09-01 Robert Dewar <dewar@adacore.com>
24194 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24195 (makes a difference for wide characters)
24197 * widechar.adb, widechar.ads:
24198 Add Wide_Char_Byte_Count feature to count chars vs bytes
24200 2005-09-01 Thomas Quinot <quinot@adacore.com>
24201 Ed Schonberg <schonberg@adacore.com>
24202 Robert Dewar <dewar@adacore.com>
24204 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24205 'Address attribute reference with an overloaded prefix, use the
24206 location of the prefix (not the location of the attribute reference) as
24207 the error location.
24208 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24209 a function renaming thereof, is a valid prefix for 'Size (where it is
24210 intepreted as a function call).
24211 (Statically_Denotes_Entity): New predicate to determine whether the
24212 prefix of an array attribute can be considered static.
24215 (Eval_Attr): Fix failure to evaluate Component_Size for
24216 unconstrained arrays (resulted in wrong value in packed case, since
24217 back end cannot handle this case)
24219 2005-09-01 Robert Dewar <dewar@adacore.com>
24221 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24222 error msgs for most common cases.
24223 Use new errout insertion char < (conditional warning)
24225 2005-09-01 Javier Miranda <miranda@adacore.com>
24226 Ed Schonberg <schonberg@adacore.com>
24228 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24229 become local to the whole package.
24230 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24231 the package was already analyzed the new algorithm "replaces" the
24232 real entities by the shadow ones. This is required to ensure that
24233 the order of these entities in the homonym chains does not change;
24234 otherwise we can have undefined references at linking time because
24235 in case of conflicts the external name of the entities will have
24236 a suffix that depends on the order of the entities in the chain.
24237 (Remove_Limited_With_Clause): Complementary code that completes the
24238 new algorithm and replaces the shadow entities by the real ones.
24239 (Install_Limited_Withed_Unit): When unchaining entities before the
24240 installation of the shadow entities, only regular entities of the
24241 public part must be taken into account. This is required to
24242 keep this routine in synch with the work done by Remove_Limited_
24244 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24245 even if unit is analyzed, because the analysis of the unit is
24246 idempotent in any case, and the limited view of the unit may have to
24247 be installed for proper visibility.
24248 (Expand_Limited_With_Clause): Even if the unit in the implicit
24249 with_clause has been analyzed already, a limited view of the package
24250 must be built for the current context, if it does not exist yet.
24252 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24253 Javier Miranda <miranda@adacore.com>
24254 Gary Dismukes <dismukes@adacore.com>
24256 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24257 defining entity for the instance body, make a new defining identifier
24258 rather than copying the entity of the spec, to prevent accidental
24259 sharing of the entity list.
24260 (Check_Private_View): When exchanging views of private types, build the
24261 list of exchanged views as a stack, to ensure that on exit the exchanges
24262 are undone in the proper order.
24263 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24264 Restore the compilation environment in case of instantiation_error.
24265 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24266 for an anonymous access result.
24267 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24268 (Formal_Entity): Handle properly the case of a formal package that
24269 denotes a generic package renaming.
24271 2005-09-01 Thomas Quinot <quinot@adacore.com>
24273 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24274 clause if the array aggregate is surrounded by parentheses.
24276 2005-09-01 Cyrille Comar <comar@adacore.com>
24277 Gary Dismukes <dismukes@adacore.com>
24278 Ed Schonberg <schonberg@adacore.com>
24279 Javier Miranda <miranda@adacore.com>
24281 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24283 to check if a type is Constrained in cases related to code generation
24284 (rather than semantic checking) since otherwise we do not generate
24285 similar code for mutable private types depending if their
24286 discriminants are visible or not.
24287 (Check_Abstract_Overriding): Do not complain about failure to override
24288 the primitive operations used in dispatching selects since they will
24289 always be overriden at the freeze point of the type.
24290 (Access_Definition): Separate out handling for resetting the scope
24291 of an anonymous access function result type. Retrieve the scope
24292 of the associated function rather than using Current_Scope, which
24293 does not have a consistent value (depends on whether we're in the
24294 middle of analyzing formal parameters). Add ??? comment about
24295 finding a cleaner way to handle the special cases of scope setting.
24296 (Process_Incomplete_Dependents): A protected operation is never a
24297 dispatching operation (only its wrapper may be).
24298 (Build_Derived_Record_Type): In case of tagged private types that
24299 implement interfaces add derivation of predefined primitive
24301 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24302 by two parameters that are used in case of derivation from abstract
24303 interface types: No_Predefined_Prims is used to avoid the derivation
24304 of predefined primitives from the interface, and Predefined
24305 Prims_Only is used to complete the derivation predefined primitives
24306 in case of private tagged types implementing interfaces.
24307 Fix typo in comments
24308 (Find_Interface_In_Descendant): Protect the frontend against
24309 wrong code with large circularity chains.
24310 (Is_Private_Overriding): Add support for entities overriding interface
24311 subprograms. The test failed because Entities associated with overriden
24312 interface subprograms are always marked as hidden (and used to build
24313 the secondary dispatch table); in this case the overriden entity is
24314 available through the field abstract_interface_alias (cf. override_
24315 dispatching_operation)
24316 (Access_Definition): Set the scope of the type to Current_Scope for the
24317 case of a function with an anonymous access result type.
24318 (Access_Subprogram_Declaration): Handle creation of the type entity for
24319 an access-to-function type with an anonymous access result.
24320 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24321 in handling for N_Access_Function_Definition.
24322 (Analyze_Subtype_Declaration): Modify the text of error message.
24323 (Derived_Type_Declaration): Modify the text of error message.
24324 (Process_Subtype): Modify the text of error message plus cleanup
24325 of one redundant error message.
24326 (Analyze_Component_Declaration): Code cleanup.
24327 (Analyze_Object_Declaration): Code cleanup.
24328 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24329 attribute in case of access types. Code cleanup.
24330 (Array_Type_Declaration): Code cleanup.
24331 (Process_Discriminants): Create the new null-excluding itype
24332 if required. Code cleanup.
24333 (Process_Subtype): Create the new null-excluding itype if
24334 required. Code cleanup.
24335 (Build_Derived_Record_Type): Code cleanup to avoid calling
24336 twice the subprogram derive_subprograms in case of private
24337 types that implement interfaces. In this particular case the
24338 subprogram Complete_Subprograms_Derivation already does the
24339 job associated with the second call.
24341 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24342 conversion to the full view when generating an operation for a
24343 discriminant whose type may currently be private.
24345 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24346 Javier Miranda <miranda@adacore.com>
24348 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24349 V (Obj.F), the rewriting does not involve the indexed component, but
24350 only the selected component itself.
24351 Do not apply the transformation if the analyzed node is an actual of a
24352 call to another subprogram.
24353 (Complete_Object_Operation): Retain the entity of the
24354 dispatching operation in the selector of the rewritten node. The
24355 entity will be used in the expansion of dispatching selects.
24356 (Analyze_One_Call): Improve location of the error message associated
24358 (Analyze_Selected_Component): No need to resolve prefix when it is a
24359 function call, resolution is done when parent node is resolved, as
24361 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24362 when attempting to resolve a call transformed from its object notation.
24363 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24364 of the argument list for each interpretation of the operation.
24365 (Try_Object_Operation): The designated type of an access parameter may
24366 be an incomplete type obtained through a limited_with clause, in which
24367 case the primitive operations of the type are retrieved from its full
24369 (Analyze_Call): If this is an indirect call, and the return type of the
24370 access_to_subprogram is incomplete, use its full view if available.
24372 2005-09-01 Javier Miranda <miranda@adacore.com>
24373 Gary Dismukes <dismukes@adacore.com>
24375 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24376 access types the null-exclusion and access-to-constant attributes must
24378 (Analyze_Return_Statement): When the result type is an anonymous access
24379 type, apply a conversion of the return expression to the access type
24380 to ensure that appropriate accessibility checks are performed.
24381 (Analyze_Return_Type): For the case of an anonymous access result type,
24382 generate the Itype and set Is_Local_Anonymous_Access on the type.
24383 Add ??? placeholder for check to disallow returning a limited object
24384 in Ada 2005 unless it's an aggregate or a result of a function call.
24385 Change calls from Subtype_Mark to Result_Definition.
24386 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24387 Result_Definition in call to Make_Function_Specification.
24388 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24389 Set_Result_Definition.
24390 (Make_Inequality_Operator): Change formal Subtype_Mark to
24391 Result_Definition in call to Make_Function_Specification.
24392 (Process_Formals): Create the new null-excluding itype if required.
24393 (New_Overloaded_Entity): For an entity overriding an interface primitive
24394 check if the entity also covers other abstract subprograms in the same
24395 scope. This is required to handle the general case, that is, overriding
24396 other interface primitives and overriding abstract subprograms inherited
24397 from some abstract ancestor type.
24398 (New_Overloaded_Entity): For an overriding entity that comes from
24399 source, note the operation that it overrides.
24400 (Check_Conformance, Type_Conformant): Addition of one new formal
24401 to skip controlling formals in the analysis. This is used to
24402 handle overloading of abstract interfaces.
24403 (Base_Types_Match): Add missing case for types imported from
24404 limited-with clauses
24405 (New_Overloaded_Entity): Add barrier to protect the use of
24406 the "alias" attribute.
24408 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24410 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24411 verify that the procedure and the entry are mode conformant.
24412 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24413 as a different operator, which is often a cut-and-paste error.
24415 2005-09-01 Javier Miranda <miranda@adacore.com>
24416 Ed Schonberg <schonberg@adacore.com>
24418 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24419 used in controlling parameters exclude null because it is necessary to
24420 read the tag to dispatch, and null has no tag.
24421 (Override_Dispatching_Operation): If the previous operation is inherited
24422 from an interface, it becomes hidden and does not participate in later
24425 2005-09-01 Javier Miranda <miranda@adacore.com>
24426 Ed Schonberg <schonberg@adacore.com>
24427 Gary Dismukes <dismukes@adacore.com>
24429 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24430 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24431 the expander will generate the corresponding run-time check to evaluate
24433 (Resolve_Call): Check for legal type of procedure name or prefix that
24434 appears as a trigger in a triggering alternative.
24435 (Valid_Conversion): If expression is ambiguous and the context involves
24436 an extension of System, remove System.Address interpretations.
24437 (Resolve_Qualified_Expression): Reject the case of a specific-type
24438 qualification applied to a class-wide argument. Enhance comment
24439 to explain checking of Original_Node.
24440 (Resolve_Type_Conversion): The location of the error message was not
24441 general enough to handle the general case and hence it has been removed.
24442 In addition, this patch improves the text of the message.
24443 (Resolve_Type_Conversion): Add missing support for access to interface
24445 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24446 do not expand if the expression is the actual in a call, because proper
24447 expansion will take place when the call itself is expanded.
24448 (Resolve_Allocator): If the context is an unchecked conversion, the
24449 allocator inherits its storage pool, if any, from the target type of
24452 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24453 Javier Miranda <miranda@adacore.com>
24455 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24456 inherited interface operation that has an implementation, use the
24457 implementation to avoid spurious ambiguities.
24458 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24459 use the Corresponding_Record_Typ attribute to look for the interface
24460 because it is set by the expander (and hence it is not always
24461 available). For this reason we traverse the list of interfaces
24462 (available in the parent of the concurrent type).
24463 (Interface_Present_In_Ancestor): Handle entities from the limited view
24465 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24467 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24468 from the list of required components.
24469 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24470 primitive procedure of a limited interface with a controlling first
24472 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24474 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24475 capture if it is generated in the second operand of a short-circuit
24477 Do not capture values for variables with address clauses.
24478 (Is_Object_Reference): Treat a function call as an object reference only
24479 if its type is not Standard_Void_Type.
24481 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24483 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24484 to a variable that is statically known to be constant.
24486 2005-09-01 Geert Bosch <bosch@adacore.com>
24487 Robert Dewar <dewar@adacore.com>
24489 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24490 (VAXGF_Safe_First): Idem.
24492 2005-09-01 Robert Dewar <dewar@adacore.com>
24493 Arnaud Charlet <charlet@adacore.com>
24495 * g-dirope.ads: Minor reformatting
24496 Document that bounds of result of Base_Name match the input index
24498 Add documentation on environment variable syntax for Expand_Path
24500 * gnat_ugn.texi: Update documentation to include mention of -m switches
24501 Document new treatment of wide characters in max line length
24503 Remove -gnatL/-gnatZ switches, no longer used.
24504 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24507 * gnat_rm.texi: Add doc for two argument form of pragma
24508 Float_Representation.
24509 Add documentation for pragma No_Strict_Aliasing
24510 Add note that explicit component clause overrides pragma Pack.
24511 Add documentation of pragma Debug_Policy
24513 2005-09-01 Matthew Heaney <heaney@adacore.com>
24515 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24516 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24517 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24518 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24519 draft (Draft 13, August 2005) of Ada Amendment 1.
24521 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24523 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24524 Note that the platform-specific version of g-soccon.ads for VMS is now
24525 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24526 really is a package spec).
24527 Replace s-taspri-linux.ads by s-taspri-posix.ads
24528 Remove references to s-mastop-x86.adb
24530 * system-vxworks-xscale.ads: Removed, no longer used.
24531 * s-vxwork-xscale.ads: Removed, no longer used.
24533 2005-09-01 Robert Dewar <dewar@adacore.com>
24535 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24536 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24537 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24538 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24539 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24540 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24541 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24542 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24543 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24544 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24545 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24546 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24547 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24548 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24549 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24550 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24551 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24552 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24553 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24554 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24555 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24557 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24561 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24563 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24564 Doug Rupp <rupp@adacore.com>
24566 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24568 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24569 this code in the GNAT run-time.
24571 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24574 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24575 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24577 (__gnat_inside_elab_final_code): Moved here from
24578 Standard_Library and only defined for the compiler.
24579 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24580 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24581 using RTPs because directly vectored Interrupt routines are not
24582 supported on this configuration.
24583 (getpid): Do not redefine this function on VxWorks when using RTPs
24584 because this primitive is well supported by the RTP libraries.
24585 (copy_msg): Correct the code that checks for buffer overflow.
24586 Discovered during code reading.
24588 2005-08-29 Olivier Hainque <hainque@adacore.com>
24590 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24591 a library level mutable variable with an initializer, tell
24592 build_allocator to ignore the initializer's size. It may not be large
24593 enough for all the values that might be assigned to the variable later
24596 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24597 Eric Botcazou <ebotcazou@adacore.com>
24599 * trans.c: Protect < in error msg with quote
24600 Replace GCC_ZCX by Back_End_Exceptions.
24601 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24602 has been sufficiently aligned in the record.
24604 2005-08-15 James E. Wilson <wilson@specifix.com>
24606 * system-linux-alpha.ads: Change ia64 to alpha.
24608 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24610 * decl.c, utils.c: Fix comment typos.
24612 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24614 * decl.c, init.c, initialize.c: Fix comment typos.
24616 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24618 Make CONSTRUCTOR use VEC to store initializers.
24619 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24621 * trans.c (extract_values): Likewise.
24622 * utils.c (convert, remove_conversions): Likewise.
24623 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24624 gnat_build_constructor): Likewise.
24626 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24628 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24630 (compare_field_bitpos): Likewise.
24632 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24634 * utils.c (create_var_decl): Only set DECL_COMMON on
24635 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24636 VAR_OR_FUNCTION_DECL_P.
24638 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24640 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24643 2005-07-07 Pascal Obry <obry@adacore.com>
24645 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24646 returned type on Windows.
24648 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24651 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24652 exception in this case.
24653 Simplify the code as "Image (Image'Range)" = "Image".
24655 2005-07-07 Vincent Celier <celier@adacore.com>
24657 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24658 the destructor/constructor attributes for <lib>final/<lib>init.
24660 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24662 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24664 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24665 type if the parameter is not passed by copy but reference by default.
24667 2005-07-07 Javier Miranda <miranda@adacore.com>
24669 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24670 Reimplementation of the support for abstract interface types in order
24671 to leave the code more clear and easy to maintain.
24673 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24674 abstract interface types in order to leave the code clearer and easier
24677 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24678 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24679 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24680 appropriate entry of the secondary dispatch table.
24681 (Make_DT): Add code to inherit the secondary dispatch tables of
24684 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24685 implementing both functionalities by means of a common routine, each
24686 routine has its own code.
24688 2005-07-07 Javier Miranda <miranda@adacore.com>
24690 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24692 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24695 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24698 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24699 use of tag incomplete types.
24701 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24702 give support to tagged incomplete types.
24704 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24705 expression is a discriminant reference and its type is private, as can
24706 happen within a stream operation for a mutable record, use the full
24707 view of the type to resolve the case alternatives.
24708 (Analyze_Assignment): Check wrong dereference of incomplete types.
24710 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24713 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24716 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24717 N_Incomplete_Type_Declaration nodes.
24719 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24720 Tag_Present to give support to tagged incomplete types:
24722 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24725 2005-07-07 Olivier Hainque <hainque@adacore.com>
24728 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24729 definitions for the Unwind wrappers in the compiler case.
24731 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24732 Javier Miranda <miranda@adacore.com>
24734 * par-load.adb (Load): If a child unit is loaded through a limited_with
24735 clause, each parent must be loaded as a limited unit as well.
24737 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24738 Check_Withed_Unit. Return true if there is a previous with_clause for
24739 this unit, whether limited or not.
24740 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24742 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24743 _withed_unit that checks if some package installed through normal with
24744 clauses has a renaming declaration of package whose limited-view is
24745 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24746 of the current Draft document for Ada 2005.
24747 (Analyze_Context): Complete the list of compilation units that
24748 are allowed to contain limited-with clauses. It also contains
24749 checks that were previously done by Install_Limited_Context_Clauses.
24750 This makes the code more clear and easy to maintain.
24751 (Expand_Limited_With_Clause) It is now a local subprogram of
24752 Install_Limited_Context_Clauses, and contains the code that adds
24753 the implicit limited-with clauses for parents of child units.
24754 This functionality was prevously done by Analyze_Context.
24756 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24759 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24760 been erroneously named in a limited-with clause of its own context.
24761 In this case the error has been previously notified by Analyze_Context.
24763 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24765 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24766 generic package that contains local declarations with the same name.
24767 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24769 2005-07-07 Bernard Banner <banner@adacore.com>
24771 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24772 ia64 platform only on platforms that you the GCC unwind library
24773 rather than the system unwind library.
24775 2005-07-07 Thomas Quinot <quinot@adacore.com>
24777 * expect.c: Minor reformatting
24779 2005-07-07 Sergey Rybin <rybin@adacore.com>
24781 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24784 * gnat_ugn.texi: Add description for new gnatpp option
24787 2005-07-04 Thomas Quinot <quinot@adacore.com>
24789 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24790 (Get_Command_Output): New subprogram to launch a process and get its
24791 standard output as a string.
24793 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24794 Olivier Hainque <hainque@adacore.com>
24796 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24797 fetch a code-range descriptor associated with the machine state. On
24798 failure set the machine state's PC to 0; on success, pass the
24799 descriptor to exc_virtual_unwind.
24801 * init.c (Tru64 section): New function __gnat_set_code_loc.
24803 2005-07-04 Vincent Celier <celier@adacore.com>
24805 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24806 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24807 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24808 Remove all auto-initialization code, as this is now done through the
24809 constructor mechanism.
24811 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24812 __gnat_sals_init_using_constructors): New functions.
24814 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24815 Linker_Constructor and Linker_Destructor when switch -a is used.
24817 * bindusg.adb: Add line for new switch -a
24819 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24820 (Gnatbind): When switch -a is used, check if it is allowed
24822 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24824 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24826 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24827 This prevents us from hitting a limitation during the debug info
24828 generation when using stabs.
24829 (Prims_Ptr): Likewise.
24831 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24832 Ed Schonberg <schonberg@adacore.com>
24833 Javier Miranda <miranda@adacore.com>
24835 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24836 N_Object_Declaration, only perform the checks if the Object_Definition
24837 is not an Access_Definition.
24839 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24840 where the parent of an the access definition is an N_Object_Declaration
24841 when determining the Associated_Node_For_Itype and scope of an
24842 anonymous access-to-subprogram type.
24844 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24845 Corresponding_Spec on the body created for a null procedure. Add ???
24846 comment. Remove New_Copy_Tree call on body argument to
24847 Set_Body_To_Inline.
24849 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24850 discriminants, use the type of the actual as well, because the
24851 discriminants may be read by the called subprogram.
24853 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24854 access type we do not need to handle non-limited views.
24855 (Build_Derived_Record_Type): Additional check to check that in case of
24856 private types, interfaces are only allowed in private extensions.
24858 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24860 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24861 <Pragma_Linker_Destructor>: Likewise.
24863 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24864 Pragma_Linker_Destructor.
24866 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24867 ATTR_LINK_DESTRUCTOR.
24868 (static_ctors, static_dtors): New variables.
24870 * misc.c (gnat_expand_body): Output current function as constructor
24871 and destructor if requested.
24873 * par-prag.adb: Add processing for pragma Linker_Constructor and
24876 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24877 extracted from Check_Interrupt_Or_Attach_Handler.
24878 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24879 Implement pragma Linker_Constructor and Linker_Destructor with the
24880 help of Find_Unique_Parameterless_Procedure.
24881 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24883 * snames.h, snames.ads, snames.adb:
24884 Add Name_Linker_Constructor and Name_Linker_Destructor.
24885 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24886 * snames.adb: Remove Name_Alias.
24888 * trans.c: Include cgraph.h.
24889 (build_global_cdtor): New function.
24890 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24892 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24894 (addressable_p) <COMPONENT_REF>: Unconditionally test
24895 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24897 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24898 variable if it is external.
24900 (static_ctors, static_dtors): New global variables.
24901 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24902 <ATTR_LINK_DESTRUCTOR>: Likewise.
24903 (end_subprog_body): Chain function as constructor and destructor
24906 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24907 Remove_Side_Effects with Variable_Ref set to true.
24908 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24909 for non-scalar types even if Variable_Ref is true and for class-wide
24912 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24914 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24915 to prevent spurious warnings.
24917 2005-07-04 Thomas Quinot <quinot@adacore.com>
24919 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24920 Itypes. Itypes are really unexpected there.
24921 (Build_TypeCode_Function): Generalise special processing for Itypes to
24922 handle the case of numeric implicit base types as well as enumerated
24925 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24927 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24928 controlled, indicate the expected type of the dereference that is
24929 created for the call to Deep_Finalize, to prevent spurious errors when
24930 the designated type is private and completed with a derivation from
24931 another private type.
24933 2005-07-04 Vincent Celier <celier@adacore.com>
24935 * make.adb (Change_To_Object_Directory): When unable to change the
24936 current dir to the object directory, output the full path of the
24939 2005-07-04 Matthew Gingell <gingell@adacore.com>
24941 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24943 * indepsw-linux.adb: Replace by...
24945 * indepsw-gnu.adb: ...this new file
24947 2005-07-04 Vincent Celier <celier@adacore.com>
24949 * mlib-prj.adb (Auto_Initialize): New constant String
24950 (SALs_Use_Constructors): New Boolean function
24951 (Build_Library): Call gnatbind with Auto_Initialize switch when
24952 SALs_Use_Constructors returns True.
24954 * mlib-tgt.ads: Minor reformatting
24956 * mlib-utl.ads: Minor reformatting
24958 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24960 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24962 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24963 single protected declarations can have an interface list.
24964 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24965 with seriously malformed entry declarations, and lead to compilation
24966 abandoned messages.
24968 2005-07-04 Javier Miranda <miranda@adacore.com>
24970 * par-load.adb: Load the context items in two rounds.
24972 2005-07-04 Robert Dewar <dewar@adacore.com>
24974 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24976 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24977 Javier Miranda <miranda@adacore.com>
24979 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24980 type extension needs a limited view.
24981 Remove previous restriction on private types available through the
24982 limited-view (only tagged private types were previously allowed).
24983 (Install_Withed_Unit): In the code that implements the
24984 legality rule given in AI-377, exclude a child unit with the name
24985 Standard, because it is a homonym of the Standard environment package.
24987 2005-07-04 Thomas Quinot <quinot@adacore.com>
24989 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24990 overloaded function call, carry interpretations from the original tree
24993 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24995 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24996 types check whether some designated type is a limited view, and use
24997 the non-limited view if available.
24999 2005-07-04 Gary Dismukes <dismukes@adacore.com>
25001 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
25002 constraint of full view of a private view T1 if present, when T2 is a
25003 discriminated full view.
25005 2005-07-04 Thomas Quinot <quinot@adacore.com>
25007 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
25008 actual that is a view conversion of a bit packed array reference.
25010 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25012 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
25013 present before checking whether an interface type covers a synchronized
25016 2005-07-04 Ed Schonberg <schonberg@adacore.com>
25018 * sem_util.adb (Is_Object_Reference): An indexed or selected component
25019 whose prefix is an implicit dereference is an object reference. Removes
25020 spurious errors when compiling with -gnatc.
25022 2005-07-04 Robert Dewar <dewar@adacore.com>
25025 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
25027 2005-07-04 Matthew Gingell <gingell@adacore.com>
25029 * tracebak.c: Enable tracebacks on ia64 platforms
25031 2005-07-04 Vincent Celier <celier@adacore.com>
25033 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
25034 the GNAT BIND command, as gnatbind accepts multiples ALI files with
25035 the -L or -n switches.
25037 2005-07-04 Vincent Celier <celier@adacore.com>
25039 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
25040 correctly computed and the main project data is not modified while
25042 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25043 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25044 c++linker as this does not work on some platforms.
25046 2005-07-04 Matthew Heaney <heaney@adacore.com>
25048 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25050 * a-coinve.adb: Perform constraint checks explicitly.
25052 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25053 Thomas Quinot <quinot@adacore.com>
25055 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25056 new target gen-soccon.
25058 2005-07-04 Robert Dewar <dewar@adacore.com>
25060 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25062 2005-07-04 Thomas Quinot <quinot@adacore.com>
25064 * g-socket.ads (Check_Selector): Minor rewording of comment.
25066 2005-07-04 Vincent Celier <celier@adacore.com>
25068 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25070 2005-07-04 Thomas Quinot <quinot@adacore.com>
25072 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25074 2005-07-04 Sergey Rybin <rybin@adacore.com>
25076 * gnat_ugn.texi: Add description of --eol gnatpp option
25078 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25079 Thomas Quinot <quinot@adacore.com>
25081 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
25082 if the user wants all calls of a subprogram to be flagged,
25083 independently of whether they are made from within the same unit or
25085 Mention restriction for pragma Linker_Alias on some platforms.
25086 Document pragma Linker_Constructor and Linker_Destructor.
25087 Rewrite documentation of Weak_External, Linker_Section and
25088 Linker_Alias pragmas.
25090 2005-07-04 Arnaud Charlet <charlet@adacore.com>
25092 * s-stausa.ads, s-stausa.adb: New files.
25094 2005-06-30 Kelley Cook
25096 * all files: Update FSF address in copyright headers.
25097 * gen-soccon.co (main): Output new FSF address in generated files.
25099 2005-06-28 Paul Brook <paul@codesourcery.com>
25101 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25103 2005-06-14 Olivier Hainque <hainque@adacore.com>
25104 Eric Botcazou <ebotcazou@adacore.com>
25106 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25107 exc_unwind, now that we are generating proper .debug_frame output for
25110 * tracebak.c: Remove the mips-irix section, as we are now using the
25111 s-mastop based unwinder again.
25112 Under SPARC/Solaris, take into account the stack bias to compute the
25113 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
25116 2005-06-14 Doug Rupp <rupp@adacore.com>
25118 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25120 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25122 2005-06-14 Pascal Obry <obry@adacore.com>
25124 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25125 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25126 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25129 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25130 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25131 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25132 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25133 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
25134 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25135 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25136 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25137 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25138 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25139 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25140 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25141 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25142 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25143 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25144 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25145 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25146 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25147 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25148 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25149 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25150 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25151 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25152 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25153 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25154 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25155 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25156 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25157 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
25158 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25159 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25160 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25161 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25162 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25163 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25164 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25165 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25166 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25167 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25168 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25169 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25170 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25171 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25172 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25173 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25174 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25175 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25176 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25177 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25178 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25179 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25180 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25181 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25182 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25183 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25184 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25185 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25186 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25187 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25188 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25189 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25190 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25191 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25192 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25193 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25194 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25195 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25196 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25197 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25198 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25199 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25200 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25201 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25202 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25203 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25204 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25205 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25206 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25207 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25208 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25209 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25210 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25211 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25212 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25213 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25214 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25215 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25216 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25217 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25218 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25219 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25220 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25221 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25222 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25223 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25224 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25225 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25226 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25227 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25228 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25229 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25230 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25231 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25232 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25233 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25234 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25235 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25236 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25237 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25238 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25239 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25240 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25241 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25242 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25243 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25244 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25245 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25246 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25247 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25248 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25249 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25250 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25251 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25252 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25253 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25254 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25255 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25256 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25257 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25258 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25259 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25260 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25261 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25263 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25264 Arnaud Charlet <charlet@adacore.com>
25266 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25267 longer protected objects. They have been replaced by lower-level
25268 suspension objects made up by a mutex and a condition variable (or
25269 their equivalent given a particular OS) plus some internal data to
25270 reflect the state of the suspension object.
25271 (Initialize, Finalize): Add this initialization procedure for
25272 Suspension_Object, which is a controlled type.
25273 (Finalize): Add the finalization procedure for Suspension_Object,
25274 which is a controlled type.
25276 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25277 Ada.Synchronous_Task_Control because there is no longer a need for a
25278 VxWorks specific version of this package. Target dependencies
25279 has been moved to System.Task_Primitives.Operations.
25281 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25283 (InitializeCriticalSection, EnterCriticalSection,
25284 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25285 pCriticalSection by an anonymous access type so that we avoid problems
25286 of accessibility to local objects.
25288 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25289 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25290 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25291 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25292 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25293 set the environment task mask here.
25294 (Current_State): Add this function that returns the state of the
25296 (Set_False): Add this procedure that sets the state of the suspension
25298 (Set_True): Add this procedure that sets the state of the suspension
25299 object to True, releasing the task that was suspended, if any.
25300 (Suspend_Until_True): Add this procedure that blocks the calling task
25301 until the state of the object is True. Program_Error is raised if
25302 another task is already waiting on that suspension object.
25303 (Initialize): Add this procedure for initializing the suspension
25304 object. It initializes the mutex and the condition variable which are
25305 used for synchronization and queuing, and it sets the internal state
25307 (Finalize): Add this procedure for finalizing the suspension object,
25308 destroying the mutex and the condition variable.
25310 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25311 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25312 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25313 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25314 which provides a low-level abstraction (using operating system
25315 primitives) for Ada.Synchronous_Task_Control.
25316 This object is made up by a mutex (for ensuring mutual exclusion), a
25317 condition variable (for queuing threads until the condition is
25318 signaled), a Boolean (State) indicating whether the object is open,
25319 and a Boolean (Waiting) reflecting whether there is a task already
25320 suspended on this object.
25322 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25323 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25324 s-intman-vms.ads, s-intman-mingw.adb,
25325 (Initialize_Interrupts): Removed, no longer used.
25327 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25328 (Setup_Interrupt_Mask): New procedure.
25330 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25332 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25334 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25335 this is no longer done in the body of s-taprop
25336 (Server_Task): Explicitely test for Pending_Action in case
25337 System.Parameters.No_Abort is True.
25339 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25340 is no longer done in the body of s-taprop
25342 2005-06-14 Robert Dewar <dewar@adacore.com>
25344 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25345 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25346 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25347 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25348 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25349 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25350 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25351 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25352 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25353 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25354 system-linux-hppa.ads, system-vms_64.ads,
25355 system-vxworks-alpha.ads: Minor comment update for
25356 AI-362 (unit is Pure).
25358 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25359 Add pragma Pure_05 for AI-362
25360 Make remaining conversion functions obsolescent in Ada 95
25362 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25363 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25364 Add entries for a-wichun and a-zchuni
25365 Add a-widcha a-zchara for AI-395
25366 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25368 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25369 Add entries for a-wichun.o and a-zchuni.o
25370 Entries for a-widcha.o and a-zchara.o
25371 Add entry for a-chacon.o
25373 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25375 * a-chacon.ads, a-chacon.adb: New files.
25377 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25378 categorization violations.
25380 * a-strmap.ads: Add pragma Pure_05 for AI-362
25381 * a-strmap.ads: Add note on implicit categorization for AI-362
25383 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25385 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25386 Set Ada_Version_Explicit, for implementation of AI-362
25387 Add processing for pragma Pure_05 and Preelaborate_05
25388 Add entry for Assertion_Policy pragma
25390 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25391 when needed for proper processing of categorization stuff
25394 For several cases, make errors in preealborate units warnings,
25395 instead of errors, if GNAT_Mode is set. For AI-362.
25397 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25398 preelaborate unit is now warning if in GNAT mode
25400 * s-stoele.ads: Document AI-362 for pragma preelaborate
25402 2005-06-14 Doug Rupp <rupp@adacore.com>
25404 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25405 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25406 Default_Exception_Msg_Max_Length: new parameter.
25408 * a-except.ads: (Exception_Msg_Max_Length): Set to
25409 System.Parameters.Default_Exception_Msg_Max_Length
25410 Add pragma Preelaborate_05 for AI-362
25411 Add warnings off to allow categorization violations for AI-362
25413 2005-06-14 Vincent Celier <celier@adacore.com>
25415 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25416 Process is now in package Processing.
25418 * symbols.ads, symbols.adb:
25419 (Processing): New package, containing procedure Process
25421 * symbols-vms-alpha.adb:
25422 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25424 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25425 symbols-processing-vms-ia64.adb: New files.
25427 2005-06-14 Pascal Obry <obry@adacore.com>
25429 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25430 implementation. This new version generates the proper DllMain routine
25431 to initialize the SAL. The DllMain is generated in Ada and compiled
25432 before being added as option to the library build command.
25434 2005-06-14 Doug Rupp <rupp@adacore.com>
25435 Pascal Obry <obry@adacore.com>
25437 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25438 call to decc$translate_vms.
25439 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25440 need to remove those quotes before catenating the filename.
25441 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25442 * avoid allocating the memory twice for better efficiency;
25443 * allocate 32K buffer for environment expansion as suggested by MSDN;
25444 * prepend ".;" to the path so that current directory is searched too.
25446 2005-06-14 Robert Dewar <dewar@adacore.com>
25448 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25449 instead of raising CE (AI-241)
25450 Add warnings off to allow categorization violations for AI-362
25452 2005-06-14 Robert Dewar <dewar@adacore.com>
25454 * ali-util.adb, gnatbind.adb: Remove references to
25455 Force_RM_Elaboration_Order.
25457 * switch-b.adb: Remove recognition of -f switch
25459 2005-06-14 Pascal Obry <obry@adacore.com>
25461 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25462 implementation which is slightly more efficient.
25464 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25465 Javier Miranda <miranda@adacore.com>
25466 Ed Schonberg <schonberg@adacore.com>
25467 Hristian Kirtchev <kirtchev@adacore.com>
25469 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25470 allocator's designated type is a class-wide type, and compiling for
25471 Ada 2005, emit a run-time check that the accessibility level of the
25472 type given in the allocator's expression is not deeper than the level
25473 of the allocator's access type.
25475 (Tagged_Membership): Modified to gives support to abstract interface
25478 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25480 (Descendant_Tag): New predefined function
25481 (Is_Descendant_At_Same_Level): New predefined function
25482 (Get_Access_Level): New private function
25483 (Set_Access_Level): New private procedure
25484 (IW_Membership): New function. Given the tag of an object and the tag
25485 associated with an interface, evaluate if the object implements the
25487 (Register_Interface_Tag): New procedure used to initialize the table of
25488 interfaces used by the IW_Membership function.
25489 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25490 of the dispatch table.
25491 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25492 table of interfaces of the parent.
25493 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25494 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25495 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25496 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25497 Ada 2005 semantics for the new predefined function.
25499 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25500 call to Descendant_Tag rather than Internal_Tag.
25501 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25502 the accessibility level of the attribute's Item parameter is not deeper
25503 than the level of the attribute's prefix type. Tag_Error is raised if
25504 the check fails. The check is only emitted for Ada_05.
25505 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25506 requested stream attribute, use it.
25507 (Expand_N_Attribute_Reference): If the designated type is an interface
25508 then rewrite the referenced object as a conversion to force the
25509 displacement of the pointer to the secondary dispatch table.
25510 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25511 is a dereference of an object with a constrained partial view.
25513 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25514 type is a class-wide type, emit a run-time check that the accessibility
25515 level of the returned object is not deeper than the level of the
25516 function's master (only when compiling for Ada 2005).
25518 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25519 Action_Nb_Arg): Add entries for new Get_Access_Level and
25520 Set_Access_Level routines in these tables.
25521 (Make_DT): Generate a call to set the accessibility level of the
25522 tagged type in its TSD.
25523 (Make_DT): Code cleanup. The functionality of generating all the
25524 secondary dispatch tables has been moved to freeze_record_type.
25525 (Make_Abstract_Interface_DT): Minor code cleanup.
25526 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25527 this subprogram implements a new algorithm that provides the
25528 same functionality and it is more clear in case of primitives
25529 associated with abstract interfaces.
25530 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25531 clean up, the functionality of this subprogram is now provided
25532 by Set_All_DT_Position.
25533 (Write_DT): New subprogram: a debugging procedure designed to be called
25534 within gdb to display the dispatch tables associated with a tagged
25536 (Collect_All_Interfaces): New subprogram that collects the whole list
25537 of interfaces that are directly or indirectly implemented by a tagged
25539 (Default_Prim_Op_Position): New subprogram that returns the fixed
25540 position in the dispatch table of the default primitive operations.
25541 (Expand_Interface_Actuals): New subprogram to generate code that
25542 displaces all the actuals corresponding to class-wide interfaces to
25543 reference the interface tag of the actual object.
25544 (Expand_Interface_Conversion): New subprogram. Reference the base of
25545 the object to give access to the interface tag associated with the
25546 secondary dispatch table.
25547 (Expand_Interface_Thunk): New subprogram that generates the code of the
25548 thunk. This is required for compatibility with the C+ ABI.
25549 (Make_Abstract_Interface_DT): New subprogram that generate the
25550 declarations for the secondary dispatch tables associated with an
25551 abstract interface.
25552 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25553 attribute for each primitive operation covering interface subprograms
25554 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25555 These subprograms were upgraded to give support to abstract interfaces
25557 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25558 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25559 RE_Set_Access_Level.
25560 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25561 Add support to call the followig new run-time subprograms:
25562 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25564 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25565 match its full declaration when both have an access definition with
25566 statically matching designated subtypes.
25567 (Analyze_Component_Declaration): Delete commented out code that was
25568 incorrectly setting the scope of an anonymous access component's type.
25569 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25570 an access discriminant when the containing type is nonlimited.
25571 (Make_Incomplete_Type_Declaration): Create an incomplete type
25572 declaration for a record type that includes self-referential access
25574 (Check_Anonymous_Access_Types): Before full analysis of a record type
25575 declaration, create anonymous access types for each self-referential
25577 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25578 an access component in this context is a Local_Anonymous_Access, for
25579 proper accessibility checks.
25580 (Access_Definition): Set properly the scope of the anonymous access type
25581 created for a stand-alone access object.
25582 (Find_Type_Of_Object): An object declaration may be given with an access
25584 (Complete_Subprograms_Derivation): New subprogram used to complete
25585 type derivation of private tagged types implementing interfaces.
25586 In this case some interface primitives may have been overriden
25587 with the partial-view and, instead of re-calculating them, they
25588 are included in the list of primitive operations of the full-view.
25589 (Build_Derived_Record_Type): Modified to give support to private
25590 types implemening interfaces.
25591 (Access_Definition): Reject ALL on anonymous access types.
25592 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25593 type derivation to occur at a deeper accessibility level than the
25595 For the case of derivation within a generic body however, disallow the
25596 derivation if the derived type has an ancestor that is a formal type
25597 declared in the formal part of an enclosing generic.
25598 (Analyze_Object_Declaration): For protected objects, remove the check
25599 that they cannot contain interrupt handlers if not declared at library
25601 (Add_Interface_Tag_Components): New subprogram to add the tag components
25602 corresponding to all the abstract interface types implemented by a
25603 record type or a derived record type.
25604 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25605 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25606 Process_Full_View, Record_Type_Declaration): Modified to give
25607 support to abstract interface types
25608 (Collect_Interfaces): New subprogram that collects the list of
25609 interfaces that are not already implemented by the ancestors
25610 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25611 when partial view has no discriminants and full view has defaults.
25612 (Constrain_Access): Reject a constraint on a general access type
25613 if the discriminants of the designated type have defaults.
25614 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25615 full-type declaration or subprogram spec. This is required to handle
25616 nested anonymous declarations.
25617 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25618 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25619 Process_Full_View, Record_Type_Declaration): Modified to give
25620 support to abstract interface types
25621 (Derive_Subprograms): Addition of a new formal to indicate if
25622 we are in the case of an abstact-interface derivation
25623 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25624 to the specification because it is requied to analyze all the
25625 identifiers found in a list of interfaces
25627 * debug.adb: Complete documentation of flag "-gnatdZ"
25629 * exp_ch3.adb: Implement config version of persistent_bss pragma
25630 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25631 testing for TSS presence to properly enforce visibility rules.
25632 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25633 Make_Abstract_Interfaces_DT to generate the secondary tables
25634 associated with abstract interfaces.
25635 (Build_Init_Procedure): Modified to initialize all the tags
25637 (Component_Needs_Simple_Initialization): Similar to other tags,
25638 interface tags do not need initialization.
25639 (Freeze_Record_Type): Modified to give support to abstract interface
25641 (Expand_N_Object_Declaration): Do not generate an initialization for
25642 a scalar temporary marked as internal.
25644 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25645 in-out parameter that is a component in an initialization procedure,
25646 whose constraint might depend on discriminants, and that may be
25647 misaligned because of packing or representation clauses.
25648 (Is_Legal_Copy): New predicate to determine whether a possibly
25649 misaligned in-out actual can actually be passed by copy/return. This
25650 is an error in case the type is by_reference, and a warning if this is
25651 the consequence of a DEC import pragma on the subprogram.
25652 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25654 (Expand_Inlined_Call): Mark temporary generated for the return value as
25655 internal, so that no useless scalar normalization is generated for it.
25656 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25657 null procedure can always be inlined.
25658 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25659 procedure, generate an explicit empty body for it.
25661 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25662 Given a type implementing an interface, returns the corresponding
25663 access_disp_table value.
25664 (Find_Interface_Tag): New subprogram. Given a type implementing an
25665 interface, returns the record component containing the tag of the
25667 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25668 previous ones that return the corresponding tag and access_disp_table
25670 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25671 is a predefined primitive operation.
25672 (Expand_Subtype_From_Expr): If the expression is a selected component
25673 within an initialization procedure, compute its actual subtype, because
25674 the component may depend on the discriminants of the enclosing record.
25676 * i-cpp.ads, i-cpp.adb:
25677 This package has been left available for compatibility with previous
25678 versions of the frontend. As part of the new layout this is now a
25679 dummy package that uses declarations available at a-tags.ads
25681 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25682 "constant access" and "aliased [constant] access" when not compiling
25684 Suppress Ada 2005 keyword warning if -gnatwY used
25685 (P_Identifier_Declarations): Add support for object declarations with
25686 access definitions.
25687 (Private_Extension_Declaration): Complete the documentation
25688 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25689 attribute in case of private extension declaration
25690 (P_Type_Declaration): Mark as "abstract" the type declarations
25691 corresponding with protected, synchronized and task interfaces
25692 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25693 for a subprogram or instance declaration.
25695 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25696 instantiation that is a dispatching operation has controlling access
25697 parameters that are null excluding.
25698 Save and restore Ada_Version_Explicit, for implementation of AI-362
25699 (Validate_Derived_Type_Instance): Add check for abstract interface
25701 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25702 the generic that is created to represent the formal package.
25703 (Analyze_Package_Instantiation): Instantiate body immediately if the
25704 package is a predefined unit that contains inlined subprograms, and
25705 we are compiling for a Configurable_Run_Time.
25706 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25707 If the program has a null default, generate an empty body for it.
25709 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25710 error message condition, null procedures are correctly detected now.
25711 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25712 for subprograms in the context of protected types. Instead, the
25713 indicator is examined in Sem_Ch9 while analysing the subprogram
25715 (Check_Overriding_Indicator): Check consistency of overriding indicator
25716 on subprogram stubs as well.
25717 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25719 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25720 the type of the first formal is a concurrent type, replace this type
25721 by the corresponding record type.
25722 (Analyze_Subprogram_Body): Undo the previous work.
25723 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25724 analysis of the prefix ends up analyzing the call itself, after which
25726 (Has_Interface_Formals): New subprogram subsidiary to analyze
25727 subprogram_specification that returns true if some non
25728 class-wide interface subprogram is found
25729 (New_Overloaded_Entity): Modified to give support to abstract
25731 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25732 access to subprograms must be recursive.
25733 (Is_Unchecked_Conversion): Improve the test that recognizes
25734 instantiations of Unchecked_Conversion, and allows them in bodies that
25735 are to be inlined by the front-end. When the body comes from an
25736 instantiation, a reference to Unchecked_Conversion will be an
25737 Expanded_Name, even though the body has not been analyzed yet.
25738 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25739 Must_Override and Must_Not_Override, to better express intent of AI.
25740 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25741 that it is consistent with the overrinding status of the subprogram
25743 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25745 If the subprogram is a null procedure, indicate that it does not need
25748 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25749 available through limited-with clauses.
25750 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25751 allowed as the last primitive of a tagged type if it has no previous
25753 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25754 to give support to abstract interface types
25756 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25757 in the case where the target type is an anonymous access type of an
25758 object or component (that is, when Is_Local_Anonymous_Access is true).
25759 Prevent the special checks for conversions of access discriminants in
25760 the case where the discriminant belongs to a nonlimited type, since
25761 such discriminants have their accessibility level defined in the same
25762 way as a normal component of an anonymous access type.
25763 (Resolve_Allocator): When an allocator's designated type is a class-wide
25764 type, check that the accessibility level of type given in the
25765 allocator's expression or subtype indication is not statically deeper
25766 than the level of the allocator's access type.
25767 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25768 name in a discriminant constraint of a record component.
25769 (Resolve_Explicit_Dereference): Do not check whether the type is
25770 incomplete when the dereference is a use of an access discriminant in
25771 an initialization procedure.
25772 (Resolve_Type_Conversion): Handle conversions to abstract interface
25774 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25775 abstract interface type is always valid.
25776 (Valid_Conversion): Modified to give support to abstract interface types
25777 (Resolve_Actuals): Enable full error reporting on view conversions
25778 between unrelated by_reference array types.
25779 The rule for view conversions of arrays with aliased components is
25780 weakened in Ada 2005.
25781 Call to obsolescent subprogram is now considered to be a violation of
25782 pragma Restrictions (No_Obsolescent_Features).
25783 (Check_Direct_Boolean_Operator): If the boolean operation has been
25784 constant-folded, there is nothing to check.
25785 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25786 check on possible violation of restriction No_Direct_Boolean_Operators
25787 until after expansion of operands, to prevent spurious errors when
25788 operation is constant-folded.
25790 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25791 Has_Compatible_Type): Modified to give support to abstract interface
25793 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25794 of a given type implements a given interface
25796 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25797 prefix is a parameterless function that returns an access_to_procedure.
25798 (Transform_Object_Operation): Handle properly function calls of the
25799 form Obj.Op (X), which prior to analysis appear as indexed components.
25800 (Analyze_One_Call): Complete the error notification to help new Ada
25802 (Analyze_Allocator): For an allocator without an initial value, where
25803 the designated type has a constrained partial view, a discriminant
25804 constraint is illegal.
25806 2005-06-14 Robert Dewar <dewar@adacore.com>
25808 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25809 do with treatment of Set_Col when positioned at end of line character.
25811 2005-06-14 Robert Dewar <dewar@adacore.com>
25813 * atree.adb: (Elist*): Protect against uninitialized field
25815 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25817 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25818 for an attribute reference that returns an access type.
25819 (Apply_Discriminant_Check): No need for check if (designated) type has
25820 constrained partial view.
25822 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25823 both bound checks, rather than a conjunction.
25824 (Insert_Valid_Check): If the expression is an actual that is an indexed
25825 component of a bit-packed array, force expansion of the packed element
25826 reference, because it is specifically inhibited elsewhere.
25828 2005-06-14 Vincent Celier <celier@adacore.com>
25830 * clean.adb (Clean_Project): Correctly delete executable specified as
25831 absolute path names.
25833 * make.adb (Gnatmake): Allow relative executable path names with
25834 directory information even when project files are used.
25835 (Change_To_Object_Directory): Fail gracefully when unable to change
25836 current working directory to object directory of a project.
25837 (Gnatmake): Remove exception handler that could no longer be exercized
25838 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25839 may be deallocated by Normalize_Arguments.
25840 (Collect_Arguments): Eliminate empty arguments
25842 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25843 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25844 (Check_Project): Return False when Project is No_Project. Return True
25845 when All_Projects is True.
25846 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25847 All_Projects to True.
25850 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25851 Javier Miranda <miranda@adacore.com>
25852 Thomas Quinot <quinot@adacore.com>
25853 Robert Dewar <dewar@adacore.com>
25854 Hristian Kirtchev <kirtchev@adacore.com>
25855 Gary Dismukes <dismukes@adacore.com>
25857 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25858 anonymous access types, to indicate that the accessibility level of
25859 the type is determined by that of the enclosing declaration.
25860 (Has_Persistent_BSS): New flag
25861 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25862 of this attribute with functions.
25863 (Is_Primitive_Wrapper): Remove the barrier.
25864 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25865 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25867 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25868 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25870 (Is_Pure_Unit_Access_Type): New flag
25871 (Abstract_Interfaces): Complete the assertion to cover all usages.
25872 (Set_Is_Interface): Complete the assertion to cover all usages.
25873 (Is_Primitive_Wrapper): New attribute.
25874 (Is_Obsolescent): Now applies to all entities (though it is only set
25875 for subprograms currently)
25876 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25877 which solves various problems concerning access subtypes.
25878 (Has_Persistent_BSS): New flag
25879 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25880 Remove these subprograms because this attribute is currently
25883 Has_Specified_Stream_Input (Flag190)
25884 Has_Specified_Stream_Output (Flag191)
25885 Has_Specified_Stream_Read (Flag192)
25886 Has_Specified_Stream_Write (Flag193)
25887 Present in all type and subtype entities. Set for a given view if the
25888 corresponding stream-oriented attribute has been defined by an
25889 attribute definition clause. When such a clause occurs, a TSS is set
25890 on the underlying full view; the flags are used to track visibility of
25891 the attribute definition clause for partial or incomplete views.
25892 (Is_Pure_Unit_Access_Type): New flag
25893 Clarify use of Is_Internal.
25894 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25895 internally generated to wrap the invocation of tasks and protected
25896 types that implement interfaces.
25897 (Implementation_Base_Type): Documentation correction
25898 (Is_Obsolescent): Now applies to all entities (though it is only set
25899 for subprograms currently)
25900 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25901 which solves various problems concerning access subtypes.
25903 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25904 for examined parameters. Identify unequal parameter list lengths as
25905 non-conformant parameters.
25906 (Overriding_Possible): Do not check for "All" qualifier in declaration
25907 of controlling access parameter, following prescription of AI-404.
25908 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25909 that build the procedure body that wraps an entry invocation
25910 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25911 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25912 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25913 give support to abstract interface types
25915 * freeze.adb (Freeze_Entity): Issue error message if
25916 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25917 type has no storage pool (Ada 2005) AI-366.
25918 Also modified to give support to abstract interface types
25919 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25920 Inline_Always pragma.
25922 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25923 now begin an entry declaration.
25924 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25925 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25926 a subprogram declaration preceded by an overriding indicator.
25927 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25928 declarations or subprogram declarations preceded by reserved words
25929 "not" or "overriding".
25930 (P_Entry_Declaration): Update comment. Parse and check overriding
25931 indicator, set semantic flags of entry declarations.
25932 (P_Task): New error message in case of private applied
25933 to a task type declaration.
25934 (P_Protected): New error message in case of private applied
25935 to a task type declaration.
25937 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25938 in which the full view of a type implementing an interface is a
25940 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25941 Declare_Inherited_Private_Subprograms): If an explicit operation
25942 overrides an operation that is inherited in the private part, mark the
25943 explicit one as overriding, to enable overriding indicator checks.
25944 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25945 full view to partial view, to simplify handling in back-end.
25947 * sprint.adb: Print interface lists where needed: derived types,
25948 protected types, task types.
25949 output "is null" for null procedures. Part of implementation of
25951 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25952 relaxation of rules for access types in pure, shared passive partitions.
25954 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25955 first read discriminants into temporary objects, performing checks on
25956 the read values, then possibly performing discriminant checks on the
25957 actual (if it is constrained), and only finally reading the components
25958 into a constrained temporary object.
25959 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25960 case of reading discriminants of a mutable record type to recognize
25961 the new form of the code generated by
25962 Build_Mutable_Record_Read_Procedure.
25964 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25965 of a simple call to Make_TSS_Name.
25966 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25967 buffer, in order for Is_TSS to work correctly on local TSS names.
25969 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25970 Is_Local_Anonymous_Access to check legaliy of attributes in the
25971 context of access components and stand-alone access objects.
25972 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25973 treated as available for a limited private type if there is an
25974 attribute_definition_clause that applies to its full view, but not in
25975 other cases where the attribute is available for the full view
25976 (specifically, the sole fact that the full view is non-limited does not
25977 make the attribute available for the partial view).
25978 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25979 non-overloaded intrinsic subprogram.
25980 (Check_Stream_Attribute): Reject an attribute reference for an
25981 unavailable stream attribute even if the prefix is not a limited type
25982 (case of a 'Input attribute reference for an abstract, non-classwide
25984 (Stream_Attribute_Available): New function to determine whether a stream
25985 attribute is available at a place.
25986 (Check_Attribute): Use Stream_Attribute_Available instead of just
25987 testing for TSS presence on the implementation base type.
25988 (Analyze_Attribute): Modified to give support to task interfaces.
25989 (Analyze_Access_Attribute): Add error check for use of an Access (or
25990 Unrestricted_Access) attribute with a subprogram marked as
25992 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25993 an Address attribute with a subprogram marked as Inline_Always.
25994 Update Eval_Attribute to handle new value of Width from AI-395
25996 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25997 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25998 Factor common code across the stream-oriented attribute circcuits into
25999 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
26000 processing is functionally identical to the previous duplicated one,
26001 except that an expression that denotes an abstract subprogram will now
26002 be rejected, as mandated by AI-195 item 5.
26004 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
26005 Is_Local_Anonymous_Access to apply accessibility checks to access
26006 components and stand-alone access objects.
26007 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
26009 (Is_Potentially_Persistent_Type): New function
26010 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
26011 a heap-object whose type has a constrained partial view, the object is
26012 unconstrained and the component may depend on a discriminant, making its
26015 * sinfo.ads, sinfo.adb
26016 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
26017 (Must_Override): Flag applicable to N_Entry_Declaration.
26018 Indicate that interface_list can appear in single task and single
26019 protected declarations.
26020 Replace Is_Overriding and Not_Overriding with Must_Override and
26021 Must_Not_Override, to better express intent of AI.
26022 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
26023 of an overriding indicator in a subprogram or instance.
26024 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
26025 Add the overriding indicator [[not] overriding] construct to the
26026 following grammar productions:
26028 GENERIC_INSTANTIATION
26029 SUBPROGRAM_SPECIFICATION
26031 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
26032 can start with an overriding indicator.
26034 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
26035 flags accordingly on subrogram specifications or instances.
26038 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
26039 overriding_indicator, if present, is consistent with status of spec.
26040 Improve error message for null-excluding checks on controlling access
26042 (Check_In_Previous_With_Clause): Protect the frontend against
26043 previously reported critical errors in the context clauses.
26044 Save and restore Ada_Version_Explicit, for implementation of AI-362
26045 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26046 operation verify that controlling formals of the renamed entity that
26047 are access parameters are explicitly non-null.
26048 (Find_Expanded_Name): Improve error message when prefix is an illegal
26049 reference to a private child unit.
26051 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
26052 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
26053 Rewrite to correspond to new wide character names in AI-395
26055 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26056 default procedures.
26058 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26059 Robert Dewar <dewar@adacore.com>
26061 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26062 code, not on the bodies of predefined operations, to cut down on
26065 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26067 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26068 be expanded in place. The size computation does not require a
26069 subtraction, which would raise an exception on a compiler built with
26070 assertions when the upper bound is Integer'first.
26071 (Flatten): For an array of composite components, take into account the
26072 size of the components to determine whether it is safe to expand the
26073 array into a purely positional representation.
26075 2005-06-14 Thomas Quinot <quinot@adacore.com>
26077 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26078 denoting a formal parameter into account.
26080 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26082 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26083 the entry_call alternative of a conditional entry call, wrap the
26084 conditional entry call itself.
26086 2005-06-14 Nicolas Setton <setton@adacore.com>
26087 Ed Schonberg <schonberg@adacore.com>
26089 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26090 the "simple_choice" member in a variant record, in accordance with the
26091 description in the package spec: the information output for a constant
26092 should be "S number", not "SS number".
26093 (Get_Encoded_Name): Return at once if not generating code. Avoids name
26094 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26096 2005-06-14 Thomas Quinot <quinot@adacore.com>
26098 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26099 RACW without any primitives, do not generate the if statement for
26100 dispatching by name in the PolyORB/DSA case, as it would be malformed
26101 (it would have an Elsif_Parts list that is not No_List, but with a
26104 2005-06-14 Robert Dewar <dewar@adacore.com>
26106 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26108 2005-06-14 Jose Ruiz <ruiz@adacore.com>
26110 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26111 can determine whether pragma Suppress_Exception_Locations is in effect.
26113 * utils2.c (build_call_raise): Do not pass the file name to the
26114 exception handler if pragma Suppress_Exception_Locations is in effect.
26115 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26117 2005-06-14 Emmanuel Briot <briot@adacore.com>
26119 * g-debpoo.adb (Deallocate, Dereference): Improve output.
26121 2005-06-14 Nicolas Roche <roche@adacore.com>
26123 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26125 (Next_Level): Fix minor bug in handling of ../dir case
26126 (Read): Add dir separator to Directory name so that "" is understood as
26129 2005-06-14 Pascal Obry <obry@adacore.com>
26131 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26132 releasing the items.
26134 2005-06-14 Vincent Celier <celier@adacore.com>
26135 Cyrille Comar <comar@adacore.com>
26137 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26138 with output file descriptor and with output file name.
26139 (Dup, Dup2): Now global procedures as they are used by two subprograms
26140 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26142 2005-06-14 Thomas Quinot <quinot@adacore.com>
26145 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26147 (Create_Selector): Bind listening socket used to create the signalling
26148 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26149 Set listen backlog to 1 to ensure that we detect socket theft by a
26150 failure of our own connect(2) call.
26151 (Check_Selector): Improve documentation of the selector mechanism.
26152 (Broadcast_Inet_Addr): New constant.
26154 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26156 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26157 type which turns out to be an incomplete and incorrect fix.
26158 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26159 of the type is declared in a record (for determination of insertion
26161 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26162 a private type and ensure that the primary entity is used for the type
26163 of the newly created function's V formal by taking the Etype of the
26166 2005-06-14 Javier Miranda <miranda@adacore.com>
26167 Jose Ruiz <ruiz@adacore.com>
26168 Robert Dewar <dewar@adacore.com>
26169 Ed Schonberg <schonberg@adacore.com>
26171 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26172 that indicates if we are parsing a compilation unit found in a
26173 limited-with clause.
26174 It is use to avoid the circularity check.
26176 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26177 we are parsing a compilation unit found in a limited-with clause. This
26178 is use to avoid the circularity check.
26180 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26181 unit as a consequence of parsing a limited-with clause. This is used
26182 to avoid the circularity check.
26184 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26185 (Analyze_Context): Limited-with clauses are now allowed
26186 in more compilation units.
26187 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26188 againts previously reported critical errors in context clauses
26189 (Install_Limited_Withed_Unit): Code cleanup plus static detection
26190 of two further errors: renamed subprograms and renamed packages
26191 are not allowed in limited with clauses.
26192 (Install_Siblings): Do not install private_with_clauses on the package
26193 declaration for a non-private child unit.
26194 (Re_Install_Parents): When a parent of the subunit is reinstalled,
26195 reset visibility of child units properly.
26196 (Install_Withed_Unit): When a child unit appears in a with_clause of its
26197 parent, it is immediately visible.
26199 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26200 Emmanuel Briot <briot@adacore.com>
26202 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26203 declared within an inlined body as referenced, to prevent spurious
26205 (Output_One_Ref): If an entity renames an array component, indicate in
26206 the ALI file that this aliases (renames) the array. Capture as well
26207 function renamings that rename predefined operations.
26208 Add information about generic parent for package and subprogram
26210 (Get_Type_Reference): For a subtype that is the renaming of an actual in
26211 an instantiation, use the first_subtype to ensure that we don't generate
26212 cross-reference information for internal types.
26213 For objects and parameters of a generic private type, retain the '*'
26214 indicator to distinguish such an entity from its type.
26216 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26217 to store information about instantiated entities.
26219 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26222 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26223 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26226 2005-06-10 Doug Rupp <rupp@adacore.com>
26227 Arnaud Charlet <charlet@adacore.com>
26228 Olivier Hainque <hainque@adacore.com>
26229 Jose Ruiz <ruiz@adacore.com>
26231 * Make-lang.in: Add initialize.o when needed.
26232 Remove obsolete references to RT_FLAGS.
26233 Add missing dependencies for sdefault.o
26235 * initialize.c: New file.
26237 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26238 [VMS] cond_signal_table: Fix problem in declaration.
26239 [VMS] __gnat_error_handler: rewrite.
26240 Move all __gnat_initialize() routines to initialize.c
26241 Specialize the former "hpux" section to "hppa hpux", as this is what the
26242 section really is here for and we now have other hpux ports that need
26243 different contents.
26244 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26245 function for this target. Adjust PC by one in the machine context. This
26246 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26247 it is more reliable to do that in the signal handler itself.
26248 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26249 flags, so that the handler is passed the context structure to adjust
26250 prior to the raise.
26251 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26252 SA_SIGINFO sigaction should look like. Call
26253 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26254 Machine_State_Operations stuff.
26255 Add conditional code so that the x86_64 is also supported.
26257 2005-06-14 Pascal Obry <obry@adacore.com>
26259 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26262 2005-06-14 Robert Dewar <dewar@adacore.com>
26264 * opt.ads, opt.adb: New flags for persistent_bss mode
26265 Add Ada_Version_Explicit, for implementation of AI-362
26266 Add Assertions_Enabled_Config and associated handling
26267 Needed since setting can be changed with Assertion_Policy pragma
26268 Add new flag Warn_On_Ada_2005_Compatibility
26270 * switch-c.adb: Recognize -gnatwy/Y
26271 Set Ada_Version_Explicit, for implementation of AI-362
26272 The -gnatg switch now includes -gnatyu
26274 * usage.adb: Add -gnatwy/Y
26275 Remove wrong asterisk on -gnatwX line
26276 Add line for -gnatyu switch
26278 2005-06-14 Vincent Celier <celier@adacore.com>
26280 * osint.adb (Add_Default_Search_Dirs): Put source and object
26281 directories of project files before directories coming from
26282 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26284 2005-06-14 Robert Dewar <dewar@adacore.com>
26287 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26288 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26290 2005-06-14 Vincent Celier <celier@adacore.com>
26292 * prep.adb (Preprocess): Ignore error when scanning the first token of
26295 2005-06-14 Vincent Celier <celier@adacore.com>
26297 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26298 (Check_Stand_Alone_Library): If the specified reference symbol file does
26299 not exist, only issue a warning when the symbol policy is not
26300 Controlled. And, when symbol policy is Compliant, set the symbol
26301 policy to Autonomous.
26303 2005-06-14 Vincent Celier <celier@adacore.com>
26305 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26306 when the project file in a with clause is not the last one, that is the
26307 project file name is followed by a comma.
26308 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26309 (Print): Issue list of project files separated by commas in with clauses
26310 according to the values returned by Is_Not_Last_In_List.
26311 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26312 (Set_Is_Not_Last_In_List): New procedure
26314 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26316 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26318 2005-06-14 Robert Dewar <dewar@adacore.com>
26320 * scng.adb: Add call to new Check_EOF routine
26321 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26322 Add some comments regarding wide character handling
26324 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26326 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26328 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26329 characters are now considered graphic characters and hence yield false
26332 * nmake.adt: Modify header so that xnmake does not generate output
26333 files with multiple blank lines.
26335 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26336 not have an extra blank line
26338 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26340 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26341 expression when the component type is an anonymous access type to
26342 ensure that appropriate accessibility checks are done.
26344 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26345 expression of an assignment when the target object is of an anonymous
26346 access type. This ensures that required accessibility checks are done.
26347 (One_Bound): Move the check for type Universal_Integer to
26349 (Process_Bounds): Check whether the type of the preanalyzed range is
26350 Universal_Integer, and in that case set Typ to Integer_Type prior
26351 to setting the type of the original range and the calls to One_Bound.
26353 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26355 * sem_case.adb (Expand_Others_Choice): Improve warning.
26357 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26359 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26360 constraint of full view if present, when other type is discriminated.
26361 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26362 when the pointer is known to be non-null, and emit appropriate warning.
26364 2005-06-14 Robert Dewar <dewar@adacore.com>
26365 Ed Schonberg <schonberg@adacore.com>
26368 * sem_prag.adb: Implement pragma Persistent_BSS
26369 Remove obsolete pragma Persistent_Data, Persistent_Object
26370 Set Ada_Version_Explicit, for implementation of AI-362
26371 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26372 Add processing for pragma Pure_05 and Preelaborate_05
26373 Add processing for Assertion_Policy pragma
26374 Add pragma identifiers for Assert
26375 (Analyze_Pragma, case Assert): Check number of arguments
26376 (Process_Inline): Additional guard against an illegal program, where the
26377 argument of the pragma is undefined, and warnings on redundant
26378 constructs are enabled.
26379 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26380 Ada_05 to this pragma, specifying that the pragma is only active in
26382 (Check_Arg_Order): New procedure
26383 Add appropriate calls to this procedure throughout
26384 Also throughout, check entity name before doing any other checks
26386 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26387 Remove obsolete pragma Persistent_Data, Persistent_Object
26388 Add entries for pragma Pure_05 and Preelaborate_05
26389 Add entries for Assertion_Policy pragma and associated names
26390 Add some names for pragma argument processing
26392 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26394 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26396 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26397 appears within a negation (either from source or as a rewriting of
26398 inequality) adjust text of warning accordingly.
26400 2005-06-14 Thomas Quinot <quinot@adacore.com>
26402 * s-strxdr.adb: Follow AI95-00132
26404 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26406 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26408 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26409 Jose Ruiz <ruiz@adacore.com>
26411 * s-tposen.adb, s-tpobop.adb
26412 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26414 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26415 there is no violation of the Max_Entry_Queue_Length restriction (if it
26416 has been set); Program_Error is raised otherwise.
26417 (Requeue_Call): Before requeuing the task on the target entry queue we
26418 check that there is no violation of the Max_Entry_Queue_Length
26419 restriction (if it has been set); Program_Error is raised otherwise.
26421 2005-06-14 Robert Dewar <dewar@adacore.com>
26423 * styleg.adb: Fix several remaining problems in -gnatyu switch
26424 Blank line count not reset at start
26425 Scanning outside source buffer in some cases
26426 Confusing message for blanks at end of file
26427 Non-empty blank lines not recognized
26429 * nmake.adt: Modify header so that xnmake does not generate output
26430 files with multiple blank lines.
26432 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26433 not have an extra blank line
26435 2005-06-14 Sergey Rybin <rybin@adacore.com>
26437 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26439 2005-06-14 Doug Rupp <rupp@adacore.com>
26440 Vincent Celier <celier@adacore.com>
26442 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26445 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26446 Remove "Library" command.
26447 Change keyword for style check -gnatyd from NOCRLF to
26449 Remove useless second style check keyword NONE
26450 Remove help documentation for inexistent style check keyword
26452 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26453 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26454 Add UNNECESSARY_BLANK_LINES for -gnatyu
26455 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26457 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26459 2005-06-14 Vincent Celier <celier@adacore.com>
26461 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26462 gprmake was invoked with -d.
26463 (Compile_Sources): If -d was used, output the "completed ..." message
26464 for each compilation.
26465 (Scan_Arg): Recognize new switch -d
26466 When -c and at least one main is specified, set
26467 Unique_Compile to True to guarantee that no other sources will be
26470 2005-06-14 Matthew Heaney <heaney@adacore.com>
26472 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26473 * a-swuwha.ads, a-swuwha.adb: New files
26475 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26476 * a-szuzha.ads, a-szuzha.adb: New files.
26478 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26479 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26480 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26481 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26482 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26483 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26484 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26485 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26486 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26487 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26490 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26491 Olivier Hainque <hainque@adacore.com>
26492 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26493 Pascal Obry <obry@adacore.com>
26495 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26497 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26498 making a temporary around a procedure call because of non-addressable
26500 (process_freeze_entity): If entity is a private type, capture size
26501 information that may have been computed for the full view.
26502 (tree_transform, case N_Allocator): If have initializing expression,
26503 check type for Has_Constrained_Partial_View and pass that to
26505 (tree_transform, case N_Return_Statement): Pass extra arg to
26508 * decl.c (annotate_value): Remove early return if -gnatR is not
26510 (gnat_to_gnu_field): Don't make a packable type for a component clause
26511 if the position is byte aligned, the field is aliased, and the clause
26512 size isn't a multiple of the packable alignment. It serves no useful
26513 purpose packing-wise and would be rejected later on.
26514 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26517 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26518 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26520 (create_concat_name): Idem.
26522 2005-06-10 Robert Dewar <dewar@adacore.com>
26523 Eric Botcazou <ebotcazou@adacore.com>
26524 Ben Brosgol <brosgol@adacore.com>
26525 Cyrille Comar <comar@adacore.com>
26526 Sergey Rybin <rybin@adacore.com>
26527 Pascal Obry <obry@adacore.com>
26529 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26530 Document second argument (Ada_05) of pragma Obsolescent
26531 Add note that call to subprogram marked with pragma Obsolescent
26532 is now considered to be a violation of program Restrictions
26533 (No_Obsolescent_Features).
26534 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26535 that only machine-dependent attributes are supported.
26538 Commented out menu lines and empty section for gnatclean examples
26540 Fix some over long lines
26541 Clarify and enhance documentation of ADA_PROJECT_PATH.
26542 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26543 Mention new switch -fcallgraph-info.
26544 Mention new switch -fstack-usage.
26545 For gnatpp, replace '-notab' with '-N' and add this option to Index
26546 Corrected VMS example.
26547 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26549 Add documentation for -gnatyu switch (unnecessary blank lines)
26550 Document new switch -U for GNAT PRETTY and GNAT METRIC
26551 Add note about Stdcall being handled as C convention on non Windows OS.
26552 Remove some junk typo in description of gnatbind -S switch
26553 Remove reference to Extensions_Allowed pragma
26554 Document the new order of the directories to be searched (source and
26555 object directories of project files before directories in ADA_*_PATH
26556 environment variables.
26558 * g-trasym.ads: Document that IRIX is supported
26560 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26562 * Makefile.in: Add initialize.o when needed.
26563 Adapt to new VMS package body Symbols and subunits
26564 No specialized version of a-sytaco is needed for VxWorks.
26566 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26567 * a-zchara.ads, a-widcha.ads: New files.
26569 * system-hpux-ia64.ads: New file.
26571 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26572 is imported from the VxWorks kernel.
26574 2005-06-14 Robert Dewar <dewar@adacore.com>
26576 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26577 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26578 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26579 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26580 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26581 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26582 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26583 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26584 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26585 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26586 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26587 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26589 2005-06-14 Thomas Quinot <quinot@adacore.com>
26591 * xeinfo.adb: Fix typo in comment
26593 2005-06-14 Javier Miranda <miranda@adacore.com>
26595 * repinfo.ads: Fix typo in comment
26597 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26599 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26600 Parent_Tag is now in the visible part of Ada.Tags).
26601 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26602 using imported function.
26604 2005-06-14 Bernard Banner <banner@adacore.com>
26606 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26607 also apply for handling support for VxSim 653.
26609 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26611 * xsnames.adb: Add automatic generation of snames.h.
26613 2005-06-14 Thomas Quinot <quinot@adacore.com>
26615 * gen-soccon.c: Add IP_MULTICAST_IF constant
26616 Minor reformatting and adjustments to prevent warnings.
26618 2005-06-14 Pascal Obry <obry@adacore.com>
26620 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26622 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26624 * trans.c (gnat_gimplify_expr): Call
26625 recompute_tree_invarant_for_addr_expr when we change
26626 the operand of the ADDR_EXPR.
26628 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26630 * misc.c: Don't include errors.h.
26632 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26634 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26636 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26638 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26640 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26642 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26645 * Makefile.in: Make TGT_LIB behave correctly.
26647 2005-04-23 DJ Delorie <dj@redhat.com>
26649 * misc.c: Adjust warning() callers.
26651 2005-04-16 Laurent Guerby <laurent@guerby.net>
26654 * a-nudira.adb (Value): Check for valid string.
26655 * a-nuflra.adb (Value): Likewise.
26657 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26659 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26661 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26663 * adaint.c, init.c, tracebak.c: Fix comment typos.
26664 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26666 2005-04-07 Laurent Guerby <laurent@guerby.net>
26667 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26669 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26670 * system-hpux.ads: Define Signed_Zeros to be True.
26671 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26673 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26675 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26676 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26679 2005-03-30 Tom Tromey <tromey@redhat.com>
26681 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26683 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26685 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26687 2005-03-29 Robert Dewar <dewar@adacore.com>
26689 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26690 fixed-point expression has value that is not a multiple of the Small
26693 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26695 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26698 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26700 2005-03-29 Vincent Celier <celier@adacore.com>
26702 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26703 (Build_Dynamic_Library.Version_String): Return the empty string when
26704 Lib_Version is empty or when the symbol policy is not Autonomous.
26706 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26707 a symbol is not in the reference symbol file, increase the Major ID
26708 and set the Minor ID to 0.
26709 Use gsmatch=lequal instead of gsmatch=equal
26711 2005-03-29 Doug Rupp <rupp@adacore.com>
26713 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26714 name and translate.
26716 2005-03-29 Javier Miranda <miranda@adacore.com>
26718 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26719 (Inherit_DT): The first formal has been redefined as a Tag.
26720 This allows us the removal of the subprogram Get_TSD.
26721 (TSD): Replace the call to Get_TSD by the actual code.
26723 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26724 (Make_DT): Upgrade the call to Inherit_TSD according to the
26725 new interface: the first formal is now a Tag.
26727 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26728 redefined as a Tag.
26729 This change allows us to remove the subprogram Get_TSD.
26730 (CPP_Get_TSD): Subprogram removed.
26731 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26733 * rtsfind.ads: Remove support to call the run-time
26736 2005-03-29 Robert Dewar <dewar@adacore.com>
26738 * errutil.adb, errout.adb:
26739 Minor comment updates on Line_Terminator references
26741 * par-ch10.adb: Add ??? comment about line terminator
26743 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26744 (check dos line terminator).
26745 (Check_Line_Max_Length): New procedure, split off from the existing
26746 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26747 be properly recognized.
26749 * styleg.adb: Add ??? comment for line terminator reference
26751 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26752 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26754 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26755 (check dos line terminator).
26756 (Check_Line_Max_Length): New procedure, split off from the existing
26757 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26758 be properly recognized.
26760 * stylesw.ads, stylesw.adb:
26761 Add handling for new -gnatyd switch (check dos line terminator)
26763 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26764 Recognize -gnatwb/-gnatwB switches
26765 Include Warn_On_Bad_Fixed_Value for -gnatg
26768 Add line for new -gnatyd switch (check dos line terminator)
26770 * usage.adb: Add lines for -gnatwb/-gnatwB
26772 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26774 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26776 * gnat_ugn.texi: Fix overlong lines
26777 Document new -gnatyd switch
26778 Document new -gnatwb/-gnatwB switches
26780 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26782 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26783 order to retrieve the component list of the type, before examining
26784 individual components.
26786 * sem_type.adb (Covers): Types are compatible if one is the base type
26787 of the other, even though their base types might differ when private
26788 views are involved.
26790 2005-03-29 Thomas Quinot <quinot@adacore.com>
26792 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26793 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26794 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26795 analyzed if expansion is disabled (which could otherwise cause spurious
26796 error messages if expansion has been disabled due to previous
26797 (unrelated) errors).
26799 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26800 is disabled, the entity denoted by the argument is the access type
26801 itself, not an underlying record type, so there is no need to go back
26802 to the Corresponding_Remote_Type.
26804 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26805 Robert Dewar <dewar@adacore.com>
26807 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26808 expand a call to an instance of
26809 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26810 Constructor actual of the instance. A class-wide membership
26811 check is also generated, to ensure that the tag passed to the instance
26812 denotes a type in the class.
26813 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26814 of Name_Generic_Dispatching_Constructor.
26816 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26817 05 unit for AI-260-02).
26819 * a-tgdico.ads: New file.
26821 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26822 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26824 * snames.ads, snames.adb (Preset_Names): Add entry for
26825 Generic_Dispatching_Constructor.
26828 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26829 character type cases.
26830 (Analyze_Subprogram_Renaming): Add special handling for
26831 the case of renaming of stream attributes when the renaming denotes a
26832 generic formal subprogram association for an abstract formal subprogram.
26833 Check that the attribute is a primitive stream attribute (and not
26834 a class-wide stream attribute) and then rewrite the attribute name
26835 as the name of the appropriate compiler-generated stream primitive.
26837 2005-03-29 Robert Dewar <dewar@adacore.com>
26839 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26841 (Is_Possibly_Unaligned_Object): Correct typo that
26842 resulted in inaccurate result for unaligned scalars within records.
26844 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26846 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26847 itype whose parent is controlled and not yet frozen, do not create a
26848 freeze node for the itype if expansion is disabled.
26850 2005-03-29 Vincent Celier <celier@adacore.com>
26852 * make.adb (Gnatmake): Don't fail if the main project file is declared
26853 as having no Ada sources. Do not display message "no sources to
26854 compile" in quiet output.
26856 2005-03-29 Doug Rupp <rupp@adacore.com>
26858 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26861 2005-03-29 Robert Dewar <dewar@adacore.com>
26863 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26866 2005-03-29 Robert Dewar <dewar@adacore.com>
26868 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26869 missing TYPE Improve the error message generated when compiling a
26870 limited interface in Ada83 or Ada95 mode.
26872 2005-03-29 Robert Dewar <dewar@adacore.com>
26874 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26875 rather than proceed ahead using a junk attribute name.
26877 2005-03-29 Vincent Celier <celier@adacore.com>
26879 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26881 * prj-part.adb (Parse_Single_Project): Set the location of a project
26882 on its defining identifier, rather than on the reserved word "project".
26884 * prj-proc.adb (Expression): Adapt to the fact that default of external
26885 references may be string expressions, not always literal strings.
26886 (Recursive_Process): Set Display_Name equal to Name
26887 when Location is No_Location, that is when there is no actual file.
26888 Get the Display_Name of the project from the source, when it is not a
26890 (Process): Use the Display_Name in error messages
26892 * prj-strt.adb (External_Reference): Allow default to be string
26893 expressions, not only literal strings.
26895 2005-03-29 Vincent Celier <celier@adacore.com>
26897 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26898 file and the reference symbol file to be the same file.
26900 2005-03-29 Thomas Quinot <quinot@adacore.com>
26902 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26903 forbid conversion of a local access-to-subprogram type to a remote one.
26905 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26906 equivalent type for a remote access-to-subprogram type, go back to the
26907 original RAS entity when displaying an error message, so the casing is
26908 the original source casing.
26910 2005-03-29 Robert Dewar <dewar@adacore.com>
26912 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26915 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26917 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26918 subtype if code is being pre-analyzed, to prevent un-expanded
26919 references to protected formals, among others.
26920 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26921 interpretation that can be a call, include the result of the call as a
26922 possible interpretation of the dereference.
26924 * sem_ch5.adb (Process_Bounds): Determine type of range by
26925 pre-analyzing a copy of the original range, and then analyze the range
26926 with the expected type.
26928 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26929 with an overloaded prefix where not all interpretations yield an
26930 access to subprogram, do not rewrite node as a call.
26931 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26932 the node as a call once the context identifies the interpretation of
26933 the prefix whose call yields the context type.
26934 (Valid_Conversion): For the case of a conversion between
26935 local access-to-subprogram types, check subtype conformance using
26936 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26937 detailed error message.
26939 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26941 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26942 indicator, indicate that the formal can never be null.
26943 (Process_Formals): If a formal has a non_null indicator, insert the
26944 resulting subtype immediately before the enclosing subprogram decl,
26945 and not at the beginning of the corresponding declarative part, to
26946 prevent access before elaboration (Ada2005).
26948 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26951 * utils.c (finish_record_type): Use variable_size when setting sizes.
26953 2005-03-29 Robert Dewar <dewar@adacore.com>
26955 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26956 guarantee Unix style line terminators for the output files, even when
26957 running on windows.
26959 2005-03-29 Robert Dewar <dewar@adacore.com>
26961 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26962 buffer if an exception is raised.
26964 2005-03-29 Ed Falis <falis@adacore.com>
26966 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26969 2005-03-29 Robert Dewar <dewar@adacore.com>
26971 * sem_util.ads: Minor reformatting
26972 * gnat_rm.texi: Minor editing.
26974 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26976 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26977 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26979 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26981 * adaint.c (__gnat_portable_spawn): Adjust cast.
26983 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26985 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26987 2005-03-17 Pascal Obry <obry@adacore.com>
26989 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26992 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26993 Reimplement under Win32 using Win32 API.
26995 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26998 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
27000 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
27001 (DECL_RENAMED_OBJECT): New accessor macro.
27002 (SET_DECL_RENAMED_OBJECT): New setter macro.
27004 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
27005 object in all cases. Attach the renamed object to the VAR_DECL.
27006 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
27007 field is not prescribed.
27009 * misc.c (gnat_handle_option): Handle -gnatO separately.
27010 (gnat_print_decl) <VAR_DECL>: New case.
27011 Print the DECL_RENAMED_OBJECT node.
27013 * lang.opt: Declare separate -gnatO option.
27015 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
27016 pointer, replace it with the renamed object.
27017 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
27018 pointer type if the source is not a fat pointer type whose underlying
27019 array has the same non-zero alias set as that of the destination array.
27021 2005-03-17 Javier Miranda <miranda@adacore.com>
27023 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
27024 (Get_Inheritance_Depth): Removed.
27025 (Set_Inheritance_Depth): Removed.
27027 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
27028 subprogram Get_Expanded_Name because it is not referenced by the
27031 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
27032 (CPP_Get_Inheritance_Depth): Removed.
27033 (CPP_Set_Inheritance_Depth): Removed.
27035 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
27037 2005-03-17 Robert Dewar <dewar@adacore.com>
27039 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
27040 3, since we now expect GCC 3 to do all the work.
27042 2005-03-17 Javier Miranda <miranda@adacore.com>
27044 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27045 of one barrier to avoid wrong usage of this attribute.
27047 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27048 First_Private_Entity.
27050 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27051 the subprogram against wrong usage.
27052 Adapt the code to traverse the entities in the
27053 scope of a record_type because in addition to its usage regarding
27054 packages, this subprogram is also called by Expand_N_Freeze_Entity
27055 to install the visible declarations of the enclosing scope of a
27056 record_type_with_private to establish the proper visibility before
27057 freezing the entity and related subprograms.
27059 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27061 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27064 2005-03-17 Thomas Quinot <quinot@adacore.com>
27066 * exp_ch3.adb (Check_Attr): New subprogram.
27067 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27068 into a new Check_Attr subprogram, in order to provide a more
27069 explanatory error message (including the name of the missing attribute).
27070 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27071 subprogram determines whether a default implementation exists for a
27072 given stream attribute.
27073 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27074 Determine whether to generate a default implementation for each stream
27075 attribute separately, as this depends on the specific attribute.
27077 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27078 limited extension where a stream attribute is missing for a limited
27079 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27080 generate a bogus reference to the missing attribute to prevent
27081 cascaded errors. Instead, generate a null statement.
27083 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27084 available for a limited type if it has been specified for an ancestor
27087 2005-03-17 Ed Schonberg <schonberg@adacore.com>
27089 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27090 entity is an operator.
27092 2005-03-17 Thomas Quinot <quinot@adacore.com>
27094 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27095 spec, to make this predicate available to other units.
27097 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27100 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27101 when no distribution runtime library is available.
27103 * sem_res.adb, sem_dist.adb: Disable expansion of remote
27104 access-to-subprogram types when no distribution runtime library is
27106 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27107 predicate available to other units.
27109 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27110 spec, to make this predicate available to other units.
27112 2005-03-17 Vincent Celier <celier@adacore.com>
27114 * make.adb (Insert_Project_Sources): Make sure the Q is always
27117 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27118 the default for the tree, not the global default naming.
27120 * prj-proc.adb (Recursive_Process): No need to put the default naming
27121 in the project data, it's already there.
27123 2005-03-17 Doug Rupp <rupp@adacore.com>
27125 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27127 * 5xcrtl.ads: Renamed to...
27128 * s-crtl-vms64.ads: ...this new file
27130 2005-03-17 Robert Dewar <dewar@adacore.com>
27133 * namet.adb (Copy_One_Character): Set proper wide character encoding
27134 for upper half character if we have upper half encoding.
27136 2005-03-17 Robert Dewar <dewar@adacore.com>
27138 * par.adb (Par): Improved msg for attempt to recompile predefined unit
27140 2005-03-17 Thomas Quinot <quinot@adacore.com>
27142 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27143 tagged limited type, the TSS is a newly built renaming declaration:
27144 insert it using Set_TSS, not Copy_TSS.
27146 2005-03-17 Javier Miranda <miranda@adacore.com>
27148 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27149 Try_Object_Operation): Analyze the object that is accessible
27150 through the prefix of the subprogram call before we apply
27151 the transformation of the object-operation notation.
27153 2005-03-17 Jose Ruiz <ruiz@adacore.com>
27155 * s-taprob.adb (Initialize_Protection): Initialize the protected
27156 object's owner to Null_Task.
27157 (Lock): If pragma Detect_Blocking is in effect and the caller of this
27158 procedure is already the protected object's owner then Program_Error
27159 is raised. In addition the protected object's owner is updated.
27160 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27161 of this procedure is already the protected object's owner then
27162 Program_Error is raised.
27163 In addition the protected object's owner is updated.
27164 (Unlock): Remove the ownership of the protected object.
27166 * s-taprob.ads (Protection): Add the field Owner, used to store the
27167 protected object's owner.
27168 This component is needed for detecting one type of potentially blocking
27169 operations (external calls on a protected subprogram with the same
27170 target object as that of the protected action). Document the rest of
27173 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27174 Initialize the protected object's owner to Null_Task.
27175 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27176 caller of this procedure is already the protected object's owner then
27177 Program_Error is raised.
27178 Do not raise Program_Error when this procedure is called from a
27180 (Unlock_Entries): Remove the ownership of the protected object.
27181 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27182 of this procedure is already the protected object's owner then
27183 Program_Error is raised.
27184 Do not raise Program_Error when this procedure is called from
27185 a protected action.
27187 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27188 used to store the protected object's owner.
27190 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27191 effect and this procedure (a potentially blocking operation) is called
27192 from whithin a protected action, Program_Error is raised.
27193 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27194 and this procedure (a potentially blocking operation) is called from
27195 whithin a protected action, Program_Error is raised.
27197 2005-03-17 Vincent Celier <celier@adacore.com>
27198 Nicolas Setton <setton@adacore.com>
27200 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27201 switch, not supported by the linker on Darwin. Add '_' before
27202 <library>init, as this character is added unconditionally by the
27204 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27205 correct one ".dylib". This fixes detection of the archive files when
27206 building library projects.
27208 2005-03-17 Vincent Celier <celier@adacore.com>
27210 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27211 -gnat83, -gnat95 and -gnat05.
27213 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
27215 * gnat_ugn.texi: Document gnatmem restriction
27217 2005-03-17 Thomas Quinot <quinot@adacore.com>
27219 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27222 2005-03-17 Robert Dewar <dewar@adacore.com>
27224 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27225 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27226 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27228 * casing.adb: Comment improvements
27230 2005-03-17 Pascal Obry <obry@adacore.com>
27232 * g-expect.adb: Minor reformatting.
27234 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27236 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27237 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27240 2005-03-15 Vincent Celier <celier@adacore.com>
27242 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27243 Add new parameter In_Tree to specify the project tree: needed
27244 by the project manager. Adapt to changes in project manager
27245 using new parameter In_Tree.
27247 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27249 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27250 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27251 ada/bldtools to avoid make -jN failures.
27253 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27255 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27256 to NULL_TREE on entry.
27258 2005-03-15 Robert Dewar <dewar@adacore.com>
27260 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27261 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27262 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27263 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27264 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27265 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27266 system-interix.ads, system-solaris-sparc.ads,
27267 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27268 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27269 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27270 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27271 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27272 Compiler_System_Version to be False.
27274 * opt.ads: Add new flag Opt.Address_Is_Private
27276 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27277 Add new parameter Compiler_System_Version to avoid checking for
27278 completeness of parameters when compiler is compiling itself.
27279 Allows old versions of GNAT to be compiled with new compiler.
27281 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27283 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27284 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27286 (Stack_Base_Available): New flag.
27287 (Get_Page_Size): New overloaded functions imported from C.
27288 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27289 PROT_ON, PROT_OFF): New constants.
27290 (mprotect): New function imported from C.
27291 (pthread_teb_t): New record type.
27293 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27294 (Create_Task): Account for the Yellow Zone and the guard page.
27296 2005-03-15 Vincent Celier <celier@adacore.com>
27298 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27299 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27300 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27301 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27302 Library_File_Name_For): Add new parameter In_Tree
27303 to specify the project tree: needed by the project manager.
27304 Adapt to changes in project manager using new parameter In_Tree.
27305 Remove local imports, use functions in System.CRTL.
27307 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27308 to use the project manager.
27310 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27311 In_Tree to designate the project tree. Adapt to changes in the project
27312 manager, using In_Tree.
27314 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27315 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27316 project tree: needed by the project manager.
27317 (Build_Library): Check that Arg'Length >= 6 before checking if it
27318 contains "--RTS=...".
27320 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27321 Library_File_Name_For): Add new parameter In_Tree to specify the
27322 project tree: needed by the project manager.
27324 * prj.ads, prj.adb: Major modifications to allow several project trees
27325 in memory at the same time.
27326 Change tables to dynamic tables and hash tables to dynamic hash
27327 tables. Move tables and hash tables from Prj.Com (in the visible part)
27328 and Prj.Env (in the private part). Move some constants from the visible
27329 part to the private part. Make other constants deferred.
27330 (Project_Empty): Make it a variable, not a function
27331 (Empty_Project): Add parameter Tree. Returns the data with the default
27332 naming data of the project tree Tree.
27333 (Initialize): After updating Std_Naming_Data, copy its value to the
27334 component Naming of Project Empty.
27335 (Register_Default_Naming_Scheme): Use and update the default naming
27336 component of the project tree, instead of the global variable
27338 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27339 Tree is not defaulted, return the default naming data of the Tree.
27340 (Initial_Buffer_Size): Constant moved from private part
27341 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27342 variables initialized in procedure Initialize.
27343 (Add_To_Buffer): Add two in out parameters to replace global variables
27344 Buffer and Buffer_Last.
27345 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27347 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27349 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27350 for the project tree.
27351 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27352 constant at the beginning of the package spec, so that they cane be used
27353 in subprograms before their full declarations.
27354 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27355 (Empty_Project): Add parameter of type Project_Node_Ref
27356 (Private_Project_Tree_Data): Add component Default_Naming of type
27358 (Buffer, Buffer_Last): remove global variables
27359 (Add_To_Buffer): Add two in out parameters to replace global variables
27360 Buffer and Buffer_Last.
27361 (Current_Packages_To_Check): Remove global variable
27362 (Empty_Name): Move to private part
27363 (No-Symbols): Make it a constant
27364 (Private_Project_Tree_Data): New type for the private part of the
27366 (Project_Tree_Data): New type for the data of a project tree
27367 (Project_Tree_Ref): New type to designate a project tree
27368 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27369 for the project tree.
27371 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27372 imports package Table.
27374 * prj-com.adb: Remove empty, no longer needed body
27376 * prj-com.ads: Move most of the content of this package to package Prj.
27378 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27379 designate the project node tree and Packages_To_Check to replace
27380 global variable Current_Packages_To_Check.
27381 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27382 when needed. Adapt to changes in project manager with project node tree
27385 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27386 project tree to most subprograms. Move tables and hash tables to
27387 private part of package Prj.
27388 Adapt to changes in project manager using project tree In_Tree.
27390 * prj-makr.adb (Tree): New constant to designate the project node tree
27391 Adapt to change in project manager using project node tree Tree
27393 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27394 display the Library_Src_Dir and the Library_Dir.
27395 Add new parameter In_Tree to designate the project node tree to most
27396 subprograms. Adapt to changes in the project manager, using project tree
27398 (Check_Naming_Scheme): Do not alter the casing on platforms where
27399 the casing of file names is not significant.
27400 (Check): Add new parameter In_Tree to designate the
27402 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27403 designate the project tree.
27404 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27406 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27407 to replace those that were in the private part of package Prj.
27408 Add new parameter In__Tree to designate the project node tree to most
27409 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27410 (Post_Parse_Context_Clause): When specifying the project node of a with
27411 clause, indicate that it is a limited with only if there is "limited"
27412 in the with clause, not necessarily when In_Limited is True.
27413 (Parse): Add new parameter In_Tree to designate the project node tree
27415 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27416 designate the project node tree. Adapt to change in Prj.Tree with
27417 project node tree In_Tree.
27419 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27420 tree In_Tree in the call to function Empty_Process to give its initial
27421 value to the project data Processed_Data.
27422 Add new parameters In_Tree to designate the project tree and
27423 From_Project_Node_Tree to designate the project node tree to several
27424 subprograms. Adapt to change in project manager with project tree
27425 In_Tree and project node tree From_Project_Node_Tree.
27427 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27428 to replace those that were in the private part of package Prj.
27429 Add new parameter In_Tree to designate the project node tree to most
27430 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27432 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27433 Project_Node_Tree_Ref to most subprograms.
27434 Use this new parameter to store project nodes in the designated project
27436 (Project_Node_Tree_Ref): New type to designate a project node tree
27437 (Tree_Private_Part): Change table to dynamic table and hash tables to
27438 dynamic hash tables.
27440 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27441 the project tree to most subprograms. Adapt to changes in project
27442 manager using project tree In_Tree.
27444 * makegpr.adb (Project_Tree): New constant needed to use project
27447 2005-03-15 Olivier Hainque <hainque@adacore.com>
27449 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27450 for sigactions with SA_SIGINFO set. Call
27451 __gnat_adjust_context_for_raise before raising, to perform the
27452 potentially required adjustments to the machine context for the GCC
27455 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27457 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27458 Adjust PC by one in the provided machine context.
27459 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27460 so that the handler is passed the context structure to adjust prior to
27462 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27463 SA_SIGINFO sigaction should look like. Call
27464 __gnat_adjust_context_for_raise before actually raising.
27465 (__gnat_adjust_context_for_raise): Default noop to help PC
27466 adjustments before raise from signal handlers.
27467 (__gnat_error_handler): Indirectly call a predicate function to
27468 determine if a condition should be resignaled or not.
27469 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27470 (__gnat_default_resignal_p): Default GNAT predicate.
27472 2005-03-15 Doug Rupp <rupp@adacore.com>
27474 * adaint.c: Prefix #include of VMS system header files with vms/
27475 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27476 Do not define a dummy function "convert_addresses" under Darwin,
27479 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27482 2005-03-15 Nicolas Setton <setton@adacore.com>
27484 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27487 2005-03-15 Robert Dewar <dewar@adacore.com>
27489 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27492 * a-retide.ads: Minor comment changes
27494 2005-03-15 Robert Dewar <dewar@adacore.com>
27496 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27497 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27498 Realloc_For_Chunk to private part of package.
27499 New subprograms for AI-301
27501 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27502 Get_Line procedure.
27503 Avoid unnecessary use of Get/Set_Wide_String
27505 2005-03-15 Robert Dewar <dewar@adacore.com>
27508 * a-stunau.ads, a-stunau.adb:
27509 Change interface to allow efficient (and correct) implementation
27510 The previous changes to allow extra space in unbounded strings had
27511 left this interface a bit broken.
27513 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27515 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27516 Minor reformatting (function specs)
27518 * g-spitbo.adb: New interface for Get_String
27520 * g-spitbo.ads: Minor reformatting
27522 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27524 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27526 2005-03-15 Javier Miranda <miranda@adacore.com>
27527 Robert Dewar <dewar@adacore.com>
27528 Thomas Quinot <quinot@adacore.com>
27529 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27531 * atree.ads, atree.adb: Add support for Elist24 field
27533 * atree.h: Fix wrong definition of Field27
27534 Add support for Elist16 field
27535 Add support for Elist24 field
27537 * einfo.ads, einfo.adb (Abstract_Interfaces,
27538 Set_Abstract_Interfaces): New subprograms.
27539 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27541 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27542 entities rather than a single node.
27543 (Is_Interface, Set_Is_Interface): New subprogram
27544 (First_Tag_Component): New syntesized attribute
27545 (Next_Tag_Component): New synthesized attribute
27546 (Write_Entity_Flags): Upgraded to write Is_Interface
27547 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27548 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27549 (Task_Body_Procedure): New subprogram to read this attribute.
27550 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27551 (Has_Controlled_Component): Now applies to all entities.
27552 This is only a documentation change, since it always worked to apply
27553 this to other than composite types (yielding false), but now this is
27555 Update documentation on Must_Be_Byte_Aligned for new spec
27557 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27558 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27559 uses of the Access_Disp_Table attribute to reference the first dispatch
27560 table associated with a tagged type. As
27561 part of the implementation of abstract interface types,
27562 Access_Disp_Table has been redefined to contain a list of dispatch
27563 tables (rather than a single dispatch table).
27564 Similarly, upgrade all the references to Tag_Component by the
27565 new attribute First_Tag_Component.
27566 (Find_Inherited_TSS): Moved to exp_tss.
27567 Clean up test in Expand_N_Object_Declaration for cases
27568 where we need to do a separate assignment of the initial value.
27569 (Expand_N_Object_Declaration): If the expression in the
27570 declaration of a tagged type is an aggregate, no need to generate an
27571 additional tag assignment.
27572 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27574 Bit packed array ops are only called if operands are known to be
27576 (Component_Equality): When returning an N_Raise_Program_Error statement,
27577 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27578 expects that only expressions have a bona fide type).
27579 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27580 determine the amount of data to be copied.
27582 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27583 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27584 INTERFACE_TYPE_DEFINITION ::=
27585 [limited | task | protected | synchronized] interface
27586 [AND interface_list]
27588 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27590 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27592 (P_Interface_Type_Definition): New subprogram that parses the new
27593 syntax rule of Ada 2005 interfaces
27594 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27595 messages by the correct RENAMES (quotes removed).
27597 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27598 attribute First_Tag_Component.
27600 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27601 (Interface_List, Set_Interface_List): New subprograms.
27602 (Interface_Present, Set_Interface_Present): New subprograms.
27603 (Limited_Present, Set_Limited_Present): Available also in derived
27604 type definition nodes.
27605 (Protected_Present, Set_Protected_Present): Available also in
27606 record type definition and
27607 derived type definition nodes.
27608 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27609 (Task_Present, Set_Task_Present): New subprogram.
27610 (Task_Body_Procedure): Removed.
27611 (Set_Task_Body_Procedure): Removed.
27612 These subprogram have been removed because the attribute
27613 Task_Body_Procedure has been moved to the corresponding task type
27614 or task subtype entity to leave a field free to store the list
27615 of interfaces implemented by a task (for AI-345)
27616 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27617 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27618 expression flag Do_Range_Check
27619 (Exception_Junk): Change to Flag7 to accomodate above change
27620 (Box_Present, Default_Name, Specification, Set_Box_Present,
27621 Set_Default_Name, Set_Specification): Expand the expression
27622 "X in N_Formal_Subprogram_Declaration" into the corresponding
27623 two comparisons. Required to use the csinfo tool.
27625 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27626 "with string" given.
27628 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27631 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27634 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27635 attribute Task_Body_Procedure rather than the old semantic field that
27636 was available in the task_type_declaration node.
27638 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27639 interface type definitions.
27640 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27643 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27644 task type declaration.
27645 (P_Protected): Modified to handle the list of interfaces in a
27646 protected type declaration.
27648 2005-03-15 Doug Rupp <rupp@adacore.com>
27649 Vincent Celier <celier@adacore.com>
27651 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27652 (Gen_Output_File_C): Likewise.
27653 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27655 2005-03-15 Thomas Quinot <quinot@adacore.com>
27657 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27658 is an N_Raise_Constraint_Error node, create a new copy of it without
27659 going through a call to Duplicate_Subexpr.
27661 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27662 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27663 Nicolas Setton <setton@adacore.com>
27664 Ed Schonberg <schonberg@adacore.com>
27670 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27671 representation clause that prescribes a size not equal to the rounded
27672 size of their types.
27673 (gnat_to_gnu_entity, case E_Component): Always look at
27674 Original_Record_Component if Present and not the entity.
27675 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27676 of tagged extension types by not making field for components that are
27678 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27679 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27680 expression to the type of the object when the object is constant.
27681 Reverse defer_debug_incomplete_list before traversing it, so that trees
27682 are processed in the order at which they were added to the list. This
27683 order is important when using the stabs debug format.
27684 If we are deferring the output of debug information, also defer this
27685 output for a function return type.
27686 When adding fields to a record, prevent emitting debug information
27687 for incomplete records, emit the information only when the record is
27689 (components_to_record): New parameter defer_debug.
27690 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27691 (gnat_to_gnu_field_decl): New function.
27692 (substitution_list, annotate_rep): Call it.
27693 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27694 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27695 No longer update discriminants to not be a COMPONENT_REF.
27696 (copy_alias_set): Strip padding from input type; also handle
27697 unconstrained arrays properly.
27699 * gigi.h (write_record_type_debug_info): New function.
27700 Convert to use ANSI-style prototypes. Remove unused
27701 declarations for emit_stack_check, elab_all_gnat and
27702 set_second_error_entity.
27703 (gnat_to_gnu_field_decl): New decl.
27705 * utils.c (write_record_type_debug_info): New function.
27706 (finish_record_type): Delegate generation of debug information to
27707 write_record_type_debug_info.
27708 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27709 (update_pointer_to): Fix pasto.
27710 (convert) <UNION_TYPE>: Accept slight type variations when
27711 converting to an unchecked union type.
27713 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27714 replace the N_Freeze_Entity with a null statement.
27716 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27717 within a constrained subcomponent of an enclosing record, place the
27718 freeze nodes in the scope stack entry for the enclosing record.
27719 (Undelay_Type): New Subprogram.
27720 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27721 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27722 within records; allow them to have freeze nodes if their base types
27725 * exp_util.adb (Remove_Side_Effects): Properly test for
27726 Expansion_Delayed and handle case when it's inside an
27727 N_Qualified_Expression.
27729 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27730 Comes_From_Generic, to recognize accurately that the parent type in a
27731 derived type declaration can be traced back to a formal type, because
27732 it is one or is derived from one, or because its completion is derived
27734 (Constrain_Component_Type): If component comes from source and has no
27735 explicit constraint, no need to constrain in in a subtype of the
27737 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27738 Minor change to propagate Is_Ada_2005 flag
27740 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27741 Expansion_Delayed is False.
27742 (assoc_to_constructor): Ignore fields that have a
27743 Corresponding_Discriminant.
27744 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27745 function returns "by target", dereference the target pointer using the
27746 type of the actual return value.
27747 <all>: Be prepared for a null gnu_result.
27748 (processed_inline_subprograms): Check flag_really_no_inline
27749 instead of flag_no_inline.
27750 (set_second_error_entity): Remove unused function.
27751 (gnat_to_gnu, case N_Selected_Component): Call
27752 gnat_to_gnu_field_decl.
27753 (assoc_to_constructor): Likewise.
27755 2005-03-15 Robert Dewar <dewar@adacore.com>
27756 Ed Schonberg <schonberg@adacore.com>
27757 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27759 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27760 Must_Be_Byte_Aligned for cases where we do not need to use a
27761 System.Pack_nn unit.
27763 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27765 Needed now that we do some processing for IN parameters as well. This
27766 may well fix some unrelated errors.
27767 (Expand_Call): Handle case of unaligned objects (in particular those
27768 that come from packed arrays).
27769 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27770 renamed entity is an inherited operation, re-expand the call using the
27771 original operation, which is the one to call.
27772 Detect attempt to inline parameterless recursive subprogram.
27773 (Represented_As_Scalar): Fix to work properly with private types
27774 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27775 accurate estimate. Yields True in far fewer cases than before,
27776 improving the quality of code that depends on this test.
27778 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27779 over both visible and private declarations to remove them from tree,
27780 and mark subprograms declared in package as eliminated, to prevent
27781 spurious use in subsequent compilation of generic units in the context.
27783 * exp_util.ads: Minor cleanup in variable names
27785 * sem_eval.ads, sem_eval.adb: Minor reformatting
27786 (Compile_Time_Known_Bounds): New function
27788 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27790 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27791 determining whether an unchecked conversion is needed for the argument
27792 of an initialization call.
27794 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27796 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27797 that appears in the instantiation rather than the internal subtype
27798 generated in the wrapper package, to avoid anomalies in gigi when the
27799 target is derived from a private type whose full view is an access type.
27801 2005-03-15 Robert Dewar <dewar@adacore.com>
27803 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27805 Add documentation to replace the use of this flag
27806 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27809 2005-03-15 Thomas Quinot <quinot@adacore.com>
27811 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27812 here from exp_attr so it can be shared between exp_attr and exp_dist.
27813 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27814 all TSS names, not a subset thereof, and the previous name introduced
27815 an unnecessarily confusion that a distinction might exist between
27816 "OK" TSS names and some "not OK" TSS names.
27818 2005-03-15 Doug Rupp <rupp@adacore.com>
27820 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27823 2005-03-15 Pascal Obry <obry@adacore.com>
27824 Eric Botcazou <ebotcazou@adacore.com>
27828 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27829 when IN_RTS. This is to work around a bootstrap path problem.
27831 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27832 table and pass it to __gnat_install_SEH_handler().
27833 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27835 * lang.opt: Fix specification of -fRTS=.
27837 2005-03-15 Doug Rupp <rupp@adacore.com>
27838 Bernard Banner <banner@adacore.com>
27839 Vincent Celier <celier@adacore.com>
27840 Arnaud Charlet <charlet@adacore.com>
27843 This change works fine when gnatlib is built from the gcc directory,
27844 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27845 is not passed to ada/Makefile.in, so more work is needed by a
27846 Makefile/configure expert.
27848 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27849 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27850 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27852 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27853 Run ranlib on libgccprefix.a
27854 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27855 (ADA_INCLUDE_SRCS): Split Ada packages.
27857 2005-03-15 Robert Dewar <dewar@adacore.com>
27859 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27861 * impunit.adb: Add GNAT.UTF_32
27863 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27865 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27866 now uses GNAT.UTF_32).
27868 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27869 capabilities for categorizing characters using Unicode categories
27871 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27873 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27874 instantiation that has been rewritten as a package body, retrieve spec
27875 to generate proper name for implicit_with_clause.
27876 (Install_Parents): Recognize a parent that is an instantiation but has
27877 been rewritten as a package declaration during analysis.
27879 2005-03-15 Javier Miranda <miranda@adacore.com>
27880 Ed Schonberg <schonberg@adacore.com>
27882 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27883 parameter reported some error we immediately return. This improves the
27884 behaviour of the frontend in case of errors.
27885 (Install_Parent, Remove_Parent): Introduce new flag
27886 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27887 ancestor of a generic child unit, when the child is being instantiated.
27888 (Inline_Instance_Body): If we are compiling the private
27889 part or the body of a child unit, restore the proper visibility of the
27890 parents after compiling the instance body.
27892 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27893 Javier Miranda <miranda@adacore.com>
27896 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27897 of a private type, in which case it is underlying_type that denotes
27898 the proper task. Also modified to use the new entity attribute
27899 that is directly available in the task type and task subtype entities
27900 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27901 arrays when other dimensions than the first are constrained by
27902 discriminants of an enclosing record.
27903 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27904 a combination of indexed and selected components, find ultimate entity
27905 and generate the appropriate reference for it, to suppress spurious
27907 (Note_Possible_Modification): If an entity name has no entity, return.
27908 (Is_Variable): A function call never denotes a variable.
27909 (Requires_Transient_Scope): For record types, recurse only on
27910 components, not on internal subtypes that may have been generated for
27911 constrained components.
27913 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27915 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27916 Eliminated as candidates for resolution. Both efficient, and avoids
27917 anomalies with operators declared in deleted code.
27918 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27919 expansion is disabled (as when compiling a generic) to prevent spurious
27920 warnings on prefixes of selected components.
27922 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27924 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27925 attached to a list before checking whether it appears in the private
27926 declarations of the current package.
27927 (Make_Inequality_Operator): Insert declaration in proper declarative
27928 list rather than just setting the Parent field, so that
27929 Is_Private_Declaration can handle it properly.
27931 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27933 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27934 a renaming a body, check that the renamed subprogram in not intrinsic.
27935 (Find_Direct_Name): If several use_visible entities hide
27936 each other, and the context is a predefined file compiled through
27937 rtsfind, keep only the entity that comes from a predefined file.
27939 2005-03-15 Geert Bosch <bosch@adacore.com>
27941 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27942 long float padding to also cover AMD64 and IA64.
27944 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27946 * s-imgwch.adb: Add with and use of Interfaces.
27947 (Img_Wide_Character): Change type of Val to Unsigned_16.
27948 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27950 2005-03-15 Matthew Gingell <gingell@adacore.com>
27952 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27954 2005-03-15 Robert Dewar <dewar@adacore.com>
27956 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27958 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27960 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27962 2005-03-15 Robert Dewar <dewar@adacore.com>
27964 * s-bitops.adb, s-bitops.ads,
27965 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27966 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27967 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27968 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27969 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27970 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27971 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27972 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27975 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27977 * utils2.c (build_binary_op): Fix typo.
27979 2005-03-15 Doug Rupp <rupp@adacore.com>
27981 * s-crtl.ads (popen,pclose): New imports.
27983 2005-03-15 Cyrille Comar <comar@adacore.com>
27985 * comperr.adb (Compiler_Abort): remove references to obsolete
27986 procedures in the bug boxes for various GNAT builds.
27988 2005-03-15 Vincent Celier <celier@adacore.com>
27990 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27992 2005-03-15 Geert Bosch <bosch@adacore.com>
27993 Arnaud Charlet <charlet@adacore.com>
27994 Robert Dewar <dewar@adacore.com>
27995 Cyrille Comar <comar@adacore.com>
27996 Sergey Rybin <rybin@adacore.com>
27998 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27999 too specific and long-winded to be appropriate for the GNAT User's
28001 Warn about use of GCC switches not documented in the GNAT User's Guide,
28002 as these may cause generated code to not conform to Ada semantics.
28003 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
28004 Add documentation for -gnat95 and -gnat05 switches
28005 Remove paragraph documenting obsolete way to refer to third party
28007 Add a few references to Ada_05 that were missing.
28008 Update documentation on -gnatZ/-gnatL.
28009 Document limitation when using -m64 under Solaris.
28010 Change the "Name Casing" subsection of the pretty-printer section
28011 according to the changes in the dictionary processing.
28013 * gnat_rm.texi: Document the Ada_05 pragma.
28014 Section on record representation clauses describes the new more
28015 relaxed rules about placement of large packed bit array components.
28016 Add documentation of GNAT.UTF_32
28018 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
28020 * misc.c (gnat_post_options): Turn off structural
28023 2005-03-08 Laurent Guerby <laurent@guerby.net>
28025 * system-linux-sparc.ads: Fix typo in previous commit.
28027 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
28028 Laurent Guerby <laurent@guerby.net>
28031 * system-linux-sparc.ads: New.
28032 * Makefile.in: Add sparc linux entry.
28034 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
28036 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
28037 parameters as unused.
28039 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
28040 Partial merge from libada-gnattools-branch:
28042 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28043 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28044 into code in gnattools/Makefile.in. Remove direct dependencies on
28045 stamp-tools by tools clauses.
28046 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
28047 * config-lang.in: Add gnattools to $lang_dirs.
28049 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
28052 * utils.c (gnat_type_for_mode): Return null instead of ICE because
28053 we asked for an unknown mode.
28055 2005-02-12 Richard Henderson <rth@redhat.com>
28057 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28058 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28060 2005-02-10 Andreas Jaeger <aj@suse.de>
28062 * init.c (__gnat_initialize): Mark parameter as unused.
28064 2005-02-09 Doug Rupp <rupp@adacore.com>
28066 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28067 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28069 2005-02-09 Doug Rupp <rupp@adacore.com>
28071 * gnatchop.adb (dup, dup2),
28072 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28074 * gnatlbr.adb (mkdir),
28075 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
28077 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28079 2005-02-09 Doug Rupp <rupp@adacore.com>
28081 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28083 2005-02-09 Robert Dewar <dewar@adacore.com>
28084 Thomas Quinot <quinot@adacore.com>
28085 Javier Miranda <miranda@adacore.com>
28086 Pascal Obry <obry@adacore.com>
28087 Ed Schonberg <schonberg@adacore.com>
28088 Doug Rupp <rupp@adacore.com>
28089 Gary Dismukes <dismukes@adacore.com>
28090 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28092 * g-zstspl.ads: New file.
28094 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28096 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28098 Add definition of Wide_Wide_Space for AI-285
28100 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28101 interface (to support Ada 95 and Ada 2005 units).
28102 Add Unbounded_IO files
28103 Add entries for Wide_Wide packages for AI-285
28104 Add list of containers packages to Ada 2005 unit list
28106 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28107 support new Unbounded_IO package cleanly.
28109 * g-utf_32.ads, g-utf_32.adb: New files.
28111 * Makefile.rtl: Add entry for g-utf_32
28112 Add new files for Unbounded_IO
28113 Adjust make file for new AI-285 wide wide packages
28114 Add AI-302 containers to the run time.
28116 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28117 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28118 subprograms for AI-301.
28120 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28122 * a-stunau.ads: Minor comment correction
28124 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28126 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28127 (Check_RPC): Update to match changes in expanded code.
28128 Clean up unused entity.
28130 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28131 was not taken into account.
28132 This includes proper initialization with Normalize_Scalars.
28133 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28134 normalize scalars cases (particularly the latter) to do a better job
28135 of finding invalid representations.
28137 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28139 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28142 * exp_dist.adb: Add support for wide wide character type
28143 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28144 private part, generate stub bodies at the end of the private part,
28145 not the visible part.
28146 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28148 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28149 generic wrapper to execute final processing after completing the
28150 expansion of the RPC receiver for an RACW.
28152 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28153 packages and attributes.
28154 (Preset_Names): Addition of the new reserved words of Ada 2005,
28155 that is interface, overriding and synchronized.
28156 (Get_Pragma_Id): Give support to the use of the new reserved word
28157 "interface" as a pragma name.
28158 (Is_Pragma_Name): Give support to the use of the new reserved word
28159 "interface" as a pragma name.
28160 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28161 attribute implementation.
28163 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28164 checks to entities that are output parameters of Asm operations.
28165 Handle the Stream_Size attribute.
28166 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28168 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28170 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28171 for second parameter being 0.0.
28172 Add support for wide wide character type.
28173 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28175 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28176 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28177 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28178 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28179 for wide wide character cases.
28181 * cstand.adb: Create entities for Wide_Wide_Character and
28184 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28185 accordance with AI-258.
28186 Add new declarations for 16/32 bit C character types (Part of AI285)
28188 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28189 (Obsolescent_Warning): New field
28190 (Rep_Clause): New local subprogram used to share code. Returns the rep
28191 clause for which the name is given in parameter.
28192 (Has_Stream_Size_Clause): New routine.
28193 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28194 (Address_Clause): Implementation is now using Rep_Clause.
28195 (Alignment_Clause): Idem.
28196 (Size_Clause): Idem.
28198 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28199 entity in non-Ada 2005 mode and generate warning.
28201 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28202 (Prag): Code cleanup. Remove old gnat pragma "overriding"
28204 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28205 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28206 on the named unit if the pragma is not in the current compilation unit,
28207 so that elaboration calls in the current unit can set up an elaboration
28208 dependency on the named unit, as needed.
28209 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28210 subprogram as well as for subprograms declared within a package.
28211 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28214 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28215 to z) to avoid some instances of duplication for Wide_Wide packages.
28217 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28220 * scn.adb: Char_Literal_Value field is now a Uint
28222 * scng.adb: Significant rewrite to handle new Ada 2005 features
28223 allowing wide and wide wide characters in program text, e.g. for
28224 identifiers, as described in AI-285.
28225 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28226 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28227 (Scan): Give support to the new reserved words.
28229 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28230 warning notifying that interface, overriding, and synchronized are
28231 new reserved words.
28232 (P_Pragma): Allow the use of the new reserved word "interface" as
28235 * gnatls.adb, gnatbind.adb,
28236 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28237 identifiers named "interface" to "SAL_Interface".
28239 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28240 (Structured Exception handling).
28241 (Gen_Main_C): Idem.
28244 (Gen_Main_Ada): Set the default exit code if specified.
28245 (Gen_Main_C): Likewise.
28247 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28248 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28250 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28253 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28254 has a collision with the new Ada 2005 "interface" reserved word.
28256 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28257 generate a warning notifying that interface, overriding, and
28258 synchronized are new reserved words.
28260 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28261 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28262 and Tok_Synchronized.
28264 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28265 "dispatching" rather than "primitive" operations, since dispatching
28266 calls are now allowed to abstract formal subprograms (which are not
28268 Char_Literal_Value field is now a Uint
28269 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28270 compute the actual subtype of the designated object to impose the proper
28272 (Resolve_Selected_Component): Do not insert an access check if the
28273 prefix is an access type: such a node is expanded into an explicit
28274 dereference, on which the access check is performed anyway. Removes
28275 expensive duplicate checks.
28276 (Resolve_Call): Use new flag Is_Obsolescent and field
28277 Obsolescent_Warning so that pragma Obsolescent works on library
28279 Add support for wide wide character type
28280 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28281 value by a warning message.
28282 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28283 as fixed-point, and one of the operands is non-static and universal, it
28284 can only be an illegal exponentiation operation, in which case there is
28285 no real value to retrieve.
28287 * exp_strm.adb: Add support for wide wide character type
28288 (Build_Elementary_Input_Call): Compute the size of the stream element by
28289 querying the rep chain to find the Stream_Attribute attribute value.
28290 (Build_Elementary_Write_Call): Ditto.
28292 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28293 Add support for wide wide character type
28294 Replace the error messages on wrong null-exclusion value by warnings
28295 as described in Ada 2005.
28296 (Resolve_Extension_Aggregate): Document the fact that the error
28297 message on class-wide expressions in extensions aggregates.
28299 * sem_case.adb: Add support for wide wide character type
28301 * sem_ch13.adb: Add support for wide wide character type
28302 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28304 * sem_ch3.adb: Add support for wide wide character type
28305 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28306 now-useless Itype, to prevent cascaded errors on a compiler built
28309 * sem_ch8.adb: Add with and use of Sem_Disp.
28310 (Analyze_Subprogram_Renaming): Replace unclean uses of
28311 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28312 of Corresponding_Spec to Empty).
28313 (Attribute_Renaming): Replace use of Corresponding_Spec with
28314 Corresponding_ Formal_Spec and simplify condition.
28315 (Use_One_Package): Check that scope of homonym of identifier is defined,
28316 before checking whether it is a wrapper package.
28317 Add support for wide wide character type
28319 * sem_eval.adb: Add support for wide wide character type.
28320 (Eval_Arithmetic_Op): Check for compile time known signed integer
28321 overflow in the non-static case.
28322 (Subtypes_Statically_Match): A formal scalar type and its base type do
28323 not statically match.
28325 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28326 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28328 (Unit_Declaration_Node): Ditto.
28329 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28330 has a packed array type, the prefix has been rewritten into a type
28331 conversion. Determine variable-ness from the converted expression.
28332 Handle wide wide character cases.
28334 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28336 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28337 Remove ["0A"] from comment, since it can look like a line terminator.
28338 Currently we don't permit this, but this is under discussion by the
28339 ARG, and it is easy enough to use a different example.
28341 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28342 handling UTF-32 encoding for wide wide character.
28343 Implement new brackets coding ["hhhhhhhh"]
28344 Add UTF-8 encodings for full UTF-32 range
28346 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28348 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28349 bit range Add full UTF-32 support.
28350 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28351 notify that constraint error will be raised at run-time
28352 because a null value is assigned to a null-excluding object.
28353 Remove some obsolete declarations and make Char_Code
28356 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28357 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28358 Rcheck subprograms.
28360 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28361 wrong null-exclusion value by a warning message.
28362 (Enable_Range_Check): Do range check if the prefix is an
28363 explicit dereference whose designated object is an unconstrained array.
28364 Current algorithm for removing duplicate checks is over-eager in this
28367 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28368 null-exclusion value by a warning message
28370 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28371 completely. Add support for Uint2 field
28373 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28374 exp_prag.adb: Char_Literal_Value field is now a Uint.
28376 * exp_util.adb (Insert_Actions): Replace
28377 N_Formal_Subprogram_Declaration by
28378 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28379 Char_Literal_Value field is now a Uint.
28381 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28382 defined for subprogram renaming declarations. When set, the field
28383 indicates the defining entity of a corresponding formal subprogram
28384 when the renaming corresponds to a formal subprogram association in an
28386 (Set_Corresponding_Formal_Spec): New procedure to return
28387 Corresponding_Formal_Spec field.
28388 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28389 (which is now a subtype).
28390 Char_Literal_Value field is now a Uint
28392 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28393 pointer to the base of the dispatch table.
28394 Minor changes to comments.
28395 (Controlling_Type): New function for determining the tagged type
28396 associated with a tagged primitive subprogram.
28397 (Expand_Dispatching_Call): Add support for a controlling actual that is
28398 directly a value of type Ada.Tag rather than a tagged object.
28400 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28401 describing the new layout.
28402 (Dispatch_Table): The expander computes the actual array size, allocates
28403 the Dispatch_Table record accordingly, and generates code that displaces
28404 the base of the record after the Typeinfo_Ptr component. The access to
28405 these components is done by means of local functions.
28406 (Offset_To_Top): New function.
28407 (Typeinfo_Ptr): New function.
28408 (Get_TSD): Modified to access the new position of the TSD.
28409 (Set_TSD): Modified to save the TSD in its new position.
28411 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28412 case of formal abstract subprograms. Add check and message for -gnat05.
28415 * sem_ch12.adb: Add with and use for Sem_Disp.
28416 (Analyze_Associations): Minor change from "=" to "in" for use of
28417 N_Formal_Subtype_Declaration (which is now a subtype).
28418 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28419 N_Formal_Subtype_Declaration (which is now a subtype).
28420 (Analyze_Formal_Subprogram): Add handling for
28421 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28422 dispatching, setting the controlling status of the formal parameters
28423 and result, and issuing an error if there is no controlling type for
28424 the formal subprogram.
28425 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28426 which is an unclean use of that field, we set the new field
28427 Corresponding_Formal_Spec to make the formal subprogram available to
28428 processing in Analyze_Subprogram_Declaration.
28429 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28430 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28431 Constrained, so that it is is does not statically match its anonymous
28434 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28435 abstract formal subprograms in error check for functions returning
28436 abstract types. Set scope of new designator for
28437 a parameterless subprogram, so that it is available when checking the
28438 body for nested subprograms, before full analysis of said body.
28439 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28440 subprogram only if inner one comes from source.
28441 (Analyze_Function_Call): If the call is given in object notation, the
28442 analysis of the name rewrites the node and analyzes it with the proper
28443 argument list. After analyzing the name, if the call has been rewritten
28444 and the result type is set, no further analysis is needed.
28445 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28446 mark in function specification, in a context where the formals are
28447 visible and hide outer homographs.
28449 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28450 as the tagged type for the cases of abstract formal subprograms and
28451 renamings of those. Clean up spec comments.
28452 (Check_Dispatching_Context): Add error message to indicate "abstract
28453 procedure", covering the case of a call to a formal abstract procedure
28454 that has statically tagged operands.
28455 (Check_Dispatching_Call): Check for the case of an actual given by
28456 a tag-indeterminate function call whose type is an ancestor of the
28457 containing call's associated tagged type. This situation can occur
28458 for inherited primitives with function defaults. In this case we
28459 use the tagged type's tag directly as the controlling argument for
28461 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28463 * sprint.adb (Sprint_Node_Actual): Split
28464 N_Formal_Subprogram_Declaration into two alternatives for the new
28465 cases N_Formal_Abstract_Subprogram_Declaration and
28466 N_Formal_Concrete_Subprogram_Declaration.
28467 Char_Literal_Value field is now a Uint.
28469 * trans.c: Get rid of junk Uint2 reference.
28470 Char_Literal_Value field is now a Uint.
28471 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28472 (gigi): Correct third arg to gimplify_body.
28474 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28475 (TYPE_LANG_FLAG_0): Check for record or union.
28477 * treepr.adb: Char_Literal_Value field is now a Uint
28479 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28482 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28483 Add full UTF-32 support
28484 Char_Code is now 32 bits
28486 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28487 wide character UTF_32 line terminators.
28488 Initialize Main_Source_File to avoid error when no main
28491 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28492 (Main_Source_File) when no main source has been loaded, to avoid
28495 2005-02-09 Robert Dewar <dewar@adacore.com>
28497 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28498 Fix name of Set routine
28500 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28503 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28504 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28507 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28508 forms of Get_Line subprograms for AI-301.
28510 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28511 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28512 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28513 a-stwima.ads: Minor reformatting.
28515 2005-02-09 Doug Rupp <rupp@adacore.com>
28516 Thomas Quinot <quinot@adacore.com>
28518 * adaint.c, adaint.h
28519 [VMS] (to_ptr32): New function.
28520 (MAYBE_TO_PTR32): New macro.
28521 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28523 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28524 [VMS] (#define fork()): Remove since unneccessary.
28525 (__gnat_set_close_on_exec): New routine to support
28526 GNAT.OS_Lib.Set_Close_On_Exec.
28528 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28529 the parent side as close-on-exec so that they are not inherited by the
28532 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28533 set or clear the FD_CLOEXEC flag on a file descriptor.
28535 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28536 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28540 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28541 on the field if Pragma Component_Alignment (Storage_Unit).
28542 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28543 side-effects as if it were a constant; also make SAVE_EXPR to protect
28545 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28547 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28548 (components_to_record): Test it.
28549 Fix improper usage of REFERENCE_CLASS_P.
28551 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28554 * utils2.c: Minor reformatting.
28556 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28557 handle other cases like RECORD_TYPE.
28559 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28561 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28563 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28564 component of an array of arrays in an assignment context, and the
28565 aggregate has component associations that require sliding on
28566 assignment, force reanalysis of the aggregate to generate a temporary
28567 before the assignment.
28568 (Must_Slide): Make global to the package, for use in Gen_Assign.
28570 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28572 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28573 unchecked union with no inferable discriminants, return a
28574 Raise_Program_Error node, rather than inserting it at the point the
28576 (Expand_Record_Equality, Component_Equality): Handle properly the case
28577 where some subcomponent is an unchecked union whose generated equality
28578 code raises program error.
28580 2005-02-09 Doug Rupp <rupp@adacore.com>
28582 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28583 [VMS] (#define exit hack): Remove.
28585 2005-02-09 Pascal Obry <obry@adacore.com>
28586 Arnaud Charlet <charlet@adacore.com>
28588 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28589 address of the exception registration. The Win32 version of this
28590 routine calls __gnat_install_SEH_handler() to initialize the SEH
28591 (Structured Exception Handling) handler.
28592 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28593 SEH (Structured Exception Handling) now.
28594 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28595 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28596 preprocessor condition protecting the call to the extra eh setup
28597 subprogram, which is only available for the ppc target.
28598 (__gnat_clear_exception_count): replaced reference to
28599 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28601 * seh_init.c: New file.
28603 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28604 (GNATBIND_OBJS): Idem.
28606 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28607 routine takes a new parameter (a pointer to the exception registration
28608 for the SEH (Structured Exception Handling) support.
28610 * raise.h: (__gnat_install_SEH_handler): New prototype.
28611 Update copyright notice.
28613 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28614 record and initialize it by calling __gnat_install_SEH_handler.
28616 2005-02-09 Vincent Celier <celier@adacore.com>
28618 * make.adb (Gnatmake): Do not fail when the main project has no object
28621 2005-02-09 Doug Rupp <rupp@adacore.com>
28623 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28624 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28625 [VMS]: Add translations for g-enblsp.adb.
28627 * s-asthan-vms.adb: Removed.
28628 * s-asthan-vms-alpha.adb: Added.
28630 2005-02-09 Pascal Obry <obry@adacore.com>
28632 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28633 (LIBGNAT_OBJS): Add seh_init.o.
28635 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28638 * Makefile.in: Link all gnat tools with -static-libgcc, since
28639 -shared-libgcc is now used by default on some systems (e.g. linux with
28641 Remove references to Makefile.prolog/generic, no longer used.
28643 2005-02-09 Vincent Celier <celier@adacore.com>
28645 * prj-makr.adb (Process_Directory): Put file name in canonical case
28646 before matching against the patterns.
28647 If gnatname has been invoked as <prefix>-gnatname
28648 then invoke the compiler as <prefix>-gcc, not just "gcc".
28650 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28652 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28653 with expansion disabled. The actual subtype is needed among other
28654 places when the selected component appears in the context of a loop
28655 bound, and denotes a packed array.
28656 (Operator_Check): Always use the first subtype in the
28657 error message, to avoid the appearance of internal base types.
28658 (Transform_Object_Operation): Copy each actual in full
28659 to the parameter associations of the constructed call, rather than
28660 using the shallow copy mechanism of New_Copy_List. This ensures that
28661 the chaining of named associations is done properly.
28662 (Complete_Object_Operation): Rewrite node, rather than
28663 replacing it, so that we can trace back to the original selected
28666 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28667 and calls that use object notation, if the called function is not
28668 declared in a withed unit, place the elaboration constraint on the
28669 unit in the context that makes the function accessible.
28670 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28671 imposes an elaboration constraint between two packages.
28673 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28675 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28676 views of a private type after handling its private dependents, to
28677 maintain proper stack discipline between entry and exit from the
28680 2005-02-09 Cyrille Comar <comar@adacore.com>
28682 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28683 Minor reformatting.
28685 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28687 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28688 fields for foreign threads.
28690 2005-02-09 Doug Rupp <rupp@adacore.com>
28692 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28693 recursion warnings when compiled with -gnatdm.
28695 2005-02-09 Robert Dewar <dewar@adacore.com>
28697 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28698 Slight fix to documentation of -gnaty with no parameters
28700 * xr_tabls.ads: Add ??? comment for missing overall comment
28702 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28703 we now use by default.
28705 * xsnames.adb: Adjust end of file test to look for five space followed
28706 by '#' instead of six spaces. The format of xsnames.adb was modified
28707 in the last update.
28709 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28712 * clean.adb: Minor reformatting.
28714 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28715 gnatname.adb: Minor reformatting
28716 Add 2005 to copyright output when utility is run
28718 * csets.adb: Eliminate obsolete comment
28720 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28723 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28725 2005-02-09 Sergey Rybin <rybin@adacore.com>
28727 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28728 the difference between compact and incompact layout and add the record
28729 representation clause to the example illustrating different layouts.
28730 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28731 component clauses").
28733 2005-02-09 Florian Villoing <villoing@adacore.com>
28735 * gnat_ugn.texi: Fix typos.
28736 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28738 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28739 in the generated documentation.
28741 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28743 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28745 Update linker wrapper when linking with non GNU C++.
28747 2005-02-09 Pascal Obry <obry@adacore.com>
28750 Document the procedure to debug the DllMain routine on Windows.
28751 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28753 Document new BIND qualifer /RETURN_CODES=VMS.
28755 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28757 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28758 Edited gnatmetric chapter
28760 2005-02-09 Robert Dewar <dewar@adacore.com>
28763 Changes to document new wide wide character support
28765 Update documentation on Normalize_Scalars and Initialize_Scalars
28767 2005-02-09 Pascal Obry <obry@adacore.com>
28769 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28771 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28773 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28774 from the VxWorks kernel) that is needed for getting the active
28775 priority of the different tasks.
28777 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28778 Use a pragma Elaborate_Body in the spec file instead.
28779 Noticed by code reading.
28781 2005-02-09 Thomas Quinot <quinot@adacore.com>
28783 * exp_util.ads: Minor correction in comment.
28785 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28787 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28788 since this procedure is now too complex to be worth inlining.
28790 2005-02-09 Richard Henderson <rth@redhat.com>
28792 * utils.c (gnat_define_builtin): Remove.
28793 (gnat_install_builtins): Use build_common_builtin_nodes.
28795 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28797 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28798 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28799 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28800 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28801 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28802 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28803 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28804 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28805 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28806 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28807 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28808 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28809 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28810 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28811 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28812 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28813 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28814 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28815 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28816 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28817 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28818 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28819 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28820 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28821 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28822 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28823 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28824 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28825 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28826 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28827 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28828 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28829 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28830 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28833 2005-01-27 Laurent Guerby <laurent@guerby.net>
28835 * Makefile.in: Fix a-intnam.ads from previous commit,
28836 add 2005 to copyright.
28837 * a-intman-rtems.ads: Renamed to...
28838 * a-intnam-rtems.ads:
28840 2005-01-27 Laurent Guerby <laurent@guerby.net>
28842 * Makefile.in: Rename GNAT RTEMS specific files.
28843 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28844 5rosinte.ads, 5rparame.adb: Replaced by files below.
28845 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28846 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28848 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28849 Laurent Guerby <laurent@guerby.net>
28852 * 5rosinte.ads: Add No_Key constant.
28853 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28854 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28856 2005-01-26 Laurent Guerby <laurent@guerby.net>
28859 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28861 2005-01-20 Richard Henderson <rth@redhat.com>
28863 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28864 a-intnam-linux.ads and system-linux-alpha.ads.
28865 * a-intnam-linux-alpha.ads: Remove file.
28866 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28867 * system-linux-alpha.ads: New file.
28869 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28872 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28873 set to the new string.
28875 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28877 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28880 2005-01-18 Richard Henderson <rth@redhat.com>
28882 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28883 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28885 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28887 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28889 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28890 (GCC_ZCX_Support): Likewise.
28892 2005-01-11 Bastian Blank <waldi@debian.org>
28894 * system-linux-s390.ads: Define Preallocated_Stacks.
28895 * system-linux-s390x.ads: Likewise.
28897 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28899 * gnat_ugn.texi: Fix texi errors with null variables.
28901 2005-01-03 Thomas Quinot <quinot@adacore.com>
28903 * gen-soccon.c: New utility program to generate g-soccon.ads
28906 * socket.c, gsocket.h: Split inclusion of system header files into a
28907 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28909 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28910 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28911 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28912 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28913 should not be edited by hand anymore, but should be regenerated using
28916 2005-01-03 Robert Dewar <dewar@adacore.com>
28917 Ed Schonberg <schonberg@adacore.com>
28918 Vincent Celier <celier@adacore.com>
28920 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28921 on/off, since this is an obsolescent feature, for which we now generate
28924 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28925 warning mode is set and obsolescent usage of this attribute occurs.
28926 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28927 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28928 predates, and partly motivates, the adoption of the AI.
28929 Implement new Ada 2005 attribute Mod
28931 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28934 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28936 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28937 pragma restrictions.
28938 New entry for Ada 2005 attribute Mod.
28941 Add recognition of new pragma Restrictions No_Dependence
28942 Recognize restriction No_Obsolescent_Features at parse time
28944 * bcheck.adb: Add circuitry for checking for consistency of
28945 No_Dependence restrictions.
28947 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28950 * restrict.ads, restrict.adb: Add subprograms to deal with
28951 No_Dependence restrictions.
28953 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28956 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28957 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28959 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28960 dummy parameter to scng instantiation.
28961 Needed for new restriction No_Obsolescent_Features
28963 * scn.adb: (Obsolescent_Check): New procedure
28964 Needed for new restriction No_Obsolescent_Features
28966 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28967 specified by AI-285, needed for implementation of AI-388 (adding greek
28968 pi to Ada.Numerics).
28969 Add new generic formal to scng, needed for new restriction
28970 No_Obsolescent_Features.
28972 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28974 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28975 restrictions lines.
28976 (Scan_ALI): When finding an unexpected character on an R line, raise
28977 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28978 Ignore_Errors is True, default restrictions are set and scanning of the
28979 ALI file continues with the next line. Also, when Bad_R_Line is raised
28980 and Ignore_Errors is True, skip to the end of le line.
28982 * sem_ch10.adb: Check that explicit with's do not violate
28983 No_Dependence restrictions.
28984 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28985 illegal context clauses containing child units of instance.
28987 * sem_prag.adb: Processing and checking for new No_Dependence
28989 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28990 analyze and check the External argument.
28992 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28994 2005-01-03 Robert Dewar <dewar@adacore.com>
28996 * atree.adb: Add a fifth component to entities
28997 This allows us to add 32 flags and four new fields
28999 * atree.ads: Add a fifth component to entities
29000 This allows us to add 32 flags and four new fields
29002 * einfo.ads, einfo.adb: Document new fields and new flags now available
29003 Add routines for printing new fields
29005 * treepr.adb: Call routines to print out additional fields if present
29007 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29009 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
29010 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
29012 * Makefile.in: Add support to build shared Ada libraries on solaris x86
29013 Remove gpr2make, replaced by gprmake.
29014 Remove references to gnatmem and libaddr2line.
29015 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
29016 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
29017 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
29018 a-numaux-darwin.ads and a-numaux-darwin.adb
29019 Enable mlib-tgt-lynxos.adb on lynxos.
29021 * Make-lang.in: Remove rules for gpr2make.
29022 When generating sdefault.adb, do not call Relocate_Path
29023 on S3 for function Target_Name, as it is not a path.
29024 Remove references to gnatmem and libaddr2line.
29026 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
29029 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
29031 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
29032 address is incompatible with its base type alignment constraints when
29033 this can be decided statically.
29035 2005-01-03 Olivier Hainque <hainque@adacore.com>
29037 * decl.c (compatible_signatures_p): New function. The intended purpose
29038 is to check if two function signatures for a call-site and a callee are
29039 compatible enough for the call to be valid. The underlying purpose is
29040 to check if a call to a mapped builtin is using the right interface.
29041 The current code actually does not check antyhing - this a placeholder
29042 for future refinements.
29043 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29044 builtin calls for convention Intrinsic.
29046 * gigi.h (builtin_decl_for): Declare (new function).
29048 * utils.c (gnat_install_builtins): Install the target specific builtins.
29049 (builtin_decl_for): New function, provide a dummy body for now.
29051 2005-01-03 Geert Bosch <bosch@adacore.com>
29053 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29054 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29055 (Pred): Implement in terms of Succ.
29057 * trans.c (convert_with_check): Reimplement conversion of float to
29060 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29061 Vincent Celier <celier@adacore.com>
29063 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29064 bounds can be negative, and must be declared Int, not Nat.
29066 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29067 array is checked after using the index in the array.
29069 * makegpr.adb (Add_Switches): Check if there is a package for the
29070 processor. If there is no package, do not look for switches.
29072 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29074 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29075 generation of predefined stream operations (specs and bodies) should
29076 proceed. Under various restrictions these subprograms must not be
29079 2005-01-03 Thomas Quinot <quinot@adacore.com>
29082 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29083 amount of PCS-specific code in RACW stubs generation.
29084 (Copy_Specification): Set Etype on copied formal parameter entities, as
29085 this information is needed for PolyORB stubs generation.
29086 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29087 variable Dynamic_Async.
29088 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29089 (Build_RPC_Receiver_Specification): Make generic again, as recent
29090 changes have allowed RPC receivers to have the same profile for both
29091 variants of the PCS.
29092 Reorganise RPC receiver generation to reduce differences between the
29093 structure of GARLIC and PolyORB RPC receivers.
29094 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29096 Simplify elaboration code for RCI packages.
29098 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29099 generation to reduce differences between the structure of GARLIC and
29100 PolyORB RPC receivers.
29102 * s-stratt.adb: Fix typo in comment.
29104 2005-01-03 Thomas Quinot <quinot@adacore.com>
29106 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29107 copied from Make_Init_Call).
29109 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29110 reads and assignments on a temporary variable declared with appropriate
29113 2005-01-03 Robert Dewar <dewar@adacore.com>
29115 * i-c.adb (To_C): Raise CE if string is null and Append_Null
29117 2005-01-03 Robert Dewar <dewar@adacore.com>
29119 * i-cstrin.adb (Update): Do not append a null in form called with a
29120 String. This avoids unintended behavior.
29122 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29125 * init.c: Fix warnings on Free BSD section.
29127 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29130 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29133 2005-01-03 Vincent Celier <celier@adacore.com>
29135 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29136 libraries when Unique_Compile is True (-u switch).
29139 2005-01-03 Robert Dewar <dewar@adacore.com>
29141 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29142 upper case letter or underscore after W, as allowed by spec.
29144 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29146 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29147 darwin port by using proper type definitions from header files.
29148 Use SIGTERM instead of SIGABRT for SIGADAABORT.
29150 2005-01-03 Robert Dewar <dewar@adacore.com>
29152 * par.adb: Enhance error message handling for configuration file
29155 2005-01-03 Robert Dewar <dewar@adacore.com>
29157 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29158 removed during the previous update (test properly for case of dividing
29159 largest negative number by -1, which generates overflow).
29161 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29162 Sergey Rybin <rybin@adacore.com>
29164 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29165 to use as the defining identifier for a formal package.
29166 (Remove_Parent): If the instance takes place within (an instance of)
29167 a sibling, preserve private declarations of common parent.
29169 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29171 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29172 to determine whether one of the operands is a fixed-point type for
29173 which a user-defined multiplication or division operation might be
29176 * sem_res.adb (Valid_Conversion): The legality rules for conversions
29177 of access types are symmetric in Ada 2005: either designated type can
29180 2005-01-03 Vincent Celier <celier@adacore.com>
29182 * s-fileio.adb (Temp_File_Record): Change length of string component
29183 Name from L_tmpnam + 1 to max_path_len + 1.
29185 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29187 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29188 Self_Id.Deferral_Level = 0.
29189 (Do_Pending_Action): Move this function to the spec.
29191 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29192 Do_Pending_Action explicitely when needed, in case we're using
29193 No_Abort restrictions.
29195 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29196 deferral level since it will not get changed by the generated code.
29197 Keeping a default value of 1 would prevent some operations (e.g.
29198 select or delay) to proceed successfully.
29200 2005-01-03 Ben Brosgol <brosgol@adacore.com>
29201 Robert Dewar <dewar@adacore.com>
29202 Cyrille Comar <comar@adacore.com>
29204 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29205 porting guide chapter (vms version).
29206 Revised doc title (removed "for native platforms") and subtitle.
29207 Add discussion on warning flag for obsolescent features. First we
29208 note that it applies to obsolete GNAT features, which was previously
29209 omitted. Second we contrast the behavior with that of the new
29210 Ada 2005 AI-368 restriction No_Obsolescent_Features.
29211 Preliminary rewriting of GNAT & libraries chapter in order to take
29212 into account default project locations & new project manager
29215 2005-01-03 Robert Dewar <dewar@adacore.com>
29217 * cstand.adb (Create_Operators): Clean up format and documentation of
29218 unary and binary operator result tables. No change in code, just
29219 reformatting and addition of comments.
29221 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29222 sem_ch2.adb: Minor reformatting
29224 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29225 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29226 comments for Tree_Read and Tree_Write.
29228 2005-01-03 Pascal Obry <obry@adacore.com>
29230 * exp_attr.ads: Minor reformatting.
29232 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29234 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29237 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29239 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29240 whether the ancestor type is private, as may be the case with nested
29243 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29246 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29248 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29250 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29251 * utils2.c (build_unary_op): Likewise.
29253 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29255 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29257 2004-12-19 Richard Henderson <rth@redhat.com>
29259 * trans.c (gigi): Update gimplify_body call.
29261 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29263 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29265 2004-12-07 Ed Falis <falis@adacore.com>
29267 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29268 current task being suspended.
29270 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29272 (__gnat_map_signal): removed test for current task being suspended.
29274 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29276 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29277 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29278 targets (such as AAMP).
29280 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29282 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29283 because the back-end may otherwise treat it as a redefinition of the
29286 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29288 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29290 * lang-specs.h: Accept --param.
29292 2004-12-07 Vincent Celier <celier@adacore.com>
29294 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29295 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29296 Current_Body_Suffix => Ada_Body_Suffix).
29297 Take into account Externally_Built attribute.
29299 * clean.adb (In_Extension_Chain): Always return False when one of the
29300 parameter is No_Project.
29301 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29302 Ada_Language_Index).
29303 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29304 Process_Languages for procedure Parse).
29306 * gnatcmd.adb (Carg_Switches): New table.
29307 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29308 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29309 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29311 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29312 Header_Num and function Hash are now declared in package Prj,
29315 * prj.adb (Suffix_Of): New function.
29316 (Set (Suffix)): New procedure.
29317 (Hash): One function moved from Prj.Com
29318 (Is_Present, Language_Processing_Data_Of): New functions
29319 (Set): Two new procedures
29320 (Add_Language_Name, Display_Language_Name): New procedures
29322 * prj.ads: (Suffix_Of): New function
29323 (Set (Suffix)): New procedure
29324 Add several types and tables for multi-language support.
29325 (Header_Num): Type moved from Prj.Com
29326 (Hash): Two functions moved from Prj.Com
29327 (Is_Present, Language_Processing_Data_Of): New functions
29328 (Set): Two new procedures
29329 (Add_Language_Name, Display_Language_Name): New procedures
29330 (Naming): Component name changes:
29331 Current_Spec_Suffix => Ada_Spec_Suffix,
29332 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29333 Impl_Suffixes, Supp_Suffixes.
29334 (Project_Data): New components: Externally_Built, Supp_Languages,
29335 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29336 Default_Linker_Path.
29338 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29339 new package Language_Processing with its attributes (Compiler_Driver,
29340 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29341 Binder_Driver, Default_Linker).
29343 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29344 (Header_Num): Type moved to package Prj
29346 * prj-env.adb: Adapt to name changes in package Prj
29347 (Current_Spec_Suffix => Ada_Spec_Suffix,
29348 Current_Body_Suffix => Ada_Body_Suffix).
29350 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29351 default to the project path, except the "-" is one of the directories
29352 in env var ADA_PROJECT_PATH.
29353 (Current_Project_Path): Global variable, replacing Project_Path
29354 that was in the body of Prj.Part.
29355 (Project_Path): New function
29356 (Set_Project_Path): New procedure
29357 Initialize Current_Project_Path during elaboration of the package
29358 Remove dependency on Prj.Com, no longer needed
29360 * prj-ext.ads (Project_Path): New function
29361 (Set_Project_Path): New procedure
29363 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29364 suffix is defined for language <lang>.
29365 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29366 accessing directly the components of Naming.
29367 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29368 Reorganise of this package.
29369 Break procedure Check in several procedures.
29371 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29372 Other_Languages_Check and Language_Independent_Check) with a single
29375 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29376 Process_Languages, no longer needed.
29378 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29379 Current_Project_Path.
29380 Remove elaboration code, moved to the body of Prj.Ext
29381 Use new function Prj.Ext.Project_Path instead of old variable
29383 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29384 When comparing with project paths on the stack, first put the resolved
29385 path in canonical case.
29386 (Parse_Single_Project): Set the path name of the project file in the
29387 tree to the normalized path.
29389 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29390 parameter Process_Languages, no longer needed.
29391 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29392 Other_Languages_Check.
29394 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29395 to store the resolved canonical path of the project file.
29396 Remove dependency to Prj.Com, no longer needed
29398 * prj-util.adb: Adapt to name changes in package Prj
29399 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29402 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29403 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29404 Externally_Built, Include_Option, Language_Processing.
29406 * makegpr.adb: Numerous changes due to changes in packages
29409 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29410 default to the project path, except whe "-" is one of the directories
29411 in env var ADA_PROJECT_PATH.
29412 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29414 2004-12-07 Robert Dewar <dewar@adacore.com>
29416 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29418 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29421 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29422 flag. No longer needed now that we handle this in gnat1drv.adb.
29424 * repinfo.ads: Minor reformatting
29426 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29427 Olivier Hainque <hainque@adacore.com>
29428 Eric Botcazou <ebotcazou@adacore.com>
29430 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29431 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29432 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29433 of a bitfield, which we know is useless and causes trouble because of
29434 alignment implications.
29436 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29438 (process_attributes): Clear DECL_COMMON again when a section attribute
29440 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29441 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29442 (create_field_decl): Special case ADDRESSABLE negative to mean
29443 "no bitfield creation", to be used by make_aligning_type. Don't
29444 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29445 fields claimed addressable still have to be bitfields. Use
29446 value_factor_p instead of a raw binop construction to check for the
29447 position's alignment.
29449 2004-12-07 Geert Bosch <bosch@adacore.com>
29451 * eval_fat.adb: Revert previous change.
29453 2004-12-07 Thomas Quinot <quinot@adacore.com>
29454 Ed Schonberg <schonberg@adacore.com>
29456 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29457 with an implicit dereference as its prefix, use
29458 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29459 an explicit dereference. This ensures that a reference to the original
29460 prefix is generated, if appropriate.
29462 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29463 dereference is rewritten to an explicit one, generate a reference to
29464 the entity denoted by its prefix using the original prefix node, so
29465 the dereference can be properly recorded as a read of the denoted
29466 access value, if appropriate.
29468 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29469 emitting 'assigned but never read' warning on a variable on the basis
29470 that it has an access type.
29471 (Check_References): Emit unreferenced warning when the scope is a
29474 2004-12-07 Robert Dewar <dewar@adacore.com>
29475 Ed Schonberg <schonberg@adacore.com>
29477 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29480 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29481 leaving call unchanged.
29482 This deals with the case where the pragma Import specified
29483 an external name, to be handled by the back end.
29485 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29486 subprogram which is Imported with convention Intrinsic if an
29487 External_Name argument is specified.
29488 (Process_Import_Or_Interface): Properly diagnose link name argument.
29489 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29490 with Sem_Ch6.Cannot_Inline.
29491 (Process_Inline): Provide separate warning for inapplicable inline
29493 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29494 treatment is uniform on different targets.
29496 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29498 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29499 construct is rewritten, preserve end label to permit source navigation.
29501 2004-12-07 Thomas Quinot <quinot@adacore.com>
29503 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29504 Specific_Build_Stub_Target): New subprograms.
29505 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29506 the PCS implementation used, using the above PCS-customized subprograms.
29507 Minor reformatting.
29508 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29509 for generation of DSA code targeted to the PolyORB PCS.
29510 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29511 implementation of the partition communication subsystem in ancillary
29513 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29514 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29515 PCS-specific part of Add_Stub_Type.
29516 (Insert_Partition_Check): Use runtime library function to perform
29519 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29520 (RE_Same_Partition): New entity, from s-parint.
29522 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29524 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29526 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29527 Output the copyright message on a separate line from the version
29530 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29532 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29533 compile-time warning.
29535 2004-12-07 Robert Dewar <dewar@adacore.com>
29537 * g-regpat.adb: (Match): Change a misuse of or to or else
29539 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29542 (Generate_Reference): Handle properly a reference to an entry formal,
29543 when an accept statement has a pragma Unreferenced for it.
29545 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29546 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29547 the body, to ensure that warnings are properly emitted for each accept
29548 statement of a given task entry.
29550 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29552 * Makefile.in: Add support for foreign threads on VMS.
29554 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29556 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29558 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29560 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29562 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29564 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29566 2004-12-07 Robert Dewar <dewar@adacore.com>
29568 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29570 (Remove_Next_Debug): Same fix
29572 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29573 maintain back pointers now, though we did not used to, and comments
29575 (Prepend): Remove pragma Inline.
29576 (Remove_Next): Same cleanup
29578 2004-12-07 Thomas Quinot <quinot@adacore.com>
29580 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29581 used to record an implicit dereference as a read operation on its
29582 prefix when operating under -gnatc. Necessary to avoid spurious
29583 'variable assigned but never read' warnings in that mode.
29584 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29585 is a non-overloaded implicit dereference, call the above subprogram to
29586 ensure proper recording of references.
29588 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29590 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29591 to be resolved later as part of Analyze_Iteration_Scheme's call to
29594 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29596 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29597 prefix is not a scalar type, place error message on prefix, not on
29600 2004-12-07 Bernard Banner <banner@adacore.com>
29602 * vxaddr2line.adb: Add support for x86 vxworks
29604 2004-12-07 Thomas Quinot <quinot@adacore.com>
29606 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29607 documentation of the behaviour of these functions when passed an IP
29608 address that has no record in the system hosts database and no reverse
29611 * cstand.adb, a-tags.ads: Fix typos in comment.
29613 2004-12-07 Robert Dewar <dewar@adacore.com>
29615 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29616 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29617 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29618 s-poosiz.ads: Minor reformatting
29620 * make.adb: Minor reformatting
29621 Add some ??? comments asking for more comments
29623 * s-poosiz.adb: Minor reformatting
29624 Add comments on alignment requirement
29626 * sinfo.ads: Remove obsolete comment and fix typo.
29628 2004-12-07 Vincent Celier <celier@adacore.com>
29629 Sergey Rybin <rybin@adacore.com>
29631 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29632 Files" with the new tool and package names.
29633 Reformatting to suppress most of the warnings for line too long
29634 Document the new section "Project Search Path:" in the output of
29636 Add gnatmetric section
29638 2004-12-07 Vincent Celier <celier@adacore.com>
29640 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29641 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29642 and -eit to -ept. Added qualifier
29643 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29645 2004-11-27 Andreas Schwab <schwab@suse.de>
29647 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29649 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29651 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29652 internal implementation unit GNAT.Sockets.Thin,
29653 as their usage for sockets is non-portable (using the read and write
29654 functions from the system runtime library is fine on UNIX but won't
29655 work under Windows).
29657 * mingw32.h: Update copyright notice.
29659 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29661 * ada-tree.h: Minor reformatting of previous change to avoid lines
29662 longer than 79 characters.
29664 2004-11-25 Olivier Hainque <hainque@adacore.com>
29666 * tb-gcc.c: GCC infrastructure based implementation of
29669 2004-11-24 Steven Bosscher <stevenb@suse.de>
29671 * misc.c (gnat_post_options): Don't clear
29672 flag_inline_functions.
29674 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29677 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29680 2004-11-21 Andreas Jaeger <aj@suse.de>
29682 * stylesw.adb: Change Style_Check_Subprogram_Order to
29683 Style_Check_Order_Subprograms.
29685 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29687 * adaint.h, adaint.c
29688 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29690 Add also a cast to kill another warning.
29691 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29692 parameter with the priority class of the parent process instead of
29693 always using the NORMAL_PRIORITY_CLASS.
29694 (__gnat_dup): New function.
29695 (__gnat_dup2): New function.
29696 (__gnat_is_symbolic_link): Enable the effective body of this
29697 function when __APPLE__ is defined.
29699 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29702 2004-11-18 Olivier Hainque <hainque@adacore.com>
29704 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29705 address of which may be used to represent "others" and "all others"
29706 choices in exception tables, instead of the current harcoded
29707 (void *)0 and (void *)1.
29708 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29710 * gigi.h (others_decl, all_others_decl): New decls representing the
29711 new Others_Value and All_Others_Value objects.
29712 (struct attrib): Rename "arg" component as "args", since GCC expects a
29713 list of arguments in there.
29715 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29716 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29719 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29720 others_decl and all_others_decl instead of hardcoded dummy addresses
29721 to represent "others" and "all others" choices, which is cleaner and
29722 more flexible with respect to the possible eh pointer encoding policies.
29724 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29725 (process_attributes): Account for the naming change of the "args"
29726 attribute list entry component.
29728 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29729 cumulating attributes for different entities into a single list.
29730 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29731 attributes for the current entity and propagate first subtype
29732 attributes to other subtypes.
29733 <E_Procedure>: Attribute arguments are attr->args and not
29734 attr->arg any more.
29735 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29736 argument provided, as this is what GCC expects. Use NULL_TREE instead
29739 2004-11-18 Robert Dewar <dewar@adacore.com>
29741 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29742 Minor reformatting througout (including new function specs)
29743 Add ??? comments asking for clarification.
29745 2004-11-18 Thomas Quinot <quinot@adacore.com>
29747 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29748 incomplete duplicate implementation of this subprogram from butil.
29750 2004-11-18 Thomas Quinot <quinot@adacore.com>
29752 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29753 procedures factors the common processing for building an RPC receiver
29754 for an RCI package or an RACW type.
29755 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29756 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29757 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29759 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29761 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29763 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29764 distribution subprogram identifiers that are either subprogram numbers
29766 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29767 string distribution identifiers assigned to a given subprogram.
29768 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29769 (Add_RAS_Dereference_TSS): Add comments.
29770 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29771 is not referenced yet because it will be used by the PolyORB DSA
29773 (Insert_Partition_Check): Remove fossile code.
29774 (First_RCI_Subprogram_Id): Document this constant.
29775 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29777 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29778 replaced with calls to Get_Library_Unit_Name_String. Previously there
29779 were several instances of the same code in different locations in the
29780 compiler; this checkin completes the replacement of all of these
29781 instances with calls to a common subprogram.
29782 Minor reformatting.
29784 * sem_dist.adb: Remove comment noting that RPC receiver generation
29785 should be disabled for RACWs that implement RASs.
29786 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29788 * sem_util.ads, sem_util.adb (Has_Stream): New function
29789 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29790 qualified name of a library unit into the name buffer.
29791 (Note_Possible_Modification): Generate a reference only
29792 if the context comes from source.
29794 * snames.ads (PCS_Names): New subtype corresponding to names of
29795 supported implementations of the Partition Communication Subsystem
29796 (PCS) (i.e. the runtime library support modules for the distributed
29799 2004-11-18 Robert Dewar <dewar@adacore.com>
29800 Ed Schonberg <schonberg@adacore.com>
29802 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29803 (Has_Rep_Pragma): New function
29804 (Has_Attribute_Definition_Clause): New function
29805 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29806 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29808 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29810 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29811 (Expand_Pragma_Psect_Object): New procedure
29812 These procedures contain the revised and cleaned up processing for
29813 these two pragmas. This processing was formerly in Sem_Prag, but
29814 is more appropriately moved here. The cleanup involves making sure
29815 that the pragmas are properly attached to the tree, and that no
29816 nodes are improperly shared.
29818 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29819 pragmas to Exp_Prag, which is more appropriate.
29820 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29821 check for duplicates Remove use of Is_Psected flag, no longer needed.
29822 Use new Make_String_Literal function with string.
29824 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29825 that are functions return universal values, that have to be converted
29826 to the context type.
29827 Use new Make_String_Literal function with string.
29828 (Get_Stream_Convert_Pragma): New function, replaces the use of
29829 Get_Rep_Pragma, which had to be kludged to work in this case.
29831 * freeze.adb: Use new Has_Rep_Pragma function
29833 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29834 function with string.
29835 Use new Has_Rep_Pragma function.
29837 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29840 2004-11-18 Robert Dewar <dewar@adacore.com>
29842 * errout.ads, errout.adb: (First_Sloc): New function
29844 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29845 check (-gnatyx) instead of being included as a redundant construct
29848 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29849 Style_Check_Order_Subprograms.
29851 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29852 stylesw.adb: Add Style_Check_Xtra_Parens
29854 * usage.adb: Add line for -gnatyx (check extra parens)
29856 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29858 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29859 Robert Dewar <dewar@adacore.com>
29861 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29862 discriminant of a constrained subtype, analyze the copy of the
29863 corresponding constraint, because in some cases it may be only
29864 partially analyzed.
29865 Removes long-lived ??? comments.
29867 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29868 handled controlled or secondary-stack expressions within the
29869 iteration_scheme of a loop.
29871 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29872 bounds that may contain functions calls, to prevent memory leaks when
29873 the bound contains a call to a function that uses the secondary stack.
29874 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29875 generate temporaries for loop bounds that might contain function calls
29876 that require secondary stack and/or finalization actions.
29878 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29879 selected component and the selector is overloadable (not just a
29880 function) treat as function call, Analyze_Call will disambiguate if
29882 (Analyze_Selected_Component): Do not generate an actual subtype for the
29883 selected component if expansion is disabled. The actual subtype is only
29884 needed for constraint checks.
29885 (Analyze_Allocator): If restriction No_Streams is set, then do
29886 not permit objects to be declared of a stream type, or of a
29887 composite type containing a stream.
29889 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29890 No_Streams no longer prohibits with'ing this package.
29892 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29893 discriminants, but the parent base has unknown discriminants, there is
29894 no discriminant constraint to inherit. Such a discrepancy can arise
29895 when the actual for a formal type with unknown discriminants is a
29896 similar private type whose full view has discriminants.
29897 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29898 do not permit objects to be declared of a stream type, or of a
29899 composite type containing a stream.
29901 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29903 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29904 protected operations.
29906 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29907 generated name, it complicates decoding in gdb and hinders debugging
29908 of protected operations.
29909 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29910 flag for the protected entry barrier function.
29911 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29912 flag for the protected entry function.
29914 2004-11-18 Nicolas Setton <setton@adacore.com>
29916 * expect.c: Define __unix__ when __APPLE__ is defined.
29918 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29919 Darwin-specific section.
29921 * lang-specs.h: Change the placement of the %1 marker.
29922 Works around the fact that gcc adds -fPIC by default under Darwin.
29924 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29926 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29927 type of the object with the packed array type, set the Analyzed flag
29928 on the object if it is an entity or simple indexed component, to avoid
29929 spurious type errors.
29931 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29933 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29934 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29935 separate line from the version message.
29937 2004-11-18 Ed Falis <falis@adacore.com>
29939 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29941 (init_float): Eliminate initialization of floating point status for
29942 AE653. The instructions have no effect for vThreads.
29944 2004-11-18 Vincent Celier <celier@adacore.com>
29946 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29947 gnatbind is invoked with -shared.
29949 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29951 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29952 for Detect_Blocking which is redundant with the check done within the
29953 procedure Protected_Single_Entry_Call.
29954 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29955 Detect_Blocking which is redundant with the check done within the
29956 procedure Protected_Single_Entry_Call.
29958 2004-11-18 Vincent Celier <celier@adacore.com>
29960 * makegpr.adb (Compile): Put the compiling switches (in package
29961 Compiler and on the command line) immediately after "-c", instead of
29962 at the end of the command line invocation of the compiler, when
29963 compiling a non-Ada file.
29964 (Build_Global_Archive): When there is no need to rebuild the archive,
29965 set Global_Archive_Exists, so that the archive is passed to the linker
29968 2004-11-18 Robert Dewar <dewar@adacore.com>
29969 Sergey Rybin <rybin@adacore.com>
29972 Remove extra paren check from list of checks for redundant constructs
29973 Add documentation of new -gnatyx style check (check extra parens)
29974 Remove paragraph about gnatelim debug options.
29976 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29977 objects rather than forbidding dependencies on the package Ada.Streams.
29979 * sinfo.ads: Add ??? note that we should document pragmas passed to
29982 * g-expect.ads: Fix a few typos in the comments.
29984 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29986 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29989 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29991 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29993 2004-11-07 Andreas Schwab <schwab@suse.de>
29995 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29997 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
30000 * Makefile.in (darwin): Set soext to .dylib.
30002 2004-10-26 Vincent Celier <celier@gnat.com>
30003 Thomas Quinot <quinot@act-europe.fr>
30005 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
30006 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
30007 there is no use of GNAT.Sockets.Constants.
30008 Remove remaining pragma Import for C_Write
30009 Remove C_Read and C_Write from internal implementation unit
30010 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
30011 the read and write functions from the system runtime library is fine
30012 on UNIX but won't work under Windows).
30014 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
30015 (Check_Selector): Use C_Recv instead of C_Read.
30016 Selectors are the GNAT.Sockets abstraction to perform a select()
30017 call on a set of descriptors. To allow abortion of an ongoing
30018 select operation, some data is written to a dedicated socket that
30019 is always monitored.
30020 Under Windows, the write and read library functions cannot operate
30021 on sockets, so we need to use send and recv instead, which is portable
30022 across all supported platforms.
30024 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
30025 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
30026 (using the read and write functions from the system runtime library is
30027 fine on UNIX but won't work under Windows).
30029 2004-10-26 Nicolas Setton <setton@act-europe.fr>
30031 * mlib-tgt-darwin.adb: New file.
30033 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30034 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30035 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30036 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
30039 * Makefile.in: Add support for building shared libraries under Darwin.
30040 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30041 the low level EH init subprogram to be called from __gnat_initialize.
30043 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30044 indicates which options to pass to the archive indexer.
30046 * mlib-utl.adb: Add support for calling ranlib with additional
30047 options. This is needed for instance under Mac OS X.
30048 (Ranlib_Options): New global variable, used to store the potential
30049 options to pass to ranlib.
30050 (Ar): Use Ranlib_Options when spawning ranlib.
30051 (Initialize): Set the value of ranlib option.
30053 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30055 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30056 instead of 8K, to reflect the real potential needs for stack-checking
30059 2004-10-26 Pascal Obry <obry@gnat.com>
30061 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30063 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30064 Windows only the initial thread stack size can be set so it is good to
30065 start we a low stack size.
30066 The OS will adjust the size as needed.
30068 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
30069 Nicolas Setton <setton@act-europe.fr>
30071 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30072 "__unix__" instead of "unix".
30073 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30074 sections were just mistakenly ignored. The former is
30075 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30076 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30077 of hpux. This prevents an unwanted definition of the symbol
30078 convert_addresses in adaint.o.
30080 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30082 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30083 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30085 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30087 * a-filico.ads, a-filico.adb: fix incorrect header.
30089 2004-10-26 Javier Miranda <miranda@gnat.com>
30091 * a-ststio.ads: Fix typo in identifier
30093 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30095 * sem_ch4.adb: Minor reformatting.
30097 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30099 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30100 enabled, check the result of unary and binary operations when the
30101 expression is the right-hand side of an assignment.
30103 2004-10-26 Vincent Celier <celier@gnat.com>
30105 * clean.adb (Delete): Do not output warnings when in quiet output and
30106 not in verbose mode.
30107 (Force_Deletions): New Boolean flag, defaulted to False
30108 (Delete): Only delete a file if it is writable, and when
30109 Force_Deletions is True.
30110 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30111 (Usage): Line for new switch -f
30112 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30115 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30117 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30118 JM type only if its size matches that of the wrapper. When a size is
30119 prescribed and the field is not aliased, remove the wrapper of a JM
30120 type only if the size is not greater than that of the packed array.
30121 (gnat_to_gnu_entity): Change the extension of packed array wrappers
30124 2004-10-26 Geert Bosch <bosch@gnat.com>
30126 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30127 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30128 (Pred): Implement in terms of Succ.
30130 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30132 * exp_aggr.adb (Safe_Component): An aggregate component that is an
30133 unchecked conversion is safe for in-place use if the expression of the
30134 conversion is safe.
30135 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30136 be expandable in place even if the aggregate does not come from source.
30137 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30138 designated object of an allocator in place, rather than building it
30139 first on the stack. The previous scheme forces a full copy of the array,
30140 and may be altogether unsusable if the size of the array is too large
30141 for stack allocation.
30143 2004-10-26 Robert Dewar <dewar@gnat.com>
30145 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30146 compares if the component is atomic.
30148 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30149 array assignment if the component type is atomic.
30151 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30152 Eric Botcazou <ebotcazou@act-europe.fr>
30154 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30155 is aliased and is a by_reference type, do not pass by copy.
30156 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30157 detect whether the call is in the right side of an assignment or
30158 the expression of an object declaration. Recurse on component
30159 association within aggregates.
30160 Call it in the condition that determines whether the temporary is
30161 necessary for correct stack-checking.
30163 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30165 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30166 RACW_Type, used in the PolyORB version.
30167 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30168 version and the GARLIC version.
30170 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
30171 Rename RCI_Info to RCI_Locator for better consistency between the
30172 GARLIC and PolyORB versions of the distributed systems annex.
30173 (DSA_Implementation_Name): This enumeration lists the possible
30174 implementations of the Partition Communication Subsystem for the
30175 Distributed Systems Annex (DSA). The three available implementations
30176 are the dummy stub implementation (No_DSA), and two versions based on
30177 two different distribution runtime libraries: GARLIC and PolyORB. Both
30178 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30180 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30183 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30184 between the GARLIC and PolyORB versions of the distributed systems
30186 Remove RE_Unbounded_Reclaim_Pool since it is unused.
30188 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30190 * gnat1drv.adb: Suppress calling the back end when
30191 Frontend_Layout_On_Target is true.
30193 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30195 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30196 Set_Read_Only): New subprograms.
30197 These new routines allow the user to set or unset the Owner execute
30198 and Owner write permission flags on a file.
30200 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30201 GNAT.OS_Lib.Set_Executable instead of rolling our own.
30203 2004-10-26 Matthew Gingell <gingell@gnat.com>
30205 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30207 2004-10-26 Pascal Obry <obry@gnat.com>
30209 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30210 memory before the faulting page we properly test the process read
30211 access for this address using appropriate Win32 routine.
30212 (HPUX sections): guard with "__hpux__" instead of "hpux".
30214 2004-10-26 Robert Dewar <dewar@gnat.com>
30216 * lib-xref.adb (Generate_Reference): Don't complain about reference to
30217 entry parameter if pragma Unreferenced set, since we do not properly
30218 handle the case of multiple parameters.
30220 2004-10-26 Vincent Celier <celier@gnat.com>
30222 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30223 (Ada_Objects_Path.Add): For a library project, add to the object path
30224 the library directory only if there is no object directory or if the
30225 library directory contains ALI files.
30226 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30228 2004-10-26 Vincent Celier <celier@gnat.com>
30230 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30231 extension of library projects.
30233 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30234 path defaults to ".:<prefix>/lib/gnat".
30235 (Parse): For an extending all project, allow direct import of a project
30236 that is virtually extended.
30238 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30239 the specified name is directly imported, return its ID. Otherwise, if
30240 an extension of this project is imported, return the ID of the
30243 2004-10-26 Robert Dewar <dewar@gnat.com>
30245 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30246 (Sub3): New procedure, used by Scaled_Divide
30247 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30248 correct more than one instance of failure to propagate carries
30250 (Double_Divide): Handle overflow case of largest negative number
30251 divided by minus one.
30253 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30254 the case of a quotient value out of range.
30257 2004-10-26 Robert Dewar <dewar@gnat.com>
30259 * s-bitops.adb (Bit_Eq): Remove redundant check.
30261 * s-bitops.ads: Minor comment updates
30262 Change some occurrences of Address to System.Address
30264 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30266 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30268 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30269 accessibility check to prefix that is a protected operation.
30271 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30273 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30274 empty, post message on stub.
30276 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30277 Javier Miranda <miranda@gnat.com>
30279 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30280 current instance appears within a unit that is directly in the context
30282 Used to determine whether the body of the instance should be analyzed
30283 immediately after its spec, to make its subprogram bodies available
30284 for front-end inlining.
30285 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30286 constraint is not allowed on the component type (AARM 12.5.3(3))
30288 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30290 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30291 'Storage_Pool): enhance, document & limit detection of non-sharable
30294 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30296 * s-pooglo.ads: Add more documentation now that this pool is properly
30299 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30301 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30302 or protected type with discriminants, do not constrain the
30303 corresponding record type if the subtype declaration has no
30304 discriminant constraints. This can be the case in source code, or in
30305 the subtype declaration created to rename an actual type within an
30308 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30310 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30311 different kind of stub (possibly wrong name for file), do not check
30313 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30314 includes call to some function that returns an unconstrained type, do
30317 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30319 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30320 appear in the code for the main unit. Dependencies among units in the
30321 context of the main unit are established when those other units are
30322 compiled. Otherwise spurious elaboration constraints can generate
30323 incorrect elaboration circularities.
30325 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30326 Ed Schonberg <schonberg@gnat.com>
30328 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30329 subprogram is called with a parameter that is not an object name. This
30330 situation arises for some cases of illegal code, which is diagnosed
30331 later, and in this case it is wrong to call Is_Aliased, as that might
30332 cause a compiler crash.
30333 (Explain_Limited_Type): Refine previous fix to include
30334 inherited components of derived types, to provide complete information.
30336 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30337 is the prival for a protected object.
30338 It is necessary to mark this entity as a variable, in addition to
30339 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30340 modified to avoid checking the Aliased flag on entities that are not
30341 objects. (Checking that flag for non-objects is erroneous and could
30342 lead to a compiler crash).
30344 2004-10-26 Robert Dewar <dewar@gnat.com>
30346 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30347 X_Frac = 0.5, then we know that the number X must be positive.
30348 (Succ): Remove the same redundant test, and also fix the primary test
30349 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30351 (Decompose): Add fuller comments to spec
30353 2004-10-26 Pascal Obry <obry@gnat.com>
30355 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30356 validity (process must have read access). Set to 0 in all other cases.
30357 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30358 violation on Win32.
30359 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30360 segmentation violation.
30362 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30364 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30365 whose type is a constructed subtype of an aliased object with an
30366 unconstrained nominal subtype, convert the actual to the constructed
30367 subtype before taking its address.
30369 2004-10-26 Vincent Celier <celier@gnat.com>
30371 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30372 (Is_Path_Name_Case_Sensitive): New function
30374 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30375 (Base_Name, Simple_Name, Current_Directory, Compose,
30376 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30379 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30380 Vasiliy Fofanov <fofanov@act-europe.fr>
30381 Vincent Celier <celier@gnat.com>
30383 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30384 "memory management issues" section and document some of the useful
30385 memory pools provided as part of the GNAT library.
30386 Remove "virtual" from declaration of A::method2 in
30387 the simple example of Ada/C++ mixed system.
30388 Library Projects may be virtually extended: their virtual extensions
30389 are not Library Projects.
30390 Added section on extending project hierarchies.
30392 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30394 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30396 (__gnat_portable_spawn): Remove const.
30398 * mingw32.h (MAXPATHLEN): Check for previous definition.
30400 2004-10-17 Matthias Klose <doko@debian.org>
30402 * gnatvsn.ads: Set gnat library version to 4.0.
30404 2004-10-05 Vincent Celier <celier@gnat.com>
30406 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30408 2004-10-04 Laurent Guerby <laurent@guerby.net>
30411 * Makefile.in: Define and use RANLIB_FLAGS.
30413 2004-10-04 Pascal Obry <obry@gnat.com>
30415 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30416 other x86 platforms).
30418 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30420 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30421 in general and triggers stack alignment adjustment for thread entry
30422 points on targets where this is necessary.
30424 2004-10-04 Bernard Banner <banner@gnat.com>
30427 * Makefile.in: Add section for powerpc linux
30428 Add variant i-vxwork-x86.ads
30430 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30432 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30434 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30435 table registration calls when need be. Ensures no reference to the crt
30436 ctors symbol are issued in the SJLJ case, which avoids possible
30437 undefined symbol errors in the case of modules to be statically linked
30440 2004-10-04 Javier Miranda <miranda@gnat.com>
30442 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30443 in-line the code corresponding to subprogram Analyze_Actuals. In
30444 addition, analyze the actuals only in case of subprogram call.
30446 2004-10-04 Ed Falis <falis@gnat.com>
30448 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30450 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30452 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30453 in the documentation.
30455 2004-10-04 Robert Dewar <dewar@gnat.com>
30457 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30459 (Analyze_Block_Statement): Add circuitry to detect following dead code
30460 (Check_Unreachable_Code): Handle case of block exit
30462 2004-10-04 Robert Dewar <dewar@gnat.com>
30464 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30465 (XMatchD): Avoid warning for Logic_Error call
30467 2004-10-04 Robert Dewar <dewar@gnat.com>
30469 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30470 consider expressions buried within a procedure actual to be an actual.
30471 This caused some blowups with uses of packed slices within a procedure
30474 2004-10-04 Robert Dewar <dewar@gnat.com>
30476 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30477 longer need to be initialized to zero.
30478 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30479 initialized to zero.
30481 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30482 considered valid, even if the representation is modular. That's correct
30483 now that we no longer initialize packed modular arrays to zero.
30485 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30486 suffixes. These are now documented as the only cases in which the
30487 debugger ignores outer records.
30488 Previously, the spec allowed arbitrary suffixes for this purpose.
30489 Change name of LJM to JM for packed array pad records
30490 Create separate section on packed array handling, and add a whole new
30491 set of comments to this section describing the situation with packed
30492 modular types and justification requirements depending on endianness.
30494 2004-10-04 Robert Dewar <dewar@gnat.com>
30496 * a-except.adb: Add a comment for last change
30498 * einfo.ads: Minor spelling correction in comment
30500 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30502 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30505 * sem_util.ads: Minor comment update
30507 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30509 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30510 Inline_Always when in Configurable_Run_Time mode.
30512 * sem_prag.adb (Process_Convention): If entity is an inherited
30513 subprogram, apply convention to parent subprogram if in same scope.
30514 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30515 when in Configurable_Run_Time mode.
30517 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30519 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30520 class_wide type after component list has been inherited.
30522 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30524 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30525 Denotes_Previous_Actual, to handle properly the case of a private
30526 actual that is also the component type of a subsequent array actual.
30527 The visibility status of the first actual is not affected when the
30528 second is installed.
30529 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30530 make fully recursive the treatment of formals of packages declared
30532 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30533 the above on exit from an instantiation.
30534 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30535 current instantiation which is now complete.
30536 (Analyze_Package_Instantiation): No instantiated body is needed if the
30537 main unit is generic. Efficient, and avoid anomalies when a instance
30538 appears in a package accessed through rtsfind.
30540 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30542 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30543 do not generate a declaration for a temporary if the call is part of a
30544 library-level instantiation.
30546 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30548 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30549 searching for a limited component to flag.
30551 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30552 expansion of Input, to account for the fact that the implicit call
30553 generated by the attribute reference must freeze the user-defined
30554 stream subprogram. This is only relevant to 'Input, because it can
30555 appear in an object declaration, prior to the body of the subprogram.
30557 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30558 expansion can proceed and further errors uncovered.
30559 (Minor clean up): Fix cases of using | instead of \ for continuation
30562 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30564 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30566 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30567 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30568 Use gcc_assert and gcc_unreachable.
30570 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30571 specified alignment before validating size.
30572 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30573 stripped-down declaration for the type of the inner field when making
30576 * utils.c (finish_record_type): Do not compute the size in units
30577 incrementally. Instead compute it once for the rep clause case.
30578 Use gcc_assert and gcc_unreachable.
30580 2004-10-04 Vincent Celier <celier@gnat.com>
30582 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30584 (Is_Valid_Path_Name): Take '/' as a directory separator.
30586 2004-10-04 Vincent Celier <celier@gnat.com>
30588 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30589 (Extended_Project) only if Extended_Project is defined, to avoid
30591 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30593 (Parse_Single_Project): Ditto.
30595 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30596 Add_To_Project_Path for virtual projects.
30598 2004-10-04 Vincent Celier <celier@gnat.com>
30600 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30601 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30602 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30603 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30604 parameter Options_2.
30606 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30607 Build_Dynamic_Library with an empty Options_2.
30609 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30612 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30613 directory separator, if any.
30614 (Gprmake): Do not allow mains on the command line for library projects.
30615 Do not attempt to link when the project is a library project.
30616 (Library_Opts): New table to store Library_Options.
30617 (Build_Library): If Library_Options is specified, pass these options
30618 when building a shared library.
30620 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30622 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30623 the end of this procedure now that the unlock operation was inserted
30626 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30628 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30629 corresponding to the Preallocated_Stacks flags in System.
30630 (Get_Target_Parameters): Including the processing for
30631 Preallocated_Stacks.
30633 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30634 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30635 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30636 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30637 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30638 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30639 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30640 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30641 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30642 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30643 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30644 used to signal whether the compiler creates the required stacks and
30645 descriptors for the different tasks (when True) or it is done by the
30646 underlying operating system at run time (when False).
30647 It is initially set to False in all targets.
30649 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30650 if it is supported by the target.
30651 (Make_Task_Create_Call): Pass the stack address if it has been
30652 previously created. Otherwise pass a Null_Address.
30654 * snames.adb: Add _stack.
30656 * snames.ads: Add Name_uStack. Required to allow the expander to
30657 statically allocated task stacks.
30659 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30660 Stack_Address argument.
30661 Check that its value is equal to Null_Address because this target does
30662 not support the static stack allocation.
30664 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30666 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30669 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30671 * exp_dist.adb: Split declaration of asynchronous flag out of
30672 Add_RACW_Read_Attribute.
30673 Minor reformatting for better alignment with PolyORB version.
30674 Store the entity for the asynchronous flag of an RACW, rather than the
30675 expression, in the asynchronous flags table. This will allow this flag
30676 to be used in other subprograms beside Add_RACW_Read_Attribute.
30678 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30680 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30681 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30682 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30683 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30684 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30685 sockets constant MSG_NOSIGNAL (Linux-specific).
30686 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30687 all Send operations.
30688 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30689 from trigerring SIGPIPE.
30690 Rename components to avoid clash with Ada 2005 possible reserved
30692 (Check_Selector): When the select system call returns with an error
30693 condition, propagate Socket_Error to the caller.
30695 2004-10-01 Jan Hubicka <jh@suse.cz>
30697 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30699 2004-09-23 Robert Dewar <dewar@gnat.com>
30702 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30703 instead do this at freeze time (we won't do it if there is an address
30705 Change "pragma inline" to "pragma Inline" in information and error
30707 Minor reformatting.
30709 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30710 right way of doing things after all.
30711 (Freeze_Entity): For object, set Is_Public for imported entities
30712 unless there is an address clause present.
30714 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30716 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30717 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30718 ensures proper handling of types with rep clauses, which might have
30719 their TYPE_SIZE set already.
30721 2004-09-21 Robert Dewar <dewar@gnat.com>
30723 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30724 packed array types in both little- and big-endian cases. This change
30725 ensures that we no longer count on the unused bits being initialized
30726 for such types (and in particular ensures that equality testing will
30727 only read the relevant bits).
30728 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30729 These changes mean that we no longer need to initialize small packed
30731 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30732 optimization to an LJM field as to its parent field.
30734 * ada-tree.h, trans.c, utils.c, utils2.c:
30735 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30737 2004-09-20 Jan Hubicka <jh@suse.cz>
30739 * utils.c (gnat_finalize): Remove.
30740 (end_subprog_body): Directly call cgraph_finalize_function;
30741 do not lower the nested functions.
30743 2004-09-20 Robert Dewar <dewar@gnat.com>
30746 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30747 if an address clause is present, since that means that the Import
30750 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30752 * 5tsystem.ads: Removed, no longer used.
30754 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30755 Zack Weinberg <zack@codesourcery.com>
30757 * ada-tree.def: Use tree_code_class enumeration constants
30758 instead of code letters.
30759 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30760 Update for new tree-class enumeration constants.
30762 2004-09-17 Vincent Celier <celier@gnat.com>
30764 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30765 capabilities of the general project manager.
30767 2004-09-09 Vincent Celier <celier@gnat.com>
30769 * a-direct.ads: Add pragma Ada_05
30770 (Directory_Entry_Type): Give default value to component Kind to avoid
30771 not initialized warnings.
30773 * a-direct.adb (Current_Directory): Remove directory separator at the
30775 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30776 an existing directory.
30777 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30778 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30779 Convert the result to File_Size.
30781 * prj.ads: (Project_Error): New exception
30783 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30784 Prj.Com, not from Osint.
30785 (Attrs, Package_Attributes): Tables moved to private part of spec
30786 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30788 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30789 Prj.Project_Error after call to Fail.
30790 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30791 Fail. Check that package name is not already in use.
30793 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30794 used by tools, not only by the project manager, and to indicate that
30795 exception Prj.Prj_Error may be raised in case of problem.
30796 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30798 (Attrs, Package_Attributes): Table instantiations moved from the body to
30799 the private part to be accessible from Prj.Attr.PM body.
30801 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30802 from new package Prj.Attr.PM.
30803 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30806 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30808 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30809 instead of Elaboration_Checks).
30811 * a-calend.adb: Minor reformatting
30813 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30815 * gigi.h (maybe_pad_type): New declaration.
30816 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30818 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30820 * cuintp.c: Convert to use buildN.
30822 * decl.c (maybe_pad_type): No longer static.
30823 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30825 Convert to use buildN.
30827 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30828 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30829 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30831 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30832 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30833 Convert to use buildN.
30835 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30836 TREE_READONLY for const.
30837 Convert to use buildN.
30839 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30840 (create_var_decl): Refine when TREE_STATIC is set.
30841 Convert to use buildN.
30843 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30845 * gnat_ugn.texi: Delete text relating to checking of ali and object
30848 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30851 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30853 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30854 pragmas recognized by GNAT.
30856 * gnat_rm.texi: Document pragma Detect_Blocking.
30858 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30859 raise Program_Error if called from a protected operation.
30861 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30862 the protected action nesting level.
30863 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30864 protected action nesting level.
30865 (Unlock): When pragma Detect_Blocking is active decrease the protected
30866 action nesting level.
30868 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30869 Protected_Action_Nesting.
30871 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30872 Common_ATCB record. It contains the dynamic level of protected action
30873 nesting for each task. It is needed for checking whether potentially
30874 blocking operations are called from protected operations.
30875 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30876 Detect_Blocking is active or not in the partition.
30878 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30879 raise Program_Error if called from a protected operation.
30880 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30881 Program_Error if called from a protected operation.
30882 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30883 Program_Error if called from a protected operation.
30885 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30886 raise Program_Error if called from a protected operation.
30888 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30889 raise Program_Error if called from a protected operation, and increase
30890 the protected action nesting level.
30891 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30892 Program_Error if called from a protected operation, and increase the
30893 protected action nesting level.
30894 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30895 protected action nesting level.
30897 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30898 raise Program_Error if called from a protected operation, and increase
30899 the protected action nesting level.
30900 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30901 Program_Error if called from a protected operation, and increase the
30902 protected action nesting level.
30903 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30904 raise Program_Error if called from a protected operation.
30905 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30906 active, raise Program_Error if called from a protected operation.
30907 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30908 protected action nesting level.
30910 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30911 insertion of the statement raising Program_Error. The run time
30912 contains the required machinery for handling that.
30914 * sem_util.ads: Change comment associated to procedure
30915 Check_Potentially_Blocking_Operation.
30916 This procedure does not insert a call for raising the exception because
30917 that is currently done by the run time.
30919 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30921 * init.c: Add the global variable __gl_detect_blocking that indicates
30922 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30923 making the pragma available at run time.
30924 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30926 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30927 pragma Detect_Blocking is active.
30929 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30931 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30932 DB is found in the ali file. Any unit compiled with pragma
30933 Detect_Blocking active forces its effect in the whole partition.
30935 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30936 Detect_Blocking is active and delay is called from a protected
30939 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30940 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30941 Detect_Blocking is active (0 otherwise).
30942 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30943 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30946 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30948 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30949 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30952 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30953 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30954 Update API in placeholder implemetation of s-parint to reflect changes
30955 in distribution runtime library.
30957 * sem_ch3.adb (Expand_Derived_Record): Rename to
30958 Expand_Record_Extension.
30960 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30961 primitive operations of potentially distributed object types that have
30962 non-controlling anonymous access formals.
30964 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30966 New implementation of expansion for remote access-to-subprogram types,
30967 based on the RACW infrastructure.
30968 This version of sem_dist is compatible with PolyORB/DSA as well as
30971 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30972 Asynchrronous that applies to a remote access-to-subprogram type, mark
30973 the underlying RACW type as asynchronous.
30975 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30976 __gnat_using_gnu_linker to 1.
30978 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30979 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30980 GNAT.Perfect_Hash_Generators, and remove the empty
30981 GNAT.Perfect_Hash package.
30983 * atree.adb: Minor reformatting
30985 * exp_ch3.adb (Expand_Derived_Record): Rename to
30986 Expand_Record_Extension.
30987 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30988 a component declaration must remain attached at that point in the
30989 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30990 It is therefore necessary to take a copy of the expression when building
30991 the corresponding assignment statement in the init proc.
30992 As a side effect, in the case of a derived record type, we now see the
30993 original expression, without any rewriting that could have occurred
30994 during expansion of the ancestor type's init proc, and we do not need
30995 to go back to Original_Node.
30997 * exp_ch3.ads (Expand_Derived_Record): Rename to
30998 Expand_Record_Extension.
31000 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
31001 Returns the RACW type used to implement a remote access-to-subprogram
31003 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
31004 New subprograms. Used to create a proxy tagged object for a remote
31005 subprogram. The proxy object is used as the designated object
31006 for RAS values on the same partition (unless All_Calls_Remote applies).
31007 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
31008 System.Partition_Interface.Get_Unique_Remote_Pointer.
31009 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
31010 Renamed from Add_RAS_*_Attribute.
31011 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
31013 New implementation of expansion for remote access-to-subprogram types,
31014 based on the RACW infrastructure.
31016 * exp_dist.ads (Copy_Specification): Update comment to note that this
31017 function can copy the specification from either a subprogram
31018 specification or an access-to-subprogram type definition.
31020 2004-09-09 Ed Schonberg <schonberg@gnat.com>
31022 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
31023 in an instance, between an explicit subprogram an one inherited from a
31024 type derived from an actual.
31026 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
31027 add a polling call if the subprogram is to be inlined by the back-end,
31028 to avoid repeated calls with multiple inlinings.
31030 * checks.adb (Apply_Alignment_Check): If the expression in the address
31031 clause is a call whose name is not a static entity (e.g. a dispatching
31032 call), treat as dynamic.
31034 2004-09-09 Robert Dewar <dewar@gnat.com>
31036 * g-trasym.ads: Minor reformatting
31038 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
31039 packed arrays, since unused bits are expected to be zero for a
31042 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
31044 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31047 2004-09-09 Pascal Obry <obry@gnat.com>
31049 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31050 enable map file generation. Add the right option to generate the map
31051 file if Map_File is set to True.
31053 * gnatdll.adb (Gen_Map_File): New variable.
31054 (Syntax): Add info about new -m (Map_File) option.
31055 (Parse_Command_Line): Add support for -m option.
31056 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31057 Minor reformatting.
31059 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
31061 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31062 new gnatdist implementation.
31063 Define a subpackage isolating the output routines specific to this
31066 2004-09-09 Joel Brobecker <brobecker@gnat.com>
31068 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31070 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31072 2004-09-09 Cyrille Comar <comar@act-europe.fr>
31074 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31077 * opt.ads: Add Ada_Version_Runtime constant used to decide which
31078 version of the language is used to compile the run time.
31080 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
31082 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31083 of variable length temporaries for function return now that the
31084 back-end and gigi support it.
31086 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31088 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31090 * trans.c (struct stmt_group): Delete field GLOBAL.
31091 (gnat_init_stmt_group): Do not initialize it.
31092 (call_to_gnu): Use save_expr, not protect_multiple_eval.
31093 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31094 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31095 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31096 (start_stmt_group): Likewise.
31097 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31099 * utils2.c (ggc.h): Include.
31100 (build_call_raise): Call build_int_cst, not build_int_2.
31102 * utils.c (gnat_init_decl_processing): Fix arg to
31103 build_common_tree_nodes.
31104 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31105 (gnat_define_builtin): Set built_in_decls.
31106 (init_gigi_decls): Call build_int_cst, not build_int_2.
31108 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31109 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31110 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31111 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31112 SET_TYPE_MODULE): Use them.
31113 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31114 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31115 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31116 SET_TYPE_ADA_SIZE): Likewise.
31117 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31118 (DECL_CONST_CORRESPONDING_VAR,
31119 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31120 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31121 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31122 (TYPE_RM_SIZE_NUM): New macro.
31123 (TYPE_RM_SIZE): Modified to use above.
31125 * cuintp.c: (build_cst_from_int): New function.
31126 (UI_To_gnu): Use it.
31128 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31129 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31130 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31131 MIN_EXPR for the size, copy it into new.
31133 2004-09-01 Robert Dewar <dewar@gnat.com>
31135 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31136 packed indexed component where array is an IN OUT formal. This
31137 generated garbage code previously.
31139 * gnat_ugn.texi: Document -fverbose-asm
31141 * gnat-style.texi: Minor updates (note that boolean constants and
31142 variables are joined with AND/OR rather than short circuit forms).
31144 2004-09-01 Ed Schonberg <schonberg@gnat.com>
31146 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31147 it is an upward conversion of an untagged type with no representation
31150 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
31152 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31153 System.Partition_Interface.
31155 * checks.adb (Apply_Access_Checks): Do not generate checks when
31156 expander is not active (but check for unset reference to prefix of
31159 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31160 pragma Debug as an if statement with a constant condition, for
31161 consistent treatment of entity references contained within the
31162 enclosed procedure call.
31164 2004-09-01 Vincent Celier <celier@gnat.com>
31166 * bindgen.adb: (Set_EA_Last): New procedure
31167 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31169 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31170 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31171 linked without errors.
31172 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31174 (Gen_Exception_Table_C): Correct same bugs
31176 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31178 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31179 on Windows, make sure that the drive letter is in upper case.
31181 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31182 Windows, when the drive letter is added and Case_Sensitive is True, the
31183 drive letter is forced to upper case.
31185 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31186 to Options_2 for the call to MLib.Utl.Gcc.
31188 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31189 directory separator when defining BASE_DIR.
31191 2004-09-01 Pascal Obry <obry@gnat.com>
31193 * gprcmd.adb (Extend): Do not output trailing directory separator. This
31194 is not needed and it confuses Windows GNU/make which does not report
31195 directory terminated by a slash as a directory.
31196 (gprcmd): Idem for "pwd" internal command.
31198 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31199 target names rewrite to fix regressions with recent version of
31200 GNU/make. Starting with GNU/make 3.80 the pipe character was not
31201 handled properly anymore.
31203 2004-09-01 Andreas Schwab <schwab@suse.de>
31205 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31206 * raise.c [!IN_RTS]: Undef abort.
31208 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
31210 * utils2.c (build_allocator): Use ssize_int.
31212 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31214 2004-08-27 Andreas Schwab <schwab@suse.de>
31216 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31218 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31219 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31221 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31223 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31225 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31226 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31227 * utils.c (init_gigi_decls): Likewise.
31228 * utils2.c (build_call_raise, build_allocator): Likewise.
31230 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31232 * utils.c (gnat_init_decl_processing): Adjust
31233 build_common_tree_nodes call.
31235 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31237 * utils2.c (build_allocator): Use build_int_cst for negative
31240 2004-08-18 Richard Henderson <rth@redhat.com>
31242 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31244 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31246 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31248 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31249 (gnat_to_gnu): Likewise.
31251 2004-08-16 Pascal Obry <obry@gnat.com>
31253 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31254 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31255 option and not mdll anymore. Update comment.
31257 2004-08-16 Pascal Obry <obry@gnat.com>
31259 * bld.adb (Put_Include_Project): Properly handle directory separators
31262 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31264 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31265 decreasing the number of allocated junk nodes while searching for the
31266 appropriate subprogram.
31268 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31270 * cuintp.c (UI_To_gnu): Use build_int_cst..
31271 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31272 * utils.c (init_gigi_decls): Likewise.
31273 * utils2.c (build_call_raise): Likewise.
31275 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31277 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31278 for a global aliased object with a variable size and an unconstrained
31279 nominal subtype, pretend there is no initializer if the one we have is
31280 incomplete, and avoid referencing an inexistant component in there. The
31281 part we have will be rebuilt anyway and the reference may confuse
31282 further operations.
31284 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31286 * einfo.ads: Minor reformatting
31288 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31289 restrictions in the ALI if we only want to warn about violations.
31291 2004-08-13 Vincent Celier <celier@gnat.com>
31293 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31294 when creating a new Unit_Record in table Units.
31296 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31297 that are violated, if any.
31299 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31300 add directory separator if path already ends with a directory separator.
31302 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31304 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31305 unit, this is an attempt to inline a construct that is not available in
31306 the current restricted mode, so abort rather than trying to continue.
31308 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31309 discriminants that rename those of the parent, recover names of
31310 original discriminants for the constraint on the full view of the
31312 (Complete_Private_Subtype): Do not create a subtype declaration if the
31313 subtype is an itype.
31315 * gnat_rm.texi: Added section on implementation of discriminated
31316 records with default values for discriminants.
31318 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31321 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31322 the second operand is overloaded.
31324 2004-08-10 Richard Henderson <rth@redhat.com>
31326 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31327 add __builtin_alloca.
31329 2004-08-10 Richard Henderson <rth@redhat.com>
31331 * config-lang.in (boot_language): Yes.
31333 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31335 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31336 from complaining on potential uninitialized reference.
31337 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31338 new specification and test explicitly for non-zero return value.
31340 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31341 returning C.int, to avoid using a derived boolean type.
31343 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31344 Duplicate_Subexpr_No_Checks in preference to direct use of
31345 Remove_Side_Effects and New_Copy_Tree.
31346 Clear Comes_From_Source on prefix of 'Size attribute reference.
31348 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31349 g-socthi-vxworks.adb: Change calls to
31350 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31351 and test explicitly for non-zero return value.
31353 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31354 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31355 avoid using a derived boolean type.
31357 2004-08-09 Albert Lee <lee@gnat.com>
31359 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31361 2004-08-09 Pascal Obry <obry@gnat.com>
31363 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31364 GCC's -shared option.
31366 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31367 Options_2 parameter (options put after object files).
31369 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31371 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31372 ignore overflows on low and high bounds of an index to also account for
31373 differences in signedness between sizetype and gnu_index_subtype.
31374 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31377 2004-08-09 Robert Dewar <dewar@gnat.com>
31379 * s-solita.ads, s-solita.adb: Minor reformatting
31381 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31382 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31383 obsolescent section
31384 Add note that No_Implicit_Conditionals does not suppress
31385 run time constraint checks.
31387 * vms_conv.ads: Minor reformatting
31389 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31390 and necessary for following change).
31391 (Mark): Return new format Mark_Id containing sec stack address
31392 (Release): Use sec stack address from Mark_Id avoiding Self call
31394 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31395 pointer (cleanup and necessary for following change).
31396 Define Mark_Id as record containing address of secondary stack, that way
31397 Release does not need to find the stack again, decreasing the number of
31398 calls to Self and improving efficiency.
31400 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31402 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31403 case variable into the individual case branches when possible.
31405 * sem_ch11.adb: Minor reformatting
31407 * prj.ads: Correct spelling of suffixs
31409 * prj-nmsc.adb: Minor reformatting
31410 Correct spelling suffixs throughout (also in identifiers)
31412 * freeze.adb: Minor spelling correction
31414 * exp_ch2.adb: Cleanups to handling of Current_Value
31415 (no functional effect).
31417 * bld.adb: Correct spelling of suffixs
31419 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31421 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31424 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31425 package or of a child, private entities are both immediately_visible
31428 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31430 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31431 there are no range checks on the value of the literal.
31433 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31434 wrapped is the triggering alternative of an asynchronous select, action
31435 statements mustbe inserted before the select itself.
31437 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31438 case where the prefix is a protected function call.
31439 (Resolve_Attribute, case 'Access): The attribute reference on a
31440 subprogram is legal in a generic body if the subprogram is declared
31443 2004-08-09 Vincent Celier <celier@gnat.com>
31445 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31446 languages, otherwise building the library may fail with unresolved
31448 (Compile_Sources): Do not build libraries if -c switch is used
31450 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31451 (Write_Usage): If map file creation is supported, output new switches
31453 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31454 gcc call, when supported.
31456 * Makefile.in: Added indepsw.o to the object list for gnatlink
31457 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31459 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31460 indepsw.adb, indepsw.ads: New files.
31462 2004-08-09 Bernard Banner <banner@gnat.com>
31464 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31466 * Makefile.in: add section for vxworks x86
31468 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31470 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31471 per-object constrained components where the discriminant is of an
31473 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31474 the parent initialization procedure for derived Unchecked_Unions.
31475 Instead, derived Unchecked_Unions build their own initialization
31477 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31478 Check the body of the subprogram for details.
31479 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31480 functions for derived Unchecked_Union types by introducing a condition.
31481 Allow the creation of TSS equality functions for Unchecked_Unions.
31482 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31483 Add formal parameter Discr to function signature. Discr is used to
31484 control the generated case statement for Unchecked_Union types.
31485 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31487 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31489 Check the body of the subprogram for details.
31490 (Expand_Composite_Equality): Augment composite type equality to include
31491 correct handling of Unchecked_Union components.
31492 (Expand_N_In): Add condition to detect illegal membership tests when the
31493 subtype mark is a constrained Unchecked_Union and the expression lacks
31494 inferable discriminants, and build a Raise_Program_Error node.
31495 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31496 to detect types that contain components of unconstrained Unchecked_Union
31497 subtype. Add condition to detect equality between types that have an
31498 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31499 node. Add condition to detect equality between Unchecked_Union types
31500 that lack inferable discriminants, and build a Raise_Program_Error node.
31501 Otherwise build a TSS equality function call.
31502 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31503 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31504 with the operand lacking inferable discriminants, and build a Raise_
31505 Program_Error node.
31506 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31507 composite equality.
31508 (Has_Inferable_Discriminants): Implement new predicate for objects and
31509 expressions of Unchecked_Union type. Check the body of subprogram for
31511 (Has_Unconstrained_UU_Components): Add function
31512 Component_Is_Unconstrained_UU. It is used to detect whether a single
31513 component is of an unconstrained Unchecked_Union subtype. Add function
31514 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31515 component inside a variant is of an unconstrained Unchecked_Union type.
31517 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31518 inferred discriminant values. Add condition to generate a case
31519 statement with an inferred discriminant as the switch.
31520 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31521 the behaviour of the subprogram in the presence of an Unchecked_Union.
31522 Add condition to trigger the usage of the inferred discriminant value
31523 as the generated case statement switch.
31524 (Make_Field_Assign): Introduce a Boolean flag that determines the
31525 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31526 condition to trigger the usage of the inferred discriminant value as
31527 the right-hand side of the generated assignment.
31529 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31530 parameter generation when dealing with Unchecked_Unions.
31532 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31533 checks for Unchecked_Unions.
31535 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31537 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31538 Raise_Program_Error nodes for the execution of Read and Write
31539 attributes of Unchecked_Union types and the execution of Input and
31540 Output attributes of Unchecked_Union types that lack default
31541 discriminant values.
31543 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31544 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31545 per-object constrained components of Unchecked_Unions for being
31546 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31547 check individual components withing a variant.
31549 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31550 comparison of Unchecked_Unions.
31551 (Resolve_Equality_OP): Remove guard that prevents equality between
31554 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31555 of component subtypes for Unchecked_Union components.
31556 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31557 since it is the actual subtype.
31559 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31560 pass of Unchecked_Union subtypes as generic actuals to formal types
31561 that lack known_discriminant_parts or that are derived Unchecked_Union
31562 types, and do nothing. In any other case, produce an error message.
31564 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31565 Contains_POC. It determines whether a constraint uses the discriminant
31566 of an enclosing record type.
31567 Add condition to detect per-object constrained component and set the
31569 (Derived_Type_Declaration): Remove guard that prevents derivation from
31570 Unchecked_Union types.
31571 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31574 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31575 references to Unchecked_Union discriminants.
31577 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31578 formal generation when dealing with Unchecked_Unions.
31579 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31580 subtypes for Unchecked_Unions.
31582 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31583 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31584 completions of discriminated partial views by Unchecked_Unions and
31585 produce an error message.
31587 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31589 * trans.c (struct stmt_group): New field, GLOBAL.
31590 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31591 (struct elab_info): New struct.
31592 (elab_info_list, gnu_elab_proc_stack): New variables.
31593 (Compilation_Unit_to_gnu): New procedure.
31594 (gigi): Call it and also handle elaboration procs we've saved.
31595 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31596 global field from parent.
31597 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31598 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31599 (start_stmt_group): Initialize global field from parent.
31600 (add_decl_expr): Set to global for current statement group.
31601 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31604 * utils.c (global_bindings_p): True when no current_function_decl; no
31605 longer check current_binding_level.
31607 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31609 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31612 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31614 2004-08-06 Andreas Schwab <schwab@suse.de>
31616 * utils.c (gnat_define_builtin): Remove second parameter of
31618 (begin_subprog_body): Likewise.
31620 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31622 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31623 optimization, not supported by the tree-ssa back-end.
31625 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31627 * s-mastop-irix.adb: Update comments.
31629 * a-except.adb (Exception_Information): Raise Constraint_Error if
31630 exception Id is Null_Id.
31631 This is required behavior, which is more reliably and clearly checked
31632 at the top level interface level.
31634 2004-07-26 Javier Miranda <miranda@gnat.com>
31636 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31637 call if a component has no default_expression and the box is used.
31639 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31640 default_expression and you use box, it behaves as if you had declared a
31641 stand-alone object.
31642 (Resolve_Record_Aggregate): If a component has no default_expression and
31643 you use box, it behaves as if you had declared a stand-alone object.
31645 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31646 entities of private-with siblings.
31648 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31650 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31651 for a component of an itype, set the parent pointer for analysis,
31652 there is no list in which to insert it.
31654 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31655 bona-fide renamings, not for inherited operations.
31657 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31658 actual for a formal that is an access parameter, create local
31659 finalization list even if the expression is not an aggregate.
31661 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31664 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31665 Diagnose properly illegal subprogram renamings that are library units.
31667 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31670 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31671 conversion rewritten as an unchecked conversion, check that original
31672 expression is a variable.
31674 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31675 unchecked_conversion, create new node rather than rewriting in place,
31676 to preserve original construct.
31678 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31680 * gigi.h (gnat_expand_body): Deleted.
31682 * Make-lang.in: (trans.o): Depends on function.h.
31684 * misc.c: (gnat_expand_body): Moved to here.
31686 * trans.c (gnat_expand_body_1): Deleted.
31687 (gnat_expand_body): Moved from here.
31688 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31689 (add_stmt): Check for marked visited with global_bindings_p.
31690 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31691 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31693 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31694 VIEW_CONVERT_EXPR if not operation type.
31696 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31699 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31700 changes: reformatting of negation operators, removing unneeded
31701 inequality comparison with zero, converting equality comparisons with
31702 zero to negations, changing int/0/1 to bool/false/true, replace calls
31703 to gigi_abort with abort, and various other similar changes.
31705 2004-07-26 Vincent Celier <celier@gnat.com>
31707 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31710 * make.adb (Gnatmake): Fail when a library is not present and there is
31711 no object directory.
31713 * mlib-prj.adb (Check_Library): No need to check if the library needs
31714 to be rebuilt if there is no object directory, hence no object files
31715 to build the library.
31717 * opt.ads (Setup_Projects): New Boolean flag.
31719 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31721 Create directory when Kind /= "" and in "gnat setup". Report error if
31722 directory cannot be created.
31723 (Ada_Check): Create library interface copy dir if it does not exist
31724 and we are in "gnat setup".
31725 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31727 (Language_Independent_Check): Create object directory, exec directory
31728 and/or library directory if they do not exist and we are in
31731 * vms_conv.ads: (Command_Type): New command Setup.
31733 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31735 * vms_data.ads: Add qualifiers/switches for new built-in command
31738 2004-07-25 Richard Henderson <rth@redhat.com>
31740 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31741 DECL_IGNORED_P on RESULT_DECL.
31743 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31745 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31746 allocation and potentially overflowing update with
31747 Tailored_Exception_Information. Use the sec-stack free procedural
31748 interface to output Exception_Information instead.
31750 * a-except.adb (To_Stderr): New subprogram for character, and string
31751 version moved from a-exextr to be visible from other separate units.
31752 (Tailored_Exception_Information): Remove the procedural version,
31753 previously used by the default Last_Chance_Handler and not any more.
31754 Adjust various comments.
31756 * a-exexda.adb: Generalize the exception information procedural
31757 interface, to minimize the use of secondary stack and the need for
31758 local buffers when the info is to be output to stderr:
31759 (Address_Image): Removed.
31760 (Append_Info_Character): New subprogram, checking for overflows and
31761 outputing to stderr if buffer to fill is of length 0.
31762 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31763 (Append_Info_Address, Append_Info_Exception_Name,
31764 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31765 Append_Info_Basic_Exception_Traceback,
31766 Append_Info_Exception_Information): New subprograms.
31767 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31768 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31769 Exception_Info_Maxlength, Exception_Name_Length,
31770 Exception_Message_Length): New subprograms.
31771 (Exception_Information): Use Append_Info_Exception_Information.
31772 (Tailored_Exception_Information): Use
31773 Append_Info_Basic_Exception_Information.
31774 Export services for the default Last_Chance_Handler.
31776 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31777 other separate units.
31779 2004-07-20 Vincent Celier <celier@gnat.com>
31781 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31783 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31785 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31786 emit itype references for the designated types of component types that
31787 are declared outside of the full record declaration, and that may
31788 denote a partial view of that record type.
31790 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31793 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31794 which is the designated type in an access component declaration, to the
31795 list of incomplete dependents of the parent type, to avoid elaboration
31796 issues with out-of-scope subtypes.
31797 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31798 full view of the parent.
31800 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31803 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31804 entities that are hidden, such as references to generic actuals
31805 outside an instance.
31807 2004-07-20 Javier Miranda <miranda@gnat.com>
31809 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31810 support to the new notation.
31811 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31813 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31815 * s-taprob.adb: Adding the elaboration code required for initializing
31816 the tasking soft links that are common to the full and the restricted
31819 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31820 restricted run time has been moved to the package
31821 System.Soft_Links.Tasking.
31823 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31824 restricted run time has been moved to the package
31825 System.Soft_Links.Tasking.
31827 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31829 * s-solita.ads, s-solita.adb: New files.
31831 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31833 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31834 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31835 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31836 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31837 Exception_Handler_to_gnu_zcx): Likewise.
31839 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31841 * gigi.h (builtin_function): Declare.
31843 2004-07-15 Robert Dewar <dewar@gnat.com>
31845 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31848 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31849 access values as an example of a warning.
31851 * gnat_rm.texi: Document new attribute Has_Access_Values
31853 * gnat-style.texi: Document that box comments belong on nested
31856 * sem_util.ads (Has_Access_Values): Improved documentation
31858 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31860 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31861 (Process_Interface_Name): Call to this new procedure
31862 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31864 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31866 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31868 * einfo.ads: Minor comment typo fixed
31870 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31872 * snames.adb: Add _atcb.
31874 * snames.ads: Add Name_uATCB.
31876 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31877 (in the expanded code) when using the restricted run time.
31879 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31880 a in parameter in order to allow ATCBs to be preallocated (in the
31883 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31884 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31885 deallocated in System.Tasking.Stages.
31887 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31888 order to allow ATCBs to be preallocated.
31890 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31891 here. It was previously done in Initialize_ATCB.
31893 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31895 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31896 Restricted run time.
31898 * exp_ch3.adb: When using the Restricted run time, pass the
31899 preallocated Ada_Task_Control_Block when creating a task.
31901 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31903 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31904 function call that is itself an actual in an enclosing call, diagnose
31905 problem here rather than assuming that resolution will catch it.
31907 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31908 the local copy of a generic unit for a formal package, and the generic
31909 is a child unit, install private part of ancestors before compiling
31910 private part of spec.
31912 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31913 use scope entities rather than tree structures, to handle properly
31914 parent units that are instances rewritten as bodies for inlining
31917 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31918 Remove_Parents): Handle properly a parent unit that is an
31919 instantiation, when the unit has been rewritten as a body for inlining
31922 * par.adb (Goto_List): Global variable to collect goto statements in a
31923 given unit, for use in detecting natural loops.
31925 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31926 use in detecting natural loops.
31928 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31929 backwards goto's, and rewrite as a infinite loop, to improve locality
31932 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31933 subcomponent that includes an indexed reference, to prevent the
31934 generation of copies that would miscompile the desired assignment
31936 (Build_Task_Image_Decls): Add a numeric suffix to
31937 generated name for string variable, to avoid spurious conflicts with
31938 the name of the type of a single protected object.
31940 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31941 loop with an explicit exit statement, to avoid generating an
31942 out-of-range value with 'Succ leading to spurious constraint_errors
31943 when compiling with -gnatVo.
31945 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31947 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31948 might not be analyzed yet, even if its Etype is already set (case of an
31949 unchecked conversion built using Unchecked_Convert_To, for example).
31950 If the prefix has already been analyzed, this will be a nop anyway.
31952 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31953 controller type, or an assignment of a record type with controlled
31954 components, copy only user data, and leave the finalization chain
31955 pointers untouched.
31957 2004-07-15 Vincent Celier <celier@gnat.com>
31959 * make.adb (Collect_Arguments): Improve error message when attempting
31960 to compile a source not part of any project, when -x is not used.
31962 * prj.ads: (Defined_Variable_Kind): New subtype
31964 * prj-attr.adb (Register_New_Package): Two new procedures to register
31965 a package with or without its attributes.
31966 (Register_New_Attribute): Mew procedure to register a new attribute in a
31968 New attribute oriented subprograms: Attribute_Node_Id_Of,
31969 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31970 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31972 New package oriented subprograms: Package_Node_Id_Of,
31973 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31975 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31977 (Package_Node_Id): Now a private, self initialized type
31978 (Register_New_Package): New procedure to register a package with its
31980 New attribute oriented subprograms: Attribute_Node_Id_Of,
31981 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31982 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31984 New package oriented subprograms: Package_Node_Id_Of,
31985 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31987 * prj-dect.adb (Parse_Attribute_Declaration,
31988 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31990 * prj-makr.adb (Make): Parse existing project file before creating
31991 other files. Fail if there was an error during parsing.
31993 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31994 new spec of Prj.Attr.
31996 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31997 to new spec of Prj.Attr.
31999 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32001 * utils2.c: Fix typo in comment.
32003 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32005 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
32006 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
32008 2004-07-14 Andreas Schwab <schwab@suse.de>
32010 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
32012 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32014 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
32016 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
32019 * misc.c (gnat_types_compatible_p): New function.
32020 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
32021 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
32023 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
32024 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
32025 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
32026 (mark_visited): Don't mark dummy type.
32027 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
32028 parameter, we must remove any LJM building from GNU_NAME.
32029 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
32030 (pos_to_constructor): Use int_const_binop.
32031 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
32034 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
32035 (gnat_pushlevel): Set TREE_USE on BLOCK node.
32036 (gnat_install_builtins): Add __builtin_memset.
32038 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
32040 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32041 for a renaming, stabilize the initialization expression if we are at a
32042 local level. At the local level, uses of the renaming may be performed
32043 by a direct dereference of the initializing expression, and we don't
32044 want possible variables there to be evaluated for every use.
32046 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32047 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32048 them on the way. Account for the fact that we may introduce side
32049 effects in the process.
32051 2004-07-13 Richard Henderson <rth@redhat.com>
32053 * misc.c (default_pass_by_ref): Use pass_by_reference.
32055 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
32057 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32058 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32060 2004-07-08 Richard Henderson <rth@redhat.com>
32062 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32065 2004-07-06 Vincent Celier <celier@gnat.com>
32067 * vms_conv.ads: Minor reformatting.
32068 Alphabetical order for enumerated values of type Command_Type, to have
32069 the command in alphabetical order for the usage.
32071 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32072 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32074 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32076 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32077 (Add_Archive_Path): Only add the global archive if there is one.
32078 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32079 or not any object file to put in the global archive, and don't build
32080 a global archive if there is none.
32081 (X_Switches): New table
32082 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32083 in the X_Switches table, if any.
32084 (Initialize): Make sure the X_Switches table is empty
32085 (Scan_Arg): Record -X switches in table X_Switches
32087 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32089 * make.adb: Minor comment fix
32091 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32092 invoked with directory information, add the directory in front of the
32095 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32096 invoked with directory information, add the directory in front of the
32099 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32100 when Keep_Temporary_Files is False.
32101 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32102 directory information, add the directory in front of the path.
32103 When not on VMS, handle new switch -dn before the command to set
32104 Keep_Temporary_Files to True.
32105 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32108 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32109 invoked with directory information, add the directory in front of the
32112 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
32114 * snames.ads, snames.adb (Name_Stub): New name for the distributed
32117 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32118 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32120 * g-socket.adb (To_Timeval): Fix incorrect conversion of
32121 Selector_Duration to Timeval for the case of 0.0.
32123 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32124 documentation from Evolve_And_Then.
32126 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
32128 * s-taprop-tru64.adb, s-taprop-os2.adb,
32129 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32131 2004-07-06 Robert Dewar <dewar@gnat.com>
32133 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32134 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32135 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32136 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32137 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32138 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32139 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32140 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32141 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32142 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32143 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32144 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32145 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32146 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32147 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32148 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32149 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32150 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32151 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32152 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32153 vms_data.ads: Minor reformatting,
32154 Fix bad box comment format.
32156 * gnat_rm.texi: Fix minor grammatical error
32158 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32160 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32161 more cases of discriminated records to be recognized as not needing a
32163 (Has_Access_Values): New function.
32165 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32167 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32168 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32169 with LRM terminology).
32170 Change terminology in comments primitive type => elementary type.
32172 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32175 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32176 parameters do not impose any requirements on the presence of a body.
32178 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32181 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32182 compilation unit and is in an open scope at the point of instantiation,
32183 assume that a body may be present later.
32185 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32187 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32188 Improve error message when specified size is not supported.
32190 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32191 is never a primitive operation.
32193 2004-07-05 Andreas Schwab <schwab@suse.de>
32195 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32196 RECORD_OR_UNION_CHECK.
32197 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32199 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
32201 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32202 dependency on xgnatugn, instead build it via a submake.
32203 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32205 2004-07-04 Richard Henderson <rth@redhat.com>
32207 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32209 2004-07-01 Richard Henderson <rth@redhat.com>
32211 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32212 * utils.c (max_size): Likewise.
32214 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32216 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32217 and rest_of_type_compilation; add arg to create_*_decl.
32218 (annotate_decl_with_node): Deleted.
32219 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32220 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32221 (get_current_block_context, gnat_pushdecl): New declarations.
32222 (gnat_init_stmt_group): Likewise.
32223 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32224 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32225 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32226 (gnat_init): Call gnat_init_stmt_group.
32227 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32228 (gnu_pending_elaboration_list): Deleted.
32229 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32230 (gigi): Rearrange initialization calls and move some to last above.
32231 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32232 Delete calls to add_decl_expr; add arg to create_*_decl.
32233 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32234 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32235 begin_subprog_body and call it.
32236 Don't push and pop ggc context.
32237 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32238 (add_stmt): Remove handling of DECL_EXPR from here.
32239 If not in function, mark visited.
32240 (add_decl_expr): Put global at top level.
32241 Check for cases of DECL_INITIAL we have to handle here.
32242 (process_type): Add extra arg to create_type_decl.
32243 (build_unit_elab): Rework to just gimplify.
32244 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32245 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32246 (get_pending_elaborations, pending_elaborations_p): Likewise.
32247 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32248 (get_elaboration_location, insert_elaboration_list): Likewise.
32249 (gnat_binding_level): Renamed from ada_binding_level.
32250 (init_gnat_to_gnu): Don't clear pending_elaborations.
32251 (global_bindings_p): Treat as global if no current_binding_level.
32252 (set_current_block_context): New function.
32253 (gnat_pushdecl): Renamed from pushdecl; major rework.
32254 All callers changed.
32255 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32256 (finish_record_type): Call call pushdecl for stub decl.
32257 (function_nesting_depth): Deleted.
32258 (begin_subprog_body): Delete obsolete code.
32259 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32261 2004-06-28 Robert Dewar <dewar@gnat.com>
32263 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32264 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32265 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32266 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32267 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32269 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32270 deal with problem of inefficient slices on machines with strict
32271 alignment, when the slice is a component of a composite.
32273 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32274 machines, we need the check there as well.
32276 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32278 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32279 determine safe copying direction for overlapping slice assignments
32280 when component is controlled.
32282 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32283 formal derived type in the actual for a formal package are visible in
32284 the enclosing instance.
32286 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32289 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32290 circularity involving a private type whose completion includes a
32291 self-referential component.
32292 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32293 renaming or an instantiation from an implicit derived operation.
32295 2004-06-28 Pascal Obry <obry@gnat.com>
32297 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32299 (Library_File_Name_For): Idem.
32301 2004-06-28 Matthew Gingell <gingell@gnat.com>
32303 * g-traceb.ads: Add explanatory note on the format of addresses
32304 expected by addr2line.
32306 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32308 * Makefile.in: Force debugging information on s-tasdeb.adb,
32309 a-except.adb and s-assert.adb needed by the debugger.
32311 2004-06-28 Vincent Celier <celier@gnat.com>
32313 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32317 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32319 * prj.adb: Minor reformatting
32320 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32322 * prj.ads: Comment updates
32324 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32325 Remove Flag2: not used.
32327 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32330 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32332 * gnat_rm.texi: Document Empty declarations "null;".
32334 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32335 front of the linker options.
32336 (Link_Foreign): Put the global archives and the libraries in front of
32337 the linker options.
32339 2004-06-28 Javier Miranda <miranda@gnat.com>
32341 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32342 (RTU_Loaded): Code cleanup
32343 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32344 withed predefined units.
32346 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32347 explicitly withed predefined units.
32348 Fix typo in comment
32350 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32351 explicitly withed predefined units.
32353 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32355 * ada-tree.def (DECL_STMT): Deleted.
32356 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32357 (DECL_STMT_VAR): Deleted.
32358 * decl.c: add_decl_stmt now add_decl_expr.
32359 * gigi.h: Likewise.
32360 * trans.c: Likewise.
32361 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32362 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32363 (add_stmt): Only handle padded type here.
32364 (add_stmt_with_node): Allow gnat_node to not be present.
32365 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32366 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32367 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32368 make a SAVE_EXPR for the entire fat pointer.
32369 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32370 (create_index_type): Make a DECL_EXPR.
32371 (end_subprog_body): Don't call allocate_struct_function here but
32374 2004-06-25 Pascal Obry <obry@gnat.com>
32376 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32377 Relocatable from Build_Dynamic_Library call.
32379 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32380 Relocatable are now synonym.
32382 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32384 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32385 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32388 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32389 Lib_Address and Relocatable.
32390 (Default_DLL_Address): Removed.
32392 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32393 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32394 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32395 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32396 (Default_DLL_Address): Removed.
32398 * mlib-tgt-mingw.adb: Ditto.
32399 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32401 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32402 the initial thread stack size.
32404 * a-strmap.ads: Move package L to private part as it is not used in
32405 the spec. Found while reading code.
32407 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32409 * tracebak.c: Introduce support for a GCC infrastructure based
32410 implementation of __gnat_backtrace.
32412 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32413 any more. Use accessors instead. This eases maintenance and relaxes
32414 some alignment constraints.
32415 (_GNAT_Exception structure): Remove the Ada specific fields
32416 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32418 (is_handled_by, __gnat_eh_personality): Replace component references to
32419 exception structure by use of the new accessors.
32421 * init.c (__gnat_initialize): Adjust comments to match the just
32422 reverted meaning of the -static link-time option.
32424 * adaint.c (convert_addresses): Arrange not to define a stub for
32425 mips-irix any more, as we now want to rely on a real version from a
32426 recent libaddr2line.
32428 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32429 the personality routine can use them and not have to rely on a C
32430 counterpart of the record anymore. This simplifies maintenance and
32431 relaxes the constraint of having Standard'Maximum_Alignment match
32433 Update comments, and add a section on the common header alignment issue.
32435 2004-06-25 Geert Bosch <bosch@gnat.com>
32437 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32438 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32440 2004-06-25 Robert Dewar <dewar@gnat.com>
32442 * gnat_rm.texi: Fix section on component clauses to indicate that the
32443 restriction on byte boundary placement still applies for bit packed
32445 Add comment on stack usage from Initialize_Scalars
32447 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32449 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32450 limiting nesting level.
32452 * usage.adb: Add line for -gnatyLnnn switch
32454 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32455 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32457 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32458 type as well as on the subtype. This corrects a problem in freeze in
32459 setting alignments of atomic types.
32461 * sem_eval.ads: Minor comment typo fixed
32463 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32464 level. Minor reformatting.
32466 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32467 minus sign. This means that file names like a--b.adb will not be
32468 considered predefined.
32470 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32471 record Test new flag and give diagnostic for bad component clause.
32472 (Freeze_Entity): Set alignment of array from component alignment in
32473 cases where this is safe to do.
32475 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32478 * cstand.adb: (Create_Standard): Set alignment of String to 1
32480 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32482 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32483 code in the common constrained array cases.
32485 * a-storio.adb: Change implementation to avoid possible alignment
32486 problems on machines requiring strict alignment (data should be moved
32487 as type Buffer, not type Elmt).
32489 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32490 killing the overflow checks which we really do not need (64-bits is
32493 2004-06-25 Vincent Celier <celier@gnat.com>
32495 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32496 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32497 inconditionally for the main project.
32498 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32499 (Link_Executables.Check_Time_Stamps): New procedure
32500 (Link_Executables.Link_Foreign): New procedure
32501 Changes made to reduce nesting level of this package
32502 (Check): New procedure
32503 (Add_Switches): When not in quiet output, check that a switch is not
32504 the concatenation of several valid switches. If it is, issue a warning.
32505 (Build_Global_Archive): If the global archive is rebuilt, linking need
32507 (Compile_Sources): Rebuilding a library archive does not imply
32508 rebuilding the global archive.
32509 (Build_Global_Archive): New procedure
32510 (Build_Library): New name for Build_Archive, now only for library
32512 (Check_Archive_Builder): New procedure
32513 (Create_Global_Archive_Dependency_File): New procedure
32514 (Gprmake): Call Build_Global_Archive before linking
32515 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32517 (Scan_Arg): Display the Copyright notice when -v is used
32519 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32522 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32524 Add new GNAT LIST qualifier /FILES=
32525 Added qualifier /DIRECTORY= to GNAT METRIC
32526 Added qualifier /FILES= to GNAT METRIC
32527 Added qualifier /FILES to GNAT PRETTY
32529 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32530 to take into account both versions of the switch.
32532 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32533 always be the last switch to the gcc driver. Disable switch storing so
32534 that switches automatically added by the gcc driver are not put in the
32537 * prj.adb (Project_Empty): Take into account changes in components of
32540 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32542 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32543 used. Split Boolean component Ada_Sources_Present in two Boolean
32544 components Ada_Sources_Present and Other_Sources_Present.
32547 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32548 instead of Sources_Present.
32549 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32551 * prj-nmsc.adb: Minor reformatting
32552 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32553 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32554 Check_Ada_Naming_Scheme.
32555 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32558 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32560 Make sure that all cycles where there is at least one "limited with"
32562 (Parse_Single_Project): New Boolean parameter In_Limited
32564 * prj-proc.adb (Recursive_Check): When Process_Languages is
32565 All_Languages, call first Prj.Nmsc.Ada_Check, then
32566 Prj.Nmsc.Other_Languages_Check.
32568 * prj-proc.adb (Process): Use Ada_Sources_Present or
32569 Other_Sources_Present (instead of Sources_Present) depending on
32572 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32575 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32576 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32578 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32581 * lib.ads (Disable_Switch_Storing): New procedure.
32583 * make.adb: Modifications to reduce nesting level of this package.
32584 (Check_Standard_Library): New procedure
32585 (Gnatmake.Check_Mains): New procedure
32586 (Gnatmake.Create_Binder_Mapping_File): New procedure
32587 (Compile_Sources.Compile): Add switch -gnatez as the last option
32588 (Display): Never display -gnatez
32590 * Makefile.generic:
32591 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32593 * gnatcmd.adb (Check_Project): New function
32594 (Process_Link): New procedure to reduce nesting depth
32595 (Check_Files): New procedure to reduce the nesting depth.
32596 For GNAT METRIC, include the inherited sources in extending projects.
32597 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32598 add the list of files from the sources of the project file. If this list
32599 is too long, put it in a temp text files and use switch -files=
32600 (Delete_Temp_Config_Files): Delete the temp text file that contains
32601 a list of source for gnatpp or gnatmetric, if one has been created.
32602 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32603 in the project file is too large, create a temporary text file that
32604 list them and pass it to the tool with "-files=<temp text file>".
32605 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32607 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32608 generated file is in not in Ada.
32610 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32611 (Scan_Ls_Arg): Add processing for -files=
32612 (Usage): Add line for -files=
32614 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32615 (Normalize_Pathname): When on Windows and the path starts with a
32616 directory separator, make sure that the resulting path will start with
32619 * clean.adb (Clean_Archive): New procedure
32620 (Clean_Project): When there is non-Ada code, delete the global archive,
32621 the archive dependency files, the object files and their dependency
32622 files, if they exist.
32623 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32625 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32627 * sinfo.ads: Fix typo in comment.
32629 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32630 the TSS for remote access-to-subprogram types, since these TSS are
32631 always present once the type has been analyzed.
32632 (RAS_E_Dereference): Same.
32634 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32635 reference raises Bad_Attribute, mark the reference as analyzed so the
32636 node (and any children resulting from rewrites that could have occurred
32637 during the analysis that ultimately failed) is not analyzed again.
32639 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32641 * exp_dist.adb: Minor comment fix.
32643 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32644 type is an anonymous access type, no unchecked deallocation of the
32645 allocated object can occur. If the object is controlled, attach it with
32646 a count of 1. This allows attachment to the Global_Final_List, if
32647 no other relevant list is available.
32648 (Get_Allocator_Final_List): For an anonymous access type that is
32649 the type of a discriminant or record component, the corresponding
32650 finalisation list is the one of the scope of the type.
32652 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32654 * sem_ch3.adb (Replace_Type): When computing the signature of an
32655 inherited subprogram, use the first subtype if the derived type
32656 declaration has no constraint.
32658 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32659 before applying previous optimization. Minor code cleanup.
32661 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32662 placed at the beginning of an unpacked record without explicit
32663 alignment, a slice of it will be aligned and does not need a copy when
32666 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32670 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32671 reference is written with expressions mimicking parameters.
32673 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32676 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32677 STEP 2a. The constraints of a full type declaration of a derived record
32678 type are checked for conformance with those declared in the
32679 corresponding private extension declaration. The message
32680 "not conformant with previous declaration" is emitted if an error is
32683 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32685 * g-traceb.ads: Document the need for -E binder switch in the spec.
32687 * g-trasym.ads: Document the need for -E binder switch in the spec.
32689 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32691 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32693 * snames.h, snames.ads, snames.adb: Add entry for pragma
32696 * s-rident.ads: Change reference to pragma Detect_Blocking.
32698 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32701 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32702 to indicate whether pragma Detect_Blocking is active.
32704 * par-prag.adb: Add entry for pragma Detect_Blocking.
32706 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32707 of not handling WITH.
32708 Note that this replaces the previous update which was incorrect.
32710 2004-06-25 Javier Miranda <miranda@gnat.com>
32712 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32713 use-clauses to have a clean environment.
32715 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32716 the installation of the use-clauses to stablish a clean environment in
32717 case of compilation of a separate unit; otherwise the call to
32718 use_one_package is protected by the barrier Applicable_Use.
32720 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32721 the installation of the use-clauses to stablish a clean environment in
32722 case of compilation of a separate unit.
32723 (End_Use_Clauses): Minor comment cleanup.
32725 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32727 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32729 2004-06-23 Richard Henderson <rth@redhat.com>
32731 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32733 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32735 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32736 now bool instead of int.
32737 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32738 * trans.c (gnu_switch_label_stack): New function.
32739 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32740 elaboration of renamed entity returns.
32741 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32742 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32743 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32744 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32745 DECL_SIZE_UNIT and simplify variable-sized case.
32746 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32747 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32748 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32749 (build_unit_elab): Disable for now.
32750 * utils.c (mark_visited): New function.
32751 (pushdecl): Walk tree to call it for global decl.
32752 (update_pointer_to): Update all variants of pointer and ref types.
32753 Add arg to COMPONENT_REF.
32754 (convert): Likewise.
32755 Move check for converting between variants lower down.
32756 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32757 (build_allocator): Don't force type of MODIFY_EXPR.
32758 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32759 put_var_into_stack.
32761 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32763 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32764 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32765 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32767 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32768 all callers changed.
32769 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32770 the way that EXIT_STMT finds the loop label.
32771 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32772 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32773 (add_stmt): Use annotate_with_locus insted of setting directly.
32774 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32775 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32776 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32777 (build_vms_descriptor): Add extra args to ARRAY_REF.
32778 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32779 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32781 (build_binary_op): Don't make explicit CONVERT_EXPR.
32782 Add extra rgs to ARRAY_REF.
32784 2004-06-14 Pascal Obry <obry@gnat.com>
32786 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32787 Windows. Fix minor typo.
32789 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32790 which is now supported on Windows. With this implementation using the
32791 Library Project feature is no different on Windows than on UNIX.
32793 2004-06-14 Vincent Celier <celier@gnat.com>
32795 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32798 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32800 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32801 found, show the project name and the path of the previously parsed
32804 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32806 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32807 array, avoid copying the actual before the call.
32809 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32811 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32812 Instead, allocate memory on worst-case alignment assumptions, and then
32813 return an aligned address within the allocated zone.
32815 2004-06-14 Robert Dewar <dewar@gnat.com>
32817 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32818 elab entities in predefined units in No_Run_Time_Mode.
32819 (Gen_Adainit_C): Same fix
32820 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32821 units in No_Run_Time_Mode
32822 (Gen_Elab_Calls_C): Same fix
32824 * symbols-vms-alpha.adb: Minor reformatting
32826 * g-debpoo.ads: Minor reformatting
32828 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32830 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32832 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32835 * make.adb: Minor reformatting
32837 * par-ch12.adb: Minor reformatting
32839 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32841 * prj-strt.adb: Minor reformatting
32843 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32846 * sem_attr.adb: Minor reformatting
32848 * sem_ch7.adb: Minor reformatting
32850 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32851 for type in the same unit as the object declaration.
32853 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32854 static string expressions and not just string literals.
32856 (Set_Warning): Reset restriction warning flag for restriction pragma
32857 Implement pragma Profile_Warnings
32858 Implement pragma Profile (Restricted)
32859 Give obolescent messages for old restrictions and pragmas
32861 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32864 * s-rident.ads: Add declarations for restrictions required by profile
32865 Restricted and profile Ravenscar.
32867 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32869 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32870 configuration pragmas.
32872 2004-06-11 Vincent Celier <celier@gnat.com>
32874 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32875 gnatsym, when symbol policy is Restricted.
32877 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32878 gnatsym, when symbol policy is Restricted.
32880 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32881 read the symbol file.
32882 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32883 symbol file is not in the object files. Do not create a new symbol file
32884 when symbol policy is Restricted.
32886 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32889 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32891 (Usage): Line for new switch -R
32893 * make.adb (Initialize): When the platform is not VMS, add the
32894 directory where gnatmake is invoked in the front of the path, if
32895 gnatmake is invoked with directory information. Change the Scan_Args
32896 while loop to a for loop.
32897 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32898 if Depth is equal or greater than the proposed depth, there is nothing
32900 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32903 * prj.ads: Add new symbol policy Restricted.
32905 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32906 with the new parameters Check_All_Labels and Case_Location.
32908 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32909 (Library_Symbol_File needs to be defined).
32911 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32912 and Case_Location If Check_All_Labels is True, check that all values of
32913 the string type are used, and output warning(s) if they are not.
32915 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32918 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32920 * gnat_ugn.texi: Update documentation about the library directory in
32923 * makegpr.adb (Display_Command): In verbose mode, also display the
32924 value of the CPATH env var, when the compiler is gcc.
32925 (Initialize): Change the Scan_Args while loop to a for loop
32926 (Compile_Individual_Sources): Change directory to object directory
32927 before compilations.
32929 * symbols.ads: New symbol policy Restricted.
32931 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32933 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32934 is now taken care of internally in the Exception_Propagation package
32935 and does not require clients assistance any more.
32937 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32938 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32939 functions. Helpers to maintain a predicate required in the handling of
32940 occurrence transfer between tasks.
32941 This is now handled internally and does not require clients assistance
32942 for the setup/propagate separation anymore.
32943 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32944 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32947 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32948 raise_after_setup, now that everything is handled internally within the
32949 setup/propagation engine.
32951 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32953 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32954 Add additional conditions for the case of an actual being a simple
32955 name or literal. Improve inlining by preventing the generation
32956 of temporaries with a short lifetime (one use).
32958 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32961 * einfo.ads: Minor comment updates for Has_Completion and
32962 E_Constant list of flags.
32964 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32965 and constant redeclarations now set the Has_Completion flag of their
32966 defining identifiers.
32968 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32969 Inspect_Deferred_Constant_Completion.
32970 Used to detect private deferred constants that have not been completed
32971 either by a constant redeclaration or pragma Import. Emits error message
32972 "constant declaration requires initialization expression".
32974 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32975 completes a deferred constant.
32977 2004-06-11 Geert Bosch <bosch@gnat.com>
32979 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32981 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32982 calculating exponent for scaling denormal numbers.
32983 (Leading_Part): Properly raise Constraint_Error for zero or negative
32985 (Remainder): Properly raise Constraint_Error for zero divisor.
32987 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32989 * sem_util.adb: Minor reformatting.
32991 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32992 dereference when accessing the entry parameter record.
32993 (Check_Array_Type): Always check for possible implicit dereference.
32994 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32995 Abort if a pointer is still present (denoting that an implicit
32996 dereference was left in the tree by the front-end).
32998 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32999 dereference when accessing the entry parameter record.
33000 (Check_Array_Type): Always check for possible implicit dereference.
33001 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33002 Abort if a pointer is still present (denoting that an implicit
33003 dereference was left in the tree by the front-end).
33005 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
33007 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
33008 message, like the compiler itself does. Easier to parse the output.
33010 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
33012 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
33013 be base names, and not includes directories.
33015 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33017 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
33018 so that dependencies are properly taken into account by make.
33020 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33023 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
33024 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
33026 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
33028 * Makefile.in (install-gnatlib): install target-specific run-time files.
33030 * Make-lang.in: Remove obsolete targets.
33032 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33034 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
33035 specification, to catch misuses of program unit names.
33037 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
33038 superfluous conversions in an instance.
33040 2004-06-11 Ed Schonberg <schonberg@gnat.com>
33043 * sem_ch12.adb (Save_References): If operator node has been folded to
33044 enumeration literal, associated_node must be discarded.
33046 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
33048 * s-stchop-vxworks.adb: Add required pragma Convention to
33049 Task_Descriptor because it is updated by a C function.
33051 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
33054 * Makefile.in: Remove target specific SO_OPT on IRIX
33056 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33058 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33059 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33060 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33061 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33062 (STMT_STMT, USE_STMT): New statement codes.
33063 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33064 * ada-tree.h: Reflect above changes.
33065 (struct tree_loop_id): Deleted.
33066 (union lang_tree_node, struct lang_decl, struct lang_type):
33067 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33068 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33069 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33070 (IS_ADA_STMT): New macro.
33071 * decl.c (annotate_decl_with_node): New function.
33072 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33073 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33074 Call add_stmt_with_node to do needed assignments.
33075 Add call to update setjmp buffer directly, not via EXPR_STMT.
33076 (maybe_variable): Argment GNAT_NODE deleted.
33077 * gigi.h (maybe_variable): Likewise.
33078 (make_transform, add_stmt_with_node, set_block_for_group): New.
33079 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33080 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33081 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33082 (set_lineno, set_lineno_from_sloc): Likewise.
33083 (record_code_position, insert_code_for): Likewise.
33084 (gnat_poplevel): Now returns void.
33085 (end_subprog_body): Now takes argument.
33086 * misc.c (cgraph.h, tree-inline.h): New includes.
33087 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33088 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33089 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33090 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33091 (gnat_parse_file): Don't set immediate_size_expand.
33092 Call cgraph functions.
33093 (gnat_expand_expr): Remove most cases.
33094 (record_code_position, insert_code_for): Remove from here.
33095 * trans.c (toplev.h, tree-gimple.h): Now included.
33096 (discard_file_names): Deleted.
33097 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33098 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33099 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33100 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33101 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33102 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33103 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33104 (set_block_for_group, add_stmt_list): Likewise.
33105 (start_stmt_group): Renamed from start_block_stmt.
33106 (end_stmt_group): Likewise, from end_block_stmt.
33107 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33108 (gigi): Don't set discard_file_names or call set_lineno.
33109 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33110 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33111 Numerous changes throughout to reflect new names and complete
33112 function-at-a-time implementation.
33113 (gnat_expand_stmt): Delete or comment out all cases.
33114 (process_inlined_subprograms): Use add_stmt.
33115 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33116 call set_lineno; also remove unneeded block handling.
33117 (process_type): Remove unneeded block handling.
33118 (build_unit_elab): Remove calls to deleted functions.
33119 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33120 (tree-dump.h): Likewise.
33121 (struct ada_binding_level): Add field jmpbuf_decl.
33122 (gnat_define_builtin, gnat_install_builtins): New.
33123 (gnat_gimplify_function, gnat_finalize): Likewise.
33124 (gnat_poplevel): No longer return BLOCK, set it instead.
33125 Remove code dealing with nested functions.
33126 (gnat_init_decl_processing): Also set size_type_node.
33127 Call gnat_install_builtins.
33128 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33129 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33130 Remove special-case for "main".
33131 (end_subprog_body): Add arg and rework for tree-ssa.
33132 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33133 Add case for BOOLEAN_TYPE.
33134 * utils2.c (rtl.h): Now include.
33135 (build_call_raise): Test Debug_Flag_NN directly.
33136 (build_call_alloc_dealloc): Don't use local stack allocation for now.
33137 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33138 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33140 2004-06-07 Robert Dewar <dewar@gnat.com>
33142 * a-direct.ads, einfo.ads: Minor comment updates
33144 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33145 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33146 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33147 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33148 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33150 * s-interr-sigaction.adb: Remove unreferenced variable
33151 (Attached_Interrupts). Minor reformatting.
33152 Avoid use of variable I (replace by J).
33154 * par-ch10.adb: Fix text of one error message
33156 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33157 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33158 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33159 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33160 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33161 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
33162 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
33163 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33164 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33165 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33166 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33169 2004-06-07 Doug Rupp <rupp@gnat.com>
33171 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33173 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33175 * mlib-tgt-vms-ia64.adb: New file.
33177 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33178 Add mlib-tgt-vms-ia64.adb
33179 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33180 Move to alpha specific ifeq section.
33181 Add VMS specific versions of symbols.adb
33182 Renaming of 5q vms files.
33184 * 5qsystem.ads renamed to system-vms_64.ads.
33186 2004-06-07 Vincent Celier <celier@gnat.com>
33188 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33189 explain that when a time of day corresponding to the non existing hour
33190 on the day switching to DST is specified, Split may return a different
33193 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33196 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33197 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33199 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33201 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33202 the linking options.
33203 (Build_Library.Check_Libs): On VMS, if there is a dependency on
33204 g-trasym.ads, set Gtrasymobj_Needed to True.
33206 * prj-attr.adb: Add new package Metrics for gnatmetric
33208 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33209 canonical case to take into account files with upper case characters on
33211 (Ada_Check): Load the reference symbol file name in the name buffer to
33212 check it, not the symbol file name.
33214 * snames.ads, snames.adb: Add standard name Metrics (name of project
33215 file package for gnatmetric).
33217 * vms_conv.ads: Add Metric to Comment_Type
33219 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33221 * vms_data.ads: Add qualifiers for GNAT METRIC
33223 * makegpr.adb (Link_Executables): Take into account the switches
33224 specified in package Linker of the main project.
33226 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33228 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33229 the index of the last element is Units.Last, not Units.Table'Last
33230 (which is usually not a valid index within the actually allocated
33231 storage for the table).
33233 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33234 determines whether to generate a call to a checked storage pool
33235 Dereference action.
33236 Generate such a call only for a dereference that either comes from
33237 source, or is the result of rewriting a dereference that comes from
33240 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33242 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33244 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33246 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33247 file level, elaborate the stride for inner dimensions in alignment
33250 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33253 2004-06-07 Javier Miranda <miranda@gnat.com>
33255 * exp_ch6.adb: Correct wrong modification in previous patch
33257 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33259 * g-trasym.ads: Corrected comment to properly reflect level of support
33262 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33264 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33265 includes case of a variable referenced on the left hand side of an
33266 assignment, therefore remove redundant code. Variables and prefixes of
33267 indexed or selected components are now marked as referenced on left
33268 hand side. Warnings are now properly emitted when variables or prefixes
33269 are assigned but not read.
33271 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33272 left hand side referenced variables. Private access types do not
33273 produce the warning "variable ... is assigned but never read".
33274 Add also additional checks to left hand side referenced variables.
33275 Aliased, renamed objects and access types do not produce the warning
33276 "variable ... is assigned but never read" since other entities may read
33277 the memory location.
33279 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33281 * Makefile.in: In the powerpc/vxworks-specific section, restore
33282 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33285 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33287 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33288 predefined operators.
33289 Removes spurious type errors from g-trasym-vms.adb.
33291 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33292 distinct from the operator appearing in the source, call appropriate
33293 routine to insert conversions when needed, and complete resolution of
33295 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33296 interpretations for rewritten right operand.
33297 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33298 the other operand is overloaded and the context is a type conversion.
33300 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33302 * ada-tree.def (BLOCK_STMT): Now has two operands.
33305 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33307 * gigi.h: (gnat_poplevel): Now returns a tree.
33309 * trans.c (end_block_stmt): Add arg; all callers changed.
33310 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33311 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33312 (add_stmt): Set TREE_TYPE.
33313 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33314 (gnat_expand_stmt, case BREAK_STMT): New case.
33316 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33318 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33320 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33321 procedure Set_Stack_Size that is not needed.
33323 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33325 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33326 used for gnatpp input file and for the files upon which it depends
33328 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33330 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33332 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33334 * gnatvsn.ads: Bump version numbers appropriately.
33335 Add new build type.
33337 2004-06-07 Pascal Obry <obry@gnat.com>
33339 * gnat_ugn.texi: Improve comments about imported names and link names
33340 on Windows. Add a note about the requirement to use -k gnatdll's option
33341 when working with a DLL which has stripped stdcall symbols (no @nn
33344 2004-05-27 Vincent Celier <celier@gnat.com>
33346 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33347 COMMENTS_LAYOUT=UNTOUCHED
33349 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33350 symbols-vms-alpha.adb
33352 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33354 * sem.ads: Clarify documentation on checks suppression.
33356 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33358 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33360 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33361 the case of multiple derivations.
33362 (Is_Object_Reference): For a selected component, verify that the prefix
33363 is itself an object and not a value.
33365 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33366 Same_Instantiated_Entity.
33367 (Same_Instantiated_Variable): Subsidiary to
33368 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33369 formals that are obtained from a previous formal package.
33370 (Instantiate_Subprogram_Body): Emit proper error when
33371 generating code and the proper body of a stub is missing.
33373 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33374 has a universal interpretation, do the disambiguation here.
33376 * exp_ch4.adb (Expand_N_Type_Conversion,
33377 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33378 is Address, to avoid typing anomalies when Address is a visible integer
33381 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33382 to determine whether a subprogram should not be marked Pure, even when
33383 declared in a pure package.
33385 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33387 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33389 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33390 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33391 Update the documentation about the Ravenscar profile, following the
33392 definition found in AI-249.
33394 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33395 setting the Profile (Ravenscar). This must be done in addition to
33396 setting the required restrictions.
33398 * rtsfind.ads: Add the set of operations defined in package
33401 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33404 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33406 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33407 if -gnatc or -gnats is passed.
33409 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33411 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33412 a significant reference. Warnings are now properly emitted when a
33413 discriminated type is not referenced.
33415 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33416 record representation clause or record type discriminant does not
33417 produce a reference to its corresponding entity. Warnings are now
33418 properly emitted when deferred constants and record types are not
33421 2004-05-27 Geert Bosch <bosch@gnat.com>
33423 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33424 Fixes ACATS Annex G tests.
33426 2004-05-27 Robert Dewar <dewar@gnat.com>
33428 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33431 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33433 * s-interr.adb (Server_Task): Take into account case of early return
33434 from sigwait under e.g. linux.
33436 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33438 * gnat_ugn.texi: Add description for the new gnatpp options:
33439 -rnb - replace the original source without creating its backup copy
33440 -c0 - do not format comments
33442 2004-05-24 Geert Bosch <bosch@gnat.com>
33444 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33445 with 192 bits of precision, sufficient to reduce a double-extended
33446 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33447 in -2.0**32 .. 2.0**32.
33448 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33449 reduction by the processor, which only uses a 68-bit approximation of
33451 (Tan): Always reduce arguments and compute function either using
33452 the processor's fptan instruction, or by dividing sin and cos as needed.
33454 2004-05-24 Doug Rupp <rupp@gnat.com>
33456 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33457 gcc error on 32/64 bit VMS.
33459 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33461 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33462 since this is what we get for stack overflows although not documented
33464 Document the issues which may require adjustments to our signal
33467 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33469 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33470 enclosing dynamic scope if the instantiation is within a generic unit.
33472 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33474 * exp_dbug.ads: Fix typo.
33476 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33477 Rename it to its proper name: system-linux-ia64.ads
33478 (stamp-gnatlib1): Remove extra target specific run time files when
33479 setting up the rts directory.
33481 2004-05-24 Javier Miranda <miranda@gnat.com>
33483 * einfo.ads, einfo.adb (Limited_Views): Removed.
33484 (Limited_View): New attribute that replaces the previous one. It is
33485 now a bona fide package with the limited-view list through the
33486 first_entity and first_private attributes.
33488 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33489 limited-private-with clause.
33490 (Install_Limited_Withed_Unit): Install the private declarations of a
33491 limited-private-withed package. Update the installation of the shadow
33492 entities according to the new structure (see Build_Limited_Views)
33493 (Build_Limited_Views): Replace the previous implementation of the
33494 limited view by a package entity that references the first shadow
33495 entity plus the first shadow private entity (required for limited-
33496 private-with clause)
33497 (New_Internal_Shadow_Entity): Code cleanup.
33498 (Remove_Limited_With_Clause): Update the implementation to undo the
33499 new work carried out by Build_Limited_Views.
33500 (Build_Chain): Complete documentation.
33501 Replace Ada0Y by Ada 0Y in comments
33504 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33505 types the level of accessibility depends on the enclosing type
33508 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33509 entities. Complete documentation of previous change.
33511 2004-05-24 Robert Dewar <dewar@gnat.com>
33513 * namet.adb: Minor reformatting
33514 Avoid use of name I (replace by J)
33515 Minor code restructuring
33517 * sem_ch6.adb: Minor reformatting
33519 * lib-writ.adb: Do not set restriction as active if this is a
33520 Restriction_Warning case.
33522 * sem_prag.adb: Reset restriction warning flag if real pragma
33523 restriction encountered.
33525 * s-htable.adb: Minor reformatting
33526 Change rotate count to 3 in Hash (improves hash for small strings)
33528 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33530 * gnat_ugn.texi: Add new section of documentation "Code Generation
33531 Control", which describes the use of -m switches.
33533 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33535 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33536 through the DECL_INITIAL for renamed variables.
33538 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33540 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33542 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33544 * exp_dbug.ads: Correct comments concerning handling of overloading,
33545 since we no longer use $ anymore.
33547 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33549 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33550 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33551 with illegal subunits.
33553 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33555 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33556 body with front-end inlining enabled, check whether an inline pragma
33557 appears immediately after the body and applies to it.
33559 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33560 enabled and the pragma appears after the body of the subprogram.
33562 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33564 Part of function-at-a-time conversion
33566 * misc.c (adjust_decl_rtl): Deleted.
33567 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33570 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33571 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33572 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33574 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33575 when making a decl.
33576 (gnat_to_gnu_entity): Likewise.
33577 Use add_stmt to update setjmp buffer.
33578 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33580 No longer call adjust_decl_rtl.
33581 (DECL_INIT_BY_ASSIGN_P): New macro.
33582 (DECL_STMT_VAR): Likewise.
33584 * trans.c (gigi): Call start_block_stmt to make the outermost
33586 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33587 Call start_block_stmt and end_block_stmt temporarily.
33588 Use gnat_expand_stmt instead of expand_expr_stmt.
33589 (add_decl_stmt): New function.
33590 (tree_transform): Call it.
33591 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33592 (end_block_stmt): Set type and NULL_STMT.
33593 (gnat_expand_stmt): Make recursize call instead of calling
33595 (gnat_expand_stmt, case DECL_STMT): New case.
33596 (set_lineno_from_sloc): Do nothing if global.
33597 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33598 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33599 (build_block_stmt): Call them.
33600 (gnat_to_code): Don't expand NULL_STMT.
33601 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33603 (tree_transform): Likewise.
33604 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33605 (gnat_expand_stmt, case NULL_STMT): New case.
33606 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33609 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33612 * utils.c (create_var_decl): Do not call expand_decl or
33614 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33615 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33617 (struct e_stack): Add chain_next to GTY.
33618 (struct binding_level): Deleted.
33619 (struct ada_binding_level): New struct.
33620 (free_block_chain): New.
33621 (global_binding_level, clear_binding_level): Deleted.
33622 (global_bindings_p): Rework to see if no chain.
33623 (kept_level_p, set_block): Deleted.
33624 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33625 new data structure and work directly on BLOCK node.
33626 (gnat_poplevel): Similarly.
33627 (get_decls): Look at BLOCK_VARS.
33628 (insert_block): Work directly on BLOCK node.
33629 (block_has_var): New function.
33630 (pushdecl): Rework for new binding structures.
33631 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33633 (build_subprog_body): Likewise.
33634 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33636 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33638 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33639 (DECL_STMT_VAR): Likewise.
33641 2004-05-17 Robert Dewar <dewar@gnat.com>
33643 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33646 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33647 of restriction synonyums by using
33648 Restrict.Process_Restriction_Synonyms.
33650 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33652 * s-restri.ads (Tasking_Allowed): Correct missing comment
33654 * s-rident.ads: Add entries for restriction synonyms
33656 * ali.adb: Fix some problems with badly formatted ALI files that can
33657 result in infinite loops.
33659 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33660 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33661 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33662 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33663 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33664 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33665 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33666 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33667 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33668 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33669 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33670 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33671 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33672 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33673 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33674 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33675 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33676 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33677 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33678 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33679 to Task_Id (minor cleanup).
33681 2004-05-17 Vincent Celier <celier@gnat.com>
33683 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33684 directory separator.
33686 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33687 project being extended, if Languages is not declared in extending
33690 2004-05-17 Javier Miranda <miranda@gnat.com>
33692 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33693 limited view of a visible sibling.
33695 2004-05-14 Robert Dewar <dewar@gnat.com>
33697 * gnat_ugn.texi: Minor change to -gnatS documentation
33699 * sprint.adb: Remove some instances of Assert (False) and for this
33700 purpose replace them by output of a ??? string.
33702 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33705 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33706 flag processing. This was suppressing required dependencies in
33707 No_Run_Time mode and is not needed since the binder does not generate
33708 references for things in libgnat anyway.
33710 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33713 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33715 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33718 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33719 action for the case of an actual parameter in an init proc call.
33721 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33723 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33724 subtype, check visible entities in base type.
33726 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33727 actions if the object is a renaming.
33729 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33730 Check_Formal_Package_Instance, to determine more precisely when the
33731 formal and the actual denote the same entity.
33733 2004-05-14 Javier Miranda <miranda@gnat.com>
33735 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33737 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33738 corresponding to a private_with must be removed from visibility; it
33739 will be made visible later, just before we analyze the private part of
33741 (Check_Private_Child_Unit): Allow private_with clauses in public
33743 (Install_Siblings): Make visible the private entities of private-withed
33745 (Install_Withed_Unit): Do not install the private withed unit if we
33746 are compiling a package declaration and the Private_With_OK flag was
33747 not set by the caller. These declarations will be installed later,
33748 just before we analyze the private part of the package.
33750 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33751 during the evaluation of the expression that initializes the object,
33752 decorate it with the expected type to avoid cascade errors.
33755 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33756 subprogram we have to install the private_with clauses after its
33757 specification has been analyzed (as documented in AI-262.TXT).
33759 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33760 current compilation unit has a private with on a given entity.
33761 (Find_Direct_Name): Detect the Beaujolais problem described in
33764 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33765 provides the functionality of the function Is_Ancestor that was
33766 previously available in sem_ch10. It has been renamed to avoid
33769 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33771 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33773 * utils.c (build_vms_descriptor): Use SImode pointers.
33775 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33777 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33779 2004-05-14 GNAT Script <nobody@gnat.com>
33781 * Make-lang.in: Makefile automatically updated
33783 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33785 Renaming of target specific files for clarity
33787 * Makefile.in: Rename GNAT target specific files.
33789 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33790 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33791 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33792 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33793 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33794 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33795 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33796 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33797 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33798 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33799 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33800 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33801 51osinte.adb, 51osinte.ads, 51system.ads,
33802 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33803 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33804 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33805 56tpopsp.adb, 57system.ads, 58system.ads,
33806 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33807 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33808 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33809 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33810 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33811 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33812 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33813 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33814 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33815 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33816 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33817 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33818 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33819 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33820 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33821 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33822 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33823 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33824 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33825 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33826 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33827 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33828 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33829 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33830 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33831 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33832 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33833 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33834 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33835 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33836 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33837 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33838 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33839 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33840 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33841 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33842 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33843 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33844 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33845 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33847 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33848 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33849 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33850 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33851 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33852 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33853 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33854 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33855 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33856 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33857 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33858 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33859 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33860 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33861 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33862 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33863 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33864 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33865 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33866 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33867 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33868 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33869 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33870 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33871 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33872 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33873 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33874 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33875 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33876 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33877 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33878 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33879 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33880 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33881 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33882 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33883 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33884 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33885 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33886 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33887 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33888 s-osinte-vms.ads, s-osinte-vxworks.adb,
33889 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33890 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33891 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33892 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33893 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33894 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33895 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33896 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33897 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33898 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33899 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33900 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33901 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33902 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33903 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33904 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33905 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33906 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33907 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33908 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33909 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33910 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33911 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33912 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33913 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33914 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33915 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33916 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33917 system-irix-o32.ads, system-linux-x86_64.ads,
33918 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33919 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33920 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33921 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33922 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33923 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33924 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33927 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33929 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33931 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33933 Merge from tree-ssa-20020619-branch.
33935 * config-lang.in (boot_language, build_by_default): Set
33937 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33938 (max_size): Add static chain op for call_expr.
33940 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33943 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33945 2004-05-11 Roger Sayle <roger@eyesopen.com>
33947 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33950 2004-05-10 Doug Rupp <rupp@gnat.com>
33952 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33955 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33957 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33959 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33960 Fixes undefined symbols in IA64 gnatlib.
33962 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33964 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33965 Short_Address). This will be moved to system.auxdec.
33967 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33969 * sem_util.adb: Replace test for presence of a node that is always
33970 present with a call to Discard_Node.
33972 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33973 Analyze on the library unit node after generation of distribution stub
33974 constructs. The call was a no-op because Unit_Node has already been
33975 Analyzed, and the tree fragments for the distribution stubs are
33976 analyzed as they are inserted in Exp_Dist.
33977 Update comment regarding to distribution stubs to reflect that we
33978 do not generate stub in separate files anymore.
33980 * einfo.ads: Clarify the fact that a tagged private type has the
33981 E_Record_Type_With_Private Ekind.
33983 * erroutc.adb: Minor reformatting
33985 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33986 values if line length is increased using -gnatyM (noticed during code
33989 * eval_fat.adb: Minor reformatting
33990 Put spaces around exponentiation operator
33992 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33995 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33996 has been rewritten as an explicit dereference, retrieve type of
33997 original node to check for possibly unconstrained record type.
33999 2004-05-10 Ed Schonberg <schonberg@gnat.com>
34001 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
34002 overriding, use the operation of the parent unconditionally.
34004 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
34005 operation when either operand is a literal, to avoid further
34008 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
34009 overridden by a previous explicit declaration, mark the previous entity
34012 * sem_disp.adb (Check_Dispatching_Operation): New predicate
34013 Is_Visibly_Controlled, to determine whether a declaration of a
34014 primitive control operation for a derived type overrides an inherited
34015 one. Add warning if the explicit declaration does not override.
34017 2004-05-10 Vincent Celier <celier@gnat.com>
34019 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
34020 some cases when the sources are no longer present.
34022 * make.adb (Collect_Arguments): Fail if an external source, not part
34023 of any project need to be compiled, when switch -x has not been
34026 * makeusg.adb: Document new switch -x
34028 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
34029 defaulted to False.
34031 * switch-m.adb (Scan_Make_Switches): New switch -x
34033 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
34034 gnatmake switch -x.
34036 * gnat_ugn.texi: Document new gnatmake switch -x
34038 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
34040 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34042 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34043 (process_attributes): Likewise.
34045 2004-05-10 Joel Brobecker <brobecker@gnat.com>
34047 * s-inmaop.ads: Fix spelling mistake in one of the comments.
34049 2004-05-10 Robert Dewar <dewar@gnat.com>
34051 * gnat_ugn.texi: Document that for config pragma files, the maximum
34052 line length is always 32767.
34054 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34055 literals is now allowed.
34057 * gnat-style.texi: Remove statement about splitting long lines before
34058 an operator rather than after, since we do not follow this rule at all.
34059 Clarify rule (really lack of rule) for spaces around exponentiation
34061 * sem_elim.adb: Allow concatenation of string literals as well as a
34062 single string literal for pragma arguments.
34064 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34066 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34067 written for append case.
34069 * frontend.adb: Changes to avoid checking max line length in config
34072 * g-os_lib.ads: Minor reformatting
34074 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34075 wrong in any case. Instead use standard value. Noticed during code
34078 * opt.ads (Max_Line_Length): New field, used to implement removal of
34079 limitation on length of lines when scanning config pragma files.
34081 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34082 makeutl.ads, makeutl.adb: Minor reformatting
34084 * scn.adb: Do not check line length while scanning config pragma files
34085 Do not check line length while scanning out license information
34087 * scng.adb: Changes to avoid line length checks while parsing config
34090 2004-05-10 GNAT Script <nobody@gnat.com>
34092 * Make-lang.in: Makefile automatically updated
34094 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
34096 * osint.adb (Find_Program_Name): Fix handling of VMS version
34099 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
34101 * g-os_lib.ads (Invalid_Time): New constant
34103 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34104 return OS_Time instead of time_t to match what is imported by Ada.
34105 Now return -1 if the file doesn't exist, instead of a random value
34107 2004-05-05 Robert Dewar <dewar@gnat.com>
34109 * usage.adb: Add line for -gnatR?s switch
34111 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34113 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34114 and for Match (Data_First, Data_last)
34116 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34117 written when we are dealing with multi-unit files.
34119 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
34121 * Makefile.in: Remove unused targets and variables.
34123 2004-05-05 Vincent Celier <celier@gnat.com>
34125 * switch-m.adb: New gnatmake switch -eI
34127 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34128 of new gnatmake switch -eInnn.
34130 * makegpr.adb: Take into account new parameters Index and Src_Index in
34133 * clean.adb: Implement support for multi-unit sources, including new
34136 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34139 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34140 (Extract_From_Q): New out parameter Index
34141 (Mark, Is_Marked): Subprograms moved to Makeutl
34142 (Switches_Of): New parameter Source_Index
34143 (Add_Switch): New parameter Index
34144 (Check): New parameter Source_Index
34145 (Collect_Arguments): New parameter Source_Index
34146 (Collect_Arguments_And_Compile): New parameter Source_Index
34147 (Compile): New parameter Source_Index
34148 Put subprograms in alphabetical order
34149 Add support for multi-source sources, including in project files.
34151 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34152 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34155 * makeusg.adb: New gnatmake switch -eInnn
34157 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34160 * opt.ads (Main_Index): New variable, defaulted to 0.
34162 * osint.ads, osinte.adb (Add_File): New parameter Index
34163 (Current_Source_Index): New function
34165 * prj.adb: Take into account new components Index and Src_Index
34167 * prj.ads (String_Element): New component Index
34168 (Variable_Value): New component Index
34169 (Array_Element): New component Src_Index
34171 * prj-attr.adb: Indicate that optional index may be specified for
34172 attributes Main, Executable, Spec, Body and some of Switches.
34174 * prj-attr.ads (Attribute_Kind): New values for optional indexes
34175 (Attribute_Record): New component Optional_Index
34177 * prj-com.ads (File_Name_Data): New component Index
34179 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34181 * prj-env.adb (Put): Output optional index
34183 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34184 attributes Spec and Body.
34186 * prj-nmsc.adb: Process optional indexes
34188 * prj-pp.adb: Ouput "at" for optional indexes
34190 * prj-proc.adb: Take into account optional indexes
34192 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34193 Optional_Index. For string literal,
34194 process optional index when Optional_Index is True.
34195 (Parse_Expresion): New Boolean parameter Optional_Index
34197 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34198 (Set_Source_Index_Of): New procedure
34200 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34203 * prj-util.ads (Executable_Of): New parameter Index
34204 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34205 New parameter Src_Index, defaulted to 0.
34207 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34210 * sem_ch3.adb (Access_Definition): If this is an access parameter
34211 whose designated type is imported through a limited_with clause, do
34212 not add the enclosing subprogram to the list of private dependents of
34215 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34218 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34219 a limited_with clause, and the other is its non-limited view.
34221 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
34223 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34225 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34226 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34227 Stand.Boolean_Literals to produce references to entities
34228 Standard_False and Standard_True from compile-time computed boolean
34231 * stand.ads (Boolean_Literals): New variable, provides the entity
34232 values for False and True, for use by the expander.
34234 2004-05-05 Doug Rupp <rupp@gnat.com>
34236 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34237 5vinmaop.adb: Unchecked convert Short_Address vice Address
34239 * adaint.c, raise.c: Caste CRTL function return value
34240 to avoid gcc error on 32/64 bit IVMS.
34242 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34245 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34247 * 5qsystem.ads (Address): Declare as Long_Integer
34248 (Short_Address): Declare as 32 bit subtype of Address
34249 Declare abstract address operations to avoid gratuitous ambiguities.
34251 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34253 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34254 instead of the old Boolean_Entry_Barriers.
34255 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34257 2004-05-05 GNAT Script <nobody@gnat.com>
34259 * Make-lang.in: Makefile automatically updated
34261 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34263 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34265 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34268 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34269 alone. Replacing object references by literals is inappropriate in a
34270 so low level context.
34272 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34274 * a-exexpr.adb: Add comments
34276 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34278 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34279 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34280 without risking a bounds check error when accessing one of its
34282 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34283 This prevents us from hitting a limitation during the debug info
34284 generation when using stabs.
34286 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34288 This prevents us from hitting a limitation during the debug info
34289 generation when using stabs.
34291 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34293 lang-specs.h: Remove -gnatz* from specs.
34295 2004-05-03 Vincent Celier <celier@gnat.com>
34297 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34299 * Make-lang.in, Makefile.in: Add gprmake
34301 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34303 * sem_aggr.adb: Fix typo in comment.
34305 2004-05-03 Robert Dewar <dewar@gnat.com>
34307 * make.adb: Minor reformatting
34309 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34311 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34312 so that it works when address is not a private type.
34314 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34315 properly with rewritten unchecked conversions. This prevents
34316 order-of-elaboration issues that can otherwise arise.
34317 (Minimum_Size): Don't check size of access types under VMS
34319 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34320 interpretations of integer literals as type System.Address.
34322 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34323 (Is_Descendent_Of): New function
34325 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34327 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34328 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34329 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34331 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34332 of the old Max_Entry_Queue_Depth.
34334 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34335 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34336 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34338 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34339 New entry for proper handling of Max_Entry_Queue_Depth.
34340 New entry for proper handling of No_Dynamic_Interrupts.
34342 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34343 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34344 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34345 the GNAT specific restriction Max_Entry_Queue_Depth.
34346 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34347 the GNAT specific restriction No_Dynamic_Interrupts.
34349 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34350 instead of the old Boolean_Entry_Barriers.
34351 Use the new restriction No_Dynamic_Attachment instead of the old
34352 No_Dynamic_Interrupts.
34354 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34355 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34357 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34358 of the old Max_Entry_Queue_Depth.
34360 2004-05-03 GNAT Script <nobody@gnat.com>
34362 * Make-lang.in: Makefile automatically updated
34364 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34366 * checks.adb (Enable_Range_Check): If the prefix of an index component
34367 is an access to an unconstrained array, perform check unconditionally.
34369 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34371 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34374 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34376 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34377 alternate stack setting. There was no support for the tasking cases
34378 and the changes eventually caused a number of side-effect failures in
34379 the non-tasking case too.
34381 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34383 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34386 2004-04-29 Vincent Celier <celier@gnat.com>
34388 * make.adb (Gnatmake): Increase max size of argument array for
34389 gnatbind for the potential addition of -F.
34390 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34391 be sure that elaboration flags will be checked.
34393 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34395 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34397 * sem_warn.adb (Check_References): Move '<access-variable> may be
34398 null' warning out of under Warn_On_No_Value_Assigned.
34400 2004-04-29 Ed Falis <falis@gnat.com>
34402 * gnat_ugn.texi: Fixed texi error
34404 2004-04-29 Robert Dewar <dewar@gnat.com>
34406 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34407 abstract operations if they come from predefined files.
34409 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34412 * s-addope.adb: Correct obvious error in mod function
34414 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34416 * Makefile.in: Add target pairs for powerpc darwin*
34419 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34420 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34422 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34424 * Makefile.in: Add target macro definitions for s390*-linux*.
34425 * system-linux-s390.ads: New file.
34426 * system-linux-s390x.ads: New file.
34428 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34430 * gnat_ugn.texi: Correct argument to @setfilename.
34432 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34434 * a-exexpr.adb (Unwind_Word): New data type.
34435 (Unwind_Exception): Use it as type of Private1 and Private2.
34437 * raise.c (db_action_for): Fix debug printf.
34439 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34441 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34444 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34446 * decl.c (gnat_to_gnu_entity, case object): Call
34447 __builtin_update_setjmp_buf.
34449 * gigi.h (update_setjmp_buf): Deleted.
34450 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34452 * misc.c: (update_setjmp_buf): Deleted.
34454 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34455 around block of RTL.
34457 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34459 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34461 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34462 subprogram for which no pragma All_Calls_Remote applies, store the
34463 address of the real subprogram in the underlying record type, so local
34464 dereferences do not go through the PCS.
34466 2004-04-26 Robert Dewar <dewar@gnat.com>
34468 * i-c.ads: Add some type qualifications to avoid ambiguities when
34469 compiling with s-auxdec.ads and a non-private address type.
34471 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34473 * Makefile.rtl: Fix error in previous check-in:
34474 Add s-addope.o to non tasking object list (rather than tasking object
34477 2004-04-26 Javier Miranda <miranda@gnat.com>
34479 * sem_aggr.adb: Fix typo in comments
34480 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34481 Required to check the null-exclusion attribute.
34483 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34484 case of anonymous access types in record and array components. For a
34485 component definition the level is the same of the enclosing composite
34488 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34489 that are anonymous access types the level of accessibility depends on
34490 the enclosing type declaration. In order to have this information, set
34491 the scope of the anonymous access type to the enclosing record type
34493 (Array_Type_Declaration): In case of components that are anonymous
34494 access types the level of accessibility depends on the enclosing type
34495 declaration. In order to have this information, set the scope of the
34496 anonymous access type to the enclosing array type declaration.
34498 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34501 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34502 renaming of anonymous access-to-constant types allowed if and only if
34503 the renamed object is access-to-constant.
34505 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34506 that are component_definition or discriminants of a nonlimited type,
34507 the level is the same as that of the enclosing component type.
34509 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34511 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34512 misprint in the function name (File_Name_Match).
34514 2004-04-23 Laurent Guerby <laurent@guerby.net>
34516 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34519 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34521 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34523 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34525 * adaint.c (__gnat_try_lock): No longer requires that the parent
34526 directory be writable, the directory itself is enough.
34527 (gnat_is_absolute_path): Change profile, so that the call from
34528 GNAT.OS_Lib can be made more efficient.
34530 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34531 from GNAT.OS_Lib can be made more efficient.
34533 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34534 one copy of the file name. Found by code reading.
34536 2004-04-23 Vincent Celier <celier@gnat.com>
34538 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34539 Correct documentation on gnatmake switches transmitted to the compiler
34541 * ali.ads: Minor comment fix
34543 2004-04-23 Javier Miranda <miranda@gnat.com>
34545 * sem_ch6.adb: (Confirming Types): Code cleanup
34547 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34548 subprogram types: E_Anonymous_Access_Subprogram_Type and
34549 E_Anonymous_Access_Protected_Subprogram_Type.
34551 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34553 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34554 whether a pragma All_Calls_Remote applies to the subprogram on which
34556 No functional change is introduced by this revision; the new parameter
34557 will be used to allow calls to local RCI subprograms to be optimized
34558 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34559 as is already done in the PolyORB implementation of the DSA.
34561 * exp_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 2004-04-23 Robert Dewar <dewar@gnat.com>
34571 * Makefile.rtl: Add entry for s-addope.o in run time library list
34572 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34573 * s-addope.ads, s-addope.adb: New files.
34575 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34576 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34577 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34578 System.Address to be non-private and signed.
34580 * sem_elim.adb: Minor reformatting (fairly extensive)
34581 Some minor code reorganization from code reading
34582 Add a couple of ??? comments
34584 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34586 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34587 (tree_transform, case N_If_Statement): Remove non-determinism.
34589 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34591 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34593 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34594 Eliminate' section.
34596 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34597 no longer used as a parameter name for Eliminate pragma).
34599 2004-04-22 Laurent Guerby <laurent@guerby.net>
34601 PR optimization/14984
34602 PR optimization/14985
34603 * trans.c (gigi): Fix non determinism leading to bootstrap
34604 comparison failures.
34606 2004-04-21 Pascal Obry <obry@gnat.com>
34608 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34609 passed to spawnvp() to properly handle program pathname with spaces on
34612 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34614 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34615 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34616 unlocked in case of exceptions.
34618 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34620 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34621 This function does not exist anymore.
34623 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34625 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34627 * link.c: Move variables to the __gnat name space.
34629 * Makefile.in: list link.o explicitly when needed.
34631 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34633 2004-04-21 Javier Miranda <miranda@gnat.com>
34635 * einfo.adb (Original_Access_Type): New subprogram
34636 (Set_Original_Access_Type): New subprogram
34637 (Write_Field21_Name): Write the name of the new field
34639 * einfo.ads (Original_Access_Type): New field present in access to
34641 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34642 E_Anonymous_Access_Protected_Subprogram_Type.
34644 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34647 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34648 to anonymous access to subprogram types.
34650 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34651 to subprogram types.
34653 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34654 corresponding to anonymous access to subprogram types.
34655 (Analyze_Component_Declaration): Add new actual to the call to
34656 subprogram replace_anonymous_access_to_protected_subprogram.
34657 (Array_Type_Declaration): Add new actual to the call to subprogram
34658 replace_anonymous_access_to_protected_subprogram.
34659 (Process_Discriminants): Add new actual to the call to subprogram
34660 replace_anonymous_access_to_protected_subprogram.
34661 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34663 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34666 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34667 access to subprogram types.
34669 * sem_util.adb (Has_Declarations): Addition of package_specification
34672 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34674 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34675 inlined flags to renamed entity only if in current unit.
34677 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34679 * s-parint.ads: Add DSA implementation marker.
34681 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34682 value of System.Partition_Interface.DSA_Implementation to determine
34683 what version of the distributed systems annex is available (no
34684 implementation, GLADE, or PolyORB).
34686 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34688 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34690 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34692 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34693 with new type if alias sets differ.
34694 Fixes ACATS c41103b.
34696 2004-04-21 Vincent Celier <celier@gnat.com>
34698 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34699 Add array Lang_Args for the language specific compiling argument
34702 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34704 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34706 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34707 according to the recent changes in the format of the parameters of the
34708 pragma (replacing Homonym_Number with Source_Location).
34710 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34712 * 5isystem.ads: Removed, unused.
34714 * gnat_rm.texi: Redo 1.13 change.
34716 2004-04-19 Robert Dewar <dewar@gnat.com>
34718 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34719 definition is cleaner, avoids the kludge of explicit Standard operator
34720 references, and also is consistent with a visible System.Address with
34721 no visible operations.
34723 * s-geveop.adb: Add declarations to avoid assumption of visible
34724 operations on type System.Address (since these might not be available
34725 if Address is a non-private type for which the operations
34726 are made abstract).
34728 * sem_eval.adb: Minor reformatting
34730 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34731 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34732 reformatting (new function spec format).
34734 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34735 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34736 s-caun64.adb: Add declarations to avoid assumption of visible
34737 operations on type System.Address (since these might not be available
34738 if Address is a non-private type for which the operations are made
34741 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34743 * exp_intr.adb: Minor comment update
34745 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34747 * 5omastop.adb: Add declarations to avoid assumption of visible
34748 operations on type System.Address (since these might not be available
34749 if Address is a non-private type for which the operations
34750 are made abstract).
34752 2004-04-19 Vincent Celier <celier@gnat.com>
34754 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34756 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34759 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34761 Call Check with Process_Languages.
34762 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34763 with Process_Languages.
34764 (Recursive_Check): New Boolean parameter Process_Languages. Call
34765 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34768 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34770 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34771 parameter Ada_Main, defaulted to True.
34772 Check for Ada specific characteristics only when Ada_Main is True.
34774 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34776 * prj.adb: (Project_Empty): Add new Project_Data components.
34778 * prj.ads: New types and tables for non Ada languages.
34779 (Project_Data): New components Languages, Impl_Suffixes,
34780 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34781 Include_Path, Include_Data_Set.
34783 * prj-env.ads, prj-env.adb: Minor reformatting
34785 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34786 Put subprograms in alphabetical order
34788 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34789 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34792 * mlib-prj.adb: Back out modification in last version, as they are
34794 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34796 * make.adb: (Mains): Moved to package Makeutl
34797 (Linker_Opts): Moved to package Makeutl
34798 (Is_External_Assignment): Moved to package Makeutl
34799 (Test_If_Relative_Path): Moved to package Makeutl
34800 (Gnatmake): Move sorting of linker options to function
34801 Makeutl.Linker_Options_Switches.
34803 * makeutl.ads, makeutl.adb: New files.
34805 * Makefile.in: Add makeutl.o to the object files for gnatmake
34807 * makeusg.adb: Add line for new switch -eL.
34809 * gnatls.adb (Image): New function.
34810 (Output_Unit): If in verbose mode, output the list of restrictions
34811 specified by pragmas Restrictions.
34813 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34816 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34817 needed, to put it in the range 1970 (included) - 2026 (excluded).
34818 (Time_Of): Do not shift Unix_Min_Year (1970).
34819 Shift the date by multiple of 56 years, if needed, to put it in the
34820 range 1970 (included) - 2026 (excluded).
34822 * adaint.h, adaint.c (__gnat_set_executable): New function.
34824 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34826 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34827 and pop GC context.
34828 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34829 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34830 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34831 (tree_transform, case N_Code_Statement): Likewise.
34832 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34833 LABEL_STMT_FIRST_IN_EH.
34834 (gnat_expand_stmt, case ASM_STMT): New case.
34836 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34837 UNCONSTRAINED_ARRAY_REF.
34839 * utils.c (poplevel): Temporarily push/pop GC context around inline
34840 function expansion.
34842 * decl.c (maybe_variable): Properly set TREE_READONLY of
34843 UNCONSTRAINED_ARRAY_REF.
34844 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34846 * ada-tree.def: (ASM_STMT): New.
34848 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34849 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34850 ASM_STMT_INPUT): New.
34851 (ASM_STMT_CLOBBER): Likewise.
34853 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34855 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34856 general rcheck mechanism to raise Program_Error for E.4(18), instead
34857 of a custom raiser in System.Partition_Interface.
34858 Part of general cleanup work before PolyORB integration.
34860 * snames.ads, snames.adb: Add new runtime library entities and names
34863 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34865 (Build_Subprogram_Id): New subprogram provided by exp_dist
34866 Code reorganisation in preparation for PolyORB integration.
34868 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34870 (Build_Subprogram_Id): New subprogram provided by exp_dist
34872 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34873 actual parameter types for call to dereference of an
34874 access-to-subprogram type.
34876 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34879 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34880 instead, which has the same behaviour here since we never pass it a
34883 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34886 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34887 to account for new dependency upon Interfaces.C.Strings + link.o
34888 For x86 FreeBSD, use 86numaux.
34890 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34891 from Mlib.Tgt to Mlib.
34893 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34894 target-independent.
34896 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34897 target-specific versions of this subprogram, now implemented as a
34898 target-independent function in Mlib.
34900 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34901 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34902 (Linker_Library_Path_Option): Remove target-specific versions of this
34903 subprogram, now implemented as a target-independent function in Mlib.
34905 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34906 Factors out node table slots allocation.
34907 (Fix_Parents): New subprogram.
34908 Encapsulate the pattern of fixing up parent pointers for syntactic
34909 children of a rewritten node.
34910 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34911 (Rewrite): Use New_Copy when creating saved copy of original node.
34912 (Replace): Use Copy_Node to copy nodes.
34914 2004-04-19 Javier Miranda <miranda@gnat.com>
34916 * sprint.adb (Sprint_Node_Actual): Give support to the new
34917 Access_To_Subprogram node available in Access_Definition nodes. In
34918 addition, give support to the AI-231 node fields: null-exclusion,
34919 all-present, constant-present.
34921 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34923 * sinfo.ads, sinfo.adb:
34924 New field Access_To_Subprogram_Definition in Access_Definition nodes
34926 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34927 decorates internal subtype declaration corresponding to the
34928 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34929 In addition, carry out some code cleanup on this code. In case of
34930 access to protected subprogram call
34931 Replace_Anonymous_Access_To_Protected_Subprogram.
34932 (Set_Actual_Subtypes): Code cleanup.
34934 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34935 Find_Type in case of anonymous access renamings. Add warning in case of
34936 null-excluding attribute used in anonymous access renaming.
34938 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34941 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34943 (Access_Definition): In case of anonymous access to subprograms call
34944 the corresponding semantic routine to decorate the node.
34945 (Access_Subprogram_Declaration): Addition of some comments indicating
34946 some code that probably should be added here. Detected by comparison
34947 with the access_definition subprogram.
34948 (Analyze_Component_Declaration): In case of access to protected
34949 subprogram call Replace_Anonymous_Access_To_Protected.
34950 (Array_Type_Declaration): In case of access to protected subprogram call
34951 Replace_Anonymous_Access_To_Protected_Subprogram.
34952 (Process_Discriminants): In case of access to protected subprogram call
34953 Replace_Anonymous_Access_To_Protected_Subprogram.
34955 * par.adb (P_Access_Definition): New formal that indicates if the
34956 null-exclusion part was present.
34957 (P_Access_Type_Definition): New formal that indicates if the caller has
34958 already parsed the null-excluding part.
34960 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34961 (P_Identifier_Declarations): Code cleanup and give support to renamings
34962 of anonymous access to subprogram types.
34963 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34964 (P_Array_Type_Definition): Give support to AI-254.
34965 (P_Component_Items): Give support to AI-254.
34966 (P_Access_Definition): New formal that indicates if the header was
34967 already parsed by the caller.
34968 (P_Access_Type_Definition): New formal that indicates if the caller has
34969 already parsed the null-excluding part.
34971 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34972 call to P_Access_Definition.
34974 2004-04-19 Geert Bosch <bosch@gnat.com>
34976 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34977 the delicate semantics of floating-point to integer conversion.
34978 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34980 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34981 (Machine_Radix): New function.
34983 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34985 (Machine_Radix): New function also for use in conversion checks.
34987 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34989 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34991 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34992 to decorate the access-to-protected subprogram and the equivalent type.
34994 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34995 to anonymous access to subprogram types.
34997 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34998 constant-folding, for legality checks in contexts that require an RM
35001 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
35002 temporary but stack checking is not enabled, increment serial number
35003 to so that symbol generation is consistent with and without stack
35006 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
35007 independent on whether stack checking is enabled, caller must check
35008 the corresponding flag.
35010 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
35012 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
35013 parent if it has discriminants.
35014 (Build_Derived_Private_Type): Constructed full view does
35015 not come from source.
35016 (Process_Discriminants): Default discriminants on a tagged type are
35017 legal if this is the internal completion of a private untagged
35020 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
35021 no constraint checks, because it corresponds to an existing object.
35023 * sem_prag.adb (Process_Convention): Pragma applies
35024 only to subprograms in the same declarative part, i.e. the same unit,
35025 not the same scope.
35027 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
35028 ignore type mismatch on a numeric conversion if expression comes from
35031 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
35033 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
35034 Homonym_Number parameter, add processing for Source_Location parameter
35036 (Check_Eliminated): Remove the check for homonym numbers, add the check
35037 for source location traces.
35039 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
35040 with Arg_Source_Location corresponding to the changes in the format of
35043 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35044 Eliminate pragma corresponding to the changes in the format of the
35045 pragma: Homonym_Number is replaced with Source_Location, two ways of
35046 distinguishing homonyms are mutially-exclusive.
35048 2004-04-19 Joel Brobecker <brobecker@gnat.com>
35050 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35052 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35053 No_Dollar_In_Label, no longer necessary, as it is always True.
35054 (Strip_Suffixes): Likewise.
35056 2004-04-19 Gary Dismukes <dismukes@gnat.com>
35058 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35059 modulus for compatibility with size clause on targets with 16-bit
35062 * layout.adb (Discrimify): In the case of private types, set Vtyp to
35063 full type to fix type mismatches on calls to size functions for
35064 discriminant-dependent array components.
35066 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
35068 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35071 2004-04-19 Pascal Obry <obry@gnat.com>
35073 * mdll-utl.adb (Locate): New version is idempotent.
35075 2004-04-17 Laurent Guerby <laurent@guerby.net>
35077 PR ada/14988 (partial)
35078 * impunit.adb: Fix typo.
35080 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
35082 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35083 and install-rts-cert targets. Remove all gnatlib and gnattools
35084 targets and all other rts-* targets (moved to libada). Remove (now)
35085 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35086 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35088 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35090 * trans.c (tree_transform): Shortcut returning error_mark_node for
35091 statements in annotate_only_mode.
35092 (tree_transform, case N_Label, case N_Return_Statement,
35093 N_Goto_Statement): Make statement tree instead of generating code.
35094 (tree_transform, case N_Assignment_Statement): No longer check
35095 type_annotate_only.
35096 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35098 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35100 (gnat_to_gnu): Collect any RTL generated and deal with it.
35101 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35102 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35103 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35105 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35107 * ada-tree.def (EXPR_STMT): Fix typo in name.
35108 (BLOCK_STMT, IF_STMT): New nodes.
35110 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35111 LABEL_STMT_FIRST_IN_EH): New macros.
35112 (RETURN_STMT_EXPR): Likewise.
35114 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35115 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35117 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35119 * atree.ads: Correct documentation on extended nodes.
35121 * link.c: Set run_path_option for FreeBSD.
35123 2004-04-08 Vincent Celier <celier@gnat.com>
35125 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35126 one of the ALI file, do not link with DEC lib.
35128 * par.adb Remove the last two characters ("%s" or "%b") when checking
35129 if a language defined unit may be recompiled.
35131 2004-04-08 Ed Schonberg <schonberg@gnat.com>
35133 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35134 removal of abstract operation leaves no possible interpretation for
35137 * sem_eval.adb (Eval_Qualified_Expression): Use
35138 Set_Raises_Constraint_Error on node when needed, so that it does not
35139 get optimized away by subsequent optimizations.
35141 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35142 operands even when they are not wrapped in a type conversion.
35144 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
35146 * sem_prag.adb (Set_Exported): Warn about making static as result of
35147 export only when the export is coming from source. This may be not
35148 be true e.g. on VMS where we expand export pragmas for exception codes
35149 together with imported or exported exceptions, and we don't want the
35150 user to be warned about something he didn't write.
35152 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
35154 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35155 duplication between normal entities and those declared as renamings.
35156 No functional change.
35158 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
35159 inline functions returning an unconstrained result.
35161 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
35163 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35164 conform to what other front-ends do.
35166 2004-04-08 Doug Rupp <rupp@gnat.com>
35168 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35171 2004-04-06 Pascal Obry <obry@gnat.com>
35173 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35175 * osint.adb (Program_Name): Do not look past a directory separator.
35177 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
35179 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35181 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35182 requirement for preserving a copy of the original assignment node.
35184 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35186 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
35188 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35191 2004-04-06 Ed Schonberg <schonberg@gnat.com>
35193 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35194 operator calls in functional notation, and apply
35195 Universal_Interpretation to operands, not to their type.
35197 2004-04-06 Robert Dewar <dewar@gnat.com>
35199 * 5wdirval.adb: Minor reformatting
35201 2004-04-06 Ed Falis <falis@gnat.com>
35203 * gnat_rm.texi: Improve a reference to the GCC manual
35205 2004-04-05 Vincent Celier <celier@gnat.com>
35207 * adaint.h, adaint.c: Add function __gnat_named_file_length
35209 * impunit.adb: Add Ada.Directories to the list
35211 * Makefile.in: Add VMS and Windows versions of
35212 Ada.Directories.Validity package body.
35214 * Makefile.rtl: Add a-direct and a-dirval
35216 * mlib-tgt.ads: Minor comment update.
35218 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35219 a-direct.ads, a-direct.adb: New files.
35221 2004-04-05 Vincent Celier <celier@gnat.com>
35224 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35225 just to the compiler.
35227 2004-04-05 Robert Dewar <dewar@gnat.com>
35229 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35230 returned string is 1.
35232 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35234 * eval_fat.ads: Minor reformatting
35236 * g-curexc.ads: Document that lower bound of returned string values
35239 * gnatlink.adb: Add ??? comment for previous change
35240 (need to document why this is VMS specific)
35242 * s-stoele.ads: Minor reformatting
35244 * tbuild.ads: Minor reformatting throughout (new function specs)
35246 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35249 * scng.adb: Minor reformatting
35251 2004-04-05 Geert Bosch <bosch@gnat.com>
35253 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35254 (Leading_Part): Still perform truncation to machine number if the
35255 specified radix_digits is greater or equal to machine_mantissa.
35257 2004-04-05 Javier Miranda <miranda@gnat.com>
35259 * par-ch3.adb: Complete documentation of previous change
35260 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35261 (aliased must appear before constant).
35263 * par-ch4.adb: Complete documentation of previous change.
35265 * par-ch6.adb: Complete documentation of previous change.
35267 * sinfo.ads: Fix typo in commment.
35269 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35271 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35272 stored discriminants, use its discriminants to constrain parent type,
35273 as is done for non-private derived record types.
35275 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35276 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35277 candidate interpretation in an overloaded call.
35279 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35280 expression is Null and target type is not an access type (e.g. a
35281 non-private address type).
35283 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35285 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35286 statement whose right-hand side is an inlined call, save a copy of the
35287 original assignment subtree to preserve enough consistency for
35288 Analyze_Assignment to proceed.
35290 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35291 complete assignment subtree which is now unnecessary, as the expansion
35292 of inlined call has been improved to preserve a consistent assignment
35293 tree. Note_Possible_Modification must be called only
35294 after checks have been applied, or else unnecessary checks will
35297 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35298 of explicit dereferences that do not Come_From_Source:
35299 - be selective on cases where we must go back to the dereferenced
35300 pointer (an assignment to an implicit dereference must not be
35301 recorded as modifying the pointer);
35302 - do not rely on Original_Node being present (Analyze_Assignment
35303 calls Note_Possible_Modification on a copied tree).
35305 * sem_warn.adb (Check_References): When an unset reference to a pointer
35306 that is never assigned is encountered, prefer '<pointer> may be null'
35307 warning over '<pointer> is never assigned a value'.
35309 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35311 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35314 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35316 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35317 libexc. We currently don't reference anything in this library and
35318 linking it in triggers linker warnings we don't want to see.
35320 * init.c: Update comments.
35322 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35324 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35325 * utils.c (create_field_decl): Likewise.
35326 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35328 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35330 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35331 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35332 Add info directory entry and category.
35334 2004-04-02 Jan Hubicka <jh@suse.cz>
35336 * utils.c: Include function.h
35337 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35339 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35342 * Make-lang.in: Clean up generation of documentation
35344 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35346 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35348 * xgnatugn.adb: Replaces xgnatug.adb
35350 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35352 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35354 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35355 gnat_ug_wnt.texi: Removed.
35357 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35359 * utils2.c: Update copyright notice.
35361 2004-04-01 Robert Dewar <dewar@gnat.com>
35363 * checks.adb: Minor reformatting throughout
35364 Note that prev checkin added RM reference to alignment warning
35366 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35368 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35369 non-static when building aggregate for bit-packed array.
35371 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35372 function call that is itself the actual in a procedure call, build
35375 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35376 a string literal, create a temporary for it, constant folding only
35377 handles scalars here.
35379 2004-04-01 Vincent Celier <celier@gnat.com>
35381 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35382 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35383 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35385 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35386 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35387 and get the checksum.
35389 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35391 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35392 instead of at the beginning.
35394 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35396 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35399 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35401 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35404 * par.adb: Remove test on file name to detect language defined units.
35405 Add test on unit name, after parsing, to detect language defined units
35406 that are not compiled with -gnatg (except System.RPC and its children)
35408 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35409 following units without style checking.
35411 * switch-c.adb: Change -gnatC to -gnateI
35413 * usage.adb: Document new switch -gnateInnn
35415 * scng.adb (Accumulate_Token_Checksum): New procedure
35416 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35417 word or literal number.
35418 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35421 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35424 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35425 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35426 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35427 5vtpopde.adb: Add missing 'constant' keywords.
35429 2004-04-01 Javier Miranda <miranda@gnat.com>
35431 * par-ch4.adb: (P_Allocator): Code cleanup
35433 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35436 * sinfo.ads: Complete documentation of previous change
35438 2004-04-01 Pascal Obry <obry@gnat.com>
35440 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35441 only on VMS. This special handling was done because an old GNU/ld bug
35442 on Windows which has been fixed.
35444 2004-04-01 GNAT Script <nobody@gnat.com>
35446 * Make-lang.in: Makefile automatically updated
35448 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35450 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35451 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35452 * trans.c (tree_transform, convert_with_check): Likewise.
35453 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35454 (build_vms_descriptor, unchecked_convert): Likewise.
35455 * utils2.c (nonbinary_modular_operation): Likewise.
35457 2004-03-29 Javier Miranda <miranda@gnat.com>
35459 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35460 (Install_Null_Excluding_Check): Local subprogram that determines whether
35461 an access node requires a runtime access check and if so inserts the
35462 appropriate run-time check.
35463 (Apply_Access_Check): Call Install_Null_Excluding check if required
35464 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35466 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35468 * einfo.ads: Fix typo in comment
35470 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35471 null-excluding type to force the corresponding run-time check.
35472 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35473 type to force the corresponding run-time check.
35475 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35476 the null-excluding type to force the corresponding run-time check.
35478 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35479 case of access types unless they have the null-excluding attribute.
35481 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35484 * exp_util.ads: Fix typo in comment
35486 * par.adb (P_Null_Exclusion): New subprogram
35487 (P_Subtype_Indication): New formal that indicates if the null-excluding
35488 part has been scanned-out and it was present
35490 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35492 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35493 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35494 type to force the corresponding run-time check
35495 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35497 (Resolve_Array_Aggregate): Carry out some static checks
35498 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35500 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35501 attribute must be set only if specified by means of the null-excluding
35502 part. In addition, we must also propagate the access-constant attribute
35504 (Access_Subprogram_Declaration, Access_Type_Declaration,
35505 Analyze_Component_Declaration, Analyze_Object_Declaration,
35506 Array_Type_Declaration, Process_Discriminants,
35507 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35508 and carry out some static checks.
35509 (Build_Derived_Access_Type): Set the null-excluding attribute
35510 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35513 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35515 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35517 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35518 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35519 null-excluding part was present; it is not required to be done here in
35520 case of anonymous access types.
35521 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35524 * sem_res.adb (Resolve_Actuals): Carry out some static check
35525 (Resolve_Null): Allow null in anonymous access
35527 * sinfo.adb: New subprogram Null_Exclusion_Present
35528 All_Present and Constant_Present available on access_definition nodes
35530 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35531 object_declaration, derived_type_definition, component_definition,
35532 discriminant_specification, access_to_object_definition,
35533 access_function_definition, allocator, access_procedure_definition,
35534 access_definition, parameter_specification, All_Present and
35535 Constant_Present flags available on access_definition nodes.
35537 2004-03-29 Robert Dewar <dewar@gnat.com>
35539 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35540 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35541 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35542 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35543 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35544 sem_prag.adb: Updates to handle multiple units/file
35546 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35548 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35549 sem_util.adb: Minor reformatting
35551 * sem_ch12.adb: Add comment for previous change
35553 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35555 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35556 executable name when not initialized. Otherwise, use its current value.
35558 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35559 initialize it to another executable name than the current one. This
35560 allows to configure paths for an executable name (gnatmake) different
35561 from the current one (gnatdist).
35563 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35565 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35566 current unit cannot be inlined if it appears in the body of a withed
35567 unit, to avoid order of elaboration problems in gigi.
35569 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35570 information for protected (wrapper) operation as well, to simplify gdb
35573 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35574 protected body, indicate that the entity for the generated spec comes
35575 from source, to ensure that references are properly generated for it.
35576 (Build_Body_To_Inline): Do not inline a function that returns a
35579 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35580 apply convention to homonyms that are declared explicitly.
35582 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35583 that renames an equality operator and the operands are overloaded,
35584 resolve them with the declared formal types, before rewriting as an
35587 2004-03-29 GNAT Script <nobody@gnat.com>
35589 * Make-lang.in: Makefile automatically updated
35591 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35593 * memtrack.adb: Log realloc calls, which are treated as free followed
35596 2004-03-25 Vincent Celier <celier@gnat.com>
35598 * prj-makr.adb (Process_Directories): Detect when a file contains
35599 several units. Do not include such files in the config pragmas or
35600 in the naming scheme.
35602 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35603 Resolve links only when not in Trusted_Mode.
35604 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35605 Do not resolve links for the display names.
35607 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35608 resolve links when computing the display names.
35610 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35612 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35613 attribute reference does not denote a subtype, it can be any
35614 expression that has a classwide type, potentially after an implicit
35615 dereference. In particular, the prefix can be a view conversion for
35616 a classwide type (for which Is_Object_Reference holds), but it can
35617 also be a value conversion for an access-to-classwide type. In the
35618 latter case, there is an implicit dereference, and the original node
35619 for the prefix does not verify Is_Object_Reference.
35621 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35622 conversion of a discriminant-dependent component of a mutable object
35625 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35627 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35628 inherited, has convention C, and has unconstrained array parameters,
35629 place the corresponding warning on the derived type declaration rather
35630 than the original subprogram.
35632 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35633 indication on renaming declaration, if formal has a box and actual
35636 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35637 determine whether to generate an implicit or explicit reference to
35638 the renamed entity.
35640 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35641 subprogram renaming comes from a defaulted formal subprogram in an
35644 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35646 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35647 value expressions to ensure that calls within a component definition
35648 will be checked (since those are evaluated during the record type's
35651 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35653 * s-tpobop.adb: Code clean up:
35654 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35656 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35658 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35660 * Makefile.in: Clean up in the ravenscar run time.
35662 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35664 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35665 of No_Strict_Aliasing to build_pointer_type_for_mode.
35666 * utils.c (update_pointer_to): Walk pointer and ref chains.
35668 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35670 * ali.ads: Fix Comment about Dynamic_Elab.
35672 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35673 Has_RACW, Is_Generic, etc.)
35674 (Output_Object, Gnatls): Take into account ALI files not attached to
35677 2004-03-22 Vincent Celier <celier@gnat.com>
35679 * gprep.adb: Change all String_Access to Name_Id
35680 (Is_ASCII_Letter): new function
35681 (Double_File_Name_Buffer): New procedure
35682 (Preprocess_Infile_Name): New procedure
35683 (Process_Files): New procedure
35684 (Gnatprep): Check if output and input are existing directories.
35685 Call Process_Files to do the real job.
35687 2004-03-22 Robert Dewar <dewar@gnat.com>
35689 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35690 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35692 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35694 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35695 case when the source contains only comments.
35697 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35699 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35700 declaration for a child subprogram body that acts as a spec, indicate
35701 that the entity in the declaration needs debugging information.
35703 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35704 full view if the subtype is created for a constrained record component;
35705 gigi has enough information to construct the record, and there is no
35706 place in the tree for the declaration.
35708 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35709 serial number for the dummy body that is built for analysis, to avoid
35710 inconsistencies in the generation of internal names when compiling
35713 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35715 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35718 2004-03-22 GNAT Script <nobody@gnat.com>
35720 * Make-lang.in: Makefile automatically updated
35722 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35724 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35725 * trans.c (tree_transform, emit_index_check): Likewise.
35726 * utils.c (build_template): Likewise.
35727 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35728 (maybe_unconstrained_array, unchecked_convert): Likewise.
35729 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35730 (build_unary_op): Likewise.
35731 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35732 (fill_vms_descriptor): Likewise.
35733 (build_call_alloc_dealloc): Likewise.
35735 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35737 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35740 * gnat_ug.texi: Add info directory category and entry.
35741 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35742 gnat_ug_wnt.texi: Regenerate.
35744 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35746 * ada-tree.h: Update copyright notice.
35747 Minor reformatting.
35749 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35751 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35752 as regular exception objects and not as mere integers representing the
35753 condition code. The latter approach required some dynamics to mask off
35754 severity bits, which did not fit well into the GCC table based model.
35755 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35756 exception data objects. We don't it and it would conflict with the other
35757 external symbol we have to generate for such exceptions.
35759 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35760 the special code for VMS exceptions, since these are now represented
35761 as regular exceptions objects.
35763 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35765 * decl.c (debug_no_type_hash): Remove.
35766 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35767 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35769 2004-03-19 Laurent Guerby <laurent@guerby.net>
35771 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35772 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35774 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35776 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35777 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35778 (TYPE_RM_SIZE_INT): Directly use type.values.
35779 (TREE_LOOP_ID): Clean up check.
35780 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35781 TYPE_VALUES, not TYPE_FIELDS.
35782 * trans.c (convert_with_check): Delay access of bounds of basetype
35783 until sure is numeric.
35785 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35787 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35790 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35791 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35792 Specific.Set instead of direct call to e.g pthread_setspecific.
35794 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35796 * adaint.c: Update comments.
35798 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35799 GNATLIB_SHARED for FreeBSD.
35801 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35803 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35804 When needed (stack checking) the stack size is retrieved
35805 from the VxWorks kernel.
35807 * Makefile.in: Flag -nostdinc is required when building the run time
35808 for avoiding looking for files in the base compiler.
35809 Add the VxWorks specific version of the package body for
35810 System.Stack_checking.Operations (5zstchop.adb).
35812 * Make-lang.in: Add the object file for
35813 System.Stack_Checking.Operations.
35815 * Makefile.rtl: Add object file for the package
35816 System.Stack_Checking.Operations.
35818 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35820 * s-stache.ads, s-stache.adb: Move the operations related to stack
35821 checking from this package to package System.Stack_Checking.Operations.
35822 This way, stack checking operations are only linked in the final
35823 executable when using the -fstack-check flag.
35825 2004-03-18 Doug Rupp <rupp@gnat.com>
35827 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35830 * 5qsystem.ads, 5xcrtl.ads: New files.
35832 2004-03-18 Vincent Celier <celier@gnat.com>
35834 * prj.adb (Reset): Reset hash table Files_Htable
35836 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35837 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35838 the procedures Add_To_Path_File.
35839 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35840 making sure that each directory is present only once and, for object
35841 dirs, when a directory already present is added, the duplicate is
35842 removed and the directory is always put as the last in the table.
35843 Write the path files at the end of these accumulations.
35845 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35846 Files_Htable for all sources.
35848 * prj-proc.adb (Process): Remove restrictions between not directly
35849 related extending projects.
35851 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35853 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35854 (Find_Sources): Minor speed optimization.
35856 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35857 parameter Trusted_Mode.
35859 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35861 * scn.adb (Determine_License): Take into account a degenerated case
35862 when the source contains only comments.
35864 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35866 * sem_warn.adb (Check_References): For a warning on a selected
35867 component that does not come from source, locate an uninitialized
35868 component of the record type to produce a more precise error message.
35870 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35872 * 3zsoccon.ads: Fix multicast options.
35874 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35877 2004-03-15 Robert Dewar <dewar@gnat.com>
35879 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35880 pragma used for a private type.
35882 * lib-xref.adb (Generate_Reference): Do not generate warning if
35883 reference is in a different unit from the pragma Unreferenced.
35885 * 5vtpopde.adb: Minor reformatting
35886 Fix casing of To_Task_ID
35888 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35889 flag if we have an unchecked conversion to an access type in the same
35892 2004-03-15 Geert Bosch <bosch@gnat.com>
35894 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35895 imaginary parts, use Double precision throughout.
35897 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35898 we want to be able to compile run-time with -gnata for testing, but
35899 this may also be instantiated in user code that is compiled with -gnata.
35901 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35903 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35904 codes. Having a separate type for this is useful to enforce consistency
35905 throughout the various run-time units.
35906 (Exception_Data): Use Exception_Code for Import_Code.
35908 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35909 Natural and Integer in various places.
35910 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35911 with the severity bits masked off.
35912 (Register_VMS_Exception): Handle the additional exception data pointer
35915 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35916 component, now reflected by an exported accessor.
35917 (is_handled_by): New routine to compute whether the propagated
35918 occurrence matches some handler choice specification. Extracted out of
35919 get_action_description_for, and expanded to take care of the VMS
35921 (get_action_description_for): Use is_handled_by instead of an explicit
35922 complex condition to decide if the current choice at hand catches the
35923 propagated occurrence.
35925 * raise.h (Exception_Code): New type for C.
35927 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35928 System.Standard_Library.Exception_Code, to allow references from the
35929 pragma import/export expander.
35931 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35932 New accessors to allow easy access to GNAT exception data
35934 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35935 redundant Handled_By_Others component, helper for the personality
35936 routine which will now be able to call the appropriate exception data
35939 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35940 component of Standard_Exception_Type to be the closest possible to
35941 Exception_Code in System.Standard_Library, that we cannot get at this
35942 point. Expand a ??? comment to notify that this type node should
35943 probably be rewritten later on.
35945 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35946 registration call to include a pointer to the exception object in the
35949 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35950 instead of int and explicit bitmasks.
35952 2004-03-15 Vincent Celier <celier@gnat.com>
35954 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35955 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35957 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35958 longer needed now that it is in the spec of
35959 System.Tasking.Task_Attributes.
35961 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35963 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35965 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35967 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35968 taken care of in Scan_Make_Arg.
35969 (Scan_Make_Arg): Add the executable suffix only if the argument
35970 following -o, in canonical case, does not end with the executable
35971 suffix. When in verbose mode and executable file name does not end
35972 with executable suffix, output the executable name, in canonical case.
35974 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35975 to avoid warnings when instantiating Ada.Task_Attributes.
35978 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35979 in the correct order.
35981 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35982 redirect standard output and error to a file for the invocation of the
35983 compiler, then read the file.
35985 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35986 directory, instead of the Value.
35987 (Find_Source_Dirs): Remove useless code & comments.
35989 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35991 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35992 tagged type is inherited, and the parent operation is not frozen yet,
35993 force generation of a freeze node for the inherited operation, so the
35994 corresponding dispatch entry is properly initialized.
35995 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35996 when looking for user-defined equality operation.
35998 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35999 boolean when locating primitive equality of tagged component.
36001 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
36002 bit-aligned field and the right-hand side a string literal, introduce
36003 a temporary before expanding assignment into a loop.
36005 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
36006 priority in full, to ensure that any expanded subepxressions of it are
36007 elaborated in the scope of the init_proc.
36009 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
36010 after object declaration, skipping over code that may have been
36011 generated for validity checks.
36013 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
36014 discriminants, ignore the known discriminants of its full view, if
36015 any, to check legality.
36017 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
36018 component if type has unknown discriminants.
36019 (Analyze_Private_Extension_Declaration): Discriminant constraint is
36020 null if type has unknown discriminants.
36022 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
36023 for end label when present.
36025 * s-fileio.adb (Open): When called with a C_Stream, use given name for
36026 temporary file, rather than an empty string.
36028 2004-03-15 Ed Falis <falis@gnat.com>
36030 * s-thread.adb: Removed, no longer used.
36032 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36034 * decl.c (target.h): Now include.
36035 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
36036 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
36037 (validate_size): For POINTER_TYPE, get smallest size permitted on
36040 * fe.h: Sort Einfo decls and add Set_Mechanism.
36042 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36043 (ada/decl.o): Depends on target.h.
36045 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36046 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36048 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
36050 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36052 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36053 Insert_Dereference_Action when rewriting an implicit dereference into
36054 an explicit one, this will be taken care of during expansion of the
36055 explicit dereference.
36056 (Expand_N_Slice): Same. Always do the rewriting, even for the case
36057 of non-packed slices, since the dereference action generated by
36058 expansion of the explicit dereference is needed in any case.
36059 (Expand_N_Selected_Component): When rewriting an implicit dereference,
36060 analyze and resolve the rewritten explicit dereference so it is seen
36062 (Insert_Dereference_Action): This procedure is now called only for the
36063 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36064 dereferences that do not come from source (including explicit
36065 dereferences resulting from rewriting implicit ones), but do not
36066 recursively insert a check for the dereference nodes contained within
36068 (Insert_Dereference_Action): Clarify and correct comment.
36070 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
36073 Move language detection to the top level.
36074 * config-lang.in: Build by default.
36076 2004-03-05 Robert Dewar <dewar@gnat.com>
36078 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36080 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36081 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
36082 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
36083 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36084 unchecked conversion to spec to avoid warnings.
36086 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36089 * 7stpopsp.adb: Correct casing in To_Task_ID call
36091 * a-strsea.ads, a-strsea.adb: Minor reformatting
36093 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36095 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36096 Adjust Max_Msg_Length to be clearly large enough.
36098 * fe.h: Define In_Same_Source_Unit
36100 * osint.adb: Add pragma Warnings Off to suppress warnings
36101 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36104 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36106 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36108 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36110 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36112 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36114 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36115 node. We now do generate them for gcc back end.
36117 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36120 * sinput-c.adb: Fix bad name in header.
36121 Add pragma Warnings Off to suppress aliasing warning.
36123 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36125 * snames.h, snames.ads, snames.adb: Add entry for pragma
36126 No_Strict_Aliasing.
36128 2004-03-05 Vincent Celier <celier@gnat.com>
36130 * prj-com.ads: Add hash table Files_Htable to check when a file name
36131 is already a source of another project.
36133 * prj-nmsc.adb (Record_Source): Before recording a new source, check
36134 if its file name is not already a source of another project. Report an
36137 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36138 source file name, call gnatpp with all the sources of the main project.
36140 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36143 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36144 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36145 /RUNTIME_SYSTEM=, converted to --RTS=
36146 /NOTABS, converted to -notabs
36148 2004-03-05 Pascal Obry <obry@gnat.com>
36150 * make.adb: Minor reformatting.
36152 2004-03-05 Ed Schonberg <schonberg@gnat.com>
36154 Part of implemention of AI-262.
36155 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36157 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36160 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36161 when component type is a partially constrained class-wide subtype.
36162 (Constrain_Discriminated_Type): If parent type has unknown
36163 discriminants, a constraint is illegal, even if full view has
36165 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36166 with unknown discriminants whose full view is a discriminated record.
36168 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36169 flag, to handle properly derivations of tagged types with unknown
36171 (Analyze_Package_Spec, Analyze_Package_Body): Install
36172 Private_With_Clauses before analyzing private part or body.
36174 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36175 Has_Discriminants can be true for a given type (documentation).
36177 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
36179 * s-restri.ads: Fix license (GPL->GMGPL).
36181 * s-tassta.adb: Minor reformatting.
36183 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36184 by calls to Exit_One_ATC_Level, since additional clean up is performed
36187 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36188 by calls to Exit_One_ATC_Level, since additional clean up is performed
36191 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36193 * trans.c: Reflect GCC changes to fix bootstrap problem.
36194 Add warning for suspicious aliasing unchecked conversion.
36196 2004-03-05 GNAT Script <nobody@gnat.com>
36198 * Make-lang.in: Makefile automatically updated
36200 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
36202 * ali.adb (Read_Instantiation_Instance): Do not modify the
36203 current_file_num when reading information about instantiations, since
36204 this corrupts files in later references.
36206 2004-03-02 Vincent Celier <celier@gnat.com>
36208 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36209 before checking if it is read-only.
36211 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36212 of SRC_DIRS and eliminate duplicates.
36214 * gprcmd.adb: Replace command "path" with command "path_sep" to return
36215 the path separator.
36216 (Usage): Document path_sep
36218 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36219 C++ compiler. No need for a script.
36220 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36221 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36224 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36225 where there are Ada sources.
36226 (Set_Ada_Paths): Only add to the include path the source dirs of project
36228 (Add_To_Path): Add the Display_Values of the directories, not their
36231 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36234 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36236 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36237 Value is canonicalized.
36238 (Language_Independent_Check): Do not copy Value to Display_Value when
36239 canonicalizing Value.
36241 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36242 path to find limited with cycles.
36243 (Parse_Single_Project): Use canonical cased path to find the end of a
36246 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36248 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36249 and not a child unit.
36251 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36252 appear in a with_clause.
36254 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36255 only happen in type_annotate mode, do not try to elaborate it.
36257 * exp_util.adb (Force_Evaluation): If expression is a selected
36258 component on the left of an assignment, use a renaming rather than a
36259 temporary to remove side effects.
36261 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36262 inlined instance body, which is analyzed before the end of the
36265 2004-03-02 Robert Dewar <dewar@gnat.com>
36267 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36268 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36270 * errout.ads, errout.adb: Implement new circuit for substitution of
36273 * sem_case.adb (Analyze_Choices): Place message properly when case is
36274 a subtype reference rather than an explicit range.
36276 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36278 2004-03-02 Doug Rupp <rupp@gnat.com>
36280 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36282 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36284 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36286 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36288 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36291 2004-02-25 Robert Dewar <dewar@gnat.com>
36293 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36294 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36295 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36296 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36297 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36298 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36299 the defining instance of the type to avoid aliasing problems.
36300 Fix copyright header. Fix bad comments in package header.
36302 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36304 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36306 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36307 rewritten as references when aliased through an address clause.
36309 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36310 whether call can be interpreted as an indirect call to the result of a
36311 parameterless function call returning an access subprogram.
36313 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36316 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36317 Unlock[_Entries], since this is now done by Service_Entries directly.
36319 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36321 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36322 Requeue_Call for better code readability. Change spec and update calls:
36323 PO_Service_Entries now unlock the PO on exit.
36324 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36325 PO_Service_Entries.
36327 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36329 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36331 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36333 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36334 protected subprogram call and analyzing the result of such expanding
36335 in case when the called protected subprogram is eliminated.
36337 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36340 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36342 * Makefile.in: Clean ups.
36344 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36346 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36347 protected operations if original subprogram is flagged as eliminated.
36348 (Expand_N_Subprogram_Body): For a protected operation, create
36349 discriminals for next operation before checking whether the operation
36352 * exp_ch9.adb (Expand_N_Protected_Body,
36353 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36354 for internal protected operations if the original subprogram is
36357 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36358 declared in a single protected object.
36360 2004-02-23 Vincent Celier <celier@gnat.com>
36362 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36363 case insensitive if file names are case insensitive, instead of a
36364 standard associative array.
36366 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36367 them as case insensitive on platforms where the file names are case
36370 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36371 project file has already been parsed that canonical path are compared.
36373 2004-02-23 Robert Dewar <dewar@gnat.com>
36375 * sinput-c.ads: Correct bad unit title in header
36377 * freeze.adb: Minor reformatting
36379 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36381 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36382 nonaddressable COMPONENT_REF that is removing padding that we are
36383 taking the address of, take the address of the padded record instead
36384 if item is variable size.
36386 2004-02-20 Robert Dewar <dewar@gnat.com>
36388 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36390 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36392 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36393 itype references for the constrained designated type of a component
36394 whose base type is already frozen.
36396 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36398 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36399 avoid GCC warnings.
36401 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36403 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36404 identifier for a phantom package that rewrites the formal package
36405 declaration with a box. The Add semantic decorations for the defining
36406 identifier from the original node (that represents the formal package).
36408 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36410 * Make-lang.in (ada/stamp-sdefault): Use the top level
36413 2004-02-19 Richard Henderson <rth@redhat.com>
36415 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36417 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36419 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36420 Scan_ALI can be used for multiple ALI files without reinitializing
36423 2004-02-18 Robert Dewar <dewar@gnat.com>
36425 * debug.adb: Minor reformatting.
36427 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36429 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36430 to zero if there is an address clause.
36432 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36434 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36436 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36438 * layout.adb (Layout_Component_List): Revise generation of call to
36439 discriminant-checking function to pass selections of all of the type's
36440 discriminants rather than just the variant-controlling discriminant.
36442 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36444 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36445 fail in the current setup and triggers spurious system error messages.
36446 Pretend it occurred and failed instead.
36448 2004-02-18 Vincent Celier <celier@gnat.com>
36450 * bld.adb: Mark FLDFLAGS as saved
36451 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36452 it is not the root project. Put each directory to be
36453 extended between double quotes to prevent it to be expanded on Windows.
36454 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36455 the project file. Set them back to their initial values if they have not
36456 been set in the project file.
36458 * gprcmd.adb: (Gprdebug, Debug): New global variables
36459 (Display_Command): New procedure
36460 (Usage): Document new command "linkopts"
36461 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36462 Implement new command "linkopts"
36463 Remove quotes that may be around arguments for "extend"
36464 Always call Normalize_Pathname with arguments formatted for the platform
36466 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36467 Change @echo to @$(display) in target clean to be able to clean silently
36469 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36471 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36474 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36475 = Extending_All when current project is an extending all project.
36477 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36478 set to True only for LINK command, after Unix switch -o.
36479 (Process_Arguments): Set Output_File_Expected to True for LINK command
36480 after Unix switch -o. When Output_File_Expected is True, never add an
36481 extension to a file name.
36483 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36484 option file name, only to the --for-linker= switch.
36485 (Option_File_Name): If option file name do not end with ".opt", append
36488 2004-02-18 GNAT Script <nobody@gnat.com>
36490 * Make-lang.in: Makefile automatically updated
36492 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36494 * Make-lang.in (stamp-sdefault): Do not depend on
36497 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36499 * config-lang.in: Disable Ada by default until probe logic for
36500 a bootstrap Ada compiler can be moved to the top level configure
36503 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36505 * decl.c (components_to_record): Don't claim that the internal fields
36506 we make to hold the variant parts are semantically addressable, because
36509 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36510 adjust the comment describing the modular type form when we can use it.
36511 (Install_PAT): Account for the Esiz renaming.
36513 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36514 sc_onstack context indication before raising the exception to which
36515 the signal is mapped. Allows better handling of later signals possibly
36516 triggered by the resumed user code if the exception is handled.
36518 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36520 * 5zinit.adb: Removed, no longer used.
36522 2004-02-12 Robert Dewar <dewar@gnat.com>
36524 * ali.adb: Remove separating space between parameters on R line. Makes
36525 format consistent with format used by the binder for Set_Globals call.
36527 * atree.ads, atree.adb: Minor reformatting (new function header format)
36529 * bindgen.adb: Add Run-Time Globals documentation section containing
36530 detailed documentation of the globals passed from the binder file to
36533 * gnatls.adb: Minor reformatting
36535 * init.c (__gnat_set_globals): Add note pointing to documentation in
36538 * lib-writ.ads, lib-writ.adb: Remove separating space between
36539 parameters on R line.
36540 Makes format consistent with format used by the binder for Set_Globals
36543 * osint.ads: Add 2004 to copyright notice
36546 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36547 Noticed during code reading, documentation issue only
36549 * usage.adb: Remove junk line for obsolete C switch
36550 Noticed during code reading
36552 2004-02-12 Vincent Celier <celier@gnat.com>
36554 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36555 extend for each directory, so that multiple /** directories are
36556 extended individually.
36557 (Recursive_Process): Set the default for LANGUAGES to ada
36559 * gprcmd.adb: Define new command "ignore", to do nothing.
36560 Implement new comment "path".
36562 * Makefile.generic: Suppress output when SILENT is set
36563 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36564 used, so that the correct compiler is invoked.
36565 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36566 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36568 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36570 * Makefile.in: Clean ups and remove obsolete targets.
36572 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36574 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36575 predicate declared in exp_util.
36577 * exp_util.adb: Add comments.
36579 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36580 visibility before compiling context of the subunit.
36582 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36583 value but the name is a procedure, do not attempt to analyze as a call,
36584 in order to obtain more telling diagnostics.
36586 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36587 'Access on parameterless function calls.
36588 (Normalize_Actuals): For a parameterless function call with missing
36589 actuals, defer diagnostic until resolution of enclosing call.
36591 * sem_util.adb (Wrong_Type): If the context type is an access to
36592 subprogram and the expression is a procedure name, suggest a missing
36595 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36596 Nathanael Nerode <neroden@gcc.gnu.org>
36600 Merge with libada-branch:
36601 * config-lang.in: Build libada only when ada is built.
36603 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36605 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36606 for a tagged type, verify that both formals have the same type.
36608 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36609 temporary when the formal is an in-parameter and the actual a possibly
36612 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36613 when expansion is disabled, to ensure proper name capture with
36614 overloaded literals. Condition can be of any boolean type, resolve
36617 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36618 renaming is for a formal subprogram with a default operator name, and
36619 there is a usable operator that is visible at the point of
36622 2004-02-09 Robert Dewar <dewar@gnat.com>
36624 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36625 rewrite to ignore errors in ali files, intended to allow tools downward
36626 compatibility with new versions of ali files.
36628 * ali.ads: Add new parameter Ignore_Errors
36630 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36631 duplicating the error message giving the file with restrictions.
36633 * debug.adb: Add debug flag I for gnatbind
36635 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36636 operators for the case where the operator is a defining operator.
36638 * exp_ch3.adb: Minor reformatting (new function spec format).
36640 * exp_ch4.adb: Add comment for previous change, and make minor
36641 adjustment to loop to always check for improper loop termination.
36642 Minor reformatting throughout (new function spec format).
36644 * gnatbind.adb: Implement -di debug flag for gnatbind
36646 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36648 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36650 * lib-load.adb: Fix bad assertion.
36651 Found by testing and code reading.
36652 Minor reformatting.
36654 * lib-load.ads: Minor reformatting.
36656 * lib-writ.adb: There is only one R line now.
36658 * lib-writ.ads: Add documentation on making downward compatible changes
36659 to ali files so old tools work with new ali files.
36660 There is only one R line now.
36661 Add documentation on format incompatibilities (with special GPS note)
36663 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36665 * par-load.adb: Minor reformatting
36667 * sem_ch8.adb: Fix to error message from last update
36668 Minor reformatting and restructuring of code from last update
36670 * par-prag.adb, snames.adb, snames.ads, snames.h,
36671 sem_prag.adb: Implement pragma Profile.
36673 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36676 * usage.adb: Add line for -gnatyN switch
36678 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36680 2004-02-09 Albert Lee <lee@gnat.com>
36682 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36684 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36686 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36689 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36690 is nested in an instance that is not frozen yet, to avoid
36691 order-of-elaboration problems in gigi.
36693 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36694 body the attribute is legal.
36696 2004-02-09 Robert Dewar <dewar@gnat.com>
36698 * s-rident.ads: Minor comment correction
36700 * targparm.adb: Remove dependence on uintp completely. There was
36701 always a bug in Make in that it called Targparm before initializing
36702 the Uint package. The old code appeared to get away with this, but
36703 the new code did not! This caused an assertion error in gnatmake.
36705 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36706 are indeed fully supported.
36708 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36710 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36712 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36714 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36715 with targetm.calls.promote_prototypes.
36717 2004-02-04 Robert Dewar <dewar@gnat.com>
36719 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36720 ali.ads, gprcmd.adb: Minor reformatting
36722 * bindgen.adb: Output restrictions string for new style restrictions
36725 * impunit.adb: Add s-rident.ads (System.Rident) and
36726 s-restri (System.Restrictions)
36728 * lib-writ.adb: Fix bug in writing restrictions string (last few
36731 * s-restri.ads, s-restri.adb: Change name Restrictions to
36732 Run_Time_Restrictions to avoid conflict with package name.
36733 Add circuit to read and acquire run time restrictions.
36735 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36737 * restrict.ads, restrict.adb: Use the new restriction
36738 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36740 * sem_prag.adb: No_Task_Attributes is a synonym of
36741 No_Task_Attributes_Package.
36743 * snames.ads, snames.adb: New entry for proper handling of
36744 No_Task_Attributes.
36746 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36747 (AI-00249) that supersedes the GNAT specific restriction
36748 No_Task_Attributes.
36750 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36753 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36754 body, an identifier may be wrapped in an unchecked conversion.
36756 2004-02-04 Vincent Celier <celier@gnat.com>
36758 * lib-writ.ads: Comment update for the W lines
36760 * bld.adb: (Expression): An empty string list is static
36762 * fname-uf.adb: Minor comment update
36764 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36766 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36767 restrictions on the target.
36769 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36771 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36774 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36776 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36778 2004-02-02 Vincent Celier <celier@gnat.com>
36780 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36781 comment before the usage.
36782 Gprcmd: Fail when command is not recognized.
36783 (Usage): Document command "prefix"
36785 * g-md5.adb (Digest): Process last block.
36786 (Update): Do not process last block. Store remaining characters and
36789 * g-md5.ads (Update): Document that several call to update are
36790 equivalent to one call with the concatenated string.
36791 (Context): Add fields to allow new Update behaviour.
36793 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36794 defaulted to False.
36795 When May_Fail is True and no existing file can be found, return No_File.
36797 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36800 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36801 spec file name instead on the W line.
36803 2004-02-02 Robert Dewar <dewar@gnat.com>
36805 * ali.adb: Read and acquire info from new format restrictions lines
36807 * bcheck.adb: Add circuits for checking restrictions with parameters
36809 * bindgen.adb: Output dummy restrictions data
36810 To be changed later
36812 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36813 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36814 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36815 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36816 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36818 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36819 the warning message on access to possibly uninitialized variable S)
36820 Minor changes for new restrictions handling.
36822 * gnatbind.adb: Minor reformatting
36823 Minor changes for new restrictions handling
36824 Move circuit for -r processing here from bcheck (cleaner)
36826 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36828 * lib-writ.adb: Output new format restrictions lines
36830 * lib-writ.ads: Document new R format lines for new restrictions
36833 * s-restri.ads/adb: New files
36835 * Makefile.rtl: Add entry for s-restri.ads/adb
36837 * par-ch3.adb: Fix bad error messages starting with upper case letter
36840 * restrict.adb: Major rewrite throughout for new restrictions handling
36841 Major point is to handle restrictions with parameters
36843 * restrict.ads: Major changes in interface to handle restrictions with
36844 parameters. Also generally simplifies setting of restrictions.
36846 * snames.ads/adb: New entry for proper handling of No_Requeue
36848 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36849 restriction counting.
36850 Other minor changes for new restrictions handling
36852 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36853 Restriction_Warnings now allows full parameter notation
36854 Major rewrite of Restrictions for new restrictions handling
36856 2004-02-02 Javier Miranda <miranda@gnat.com>
36858 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36859 syntax rule for object renaming declarations.
36860 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36861 component definitions.
36863 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36865 (Array_Type_Declaration): Give support to access components. In addition
36866 it was also modified to reflect the name of the object in anonymous
36867 array types. The old code did not take into account that it is possible
36868 to have an unconstrained anonymous array with an initial value.
36869 (Check_Or_Process_Discriminants): Allow access discriminant in
36871 (Process_Discriminants): Allow access discriminant in non-limited types
36872 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36873 node. Change Ada0Y to Ada 0Y in comments
36875 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36876 equality operators.
36877 Change Ada0Y to Ada 0Y in comments
36879 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36880 renamings Change Ada0Y to Ada 0Y in comments
36882 * sem_type.adb (Find_Unique_Type): Give support to the equality
36883 operators for universal access types
36884 Change Ada0Y to Ada 0Y in comments
36886 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36888 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36890 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36891 Change Ada0Y to Ada 0Y in comments
36893 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36894 component definition and object renaming nodes
36895 Change Ada0Y to Ada 0Y in comments
36897 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36899 * restrict.adb: Use the new restriction identifier
36900 No_Requeue_Statements instead of the old No_Requeue for defining the
36901 restricted profile.
36903 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36904 No_Requeue_Statements.
36906 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36907 that supersedes the GNAT specific restriction No_Requeue. The later is
36908 kept for backward compatibility.
36910 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36912 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36913 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36914 pragma and fix incorrect ones.
36916 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36917 warning if the pragma is redundant.
36919 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36921 * 5staprop.adb: Add missing 'constant' keywords.
36923 * Makefile.in: use consistent value for SYMLIB on
36924 platforms where libaddr2line is supported.
36926 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36928 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36931 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36933 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36934 handlers in the environment thread. This allows proper propagation of
36935 an exception on stack overflows in this thread even when the builtin
36936 ABI stack-checking scheme is used without support for a stack reserve
36939 * utils.c (create_field_decl): Augment the head comment about bitfield
36940 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36941 here, because the former is not accurate enough at this point.
36942 Let finish_record_type decide instead.
36943 Don't make a bitfield if the field is to be addressable.
36944 Always set a size for the field if the record is packed, to ensure the
36945 checks for bitfield creation are triggered.
36946 (finish_record_type): During last pass over the fields, clear
36947 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36948 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36949 from DECL_BIT_FIELD.
36951 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36953 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36954 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36955 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36957 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36959 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36961 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36962 (ZCX_By_Default): Likewise.
36963 (Front_End_ZCX_Support): Likewise.
36965 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36966 (Initialize_Lock): Mark Level unreferenced.
36967 (Sleep): Mark Reason unreferenced.
36968 (Timed_Sleep): Likewise.
36969 (Wakeup): Likewise.
36970 (Exit_Task): Use Result.
36971 (Check_No_Locks): Mark Self_ID unreferenced.
36973 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36974 (Bound_Thread_Attributes): Make Sproc constant.
36975 (New_Bound_Thread_Attributes): Likewise.
36977 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36979 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36980 one-dimensional array an slice assignments, when component type is
36983 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36984 component type is controlled, and control_actions are in effect, use
36985 TSS procedure rather than generating inline code.
36987 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36988 arrays with controlled components.
36990 2004-01-26 Vincent Celier <celier@gnat.com>
36992 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36993 command line for the non VMS case.
36995 * gnatlink.adb (Process_Binder_File): When building object file, if
36996 GNU linker is used, put all object paths between quotes, to prevent ld
36997 error when there are unusual characters (such as '!') in the paths.
36999 * Makefile.generic: When there are sources in Ada and the main is in
37000 C/C++, invoke gnatmake with -B, instead of -z.
37002 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
37003 from VMS_Conversion.
37004 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
37005 specification of argument file on the command line.
37007 2004-01-26 Bernard Banner <banner@gnat.com>
37009 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
37011 2004-01-26 Ed Schonberg <schonberg@gnat.com>
37013 * snames.adb: Update copyright notice.
37014 Add info on slice assignment for controlled arrays.
37016 2004-01-23 Robert Dewar <dewar@gnat.com>
37018 * exp_aggr.adb: Minor reformatting
37020 * exp_ch9.adb: Minor code clean up
37022 Fix bad character in comment
37025 * targparm.adb (Get_Target_Parameters): Give clean abort error on
37026 unexpected end of file, along with more detailed message.
37028 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37030 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
37033 * decl.c (copy_alias_set): New function.
37034 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
37036 2004-01-23 Doug Rupp <rupp@gnat.com>
37038 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
37039 lib$${file} in case subsequent character is not a separator.
37041 2004-01-23 Vincent Celier <celier@gnat.com>
37043 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37044 when the GCC version is at least 3.
37046 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37047 Remove all "Opt.", to prepare for opt split
37049 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37050 Extends_All. Set to True when the project parsed is an extending all
37051 project. Fails for importing an extending all project only when the
37052 imported project is an extending all project.
37053 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37054 depending on the value of Extends_All returned.
37056 * prj-proc.adb (Process): Check that no project shares its object
37057 directory with a project that extends it, directly or indirectly,
37058 including a virtual project.
37059 Check that no project extended by another project shares its object
37060 directory with another also extended project.
37062 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37063 Kind = N_With_Clause
37065 * prj-tree.ads: Minor reformatting
37066 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37068 2004-01-23 Ed Schonberg <schonberg@gnat.com>
37070 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37071 applies to a type with an incomplete view, use full view in Name of
37072 clause, for consistency with uses of Get_Attribute_Definition_Clause.
37074 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
37076 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37077 SCHED_RR, since other values are not supported by this policy.
37078 (Initialize): Move initialization of mutex attribute to package
37079 elaboration, to prevent early access to this variable.
37081 * Makefile.in: Remove mention of Makefile.adalib, unused.
37083 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37084 1ssecsta.ads: Removed, unused.
37086 2004-01-21 Javier Miranda <miranda@gnat.com>
37088 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37089 entity if already built in the current scope.
37091 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37092 reminder in internal scopes. Required for nested limited aggregates.
37094 2004-01-21 Doug Rupp <rupp@gnat.com>
37096 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37097 VMS. Replace all occurences of libgnat- and libgnarl- with
37098 libgnat$(hyphen) and libgnarl$(hyphen).
37099 Fixed shared library build problem on VMS.
37101 2004-01-21 Robert Dewar <dewar@gnat.com>
37103 * mlib-prj.adb: Minor reformatting
37105 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
37107 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37108 'constant' keywords for declaration of pointers that are not modified.
37110 * exp_pakd.adb: Fix English in comment.
37112 2004-01-21 Ed Schonberg <schonberg@gnat.com>
37115 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37116 copy all attributes of the parent, including the foreign language
37119 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
37122 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37123 for 'delay until' statement.
37125 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
37127 * Make-lang.in: Replace $(docdir) with doc.
37128 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37129 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37130 to use consistent MAKEINFO rule.
37131 (ada.man, ada.srcman): Dummy entry.
37132 (ADA_INFOFILES): Define.
37133 (ada.info, ada.srcinfo): New rules.
37135 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
37137 * utils.c: Update copyright notice, missed in previous change.
37139 2004-01-19 Vincent Celier <celier@gnat.com>
37141 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37142 args if Bind is True. Set First_ALI, if not already done.
37143 (Build_Library): For Stand Alone Libraries, extract from one ALI file
37144 an eventual --RTS switch, for gnatbind, and all backend switches +
37145 --RTS, for linking.
37147 2004-01-19 Robert Dewar <dewar@gnat.com>
37149 * sem_attr.adb, memtrack.adb: Minor reformatting
37151 2004-01-19 Ed Schonberg <schonberg@gnat.com>
37153 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37154 that rename enumeration literals. This is properly done in sem_eval.
37156 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37157 to functions that rename enumeration literals.
37159 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37160 functions that rename enumeration literals.
37162 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
37164 * Make-lang.in (utils.o): Depend on target.h.
37165 * utils.c: Include target.h.
37166 (process_attributes): Use targetm.have_named_sections instead
37167 of ASM_OUTPUT_SECTION_NAME.
37169 2004-01-16 Andreas Jaeger <aj@suse.de>
37171 * Makefile.in: Add $(DESTDIR).
37173 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
37175 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37176 also when not defining if a Size clause applies. That information is
37179 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37181 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37182 symbolic links for the shared gnat run time when needed.
37184 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
37186 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37187 for writing, and terminate with an error message if not.
37189 2004-01-15 Ed Schonberg <schonberg@gnat.com>
37191 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37192 warning on an access to subprogram in an instance, when the target
37193 type is declared in the same generic unit.
37194 (Eval_Attribute): If 'access is known to fail accessibility check,
37195 rewrite as a raise statement.
37197 2004-01-15 GNAT Script <nobody@gnat.com>
37199 * Make-lang.in: Makefile automatically updated
37201 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
37203 * Make-lang.in (ada.srcextra): Dummy entry.
37205 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
37207 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37209 2004-01-13 Ed Schonberg <schonberg@gnat.com>
37211 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37212 components that are initialized with aggregates.
37214 2004-01-13 Vincent Celier <celier@gnat.com>
37216 * gnatlink.adb (Process_Binder_File): To find directory of shared
37217 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37218 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37220 * make.adb (Gnatmake): If GCC version is at least 3, link with
37221 -shared-libgcc, when there is at least one shared library project.
37223 * opt.ads (GCC_Version): New integer constant.
37225 * adaint.c (get_gcc_version): New function.
37227 2004-01-13 Robert Dewar <dewar@gnat.com>
37229 * sem_dist.adb, sem_res.adb, sem_util.adb,
37230 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37231 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37233 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37235 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37236 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37239 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37241 * misc.c: Remove trailing spaces.
37242 Update copyright notice missed in previous change.
37245 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37248 * Makefile.generic: Update copyright.
37249 Add license notice.
37251 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37252 of prefix/share/make.
37254 * Makefile.prolog: Update copyright.
37255 Add license notice.
37257 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37259 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37260 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37261 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37264 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37267 2004-01-12 Javier Miranda <miranda@gnat.com>
37269 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37270 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37271 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37272 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37273 Component_Definition node.
37275 2004-01-12 Ed Falis <falis@gnat.com>
37277 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37279 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37281 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37283 2004-01-12 Bernard Banner <banner@gnat.com>
37285 * Makefile.in: map 86numaux to a-numaux for x86_64
37287 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37289 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37290 generated to rename a generic actual, go to the actual itself, the
37291 subtype is not a user-visible entity.
37293 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37294 part is a private subtype, reset the visibility of its full view, if
37295 any, to be consistent.
37298 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37299 to use a generic package G as a formal package for another generic
37302 2004-01-12 Robert Dewar <dewar@gnat.com>
37304 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37306 * usage.adb: Remove mention of obsolete -gnatwb switch
37307 Noticed during code reading
37309 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37311 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37313 2004-01-12 GNAT Script <nobody@gnat.com>
37315 * Make-lang.in: Makefile automatically updated
37317 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37319 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37321 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37323 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37325 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37327 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37328 Update comment and copyright date.
37329 * stamp-xgnatug: Delete.
37331 2004-01-05 Robert Dewar <dewar@gnat.com>
37333 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37334 be modified by the binder generated main program if the -D switch is
37337 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37338 imported functions (since now we expect this to be done for imported
37341 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37342 Minor reformatting throughout
37344 * 5zinit.adb: Minor reformatting
37345 Add 2004 to copyright date
37346 Minor changes to avoid -gnatwa warnings
37347 Correct some instances of using OR instead of OR ELSE (noted while
37348 doing reformatting)
37350 * sprint.adb: Minor updates to avoid -gnatwa warnings
37352 * s-secsta.ads, s-secsta.adb:
37353 (SS_Get_Max): New function to obtain high water mark for ss stack
37354 Default_Secondary_Stack is not a constant since it may be modified by
37355 the binder generated main program if the -D switch is used.
37357 * switch-b.adb: New -Dnnn switch for binder
37360 Make -gnatg imply all warnings currently in -gnatwa
37362 * vms_conv.adb: Minor reformatting
37363 Add 2004 to copyright notice
37364 Add 2004 to printed copyright notice
37366 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37367 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37368 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37369 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37370 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37371 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37372 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37373 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37374 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37375 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37376 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37377 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37378 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37379 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37380 checks.adb, clean.adb, cstand.adb, einfo.ads,
37381 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37382 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37383 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37384 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37385 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37386 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37387 Minor reformatting and code clean ups.
37388 Minor changes to prevent -gnatwa warnings
37390 * ali.adb: Minor reformatting and cleanup of code
37391 Acquire new SS indication of secondary stack use from ali files
37393 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37394 (since now we expect this to be done for imported functions)
37396 * bindgen.adb: Generate call to modify default secondary stack size if
37399 * bindusg.adb: Add line for new -D switch
37401 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37402 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37403 Add circuitry for both records and arrays to avoid gigi
37404 processing if the type involved has non-bit-aligned components
37406 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37407 N_String_Literal node always references an E_String_Literal_Subtype
37408 entity. This may not be true in the future.
37409 (Possible_Bit_Aligned_Component): Move processing of
37410 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37412 * exp_ch6.adb (Expand_Thread_Body): Pick up
37413 Default_Secondary_Stack_Size as variable so that we get value modified
37414 by possible -Dnnn binder parameter.
37416 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37417 (Type_May_Have_Bit_Aligned_Components): New function.
37419 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37420 (Type_May_Have_Bit_Aligned_Components): New function.
37422 * fe.h: (Set_Identifier_Casing): Fix prototype.
37423 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37424 Minor reformatting.
37426 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37427 importing constant atomic/volatile objects.
37428 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37429 unless explicit Pure_Function pragma given, to avoid insidious bug of
37430 call to non-pure imported function getting eliminated.
37432 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37433 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37434 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37435 Add 2004 to printed copyright notice
37437 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37440 * Makefile.rtl: Add entry for g-sestin.o
37441 g-sestin.ads: New file.
37443 * mdll.adb: Minor changes to avoid -gnatwa warnings
37445 * mlib-tgt.adb: Minor reformatting
37447 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37448 New switch Sec_Stack_Used (GNAT, GNATBIND)
37449 Make Default_Secondary_Stack_Size a variable instead of a constant,
37450 so that it can be modified by the new -Dnnn bind switch.
37452 * rtsfind.adb (Load_Fail): Give full error message in configurable
37453 run-time mode if all_errors mode is set. This was not done in the case
37454 of a file not found, which was an oversight.
37455 Note if secondary stack unit is used by compiler.
37457 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37458 ineffective elaborate all pragmas on non-visible packages (this
37459 happened when a renamed subprogram was called). Now the elaborate all
37460 always goes on the package containing the renaming rather than the one
37461 containing the renamed subprogram.
37463 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37464 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37466 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37467 has an Etype that references an E_String_Literal.
37468 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37469 always references an E_String_Literal_Subtype entity. This may not
37470 be true in the future.
37472 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37475 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37478 2004-01-05 Ed Falis <falis@gnat.com>
37480 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37483 2004-01-05 Vincent Celier <celier@gnat.com>
37485 * bld.adb: Minor comment updates
37486 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37489 * make.adb (Gnatmake): Special process for files to compile/check when
37490 -B is specified. Fail when there are only foreign mains in attribute
37491 Main of the project file and -B is not specified. Do not skip bind/link
37492 steps when -B is specified.
37494 * makeusg.adb: Document new switch -B
37496 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37498 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37500 * vms_data.ads: Add new GNAT PRETTY qualifier
37501 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37503 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37505 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37508 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37509 Set_Identifier_Casing.
37511 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37512 has size that overflows.
37514 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37516 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37517 -gnatwa warning on static condition.
37519 2004-01-05 Doug Rupp <rupp@gnat.com>
37521 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37523 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37525 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37526 all attributes, including read-only attribute.
37528 2004-01-05 Pascal Obry <obry@gnat.com>
37530 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37531 library naming scheme.
37533 * mlib-prj.adb (Build_Library): Generate different names for the static
37534 or dynamic version of the GNAT runtime. This is needed to support the
37535 new shared library naming scheme.
37536 (Process_Binder_File): Add detection of shared library in binder file
37537 based on the new naming scheme.
37539 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37540 scheme for the shared runtime libraries.
37543 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37545 (install-gnatlib): Do not create symlinks for shared libraries.
37546 (gnatlib-shared-default): Idem.
37547 (gnatlib-shared-dual-win32): New target. Not used for now as the
37548 auto-import feature does not support arrays/records.
37549 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37550 (gnatlib-shared-vms): Fix shared runtime libraries names.
37552 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37553 dependent runtime shared library name.
37555 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37557 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37560 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37562 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37563 protected objects when allocator has a subtype indication, not a
37564 qualified expression. Note that qualified expressions may have to be
37565 checked when limited aggregates are implemented.
37567 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37568 pure, emit warning.
37569 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37570 subprogram is imported, remove warning.
37572 2004-01-05 Geert Bosch <bosch@gnat.com>
37574 * s-poosiz.adb: Update copyright notice.
37575 (Allocate): Use Task_Lock to protect against concurrent access.
37576 (Deallocate): Likewise.
37578 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37580 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37583 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37585 * gnat_ug.texi: Force a CVS commit by updating copyright.
37586 * gnat_ug_vxw.texi: Regenerate.
37587 * gnat_ug_wnt.texi: Regenerate.
37588 * gnat_ug_vms.texi: Regenerate.
37589 * gnat_ug_unx.texi: Regenerate.
37591 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37593 * trans.c: Remove uses of "register" specifier in
37594 declarations of local variables.
37596 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37598 * stamp-xgnatug: New stamp file.
37599 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37600 (ada/doctools/xgnatug): Add $(build_exeext).
37601 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37602 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37604 2003-12-17 Ed Falis <falis@gnat.com>
37606 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37609 * a-exextr.adb: Add context clause for
37610 Ada.Exceptions.Last_Chance_Handler.
37612 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37614 * cstand.adb (Create_Standard): Change the way how the declaration of
37615 the Duration type is created (making it the same way as it is for all
37616 the other standard types).
37618 2003-12-17 Robert Dewar <dewar@gnat.com>
37620 * s-crtl.ads: Fix header format
37621 Change Pure to Preelaborate
37623 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37625 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37626 the expression type only if it is declared in the current unit.
37628 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37629 are universal and already analyzed, as can occur in constrained
37630 subcomponents that depend on discriminants, when one constraint is a
37633 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37634 type Any_Fixed is legal as the argument of a conversion, if only one
37635 fixed-point type is in context.
37637 2003-12-17 GNAT Script <nobody@gnat.com>
37639 * Make-lang.in: Makefile automatically updated
37641 2003-12-15 Robert Dewar <dewar@gnat.com>
37643 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37646 2003-12-15 Vincent Celier <celier@gnat.com>
37648 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37649 (Gnatchop): Do not set failure status when reporting the number of
37652 2003-12-15 Doug Rupp <rupp@gnat.com>
37654 * s-ctrl.ads: New file.
37656 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37658 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37659 (GNATBIND_OBJS): Add ada/s-crtl.o.
37661 * Makefile.in [VMS]: Clean up ifeq rules.
37663 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37664 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37665 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37666 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37667 s-tasdeb.adb: Update copyright.
37668 Import System.CRTL.
37669 Make minor modifications to use System.CRTL declared functions instead
37670 of importing locally.
37672 2003-12-15 GNAT Script <nobody@gnat.com>
37674 * Make-lang.in: Makefile automatically updated
37676 2003-12-11 Ed Falis <falis@gnat.com>
37678 * 5zinit.adb: Clean up.
37680 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37681 to __gnat_map_signal, imported from init.c to support
37682 signal -> exception mappings that depend on the vxWorks version.
37685 Created and exported __gnat_map_signal to support signal -> exception
37686 mapping that is dependent on the VxWorks version.
37687 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37689 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37691 * 5wosinte.ads: Link with -mthreads switch.
37693 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37695 * init.c (__gnat_install_handler [NetBSD]): Set
37696 __gnat_handler_installed, as done on all other platforms.
37697 Remove duplicated code.
37699 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37701 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37703 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37705 * sinfo.ads: Fix inconsistent example code in comment.
37707 2003-12-11 Robert Dewar <dewar@gnat.com>
37709 * a-tiinau.adb: Add a couple of comments
37711 * sem_ch3.adb: Minor reformatting
37714 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37715 Minor reformatting throughout
37717 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37719 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37720 bounds of a loop, create a separate block in order to generate proper
37721 cleanup actions to prevent memory leaks.
37723 * sem_res.adb (Resolve_Call): After a call to
37724 Establish_Transient_Scope, the call may be rewritten and relocated, in
37725 which case no further processing is needed.
37727 * sem_util.adb: (Wrong_Type): Refine previous fix.
37728 Fixes ACATS regressions.
37731 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37734 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37736 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37737 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37740 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37743 2003-12-08 Robert Dewar <dewar@gnat.com>
37745 * 7sintman.adb: Minor reformatting
37747 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37748 standard linker options to get standard libraries linked. We now plan
37749 to provide dummy versions of these libraries to match the appropriate
37750 configurable run-time (e.g. if a library is not needed at all, provide
37751 a dummy empty library).
37753 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37754 options (-L parameters and standard libraries). What we plan to do is
37755 to provide dummy libraries where the libraries are not required.
37757 * gnatbind.adb: Minor comment improvement
37759 2003-12-08 Javier Miranda <miranda@gnat.com>
37761 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37762 aggregate in the parent. Otherwise constants with limited aggregates
37763 are not supported. Add new formal to pass the component type (Ctype).
37764 It is required to call the corresponding IP subprogram in case of
37765 default initialized components.
37766 (Gen_Assign): In case of default-initialized component, generate a
37767 call to the IP subprogram associated with the component.
37768 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37769 of aggregate with default initialized components.
37770 (Has_Default_Init_Comps): Improve implementation to recursively check
37771 all the present expressions.
37773 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37774 to indicate that the initialization call corresponds to a
37775 default-initialized component of an aggregate.
37776 In case of default initialized aggregate with tasks this parameter is
37777 used to generate a null string (this is just a workaround that must be
37778 improved later). In case of discriminants, this parameter is used to
37779 generate a selected component node that gives access to the discriminant
37782 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37783 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37784 allocated aggregates with default-initialized components.
37786 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37787 the box notation is used in positional aggregates.
37789 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37791 * lib.ads: Fix typo in comment
37793 2003-12-08 Vincent Celier <celier@gnat.com>
37795 * prj.adb (Project_Empty): New component Unkept_Comments
37796 (Scan): Remove procedure; moved to Prj.Err.
37798 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37799 (Scan): Remove procedure; moved to Prj.Err.
37801 * prj-dect.adb: Manage comments for the different declarations.
37803 * prj-part.adb (With_Record): New component Node
37804 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37805 Set the scanner to return ends of line and comments as tokens, if
37806 Store_Comments is True.
37807 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37808 comments are associated with these nodes. Store the node IDs in the
37810 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37812 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37813 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37814 current project. Call Tree.Restore afterwards. Set the various nodes
37815 for comment storage (Next_End, End_Of_Line, Previous_Line,
37818 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37819 defaulted to False.
37821 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37822 to False. When Truncated is True, truncate the string, never go to the
37824 (Write_End_Of_Line_Comment): New procedure
37825 (Print): Process comments for nodes N_With_Clause,
37826 N_Package_Declaration, N_String_Type_Declaration,
37827 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37828 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37829 Process nodes N_Comment.
37831 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37832 without comments and there are some comments, set the flag
37833 Unkept_Comments to True.
37834 (Scan): If there are comments, set the flag Unkept_Comments to True and
37835 clear the comments.
37836 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37837 (Next_End_Nodes: New table
37838 (Comment_Zones_Of): New function
37839 (Scan): New procedure; moved from Prj. Accumulate comments in the
37840 Comments table and set end of line comments, comments after, after end
37842 (Add_Comments): New procedure
37843 (Save, Restore, Seset_State): New procedures
37844 (There_Are_Unkept_Comments): New function
37845 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37846 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37848 (First_Comment_After, First_Comment_After_End): New functions
37849 (First_Comment_Before, First_Comment_Before_End): New functions
37850 (Next_Comment): New function
37851 (End_Of_Line_Comment, Follows_Empty_Line,
37852 Is_Followed_By_Empty_Line): New functions
37853 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37854 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37855 (Set_Next_Comment): New procedure
37856 (Default_Project_Node): Associate comment before if the node can store
37859 * scans.ads (Token_Type): New enumeration value Tok_Comment
37860 (Comment_Id): New global variable
37862 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37863 defaulted to False.
37864 (Scan): Store position of start of comment. If comments are tokens, set
37865 Comment_Id and set Token to Tok_Comment when scanning a comment.
37866 (Set_Comment_As_Token): New procedure
37868 * sinput-p.adb: Update Copyright notice
37869 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37870 that no longer exists.
37872 2003-12-08 Javier Miranda <miranda@gnat.com>
37874 * sem_aggr.adb: Add dependence on Exp_Tss package
37875 Correct typo in comment
37876 (Resolve_Aggregate): In case of array aggregates set the estimated
37877 type of the aggregate before calling resolve. This is needed to know
37878 the name of the corresponding IP in case of limited array aggregates.
37879 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37880 in case of default initialized array components.
37882 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37883 types. Required to give support to limited aggregates in generic
37886 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37888 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37889 inlined body functions like an instantiation.
37890 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37891 until bounds are analyzed, to diagnose premature use of type.
37893 * sem_util.adb (Wrong_Type): Improve error message when the type of
37894 the expression is used prematurely.
37896 2003-12-08 GNAT Script <nobody@gnat.com>
37898 * Make-lang.in: Makefile automatically updated
37900 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37902 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37903 they are automatically generated by Make-lang.in and cause nothing but
37904 maintenance troubles.
37906 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37908 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37909 version of this unit).
37911 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37913 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37914 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37915 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37916 the body of System.Interrupt_Management common to several targets.
37917 Update copyright notice when appropriate.
37919 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37922 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37923 to ensure that the kernel fills in the interrupted context structure
37924 before calling a signal handler, which is necessary to be able to
37925 unwind past it. Update the copyright notice.
37927 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37929 * a-elchha.ads: New file.
37931 * a-elchha.adb: New default last chance handler. Contents taken from
37932 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37934 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37935 is moved to a-elchha.adb to provide a target-independent default last
37938 * Makefile.rtl: Add a-elchha.o
37940 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37942 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37944 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37945 declared in an instance, do not inline the call if the instance is not
37946 frozen yet, to prevent order of elaboration problems.
37948 * sem_prag.adb: Add comments for previous fix.
37950 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37952 * g-table.adb: Use the right variable in Set_Item.
37953 Update copyright notice.
37955 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37957 * Makefile.in: Remove unused rules.
37959 2003-12-05 Vincent Celier <celier@gnat.com>
37961 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37962 -nostdlib. Not needed here after all.
37964 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37967 * adaint.h, adaint.c, g-os_lib.ads:
37968 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37969 on some platforms (including FreeBSD), it is a 64 bit value.
37970 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37972 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37974 * gnatvsn.ads (Library_Version): Now contain only the relevant
37976 (Verbose_Library_Version): New constant.
37978 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37979 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37980 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37982 * gnatlbr.adb: Clean up: replace Library_Version by
37983 Verbose_Library_Version.
37985 * make.adb, lib-writ.adb, exp_attr.adb:
37986 Clean up: replace Library_Version by Verbose_Library_Version.
37988 * 5lintman.adb: Removed.
37991 Update and simplify computation of LIBRARY_VERSION.
37992 Fix computation of GSMATCH_VERSION.
37993 5lintman.adb is no longer used: replaced by 7sintman.adb.
37995 2003-12-03 Robert Dewar <dewar@gnat.com>
37998 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37999 name. Modified to consider small non-bit-packed arrays as troublesome
38000 and in need of component-by-component assigment expansion.
38002 2003-12-03 Vincent Celier <celier@gnat.com>
38004 * lang-specs.h: Process nostdlib as nostdinc
38006 * back_end.adb: Update Copyright notice
38007 (Scan_Compiler_Arguments): Process -nostdlib directly.
38009 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
38012 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
38013 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
38014 included in HIE_NONE_TARGET_PAIRS.
38016 2003-12-03 Ed Schonberg <schonberg@gnat.com>
38019 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
38020 is legal in an instance, because legality is cheched in the template.
38023 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
38024 appplied to an unchecked conversion of a formal parameter.
38027 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
38030 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
38032 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
38033 routines. The second one is new functionality to deal with backtracing
38034 through signal handlers.
38035 (unwind): Split into the two separate subroutines above.
38036 Update the documentation, and deal properly with sizeof (REG) different
38037 from sizeof (void*).
38039 2003-12-01 Nicolas Setton <setton@act-europe.fr>
38041 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38042 so that the debugger can reliably access the value of the parameter,
38043 and therefore is able to display the exception name when an exception
38044 breakpoint is reached.
38046 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
38048 * fmap.adb: Fix typo in warning message.
38050 * g-socket.ads, g-socket.adb: Make Free a visible instance of
38051 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38053 2003-12-01 Vincent Celier <celier@gnat.com>
38055 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38057 (Build_Library): Get the switches only if Default_Switches is declared
38060 2003-12-01 Ed Schonberg <schonberg@gnat.com>
38062 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38063 actuals that are indexed components, reanalyze actual to ensure that
38064 packed array references are properly expanded.
38066 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38067 attempted assignment to a discriminant.
38069 2003-12-01 Robert Dewar <dewar@gnat.com>
38071 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38074 * switch-c.adb: Minor reformatting of comments
38076 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38078 * Makefile.in: Clean ups.
38080 2003-12-01 GNAT Script <nobody@gnat.com>
38082 * Make-lang.in: Makefile automatically updated
38084 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38086 * 5wsystem.ads: Disable zero cost exception, not ready yet.
38088 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
38090 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38091 to force serialization.
38093 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
38095 * g-socket.ads, g-socket.adb:
38096 Clarify documentation of function Stream. Introduce a Free procedure
38097 to release the returned Stream once it becomes unused.
38099 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38101 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
38103 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38104 since NT 4 cannot handle timeout values that are too large,
38105 e.g. DWORD'Last - 1.
38107 2003-11-26 Ed Schonberg <schonberg@gnat.com>
38110 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38111 in procedure calls and whose expansion must be deferred.
38113 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38117 (Build_Derived_Array_Type): Create operator for unconstrained type
38118 if ancestor is unconstrained.
38120 2003-11-26 Vincent Celier <celier@gnat.com>
38122 * make.adb (Project_Object_Directory): New global variable
38123 (Change_To_Object_Directory): New procedure
38124 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38125 of Change_Dir directly. Do not change working directory to object
38126 directory of main project after each compilation.
38127 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38129 Change to object directory of main project before binding step.
38130 (Initialize): Initialize Project_Object_Directory to No_Project
38133 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38134 binding a Stand-Alone Library.
38136 * output.adb: Update Copyright notice
38137 (Write_Char): Output buffer when full
38139 2003-11-26 Robert Dewar <dewar@gnat.com>
38141 * sem_ch13.adb: (Check_Size): Reset size if size is too small
38144 (Check_Size): Fix documentation to include bit-packed array case
38146 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38148 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38150 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38152 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
38155 * utils.c (init_gigi_decls): Change name of built-in setjmp to
38156 __builtin_setjmp, since this is apparently needed by recent
38159 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38161 * adadecode.c: Only include ctype.h if not IN_GCC.
38162 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38164 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
38167 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38168 signals and interrupts.
38170 * 5zintman.ads: New File.
38172 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38173 add exception signals to the set of unmasked signals.
38176 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38177 between signals and interrupts.
38178 Add to Unblocked_Signal_Mask the set of signals that are in
38182 Adding a check to see whether the Interrupt_ID we want to unmask is in
38183 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38184 reason is that the index type of the Keep_Unmasked array is not always
38185 Interrupt_ID; it may be a subtype of Interrupt_ID.
38187 2003-11-24 Gary Dismukes <dismukes@gnat.com>
38190 (Remove_Side_Effects): Condition constantness of object created for a
38191 an unchecked type conversion on the constantness of the expression
38192 to ensure the correct value for 'Constrained when passing components
38193 of view-converted class-wide objects.
38195 2003-11-24 Robert Dewar <dewar@gnat.com>
38197 * par-load.adb (Load): Improve handling of misspelled and missing units
38198 Removes several cases of compilation abandoned messages
38200 * lib.adb: (Remove_Unit): New procedure
38202 * lib.ads: (Remove_Unit): New procedure
38204 * lib-load.adb: Minor reformatting
38206 2003-11-24 Vincent Celier <celier@gnat.com>
38209 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38210 (Marking_Label): Label to mark processed source files. Incremented for
38212 (Gnatmake): Increase Marking_Labet for each executable
38213 (Is_Marked): Compare against marking label
38214 (Mark): Mark with marking label
38216 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
38219 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38222 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38223 (rts-cert): build a single relocatable object for the run-time lib.
38226 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38229 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38232 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38234 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38235 can not use it as before (that is, as a variable) when dumping it into
38236 the tree file. Add a local variable to store the result of this
38237 function and to be used as the string to be written into the tree.
38239 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38242 * sinput.adb (Source_First, Source_Last): In case of
38243 Internal_Source_File, replace returning attributes of
38244 Internal_Source_Ptr (which is wrong) with returning attributes of
38247 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38250 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38251 used for implicit concatenation operators.
38255 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38256 task bodies that are in the scope of a Suppress pragma.
38257 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38259 * sinfo.ads, sinfo.adb:
38260 New flag No_Elaboration_Check on function/procedure calls, to properly
38261 suppress checks on calls in task bodies that are within a local suppress
38265 (Expand_Concatenate_Other): Use the proper integer type for the
38266 expression for the upper bound, to avoid universal_integer computations
38269 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38271 * .cvsignore: Delete.
38273 2003-11-21 Andreas Schwab <schwab@suse.de>
38275 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38277 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38279 * 5wsystem.ads: Enable zero cost exception.
38281 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38283 * 5ztiitho.adb: Remove an unreferenced variable.
38285 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38287 * adaint.c: For FreeBSD, use mkstemp.
38289 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38291 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38293 2003-11-21 Robert Dewar <dewar@gnat.com>
38295 * bld.adb: Remove useless USE of gnatvsn
38297 * gnatchop.adb: Minor reformatting
38298 Clean up version handling to be more consistent
38300 * gnatxref.adb: Minor reformatting
38302 * gprcmd.adb: Minor reformatting
38303 Fix output of copyright to be more consistent with other tools
38305 2003-11-21 Vincent Celier <celier@gnat.com>
38307 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38309 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38311 * atree.adb (Initialize): Add initializations for global variables
38312 used in New_Copy_Tree.
38314 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38315 Internal_Source_File as the actual).
38316 Put the set of statements creating Any_Character before the set of
38317 statements creating Any_Array to have Any_Character fully initialized
38318 when it is used in creating Any_Array.
38320 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38321 not call Scan in case if the actual is Internal_Source_File
38322 Add 2003 to copyright note.
38324 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38325 processing Internal_Source_File.
38327 * types.ads: Add the constant Internal_Source_File representing the
38328 source buffer for artificial source-code-like strings created within
38329 the compiler (the definition of Source_File_Index is changed).
38331 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38333 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38334 56system.ads: New file, FreeBSD version.
38336 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38338 * Make-lang.in (ada.extraclean): Delete.
38340 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38342 * gnatmem.adb: Clean up verbose output.
38344 * gprcmd.adb: Change copyright to FSF.
38346 2003-11-19 Vincent Celier <celier@gnat.com>
38348 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38349 and Version (ignored).
38351 * symbols.ads: (Policy): New type
38352 (Initialize): New parameter Reference, Symbol_Policy and
38354 Remove parameter Force.
38355 Minor reformatting.
38357 * snames.ads, snames.adbadb: New standard names
38358 Library_Reference_Symbol_File and Library_Symbol_Policy
38361 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38365 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38367 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38369 * prj.adb: (Project_Empty): New component Symbol_Data
38371 * prj.ads: (Policy, Symbol_Record): New types
38372 (Project_Data): New component Symbol_Data
38375 New attributes Library_Symbol_File, Library_Symbol_Policy and
38376 Library_Reference_Symbol_File.
38379 (Ada_Check): When project is a Stand-Alone library project, process
38380 attribute Library_Symbol_File, Library_Symbol_Policy and
38381 Library_Reference_Symbol_File.
38383 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38384 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38385 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38386 Symbol_Data (ignored).
38388 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38389 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38390 functions Option_File_Name and Version_String. Set new options of
38391 gnatsym related to symbol file, symbol policy and reference symbol
38395 Extensive modifications to take into account the reference symbol file,
38396 the symbol policy, the library version and to put in the symbol file the
38397 minor and major IDs.
38399 * bld.adb (Process_Declarative_Items): Put second argument of
38400 gprcmd to_absolute between single quotes, to avoid problems with
38403 * bld-io.adb: Update Copyright notice.
38404 (Flush): Remove last character of a line, if it is a back slash, to
38405 avoid make problems.
38408 Implement new scheme with reference symbol file and symbol policy.
38410 * g-os_lib.ads: (Is_Directory): Clarify comment
38412 2003-11-19 Robert Dewar <dewar@gnat.com>
38414 * atree.adb: Move New_Copy_Tree global variables to head of package
38416 * errout.adb: Minor reformatting
38418 2003-11-19 Javier Miranda <miranda@gnat.com>
38420 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38421 Add reference to Ada0Y (AI-50217)
38423 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38424 sem_util.adb: Add reference to AI-50217
38426 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38428 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38430 * sem_aggr.adb: Complete documentation of AI-287 changes
38432 * par-ch4.adb: Document previous changes.
38434 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38435 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38438 * exp_aggr.adb: Add references to AI-287 in previous changes
38440 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38443 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38444 in the rewriting is the result of an inlined call.
38446 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38447 parameter is a type conversion, use original node to construct the
38448 post-call assignment, because expression may have been rewritten, e.g.
38449 if it is a packed array.
38452 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38453 body, just as it is in an instance.
38454 Categorization routines
38456 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38457 Instantiate_Object): Set proper sloc reference for message on missing
38460 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38462 * Makefile.in: Add FreeBSD libgnat pairs.
38464 * usage.adb: Fix typo in usage message.
38466 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38468 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38469 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38470 pragma Thread_Body.
38471 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38473 * s-thread.adb: This file is now a dummy implementation of
38476 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38478 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38480 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38482 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38483 instanciation references in the parent type description.
38485 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38487 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38489 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38490 TYPE_PRECISION directly from esize.
38492 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38495 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38497 * init.c: Initialization routines for FreeBSD
38499 * link.c: Link info for FreeBSD
38501 * sysdep.c: Add the case of FreeBSD
38503 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38505 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38506 already called in System.Threads.
38508 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38509 environment task, as it has been moved to System.Threads.Initialization.
38511 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38513 * adaint.c (__gnatlib_install_locks): Only reference
38514 __gnat_install_locks on VMS, since other platforms can avoid using
38515 --enable-threads=gnat
38517 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38519 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38521 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38522 TYPE_PACKED_ARRAY_TYPE_P.
38523 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38525 Part of PR ada/12806
38526 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38527 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38529 2003-11-17 Vincent Celier <celier@gnat.com>
38531 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38533 Do not set exit status to Failure when Warning is True.
38534 (Gnatchop): Make errors "no compilation units found" and
38535 "no source files written" warnings only.
38537 * make.adb (Gnatmake): When using a project file, set
38538 Look_In_Primary_Dir to False.
38539 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38540 and Local_Configuration_Pragmas in the project where they are declared
38541 not an extending project which might have inherited them.
38543 * osint.adb (Locate_File): If Name is already an absolute path, do not
38544 look for a directory.
38546 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38547 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38549 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38550 in objects of type Variable_Value.
38552 * prj.ads: (Variable_Value): New component Project
38554 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38555 is in a project extended by Project.
38557 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38558 Project of Variable_Values to this new parameter value.
38559 (Expression): Set component Project of Variable_Values.
38560 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38561 Set the component Project in array elements.
38563 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38565 * errout.adb: (Initialize): Add initialization for error nodes.
38567 * sem_ch12.adb (Initialize): Add missing initializations for
38568 Exchanged_Views and Hidden_Entities.
38570 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38572 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38573 already instantiated tree for use in subsequent inlining.
38574 (Analyze_Associations, Instantiate_Formal_Subprogram,
38575 Instantiate_Object): improve error message for mismatch in
38578 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38579 instantiations of subprograms declared in instances.
38581 2003-11-17 Javier Miranda <miranda@gnat.com>
38583 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38584 executed only under the Extensions_Allowed flag.
38586 2003-11-17 Robert Dewar <dewar@gnat.com>
38588 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38590 (Address_Image): Fix bug of returning 0x instead of 0x0
38591 Minor reformatting (function specs).
38593 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38594 (missed case of 33-63)
38596 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38598 * s-thread.adb: Add comments for pragma Restriction
38600 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38601 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38603 2003-11-17 Ed Falis <falis@gnat.com>
38605 * s-thread.adb: Added No_Tasking restriction for this implementation.
38607 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38609 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38610 instanciation references in the parent type description.
38612 2003-11-17 GNAT Script <nobody@gnat.com>
38614 * Make-lang.in: Makefile automatically updated
38616 2003-11-16 Jason Merrill <jason@redhat.com>
38618 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38619 and TAGS files that include them for each front end.
38621 2003-11-14 Andreas Jaeger <aj@suse.de>
38623 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38624 is the canonical version.
38625 * misc.c (gnat_handle_option): Likewise.
38627 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38629 * 5nsystem.ads: New file for x86_64-linux-gnu.
38631 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38633 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38635 * comperr.adb: Fix logic in previous change.
38637 2003-11-13 Vincent Celier <celier@gnat.com>
38639 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38640 Osint.Include_Dir_Default_Prefix instead of
38641 Sdefault.Include_Dir_Default_Name.
38643 * gnatlbr.adb: Update Copyright notice
38644 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38645 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38646 instead of Sdefault.Object_Dir_Default_Name
38649 (Process_Binder_File): Never suppress the option following -Xlinker
38652 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38653 Sdefault.Object_Dir_Default_Name.
38655 * osint.ads, osint.adb:
38656 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38657 Minor reformatting.
38659 * vms_conv.ads: Minor reformating
38660 Remove GNAT STANDARD and GNAT PSTA
38663 Allow GNAT MAKE to have several files on the command line.
38664 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38665 Sdefault.Object_Dir_Default_Name.
38667 Remove data for GNAT STANDARD
38670 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38671 Remove data for GNAT STANDARD
38672 Remove options and documentation for -gnatwb/-gnatwB: these warning
38673 options no longer exist.
38675 2003-11-13 Ed Falis <falis@gnat.com>
38677 * 5zthrini.adb: (Init_RTS): Made visible
38680 (Register): Removed unnecessary call to taskVarGet that checked whether
38681 an ATSD was already set as a task var for the argument thread.
38684 Updated comment to reflect that this is a VxWorks version
38685 Added context clause for System.Threads.Initialization
38686 Added call to System.Threads.Initialization.Init_RTS
38688 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38691 (Init_RTS): New procedure, for the initialization of the run-time lib.
38694 Remove dependancy on System.Init, so that this file can be used in the
38695 AE653 sequential run-time lib.
38697 2003-11-13 Robert Dewar <dewar@gnat.com>
38699 * bindgen.adb: Minor reformatting
38701 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38704 (Apply_Discriminant_Check): Do no apply check if target type is derived
38705 from source type with no applicable constraint.
38708 (Ensure_System_Dependency): Do not apply the style checks that may have
38709 been specified for the main unit.
38712 (Find_Selected_Component): Further improvement in error message, with
38716 (Resolve): Handle properly the case of an illegal overloaded protected
38719 2003-11-13 Javier Miranda <miranda@gnat.com>
38722 (Has_Default_Init_Comps): New function to check the presence of
38723 default initialization in an aggregate.
38724 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38725 extension aggregate of a limited record. In addition, a new formal
38726 was added to do not initialize the record controller (if any) during
38727 this recursive expansion of ancestors.
38728 (Init_Controller): Add support for limited record components.
38729 (Expand_Record_Aggregate): In case of default initialized components
38730 convert the aggregate into a set of assignments.
38732 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38733 describing the new syntax.
38734 Nothing else needed to be done because this subprogram delegates part of
38735 its work to P_Precord_Or_Array_Component_Association.
38736 (P_Record_Or_Array_Component_Association): Give support to the new
38737 syntax for default initialization of components.
38740 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38741 limited aggregates.
38742 (Resolve_Record_Aggregate): Give support to default initialized
38744 (Get_Value): In case of default initialized components, duplicate
38745 the corresponding default expression (from the record type
38746 declaration). In case of default initialization in the *others*
38747 choice, do not check that all components have the same type.
38748 (Resolve_Extension_Aggregate): Give support to limited extension
38752 (Check_Initialization): Relax the strictness of the front-end in case
38753 of aggregate and extension aggregates. This test is now done in
38754 Get_Value in a per-component manner.
38756 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38757 expression corresponds to a limited aggregate. This test is now done
38760 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38763 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38764 present in an N_Component_Association node
38766 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38768 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38769 type-conformant entry only if they are homographs.
38771 2003-11-13 GNAT Script <nobody@gnat.com>
38773 * Make-lang.in: Makefile automatically updated
38775 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38777 * adadecode.c: Use <> form of include for ctype.h.
38778 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38780 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38782 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38783 Works around PR middle-end/6552.
38785 2003-11-10 Ed Falis <falis@gnat.com>
38787 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38789 * 5zinit.adb: (Install_Handler): Moved back to spec
38790 (Install_Signal_Handlers): Deleted
38792 * 5zthrini.adb: Added context clause for System.Storage_Elements
38793 (Register): Only handles creation of taskVar; initialization moved to
38795 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38796 Added declaration of environment task secondary stack and
38799 * s-thread.adb: Implement bodies for thread body processing
38802 Added comment identifying supported targets for pragma Thread_Body.
38804 2003-11-10 Pascal Obry <obry@gnat.com>
38806 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38810 (Open): Properly check for string length before copying into the buffer.
38811 Raises Name_Error if buffer is too small. Note that this was a potential
38814 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38816 * bindgen.adb, comperr.adb: Code clean ups.
38817 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38819 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38821 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38823 2003-11-10 Vincent Celier <celier@gnat.com>
38826 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38829 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38831 * prj.adb: (Project_Empty): Add new boolean component Virtual
38833 * prj.ads: (Virtual_Prefix): New constant string
38834 (Project_Data): New boolean component Virtual
38836 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38837 a library project is extended by a virtual extending project.
38840 Modifications throughout to implement extending-all project, including:
38841 (Virtual_Hash, Processed_Hash): New hash tables
38842 (Create_Virtual_Extending_Project): New procedure
38843 (Look_For_Virtual_Projects_For): New procedure
38846 (Process): After checking the projects, if main project is an
38847 extending-all project, set the object directory of all virtual extending
38848 project to the object directory of the main project.
38849 Adjust error message when a virtual extending project has the same
38850 object directory as an project being extended.
38851 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38852 to True in the project data.
38855 (Default_Project_Node): Add new boolean component Extending_All
38856 (Is_Extending_All): New function
38857 (Set_Is_Extending_All): New procedure
38859 * prj-tree.ads: (Is_Extending_All): New function
38860 (Set_Is_Extending_All): New procedure
38861 (Project_Node_Record): New boolean component Extending_All
38863 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38866 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38868 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38869 "gprcmd prefix" to define it.
38871 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38873 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38876 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38877 created dummy package to Standard_Standard, not to itself, to
38878 defend other parts of the front-end against encoutering a cycle in
38882 (Analyze_With_Clause): When setting the entities for the successive
38883 N_Expanded_Names that constitute the name of a child unit, do not
38884 attempt to go further than Standard_Standard in the chain of scopes.
38885 This case arises from the placeholder units created by
38886 Create_Dummy_Package_Unit in the case of a with_clause for a
38887 nonexistent child unit.
38889 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38892 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38893 declarations are given the proper scope.
38896 (Check_Expr_Constants): Reject an expression that contains a constant
38897 created during expansion, and that appears after the object to which
38898 the address clause applies.
38900 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38901 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38902 that uses 'Range of a function call with controlled components, so
38903 that the function result can be finalized before starting the loop.
38906 (Find_Selected_Component): Improve error message when prefix is
38907 an implicit dereference of an incomplete type.
38909 2003-11-10 Robert Dewar <dewar@gnat.com>
38911 * opt.ads: New Print_Standard flag for -gnatS switch
38913 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38915 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38918 * debug.adb: Update doc for -gnatds to discuss relationship with new
38921 * sinfo.adb: Add new field Entity_Or_Associated_Node
38923 * sinfo.ads: Add new field Entity_Or_Associated_Node
38924 Update documentation for Associated_Node and Entity fields to clarify
38925 relationship and usage.
38928 (Write_Id): Properly process Associated_Node field in generic template
38931 Recognize new -gnatS switch for printing package Standard
38932 This replaces gnatpsta
38935 Add line for new -gnatS switch for printing package Standard
38936 This replaces gnatpsta
38938 2003-11-10 Andreas Jaeger <aj@suse.de>
38940 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38943 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38945 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38948 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38950 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38953 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38955 * sysdep.c: Add handling of cygwin.
38957 2003-11-10 GNAT Script <nobody@gnat.com>
38959 * Make-lang.in: Makefile automatically updated
38961 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38964 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38965 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38966 Replace GNAT_ROOT by GCC_ROOT.
38968 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38970 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38972 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38973 and update for changed meaning of GET_MODE_BITSIZE.
38975 2003-11-04 Doug Rupp <rupp@gnat.com>
38977 * sysdep.c: Problem discovered during IA64 VMS port.
38978 [VMS] #include <unixio.h> to get proper prototypes.
38981 Issues discovered/problems fixed during IA64 VMS port.
38982 [VMS] #define _POSIX_EXIT for proper semantics.
38983 [VMS] #include <unixio.h> for proper prototypes.
38984 [VMS] (fork): #define IA64 version.
38985 (__gnat_os_exit): Remove unnecessary VMS specific code.
38987 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38989 Part of PR ada/12806
38990 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38994 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38997 * targtyps.c, decl.c, misc.c,
38998 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38999 routines to work around change in FP sizing semantics in GCC.
39002 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
39004 * gigi.h: (enumerate_modes): New function.
39006 * Make-lang.in: (ada/misc.o): Add real.h.
39008 * misc.c: (enumerate_modes): New function.
39010 2003-11-04 Robert Dewar <dewar@gnat.com>
39012 * 3vtrasym.adb: Minor reformatting
39013 Use terminology encoded/decoded name, rather than C++ specific notion
39014 of mangling (this is the terminology used throughout GNAT).
39016 * einfo.h: Regenerated
39018 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
39021 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
39023 * par-prag.adb: Add dummy entry for Thread_Body pragma
39026 Add entries for System.Threads entities for thread body processing
39029 (Analyze_Pragma, Access attributes): Check these are not applied to a
39030 thread body, since this is not permitted
39032 * sem_prag.adb: Add processing for Thread_Body pragma.
39036 (Resolve_Call): Check for incorrect attempt to call a thread body
39037 procedure with a direct call.
39039 * snames.ads, snames.adb: Add entry for Thread_Body pragma
39040 Add names associated with thread body expansion
39042 * snames.h: Add entry for Thread_Body pragma
39044 * s-thread.adb: Add entries for thread body processing
39045 These are dummy bodies so far
39047 * s-thread.ads: Add documentation on thread body handling.
39048 Add entries for thread body processing.
39050 2003-11-04 Javier Miranda <miranda@gnat.com>
39053 (Build_Limited_Views): Return after posting an error in case of limited
39054 with_clause on subprograms, generics, instances or generic renamings
39055 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39056 on subprograms, generics, instances or generic renamings
39058 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
39060 * raise.c (setup_to_install): Correct mistake in last revision; two
39061 arguments out of order.
39063 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39064 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39065 notice, missed in previous change.
39066 Remove trailing blanks and other style errors introduced in previous
39069 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
39071 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39072 rid of the wrapper for a LJM type, ensuring we don't do that if the
39073 field is addressable. This avoids potential low level type view
39074 mismatches later on, for instance in a by-reference argument passing
39077 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39079 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39080 aligned at byte boundary.
39082 2003-11-04 Joel Brobecker <brobecker@gnat.com>
39084 * decl.c (components_to_record): Do not delete the empty variants from
39085 the end of the union type.
39087 2003-11-04 Ed Schonberg <schonberg@gnat.com>
39089 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39090 operation for a derived type, an explicit declaration may use a local
39091 subtype of Boolean.
39093 2003-11-04 Vincent Celier <celier@gnat.com>
39095 * make.adb (Gnatmake): Allow main sources on the command line with a
39096 library project when it is only for compilation (no binding or
39099 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39101 * Makefile.in: Remove many duplicate variables.
39103 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
39105 * Make-lang.in (dvi): Move targets to $(docobjdir).
39106 (gnat_ug_vms.dvi): Simplify rule and adjust target.
39107 (gnat_ug_wnt.dvi): Likewise.
39108 (gnat_ug_unx.dvi): Likewise.
39109 (gnat_ug_vxw.dvi): Likewise.
39110 (gnat_rm.dvi): Likewise.
39111 (gnat-style.dvi): Likewise.
39113 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39115 * gigi.h: Missed commit from update for C90.
39117 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39119 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39121 2003-10-31 Andreas Schwab <schwab@suse.de>
39123 * raise.c (get_action_description_for): Fix typo in last change.
39125 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
39128 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39129 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39131 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
39133 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39134 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39135 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39136 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39137 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39139 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
39142 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39143 numbers when symbol name is too long.
39145 2003-10-30 Ed Falis <falis@gnat.com>
39147 * g-signal.ads, g-signal.adb: New files
39149 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39151 * Makefile.rtl: Introduce GNAT.Signals
39153 2003-10-30 Robert Dewar <dewar@gnat.com>
39155 * freeze.adb: Minor reformatting
39157 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39159 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39160 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
39161 New handling of Id_Check parameter to improve recognition of keywords
39162 used as identifiers.
39163 Update copyright notice to include 2003
39165 2003-10-29 Robert Dewar <dewar@gnat.com>
39167 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39168 sem_ch10.adb: Minor reformatting
39170 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39171 (Expand_Assign_Record): Test right hand side for bit unaligned as well
39173 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
39175 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
39176 Support for TBK$SYMBOLIZE-based symbolic traceback.
39178 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39181 Revert previous change, that did not work well when pragma No_Run_Time
39182 was used in conjunction with a run-time other than ZFP.
39184 2003-10-29 Vincent Celier <celier@gnat.com>
39187 (Gnatmake): When there are no Ada mains in attribute Main, disable the
39188 bind and link steps only is switch -z is not used.
39190 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
39192 * Makefile.generic: Remove duplicated setting of CC.
39194 * Makefile.prolog: Set CC to gcc by default, to override make's
39197 * einfo.h: Regenerated.
39199 2003-10-29 Ed Schonberg <schonberg@gnat.com>
39201 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39202 current body, after compiling subunit.
39204 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39205 when in deleted code, because gigi needs properly ordered freeze
39206 actions to annotate types.
39208 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39209 prevent the premature freezing of record type that contains
39210 subcomponents with a private type that does not yet have a completion.
39212 2003-10-29 Javier Miranda <miranda@gnat.com>
39215 (Analyze_Package_Instantiation): Check that instances can not be used in
39216 limited with_clauses.
39219 (Analyze_Package_Renaming): Check that limited withed packages cannot
39220 be renamed. Improve text on error messages related to limited
39223 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39225 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39226 Update copyright notice.
39228 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39229 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39230 checks required for limited context_clauses and installs the limited
39232 (Install_Limited_Withed_Unit): Complete its documentation.
39233 (Analyze_Context): Check that limited with_clauses are only allowed in
39235 (Install_Context): Call Install_Limited_Context_Clauses after the
39236 parents have been installed.
39237 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39238 package as 'From_With_Type'; this mark indicates that the limited view
39239 is installed. Used to check bad usages of limited with_clauses.
39240 (Build_Limited_Views): Do not add shadow entities to the scope's list
39241 of entities. Do not add real entities to the Non_Limited_Views chain.
39242 Improve error notification.
39243 (Remove_Context_Clauses): Remove context clauses in two phases:
39244 limited views first and regular views later (to maintain the
39246 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39247 its visible entities.
39249 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39251 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39252 with any type that Is_Fixed_Point_Type.
39254 * sinfo.ads: Fix documentation for Associated_Node attribute.
39256 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39258 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39259 both '-gnatc' and '-gnatt' are specified.
39261 * atree.adb (Initialize): Add initialization for Node_Count (set to
39264 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39266 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39267 do not consider as Pure.
39269 Part of implementation of function-at-a-time:
39271 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39272 (tree_transform): Add new argument to build_component_ref.
39273 (tree_transform, case N_Assignment_Statement): Make and return an
39275 (tree_transform): If result IS_STMT, set flags and return it.
39276 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39278 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39280 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39281 (build_allocator): Likewise.
39283 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39284 Add new arg to build_component_ref.
39285 (maybe_unconstrained_array, unchecked_convert): Likewise.
39287 * ada-tree.def (EXPR_STMT): New code.
39289 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39291 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39292 build_component_ref calls.
39294 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39296 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39297 (build_component_ref): Add new argument, NO_FOLD_P.
39299 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39301 * Makefile.generic: Add missing substitution on object_deps handling.
39304 * Make-lang.in (check-ada): Enable ACATS test suite.
39306 2003-10-27 Robert Dewar <dewar@gnat.com>
39309 (Freeze_Array_Type): We do not need an initialization routine for types
39310 derived from String or Wide_String. They should be treated the same
39311 as String and Wide_String themselves. This caused problems with the
39312 use of Initialize_Scalars.
39315 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39316 composites. This allows use of component clauses that are not byte
39320 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39321 is an attempt to pack an array of atomic objects.
39323 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39325 2003-10-27 Pascal Obry <obry@gnat.com>
39328 (Basename): Check for drive letters in a pathname only on DOS based OS.
39330 2003-10-27 Vincent Celier <celier@gnat.com>
39333 (Gnatmake): When unable to change dir to the object dir, display the
39334 content of the parent dir of the obj dir, to try to understand why this
39337 2003-10-27 GNAT Script <nobody@gnat.com>
39339 * Make-lang.in: Makefile automatically updated
39341 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39344 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39345 should not be done in Save/Restore_Scope_Stack, because it is performed
39349 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39350 whether use clauses should be removed/restored.
39353 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39354 whether use clauses should be removed/restored.
39356 2003-10-26 Andreas Jaeger <aj@suse.de>
39358 * Makefile.in: Remove duplicated lines.
39360 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39362 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39363 minimize the differences with ACT tree.
39365 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39366 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39367 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39370 2003-10-24 Pascal Obry <obry@gnat.com>
39373 * adadecode.c (ostrcpy): New function.
39374 (__gnat_decode): Use ostrcpy of strcpy.
39375 (has_prefix): Set first parameter a const.
39376 (has_suffix): Set first parameter a const.
39377 Update copyright notice. Fix source name in header.
39378 Removes a trailing space.
39380 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39383 Remove the test against being in No_Run_Time_Mode before generating a
39384 call to Register_Tag. It is redundant with the test against the
39385 availability of the function Register_Tag.
39387 2003-10-24 Vincent Celier <celier@gnat.com>
39389 * g-catiio.adb: (Month_Name): Correct spelling of February
39391 * make.adb: (Mains): New package
39392 (Initialize): Call Mains.Delete
39393 (Gnatmake): Check that each main on the command line is a source of a
39394 project file and, if there are several mains, each of them is a source
39395 of the same project file.
39396 (Gnatmake): When a foreign language is specified in attribute Languages,
39397 no main is specified on the command line and attribute Mains is not
39398 empty, only build the Ada main. If there is no Ada main, just compile
39399 the Ada sources and their closure.
39400 (Gnatmake): If a main is specified on the command line with directory
39401 information, check that the source exists and, if it does, that the path
39402 is the actual path of a source of a project.
39405 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39406 Full_Path is True, return the full path instead of the simple file name.
39407 (Project_Of): New function
39410 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39411 defaulted to False.
39412 (Project_Of): New function
39414 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39416 * Makefile.generic:
39417 Ensure objects of main project are always checked and rebuilt if needed.
39418 Set CC to gcc by default.
39419 Prepare new handling of link by creating a global archive (not activated
39422 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39423 stringt.h: Update copyright notice. Remove trailing blanks.
39424 Fix source name in header.
39426 2003-10-24 Robert Dewar <dewar@gnat.com>
39428 * sem_ch12.adb: Minor reformatting
39431 Minor reformatting (including new function return style throughout)
39434 Minor reformatting (including new function return style throughout)
39436 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39438 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39439 stringt.h: Update copyright notice. Remove trailing blanks.
39440 Fix source name in header.
39442 2003-10-24 GNAT Script <nobody@gnat.com>
39444 * Make-lang.in: Makefile automatically updated
39446 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39448 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39449 stringt.h: Convert to ISO C90 declarations and definitions.
39451 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39454 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39455 External_Tag attribute definition clauses.
39457 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39460 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39461 child unit, generate a fully qualified name to avoid spurious errors
39462 when the context contains renamings of different child units with
39463 the same simple name.
39465 * exp_dbug.ads: Add documentation on name qualification for renamings
39468 2003-10-23 Robert Dewar <dewar@gnat.com>
39470 * g-regpat.ads, g-regpat.adb: Minor reformatting
39472 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39474 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39476 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39478 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39481 * urealp.h: (Machine): Update to proper definition.
39483 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39485 * init.c, adaint.c: Minor reformatting.
39487 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39489 * adaint.c (w32_epoch_offset): Define static const at file level.
39490 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39491 rather than t_create, t_access in call to GetFileTime. Use union
39492 to convert between FILETIME and unsigned long long.
39493 (__gnat_file_time_name): Test for invalid file handle.
39494 (__gnat_set_filetime_name): Support win32 targets using
39495 w32api SetFileTime.
39497 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39499 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39501 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39503 * decl.c (creat_concat_name): Const-ify prefix.
39505 * adaint.c: Include ctype.h if __MINGW32__.
39506 (__gnat_readlink): Mark arguments as possibly unused.
39507 (__gnat_symlink): Likewise.
39508 (__gnat_is_symbolic_link): Likewise.
39509 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39511 (__gnat_file_time_name): Don't declare struct stat statbuf when
39513 (__gnat_is_absolute_path): Add parenthesis around condition of
39514 'if' statement to avoid warning.
39515 (__gnat_plist_init): Specify void as parameter.
39516 (plist_enter): Likewise.
39517 (plist_leave): Likewise.
39518 (remove_handle): Make static. Initialize prev.
39520 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39523 * Makefile.in: Disable build of gnatpsta.
39524 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39525 of previous change.
39527 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39529 * tracebak.c (MAX): Avoid redefinition warning.
39531 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39532 Change msg to const char *.
39533 (__gnat_install_handler): Remove ss, unused.
39534 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39536 * cstreams.c (__gnat_full_name): Declare p only when used.
39537 (__gnat_full_name) [sgi] Return buffer.
39539 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39541 * mingw32.h: New file.
39542 * gnat_wrapper.adb: New file.
39544 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39546 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39547 string match a pre compiled regular expression (the corresponding
39548 version of the function working on a raw regular expression)
39549 Fix typos in various comments
39550 Update copyright notice in spec
39552 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39555 (Component_Needs_Simple_Initialization): Return False when the type is a
39556 packed bit array. Revise spec comments to document this case.
39559 (Expand_Pragma_Import): Set any expression on the imported object to
39560 empty to avoid initializing imported objects (in particular this
39561 covers the case of zero-initialization of bit arrays).
39562 Update copyright notice.
39564 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39567 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39568 a subunit is missing.
39569 (Instantiate_Subprogram_Body): If body of function is missing, set type
39570 of return expression explicitly in dummy body, to prevent cascaded
39571 errors when a subunit is missing.
39575 (Access_Subprogram_Declaration): Verify that return type is valid.
39579 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39584 (Corresponding_Discriminant): If the scope of the discriminant is a
39585 private type without discriminant, use its full view.
39588 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39590 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39591 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39592 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39593 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39594 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39595 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39596 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39597 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39598 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39599 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39600 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39601 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39602 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39603 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39604 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39605 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39606 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39607 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39608 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39609 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39610 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39611 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39612 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39613 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39614 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39615 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39616 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39617 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39618 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39619 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39620 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39621 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39622 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39623 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39624 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39625 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39626 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39627 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39628 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39629 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39630 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39631 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39632 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39633 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39634 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39635 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39636 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39637 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39638 vms_conv.ads, vms_conv.adb, vms_data.ads,
39639 vxaddr2line.adb: Files added. Merge with ACT tree.
39641 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39642 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39643 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39644 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39645 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39646 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39647 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39648 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39649 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39650 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39652 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39653 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39654 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39655 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39656 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39657 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39658 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39659 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39660 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39661 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39662 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39663 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39664 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39665 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39666 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39667 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39668 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39669 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39670 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39671 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39672 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39673 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39674 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39675 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39676 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39677 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39678 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39679 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39680 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39681 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39682 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39683 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39684 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39685 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39686 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39687 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39688 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39689 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39690 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39691 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39692 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39693 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39694 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39695 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39696 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39697 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39698 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39699 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39700 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39701 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39702 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39703 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39704 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39705 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39706 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39707 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39708 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39709 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39710 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39711 checks.adb, checks.ads, cio.c, comperr.adb,
39712 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39713 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39714 einfo.adb, einfo.ads, errout.adb, errout.ads,
39715 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39716 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39717 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39718 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39719 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39720 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39721 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39722 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39723 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39724 fe.h, fmap.adb, fmap.ads, fname.adb,
39725 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39726 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39727 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39728 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39729 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39730 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39731 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39732 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39733 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39734 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39735 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39736 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39737 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39738 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39739 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39740 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39741 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39742 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39743 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39744 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39745 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39746 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39747 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39748 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39749 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39750 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39751 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39752 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39753 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39754 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39755 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39756 layout.adb, lib.adb, lib.ads, lib-list.adb,
39757 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39758 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39759 link.c, live.adb, make.adb, make.ads,
39760 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39761 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39762 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39763 misc.c, mkdir.c, mlib.adb, mlib.ads,
39764 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39765 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39766 namet.adb, namet.ads, namet.h, nlists.ads,
39767 nlists.h, nmake.adt, opt.adb, opt.ads,
39768 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39769 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39770 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39771 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39772 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39773 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39774 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39775 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39776 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39777 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39778 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39779 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39780 prj-util.adb, prj-util.ads, raise.c, raise.h,
39781 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39782 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39783 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39784 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39785 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39786 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39787 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39788 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39789 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39790 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39791 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39792 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39793 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39794 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39795 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39796 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39797 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39798 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39799 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39800 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39801 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39802 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39803 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39804 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39805 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39806 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39807 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39808 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39809 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39810 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39811 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39812 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39813 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39814 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39815 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39816 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39817 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39818 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39819 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39820 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39821 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39822 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39823 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39824 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39825 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39826 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39827 stringt.adb, stringt.ads, stringt.h, style.ads,
39828 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39829 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39830 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39831 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39832 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39833 table.adb, table.ads, targparm.adb, targparm.ads,
39834 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39835 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39836 ttypes.ads, types.ads, types.h, uintp.adb,
39837 uintp.ads, uintp.h, uname.adb, urealp.adb,
39838 urealp.ads, urealp.h, usage.adb, utils2.c,
39839 utils.c, validsw.adb, validsw.ads, widechar.adb,
39840 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39841 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39842 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39843 gnatvsn.ads: Merge with ACT tree.
39845 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39847 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39849 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39850 (gnat_ug_vmx.info): Likewise.
39851 (gnat_ug_vxw.info): Likewise.
39852 (gnat_ug_wnt.info): Likewise.
39853 (gnat_rm.info): Likewise.
39854 (gnat-style.info): Likewise.
39856 * Make-lang.in (ada.install-info): Remove target.
39857 (info): New target.
39858 (install-info): Likewise.
39859 (gnat_ug_unx.info): Simplify rule.
39860 (gnat_ug_vmx.info): Likewise.
39861 (gnat_ug_vxw.info): Likewise.
39862 (gnat_ug_wnt.info): Likewise.
39863 (gnat_rm.info): Likewise.
39864 (gnat-style.info): Likewise.
39866 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39868 * Make-lang.in: Replace uses of $(target_alias) with
39869 $(target_noncanonical).
39870 * ada/Makefile.in: Remove unused mention of $(target_alias).
39872 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39874 * Make-lang.in (ada.info): Replace with ...
39876 (ada.dvi): Replace with ...
39879 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39881 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39882 initialize dconstp5 and dconstmp5.
39884 2003-09-28 Richard Henderson <rth@redhat.com>
39886 * trans.c (tree_transform): Update call to expand_asm_operands.
39888 2003-09-21 Richard Henderson <rth@redhat.com>
39890 * trans.c, utils.c: Revert.
39892 2003-09-21 Richard Henderson <rth@redhat.com>
39894 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39897 2003-09-04 Michael Matz <matz@suse.de>
39899 * misc.c: Include "target.h".
39900 * Make-lang.in (misc.o): Add dependency on target.h.
39902 2003-09-03 DJ Delorie <dj@redhat.com>
39904 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39907 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39909 * Makefile.in: Update substitutions to match changes to
39910 configure. Use include directives instead of @-insertions
39911 to read in host and target fragments. Add a rule to
39912 regenerate ada/Makefile.
39914 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39916 * lang-options.h: Remove.
39917 * lang.opt: Add help text.
39919 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39921 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39924 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39926 * misc.c (gnat_handle_option): Don't handle filenames.
39928 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39930 * Make-lang.in: Replace PWD with PWD_COMMAND.
39931 * Makefile.adalib: Likewise.
39932 * Makefile.in: Likewise.
39934 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39936 * misc.c (gnat_argv): Revert last change.
39937 (gnat_handle_option, gnat_init_options): Copy arguments.
39939 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39941 * misc.c (gnat_argv): Make const.
39943 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39945 * misc.c (save_argc, save_argv): Keep non-static!
39947 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39949 * misc.c (save_argc, save_argv): Make static.
39950 (gnat_init_options): New prototype.
39951 (gnat_init_options): Update.
39953 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39955 * gnat_ug.texi: Remove unlikely characters from @vars.
39956 * gnat_ug_vms.texi: Regenerate.
39958 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39960 * misc.c (record_code_position): Adjust emit_note call.
39962 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39964 * misc.c (gnat_handle_option): Don't check for missing arguments.
39966 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39968 * utils.c (end_subprog_body): Adjust expand_function_end call.
39970 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39972 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39975 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39977 * lang.opt: Declare Ada.
39978 * misc.c (gnat_init_options): Update.
39980 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39982 * utils.c (begin_subprog_body): Adjust init_function_start call.
39984 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39986 * Make-lang.in: Update to use options.c and options.h.
39987 * misc.c: Include options.h not aoptions.h.
39988 (gnat_handle_option): Abort on unrecognized switch.
39989 (gnat_init_options): Request Ada switches.
39991 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39993 * lang.opt: Add -Wall.
39994 * misc.c (gnat_handle_option): Handle it.
39996 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
39998 * misc.c (gnat_handle_option): Fix warnings.
40000 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
40002 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
40004 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
40006 * Make-lang.in: Update to handle command-line options.
40007 * lang.opt: New file.
40008 * misc.c: Include aoptions.h.
40009 (cl_options_count, cl_options): Remove.
40010 (gnat_handle_option): New.
40011 (gnat_decode_option): Remove.
40012 (LANG_HOOKS_DECODE_OPTION): Remove.
40013 (LANG_HOOKS_HANDLE_OPTION): Override.
40015 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
40017 * init.c, misc.c, trans.c, utils.c: Remove dead code.
40019 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
40021 * Makefile.in: Replace "host_canonical" with "host" for autoconf
40024 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
40026 * Make-lang.in: Update.
40027 * misc.c: Include opts.h. Define cl_options_count and cl_options.
40029 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
40031 * misc.c (gnat_init_options): Update.
40033 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40035 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
40036 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
40037 __attribute__ ((__unused__)).
40039 2003-06-05 Jan Hubicka <jh@suse.cz>
40041 * Make-lang.in: Add support for stageprofile and stagefeedback
40043 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40045 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40046 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40048 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
40050 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40051 Remove non-VMS directive.
40052 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40054 (Examples of gnatls Usage): Remove VMS alternative.
40056 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
40059 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40060 and turn ZCX_By_Default back to False since the underlying support
40061 is not quite there yet.
40063 2003-06-01 Andreas Jaeger <aj@suse.de>
40065 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40066 and ROUND_TYPE_SIZE_UNIT.
40068 2003-05-22 Geert Bosch <bosch@gnat.com>
40070 * gnat_rm.texi : Remove reference to Ada Core Technologies.
40072 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
40074 * trans.c (tree_transform): Use location_t and input_location
40076 (build_unit_elab): Likewise.
40077 * utils.c (create_label_decl): Likewise.
40079 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
40081 * trans.c (tree_transform, build_unit_elab,
40082 set_lineno): Rename lineno to input_line.
40083 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40084 end_subprog_body): Likewise.
40085 * utils2.c (build_call_raise): Likewise.
40087 2003-05-01 Laurent Guerby <guerby@acm.org>
40090 * 5iosinte.ads: Increase pthread_cond_t size to match recent
40091 LinuxThread and NPTL version, merge from ACT.
40093 2003-04-28 Zack Weinberg <zack@codesourcery.com>
40095 * utils.c (convert): No need to clear TREE_CST_RTL.
40097 2003-04-23 Geert Bosch <bosch@gnat.com>
40099 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40100 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40101 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40102 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40103 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40104 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40105 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40106 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40107 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40108 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40109 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40110 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40111 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40112 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40113 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40114 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40115 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40116 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40117 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40118 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40119 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40120 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40121 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40122 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40123 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40124 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40125 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40126 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40127 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40128 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40129 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40130 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40131 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40132 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40133 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40134 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40135 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40136 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40137 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40138 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40139 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40140 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40141 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40142 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40143 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40144 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40145 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40146 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40147 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40148 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40149 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40150 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40151 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40152 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40153 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40154 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40155 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40156 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40157 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40158 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40159 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40160 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40161 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40162 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40163 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40164 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40165 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40166 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40167 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40168 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40169 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40170 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40171 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40172 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40173 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40174 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40175 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40176 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40177 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40178 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40179 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40180 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40181 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40182 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40183 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40184 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40185 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40186 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40187 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40188 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40189 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40190 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40191 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40192 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40193 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40194 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40195 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40196 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40197 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40198 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40199 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40200 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40201 ali.adb, ali.ads, alloc.ads, argv.c,
40202 atree.adb, atree.ads, atree.h, aux-io.c,
40203 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40204 binde.adb, binde.ads, binderr.adb, binderr.ads,
40205 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40206 butil.adb, butil.ads, cal.c, calendar.ads,
40207 casing.adb, casing.ads, ceinfo.adb, checks.adb,
40208 checks.ads, cio.c, comperr.adb, comperr.ads,
40209 config-lang.in, csets.adb, csets.ads, csinfo.adb,
40210 cstand.adb, cstand.ads, cuintp.c, debug.adb,
40211 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40212 dec-io.ads, dec.ads, deftarg.c, directio.ads,
40213 einfo.adb, einfo.ads, elists.adb, elists.ads,
40214 elists.h, errno.c, errout.adb, errout.ads,
40215 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40216 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40217 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40218 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40219 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40220 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40221 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40222 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40223 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40224 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40225 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40226 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40227 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40228 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40229 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40230 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40231 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40232 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40233 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40234 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40235 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40236 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40237 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40238 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40239 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40240 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40241 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40242 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40243 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40244 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40245 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40246 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40247 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40248 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40249 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40250 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40251 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40252 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40253 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40254 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40255 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40256 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40257 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40258 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40259 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40260 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40261 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40262 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40263 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40264 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40265 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40266 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40267 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40268 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40269 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40270 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40271 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40272 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40273 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40274 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40275 lib.adb, lib.ads, live.adb, live.ads,
40276 machcode.ads, make.adb, make.ads, makeusg.adb,
40277 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40278 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40279 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40280 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40281 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40282 mlib.ads, namet.adb, namet.ads, nlists.adb,
40283 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40284 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40285 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40286 osint.ads, output.adb, output.ads, par-ch10.adb,
40287 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40288 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40289 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40290 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40291 par-tchk.adb, par-util.adb, par.adb, par.ads,
40292 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40293 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40294 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40295 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40296 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40297 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40298 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40299 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40300 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40301 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40302 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40303 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40304 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40305 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40306 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40307 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40308 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40309 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40310 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40311 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40312 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40313 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40314 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40315 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40316 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40317 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40318 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40319 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40320 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40321 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40322 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40323 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40324 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40325 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40326 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40327 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40328 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40329 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40330 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40331 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40332 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40333 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40334 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40335 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40336 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40337 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40338 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40339 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40340 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40341 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40342 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40343 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40344 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40345 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40346 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40347 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40348 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40349 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40350 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40351 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40352 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40353 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40354 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40355 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40356 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40357 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40358 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40359 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40360 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40361 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40362 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40363 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40364 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40365 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40366 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40367 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40368 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40369 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40370 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40371 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40372 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40373 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40374 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40375 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40376 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40377 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40378 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40379 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40380 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40381 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40382 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40383 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40384 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40385 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40386 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40387 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40388 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40389 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40390 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40391 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40392 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40393 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40394 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40395 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40396 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40397 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40398 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40399 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40400 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40401 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40402 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40403 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40404 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40405 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40406 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40407 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40408 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40409 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40410 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40411 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40412 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40413 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40414 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40415 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40416 snames.ads, sprint.adb, sprint.ads, stand.adb,
40417 stand.ads, stringt.adb, stringt.ads, style.adb,
40418 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40419 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40420 switch-m.ads, switch.adb, switch.ads, system.ads,
40421 table.adb, table.ads, targparm.adb, targparm.ads,
40422 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40423 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40424 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40425 ttypef.ads, ttypes.ads, types.adb, types.ads,
40426 uintp.adb, uintp.ads, uname.adb, uname.ads,
40427 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40428 usage.adb, usage.ads, validsw.adb, validsw.ads,
40429 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40430 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40431 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40432 formatting and other trivial changes from ACT.
40434 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40436 * gigi.h, utils2.c (build_constructor):
40437 Rename gnat_build_constructor. Use build_constructor.
40438 * decl.c (gnat_to_gnu_entity)
40439 * trans.c (tree_transform, pos_to_constructor, extract_values)
40440 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40441 (unchecked_convert)
40442 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40443 (fill_vms_descriptor):
40446 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40448 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40449 * misc.c (gnat_tree_size): New function.
40450 (LANG_HOOKS_TREE_SIZE): Override.
40452 2003-04-03 Jason Merrill <jason@redhat.com>
40454 * misc.c (gnat_adjust_rli): #if 0.
40456 2003-03-31 Geert Bosch <bosch@gnat.com>
40459 * link.c : Fix misspelled "const" keyword
40461 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40464 * utils2.c: Adjust calls to put_var_into_stack.
40466 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40468 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40470 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40472 * misc.c (gnat_init): Update for new prototype.
40474 2003-03-05 Olivier Hainque <hainque@gnat.com>
40477 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40478 warning, and fix return type for the IN_RTS && !SJLJ case.
40480 2003-03-04 Tom Tromey <tromey@redhat.com>
40482 * Make-lang.in (ada.tags): New target.
40484 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40487 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40488 wrapper, which name remains constant whatever underlying GCC
40491 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40492 the stable interface needed for a-except.
40494 2003-03-02 Andreas Jaeger <aj@suse.de>
40496 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40497 gnat_ug_wnt.texi: Regenerate.
40499 2003-03-02 Laurent Guerby <guerby@acm.org>
40501 * Makefile.in (install-gnatlib): Match previous change there
40504 2003-02-28 Andreas Schwab <schwab@suse.de>
40506 * Make-lang.in (install-gnatlib): Change to ada directory before
40507 running make instead of using ada/Makefile directly.
40509 2003-02-18 Ben Elliston <bje@redhat.com>
40511 Part of PR ada/9406
40512 * gnat_ug.texi (Binder output file): Grammar fix.
40514 2003-02-18 Ben Elliston <bje@redhat.com>
40517 * 5qtaprop.adb (Sleep): Fix typo in comment.
40519 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40521 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40522 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40523 gnat_ug_wnt.texi: Regenerate.
40525 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40527 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40528 be created if necessary.
40529 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40530 if necessary. Remove erroneous and redundant gnatchop
40531 installation commands. Test for gnatdll before attempting
40533 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40534 and gnatdll from all plausible locations.
40536 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40538 * utils2.c (build_unary_op): Don't check flag_volatile.
40539 * gnat_ug.texi: Remove -fvolatile from example.
40540 * gnat_ug_vxw.texi: Likewise.
40542 2003-01-29 Laurent Guerby <guerby@acm.org>
40545 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40546 * Makefile.in: match previous change.
40547 * Make-lang.in: match previous change.
40549 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40551 * 5rosinte.ads: Add SIGXCPU.
40552 * 5rtpopsp.adb: New file.
40553 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40554 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40555 specific file 5rtpopsp.adb.
40556 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40557 is likely needed for all newlib targets.
40558 * init.c: Add RTEMS specific version of __gnat_initialize().
40560 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40562 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40564 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40566 * init.c (__gnat_error_handler): Make msg const.
40568 * gmem.c (convert_addresses): Move declaration ...
40569 * adaint.h: ... here.
40570 * adaint.c (convert_addresses): Adapt addrs type to match
40573 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40575 2003-01-24 Andreas Schwab <schwab@suse.de>
40577 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40578 size_t to avoid warning.
40580 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40582 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40584 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40586 * gnat_rm.texi: Remove RCS version number.
40588 * ada-tree.h (union lang_tree_node): Add chain_next option.
40590 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40592 * Make-lang.in (ada.install-info, ada.install-common,
40593 ada.uninstall): Prepend $(DESTDIR) to the destination
40594 directory in all (un)installation commands.
40595 * Makefile.in (install-gnatlib, install-rts): Ditto.
40597 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40599 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40600 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40601 gnat_ug_wnt.texi: Regenerate.
40603 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40605 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40607 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40608 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40609 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40610 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40611 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40612 $(srcdir)/doc/include/gcc-common.texi.
40614 2002-12-15 Geert Bosch <bosch@gnat.com>
40616 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40618 2002-12-14 Geert Bosch <bosch@gnat.com>
40621 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40622 case of a body created for a Renaming_As_Body, on which
40623 conformance checks are not performed.
40625 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40627 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40628 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40629 not already included.
40630 * Make-lang.in: Update dependencies.
40632 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40633 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40634 solution to buffer overflow bug on GNU/Linux.
40636 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40640 * bindgen.adb: Remove all references to Public_Version.
40641 * comperr.adb: Remove all references to Public_Version and
40642 GNATPRO_Version; correct bug reporting instructions.
40643 * comperr.ads: Change to match bug box.
40644 * gnatvsn.ads: Remove all references to Public version and
40647 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40650 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40654 * config-lang.in: Remove diff_excludes.
40656 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40659 * trans.c (gnu_pending_elaboration_lists): New GC root.
40660 (build_unit_elab): Use..
40662 2002-10-30 Geert Bosch <bosch@gnat.com>
40665 * misc.c : Include optabs.h
40667 * Make-lang.in (misc.o): Add dependency on optabs.h
40669 2002-10-29 Geert Bosch <bosch@gnat.com>
40672 * Make-lang.in (gnatbind): Depend on CONFIG_H
40674 2002-10-29 Geert bosch <bosch@gnat.com>
40677 * misc.c: Unrevert misc.c (1.13)
40679 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40681 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40682 maintainership comments.
40684 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40687 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40688 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40689 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40690 7staprop.adb: Correct statements in comments about
40691 maintainership of GNAT.
40694 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40695 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40696 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40697 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40698 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40699 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40700 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40701 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40702 comments about maintainership of GNAT.
40704 PR ada/6919 (forward port of patch for PR ada/5904)
40705 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40706 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40707 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40708 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40709 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40710 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40711 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40712 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40713 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40714 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40715 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40716 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40717 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40718 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40719 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40720 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40721 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40722 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40723 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40724 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40725 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40726 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40727 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40728 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40729 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40730 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40731 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40732 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40733 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40734 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40735 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40736 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40737 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40738 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40739 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40740 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40741 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40742 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40743 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40744 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40745 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40746 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40747 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40748 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40749 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40750 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40751 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40752 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40753 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40754 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40755 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40756 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40757 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40758 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40759 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40760 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40761 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40762 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40763 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40764 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40765 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40766 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40767 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40768 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40769 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40770 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40771 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40772 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40773 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40774 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40775 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40776 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40777 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40778 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40779 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40780 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40781 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40782 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40783 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40784 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40785 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40786 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40787 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40788 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40789 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40790 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40791 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40792 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40793 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40794 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40795 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40796 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40797 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40798 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40799 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40800 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40801 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40802 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40803 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40804 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40805 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40806 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40807 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40808 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40809 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40810 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40811 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40812 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40813 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40814 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40815 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40816 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40817 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40818 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40819 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40820 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40821 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40822 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40823 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40824 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40825 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40826 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40827 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40828 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40829 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40830 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40831 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40832 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40833 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40834 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40835 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40836 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40837 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40838 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40839 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40840 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40841 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40842 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40843 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40844 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40845 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40846 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40847 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40848 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40849 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40850 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40851 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40852 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40853 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40854 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40855 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40856 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40857 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40858 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40859 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40860 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40861 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40862 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40863 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40864 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40865 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40866 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40867 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40868 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40869 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40870 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40871 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40872 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40873 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40874 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40875 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40876 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40877 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40878 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40879 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40880 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40881 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40882 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40883 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40884 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40885 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40886 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40887 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40888 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40889 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40890 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40891 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40892 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40893 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40894 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40895 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40896 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40897 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40898 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40899 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40900 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40901 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40902 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40903 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40904 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40905 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40906 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40907 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40908 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40909 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40910 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40911 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40912 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40913 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40914 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40915 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40916 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40917 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40918 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40919 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40920 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40921 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40922 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40923 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40924 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40925 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40926 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40927 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40928 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40929 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40930 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40931 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40932 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40933 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40934 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40935 stringt.ads stringt.h style.adb style.ads stylesw.adb
40936 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40937 table.adb table.ads targparm.adb targparm.ads targtyps.c
40938 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40939 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40940 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40941 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40942 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40943 usage.ads utils.c utils2.c validsw.adb validsw.ads
40944 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40945 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40946 xtreeprs.adb: Correct statements in comments about maintainership
40949 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40951 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40952 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40953 * gnatvsn.ads: Gnat_Version_String is now a function.
40954 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40955 copy the C version_string into a String and return it.
40956 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40957 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40958 Remove pragma Ident (Gnat_Version_String). If this was the
40959 sole use of package Gnatvsn, remove the with statement too.
40960 * gnat1drv.adb: Tweak -gnatv output.
40962 2002-09-17 Richard Henderson <rth@redhat.com>
40964 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40965 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40966 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40967 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40968 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40969 and real_2expN instead of a loop.
40970 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40971 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40973 2002-08-25 Andre Leis <a.leis@gmx.net>
40974 David Billinghurst <David.Billinghurst@riotinto.com>
40976 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40978 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40980 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40981 Remove $(CONFIG_H) dependency.
40983 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40985 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40987 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40989 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40991 * misc.c (gnat_decode_option): Likewise.
40993 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
40995 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40996 function approach did not work well because of a side effect (the
40997 function call could reallocate the table which was being indexed
40998 using its result). Fixes ada/4851. [RESURRECTED]
41000 2002-07-01 Roger Sayle <roger@eyesopen.com>
41002 * ada/utils.c (builtin_function): Accept an additional parameter.
41004 2002-06-28 Andreas Jaeger <aj@suse.de>
41007 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
41010 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41012 * Makefile.in (SHELL): Set to @SHELL@.
41014 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41016 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
41017 array size calculation.
41019 2002-06-04 Andreas Jaeger <aj@suse.de>
41021 * Make-lang.in (gnatbind): Readd rule that has been lost in last
41024 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
41026 Merge from pch-branch:
41028 * config-lang.in (gtfiles): Add ada-tree.h.
41029 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
41030 (SET_TYPE_MODULUS): New.
41031 (SET_TYPE_INDEX): New.
41032 (SET_TYPE_DIGITS_VALUE): New.
41033 (SET_TYPE_RM_SIZE): New.
41034 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
41035 (SET_TYPE_ADA_SIZE): New.
41036 (SET_TYPE_ACTUAL_BOUNDS): New.
41037 (SET_DECL_CONST_CORRESPONDING_VAR): New.
41038 (SET_DECL_ORIGINAL_FIELD): New.
41039 (TREE_LOOP_ID): Correct typo.
41040 * decl.c: Use new macros.
41041 * utils.c: Include debug.h, use new macros.
41042 * utils2.c: Use new macros.
41044 * ada-tree.h: Update all macros for new tree description.
41045 (struct tree_loop_id): New.
41046 (union lang_tree_node): New.
41047 (struct lang_decl): New.
41048 (struct lang_type): New.
41049 * misc.c (gnat_mark_tree): Delete.
41050 (LANG_HOOKS_MARK_TREE): Delete.
41051 * trans.c (tree_transform): No longer any need to cast
41054 * utils.c (struct language_function): New dummy structure.
41056 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41057 (misc.o): Likewise.
41058 (utils.o): Likewise; also gtype-ada.h.
41059 * Make-lang.in (gnat1): Add dependency on s-gtype.
41060 (gnatbind): Add dependency on $(CONFIG_H).
41061 * utils.c: Correct last #include.
41062 (stuct e_stack): Remove unnecessary 'static'.
41063 (mark_e_stack): Remove unused prototype.
41065 * scn-nlit.adb: Remove whitespace after version number to
41066 keep lines under 80 chars.
41067 * snames.adb: Likewise.
41068 * treepr.ads: Likewise.
41070 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41071 (misc.o): Likewise.
41072 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41073 * config-lang.in (gtfiles): New.
41074 * decl.c: Use gengtype for roots.
41075 * gigi.h: Use gengtype for roots.
41076 * trans.c: Use gengtype for roots.
41077 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
41079 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
41081 * misc.c (gnat_init): Adjust setting of internal_error_function.
41083 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
41085 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41086 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41087 gnat_ug_wnt.texi: Regenerate.
41089 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
41091 * 5ntaprop.adb (with System.OS_Primitives): Remove.
41093 * cstreams.c (max_path_len): Move from here ...
41094 * adaint.c (__gnat_max_path_len): ... to here.
41095 * adaint.c (__gnat_max_path_len): Declare.
41096 * g-dirope.adb (Max_Path): Adjust.
41097 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
41098 * i-cstrea.ads (max_path_len): Adjust.
41099 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41100 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41102 * Makefile.in, Make-lang.in: Documentation is now built in
41103 Make-lang.in. Store Info and generated Texinfo files in the
41105 * gnat_ug.texi: Remove CVS keywords, correct version number.
41106 Set file name correctly.
41108 * gnat_ug_*.texi: Add.
41109 * .cvsignore: Ignore generated Texinfo files.
41111 2002-05-30 Zack Weinberg <zack@codesourcery.com>
41113 * ada.h: Add MI guard macro.
41114 (SUBTYPE): Define constants with an anonymous enum, not static
41116 (IN): Cast constants to appropriate type before use.
41118 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
41120 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41123 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41125 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41126 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41127 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41128 (ALL_ADA_CFLAGS): Likewise.
41129 (ADA_INCLUDES): Likewise.
41130 Adapt for new working dir.
41131 (GNATBIND): Use Makefile.in version.
41132 (.SUFFIXES): Copy from Makefile.in.
41133 (ada-warn): Define.
41134 (.adb.o, .ads.o): Copy from Makefile.in.
41135 Added $(OUTPUT_OPTION).
41136 (GNAT1_C_OBJS): Moved from Makefile.in.
41137 Prefix with ada subdir.
41138 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41139 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41140 Adapt for new working dir.
41141 (EXTRA_GNATBIND_OBJS): Likewise.
41142 (ADA_BACKEND): Moved from Makefile.in.
41143 Renamed to avoid conflict with global BACKEND.
41145 (TARGET_ADA_SRCS): Moved from Makefile.in.
41146 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41148 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41149 (ada_extra_files): Moved from Makefile.in.
41150 Prefix with ada subdir.
41151 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41152 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41153 (ada/nmake.ads): Likewise.
41154 (update-sources): Moved from Makefile.in.
41155 Prefix with ada subdir.
41156 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41157 (ADA_TREE_H): Likewise.
41158 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41159 (ada/memtrack.o): Likewise.
41160 (ada/adadecode.o): Likewise.
41161 Update dependencies.
41162 (ada/adaint.o): New.
41163 (ada/argv.o): Moved from Makefile.in.
41164 Prefix with ada subdir.
41165 Update dependencies.
41166 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41167 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41168 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41169 Prefix with ada subdir.
41170 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41171 (GNAT DEPENDENCIES): Regenerate.
41172 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41173 toplevel Makefile.in.
41174 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41175 (TARGET_ADA_SRCS): Removed.
41176 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41177 (GNATBIND_OBJS): Likewise.
41178 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41179 (BACKEND): Removed.
41180 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41181 (TREE_H): Likewise.
41182 (ada_extra_files): Likewise.
41183 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41184 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41185 (update-sources): Likewise.
41186 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41187 (ADA_TREE_H): Likewise.
41188 (adadecoce.o): Likewise.
41189 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41190 (GNAT DEPENDENCIES): Likewise.
41192 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41194 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41195 * Makefile.in: Likewise.
41197 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41199 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41200 Restore $(CONFIG_H) and prefix.o dependencies.
41201 (ada.stage[1-4]): Depend on stage?-start.
41203 * Makefile.in (b_gnatb.c): Depend on interfac.o.
41205 2002-05-02 Jim Wilson <wilson@redhat.com>
41207 * utils.c (finish_record_type): Change record_size to record_type.
41209 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
41211 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41212 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41213 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41215 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
41217 * misc.c (gnat_parse_file): Update.
41219 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41221 * misc.c (gnat_init): Don't set lang_attribute_common.
41223 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41225 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41227 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41229 * gnat_ug.texi: New file.
41231 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41232 instead of gfdl.texi
41234 * xgnatug.adb, ug_words: New files.
41236 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41237 gnat_rm and gnat-style manuals.
41239 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41241 * gigi.h (incomplete_type_error): Remove.
41242 * utils.c (incomplete_type_error): Remove.
41244 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41246 * trans.c (tree_transform): Add has_scope argument to
41247 expand_start_stmt_expr.
41249 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41251 * gigi.h (truthvalue_conversion): Rename.
41252 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41253 * trans.c (tree_transform): Update.
41254 * utils2.c (truthvalue_conversion): Rename, update.
41255 (build_binary_op, build_unary_op): Update.
41257 2002-04-04 Laurent Guerby <guerby@acm.org>
41259 * make.adb: Implement -margs, remove restriction about file name placement.
41260 * makeusg.adb: Documentation update.
41261 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41262 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41264 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41266 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41267 (builtin_function): Similarly.
41269 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41271 * decl.c (gnat_to_gnu_entity): Update.
41272 * gigi.h (mark_addressable): Rename.
41273 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41274 * trans.c (tree_transform): Update.
41275 * utils.c (create_var_decl): Update.
41276 * util2.c (build_binary_op, build_unary_op,
41277 fill_vms_descriptor): Update.
41278 (mark_addressable): Rename, update.
41280 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41282 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41284 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41285 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41286 * trans.c (tree_transform, convert_with_check): Update.
41287 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41290 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41292 * gigi.h (finish_incomplete_decl): Rename.
41293 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41294 * utils.c (gnat_init_decl_processing): Don't set hook.
41295 (finish_incomplete_decl): Rename.
41297 2002-03-29 Andreas Schwab <schwab@suse.de>
41299 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41302 2001-03-28 Robert Dewar <dewar@gnat.com>
41305 (Remove_Checks): New procedure
41308 (Remove_Checks): New procedure
41311 Use new Duplicate_Subexpr functions
41312 (Duplicate_Subexpr_No_Checks): New procedure
41313 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41314 (Duplicate_Subexpr): Restore original form (checks duplicated)
41315 (Duplicate_Subexpr): Call Remove_Checks
41318 (Duplicate_Subexpr_No_Checks): New procedure
41319 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41320 Add 2002 to copyright notice
41322 * sem_util.adb: Use new Duplicate_Subexpr functions
41325 (Eval_Indexed_Component): This is the place to call
41326 Constant_Array_Ref and to replace the value. We simply merge
41327 the code of this function in here, since it is now no longer
41328 used elsewhere. This fixes the problem of the back end not
41329 realizing we were clever enough to see that this was
41331 (Expr_Val): Remove call to Constant_Array_Ref
41332 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41334 (Constant_Array_Ref): Deal with string literals (patch
41335 suggested by Zack Weinberg on the gcc list)
41337 2001-03-28 Ed Schonberg <schonber@gnat.com>
41339 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41340 Duplicate_Subexpr_Move_Checks.
41342 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41343 Duplicate_Subexpr_Move_Checks.
41345 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41346 value of array exists before retrieving it (it may a private
41347 protected component in a function).
41349 2002-03-28 Geert Bosch <bosch@gnat.com>
41351 * prj-pp.adb : New file.
41353 * prj-pp.ads : New file.
41355 2002-03-28 Andreas Jaeger <aj@suse.de>
41357 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41359 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41361 * misc.c (gnat_expand_expr): Move prototype.
41363 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41365 * misc.c (insert_default_attributes): Remove.
41367 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41369 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41370 (gnat_init): Don't set hook.
41371 (gnat_expand_expr): Fix prototype.
41373 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41375 * misc.c (ggc_p): Remove.
41377 2002-03-27 Geert Bosch <bosch@gnat.com>
41379 * prj-makr.ads, prj-makr.adb : New files.
41381 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41383 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41384 (lang_mark_tree): Make static, rename.
41386 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41388 * misc.c (maybe_build_cleanup): Remove.
41390 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41392 * gigi.h (yyparse): Remove.
41394 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41396 From Ben Brosgol <brosgol@gnat.com>
41397 * gnat_rm.texi: Sync with ACT version.
41399 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41401 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41402 (gnat_init): Remove old hook.
41404 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41406 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41407 (yyparse): Rename gnat_parse_file.
41409 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41411 Delete all lines containing "$Revision:".
41412 * xeinfo.adb: Don't look for revision numbers.
41413 * xnmake.adb: Likewise.
41414 * xsinfo.adb: Likewise.
41415 * xsnames.adb: Likewise.
41416 * xtreeprs.adb: Likewise.
41418 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41420 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41421 gnat_tree_code_name): Delete.
41422 (tree_code_type, tree_code_length, tree_code_name): Define.
41423 (gnat_init): Don't try to copy into the various tree_code
41426 2002-03-11 Richard Henderson <rth@redhat.com>
41428 * Makefile.in (.NOTPARALLEL): Add fake tag.
41430 2002-03-07 Geert Bosch <bosch@gnat.com>
41432 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41433 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41434 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41435 switch-m.adb, switch-m.ads : New files.
41437 2002-03-07 Geert Bosch <bosch@gnat.com>
41439 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41440 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41441 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41442 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41443 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41444 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41445 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41446 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41447 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41448 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41449 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41450 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41451 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41452 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41453 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41454 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41455 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41456 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41457 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41458 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41459 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41460 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41461 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41462 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41463 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41464 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41465 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41466 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41467 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41468 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41469 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41470 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41471 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41472 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41473 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41474 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41475 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41476 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41477 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41478 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41479 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41480 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41481 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41482 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41483 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41484 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41485 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41486 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41487 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41488 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41489 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41490 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41491 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41492 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41493 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41494 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41495 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41496 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41497 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41498 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41499 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41500 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41501 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41502 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41503 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41504 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41505 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41506 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41507 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41508 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41509 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41510 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41511 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41512 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41513 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41514 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41515 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41516 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41517 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41518 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41519 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41520 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41521 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41522 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41523 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41524 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41525 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41526 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41527 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41528 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41529 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41530 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41531 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41532 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41533 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41534 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41535 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41537 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41538 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41539 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41540 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41542 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41543 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41545 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41546 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41548 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41549 from mdllfile.ad[bs] and mdlltool.ad[bs]
41551 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41553 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41554 lieu of explicit sizeof/sizeof.
41556 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41558 * misc.c (copy_lang_decl): Remove.
41560 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41562 * misc.c: Delete traditional-mode-related code copied from the
41563 C front end but not used, or used only to permit the compiler
41566 2002-02-07 Richard Henderson <rth@redhat.com>
41568 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41569 * adaint.h (__gnat_to_gm_time): Update prototype.
41571 2002-01-30 Richard Henderson <rth@redhat.com>
41573 * trans.c (tree_transform) [N_Loop_Statement]: Use
41574 expand_exit_loop_top_cond.
41576 2001-12-23 Richard Henderson <rth@redhat.com>
41578 * utils.c (end_subprog_body): Push GC context around
41579 rest_of_compilation for nested functions.
41581 2001-12-23 Richard Henderson <rth@redhat.com>
41583 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41585 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41587 * gnat-style.texi (Declarations and Types): Remove ancient style
41588 rule which was mandated by code generation issues.
41590 * gnat-style.texi (header): Add @dircategory, @direntry.
41591 (title page): Remove date.
41592 (general) Add @./@: where approriate, and two spaces after the
41593 full stop at the end of a sentence. Use @samp markup when
41594 referring concrete lexical entities (keywords, attribute names
41595 etc.), and @syntax for ARM grammar elements. Use @r for English
41596 text in comments. Use @emph for emphasis. Change "if-statements"
41597 etc. to "if statements" (without @samp). Break long lines. Make
41598 casing of section names consistent.
41599 (Identifiers): Use @samp markup for variable names.
41600 (Comments): Use @samp markup for comment characters. Line-end
41601 comments may follow any Ada code, not just statements. Fix
41602 misspelling of "Integer" as "integer".
41603 (Loop statements): Do not use variable name "I", use "J".
41604 (Subprogram Declarations): Document alignment.
41605 (Subprogram Bodies, Block statements): Document empty line before
41608 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41610 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41611 function approach did not work well because of a side effect (the
41612 function call could reallocate the table which was being indexed
41613 using its result). Fixes ada/4851.
41615 2001-12-19 Robert Dewar <dewar@gnat.com>
41617 * bindgen.adb: Minor reformatting
41619 * cstand.adb: Minor reformatting
41621 * fmap.adb: Minor reformatting
41622 Change name from Add for Add_To_File_Map (Add is much too generic)
41623 Change Path_Name_Of to Mapped_Path_Name
41624 Change File_Name_Of to Mapped_File_Name
41625 Fix copyright dates in header
41628 Change name from Add for Add_To_File_Map (Add is much too generic)
41629 Change Path_Name_Of to Mapped_Path_Name
41630 Change File_Name_Of to Mapped_File_Name
41631 Fix copyright dates in header
41633 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41634 Add use clause for Fmap.
41636 * make.adb: Minor reformatting
41638 * osint.adb: Minor reformatting. Change of names in Fmap.
41639 Add use clause for Fmap.
41641 * prj-env.adb: Minor reformatting
41643 * prj-env.ads: Minor reformatting
41645 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41646 error found (there were odd exceptions to this general rule in
41647 -gnatec/-gnatem processing)
41649 2001-12-19 Olivier Hainque <hainque@gnat.com>
41651 * raise.c (__gnat_eh_personality): Exception handling personality
41652 routine for Ada. Still in rough state, inspired from the C++ version
41653 and still containing a bunch of debugging artifacts.
41654 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41655 inspired from the C++ library.
41657 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41658 exception handling integration.
41660 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41662 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41663 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41664 (HIE_OBJS): Add s-fat*.o
41665 (RAVEN_SOURCES): Remove files that are no longer required. Add
41666 interrupt handling files.
41667 (RAVEN_MOD): Removed, no longer needed.
41669 2001-12-19 Robert Dewar <dewar@gnat.com>
41671 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41672 Add 2001 to copyright date
41674 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41675 need to force universal inlining for these cases.
41677 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41679 * s-taprob.adb: Minor clean ups so that this unit can be used in
41682 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41683 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41685 2001-12-19 Vincent Celier <celier@gnat.com>
41687 * prj-tree.ads (Project_Node_Record): Add comments for components
41688 Pkg_Id and Case_Insensitive.
41690 2001-12-19 Pascal Obry <obry@gnat.com>
41692 * g-socket.adb: Minor reformatting. Found while reading code.
41694 2001-12-19 Robert Dewar <dewar@gnat.com>
41696 * prj-tree.ads: Minor reformatting
41698 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41700 * config-lang.in (diff_excludes): Remove.
41702 2001-12-17 Ed Schonberg <schonber@gnat.com>
41704 * sem_res.adb (Resolve_Selected_Component): do not generate a
41705 discriminant check if the selected component is a component of
41706 the argument of an initialization procedure.
41708 * trans.c (tree_transform, case of arithmetic operators): If result
41709 type is private, the gnu_type is the base type of the full view,
41710 given that the full view itself may be a subtype.
41712 2001-12-17 Robert Dewar <dewar@gnat.com>
41714 * sem_res.adb: Minor reformatting
41716 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41717 parameter in call to Machine (unknown horrible effects from this
41720 * urealp.h: Add definition of Round_Even for call to Machine
41721 Add third parameter for Machine
41723 2001-12-17 Ed Schonberg <schonber@gnat.com>
41725 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41726 predefined units in No_Run_Time mode.
41728 2001-12-17 Richard Kenner <kenner@gnat.com>
41730 * misc.c (insn-codes.h): Now include.
41732 2001-12-17 Olivier Hainque <hainque@gnat.com>
41734 * a-except.adb: Preparation work for future integration of the GCC 3
41735 exception handling mechanism
41736 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41737 to factorize previous code sequences and make them externally callable,
41738 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41739 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41740 Use the new notification routines.
41742 2001-12-17 Emmanuel Briot <briot@gnat.com>
41744 * prj-tree.ads (First_Choice_Of): Document the when others case
41746 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41748 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41749 HI-E mode, in order to support Ravenscar profile properly.
41751 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41752 mode on 32 bits targets.
41754 2001-12-17 Vincent Celier <celier@gnat.com>
41756 * fmap.adb: Initial version.
41758 * fmap.ads: Initial version.
41760 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41761 If search is successfully done, add to mapping.
41763 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41766 (Gnatmake): Add new local variable Mapping_File_Name.
41767 Create mapping file when using project file(s).
41768 Delete mapping file before exiting.
41770 * opt.ads (Mapping_File_Name): New variable
41772 * osint.adb (Find_File): Use path name found in mapping, if any.
41774 * prj-env.adb (Create_Mapping_File): New procedure
41776 * prj-env.ads (Create_Mapping_File): New procedure.
41778 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41781 * usage.adb: Add entry for new switch -gnatem.
41783 * Makefile.in: Add dependencies for fmap.o.
41785 2001-12-17 Ed Schonberg <schonber@gnat.com>
41787 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41788 is a package instantiation rewritten as a package body.
41789 (Install_Withed_Unit): Undo previous change, now redundant.
41791 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41794 (Compute_Length): Move conversion to Unsigned to callers.
41795 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41796 Compute_Length and Determine_Range.
41797 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41798 Compute_Length and Determine_Range.
41799 Above changes fix problem with length computation for supernull arrays
41800 where Max (Len, 0) wasn't getting applied due to the Unsigned
41801 conversion used by Compute_Length.
41803 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41806 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41807 System.Secondary_Stack.
41808 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41810 Remove unused entity RE_Exception_Data.
41812 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41814 * rident.ads (No_Secondary_Stack): New restriction.
41816 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41818 * gnat_rm.texi: Fix minor typos. Found while reading the section
41819 regarding "Bit_Order Clauses" that was sent to a customer.
41820 Very interesting documentation!
41822 2001-12-17 Robert Dewar <dewar@gnat.com>
41824 * sem_case.adb (Choice_Image): Avoid creating improper character
41825 literal names by using the routine Set_Character_Literal_Name. This
41826 fixes bombs in certain error message cases.
41828 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41830 * a-reatim.adb: Minor reformatting.
41832 2001-12-17 Ed Schonberg <schonber@gnat.com>
41834 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41835 case where the formal is an extension of another formal in the current
41836 unit or in a parent generic unit.
41838 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41840 * s-tposen.adb: Update comments. Minor reformatting.
41841 Minor code clean up.
41843 * s-tarest.adb: Update comments. Minor code reorganization.
41845 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41847 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41850 2001-12-17 Robert Dewa <dewar@gnat.com>
41852 * exp_attr.adb: Minor reformatting
41854 2001-12-17 Ed Schonberg <schonber@gnat.com>
41856 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41857 derivations nested within a child unit: verify that the parent
41858 type is declared in an outer scope.
41860 2001-12-17 Robert Dewar <dewar@gnat.com>
41862 * sem_ch12.adb: Minor reformatting
41864 2001-12-17 Ed Schonberg <schonber@gnat.com>
41866 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41867 warning if current unit is a predefined one, from which bodies may
41870 2001-12-17 Robert Dewar <dewar@gnat.com>
41872 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41873 Fix header format. Add 2001 to copyright date.
41875 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41876 which caused CE during compilation if checks were enabled.
41878 2001-12-17 Vincent Celier <celier@gnat.com>
41881 (Switches_Of): New function
41882 (Test_If_Relative_Path): New procedure
41883 (Add_Switches): Use new function Switches_Of
41884 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41885 When using a project file, test if there are any relative
41886 search path. Fail if there are any.
41887 (Gnatmake): Only add switches for the primary directory when not using
41888 a project file. When using a project file, change directory to the
41889 object directory of the main project file. When using a project file,
41890 test if there are any relative search path. Fail if there are any.
41891 When using a project file, fail if specified executable is relative
41892 path with directory information, and prepend executable, if not
41893 specified as an absolute path, with the exec directory. Make sure
41894 that only one -o switch is transmitted to the linker.
41896 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41899 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41900 when using a non standard naming scheme.
41901 (Check_Ada_Naming_Scheme): Make sure that error messages
41902 do not raise exceptions.
41903 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41904 (Language_Independent_Check): Check the exec directory.
41906 * prj.adb (Project_Empty): Add new component Exec_Directory
41909 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41910 (Project_Data): Add component Exec_Directory
41912 * snames.adb: Updated to match snames.ads revision 1.215
41914 * snames.ads: Added Exec_Dir
41916 2001-12-17 Robert Dewar <dewar@gnat.com>
41918 * make.adb: Minor reformatting
41920 * prj-nmsc.adb: Minor reformatting
41922 * snames.adb: Updated to match snames.ads
41924 * snames.ads: Alphebetize entries for project file
41926 2001-12-17 Ed Schonberg <schonber@gnat.com>
41928 * trans.c (process_freeze_entity): Do nothing if the entity is a
41929 subprogram that was already elaborated.
41931 2001-12-17 Richard Kenner <kenner@gnat.com>
41933 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41934 and Esize if object is referenced via pointer.
41936 2001-12-17 Ed Schonberg <schonber@gnat.com>
41938 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41939 is discrete before analyzing choices.
41941 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41943 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41944 containing the name of the Ada Main Program. This string is mainly
41945 intended for the debugger.
41946 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41948 2001-12-17 Robert Dewar <dewar@gnat.com>
41950 * ali.adb: Set new Dummy_Entry field in dependency entry
41952 * ali.ads: Add Dummy_Entry field to source dependency table
41954 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41956 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41958 * lib-writ.ads: Document dummy D lines for missing files.
41960 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41962 2001-12-17 Robert Dewar <dewar@gnat.com>
41964 * ali.adb: Type reference does not reset current file.
41966 * ali.adb: Recognize and scan renaming reference
41968 * ali.ads: Add spec for storing renaming references.
41970 * lib-xref.ads: Add documentation for handling of renaming references
41972 * lib-xref.adb: Implement output of renaming reference.
41975 (Determine_Range): Document local variables
41976 (Determine_Range): Make sure Hbound is initialized. It looks as though
41977 there could be a real problem here with an uninitialized reference
41978 to Hbound, but no actual example of failure has been found.
41980 2001-12-17 Laurent Pautet <pautet@gnat.com>
41983 Fix comment of Shutdown_Socket and Close_Socket. These functions
41984 should not fail silently because if they are called twice, this
41985 probably means that there is a race condition in the user program.
41986 Anyway, this behaviour is consistent with the rest of this unit.
41987 When an error occurs, an exception is raised with the error message
41988 as exception message.
41990 2001-12-17 Robert Dewar <dewar@gnat.com>
41992 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41993 that it happens before modification of Sloc values for -gnatD.
41995 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41996 so that it happens before modification of Sloc values for -gnatD.
41998 * switch.adb: Minor reformatting
42000 2001-12-15 Richard Henderson <rth@redhat.com>
42002 * sem_ch7.adb: Wrap comment.
42004 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42006 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
42007 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
42008 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
42009 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
42010 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
42011 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
42012 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
42013 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
42014 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
42015 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
42016 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
42017 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
42018 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
42019 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
42020 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
42021 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
42022 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
42023 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
42024 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
42025 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
42026 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
42027 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
42028 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
42029 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
42032 2001-12-14 Vincent Celier <celier@gnat.com>
42034 * osint.adb(Create_Debug_File): When an object file is specified,
42035 put the .dg file in the same directory as the object file.
42037 2001-12-14 Robert Dewar <dewar@gnat.com>
42039 * osint.adb: Minor reformatting
42041 * lib-xref.adb (Output_Instantiation): New procedure to generate
42042 instantiation references.
42044 * lib-xref.ads: Add documentation of handling of generic references.
42046 * ali.adb (Read_Instantiation_Ref): New procedure to read
42047 instantiation references
42049 * ali.ads: Add spec for storing instantiation references
42051 * bindusg.adb: Minor reformatting
42053 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42055 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42057 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42059 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
42063 Add 2001 to copyright date
42064 Add entry for Latin-5 (Cyrillic ISO-8859-5)
42066 2001-12-14 Matt Gingell <gingell@gnat.com>
42068 * adaint.c: mktemp is a macro on Lynx and can not be used as an
42071 2001-12-14 Richard Kenner <kenner@gnat.com>
42073 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
42074 if operand is CONSTRUCTOR.
42076 2001-12-14 Ed Schonberg <schonber@gnat.com>
42078 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42079 before emiting check on right-hand side, so that exception information
42082 2001-12-14 Richard Kenner <kenner@gnat.com>
42084 * utils.c (create_var_decl): Throw away initializing expression
42085 if just annotating types and non-constant.
42087 2001-12-14 Vincent Celier <celier@gnat.com>
42089 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42092 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42094 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
42096 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42098 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42100 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42102 * ChangeLog: Remove piece of diff output.
42104 2001-12-14 Geert Bosch <bosch@gnat.com>
42106 * config-lang.in: Update copyright notice
42108 * layout.adb: Remove commented out code.
42110 * mdllfile.ads: Update copyright notice. Fix header format.
42112 * sem_case.ads: Likewise.
42114 * sem_ch3.adb: Minor reformatting.
42116 2001-12-12 Geert Bosch <bosch@gnat.com>
42118 * freeze.ads: Update copyright date.
42120 * g-comlin.ads: Minor reformatting.
42122 * gnat-style.texi: Fix typo.
42124 2001-12-12 Geert Bosch <bosch@gnat.com>
42126 * einfo.h: Regenerate.
42128 2001-12-12 Ed Schonberg <schonber@gnat.com>
42130 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
42131 on known node types, rather than untyped fields. Further cleanups.
42133 2001-12-12 Robert Dewar <dewar@gnat.com>
42136 (Save_Entity_Descendant): Minor comment update.
42137 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
42138 of an N_Attribute_Reference node. As per note below, this does not
42139 eliminate need for Associated_Node in attribute ref nodes.
42140 (Associated_Node): Documentation explicitly mentions attribute
42141 reference nodes, since this field is used in such nodes.
42143 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42145 2001-12-12 Robert Dewar <dewar@gnat.com>
42147 * s-stalib.adb: Add more comments on with statements being needed
42149 * par-ch12.adb: Minor reformatting
42151 * prj-dect.ads: Fix copyright header
42153 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
42154 inputs fit in 32 bits, but the result still overflows.
42156 * s-fatgen.ads: Minor comment improvement
42158 2001-12-12 Ed Schonberg <schonber@gnat.com>
42160 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42161 formal derived type, look for an inherited component from the full
42162 view of the parent, if any.
42164 2001-12-12 Robert Dewar <dewar@gnat.com>
42166 * checks.ads (Apply_Alignment_Check): New procedure.
42168 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42169 ensure that the alignment of objects with address clauses is
42170 appropriate, and raise PE if not.
42172 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
42173 Exp_Pakd.Known_Aligned_Enough
42175 * mdllfile.ads: Minor reformatting
42177 * mlib-fil.ads: Minor reformatting
42179 2001-12-12 Ed Schonberg <schonber@gnat.com>
42181 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42182 fix to any component reference if enclosing record has non-standard
42185 2001-12-12 Vincent Celier <celier@gnat.com>
42187 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42190 2001-12-12 Ed Schonberg <schonber@gnat.com>
42192 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42195 2001-12-12 Robert Dewar <dewar@gnat.com>
42197 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42199 2001-12-12 Emmanuel Briot <briot@gnat.com>
42201 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42202 and it adds dependencies to system.io.
42204 2001-12-12 Pascal Obry <obry@gnat.com>
42206 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42209 2001-12-11 Ed Schonberg <schonber@gnat.com>
42211 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42212 that is the parent of other generics, the instance body replaces the
42213 instance node. Retrieve the instance of the spec, which is the one
42214 that is visible in clients and within the body.
42216 2001-12-11 Vincent Celier <celier@gnat.com>
42218 * gnatmain.adb: Initial version.
42220 * gnatmain.ads: Initial version.
42222 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42224 * snames.adb: Updated to match snames.ads.
42226 * snames.ads: Added Gnatstub.
42228 2001-12-11 Vincent Celier <celier@gnat.com>
42230 * prj-attr.adb (Initialization_Data): Change name from
42231 Initialisation_Data.
42233 2001-12-11 Emmanuel Briot <briot@gnat.com>
42235 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42236 + and * applied to backslashed expressions like \r.
42238 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42240 * g-os_lib.ads: String_List type added, Argument_List type is now
42241 subtype of String_List.
42243 2001-12-11 Robert Dewar <dewar@gnat.com>
42245 * g-os_lib.ads: Change copyright to FSF
42246 Add comments for String_List type
42248 2001-12-11 Vincent Celier <celier@gnat.com>
42250 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42251 string to the buffer).
42253 2001-12-11 Ed Schonberg <schonber@gnat.com>
42255 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42258 * sem_attr.adb: Simplify previous fix for Address.
42259 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42260 to avoid anomalies where the bound of the type appears to raise
42263 2001-12-11 Robert Dewar <dewar@gnat.com>
42265 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42268 2001-12-11 Ed Schonber <schonber@gnat.com>
42270 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42271 renamed unit before checking for recursive instantiations.
42273 2001-12-11 Emmanuel Briot <briot@gnat.com>
42275 * prj.ads: Add comments for some of the fields.
42277 2001-12-11 Robert Dewar <dewar@gnat.com>
42279 * lib-xref.adb (Output_Refs): Don't output type references outside
42280 the main unit if they are not otherwise referenced.
42282 2001-12-11 Ed Schonberg <schonber@gnat.com>
42284 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42285 code and diagnose additional illegal uses
42287 * sem_util.adb (Is_Object_Reference): An indexed component is an
42288 object only if the prefix is.
42290 2001-12-11 Vincent Celier <celier@gnat.com>
42292 * g-diopit.adb: Initial version.
42294 * g-diopit.ads: Initial version.
42297 (Expand_Path): Avoid use of Unbounded_String
42298 (Find, Wildcard_Iterator): Moved to child package Iteration
42300 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42302 2001-12-11 Robert Dewar <dewar@gnat.com>
42304 * sem_attr.adb: Minor reformatting
42306 2001-12-11 Ed Schonberg <schonber@gnat.com>
42308 * sem_ch3.adb: Clarify some ???.
42310 2001-12-11 Robert Dewar <dewar@gnat.com>
42312 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42313 Exp_Pakd.Known_Aligned_Enough
42315 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42316 version is moved to Exp_Ch13.
42318 2001-12-11 Robert Dewar <dewar@gnat.com>
42320 * einfo.ads: Minor reformatting
42322 * exp_ch5.adb: Add comment for previous.change
42324 * ali.adb: New interface for extended typeref stuff.
42326 * ali.ads: New interface for typeref stuff.
42328 * checks.adb (Apply_Alignment_Check): New procedure.
42330 * debug.adb: Add -gnatdM for modified ALI output
42332 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42334 * lib-xref.adb: Extend generation of <..> notation to cover
42335 subtype/object types. Note that this is a complete rewrite,
42336 getting rid of the very nasty quadratic algorithm previously
42337 used for derived type output.
42339 * lib-xref.ads: Extend description of <..> notation to cover
42340 subtype/object types. Uses {..} for these other cases.
42341 Also use (..) for pointer types.
42343 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42345 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42346 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42348 2001-12-11 Vincent Celier <celier@gnat.com>
42351 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42352 Changed /BIND_ONLY to /ACTIONS=BIND
42353 Changed /LINK_ONLY to /ACTIONS=LINK
42355 2001-12-11 Ed Schonberg <schonber@gnat.com>
42357 * sem_ch8.adb (Find_Selected_Component): improved search for a
42358 candidate package in case of error.
42360 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42361 chain back on scope stack before reinstalling use clauses.
42363 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42364 is enabled, do not kill the code for the condition, to preserve
42367 2001-12-11 Robert Dewar <dewar@gnat.com>
42369 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42370 of conversion, not to result of conversion.
42372 2001-12-11 Ed Schonberg <schonber@gnat.com>
42374 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42375 before freezing parent. If the declarations are mutually recursive,
42376 an access to the current record type may be frozen before the
42377 derivation is complete.
42379 2001-12-05 Vincent Celier <celier@gnat.com>
42381 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42382 -c /COMPILE_ONLY, -l /LINK_ONLY
42385 (Bind_Only): New Flag
42386 (Link_Only): New flag
42388 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42391 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42394 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42395 (Gnatmake): Set the step flags. Only perform a step if the
42396 corresponding step flag is True.
42397 (Scan_Make_Arg): Reset the bind and link step flags when -u
42398 or -gnatc has been specified.
42400 2001-12-05 Ed Schonberg <schonber@gnat.com>
42402 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42403 get bounds from right operand.
42405 * sem_eval.adb: Minor reformatting
42407 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42408 than Index'First, its lower bound may be different from 1.
42410 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42413 2001-12-05 Vincent Celier <celier@gnat.com>
42415 * prj-nmsc.adb Minor reformatting
42417 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42418 set and libraries are not supported.
42420 2001-12-05 Ed Schonberg <schonber@gnat.com>
42422 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42423 private view explicitly, so the back-end can treat as a global
42426 2001-12-05 Ed Schonberg <schonber@gnat.com>
42428 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42429 unit, always replace instance node with new body, for ASIS use.
42431 2001-12-05 Vincent Celier <celier@gnat.com>
42433 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42434 libraries are not supported and both attributes Library_Name and
42435 Library_Dir are specified.
42437 * prj-proc.adb (Expression): Set location of Result to location of
42440 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42441 (prj-nmsc is now importing MLib.Tgt)
42443 * prj-proc.adb: Put the change indicated above that was forgotten.
42445 2001-12-05 Robert Dewar <dewar@gnat.com>
42447 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42449 2001-12-05 Ed Schonberg <schonber@gnat.com>
42451 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42452 constraint, introduce explicit subtype declaration and derive from it.
42454 * sem_ch3.adb: Minor reformatting
42456 2001-12-05 Robert Dewar <dewar@gnat.com>
42458 * checks.adb (Determine_Range): Increase cache size for checks.
42461 * exp_ch6.adb: Minor reformatting
42462 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42463 a parameter whose root type is System.Address, since treating such
42464 subprograms as pure in the code generator is almost surely a mistake
42465 that will lead to unexpected results.
42467 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42468 change handling of conversions.
42470 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42472 2001-12-05 Ed Schonberg <schonber@gnat.com>
42474 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42475 aggregate with static wrong size, attach generated Raise node to
42478 2001-12-05 Robert Dewar <dewar@gnat.com>
42480 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42481 Fixes compilation abandoned bomb in B24009B.
42483 2001-12-05 Ed Schonberg <schonber@gnat.com>
42486 Document use of Associated_Node on Selected_Components.
42487 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42488 to clarify use of untyped descendant fields.
42490 2001-12-05 Robert Dewar <dewar@gnat.com>
42492 * prj-dect.ads: Add ??? comment
42493 Add 2001 to copyright notice (was not done in after all)
42495 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42497 * prj.ads: Minor reformatting throughout, and add some ??? comments
42499 * snames.ads: Minor reformatting
42501 2001-12-05 Geert Bosch <bosch@gnat.com>
42503 * snames.adb: Autoupdate
42505 2001-12-05 Vincent Celier <celier@gnat.com>
42507 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42509 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42511 * prj-env.adb: Minor comment changes (modifying -> extends).
42513 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42515 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42518 * prj.adb (Initialize): Change Modifying to Extends.
42520 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42522 * prj.ads: Minor comment change (Modifying -> extending).
42524 * snames.ads: Change modifying to extends.
42526 2001-12-05 Robert Dewar <dewar@gnat.com>
42528 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42531 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42532 do this after all. Add 2001 to copyright notice
42534 2001-12-04 Geert Bosch <bosch@gnat.com>
42536 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42538 2001-12-04 Robert Dewar <dewar@gnat.com>
42540 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42541 location if we already have errors. Stops some cases of cascaded
42544 * errout.adb: Improve comment.
42546 2001-12-04 Robert Dewar <dewar@gnat.com>
42549 (Analyze_Formal_Type_Definition): Defend against Error.
42550 (Analyze_Formal_Subprogram): Defend against Error.
42552 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42553 remove following semicolon if present. Removes cascaded error.
42555 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42558 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42559 exceptions equals 0.
42560 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42561 Fixes PIWG E tests (which have to be run with -gnatL).
42563 2001-12-04 Robert Dewar <dewar@gnat.com>
42565 * einfo.ads: Minor reformatting
42567 2001-12-04 Ed Schonberg <schonber@gnat.com>
42569 * einfo.ads: Block_Node points to the identifier of the block, not to
42570 the block node itself, to preserve the link when the block is
42571 rewritten, e.g. within an if-statement with a static condition.
42573 * inline.adb (Cleanup_Scopes): recover block statement from block
42574 entity using new meaning of Block_Node.
42576 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42577 identifier of block node, rather than to node itself.
42579 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42582 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42583 (Discrimify): Go back to setting the Etypes of the selected component
42584 because the Vname component does not exist at this point and will
42585 fail name resolution. Also set Analyzed.
42586 Remove with and use of Sem_Res.
42588 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42590 * Makefile.in: (HIE_SOURCES): add s-fat*.
42592 2001-12-04 Robert Dewar <dewar@gnat.com>
42595 (Compile_Time_Known_Attribute): New procedure.
42596 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42597 proper range check.
42599 2001-12-04 Ed Schonberg <schonber@gnat.com>
42601 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42602 processing discriminants to diagnose illegal default values.
42604 2001-12-04 Ed Schonberg <schonber@gnat.com>
42606 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42607 access discriminant within a type extension that constrains its
42608 parent discriminants.
42610 2001-12-04 Ed Schonberg <schonber@gnat.com>
42612 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42613 is malformed, use instance of Any_Id to allow analysis to proceed.
42615 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42616 type definition is illegal.
42617 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42620 2001-12-04 Ed Schonberg <schonber@gnat.com>
42622 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42625 2001-12-04 Robert Dewar <dewar@gnat.com>
42627 * errout.adb: Minor reformatting
42629 2001-12-04 Robert Dewar <dewar@gnat.com>
42631 * exp_util.adb: Minor reformatting from last change
42633 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42634 which is a rewriting of an expression, traverse the original
42635 expression to remove warnings that may have been posted on it.
42637 2001-12-04 Ed Schonberg <schonber@gnat.com>
42639 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42640 record that has other packed components.
42642 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42644 * adaint.c: Minor cleanups.
42646 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42648 * adaint.c: Do not use utime.h on vxworks.
42650 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42652 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42653 more confusion than it solves.
42655 2001-12-04 Geert bosch <bosch@gnat.com>
42657 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42659 2001-12-04 Geert Bosch <bosch@gnat.com>
42661 * Makefile.in (update-sources): New target.
42662 For use by gcc_release script.
42664 2001-12-04 Ed Schonberg <schonber@gnat.com>
42666 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42667 a configuration pragma, it is now legal wherever a pragma can appear.
42669 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42671 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42672 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42673 is now @CROSS@ -DIN_GCC; update comment.
42675 2001-12-04 Robert Dewar <dewar@gnat.com>
42677 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42678 Fix problem that stopped ceinfo from working
42680 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42682 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42684 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42687 (File_Time_Stamp): New procedure.
42688 (Preserve_Mode): New boolean.
42689 (Write_Unit): Pass time stamp.
42690 Implement -p switch (preserve time stamps).
42692 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42694 * gnatchop.adb: Do usage info for -p switch
42696 * adaint.h (__gnat_set_file_time_name): New function
42698 * adaint.c (__gnat_set_file_time_name): Implement
42700 * adaint.h: Fix typo
42702 2001-12-03 Robert Dewar <dewar@gnat.com>
42704 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42705 have Associated_Node.
42707 2001-12-03 Robert Dewar <dewar@gnat.com>
42709 * prj-proc.adb: Minor reformatting
42711 * make.adb: Minor reformatting
42713 2001-12-03 Geert Bosch <bosch@gnat.com>
42715 * make.adb: Minor reformatting.
42717 2001-12-03 Robert Dewar <dewar@gnat.com>
42719 * sem_ch12.adb: Minor reformatting
42721 2001-12-03 Ed Schonberg <schonber@gnat.com>
42723 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42724 push Standard on the stack before analyzing the instance body,
42725 in order to have a clean visibility environment.
42727 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42729 2001-12-03 Ed Schonberg <schonber@gnat.com>
42731 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42732 instantiation of a body that contains an inlined body.
42734 2001-12-03 Ed Schonberg <schonber@gnat.com>
42737 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42738 to prevent freezing within formal packages.
42739 (Freeze_Subprogram_Body): If body comes from another instance that
42740 appeared before its own body, place freeze node at end of current
42741 declarative part, to prevent a back-end crash.
42742 (Inline_Instance_Body): Handle properly a package instance within
42743 a subprogram instance that is a child unit.
42745 2001-12-01 Graham Stott <grahams@redhat.com>
42747 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42748 and add optabs.h dependency.
42750 * misc.c: Include optabs.h
42751 (gnat_tree_code_type): Make static and const.
42752 (gnat_tree_code_length): Likewise.
42753 (gnat_tree_code_name): Likewise.
42754 (update_setjmp_buf): Obtain operands mode from insn_data.
42756 2001-11-29 Richard Henderson <rth@redhat.com>
42758 * init.c: Remove obsolete dwarf2 frame.h section.
42760 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42762 * Make-lang.in (ada.generated-manpages): New dummy target.
42764 2001-11-29 Ed Schonberg <schonber@gnat.com>
42766 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42767 into Command, an array conversion is illegal here. Uncovered by
42770 2001-11-28 Geert Bosch <bosch@gnat.com>
42772 * init.c: Minor whitespace changes.
42774 2001-11-28 Doug Rupp <rupp@gnat.com>
42776 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42779 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42781 * misc.c (gnat_expand_constant): Move declaration above
42782 definition of lang_hooks.
42783 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42784 (gnat_init): lang_expand_constant no longer exists.
42786 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42787 always have vprintf.
42788 (gnat_init): Always call set_internal_error_function.
42790 2001-11-27 Andreas Jaeger <aj@suse.de>
42792 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42794 2001-11-27 Laurent Guerby <guerby@acm.org>
42796 * Makefile.in: Regenerate Ada dependencies.
42798 2001-11-26 Richard Henderson <rth@redhat.com>
42800 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42801 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42802 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42804 2001-11-25 Laurent Guerby <guerby@acm.org>
42806 * sysdep.c (rts_get_*): Fix style.
42808 2001-11-19 Laurent Guerby <guerby@acm.org>
42810 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42811 since it is of no apparent use and cause warnings.
42813 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42815 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42817 (gnat_init): Don't return NULL.
42818 (finish_parse): Remove.
42820 2001-11-17 Laurent Guerby <guerby@acm.org>
42822 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42823 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42824 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42825 * lang-spec.h: Add missing struct field to silence warnings.
42826 * sysdep.c (rts_get_*): Provide K&R prototype.
42827 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42828 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42829 * tracebak.c (__gnat_backtrace): Remove unused variable.
42830 * utils.c (end_subprog_body): Move to K&R style.
42832 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42834 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42836 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42838 * misc.c (gnat_init): Change prototype. Include the
42839 functionality of the old init_parse and init_decl_processing.
42840 (gnat_init_decl_processing): New prototype.
42841 (init_parse): Remove.
42842 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42844 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42846 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42847 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42848 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42849 set_yydebug): Remove.
42851 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42853 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42854 (struct lang_hooks): Constify.
42855 (language_string, lang_identify): Remove.
42856 * utils.c (init_decl_processing): Update.
42858 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42860 * misc.c: Include langhooks-def.h.
42861 * Makefile.in: Update.
42863 2001-10-30 Robert Dewar <dewar@gnat.com>
42866 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42867 in the upper half of ASCII.
42868 (Check_Identifier): Minor reformatting
42870 2001-10-30 Geert Bosch <bosch@gnat.com>
42872 * (Associated_Node, Set_Associated_Node): Do not check for
42875 2001-10-30 Robert Dewar <dewar@gnat.com>
42877 * a-reatim.ads: Minor reformatting
42879 2001-10-30 Robert Dewar <dewar@gnat.com>
42881 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42882 undocumented declarations.
42884 2001-10-30 Pascal Obry <obry@gnat.com>
42886 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42887 to the binder and linker.
42890 * mdll.ads: Fix layout. Update copyright notice.
42892 * mdll.adb: Fix layout. Update copyright notice.
42894 2001-10-30 Robert Dewar <dewar@gnat.com>
42896 * usage.adb: Minor fix to output for -gnaty.
42898 2001-10-30 Ed Schonberg <schonber@gnat.com>
42900 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42901 to accommodate all its possible values.
42903 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42904 and of small absolute values of T.
42906 2001-10-30 Richard Kenner <kenner@gnat.com>
42908 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42909 set_mem_attributes since not needed and wrong if RESULT if a REG;
42910 fixes ACATS failures.
42912 2001-10-30 Geert Bosch <bosch@gnat.com>
42914 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42915 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42917 2001-10-30 Robert Dewar <dewar@gnat.com>
42919 * bindusg.adb: Undocument -f switch.
42921 * gnatcmd.adb: Remove /FULL_ELABORATION.
42923 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42926 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42928 * gnatbind.adb: Minor update of warning msg.
42930 2001-10-30 Vincent Celier <celier@gnat.com>
42932 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42933 for project file switches (-P (/PROJECT_FILE=),
42934 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42937 2001-10-30 Geert Bosch <bosch@gnat.com>
42939 * decl.c: Minor whitespace fixes.
42941 2001-10-30 Richard Kenner <kenner@gnat.com>
42943 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42945 2001-10-30 Geert Bosch <bosch@gnat.com>
42947 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42948 Found due to GCC 3.0 warning of using uninitialized value.
42951 (Get_Max_Size): Use variant record for tracking value/expression.
42952 Makes logic clearer and prevents warnings for uninitialized variables.
42953 (Layout_Array_Type): Use variant record for tracking value/expression.
42954 Makes logic clearer and prevents warnings for uninitialized variables.
42956 2001-10-30 Robert Dewar <dewar@gnat.com>
42958 * lib.adb: Minor reformatting
42960 * s-taprop.ads: Minor reformatting
42962 2001-10-29 Laurent Guerby <guerby@acm.org>
42965 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42967 (_gnat_error_handler): Make MSG const.
42969 2001-10-29 Richard Kenner <kenner@gnat.com>
42971 * sysdep.c: Fix localtime_r problem on LynxOS.
42972 Also remove #elif to avoid warnings.
42974 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42977 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42979 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42981 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42982 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42983 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42984 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42985 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42986 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42987 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42988 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42989 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42990 types.ads, urealp.adb: Fix spelling errors.
42992 2001-10-27 Laurent Guerby <guerby@acm.org>
42994 * trans.c (gigi): Fix non determinism leading to bootstrap
42995 comparison failures for debugging information.
42997 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
42999 * gnat_rm.texi: Use @./@: where appropriate.
43001 2001-10-26 Robert Dewar <dewar@gnat.com>
43003 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
43005 2001-10-26 Richard Kenner <kenner@gnat.com>
43007 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
43009 2001-10-26 Richard Kenner <kenner@gnat.com>
43011 * decl.c (validate_size): Modify message for bad size to avoid
43012 implication that compiler is modifying the size.
43014 2001-10-26 Robert Dewar <dewar@gnat.com>
43016 * prj-util.adb: Minor reformatting. Fix bad header format.
43018 2001-10-26 Robert Dewar <dewar@gnat.com>
43020 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
43022 * sinfo.ads: Clarify use of Associated_Node (documentation only).
43024 * sem_ch12.adb: Change Node4 to Associated_Node. Change
43025 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
43026 much more narrowly in places where needed. These are cleanups.
43028 2001-10-26 Joel Brobecker <brobecke@gnat.com>
43030 * 5zosinte.ads (null_pthread): new constant.
43033 (Initialize_TCB): Initialize thread ID to null, to be able to verify
43034 later that this field has been set.
43035 (Finalize_TCB): ditto.
43036 (Suspend_Task): Verify that the thread ID is not null before using it.
43037 (Resume_Task): ditto.
43040 (Resume_All_Tasks): Lock the tasks list before using it.
43041 (Suspend_All_Tasks): ditto.
43043 2001-10-26 Richard Kenner <kenner@gnat.com>
43045 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
43046 Make constant variant of designated type for Is_Access_Constant.
43047 Call update_pointer_to with main variant.
43049 * trans.c (process_freeze_entity, process_type):
43050 Call update_pointer_to on main variant.
43052 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43053 If main variant, update all other variants.
43055 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
43058 2001-10-26 Robert Dewar <dewar@gnat.com>
43060 * prj-util.adb: Minor reformatting
43062 2001-10-26 Robert Dewar <dewar@gnat.com>
43064 * prj-util.adb: Minor reformatting
43066 2001-10-26 Robert Dewar <dewar@gnat.com>
43068 * prj-attr.adb: Minor reformatting throughout
43070 2001-10-26 Robert Dewar <dewar@gnat.com>
43072 * prj-attr.ads: Minor reformatting
43073 Add ??? comment (this whole spec has almost no comments)
43075 2001-10-26 Vincent Celier <celier@gnat.com>
43077 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
43078 ("//") that precede the drive letter on Interix.
43080 2001-10-26 Geert Bosch <bosch@gnat.com>
43082 * gnat_rm.texi: Add GNAT Reference Manual.
43084 2001-10-25 Robert Dewar <dewar@gnat.com>
43086 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
43087 is Error. Similar change for other renaming cases.
43089 2001-10-25 Robert Dewar <dewar@gnat.com>
43091 * s-atacco.ads: Add pragma Inline_Always for functions.
43092 Fix header format. Add copyright 2001
43094 2001-10-25 Ed Schonberg <schonber@gnat.com>
43096 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
43097 return Error rather than Empty so that analysis can proceed.
43099 2001-10-25 Ed Schonberg <schonber@gnat.com>
43101 * sem_util.adb (Enter_Name): better handling of cascaded error
43102 messages when a unit appears in its own context.
43104 2001-10-25 Ed Schonberg <schonber@gnat.com>
43106 * sem_util.adb (Defining_Entity): in case of error, attach created
43107 entity to specification, so that semantic analysis can proceed.
43109 2001-10-25 Robert Dewar <dewar@gnat.com>
43112 (Defining_Entity): Deal with Error.
43113 (Process_End_Label): Deal with bad end label for.
43115 2001-10-25 Ed Schonberg <schonber@gnat.com>
43117 * sem_elab.adb (Check_A_Call): refine message when call is in an
43118 instance but callee is not declared in the generic unit.
43120 2001-10-25 Ed Schonberg <schonber@gnat.com>
43122 * sem_elab.adb (Check_A_Call): check for renaming before finding the
43123 enclosing unit, which may already be different from the calling unit.
43125 2001-10-25 Geert Bosch <bosch@gnat.com>
43127 * 4gintnam.ads: fix header format.
43129 2001-10-25 Ed Schonberg <schonber@gnat.com>
43131 * sem_res.adb (Resolve_Call): if the call is actually an indexing
43132 operation on the result of a parameterless call, perform elaboration
43133 check after the node has been properly rewritten.
43135 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
43136 inlined within the generic tree, the defining identifier is not a
43139 2001-10-25 Ed Schonberg <schonber@gnat.com>
43141 * sem_res.adb (Resolve): special-case resolution of Null in an
43142 instance or an inlined body to avoid view conflicts.
43144 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
43145 compatibility by retrieving the access type of the generic copy.
43147 2001-10-25 Robert Dewar <dewar@gnat.com>
43150 (Analyze_Number_Declaration): Handle error expression.
43151 (Signed_Integer_Type_Declaration): Handle error bound.
43152 (Analyze_Subtype_Indication): Handle error range.
43154 * sem_util.adb (Get_Index_Bounds): Check for Error.
43156 2001-10-25 Robert Dewar <dewar@gnat.com>
43158 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
43159 in no run time mode.
43161 2001-10-25 Pascal Obry <obry@gnat.com>
43163 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
43164 mode case for ALLOC case.
43166 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
43167 all platforms. Improvement of last change.
43169 2001-10-25 Robert Dewar <dewar@gnat.com>
43171 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43173 2001-10-25 Geert Bosch <bosch@gnat.com>
43175 * osint.adb (Is_Relative): Remove duplicate.
43177 2001-10-25 Pascal Obry <obry@gnat.com>
43179 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
43180 pathnames in UNIX and DOS style with drive letter.
43181 (Is_Relative): new routine.
43183 * osint.adb: Minor reformatting
43185 * osint.adb (Is_Relative): implementation using
43186 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43188 2001-10-25 Pascal Obry <obry@gnat.com>
43190 * g-dirope.adb (Basename): correctly compute offset between the
43191 original Path and the translated one.
43193 * g-dirope.adb: (Base_Name): add some comments.
43195 2001-10-25 Robert Dewar <dewar@gnat.com>
43197 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43198 in HIE mode, avoids compilation abandoned message
43200 * exp_imgv.adb: Correct typo in previous change
43202 * exp_imgv.adb: Correct typo in previous change (not my day!)
43204 2001-10-25 Robert Dewar <dewar@gnat.com>
43206 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43208 2001-10-25 Pascal Obry <obry@gnat.com>
43210 * g-awk.ads: Move all pragma inlines next to the routine
43211 declarations. This is more uniform with other GNAT spec.
43213 2001-10-22 Geert Bosch <bosch@gnat.com>
43215 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43217 2001-10-19 Geert Bosch <bosch@gnat.com>
43219 * Makefile.in (tools, gnattools): Remove gnatmem.
43221 2001-10-17 Richard Henderson <rth@redhat.com>
43223 * Makefile.in (misc.o): Depend on langhooks.h.
43224 * misc.c: Include it.
43225 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43226 (LANG_HOOKS_DECODE_OPTION): New.
43227 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43229 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43231 * trans.c (tree_transform): Adjust to recent change in
43232 expand_asm_operands to implement named asm operands.
43234 2001-10-11 Ed Schonberg <schonber@gnat.com>
43236 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43237 renaming of discriminant for mutable record type.
43239 2001-10-11 Robert Dewar <dewar@gnat.com>
43241 * validsw.adb: Properly save -gnatVn status.
43243 2001-10-11 Robert Dewar <dewar@gnat.com>
43245 * usage.adb: Add lines for V switch.
43247 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43248 (/VALIDITY_CHECKING).
43250 2001-10-11 Ed Schonberg <schonber@gnat.com>
43252 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43253 an extension of System is known to be visible.
43255 2001-10-11 Ed Schonberg <schonber@gnat.com>
43257 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43258 properly. Fixes regression on ACATS C34005G.
43260 2001-10-11 Robert Dewar <dewar@gnat.com>
43262 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43263 loop in generic instance, since this is likely not very useful.
43265 2001-10-11 Robert Dewar <dewar@gnat.com>
43267 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43268 the error message for high integrity mode.
43270 * rtsfind.adb (RTE): Give message if we try to find an entity that
43271 is not available in high integrity mode.
43274 (OK_To_Use_In_HIE_Mode): New array.
43275 (RTE): May return Empty in high integrity mode.
43277 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43278 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43280 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43281 unit if not inlined always and in no runtime mode. Fixes problem
43282 caused by new Rtsfind changes.
43284 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43287 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43288 giving message for entity not available in high integrity mode.
43290 2001-10-11 Pascal Obry <obry@gnat.com>
43292 * impunit.adb: Add GNAT.CRC32.
43294 2001-10-11 Ed Schonberg <schonber@gnat.com>
43296 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43297 properly the case where one universal operand in a non-static
43298 exponentiation of a real literal.
43300 2001-10-11 Ed Schonberg <schonber@gnat.com>
43302 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43303 clause, return the gobal finalization list, for lack of anthing else.
43305 2001-10-11 Ed Schonberg <schonber@gnat.com>
43307 * exp_ch7.adb (Make_Transient_Block): if statement is within
43308 exception handler, always use new transient scope to place Clean
43311 2001-10-11 Pascal Obry <obry@gnat.com>
43314 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43315 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43316 (GNATLS_RTL_OBJS): add g-crc32.o
43317 (GNATMAKE_RTL_OBJS): add g-crc32.o
43320 (CRC_Match): new function.
43321 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43322 instead of the previous simple checksum algorithm.
43323 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43324 (Set_Source_Table): idem.
43327 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43328 instead of simple checksum.
43329 (CRC_Match): new function.
43330 (CRC_Error): new constant.
43332 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43333 a CRC now and not a simple checksum. A CRC uses lower-case hex
43334 letters, fixes ambiguity in parsing.
43336 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43337 is what this variable will store.
43339 * bcheck.adb: Change reference to chechsum in comments by CRC.
43340 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43341 rename All_Checksum_Match to All_CRC_Match. Change due to API
43342 renaming since now GNAT does not use a simple checksum but a
43343 CRC using GNAT.CRC32.
43345 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43346 now and not anymore a simple checksum.
43348 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43351 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43354 (Restore_Scan_State): rename Checksum to CRC.
43355 (Save_Scan_State): idem.
43359 (Checksum): rename to CRC.
43360 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43362 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43363 GNAT.CRC32). Update copyright notice.
43365 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43366 GNAT.CRC32). Update copyright notice.
43369 (Accumulate_Checksum): removed.
43370 (Update): new procedure. Add a wide-character into the CRC.
43373 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43374 (Load_File): fix initialization of S (change Source_Checksum to
43377 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43378 Source_CRC in S initialization.
43380 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43382 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43383 Update comments for the CRC.
43385 * types.adb (Hex): Use lowercase for the letter part.
43387 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43388 for a word. This is currently used only for CRC. In previous version,
43389 the checksum was using a representation with all letter being
43390 upper-case. With the new implementation (using CRC) we do not remove
43391 the 32th bit of the CRC, so we can have an upper-case starting letter
43392 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43393 It is ambigous since the CRC was optional and could be followed by
43394 options like EB, EE. So now this routines uses lower-case letter for
43395 the hexadecimal representation. Strange enough only lower case letters
43396 where checked in Scan_ALI (even if this was not a possible case).
43398 * gnatvsn.ads (Library_Version): changed to 3.15a.
43400 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43403 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43406 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43407 Add 2001 to copyright notice
43408 (Accumulate_Checksum): Modify to use System.CRC32.
43410 * ali-util.ads: Redo changes of previous revision to continue to use
43411 the word Checksum. Add 2001 to copyright notice.
43413 * ali.adb: Undo some of previous changes, not needed.
43414 Keep the change for lower case letters in the checksum.
43416 * ali.ads: Undo previous change not needed.
43418 * bcheck.adb: Undo most of previous change, not needed.
43419 But do use Checksums_Match for checksum comparison.
43421 * gnatls.adb: Undo most of previous change, not needed.
43422 But do use Checksums_Match for comparing checksums.
43424 * lib-load.adb: Undo previous change, not needed.
43426 * lib-writ.adb: Undo previous change, not needed.
43428 * lib-writ.ads: Document that checksums use lower case,
43429 not upper case letters.
43431 * scans.adb: Undo previous change, not needed
43433 * scans.ads: Undo previous change, not needed.
43435 * scn-nlit.adb: Undo previous changes, not needed.
43437 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43440 (Accumulate_Checksum): Use System.CRC32.
43441 (Initialize_Checksum): New procedure.
43442 Remove other changes of previous revision.
43444 * sinput-p.adb: Undo previous change, not needed.
43446 * sinput.adb: Undo previous change, not needed.
43448 * sinput-l.adb: Undo previous change, not needed.
43450 * sinput.ads: Undo previous change, not needed. Keep only comment
43451 on new checksum algorithm
43453 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43454 Also remove a-tags and a-stream from GNAT sources.
43456 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43458 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43460 2001-10-11 Geert Bosch <bosch@gnat.com>
43462 * einfo.h: Regenerate.
43464 * nmake.ads: Regenerate.
43466 * nmake.adb: Regenerate.
43468 * sinfo.h: Regenerate.
43470 * treeprs.adb: Regenerate.
43472 2001-10-10 Geert Bosch <bosch@gnat.com>
43474 * gnat-style.texi: New file describing coding guidelines for Ada.
43476 2001-10-10 Ed Schonberg <schonber@gnat.com>
43478 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43481 2001-10-10 Geert Bosch <bosch@gnat.com>
43483 * snames.ads: Add new names for project facility.
43485 * snames.adb: Update to reflect snames.ads changes.
43487 * snames.h: Update to reflect snames.ads changes.
43489 2001-10-10 Vincent Celier <celier@gnat.com>
43492 (Add_Switches): reflect the changes for the switches attributes
43493 Default_Switches indexed by the programming language,
43494 Switches indexed by the file name.
43495 (Collect_Arguments_And_Compile): Idem.
43496 Reflect the attribute name changes.
43499 (Initialisation_Data): Change the names of some packages and
43501 (Initialize): process case insensitive associative arrays.
43504 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43507 (Parse_Attribute_Declaration): For case insensitive associative
43508 arrays, set the index string to lower case.
43511 Reflect the changes of the project attributes.
43514 Replace Check_Naming_Scheme by Ada_Check and
43515 Language_Independent_Check.
43518 Replaced Check_Naming_Scheme by 2 procedures:
43519 Ada_Check and Language_Independent_Check.
43522 (Process_Declarative_Items): For case-insensitive associative
43523 arrays, set the index string to lower case.
43524 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43525 Prj.Nmsc.Check_Naming_Scheme.
43528 (Case_Insensitive): New function
43529 (Set_Case_Insensitive): New procedure
43532 (Case_Insensitive): New function
43533 (Set_Case_Insensitive): New procedure
43534 (Project_Node_Record): New flag Case_Insensitive.
43537 (Value_Of): new function to get the string value of a single
43538 string variable or attribute.
43541 (Value_Of): new function to get the string value of a single
43542 string variable or attribute.
43545 (Ada_Default_Spec_Suffix): New function
43546 (Ada_Default_Impl_Suffix): New function
43547 Change definitions of several constants to reflect
43548 new components of record types.
43551 (Naming_Data): Change several components to reflect new
43552 elements of naming schemes.
43553 (Project_Data): New flags Sources_Present and
43554 Language_Independent_Checked.
43555 (Ada_Default_Spec_Suffix): New function.
43556 (Ada_Default_Impl_Suffix): New function.
43559 Modification of predefined names for project manager: added
43560 Implementation, Specification_Exceptions, Implementation_Exceptions,
43561 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43562 Default_Switches, _Languages, Builder, Cross_Reference,
43563 Finder. Removed Body_Part, Specification_Append, Body_Append,
43564 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43567 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43570 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43571 not that it is Nil_Variable_Value.
43573 * prj.ads: Add ??? for uncommented declarations
43575 2001-10-10 Ed Schonberg <schonber@gnat.com>
43577 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43578 constant, do not indicate possible modification, so that gigi can
43579 treat it as a bona fide constant.
43581 2001-10-10 Robert Dewar <dewar@gnat.com>
43583 * sem_prag.adb: Add processing for pragma External.
43585 * snames.ads: Add entry for pragma External.
43587 * par-prag.adb: Add pragma External.
43589 * snames.adb: Updated to match snames.ads.
43591 2001-10-10 Ed Schonberg <schonber@gnat.com>
43593 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43594 a dynamic task if the allocator appears in an indexed assignment
43595 or selected component assignment.
43597 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43598 For a dynamic task in an assignment statement, use target of
43599 assignment to generate meaningful name.
43601 2001-10-10 Ed Schonberg <schonber@gnat.com>
43603 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43606 * einfo.ads: Body_Entity is also defined for generic package.
43607 Documentation change only
43609 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43610 others_choice for a discriminated component initialization,
43611 convert discriminant references into the corresponding discriminals.
43613 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43614 only if original type is private and expression has to be wrapped
43618 (Apply_Constraint_Check): Do not perform length check
43619 if expression is an aggregate with only an others_choice.
43620 (Length_N_Cond): two references to the same in_parameter
43621 (typically the discriminal in an init_proc) denote the same value.
43622 Two useful optimization uncovered by bugfixes above.
43624 2001-10-10 Robert Dewar <dewar@gnat.com>
43626 * xeinfo.adb: Change int to char in translation of enumeration types.
43627 This fixes a problem in the C representation of component alignment.
43628 Add 2001 to copyright notice
43630 2001-10-10 Richard Kenner <kenner@gnat.com>
43632 * decl.c: (validate_size): Do check size of object of integral type
43633 if it is a packed array type.
43635 2001-10-10 Richard Kenner <kenner@gnat.com>
43637 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43638 VAR_DECL for constant if not Is_Public but -O0.
43640 2001-10-10 Richard Kenner <kenner@gnat.com>
43642 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43644 2001-10-10 Geert Bosch <bosch@gnat.com>
43646 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43647 use '/' as switch character, allowing for absolute file names.
43649 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43651 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43654 2001-10-08 Geert Bosch <bosch@gnat.com>
43656 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43657 Automatically build utilities when files need to be regenerated.
43659 2001-10-08 Geert Bosch <bosch@gnat.com>
43661 * xsnames.adb: New utility for updating snames.ads and snames.adb
43663 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43665 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43666 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43667 (gnat1): Also depend on attribs.o.
43668 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43669 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43670 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43671 (ADAFLAGS): Add -W -Wall.
43672 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43675 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43676 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43677 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43678 Use $(ADAC), not $(CC), as compilation command.
43680 (gnattools): Depend directly on tools to build, don't use
43682 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43684 * einfo.h, sinfo.h: New files (autogenerated).
43686 2001-10-08 Richard Henderson <rth@redhat.com>
43688 * comperr.adb (Abort_In_Progress): New.
43689 (Compiler_Abort): Use it to prevent recursion.
43691 2001-10-08 Robert Dewar <dewar@gnat.com>
43693 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43695 * par-endh.adb (Output_End_Expected): We should also not test
43696 Error_Posted on the Error node, since now it is always set.
43698 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43699 to help error recovery. Part of general work on 9407-004.
43701 * par.adb: Add ??? for misuse of error
43704 (Resolve): Defend against Error, fixes 9407-003.
43705 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43707 * sinfo.ads (N_Error): Now has Etype field (which will be set
43708 to Any_Type to help error recovery).
43710 2001-10-08 Richard Kenner <kenner@gnat.com>
43712 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43713 Consistently set MEM attributes from expression; fixes
43714 bootstrap failure on x86.
43716 2001-10-08 Geert Bosch <bosch@gnat.com>
43718 * 5oosinte.adb: Add 2001 to copyright notice.
43720 2001-10-08 Geert Bosch <bosch@gnat.com>
43722 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43724 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43726 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43728 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43730 2001-10-05 Geert Bosch <bosch@gnat.com>
43732 * adaint.h: Small formatting fix.
43734 2001-10-04 Geert Bosch <bosch@gnat.com>
43736 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43737 Arg is int, not FILE *, in dummy version of functions.
43739 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43740 Arg is int, not FILE *.
43742 2001-10-04 Geert Bosch <bosch@gnat.com>
43744 * 3lsoccon.ads: Added file, missed with initial check ins.
43746 * 4lintnam.ads: Fix header format.
43747 Change Linux to GNU/Linux.
43749 * 5iosinte.adb: Change Linux to GNU/Linux.
43751 * 5iosinte.ads: Change Linux to GNU/Linux.
43753 * 5itaprop.adb: Change Linux to GNU/Linux.
43755 * 5itaspri.ads: Change Linux to GNU/Linux.
43756 Update copyright notice.
43758 * 5lintman.adb: Change Linux to GNU/Linux.
43760 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43762 * 5losinte.ads: Change Linux to GNU/Linux.
43764 * 5lsystem.ads: Change Linux to GNU/Linux.
43766 * 5qosinte.adb: Change Linux to GNU/Linux.
43768 * 5qosinte.ads: Change Linux to GNU/Linux.
43770 * 5qparame.ads: Change Linux to GNU/Linux.
43772 * 5qtaprop.adb: Change Linux to GNU/Linux.
43774 * 5qtaspri.ads: Change Linux to GNU/Linux.
43775 Add 2001 to copyright notice.
43777 * 5vintman.ads: Change Linux to GNU/Linux.
43778 Fix header format. Add 2001 to copyright notice.
43780 * g-soccon.ads: Change Linux to GNU/Linux.
43782 * g-trasym.ads: Change Linux to GNU/Linux.
43783 Add 2001 to copyright notice.
43785 * memtrack.adb: Change Linux to GNU/Linux.
43787 * s-intman.ads: Change Linux to GNU/Linux.
43788 Add 2001 to copyright notice. Fix header format.
43790 * s-stache.adb: Change Linux to GNU/Linux.
43792 * adaint.c: Change Linux to GNU/Linux.
43794 * cio.c: Change Linux to GNU/Linux.
43796 * cstreams.c: Change Linux to GNU/Linux.
43798 * init.c: Change Linux to GNU/Linux.
43800 * gmem.c: Change Linux to GNU/Linux.
43802 * tracebak.c: Change Linux to GNU/Linux.
43805 2001-10-02 Geert Bosch <bosch@gnat.com>
43807 * misc.c (insert_default_attributes): Add dummy version.