1 2008-11-07 Geert Bosch <bosch@adacore.com>
3 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
4 overflow check for constant result.
6 2008-11-07 Geert Bosch <bosch@adacore.com>
8 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
9 overflow check for addition/subtraction if neither operand is constant.
11 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
13 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
14 files for the target-dependent part of the runtime.
15 (SPARC/Linux): Likewise.
17 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
19 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
20 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
23 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
25 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
28 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
31 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
32 Generate a call to memmove for an assignment between overlapping
35 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38 * gcc-interface/Makefile.in: Add multilib handling for
39 s390-linux and s390x-linux.
41 2008-10-24 Jakub Jelinek <jakub@redhat.com>
43 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
44 check-acats-subtargets and check-gnat-subtargets.
45 (check_acats_targets): New variable.
46 (check-acats-subtargets, check-acats%): New targets.
47 (check-acats): If -j is used and CHAPTERS is empty, run the testing
48 in multiple make goals, possibly parallel, and afterwards run
49 dg-extract-results.sh to merge the sum and log files.
51 2008-10-17 Geert Bosch <bosch@adacore.com>
53 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
54 to use only a single check instead of three, and avoid unnecessary
56 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
57 creating more opportunities for optimizations.
59 2008-10-13 Jakub Jelinek <jakub@redhat.com>
62 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
65 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
67 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
68 dealing with volatileness to after code dealing with renaming.
70 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
72 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
73 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
75 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
77 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
78 (unchecked_convert): Use it to disable problematic folding with
79 VIEW_CONVERT_EXPR in the general case. Always disable it for the
80 special VIEW_CONVERT_EXPR built for integral types and cope with
81 its addressability issues by preserving the first conversion.
83 2008-10-01 Andreas Schwab <schwab@suse.de>
85 * system-linux-ppc64.ads: New file.
86 * gcc-interface/Makefile.in: Add multilib handling for
89 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
91 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
92 to that of ptr_mode instead of word_mode.
94 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
97 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
99 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
102 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
103 instead of deprecated FILE_WRITE_PROPERTIES.
105 2008-09-22 Olivier Hainque <hainque@adacore.com>
107 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
108 are never assigned, volatile entities are not constant for code
111 2008-09-21 Laurent Guerby <laurent@guerby.net>
114 * gcc-interface/Makefile.in: Add multilib handling for x86_64
116 * system-linux-sparcv9.ads: New file.
118 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
120 * exp_dbug.ads: Document new convention for the XVZ variable.
121 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
122 debug info if necessary for the type padding the component type.
123 <E_Array_Subtype>: Likewise.
124 (maybe_pad_type): Emit the XVZ variable in units.
125 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
126 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
127 on statements generated to initialize the parameter attributes cache.
128 Set the source line of the end label of the body on the special return
129 statement built for a procedure with copy-in copy-out parameters.
131 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
134 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
135 inlined external functions if they contain a nested function not
138 2008-09-18 Jan Hubicka <jh@suse.cz>
140 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
141 (end_subprog_body): Do not set DECL_INLINE.
143 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
146 * gnat_ugn.texi: Use proper format in direntry.
148 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
150 * gcc-interface/trans.c (gigi): Declare the name of the compilation
151 unit as the first global name.
153 2008-09-14 Jan Hubicka <jh@suse.cz>
155 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
157 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
159 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
160 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
161 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
162 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
163 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
164 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
165 gcc-interface/gigi.h, gcc-interface/trans.c,
166 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
167 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
168 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
169 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
170 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
171 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
172 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
173 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
175 * gnathtml.pl: Fix typos.
177 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
179 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
180 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
181 layer. RTEMS binds to OS provided adapter routines so there are
182 no modifications to s-osinte-rtems.adb.
184 2008-09-09 Arnaud Charlet <charlet@adacore.com>
185 Joel Sherrill <joel.sherrill@oarcorp.com>
187 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
189 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
191 * s-interr-hwint.adb: New file.
193 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
194 needed by s-interr-hwint.adb.
196 * s-osinte-vxworks-kernel.adb: New file.
198 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
200 * s-stchop-rtems.adb: Add file missed in early commit. Already
201 referenced in gcc-interface/Makefile.in.
203 2008-08-30 Thomas Quinot <quinot@adacore.com>
205 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
206 be built even without a separate libada directory.
208 2008-08-22 Arnaud Charlet <charlet@adacore.com>
210 * lib-xref.ads: Fix typo in subprogram reference definition.
212 2008-08-22 Robert Dewar <dewar@adacore.com>
214 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
217 * g-trasym.adb: Ditto
219 * s-utf_32.adb (Get_Category): Fix obvious typo
221 * s-wwdcha.adb: Minor code reorganization
224 2008-08-22 Robert Dewar <dewar@adacore.com>
226 * checks.adb (Determine_Range): Deal with values that might be invalid
228 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
229 configuration switches.
231 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
233 * sem_prag.adb: Implement pragma Assume_No_Default_Values
235 * snames.adb, snames.ads, snames.h:
236 Add entries for pragma Assume_No_Invalid_Values
238 * switch-c.adb: Add processing for -gnatB switch
240 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
242 2008-08-22 Javier Miranda <miranda@adacore.com>
244 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
245 init procedure all the expanded code associated with the spec of
246 task types and protected types.
248 2008-08-22 Gary Dismukes <dismukes@adacore.com>
250 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
251 component expression copies rather than directly setting Etype and
252 Is_Static_Expression.
254 2008-08-22 Gary Dismukes <dismukes@adacore.com>
256 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
257 private types to allow for types derived from a private type with
258 preelaborable initialization, but return False for a private extension
259 (unless it has the pragma).
261 2008-08-22 Robert Dewar <dewar@adacore.com>
263 * opt.ads: Minor code reorganization (put entries in alpha order)
265 2008-08-22 Pascal Obry <obry@adacore.com>
267 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
270 2008-08-22 Geert Bosch <bosch@adacore.com>
272 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
273 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
275 2008-08-22 Doug Rupp <rupp@adacore.com>
277 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
281 (__gnat_set_features): New function.
282 (__gnat_features_set): New tracking variable.
283 (__gl_no_malloc_64): New feature global variable
285 2008-08-22 Ed Schonberg <schonberg@adacore.com>
287 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
288 use_type_clause in an instance.
290 2008-08-22 Bob Duff <duff@adacore.com>
292 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
294 2008-08-22 Robert Dewar <dewar@adacore.com>
296 * exp_ch6.adb: Minor reformatting
298 * exp_ch7.adb: Minor reformatting
300 * exp_ch7.ads: Put routines in proper alpha order
302 * exp_dist.adb: Minor reformatting
304 2008-08-22 Vincent Celier <celier@adacore.com>
306 * prj.ads: Minor comment update
308 2008-08-22 Robert Dewar <dewar@adacore.com>
310 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
312 2008-08-22 Ed Schonberg <schonberg@adacore.com>
315 (Base_Init_Proc): For a protected subtype, use the base type of the
316 corresponding record to locate the propoer initialization procedure.
318 2008-08-22 Robert Dewar <dewar@adacore.com>
321 (In_Subrange_Of): New calling sequence
322 (Determine_Range): Prepare for new processing using base type
325 (Compile_Time_Compare): Use new calling sequence
328 (Compile_Time_Compare): Use new calling sequence
331 (Compile_Time_Compare): New calling sequence allows dealing with
333 (In_Subrange_Of): Ditto
336 (Compile_Time_Compare): New calling sequence allows dealing with
338 (In_Subrange_Of): Ditto
340 2008-08-22 Pascal Obry <obry@adacore.com>
342 * adaint.c: Fix possible race condition on win32_wait().
344 2008-08-22 Bob Duff <duff@adacore.com>
346 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
347 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
348 exp_intr.adb, exp_ch3.adb: Rename:
349 Exp_Ch7.Controlled_Type => Needs_Finalization
350 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
351 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
353 (Has_Some_Controlled_Component): Fix bug in array case.
355 2008-08-22 Robert Dewar <dewar@adacore.com>
357 * sem_ch8.adb: Minor reformatting
359 2008-08-22 Kevin Pouget <pouget@adacore.com>
361 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
362 Shared_Var_Close procedure specifications from package spec to package body.
364 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
365 RE_Shared_Var_WOpen entries.
367 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
368 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
370 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
372 * init.c: adjust EH support code on Alpha/Tru64 as well.
374 * raise-gcc.c: Add back a couple of comments.
376 2008-08-22 Ed Schonberg <schonberg@adacore.com>
378 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
379 involved and the return type is class-wide, use the type of the expression
380 for the generated access type. Suppress useless discriminant checks on the
383 2008-08-22 Bob Duff <duff@adacore.com>
385 * exp_ch7.adb: Minor comment fix
387 * exp_ch6.ads: Minor comment fix
389 2008-08-22 Thomas Quinot <quinot@adacore.com>
391 * sem_ch8.adb: Minor reformatting
392 Minor code reorganization (introduce subprogram to factor duplicated
395 2008-08-22 Sergey Rybin <rybin@adacore.com>
397 * gnat_ugn.texi: Change the description of gnatcheck default rule
400 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
402 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
403 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
404 do not adjust the PC anymore.
405 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
406 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
408 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
409 instead of _Unwind_GetIP.
411 2008-08-22 Gary Dismukes <dismukes@adacore.com>
413 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
414 with a range is transformed into a positional aggregate, any copied
415 component literals should be marked Is_Static_Expression.
417 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
418 not being known at at compile time when Configurable_Run_Time_Mode is
421 2008-08-22 Robert Dewar <dewar@adacore.com>
424 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
425 Read or Input attribute.
427 2008-08-22 Ed Schonberg <schonberg@adacore.com>
429 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
430 clauses in related units is redundant, if one of the units is a package
431 instantiation, use its instance_spec to determine which unit is the
432 ancestor of the other.
434 2008-08-22 Javier Miranda <miranda@adacore.com>
436 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
437 attributes add missing support to handle designated types that come
438 from the limited view.
440 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
442 2008-08-22 Sergey Rybin <rybin@adacore.com>
444 * vms_data.ads: Add entry for new gnatcheck -mNNN option
446 * gnat_ugn.texi: Add description for gnatcheck option '-m'
448 2008-08-22 Sergey Rybin <rybin@adacore.com>
450 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
451 acoording to the latest changes in the metric rule interface
453 2008-08-22 Vincent Celier <celier@adacore.com>
455 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
456 (Check): Check if the file names registered in the ALI file for the
457 spec, the body and each of the subunits are the ones expected.
459 2008-08-22 Robert Dewar <dewar@adacore.com>
461 * g-catiio.adb: Code cleanup.
463 2008-08-20 Vincent Celier <celier@adacore.com>
465 * make.adb (Gnatmake): Remove extra space in version line
468 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
469 as the name may already have been entered in the table by the Project
472 2008-08-20 Jose Ruiz <ruiz@adacore.com>
474 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
475 weak symbols so we use the version provided by MaRTE when available.
477 2008-08-20 Emmanuel Briot <briot@adacore.com>
479 * g-catiio.ads, g-catiio.adb:
480 (Value): Avoid an unnecessary system call to Clock in most cases.
481 This call is only needed when only the time is provided in the string,
482 and ignored in all other cases. This is more efficient.
484 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
486 * raise-gcc.c: Fix formatting nits.
488 2008-08-20 Robert Dewar <dewar@adacore.com>
491 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
492 non-existing component clause.
494 * exp_ch5.adb: Minor reformatting
496 * g-comlin.adb: Minor reformatting
498 * make.adb: Minor reformatting
500 * prj-proc.adb: Minor reformatting
502 * stylesw.ads: Minor reformatting
504 2008-08-20 Vincent Celier <celier@adacore.com>
506 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
507 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
508 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
509 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
510 and a switch is not recognized by gnatmake.
511 (Gnatmake): Implement new scheme for gnatmake switches and global
512 compilation switches.
513 (Switches_Of): Try successively Switches (<file name>),
514 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
516 2008-08-20 Ed Schonberg <schonberg@adacore.com>
518 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
519 implement style check that overriding operations are explicitly marked
522 * style.ads (Missing_Overriding): new procedure that provides interface
525 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
526 that the declaration or body of overriding operations carries an
527 explicit overriding indicator.
530 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
531 explicit indicator should be present.
533 * sem_ch6.adb (Verify_Overriding_Indicator,
534 Check_Overriding_Indicator): If operation is overriding, check whether
535 declaration and/or body of subprogram should be present
537 2008-08-20 Vincent Celier <celier@adacore.com>
539 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
540 gprbuild when casing is MixedCase, whatever the casing of the letters
543 2008-08-20 Gary Dismukes <dismukes@adacore.com>
545 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
546 creating dummy init proc.
547 (Requires_Init_Proc): Return False in the case No_Default_Initialization
548 is in force and the type does not have associated default
549 initialization. Move test of Is_Public (with tests of restrictions
550 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
551 for default initialization.
553 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
555 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
556 of any alias or prefix but having attached parameters (as \"-O2\").
558 2008-08-20 Robert Dewar <dewar@adacore.com>
560 * s-fileio.adb: Minor reformatting
562 2008-08-20 Thomas Quinot <quinot@adacore.com>
564 * exp_strm.adb (Build_Elementary_Input_Call,
565 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
566 selects the stream attribute routines for long float types.
568 2008-08-20 Vincent Celier <celier@adacore.com>
570 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
572 * prj.ads (Array_Data): Add a component Location
574 2008-08-20 Ed Schonberg <schonberg@adacore.com>
577 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
578 argument for ASIS and navigation use.
580 2008-08-20 Ed Schonberg <schonberg@adacore.com>
582 * einfo.ads: Add comment.
584 2008-08-20 Bob Duff <duff@adacore.com>
586 * sem_eval.ads: Minor comment fix.
588 2008-08-20 Bob Duff <duff@adacore.com>
590 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
591 folding. We were folding things like "False and then ...", but not
592 "X and then ..." where X is a constant whose value is known at compile
595 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
597 * exp_ch5.adb (Controlled_Type): New routine.
598 (Expand_N_Extended_Return_Statement): When generating a move of the
599 final list in extended return statements, check the type of the
600 function and in the case of double expanded return statements, the type
601 of the returned object.
602 (Expand_Simple_Function_Return): Perform an interface conversion when
603 the type of the returned object is an interface and the context is an
604 extended return statement.
606 2008-08-20 Ed Schonberg <schonberg@adacore.com>
608 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
609 and the full view is visible, set flag on full view as well.
611 2008-08-20 Thomas Quinot <quinot@adacore.com>
613 * g-comlin.adb: Minor reformatting
614 Minor code reorganization.
616 * freeze.adb: Minor reformatting
618 2008-08-20 Vincent Celier <celier@adacore.com>
620 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
621 source of another project.
623 2008-08-20 Pascal Obry <obry@adacore.com>
625 * s-os_lib.ads: Minor reformatting.
627 2008-08-20 Arnaud Charlet <charlet@adacore.com>
629 * gnatvsn.ads: Minor reformatting.
631 2008-08-20 Arnaud Charlet <charlet@adacore.com>
633 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
634 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
635 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
636 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
637 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
638 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
639 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
640 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
641 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
642 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
643 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
644 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
645 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
646 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
647 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
648 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
649 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
650 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
651 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
652 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
653 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
654 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
655 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
656 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
657 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
658 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
659 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
660 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
661 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
662 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
663 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
664 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
665 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
666 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
667 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
668 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
669 s-poosiz.adb, link.c: Fix copyright notice.
671 2008-08-20 Arnaud Charlet <charlet@adacore.com>
673 * g-comlin.ads: Update comments.
675 2008-08-20 Ed Schonberg <schonberg@adacore.com>
677 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
679 2008-08-20 Gary Dismukes <dismukes@adacore.com>
682 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
683 Make_Implicit_Exception_Handler when rewriting an exception handler with
684 a choice parameter, and pass the handler's Sloc instead of that of the
685 handled sequence of statements. Make_Implicit_Exception_Handler sets the
686 Sloc to No_Location (unless debugging generated code), which we don't
687 want for the case of a user handler.
689 2008-08-20 Robert Dewar <dewar@adacore.com>
691 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
694 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
695 now labeled as info msgs, not warnings.
697 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
699 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
701 * a-textio.adb: Remove redundant test.
703 * a-witeio.adb: Minor code reorganization
704 Remove redundant test found working on another issue
706 * a-ztexio.adb: Minor code reorganization
707 Remove redundant test found working on another issue
709 2008-08-20 Thomas Quinot <quinot@adacore.com>
711 * s-fileio.adb (Open) Use C helper function to determine whether a
712 given errno value corresponds to a "file not found" error.
714 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
716 2008-08-20 Jose Ruiz <ruiz@adacore.com>
718 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
719 to get access to the per-task errno variable.
720 (__set_errno for MaRTE): Do not redefine this function here since it is
721 already defined in MaRTE.
723 2008-08-20 Tristan Gingold <gingold@adacore.com>
725 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
727 2008-08-20 Robert Dewar <dewar@adacore.com>
729 * freeze.adb: Minor reformatting
731 * g-comlin.adb: Minor reformatting
733 * g-socket.adb: Minor reformatting
735 * g-socthi-mingw.adb: Minor reformatting
737 * g-stheme.adb: Minor reformatting
739 2008-08-20 Ed Schonberg <schonberg@adacore.com>
741 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
742 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
743 confusion between partial and full views of an ancestor of the context
744 type when the parent is a private extension declared in a parent unit,
745 and full views are available for the context type.
747 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
748 Robert Dewar <dewar@adacore.com>
751 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
753 Move comment in the right place.
754 * g-comver.adb (Version): Look for a zero-termination in
755 addition to a closing parenthesis.
757 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
759 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
760 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
761 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
762 Is_Package_Or_Generic_Package instead of hand-crafted tests.
764 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
767 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
770 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
772 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
774 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
776 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
777 for back-copy statements in lieu of that of the actual.
779 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
782 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
783 setjmp test consistently. Adjust for new behavior of flag_stack_check.
784 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
785 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
787 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
790 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
791 * sem_attr.adb (Check_Type): The current instance of a protected
792 object is not a type name.
793 (Analyze_Access_Attribute): Accept instances of protected objects.
794 (Analyze_Attribute, Attribute_Address clause): Ditto.
795 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
796 the prefix as being the current instance if needed.
798 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
800 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
801 Remove duplicate s-win32.o. Add s-winext.o.
803 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
805 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
806 with SOSC.SOCK__STREAM.
807 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
810 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
812 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
813 * gsocket.h, socket.c: Update to support RTEMS.
814 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
816 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
817 Robert Dewar <dewar@adacore.com>
819 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
820 left argument even when right argument is 0.
821 (Expand_N_Op_Mod): Ditto when right argument is 1.
822 (Expand_N_Op_Multiply): Ditto when any argument is 0.
823 (Expand_N_Op_Rem): Ditto when right argument is 1.
825 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
827 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
830 2008-08-08 Ed Schonberg <schonberg@adacore.com>
832 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
833 from Freeze_Entity. Used to generate cross-reference information for
834 types declared in generic packages.
836 2008-08-08 Thomas Quinot <quinot@adacore.com>
838 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
841 2008-08-08 Thomas Quinot <quinot@adacore.com>
844 On Windows, include <errno.h> and redefine only selected errno values
845 from their <winsock2.h> definitions.
847 * s-osinte-freebsd.ads: Minor reformatting
849 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
851 * g-soccon.ads: New file.
853 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
854 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
855 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
856 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
857 unit, to allow building software that depends on this internal unit
858 with both older and newer compilers.
860 2008-08-08 Robert Dewar <dewar@adacore.com>
862 * s-strxdr.adb: Minor reformatting
864 2008-08-08 Bob Duff <duff@adacore.com>
866 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
867 checking for integer operations (including division by zero)", which
868 is wrong -- divide by zero is not part of overflow checking.
869 Also added misc clarification about what check-suppression means.
871 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
873 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
875 * g-comlin.adb (Add_Switch): Handle addition of switches at the
876 begining of the command line.
877 (Append, Add): Renaming of Append to Add as this now allows addition
878 at the begining of the list.
880 * g-comlin.ads (Add_Switch): Handle addition of switches at the
881 begining of the command line.
883 2008-08-08 Thomas Quinot <quinot@adacore.com>
886 (Name): Document application scope (only legacy PC serial ports on
889 2008-08-08 Thomas Quinot <quinot@adacore.com>
891 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
892 previous change, not needed after all.
894 2008-08-08 Ed Schonberg <schonberg@adacore.com>
896 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
897 exclusion indicator is present
899 2008-08-08 Robert Dewar <dewar@adacore.com>
901 * g-comlin.adb: Minor code reorganization
904 * g-comlin.ads: Minor reformatting
906 * s-fileio.adb: Minor reformatting
908 * sem_attr.adb: Minor code reorganization (use Nkind_In)
911 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
913 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
914 with s-oscons-tmplt.i.
916 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
918 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
920 2008-08-06 Ed Schonberg <schonberg@adacore.com>
922 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
925 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
926 of a formal parameter of an incomplete type. Improve error message for
927 other improper uses of incomplete types.
929 2008-08-06 Robert Dewar <dewar@adacore.com>
931 * gnat_ugn.texi: Clarify -gnato documentation
933 2008-08-06 Thomas Quinot <quinot@adacore.com>
935 * gcc-interface/Makefile.in,
936 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
937 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
938 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
939 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
940 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
941 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
942 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
943 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
944 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
945 Remove GNAT.Sockets.Constants. This internal package is replaced by
948 2008-08-06 Thomas Quinot <quinot@adacore.com>
950 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
951 Remove obsolete targets referencing gen-soccon
952 When generating s-oscons.ads, use a file name that includes the
953 THREAD_KIND, to ensure that the (potentially different) version from a
954 previous build with a different threads flavour does not get reused.
956 2008-08-06 Thomas Quinot <quinot@adacore.com>
958 * sem_res.adb: Minor reformatting
960 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
961 only when the operating system reports a non-existing file or directory
962 (ENOENT), otherwise raise Name_Error.
964 * exp_ch11.adb: Minor reformatting
966 2008-08-06 Ed Schonberg <schonberg@adacore.com>
968 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
969 incomplete, add the access_to_subprogram type to the list of private
970 dependents only if the incomplete type will be completed in the current
972 (Build_Discriminant_Constraints): If the type of the discriminant is
973 access_to_variable, reject a constraint that is access_to_constant.
975 2008-08-06 Thomas Quinot <quinot@adacore.com>
977 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
978 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
979 g-sttsne-dummy.ads: New files.
981 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
982 with pragma Unimplemented_Unit for sockets packages on Nucleus.
984 2008-08-06 Pascal Obry <obry@adacore.com>
986 * adaint.c: Another fix for ACL support on Windows.
988 2008-08-06 Javier Miranda <miranda@adacore.com>
990 * exp_disp (Expand_Interface_Actuals): Adds missing support for
991 expansion of calls to subprograms using selected components.
993 2008-08-06 Ed Schonberg <schonberg@adacore.com>
995 * sem_res.adb (Resolve_Call): Use base type to determine whether a
996 dereference is needed because a subtype of an access_to_subprogram is
997 simply an access-subtype
999 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1001 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1002 parameters, always specify the expected separator.
1004 2008-08-06 Thomas Quinot <quinot@adacore.com>
1006 * xnmake.adb: Use new XUtil package for platform independent text
1009 2008-08-06 Vincent Celier <celier@adacore.com>
1011 * gnat_ugn.texi: Document compiler switch -gnateG
1013 2008-08-06 Quentin Ochem <ochem@adacore.com>
1015 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1016 in the case of an empty pattern size.
1017 (Compute_Result): Do not do any computation in the case of an empty
1019 (Report_Result): Fixed computation of the overflow guard.
1021 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1023 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1024 finalization routine to prevent elaboration order anomalies in new
1025 finalization scheme.
1027 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1029 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1030 declaration for the same type.
1032 2008-08-06 Thomas Quinot <quinot@adacore.com>
1034 * sem.adb: Minor rewording (comment)
1036 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1038 * g-comlin.adb (Define_Switch, Get_Switches): New.
1039 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1040 ungrouping switches.
1041 (For_Each_Simple_Switch): Allow more control over parameters handling.
1042 This generic method now allows ungrouping of switches with parameters
1043 and switches with more than one letter after the prefix.
1044 (Set_Command_Line): Take care of switches that are prefixed with a
1045 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1047 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1048 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1050 (Start, Alias_Switches, Group_Switches): Take care of parameters
1051 possibly present inside a group.
1053 * g-comlin.ads (Define_Switch): New method used to define a list of
1054 expected switches, that are necessary for correctly ungrouping switches
1055 with more that one character after the prefix.
1056 (Get_Switches): Method that builds a getopt string from the list of
1057 switches as set previously by Define_Switch.
1058 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1059 status of the operation. Also allow the removal of switches with
1061 (Command_Line_Configuration_Record): Maintain a list of expected
1064 2008-08-06 Doug Rupp <rupp@adacore.com>
1066 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1067 TARGET_MALLOC64 clear.
1069 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1070 if TARGET_MALLOC64 clear.
1072 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1073 (TARGET_MALLC64): New macro. Default to clear.
1075 2008-08-06 Doug Rupp <rupp@adacore.com>
1077 * gcc-interface/utils2.c (snames.h) Include
1078 (TARGET_ABI_OPEN_VMS): Initialize.
1079 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1082 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1084 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1085 null exclusion in a discriminant declaration
1087 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1088 indicators when type is not an access type.
1090 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1091 indicators when type is not an access type.
1093 2008-08-06 Javier Miranda <miranda@adacore.com>
1095 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1096 with the target interface before expanding the code of the interface
1099 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1102 (Freeze_Entity): A deferred constant does not violate the restriction
1103 No_Default_Initialization,
1105 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1106 can carry a null exclusion indicator, and on which an error may be
1107 posted if the indicator is redundant.
1109 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1110 does not apply to a subtype mark that already excludes null.
1112 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1113 exclusion does not apply to a subtype mark that already excludes null.
1115 2008-08-05 Thomas Quinot <quinot@adacore.com>
1117 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1119 2008-08-05 Doug Rupp <rupp@adacore.com>
1121 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1123 2008-08-05 Thomas Quinot <quinot@adacore.com>
1125 * gsocket.h: Make this file includable in a Nucleus environment, which
1126 does not support sockets.
1128 * socket.c: Remove Nucleus-specific hack.
1130 2008-08-05 Pascal Obry <obry@adacore.com>
1132 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1134 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1137 (Analyze_Attribute, case 'Result): handle properly the case where some
1138 operand of the expression in a post-condition generates a transient
1141 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1142 right-hand side when it is an anonymous access_to_subprogram, to force
1143 static accessibility check when needed.
1145 2008-08-05 Sergey Rybin <rybin@adacore.com>
1147 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1148 rule according to the change in the rule option.
1149 Add documentation for -gnatw.b/-gnatw.B
1151 2008-08-05 Robert Dewar <dewar@adacore.com>
1153 * ug_words: Add entries for -gnatw.b/-gnatw.B
1155 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1157 2008-08-05 Vincent Celier <celier@adacore.com>
1159 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1162 * a-ztdeio.adb: Ditto.
1164 2008-08-05 Pascal Obry <obry@adacore.com>
1166 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1169 2008-08-05 Vincent Celier <celier@adacore.com>
1172 (Wide_String_To_String): Returns a String with the same 'First as its
1174 (Wide_Wide_String_To_String): Ditto
1177 (Wide_String_To_String): Document that the lowest index of the returned
1178 String is equal to S'First.
1180 2008-08-05 Thomas Quinot <quinot@adacore.com>
1182 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1184 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1187 2008-08-05 Robert Dewar <dewar@adacore.com>
1189 * opt.ads (Warn_On_Biased_Representation): New flag
1192 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1193 representation is required.
1194 (Minimum_Size): Don't allow biasing if enum rep clause case
1197 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1198 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1200 * usage.adb: Add lines for -gnatw.b/B switches
1202 2008-08-05 Pascal Obry <obry@adacore.com>
1204 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1206 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1208 2008-08-05 Thomas Quinot <quinot@adacore.com>
1210 * socket.c: Minor reformatting.
1212 2008-08-05 Robert Dewar <dewar@adacore.com>
1214 * sem_ch3.adb: Minor reformatting
1216 * prj-nmsc.adb: Minor reformatting
1218 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1220 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1221 visibility check on the component type if the simple test fails.
1223 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1225 * init.c (__gnat_install_handler for linux): If we are building the
1226 Xenomai run time then we need to do two additional things: avoid
1227 memory swapping and transform the Linux environment task into a native
1230 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1231 time): Use interface to Xenomai native skin and avoid linux-specific
1232 way of setting CPU affinity.
1233 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1235 2008-08-05 Bob Duff <duff@adacore.com>
1237 * checks.ads: Minor comment fix
1239 2008-08-05 Thomas Quinot <quinot@adacore.com>
1241 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1242 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1245 2008-08-05 Robert Dewar <dewar@adacore.com>
1247 * mlib.adb: Minor code reorganization
1250 * make.adb: Minor reformatting
1252 * prj-attr.ads: Minor reformatting
1254 * s-os_lib.adb: Minor reformatting
1256 * s-fileio.adb: Minor code reorganization
1259 * prj.ads: Minor reformatting
1261 2008-08-05 Bob Duff <duff@adacore.com>
1263 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1264 unresolved initial value of "null", because it causes implicitly
1265 generated "=" operators to be ambiguous, and because this type should
1266 not be passed to gigi.
1268 2008-08-05 Vincent Celier <celier@adacore.com>
1270 * mlib.adb: Update comments.
1272 * make.adb (Switches_Of): Check for Switches (others), before checking
1273 for Default_Switches ("Ada").
1274 (Gnatmake): Use Builder'Switches (others) in preference to
1275 Builder'Default_Switches ("Ada") if there are several mains.
1278 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1282 Add markers to indicates that attributes Switches allow others as index
1283 (Others_Allowed_For): New Boolean function, returning True for
1284 attributes with the mark.
1285 (Initialize): Recognize optional letter 'O' as the marker for
1286 associative array attributes where others is allowed as the index.
1289 (Others_Allowed_For): New Boolean function
1290 (Attribute_Record): New Boolean component Others_Allowed
1293 (Parse_Attribute_Declaration): For associative array attribute where
1294 others is allowed as the index, allow others as an index.
1297 (Process_Binder): Skip associative array attributes with index others
1298 (Process_Compiler): Ditto
1301 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1302 index is All_Other_Names.
1305 (All_Other_Names): New constant
1308 (Process_Declarative_Items): Skip associative array attribute when index
1309 is reserved word "others".
1311 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1313 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1315 2008-08-05 Thomas Quinot <quinot@adacore.com>
1317 * a-rttiev.adb: Minor reformatting (comments)
1319 * gen-soccon.c: Rename to gen-oscons.c
1321 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1322 GNAT.Sockets.Constants.
1323 Add new constants for GNAT.Serial_Communications and System.File_IO.
1325 2008-08-05 Javier Miranda <miranda@adacore.com>
1327 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1328 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1329 implementation of this routine has been simplified.
1331 2008-08-05 Pascal Obry <obry@adacore.com>
1333 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1334 Set_Read_Only Win32 implementation.
1336 2008-08-05 Thomas Quinot <quinot@adacore.com>
1338 * exp_strm.adb: Minor reformatting (comments)
1340 * sem_ch12.adb: Minor reformatting.
1342 2008-08-05 Robert Dewar <dewar@adacore.com>
1344 * sem_ch3.adb: Minor reformatting
1346 * checks.adb: Minor reformatting
1348 2008-08-05 Thomas Quinot <quinot@adacore.com>
1350 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1351 restriction on Prefix.
1353 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1355 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1356 methods needed to handle switch sections when building a command line.
1357 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1358 Current_Section): New public methods or methods modified to handle
1359 building command lines with sections.
1360 (Set_Command_Line): Take into account sections when analysing a switch
1362 (Start): Sort the switches by sections before iterating the command line
1365 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1366 Is_New_Section, Current_Section): New methods or methods modified to
1367 handle building command lines with sections.
1369 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1371 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1372 discriminants, indicate that the corresponding object declaration has
1373 no initialization, to prevent spurious warnings when the access type is
1376 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1378 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1379 Abort_Task, warn if the call appears within a protected operation.
1381 2008-08-04 Robert Dewar <dewar@adacore.com>
1383 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1385 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1388 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1389 anonymous access to protected subprogram that is the return type of the
1390 specification of a subprogram body.
1393 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1394 subprogram, freeze it now to prevent access anomalies in the back-end.
1396 * exp_ch9.adb: Minor code cleanup.
1397 Make sure that new declarations are inserted into the tree before
1398 analysis (from code reading).
1400 2008-08-04 Robert Dewar <dewar@adacore.com>
1403 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1406 2008-08-04 Thomas Quinot <quinot@adacore.com>
1408 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1410 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1412 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1414 2008-08-04 Javier Miranda <miranda@adacore.com>
1416 * sem_prag.adb (Process_Convention): Add missing support for
1417 N_Private_Extension_Declaration nodes.
1419 2008-08-04 Robert Dewar <dewar@adacore.com>
1421 * exp_ch4.adb: Minor reformatting
1423 2008-08-04 Pascal Obry <obry@adacore.com>
1425 * adaint.h: Add missing prototype.
1427 * adaint.c: Refine support for Windows file attributes.
1429 2008-08-04 Robert Dewar <dewar@adacore.com>
1432 (Valid_Conversion): Catch case of designated types having different
1433 sizes, even though they statically match.
1435 2008-08-04 Javier Miranda <miranda@adacore.com>
1437 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1438 added in previous patch to handle access to subprograms.
1440 2008-08-04 Robert Dewar <dewar@adacore.com>
1443 (Freeze_Entity): Only check No_Default_Initialization restriction for
1444 constructs that come from source
1446 2008-08-04 Thomas Quinot <quinot@adacore.com>
1448 * exp_ch6.adb: Minor comment fix.
1450 * sem_ch4.adb: Minor reformatting.
1452 2008-08-04 Robert Dewar <dewar@adacore.com>
1454 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1456 2008-08-04 Pascal Obry <obry@adacore.com>
1458 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1461 2008-08-04 Javier Miranda <miranda@adacore.com>
1463 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1464 for N_Formal_Object_Declaration nodes. Adding kludge required by
1465 First_Formal to provide its functionality with access to functions.
1466 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1467 for anonymous access types returned by functions.
1469 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1470 conversion of null-excluding access types (required only once to force
1471 the generation of the required runtime check).
1473 * sem_type.adb (Covers): minor reformating
1475 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1476 with internally generated nodes. Avoid generating the error inside init
1479 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1480 (Resolve_Null): Generate the null-excluding check in case of assignment
1481 to a null-excluding object.
1482 (Valid_Conversion): Add missing support for anonymous access to
1485 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1486 anonymous access types whose designated type is an itype. This case
1487 occurs with anonymous access to protected subprograms types.
1488 (Analyze_Return_Type): Add missing support for anonymous access to
1489 protected subprogram.
1491 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1492 subprograms addition of missing check on matching convention. Required
1493 to properly handle access to protected subprogram types.
1495 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1496 null excluding access types.
1498 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1500 * sem_ch12.adb: Add comments
1502 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1503 access type and the allocator is not initialized, warn rather than
1506 2008-08-04 Robert Dewar <dewar@adacore.com>
1508 * exp_ch4.adb: Minor reformatting
1510 * exp_dist.adb: Minor reformatting
1512 * g-comlin.adb: Minor reformatting
1514 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1516 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1517 target to the type of the aggregate in the case where the target object
1520 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1521 result type is class-wide and inherently limited, and the expression
1522 has a specific type, create a return object of the specific type, for
1523 more efficient handling of returns of build-in-place aggregates (avoids
1524 conversions of the class-wide return object to the specific type on
1525 component assignments).
1527 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1528 about a type mismatch for a class-wide function with a return object
1529 having a specific type when the object declaration doesn't come from
1530 source. Such an object can result from the expansion of a simple return.
1532 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1534 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1536 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1537 compiling for 64bit windows.
1539 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1541 * g-comlin.adb (Group_Switches): Preserve the switch order when
1542 grouping and allow switch grouping of switches with more than one
1543 character extension (e.g. gnatw.x).
1544 (Args_From_Expanded): Remove this now obsolete method.
1546 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1548 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1549 chain at once, to ensure that type is properly decorated for back-end,
1550 when allocator appears within a loop.
1552 2008-08-04 Kevin Pouget <pouget@adacore.com>
1554 * snames.h, snames.adb, snames.ads:
1555 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1557 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1558 Build_To_Any_Call and Build_TypeCode_Call procedures.
1560 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1562 * rtsfind.ads: Add corresponding names.
1564 * tbuild.adb: Update prefix restrictions to allow '_' character.
1566 2008-08-04 Doug Rupp <rupp@adacore.com>
1568 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1569 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1570 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1571 use it. Calculate pointer range overflow using 64bit types.
1573 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1575 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1576 legal context for an anonymous access to subprogram.
1578 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1579 indirect call, report success to the caller to include possible
1582 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1584 of the extended return is an anonymous access_to_subprogram type.
1587 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1588 access_to_subprogram and the context requires its return type, and a
1589 dereference has not been introduced previously.
1591 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1593 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1594 gnatcheck support in GPS.
1596 2008-08-04 Vincent Celier <celier@adacore.com>
1598 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1601 2008-08-04 Vincent Celier <celier@adacore.com>
1603 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1604 variable, but don't check the resulting value as it has no impact on
1608 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1609 when switch -gnateG is used.
1612 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1613 when the source is modified by the preprocessor and there is no
1614 preprocessing errors.
1616 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1619 (Load_File): Output the result of preprocessing if the source text was
1622 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1624 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1626 * ug_words: Add VMS equivalent for -gnateG
1629 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1631 2008-08-04 Doug Rupp <rupp@adacore.com>
1633 * gcc-interface/utils2.c:
1634 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1635 in 32bit descriptor.
1637 2008-08-04 Robert Dewar <dewar@adacore.com>
1639 * par-ch10.adb: Minor reformatting
1641 * i-cobol.adb: Minor reformatting.
1643 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1645 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1646 anonymous access return type of a regular function that is not a
1649 2008-08-04 Vincent Celier <celier@adacore.com>
1651 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1653 * snames.adb: New standard name Global_Compilation_Switches
1655 * snames.ads: New standard name Global_Compilation_Switches
1657 * make.adb: Correct spelling error in comment
1659 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1661 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1664 2008-08-04 Thomas Quinot <quinot@adacore.com>
1666 * sem_ch10.adb: Minor comment fix.
1668 2008-08-04 Robert Dewar <dewar@adacore.com>
1670 * restrict.adb: Improved messages for restriction warnings
1672 * restrict.ads: Improved messages for restriction messages
1674 * s-rident.ads (Profile_Name): Add No_Profile
1676 2008-08-04 Robert Dewar <dewar@adacore.com>
1678 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1680 2008-08-04 Robert Dewar <dewar@adacore.com>
1682 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1684 2008-08-04 Vincent Celier <celier@adacore.com>
1687 (Copy_Package_Declarations): When inheriting package Naming from a
1688 project being extended, do not inherit source exception names.
1690 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1692 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1693 list of declaration to find previous subprogram, do not go to the
1694 original node of a generic unit.
1696 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1698 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1699 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1701 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1703 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1704 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1705 and adjust for above renaming.
1706 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1707 gnu_expr_alt_type parameter. Convert the expression to it instead
1708 of changing its type in place.
1709 (build_function_stub): Adjust call to above function.
1711 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1713 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1714 code. Do not get full definition of deferred constants with address
1715 clause for a use. Do not ignore deferred constant definitions with
1716 address clause. Ignore constant definitions already marked with the
1718 <object>: Remove obsolete comment. For a deferred constant with
1719 address clause, get the initializer from the full view.
1720 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1721 Rework and remove obsolete comment.
1722 <N_Object_Declaration>: For a deferred constant with address clause,
1723 mark the full view with the error node.
1724 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1727 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1729 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1731 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1732 sem_prag.adb, snames.adb, snames.ads, snames.h,
1733 par-prag.adb: Undo previous stream related changes.
1735 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1737 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1738 Define enumeration type to designate different IO mechanisms.
1739 Enchance generic package Stream_Ops_Internal to include an
1740 implementation of Input and Output.
1742 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1743 No_Stream_Optimization is active, choose the default byte IO
1744 implementations of stream attributes for Strings.
1745 Otherwise use the corresponding block IO version.
1747 2008-08-01 Olivier Hainque <hainque@adacore.com>
1749 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1750 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1752 2008-08-01 Robert Dewar <dewar@adacore.com>
1754 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1755 convert plain identifier into defining identifier.
1757 2008-08-01 Robert Dewar <dewar@adacore.com>
1759 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1762 * lib-xref.adb: Add error defense.
1764 2008-08-01 Bob Duff <duff@adacore.com>
1766 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1768 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1770 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1771 correct accessibility levels. In the "when others" case, retrieve the
1772 access level of the Etype of Prev rather than Prev_Orig, because the
1773 original exression has not always been analyzed.
1775 2008-08-01 Robert Dewar <dewar@adacore.com>
1777 * prj-nmsc.adb: Minor reformatting
1779 * sem_ch4.adb: Minor reformatting
1780 Minor code reorganization
1782 * prj.ads: Minor reformatting
1784 * s-os_lib.adb: Minor reformatting
1786 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1789 * scans.ads: Minor reformatting.
1791 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1792 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1795 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1797 * sem_ch12.adb: Minor comment reformatting
1799 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1802 2008-08-01 Robert Dewar <dewar@adacore.com>
1804 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1807 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1809 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1810 converted is a real literal and the target type has static bounds,
1811 perform the conversion exactly to prevent floating-point anomalies on
1814 2008-08-01 Vincent Celier <celier@adacore.com>
1816 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1818 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1820 * prj.adb (Object_Exist_For): Use Object_Generated, not
1821 Objects_Generated that is removed and was never modified anyway.
1824 (Path_Syntax_Kind): New enumeration type
1825 (Language_Config): New component Path_Syntax, defaulted to Host.
1826 Components PIC_Option and Objects_Generated removed, as they are not
1829 * snames.adb: New standard name Path_Syntax
1831 * snames.ads: New standard name Path_Syntax
1833 2008-08-01 Vincent Celier <celier@adacore.com>
1836 (Adalib_Path): New variable to store the path of the adalib directory
1837 when procedure Specify_Adalib_Dir is called.
1838 (Lib_Directory): If Adalib_Path is not null, return its value
1839 (Specify_Adalib_Dir): New procedure
1841 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1843 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1846 (Check_Precondition_Postcondition): If not generating code, analyze the
1847 expression in a postcondition that appears in a subprogram body, so that
1848 it is properly decorated for ASIS use.
1850 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1852 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1853 Orig_Prev to Prev in the case where the actual is N_Function_Call or
1854 N_Identifier. This was interfering with other cases that are rewritten
1855 as N_Identifier, such as allocators, resulting in passing of the wrong
1856 accessibility level, and based on testing this code is apparently no
1857 longer needed at all.
1859 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1861 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1862 procedure call whose prefix
1863 is a parameterless function call that returns an access_to_procedure.
1865 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1867 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1868 for RTX. Adding a suffix that is incremented at each iteration.
1870 2008-08-01 Robert Dewar <dewar@adacore.com>
1872 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1875 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
1877 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1878 paths, which are authorized by Windows but can lead to errors when used
1881 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1883 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1884 a pending instantiation for the body of a subprogram that is to be
1888 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1890 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1891 create a pending instance for its body, so that calls to the subprogram
1892 can be inlined by the back-end.
1894 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1896 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1899 2008-08-01 Robert Dewar <dewar@adacore.com>
1901 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1903 2008-08-01 Doug Rupp <rupp@adacore.com>
1905 * gnat_rm.texi: Document new mechanism Short_Descriptor.
1907 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1910 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1911 mechanism and Short_Descriptor mechanism values.
1913 * snames.adb (preset_names): Add short_descriptor entry.
1915 * snames.ads: Add Name_Short_Descriptor.
1917 * types.h: Add new By_Short_Descriptor mechanism values.
1919 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1920 mechanism and Short_Descriptor mechanism values.
1922 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1924 (Descriptor_Codes): Modify range for new mechanism values.
1926 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1929 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1930 (gnat_to_gnu_param): Handle By_Short_Descriptor.
1932 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1933 (build_vms_descriptor32): New prototype.
1934 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1936 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1937 argument in call fill_vms_descriptor.
1939 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1940 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1941 (build_vms_descriptor): Renamed from build_vms_descriptor64.
1942 (convert_vms_descriptor32): New function.
1943 (convert_vms_descriptor64): New function.
1944 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1947 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1950 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1952 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1953 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1956 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1958 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1959 current directory so only fully qualified names are allowed.
1961 2008-08-01 Robert Dewar <dewar@adacore.com>
1964 Minor editing, remove uncomfortable use of semicolon
1966 * s-ststop.adb: Add some ??? comments
1968 * sem_ch10.adb: Minor reformatting
1971 Minor comment fixes, some pragmas were not properly
1972 categorized in the comments, documentation change only
1974 * xref_lib.adb: Minor reformatting
1976 * sinput.adb: Minor reformatting
1978 * gnatchop.adb: Minor reformatting
1980 * sem_util.ads: Minor reformatting.
1982 * opt.ads: Minor documentation fix
1984 * scng.adb: Minor reformatting
1986 * prj-part.adb: Update comments
1988 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1990 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1991 tagged synchronized type, use corresponding record type.
1993 2008-08-01 Doug Rupp <rupp@adacore.com>
1995 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1996 dummy transfer address for debugging.
1998 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2000 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2002 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2004 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2005 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2007 2008-07-31 Pascal Obry <obry@adacore.com>
2009 * prj-nmsc.adb: Keep Object and Exec directory casing.
2011 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2013 * system-rtx-rtss.ads
2014 Change the default stack size. It is important to set the commit part.
2017 (Initialize): Get the clock resolution.
2018 (RT_Resolution): Return the clock resolution that is indicated by the
2021 * s-parame-vxworks.adb
2022 Document that this body is used for RTX in RTSS (kernel) mode.
2024 * gcc-interface/Makefile.in
2025 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2026 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2027 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2028 cannot ask for too big values.
2030 2008-07-31 Robert Dewar <dewar@adacore.com>
2032 * exp_aggr.adb: Minor reformatting
2034 * makeutl.adb: Minor reformatting
2036 * prj-env.adb: Minor reformatting
2038 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2040 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2041 tagged type is completed by a concurrent type.
2043 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2046 (Resolve_Record_Aggregate): Bypass error that a type without
2047 components must have a "null record" aggregate when compiling for Ada
2048 2005, since it's legal to give an aggregate of form (others => <>)
2051 2008-07-31 Javier Miranda <miranda@adacore.com>
2053 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2054 handle synchronized types. Required to handle well the object.operation
2055 notation applied to synchronized types.
2057 2008-07-31 Quentin Ochem <ochem@adacore.com>
2059 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2060 anymore - just used internally.
2061 Added handling of very small tasks - when the theoretical size is
2062 already full at the point of the call.
2063 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2064 not need to be added to the result.
2066 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2068 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2069 corresponding spec is a primitive wrapper. Update comment.
2071 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2073 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2074 (Gen_Adainit_Ada): Add the declaration, import and value set for
2075 configuration flag Canonical_Streams.
2076 (Gen_Adainit_C): Add the declaration and initial value of external
2077 symbol __gl_canonical_streams.
2079 * init.c: Update the list of global values computed by the binder.
2081 * opt.ads: Add flag Canonical_Streams.
2083 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2084 semantically handled pragmas.
2086 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2087 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2089 * snames.adb: Add character value for name Canonical_Streams.
2092 Add Name_Canonical_Streams to the list of configuration pragmas.
2093 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2095 * snames.h: Add a definition for Pragma_Canonical_Streams.
2098 Add a flag and import to seize the value of external symbol
2099 __gl_canonical_streams. Update comment and initial value of constant
2102 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2105 Add pragma Canonical_Streams to the list of configuration pragmas.
2107 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2109 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2110 has the form A.B.C and B is a unit renaming, analyze its compilation
2111 unit and add a with_clause on A.b to the context.
2113 2008-07-31 Vincent Celier <celier@adacore.com>
2115 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2116 return the empty string, instead of raising Constraint_Error.
2118 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2120 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2122 * checks.adb (Apply_Accessibility_Check): Insert the check on
2126 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2127 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2128 Necessary to distinguish the insertion node because the dereferenced
2129 formal may come from a rename, but the check must be inserted in
2130 front of the attribute.
2133 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2134 call to Apply_Accessibility_Check.
2135 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2136 on call to Apply_Accessibility_Check.
2139 2008-07-31 Javier Miranda <miranda@adacore.com>
2141 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2142 types when the candidate type is a synchronized type.
2144 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2145 types, and complete management of synchronized types adding missing
2146 code to handle formal that is a synchronized type.
2148 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2149 are not available and cause the compiler to blowup. Found compiling
2150 test with switch -gnatc
2152 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2153 Has_Correct_Formal_Mode plus code cleanup.
2155 2008-07-31 Bob Duff <duff@adacore.com>
2157 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2158 recognized as two end-of-lines, but it should be just one.
2160 2008-07-31 Thomas Quinot <quinot@adacore.com>
2162 * exp_ch9.adb: Minor reformatting
2164 * tbuild.ads: Fix several occurrences of incorrectly referring to
2165 Name_Find as Find_Name.
2167 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2169 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2170 and the context is an object declaration with non-static bounds, treat
2171 the aggregate as non-static.
2173 2008-07-31 Vincent Celier <celier@adacore.com>
2175 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2176 Move back spec of Parse_Single_Project to body, as it is not called
2177 outside of package Prj.Part.
2178 (Project_Data): Remove components Linker_Name, Linker_Path and
2179 Minimum_Linker_Options as they are no longer set.
2180 Remove function There_Are_Ada_Sources from package Prj and move code
2181 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2183 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2185 * mlib-utl.ads: Fix typo.
2187 2008-07-31 Robert Dewar <dewar@adacore.com>
2189 * sem_ch12.adb: Minor reformatting
2191 2008-07-31 Sergey Rybin <rybin@adacore.com>
2193 * gnat_ugn.texi: Change the description of the
2194 Overly_Nested_Control_Structures: now the rule always requires a
2195 positive parameter for '+R' option
2197 2008-07-31 Thomas Quinot <quinot@adacore.com>
2199 * g-pehage.adb: Minor reformatting
2201 2008-07-31 Pascal Obry <obry@adacore.com>
2203 * s-finimp.ads: Minor reformatting.
2205 2008-07-31 Vincent Celier <celier@adacore.com>
2207 * s-regexp.ads: Minor comment fix
2209 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2211 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2212 so that we can compile this file successfully with -gnatc.
2214 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2216 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2217 of the type when looking for stream subprograms for type String,
2218 Wide_String and Wide_Wide_String.
2220 * s-ststop.adb: Change the initialization expression of constant
2223 2008-07-31 Geert Bosch <bosch@adacore.com>
2226 New file implementing __gnat_mulv64 signed integer multiplication with
2229 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2231 * gcc-interface/gigi.h:
2232 (standard_types): Add ADT_mulv64_decl
2233 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2235 * gcc-interface/utils.c:
2236 (init_gigi_decls): Add initialization of mulv64_decl
2238 * gcc-interface/trans.c:
2239 (build_unary_op_trapv): New function
2240 (build_binary_op_trapv): New function
2241 (gnat_to_gnu): Use the above functions instead of
2242 build_{unary,binary}_op
2244 * gcc-interface/Makefile.in
2245 (LIBGNAT_SRCS): Add arit64.c
2246 (LIBGNAT_OBJS): Add arit64.o
2248 2008-07-31 Vincent Celier <celier@adacore.com>
2250 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2251 Linker'Default_Switches are declared. Warn if they are declared.
2253 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2255 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2256 Insert_Actions to place the pointer declaration in the code, rather
2257 than Insert_Before_And_Analyze, so that insertions of temporaries are
2258 kept in the proper order when transient scopes are present.
2261 2008-07-31 Robert Dewar <dewar@adacore.com>
2263 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2265 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2267 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2270 2008-07-31 Vincent Celier <celier@adacore.com>
2272 * s-os_lib.adb: Minor comment fix
2274 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2276 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2277 transfer pre/postconditions from generic copy to original tree, so that
2278 they will appear in each instance.
2279 (Process_PPCs): Do not transform postconditions into a procedure in a
2280 generic context, to prevent double expansion of check pragmas.
2282 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2283 can be the renaming of the
2284 current instance, so check validity of the name accordingly.
2286 2008-07-31 Robert Dewar <dewar@adacore.com>
2288 * mlib-utl.ads: Minor reformatting
2290 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2292 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2293 from context. This attribute must be usable in Ada95 mode.
2294 The attribute can appear in the body of a function marked
2295 Inline_Always, but in this case the postocondition is not enforced.
2297 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2298 of an inlined call pre- and postconditions are legal
2300 2008-07-31 Vincent Celier <celier@adacore.com>
2302 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2303 were for gprmake only
2305 2008-07-31 Robert Dewar <dewar@adacore.com>
2307 * gnat_ugn.texi: Update -gnatN documentation.
2309 * gnat_rm.texi: Add note about pre/postcondition
2310 pragmas not checked in conjunction with front-end inlining.
2312 2008-07-31 Robert Dewar <dewar@adacore.com>
2314 * g-pehage.adb, g-pehage.ads: Minor reformatting
2316 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2318 * mlib-utl.ads, prj-makr.ads: Add comments.
2320 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2322 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2323 [WINDOWS]: Add s-winext.o.
2325 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2328 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2329 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2330 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2331 Set precision to 1 for subtype of BOOLEAN_TYPE.
2332 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2333 (make_type_from_size): Deal with BOOLEAN_TYPE.
2334 * gcc-interface/misc.c (gnat_print_type): Likewise.
2335 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2336 Set boolean_type_node as its translation in the table, as well
2337 as boolean_false_node for False and boolean_true_node for True.
2338 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2339 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2340 (create_param_decl): Deal with BOOLEAN_TYPE.
2341 (build_vms_descriptor): Likewise.
2342 (build_vms_descriptor64): Likewise.
2343 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2345 2008-07-30 Robert Dewar <dewar@adacore.com>
2347 * exp_ch9.adb: Minor reformatting
2349 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2350 if no primitive operation is found.
2352 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2354 * sem_ch8.adb: Minor reformatting
2356 2008-07-30 Laurent Pautet <pautet@adacore.com>
2359 Remove a limitation on the length of the words handled by the minimal
2360 perfect hash function generator.
2363 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2366 2008-07-30 Robert Dewar <dewar@adacore.com>
2368 * gnatlink.adb: Minor reformatting
2370 2008-07-30 Thomas Quinot <quinot@adacore.com>
2372 * rtsfind.adb (Check_RPC): Check version consistency even when not
2373 generating RCI stubs. Provide more detailed error message in case of
2376 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2378 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2379 as a actual in an instance, check for a missing attribute to prevent
2380 program_error on an illegal program.
2382 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2383 error if primitive is not found, so that exception can be handled
2384 elsewhere on illegal programs.
2386 2008-07-30 Robert Dewar <dewar@adacore.com>
2388 * uintp.adb (UI_GCD): Fix potential overflow
2390 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2392 * einfo.adb: Flag245 is now used.
2393 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2394 check to include functions.
2395 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2396 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2398 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2399 to the list of displayed flags.
2401 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2402 Wrapped_Entity. These two flags are now present in functions.
2403 New flag Is_Private_Primitive.
2404 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2407 (Build_Wrapper_Bodies): New subprogram.
2408 (Build_Wrapper_Body): The spec and body have been moved to in
2409 Build_Wrapper_ Bodies. Code cleanup.
2410 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2411 Wrappers are now generated for primitives declared between the private
2412 and full view of a concurrent type that implements an interface.
2413 (Build_Wrapper_Specs): New subprogram.
2414 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2415 creation mechanism with a call to Build_Wrapper_Bodies.
2416 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2417 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2418 (Expand_N_Task_Body): Replace the wrapper body creation
2419 mechanism with a call to Build_Wrapper_Bodies.
2420 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2421 creation mechanism with a call to Build_Wrapper_Specs.
2422 (Is_Private_Primitive_Subprogram): New subprogram.
2423 (Overriding_Possible): Code cleanup.
2424 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2426 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2428 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2429 (Process_Full_View): Build wrapper specs for all primitives
2430 that belong to a private view completed by a concurrent type
2431 implementing an interface.
2433 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2435 concurrent type with a private view that implements an interface, try to
2436 find the proper spec.
2437 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2438 primitive if the type of its first parameter is a non-generic tagged
2440 (Analyze_Subprogram_Specification): Code reformatting.
2441 (Disambiguate_Spec): New routine.
2442 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2443 (Is_Private_Concurrent_Primitive): New routine.
2446 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2448 2008-07-30 Doug Rupp <rupp@adacore.com>
2450 * gigi.h (build_vms_descriptor64): New function prototype.
2451 (fill_vms_descriptor): Modified function prototype.
2453 * utils.c (build_vms_descriptor64): New function.
2455 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2457 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2460 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2461 64bit and 32bit descriptor and save the 64bit version as an alternate
2462 TREE_TYPE in the parameter.
2463 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2466 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2468 2008-07-30 Robert Dewar <dewar@adacore.com>
2470 * make.adb: Minor reformatting
2472 * mlib-utl.adb: Minor reformatting
2474 * osint.ads: Minor reformatting
2476 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2479 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2480 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2481 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2484 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2485 the function RtPrintf for console output.
2487 * argv.c Do not use the environ variable for RTX.
2489 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2490 been moved before the call to Osint.Add_Default_Search_Dirs in order
2491 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2492 from the appropriate run time.
2495 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2496 target is a RTSS module for RTX.
2498 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2499 RTX_RTSS_Kernel_Module
2500 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2502 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2503 exception handling mechanism for Windows and RTX in Win32 mode, but
2504 not for RTX in kernel mode (RTSS).
2505 (LIBGNAT_SRCS): Remove ada.h
2507 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2509 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2510 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2511 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2512 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2513 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2514 ALL_ADA_CFLAGS): Remove.
2515 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2516 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2517 (GCC_CFLAGS): Remove X_CFLAGS.
2518 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2519 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2520 (ADA_CFLAGS): Substitute.
2522 2008-07-30 Laurent Guerby <laurent@guerby.net>
2525 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2526 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2527 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2528 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2529 by stamp-gnatlib2-rts.
2531 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2533 PR documentation/15479
2534 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2535 statement for GNAT. Add @copying stanza, use it. Update to
2536 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2537 title as Front-Cover Text.
2538 * gnat_rm.texi: Likewise.
2539 * gnat_ugn.texi: Likewise.
2541 2008-07-29 Jan Hubicka <jh@suse.cz>
2543 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2546 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2548 * gcc-interface: New directory.
2550 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2551 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2552 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2553 to gcc-interface subdirectory.
2555 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2557 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2559 2008-07-28 Jan Hubicka <jh@suse.cz>
2561 * misc.c (gnat_post_options): Do not set flag_no_inline.
2563 2008-07-28 Richard Guenther <rguenther@suse.de>
2565 Merge from gimple-tuples-branch.
2567 2008-07-22 Olivier Hainque <hainque@adacore.com>
2569 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2570 this is called for an elab proc to be discarded if empty.
2571 * utils.c (end_subprog_body): Honor ELAB_P.
2572 (build_function_stub): Adjust call to end_subprog_body.
2573 * trans.c (Subprogram_Body_to_gnu): Likewise.
2574 (gigi): Reorganize processing of elab procs to prevent
2575 gimplifying twice, using the new end_subprog_body argument.
2577 2008-07-19 Richard Guenther <rguenther@suse.de>
2579 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2580 (utils.o): Likewise.
2581 * trans.c: Include tree-iterator.h.
2582 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2583 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2584 (set_expr_location_from_node): Likewise.
2586 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2588 * utils.c: Include tree-iterator.h.
2589 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2591 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2593 * trans.c: Include gimple.h instead of tree-gimple.h.
2596 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2598 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2600 2008-07-25 Jan Hubicka <jh@suse.cz>
2602 * utils.c (end_subprog_body): Remove inline trees check.
2603 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2605 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2607 * raise-gcc.c: Move tsystem.h before tm.h.
2609 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2611 * gnathtml.pl: New file.
2613 2008-07-19 Olivier Hainque <hainque@adacore.com>
2615 * targtyps.c (get_target_default_allocator_alignment): Use
2616 MALLOC_ABI_ALIGNMENT.
2618 2008-07-17 Olivier Hainque <hainque@adacore.com>
2620 * adaint.c (__MINGW32__ section): Include ctype.h and define
2621 a fallback ISALPHA if IN_RTS.
2622 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2624 2008-07-17 Olivier Hainque <hainque@adacore.com>
2626 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2627 argument, to apply to references in addition to definitions. Prevent
2628 setting TREE_STATIC on externals.
2629 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2631 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2633 PR documentation/15479
2634 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2635 Replace backets around optional parameters with @ovar
2636 where possible, use @r{[}, @r{]} otherwise.
2637 Replace some @r, @i, and @emph with @var where appropriate.
2639 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2641 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2643 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2645 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2646 -Wc++-compat warnings.
2647 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2648 __gnat_locate_exec_on_path): Likewise.
2649 * decl.c (annotate_value): Likewise.
2650 * misc.c (gnat_handle_option): Likewise.
2651 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2652 post_error_ne_tree): Likewise.
2654 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2656 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2657 version of its type, attempt to first convert its elements.
2659 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2661 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2663 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2665 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2667 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2669 * utils2.c (known_alignment): Derive the alignment from pointed-to
2670 types only if it is otherwise unknown.
2671 <INTEGER_CST>: Tidy.
2672 <MULT_EXPR>: Likewise.
2673 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2676 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2679 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2681 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2683 * gnat_rm.texi (Implementation Defined Characteristics)
2684 (Standard Library Routines): Use @smallexample for indented
2685 text. Drop Indentation outside examples.
2686 * gnat_ugn.texi: Likewise.
2688 2008-06-13 Olivier Hainque <hainque@adacore.com>
2690 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2692 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2693 realignment with force_align_arg_pointer attribute on foreign
2694 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2696 2008-06-13 Olivier Hainque <hainque@adacore.com>
2698 * utils.c (rest_of_record_type_compilation): When computing
2699 encodings for the components of a variable size type, early
2700 strip conversions on the current position expression to make
2701 sure it's shape is visible. Use remove_conversions for this
2704 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2706 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2707 constrained subtype of a discriminated type, discard the fields that
2708 are beyond its limits according to its size.
2710 2008-06-10 Olivier Hainque <hainque@adacore.com>
2712 * utils.c (create_subprog_decl): If this is for the 'main' entry
2713 point according to the asm name, redirect main_identifier_node.
2715 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2717 * decl.c (components_to_record): Adjust the packedness for the
2718 qualified union as well.
2720 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2722 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2725 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2727 * sem_res.adb (Large_Storage_Type): A type is large if it
2728 requires as many bits as Positive to store its values and its
2729 bounds are known at compile time.
2730 * sem_ch13.adb (Minimum_Size): Note that this function returns
2731 0 if the size is not known at compile time.
2733 2008-06-06 Nicolas Setton <setton@adacore.com>
2734 Olivier Hainque <hainque@adacore.com>
2736 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2737 attribute, parallel descriptive type attached to another
2738 type for debug info generation purposes.
2739 * utils.c (add_parallel_type): New function, register
2740 parallel type to be attached to a type.
2741 (get_parallel_type): New function, fetch a registered
2742 parallel type, if any.
2743 (rest_of_record_type_compilation): Register the parallel
2744 type we make for variable size records.
2745 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2746 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2747 parallel debug types we make.
2748 * trans.c (extract_encoding, decode_name): New functions.
2749 (gigi): If the DWARF attribute extensions are available, setup
2751 * lang.opt: Register language specific processing request
2753 * misc.c (gnat_dwarf_extensions): New global variable. How much
2754 do we want of our DWARF extensions. 0 by default.
2755 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2756 (gnat_post_options): Map gnat_dwarf_extensions to the
2757 commonuse_gnu_debug_info_extensions for later processing.
2759 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2761 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2763 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2765 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2766 * gnat_ugn.texi (Style Checking)
2767 (Adding the Results of Compiler Checks to gnatcheck Output)
2768 (Example of Binder Output File): Fix typos.
2769 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2770 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2771 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2772 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2773 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2774 sinfo.ads, utils.c: Fix typos in comments.
2775 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2777 2008-05-29 Thomas Quinot <quinot@adacore.com>
2779 * sem_eval.adb: Minor reformatting
2781 2008-05-29 Ed Schonberg <schonberg@adacore.com>
2783 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2784 is abstract, do not apply abstractness check on subprogram if this is
2785 a renaming declaration.
2787 2008-05-29 Arnaud Charlet <charlet@adacore.com>
2790 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2791 allow recognition of program suffix in addition to prefix.
2793 * gnatchop.adb (Locate_Executable): Add support for prefix.
2795 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2796 mlib-utl.adb: Adjust calls to Program_Name.
2798 2008-05-29 Robert Dewar <dewar@adacore.com>
2800 * sem_ch3.adb: Minor reformatting
2801 * sem_prag.adb: Minor reformatting
2802 * sem_res.adb: Minor reformatting
2803 * sinput-p.ads: Minor reformatting
2805 2008-05-29 Javier Miranda <miranda@adacore.com>
2808 (Abstract_Interface_List): Add missing support for full type-declaration
2809 associated with synchronized types.
2811 2008-05-29 Robert Dewar <dewar@adacore.com>
2813 * sem_eval.adb (Is_Same_Value): Take care of several more cases
2815 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2817 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2818 access type, wrap the expression in a conversion to force an
2819 accessibility check.
2821 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2822 accessibility checks even when expansion is disabled in order to
2823 generate messages in the presence of previous errors or in
2824 semantics-only mode.
2826 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
2828 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2829 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2831 2008-05-28 Vincent Celier <celier@adacore.com>
2834 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2835 preprocessing expressions
2837 2008-05-28 Vincent Celier <celier@adacore.com>
2839 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2842 * sinput-p.ads: Minor comment update and reformatting
2844 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2846 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2847 type has a deeper level than any master only when it is the type of an
2850 2008-05-28 Javier Miranda <miranda@adacore.com>
2852 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2854 2008-05-28 Javier Miranda <miranda@adacore.com>
2856 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2857 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2858 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2859 Add code that was previously located in
2860 Find_Overridden_Synchronized_Primitive because it is only used here.
2862 2008-05-28 Sergey Rybin <rybin@adacore.com>
2864 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2865 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2867 2008-05-28 Robert Dewar <dewar@adacore.com>
2870 Add missing restrictions, and properly label all GNAT defined ones
2873 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2874 Add entry for Ada.Task_Termination.Set_Specific_Handler
2875 Add entry for Ada.Task_Termination.Specific_Handler
2878 Add missing restrictions and properly mark all gnat defined ones
2881 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2884 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2886 * gnat_rm.texi: Add missing restrictions, and properly label all
2889 2008-05-28 Robert Dewar <dewar@adacore.com>
2892 (Check_Restriction): violation of restriction No_Finalization is
2893 treated as a serious error to stop expansion
2895 2008-05-28 Robert Dewar <dewar@adacore.com>
2897 * exp_util.adb: Minor reformatting
2898 * exp_util.ads: Minor reformatting.
2900 2008-05-28 Arnaud Charlet <charlet@adacore.com>
2902 * Make-lang.in: Remove gprmake.
2904 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2906 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2908 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2909 improper progenitor names, and avoid cascaded errors.
2911 2008-05-28 Robert Dewar <dewar@adacore.com>
2913 * gnat_rm.texi: Add note on Old giving warning when applied to constant
2915 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2918 2008-05-28 Robert Dewar <dewar@adacore.com>
2920 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2923 2008-05-28 Robert Dewar <dewar@adacore.com>
2926 (Expand_Simple_Function_Return): Copy unaligned result into temporary
2928 2008-05-28 Javier Miranda <miranda@adacore.com>
2930 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2931 for user-defined predefined primitives.
2933 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2934 (Find_Overridden_Synchronized_Primitive): Ditto.
2936 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2938 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2940 * a-ststio.adb, s-direio.adb:
2941 Further code clean up of previous change.
2944 2008-05-27 Vincent Celier <celier@adacore.com>
2946 * prj-nmsc.adb: Minor reformatting
2948 2008-05-27 Bob Duff <duff@adacore.com>
2950 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2951 untagged private type with a tagged full type, where the full type has
2952 a self reference, create the corresponding class-wide type early, in
2953 case the self reference is "access T'Class".
2955 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2957 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2958 tasks and context is an object declaration. create master entity before
2961 2008-05-27 Robert Dewar <dewar@adacore.com>
2963 * mlib-prj.adb: Minor reformatting
2965 * prj-part.adb: Minor reformatting
2967 * prj.ads: Minor reformatting
2969 * exp_ch3.adb: Minor reformatting.
2971 * sem_ch3.ads: Minor reformatting
2973 * sem_eval.adb: Minor reformatting
2975 2008-05-27 Vincent Celier <celier@adacore.com>
2978 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2980 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2982 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2983 tasks, create an activation chain now, before the expansion into
2984 assignments and build-in-place calls that require the presence of an
2986 (Backend_Processing_Possible): If the component type is inherently
2987 limited, the aggregate must be expanded into individual built-in-place
2990 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2991 determine whether an allocation extra parameter must be built, to
2992 handle case of a private type whose full type is a discriminated type
2995 2008-05-27 Bob Duff <duff@adacore.com>
2998 Document the new behavior regarding trampolines.
3000 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3002 * a-direio.adb, a-sequio.adb: Replace address clause by
3003 unrestricted_access, simpler and compatible with .NET.
3005 2008-05-27 Vincent Celier <celier@adacore.com>
3008 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3009 a project file, so that symbolic links are not resolved.
3011 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3013 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3014 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3015 portable across GNAT targets, since this kind of address clause is not
3016 supported by VM back-ends (.NET/JGNAT).
3018 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3020 * bindgen.adb: Update comments.
3022 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3024 2008-05-27 Vincent Celier <celier@adacore.com>
3026 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3027 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3028 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3029 (Path_Information): New record type
3030 Use component of type Path_Information when there are two paths, one in
3031 canonical format and one in display format.
3032 Update the project manager to these new components.
3034 2008-05-27 Robert Dewar <dewar@adacore.com>
3036 * makeutl.adb: Minor reformatting
3037 * prj-nmsc.adb: Minor reformatting
3038 * s-stausa.adb: Minor reformatting
3039 * s-stausa.ads: Minor reformatting
3040 * sem_ch6.adb: Minor reformatting
3042 2008-05-27 Thomas Quinot <quinot@adacore.com>
3044 * sem_res.adb: Minor comment fixes
3046 2008-05-27 Thomas Quinot <quinot@adacore.com>
3048 * makeutl.adb: Minor code reorganization
3050 * exp_aggr.adb: Add ??? comment
3053 * exp_ch6.adb: Minor reformatting
3055 2008-05-27 Quentin Ochem <ochem@adacore.com>
3057 * s-stausa.adb (Initialize): Updated result initialization, and
3058 initialization of environment stack.
3059 (Fill_Stack): Improved computation of the pattern zone, taking into
3060 account already filled at the calling point.
3061 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3062 Measure and Overflow_Guard.
3063 (Report_Result): Fixed computation of the result using new fields of
3066 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3067 params by more explicit Stack_Size / Max_Pattern_Size params.
3068 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3069 Added Stack_Used_When_Filling field.
3070 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3071 Min_Measure and Max_Measure fields.
3073 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3075 2008-05-27 Vincent Celier <celier@adacore.com>
3078 (Check_File): Make sure that a unit that replaces the same unit in a
3079 project being extended is properly processed.
3081 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3084 (Get_Discr_Value): Remove obsolete code that failed to find the value
3085 of a discriminant for an inherited task component appearing in a type
3088 2008-05-27 Thomas Quinot <quinot@adacore.com>
3090 (System.File_IO.{Close, Delete, Reset}):
3091 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3093 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3094 Pass File parameter by reference.
3096 2008-05-27 Vincent Celier <celier@adacore.com>
3099 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3100 sources of the same project that have the same object file name.
3101 (Find_Explicit_Sources): Always remove a source exception that was not
3104 2008-05-27 Thomas Quinot <quinot@adacore.com>
3106 * sem_ch3.adb: Minor reformatting
3108 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3111 (Is_Interface_Conformant): Handle properly a primitive operation that
3112 overrides an interface function with a controlling access result.
3113 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3114 inherited and overriding operations, omit as well the conformance check
3115 on result types, to prevent spurious errors.
3117 2008-05-27 Vincent Celier <celier@adacore.com>
3119 * makeutl.ads, makeutl.adb:
3120 (Set_Location): New procedure
3121 (Get_Location): New function
3122 (Update_Main): New procedure
3124 2008-05-27 Vincent Celier <celier@adacore.com>
3127 (Check_Library): Allow standard project to be extended as a static
3129 (Get_Mains): Do not inherit attribute Main in an extending library
3132 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3134 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3135 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3136 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3137 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3138 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3139 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3140 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3141 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3142 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3143 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3145 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3147 * sem_attr.adb: add guard to previous patch.
3149 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3151 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3152 a synchronized tagged type, do not attempt to build dispatch table for
3153 full view. The table is built for the corresponding record type, which
3154 has its own declaration.
3156 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3158 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3159 to the known type entity E, rather than setting it to Any_Type. Fixes
3160 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3161 for objects whose type had an illegal constraint.
3163 2008-05-27 Vincent Celier <celier@adacore.com>
3166 Add succinct documentation for attribute Excluded_Source_List_File
3168 2008-05-27 Vincent Celier <celier@adacore.com>
3170 * prj-attr.adb: Add new project level attribute Map_File_Option
3172 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3174 * prj.ads: Minor reformatting and comment update
3175 (Project_Configuration): New component Map_File_Option
3177 * snames.adb: New standard name Map_File_Option
3179 * snames.ads: New standard name Map_File_Option
3181 2008-05-27 Vincent Celier <celier@adacore.com>
3183 * xsnames.adb: Remove unused variable Oname
3185 2008-05-27 Doug Rupp <rupp@adacore.com>
3188 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3191 (Expand_Vax_Foreign_Return): Fix comments.
3193 2008-05-27 Thomas Quinot <quinot@adacore.com>
3195 * exp_dist.adb: Minor reformating
3197 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3199 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3200 No_Default_Initialization, which is now delayed until the freeze point
3201 of the object. Add a comment about deferral of the check.
3203 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3204 on objects is moved here.
3206 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3208 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3209 (Compare_Array_S16): Adjust for above change.
3210 * s-casi32.adb (Uword): Likewise.
3211 (Compare_Array_S32): Likewise.
3212 * s-casi64.adb (Uword): Likewise.
3213 (Compare_Array_S64): Likewise.
3214 * s-caun16.adb (Uhalf): Likewise.
3215 (Compare_Array_U16): Likewise.
3216 * s-caun32.adb (Uword): Likewise.
3217 (Compare_Array_U32): Likewise.
3218 * s-caun64.adb (Uword): Likewise.
3219 (Compare_Array_U64): Likewise.
3221 2008-05-26 Robert Dewar <dewar@adacore.com>
3223 * exp_ch6.adb: Add ??? comment for previous change
3225 * exp_vfpt.adb: Minor reformatting
3227 * exp_vfpt.ads: Add ??? comment for last change
3229 * sem_attr.adb: Add some ??? comments for previous change
3231 * s-vaflop.ads: Add comments for previous change
3233 2008-05-26 Doug Rupp <rupp@adacore.com>
3235 * s-vaflop-vms-alpha.adb:
3236 Remove System.IO use clause, to prevent spurious ambiguities when
3237 package is access through rtsfind.
3239 2008-05-26 Sergey Rybin <rybin@adacore.com>
3241 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3244 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3247 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3248 converted to S (A)'address only if A .. B is known to be a non-null
3251 2008-05-26 Doug Rupp <rupp@adacore.com>
3254 (Return_D, Return_F, Return_G): New functions.
3257 (Return_D, Return_F, Return_G): New functions.
3260 (Expand_Vax_Foreign_Return): New procedure
3263 (Expand_Vax_Foreign_Return): New procedure
3266 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3267 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3271 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3273 * s-vaflop-vms-alpha.adb:
3274 (Return_D, Return_F, Return_G): New functions.
3276 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3278 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3279 init proc entity when there is actual default initialization associated
3280 with the component type, to avoid spurious errors on objects of scalar
3281 array types that are marked Is_Public when No_Default_Initialization
3284 2008-05-26 Thomas Quinot <quinot@adacore.com>
3286 * rtsfind.ads, rtsfind.adb:
3287 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3288 (Check_RPC): Support per-PCS-kind API versioning.
3290 exp_dist.ads, exp_dist.adb:
3291 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3292 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3293 library function Get_RACW.
3294 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3295 library function Get_Reference.
3296 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3297 through an intermediate Any.
3298 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3299 going through an intermediate Any.
3301 * sem_dist.adb: Minor reformatting.
3303 2008-05-26 Javier Miranda <miranda@adacore.com>
3305 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3306 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3307 (Is_Internal): Adding documentation on internal entities that have
3308 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3310 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3311 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3312 Added assertion to force entities with this attribute to have
3313 attribute Is_Internal set to True.
3314 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3316 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3317 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3318 a new implementation.
3319 (Add_Interface_Tag_Components): Remove special management of
3320 synchronized interfaces.
3321 (Analyze_Interface_Declaration): Minor reformating
3322 (Build_Derived_Record_Type): Minor reformating
3323 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3324 predefined primitive inherited from interface type because the body of
3325 internally generated predefined primitives of tagged types are generated
3326 later by Freeze_Type
3327 (Derive_Subprogram): Avoid generating an internal name if the parent
3328 subprogram overrides an interface primitive.
3329 (Derive_Subprograms): New implementation that keeps separate the
3330 management of tagged types not implementing interfaces, from tagged
3331 types that implement interfaces.
3332 (Is_Progenitor): New implementation.
3333 (Process_Full_View): Add documentation
3334 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3335 by call to Derive_Progenitor_Subprograms.
3337 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3338 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3339 Skip_Controlling_Formals.
3341 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3342 (Check_Conventions): New implementation. Remove local subprogram
3343 Skip_Check. Remove formal Search_From of routine Check_Convention.
3344 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3345 Skip_Controlling_Formals.
3346 (New_Overloaded_Entity): Enable addition of predefined dispatching
3350 (Find_Primitive_Covering_Interface): New subprogram.
3352 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3353 the task body procedure as a primitive of the corresponding tagged
3355 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3356 to the list of primitives.
3357 (Find_Primitive_Covering_Interface): New subprogram.
3358 (Override_Dispatching_Operation): Add documentation.
3360 * sem_type.adb (Covers): Minor reformatings
3362 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3365 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3366 (Implements_Interface): New subprogram.
3367 (Is_Parent): Removed.
3368 (Primitive_Names_Match): New subprogram.
3369 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3370 (Ultimate_Alias): New subprogram.
3372 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3374 Remove special management for synchronized types. Rename formal. Remove
3375 internal subprograms Interface_Present_In_Parent and Add_Interface.
3376 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3377 on non-record types by code to return false in such case.
3378 (Implements_Interface): New subprogram.
3379 (Is_Parent): Removed. No special management is now required for
3380 synchronized types covering interfaces.
3381 (Primitive_Names_Match): New subprogram.
3382 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3383 (Ultimate_Alias): New subprogram.
3385 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3386 Add internal entities associated with secondary dispatch tables to
3387 the list of tagged type primitives that are not interfaces.
3388 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3389 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3390 the management of predefined equality operator. In addition, if
3391 the type has an equality function corresponding with a primitive
3392 defined in an interface type, the inherited equality is abstract
3393 as well, and no body can be created for it.
3395 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3396 exp_util to exp_disp.
3397 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3398 an entity corresponds with one of the predefined primitives required
3399 to implement interfaces.
3400 Update copyright notice.
3402 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3403 final check on abstract subprograms all the primitives associated with
3404 interface primitives because they must be visible in the public and
3406 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3407 interface type. This allows the use of this routine, for debugging
3408 purposes, when the tagged type is not fully decorated.
3409 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3410 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3411 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3412 entity corresponds with one of the predefined primitives required to
3413 implement interfaces.
3415 * exp_util.adb (Find_Interface_ADT): New implementation
3416 (Find_Interface): Removed.
3418 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3419 list of interfaces associated with nodes
3420 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3422 2008-05-26 Thomas Quinot <quinot@adacore.com>
3424 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3425 condition for assignment to temporary.
3427 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3429 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3430 checks on the upper bound if the index type is a modular type, to
3431 prevent wrap-around computations when size is close to upper bound of
3434 2008-05-26 Robert Dewar <dewar@adacore.com>
3436 * sem_ch3.adb: Minor reformatting
3438 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3440 * sem_ch12.adb (Remove_Parent): Use specification of instance
3441 to retrieve generic parent,
3442 to handle properly the case where the instance is a child unit.
3443 Add guard to handle properly wrapper packages.
3446 2008-05-26 Thomas Quinot <quinot@adacore.com>
3448 * sinfo.ads: Minor reformatting
3450 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3452 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3453 Generate a tag check when the result subtype of a function, defined by
3454 an access definition, designates a specific tagged type.
3455 (Make_Tag_Check): New routine.
3457 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3459 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3461 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3463 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3464 (builtin_decl_for): Likewise.
3465 * trans.c (gigi): Likewise.
3466 * utils.c (def_builtin_1): Fix formatting.
3468 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3470 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3471 Create the statements which map a string name to protected or task
3474 * exp_ch9.adb: Add with and use clause for Stringt.
3475 Minor code reformatting.
3476 (Build_Entry_Names): New routine.
3477 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3478 for flag Build_Entry_Names which controls the allocation of the data
3479 structure for the string names of entries.
3481 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3483 * exp_util.adb (Entry_Names_OK): New function.
3485 * exp_util.ads (Entry_Names_OK): New function.
3487 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3488 enumerations RE_Id and RE_Unit_Table.
3490 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3491 (Free_Entry_Names_Array): New routine.
3493 * s-taskin.ads: Comment reformatting.
3494 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3495 Add component Entry_Names to record Ada_Task_Control_Block.
3496 (Free_Entry_Names_Array): New routine.
3498 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3499 dynamically allocate an array
3500 of string pointers. This structure holds string entry names.
3501 (Free_Entry_Names): New routine.
3502 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3503 (Set_Entry_Names): New routine.
3506 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3507 control the allocation of the data structure which stores entry names.
3508 (Set_Entry_Name): New routine.
3511 Add with and use clause for Ada.Unchecked_Conversion.
3512 (Finalize): Deallocate the entry names array.
3513 (Free_Entry_Names): New routine.
3514 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3515 create an array of string pointers to hold the entry names.
3516 (Set_Entry_Name): New routine.
3519 Add field Entry_Names to record Protection_Entries.
3520 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3521 (Set_Entry_Name): New routine.
3523 2008-05-26 Vincent Celier <celier@adacore.com>
3526 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3529 (Project_Configuration): New component Shared_Lib_Driver
3531 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3534 (Cleanup_Scopes): For a protected operation, transfer finalization list
3535 to protected body subprogram, to force cleanup actions when needed.
3537 2008-05-26 Robert Dewar <dewar@adacore.com>
3539 * sem_cat.adb: Minor reformatting
3541 * gnatname.adb: Minor reformatting
3543 * osint.ads: Minor reformatting
3545 * s-carun8.ads: Minor reformatting
3547 * g-heasor.ads: Minor comment fix (unit is now pure)
3549 2008-05-26 Robert Dewar <dewar@adacore.com>
3552 (Expand_Current_Value): Properly type generated integer literal
3554 2008-05-26 Sergey Rybin <rybin@adacore.com>
3556 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3557 Separate_Numeric_Error_Handlers.
3559 2008-05-26 Pascal Obry <obry@adacore.com>
3561 * sem_aggr.adb: Minor reformatting.
3563 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3566 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3567 the scheduling policy to FIFO within priorities or round-robin
3569 Hence, the priority must be set in this case to the one selected by the
3572 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3575 (Remove_Parent): If the enclosing scope is an instance whose generic
3576 parent is declared within some parent scope of the just completed
3577 instance, make full views of the entities in that parent visible, when
3580 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3582 * mingw32.h (STD_MINGW): Set to true for target w64.
3584 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3586 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3587 instead of TREE_STATIC on the ADDR_EXPR.
3589 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3591 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3592 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3593 GNAT standard locations.
3595 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3597 * gigi.h (mark_visited): Declare.
3598 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3599 only the topmost node of expressions.
3600 (elaborate_expression_1): Look deeper for read-only variables.
3601 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3602 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3603 (mark_visited_r): New function.
3605 2008-05-23 Vincent Celier <celier@adacore.com>
3607 * snames.adb: New standard name Excluded_Source_List_File.
3609 * snames.ads: New standard name Excluded_Source_List_File.
3611 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3613 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3614 Get excluded sources from
3615 file indicated by attribute Excluded_Source_List_File, when present and
3616 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3618 2008-05-23 Robert Dewar <dewar@adacore.com>
3620 * exp_dist.adb: Minor reformatting
3622 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3624 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3625 slice, convert it to an indexed component, which is equivalent, more
3626 efficient, and usable even if the slice itself is not addressable.
3628 2008-05-23 Olivier Hainque <hainque@adacore.com>
3630 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3631 convention also allows access to named compiler built-in subprograms
3632 such as the GCC __builtin family.
3634 2008-05-23 Vincent Celier <celier@adacore.com>
3636 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3637 sep. If there are several possibilities, choose the one with the
3640 2008-05-23 Vincent Celier <celier@adacore.com>
3642 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3643 back end switches when executable specified with --GCC= is same as
3644 default, even if there are additional options.
3647 Document when the back end switches from the ALI file are taken into
3648 account when gnatlink is invoked with --GCC=
3650 2008-05-23 Thomas Quinot <quinot@adacore.com>
3653 (copy_File): Do not open destination file if source file is unreadable.
3655 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3657 * utils.c (handle_type_generic_attribute): Adjust to accept
3658 fixed arguments before an elipsis.
3660 2008-05-21 Thomas Quinot <quinot@adacore.com>
3662 * g-sothco.ads, g-sothco.adb: New files.
3664 2008-05-20 Thomas Quinot <quinot@adacore.com>
3666 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3668 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3669 Add missing "with" of Ada.Unchecked_Conversion
3671 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3672 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3673 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3674 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3675 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3676 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3677 Move common code out of GNAT.Sockets.Thin implementations and into
3679 New constant SIZEOF_fd_set
3680 New flag Has_Sockaddr_Len
3681 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3683 * g-stsifd-sockets.adb
3684 (Create): Remove call to Set_Length; use Set_Family to set the family
3685 and (on appropriate platforms) length fields in struct sockaddr.
3687 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3688 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3689 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3690 Move common code out of GNAT.Sockets.Thin implementations and into
3693 * g-socket.ads, g-socket.adb:
3694 Move common code out of GNAT.Sockets.Thin implementations and into
3696 (Connect_Socket, Accept_Socket): Provide new versions of these two
3697 routines that operate with a user specified timeout.
3698 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3699 this is now handled automatically by Set_Family on platforms that
3703 Move common code out of GNAT.Sockets.Thin implementations and into
3705 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3706 this constant to 0 (not -1) because we use it to initialize an
3707 unsigned_char value.
3708 Align values for numeric constants only.
3709 Handle the case of systems that do not support AF_INET6.
3710 New constant SIZEOF_fd_set
3711 New flag Has_Sockaddr_Len
3712 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3714 * gsocket.h: New flag Has_Sockaddr_Len
3715 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3717 2008-05-20 Santiago Uruena <uruena@adacore.com>
3719 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3721 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3723 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3724 the underlying issue with malloc/free has been fixed. Remove associated
3727 Related to PR ada/24533
3729 2008-05-20 Robert Dewar <dewar@adacore.com>
3731 * ali.adb: Correct casing of ASCII.NUL
3733 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3736 2008-05-20 Robert Dewar <dewar@adacore.com>
3737 Gary Dismukes <dismukes@adacore.com>
3739 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3740 overflow if result converted to wider integer type.
3741 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3742 discriminated types when discriminant checks are suppressed.
3744 2008-05-20 Vincent Celier <celier@adacore.com>
3746 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3747 Wide_Wide_Character.
3749 2008-05-20 Tristan Gingold <gingold@adacore.com>
3751 * decl.c: Do not emit a variable for a object that has an address
3752 representation clause whose value is known at compile time.
3753 When a variable has an address clause whose value is known at compile
3754 time, refer to this variable by using directly the address instead of
3755 dereferencing a pointer.
3757 2008-05-20 Robert Dewar <dewar@adacore.com>
3760 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3761 subtypes, always False for non-modular types.
3762 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3763 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3764 for Shared_Storage package.
3765 (Is_RACW_Stub_Type): New entity flag.
3768 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3769 case where we have a modular type with a non-binary modules.
3770 Comments reformattings.
3772 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3775 2008-05-20 Javier Miranda <miranda@adacore.com>
3778 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3779 tests did not covered the case in which the type of the aggregate has
3780 no progenitors but some its parents has progenitors.
3782 2008-05-20 Gary Dismukes <dismukes@adacore.com>
3783 Hristian Kirtchev <kirtchev@adacore.com>
3786 (Expand_N_Object_Declaration): Correct the condition which triggers the
3787 generation of a call to Displace when initializing a class-wide object.
3788 (Build_Dcheck_Functions): Build discriminant-checking for null variants
3789 when Frontend_Layout_On_Target is true to ensure that they're available
3790 for calling when a record variant size function is built in Layout.
3792 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3794 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3795 procedure for a derived type retrieve the discriminant values from the
3796 parent using the corresponding discriminant.
3797 (Expand_N_Assignment_Statement): Skip generation of implicit
3798 if-statement associated with controlled types if we are
3799 compiling with restriction No_Finalization.
3801 2008-05-20 Vincent Celier <celier@adacore.com>
3803 * prj.adb (Hash (Project_Id)): New function
3804 (Project_Empty): Add new component Interfaces_Defined
3806 * prj.ads (Source_Data): New component Object_Linked
3807 (Language_Config): New components Object_Generated and Objects_Linked
3808 (Hash (Project_Id)): New function
3809 (Source_Data): New Boolean components In_Interfaces and
3810 Declared_In_Interfaces.
3811 (Project_Data): New Boolean component Interfaces_Defined
3814 New project level attribute Object_Generated and Objects_Linked
3815 Add new project level attribute Interfaces
3817 * prj-dect.adb: Use functions Present and No throughout
3818 (Parse_Variable_Declaration): If a string type is specified as a simple
3819 name and is not found in the current project, look for it also in the
3820 ancestors of the project.
3823 Replace procedure Make with procedures Initialize, Process and Finalize
3824 to implement H414-023: process different directories with different
3826 Use functions Present and No throughout
3829 Replace procedure Make with procedures Initialize, Process and Finalize
3832 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3833 the language configuration.
3834 (Process_Project_Level_Array_Attributes): Process new attributes
3835 Object_Generated and Object_Linked.
3836 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3837 False, to indicate that the erreor/warning is a continuation.
3838 (Check): Call Report_No_Sources with Contnuation = True after the first
3840 (Error_Msg): Process successively contnuation character and warning
3842 (Find_Explicit_Sources): Check that all declared sources have been found
3843 (Check_File): Indicate in hash table Source_Names when a declared source
3845 (Check_File): Set Other_Part when found
3846 (Find_Explicit_Sources): In multi language mode, check if all exceptions
3847 to the naming scheme have been found. For Ada, report an error if an
3848 exception has not been found. Otherwise, disregard the exception.
3849 (Check_Interfaces): New procedure
3850 (Add_Source): When Other_Part is defined, set mutual pointers in spec
3852 (Check): In multi-language mode, call Check_Interfaces
3853 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3854 for an excluded source.
3855 (Remove_Source): A source replacing a source in the interfaces is also
3858 * prj-pars.adb: Use function Present
3860 * prj-part.adb: Use functions Present and No throughout
3861 (Parse_Single_Project): Set the parent project for child projects
3862 (Create_Virtual_Extending_Project): Register project with no qualifier
3863 (Parse_Single_Project): Allow an abstract project to be extend several
3864 times. Do not allow an abstract project to extend a non abstract
3867 * prj-pp.adb: Use functions Present and No throughout
3868 (Print): Take into account the full associative array attribute
3871 * prj-proc.adb: Use functions Present and No throughout
3872 (Expression): Call itself with the same From_Project_Node for the
3873 default value of an external reference.
3875 * prj-strt.adb: Use functions Present and No throughout
3876 (Parse_Variable_Reference): If a variable is specified as a simple name
3877 and is not found in the current project, look for it also in the
3878 ancestors of the project.
3880 * prj-tree.ads, prj-tree.adb (Present): New function
3882 Use functions Present and No throughout
3883 (Parent_Project_Of): New function
3884 (Set_Parent_Project_Of): New procedure
3886 * snames.ads, snames.adb:
3887 Add new standard names Object_Generated and Objects_Linked
3889 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3891 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3892 and the derived type are of the same kind.
3893 (Expand_Call): Generate type conversions for actuals of
3894 record or array types when the parent and the derived types differ in
3895 size and/or packed status.
3897 2008-05-20 Javier Miranda <miranda@adacore.com>
3898 Ed Schonberg <schonberg@adacore.com>
3900 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3901 generating dispatch tables of locally defined tagged types statically.
3902 Remove implicit if-statement that is no longer required.
3903 (Expand_Dispatching_Call): If this is a call to an instance of the
3904 generic dispatching constructor, the type of the first argument may be
3905 a subtype of Tag, so always use the base type to recognize this case.
3907 2008-05-20 Thomas Quinot <quinot@adacore.com>
3910 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3911 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3912 assigning NULL into the result, to avoid a spurious warning.
3913 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3915 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3917 (Build_From_Any_Function, Build_To_Any_Function,
3918 Build_TypeCode_Function): For a type that has user-specified stream
3919 attributes, use an opaque sequence of octets as the representation.
3921 2008-05-20 Kevin Pouget <pouget@adacore.com>
3923 * exp_smem.ads, exp_smem.adb: Construction of access and assign
3924 routines has been replaced by an instantiation of
3925 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3926 shared variable declaration.
3927 Calls to access and assign routines have been replaced by calls to
3928 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3929 instantiated package.
3931 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3932 It identifies the new generic package added in s-shasto.
3934 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3935 is instantiated for each shared passive variable. It provides
3936 supporting procedures called upon each read or write access by the
3940 For this runtime unit (always compiled in GNAT mode), we allow
3941 stream attributes references for limited types for the case where
3942 shared passive objects are implemented using stream attributes,
3943 which is the default in GNAT's persistent storage implementation.
3945 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3948 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3949 convention from its base type, do not set the type to that of integer,
3950 because it may inherit a size clause.
3951 Warn on a size clause with a size different
3952 from that of Integer, if the type has convention C.
3954 2008-05-20 Vincent Celier <celier@adacore.com>
3957 (Scan_Args): Rewrite to take into account new switch --and to separate
3958 arguments into sections.
3959 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3960 section, then Finalize.
3962 2008-05-20 Tristan Gingold <gingold@adacore.com>
3964 * init.c: Enable stack probing on ppc-linux.
3966 * tracebak.c: Add symbolic traceback for ppc-linux.
3968 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3970 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3973 (common-tools): New rule, to avoid parallel build failure on gnat tools.
3974 Reenable parallel builds on this Makefile.
3976 * Make-lang.in: Update dependencies.
3978 2008-05-20 Robert Dewar <dewar@adacore.com>
3980 * opt.ads (Treat_Restrictions_As_Warnings): New switch
3982 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3983 Treat_Restrictions_As_Warnings.
3985 * switch-c.adb: Recognize new switch -gnatr
3987 * usage.adb: Add line for -gnatr
3989 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3992 (P_Access_Definition): Change the error message when parsing "access
3993 all" in Ada 95 mode. The message no longer forces the user to recompile
3994 in 05 mode only to discover that anonymous access types are not allowed
3997 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4000 (P_Protected): Update the error message on missing "-gnat05" switch when
4001 using interfaces in conjunction with protected types. Remove the
4002 incorrect error message associated with the presence of "private" after
4005 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4007 * sem_aggr.adb: Update comments.
4008 Improve previous change for PR ada/17985
4010 2008-05-20 Thomas Quinot <quinot@adacore.com>
4013 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4014 the visible part of the spec of a remote types unit.
4015 (Validate_Remote_Access_Object_Type_Declaration):
4016 New local subprogram Is_Valid_Remote_Object_Type, replaces
4017 Is_Recursively_Limited_Private.
4018 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4019 non-controlling formals (and the return type, even though this is not
4020 explicit in the standard) must support external streaming.
4021 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4022 as above for of RAS types and RCI subprograms. (The return type is not
4024 Update comments related to RACWs designating limited interfaces per
4025 ARG ruling on AI05-060.
4027 * sem_util.ads, sem_util.adb
4028 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4029 Is_Remote_Call_Interface to identify RACW types in a stable and
4030 consistent way. We used to rely in this predicate on the privateness of
4031 the designated type and its ancestors, but depending on the currently
4032 visible private parts, this caused false negatives. We now uniformly
4033 rely on checks made at the point where the RACW type is declared.
4034 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4036 2008-05-20 Javier Miranda <miranda@adacore.com>
4037 Ed Schonberg <schonberg@adacore.com>
4038 Hristian Kirtchev <kirtchev@adacore.com>
4041 (Analyze_Object_Declaration): Fix over-conservative condition
4042 restricting use of predefined assignment with tagged types that have
4044 (Analyze_Object_Declaration): Relax the check regarding deferred
4045 constants declared in scopes other than packages since they can be
4046 completed with pragma Import.
4047 Add missing escaping of all-caps word 'CPP' in error messages.
4048 (Build_Discriminated_Subtype): Do not inherit representation clauses
4049 from parent type if subtype already carries them, because they are
4050 inherited earlier during derivation and already include those that may
4051 come from a partial view.
4053 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4054 Check the declarations of a subprogram body for proper deferred
4055 constant completion.
4057 * sem_ch7.ads, sem_ch7.adb
4058 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4060 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4061 Thomas Quinot <quinot@adacore.com>
4064 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4065 F is a parameterless function that returns an array, and S is a subtype
4067 (Analyze_Call): Insert dereference when the prefix is a parameterless
4068 function that returns an access to subprogram and the call has
4070 Reject a non-overloaded call whose name resolves to denote
4071 a primitive operation of the stub type generated to support a remote
4072 access-to-class-wide type.
4074 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4077 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4078 when there is a use clause for the same entity in the context.
4079 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4080 created for a stream attribute of an abstract type or interface type.
4082 2008-05-20 Thomas Quinot <quinot@adacore.com>
4084 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4088 (Add_One_Interp): Ignore any interpretation that is a primitive
4089 operation of an RACW stub type (these primitives are only executed
4090 through dispatching, never through static calls).
4091 (Collect_Interps): When only one interpretation has been found, set N's
4092 Entity and Etype to that interpretation, otherwise Entity and Etype may
4093 still refer to an interpretation that was ignored by Add_One_Interp,
4094 in which case would end up with being marked as not overloaded but with
4095 an Entity attribute not pointing to its (unique) correct interpretation.
4097 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4100 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4101 denotes the whole array of its prefix.
4103 2008-05-20 Robert Dewar <dewar@adacore.com>
4105 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4107 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4110 (Print_Itype): Do not modify the sloc of the component type of a
4111 (packed) array itype, because it is an unrelated type whose source
4112 location is independent of the point of creation of the itype itself.
4114 2008-05-20 Thomas Quinot <quinot@adacore.com>
4116 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4119 2008-05-20 Robert Dewar <dewar@adacore.com>
4120 Vincent Celier <celier@adacore.com>
4122 * vms_data.ads: Add entry for -gnatr
4123 Put GNAT SYNC section in proper alpha order
4124 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4126 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4127 Update the style checks section
4128 Add documentation of -gnatr
4129 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4130 subsection the explanation how compiler checks should be disabled for
4132 Update the list of Ada 95 reserved words used by in the project language
4133 Add documentation for project qualifiers.
4134 Document that abstract projects may be extended by different projects in
4135 the same project tree.
4136 Add documentation for gnatmake switch -d
4138 * ug_words: Add -gnatyy VMS equivalence string.
4139 Add entry for -gnatr
4141 2008-05-20 Bob Duff <duff@adacore.com>
4144 (Set_Handler): Remove code from both of these that implements
4145 RM-D.15(15/2), because it causes a race condition and potential
4147 (Process_Queued_Events): Add comment explaining "exception when others
4148 => null". Add clarifying ".all", even though implicit .all is legal
4151 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4153 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4154 equivalent representation, but has the advantage of allowing
4155 compilation of this file under 64 bits platforms.
4157 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4159 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4162 Don't define dummy implementation of convert_addresses on ppc-linux.
4164 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4167 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4168 if expression is aggregate component.
4170 2008-05-20 Robert Dewar <dewar@adacore.com>
4172 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4173 sem_ch12.adb: Update comments. Minor reformatting.
4177 * s-unstyp.ads: Fixed some typos in comments.
4179 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4181 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4184 * g-socthi-vxworks.ads: Update to latest socket changes.
4186 * a-caldel-vms.adb: Resync with a-caldel spec.
4188 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4191 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4193 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4194 for dummy types pointed to by the converted pointer types.
4196 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4198 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4199 of records and unions.
4200 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4202 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4203 Robert Dewar <dewar@adacore.com>
4205 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4206 restrictions to the prefix of 'Old.
4207 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4208 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4211 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4215 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4216 expression to an integral type with lower precision, use NOP_EXPR
4217 directly in a couple of special cases.
4219 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4220 Ed Schonberg <schonberg@adacore.com>
4222 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4223 constraint expressions.
4225 2008-05-12 Tomas Bily <tbily@suse.cz>
4227 * utils2.c (known_alignment, contains_save_expr_p)
4228 (gnat_mark_addressable): Use CASE_CONVERT.
4229 * decl.c (annotate_value): Likewise.
4230 * trans.c (maybe_stabilize_reference): Likewise.
4231 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4232 * utils.c (rest_of_record_type_compilation): Likewise.
4233 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4234 (protect_multiple_eval): Likewise.
4236 2008-05-08 Andreas Schwab <schwab@suse.de>
4238 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4239 DECL_IS_PURE to DECL_PURE_P.
4241 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4243 * decl.c (maybe_pad_type): Add ??? comment.
4245 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4247 * decl.c (components_to_record): Zero the alignment of the qualified
4248 union built for the variant part upon creating it.
4250 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4252 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4253 mode even if the alignment is not a factor of the original size. But
4254 make sure to create the inner field with the original size. Reorder.
4255 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4256 record as always addressable.
4257 * utils.c (convert): Deal specially with conversions between original
4258 and packable versions of a record type.
4259 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4260 recognizing an assignment between padded objects.
4262 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4264 * decl.c (make_packable_type): Resize the last component to its RM size
4265 only if it is of an aggregate type.
4266 * trans.c (call_to_gnu): Fix nit in comment.
4267 (gnat_to_gnu): Likewise.
4269 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4271 * Makefile.in: Adapt sh4-linux target.
4273 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4276 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4277 tagged type by an untagged protected or task type.
4279 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4280 Tristan Gingold <gingold@adacore.com>
4283 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4284 of aliased objects with an unconstrained nominal subtype.
4285 Cap the promotion to the effective alignment of the word mode.
4287 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4289 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4290 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4291 Use '&&' instead of ';'.
4293 2008-04-24 Olivier Hainque <hainque@adacore.com>
4295 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4296 doesn't require signed arithmetic anymore.
4298 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4300 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4301 (call_to_gnu): Don't set TREE_INVARIANT.
4302 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4304 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4306 * s-osinte-rtems.adb: Add sigalstack function.
4307 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4308 function. Add Alternate_Stack and Alternate_Stack_Size.
4309 Add missing process_shared field to pthread_condattr_t
4310 and change ss_low_priority to int from timespec.
4312 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4314 * i-forbla.adb: Link against -llapack and -lblas by default
4315 instead of the private -lgnalasup.
4317 2008-04-21 Olivier Hainque <hainque@adacore.com>
4319 Access to most C builtins from Ada
4320 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4321 (handle_pure_attribute, handle_novops_attribute,
4322 handle_nonnull_attribute, handle_sentinel_attribute,
4323 handle_noreturn_attribute, handle_malloc_attribute,
4324 handle_type_generic_attribute): New attribute handlers, from C fe.
4325 (gnat_internal_attribute_table): Map the new handlers.
4326 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4327 (init_gigi_decls): ... here.
4328 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4329 Move to a section dedicated to builtins processing.
4330 (build_void_list_node, builtin_type_for_size): New functions.
4331 (def_fn_type, get_nonnull_operand): Likewise.
4332 (install_builtin_elementary_type, install_builtin_function_types,
4333 install_builtin_attributes): Likewise.
4334 (fake_attribute_handler): Fake handler for attributes we don't
4336 (def_builtin_1): New function, worker for DEF_BUILTIN.
4337 (install_builtin_functions): New function.
4338 (gnat_install_builtins): Move to the builtins processing section.
4339 Now calling the newly introduced installers.
4341 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4343 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4344 constant objects, but not exceptions.
4345 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4347 * utils.c (create_var_decl_1): Likewise.
4348 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4349 the type when copying to padded object and the source is a constructor.
4351 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4353 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4354 alignment, reset it to zero if it would end up not being greater
4355 than that of the type.
4357 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4359 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4360 the padded type has a variable size.
4362 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4364 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4365 target pointer mechanism as soon as the size is not constant.
4367 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4369 * gigi.h (create_var_decl_1): Declare.
4370 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4371 (create_true_var_decl): Likewise.
4372 * utils.c (create_var_decl_1): Make global and reorder parameters.
4373 (create_var_decl): Delete.
4374 (create_true_var_decl): Likewise.
4376 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4378 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4380 * fe.h (Debug_Flag_Dot_A): Delete.
4381 * debug.adb (-gnatd.a): Update documentation.
4383 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4385 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4386 "not null" parameter.
4388 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4390 * g-socket.adb: Add a message "IPv6 not supported" to the
4391 Socket_Error exception.
4393 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4396 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4397 the type is known instead of the underlying type.
4399 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4402 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4403 procedure for a derived type retrieve the discriminant values from
4404 the parent using the corresponding discriminant.
4406 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4407 Gary Dismukes <dismukes@adacore.com>
4410 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4411 which is not an entity (and hence not a package).
4412 (End_Use_Package): Ditto.
4414 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4417 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4418 protected operation that matches the signature, not only an entry, a
4419 regular subprogram or a literal.
4421 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4423 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4424 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4425 if a size or alignment is specified. Do not take into account
4426 alignment promotions for the computation of the object's size.
4427 <type>: Call maybe_pad_type only if a size or alignment is specified.
4428 (maybe_pad_type): Really reuse the RM_Size of the original type if
4430 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4431 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4432 statements. Use the padded view of the type when copying between
4433 padded objects of the same underlying type.
4435 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4437 * vms_data.ads: Fix typo in constant.
4438 * gen-soccon.c: Fix typo in error string.
4439 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4441 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4442 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4443 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4444 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4445 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4446 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4447 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4448 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4449 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4450 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4451 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4452 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4453 sinfo.ads: Fix typos in comments.
4455 2008-04-14 Robert Dewar <dewar@adacore.com>
4457 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4458 to every non-object and change error message.
4460 2008-04-14 Robert Dewar <dewar@adacore.com>
4462 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4463 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4466 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4469 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4470 apply pragma Linker_Section on type.
4472 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4475 * sem_prag.adb (Error_Pragma_Ref): New.
4476 (Process_Convention): Specialized message for non-local
4477 subprogram renaming. Detect the problem in homonyms as well.
4479 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4482 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4483 * sem_ch12.adb (Instantiate_Object): Use it.
4484 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4485 storage pool denotes a variable as per RM 13.11(15).
4487 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4489 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4490 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4492 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4495 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4496 line endings even on non-Unix platforms.
4498 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4501 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4502 renaming information.
4504 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4507 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4510 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4512 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4513 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4514 snames.ads, sprint.adb, stand.ads, stringt.ads,
4515 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4516 switch.ads, sysdep.c, table.adb, table.ads,
4517 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4518 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4519 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4520 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4521 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4522 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4525 * sem_ch10.adb, sem_ch10.ads,
4526 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4527 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4528 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4529 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4530 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4531 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4532 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4533 sem_warn.ads: Fix comment typos.
4535 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4536 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4537 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4538 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4539 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4540 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4541 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4542 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4543 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4544 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4545 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4546 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4547 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4548 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4549 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4550 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4551 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4552 sem_cat.adb, sem_cat.ads: Fix comment typos.
4554 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4557 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4559 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4561 * s-linux-hppa.ads: Fix syntax errors.
4563 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4565 * gnat_ugn.texi: Fix typos.
4566 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4567 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4568 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4569 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4570 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4571 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4572 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4573 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4574 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4575 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4576 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4577 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4578 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4579 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4580 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4581 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4582 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4583 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4584 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4585 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4586 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4587 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4588 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4589 s-rident.ads: Fix comment typos.
4591 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4594 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4595 environment if generic instance is a top-level one.
4597 2008-04-09 Doug Rupp <rupp@adacore.com>
4599 * decl.c (validate_size): Set minimum size for fat pointers same as
4600 access types. Code clean ups.
4602 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4603 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4605 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4607 * s-crtl.ads (malloc32) New function, alias for malloc
4608 (realloc32) New function, alias for realloc
4610 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4612 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4613 allocator size is 32 and default pointer size is 64.
4614 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4615 lhs type if smaller, whatever the modes.
4617 * gigi.h (malloc32_decl): New macro definition
4619 * utils.c (init_gigi_decls): New malloc32_decl
4620 Various code clean ups.
4622 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4623 Task_Address vice System.Address.
4625 * s-taspri-vms.ads: Import System.Aux_DEC
4626 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4627 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4629 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4630 Task_Address vice System.Address.
4632 * s-inmaop-vms.adb: Import System.Task_Primitives
4633 (To_Address): Unchecked convert to Task_Address vice System.Address
4635 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4637 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4638 (To_Address) Unchecked convert to Task_Address vice System.Address
4640 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4642 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4644 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4646 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4647 (fdesc_type_node): Define.
4648 (null_fdesc_node): Likewise.
4649 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4650 uses descriptors for vtables and the type comes from a dispatch table,
4651 return the descriptor type.
4652 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4653 uses descriptors for vtables and the type comes from a dispatch table,
4654 build a descriptor in the static case and copy the existing one in the
4656 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4657 the type is a pointer-to-subprogram coming from a dispatch table,
4658 return the null descriptor.
4659 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4660 vtables, the source type is the descriptor type and the target type
4661 is a pointer type, first build the pointer.
4662 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4663 build the descriptor type and the null descriptor.
4665 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4667 * decl.c (prepend_attributes): Fix typo.
4668 * trans.c (Pragma_to_gnu): Likewise.
4669 * utils.c (gnat_genericize): Likewise.
4671 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4672 Richard Kenner <kenner@adacore.com>
4674 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4675 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4676 <E_Record_Type>: Try to get a better form of the component for
4677 packing, even if it has an integral mode.
4678 <E_Record_Subtype>: Likewise.
4679 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4680 exception suppressing the final conversion between record types.
4682 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4684 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4685 alignment for space, promote the alignment of non-scalar variables with
4686 no size and alignment.
4687 * gigi.h (gnat_types_compatible_p): Declare.
4688 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4689 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4690 * utils.c (gnat_types_compatible_p) : New predicate.
4691 (convert): Use it throughout to test for cases where a mere view
4692 conversion is sufficient.
4693 * utils2.c (build_binary_op): Minor tweaks.
4694 (build_unary_op): Likewise.
4696 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4698 * decl.c (adjust_packed): Expand comment.
4700 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4702 * s-tasuti.ads: Use Task_Address instead of System.Address.
4704 * makeutl.adb (Path_Or_File_Name): New function
4706 * nlists.ads, itypes.ads: Update comments.
4708 * s-crtl.ads (malloc32, realloc32): New functions.
4710 * s-auxdec.ads (Short_Address_Size): New constant.
4712 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4714 * s-ststop.ads, s-ststop.adb: New file.
4716 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4719 2008-04-08 Pascal Obry <obry@adacore.com>
4721 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4722 (Stop_Bits_Number): New type.
4723 (Parity_Check): Likewise.
4724 (Set): Add parameter to set the number of stop bits and
4725 the parity. Parameter timeout is now a duration instead
4728 * g-sercom-linux.adb:
4729 Implement the stop bits and parity support for GNU/Linux.
4730 Fix handling of timeout, it must be given in tenth of seconds.
4732 * g-sercom-mingw.adb:
4733 Implement the stop bits and parity support for Windows.
4734 Use new s-win32.ads unit instead of declaring Win32 services
4735 directly into this body.
4736 Update handling of timeout as now a duration.
4738 * s-win32.ads, s-winext.ads: New files.
4740 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4741 Arnaud Charlet <charlet@adacore.com>
4743 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4745 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4746 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4748 * s-osinte-lynxos-3.ads,
4749 (Alternate_Stack): Remove when not needed. Simplify declaration
4751 (Alternate_Stack_Size): New constant.
4753 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4754 'Unrestricted_Access.
4756 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4757 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4758 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4759 s-osinte-solaris.ads, s-osinte-vms.ads
4760 (SA_ONSTACK): New constant.
4761 (stack_t): New record type.
4762 (sigaltstack): New imported function.
4763 (Alternate_Stack): New imported variable.
4764 (Alternate_Stack_Size): New constant.
4766 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4768 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4769 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4770 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4771 (Task_Address_Size): New constant size of System.Address
4772 (Alternate_Stack_Size): New constant.
4774 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4775 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4776 Establish the alternate stack if the platform makes use of n alternate
4777 signal stack for stack overflows.
4778 (Create_Task): Take into account the alternate stack in the stack size.
4779 (Initialize): Save the address of the alternate stack into the ATCB for
4780 the environment task.
4781 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4783 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4785 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4787 * s-intman-posix.adb:
4788 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4789 alternate signal stack for stack overflows.
4791 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4792 x86-64, adjust the saved value of the stack pointer if the signal was
4793 raised by a stack checking probe.
4794 (HP-UX section): Use global __gnat_alternate_stack as signal handler
4795 stack and only for SIGSEGV.
4796 (Linux section): Likewise on x86 and x86-64.
4798 (__gnat_map_signal): Now static.
4799 (__gnat_error_handler): Not static any more.
4800 (__gnat_adjust_context_for_raise): New function. Signal context
4801 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4802 propagation circuitry.
4803 (__gnat_error_handler): Second argument of a sigaction handler is a
4804 pointer, not an int, and is unused.
4805 Adjust signal context before mapping to exception.
4806 Install signal handlers for LynxOS case.
4808 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4809 (Task_Id): Set size to Task_Address_Size
4810 (To_Task_id): Unchecked convert from Task_Address vice System.Address
4811 (To_Address): Unchecked convert to Task_Address vice System.Address
4813 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4814 address into the ATCB if the platform makes use of an alternate signal
4815 stack for stack overflows.
4816 (Free_Task): Add call to Finalize_Attributes_Link.
4817 Add argument Relative_Deadline to pass the value specified for
4818 the task. This is not yet used for any target.
4820 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4821 the value specified for the task.
4823 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4825 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4826 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4827 s-vxwext-rtp.adb): New files.
4829 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4830 Minor updates to accomodate changes above.
4832 2008-04-08 Pascal Obry <obry@adacore.com>
4834 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4835 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4836 Use new s-win32.ads unit instead of declaration
4837 from s-osinte-mingw.ads.
4839 * s-osinte-mingw.ads:
4840 Move all non tasking based interface to s-win32.ads.
4842 * s-osprim-mingw.adb:
4843 Remove duplicated declarations and use s-win32.ads
4846 2008-04-08 Vincent Celier <celier@adacore.com>
4847 Arnaud Charlet <charlet@adacore.com>
4849 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4850 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4851 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4852 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4853 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4855 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4856 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4857 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4858 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4859 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4860 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4861 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4862 mlib-tgt-specific-mingw.adb: New names.
4865 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4867 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4868 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4869 Minor updates for VMS
4871 * gnatbl.c: Removed.
4873 2008-04-08 Thomas Quinot <quinot@adacore.com>
4875 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4876 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4877 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4878 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4879 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4880 ASCII.NUL throughout.
4882 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4883 Matthew Heaney <heaney@adacore.com>
4885 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4888 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4889 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4890 to convention for non-RM specs.
4891 Add descriptive header, and documented each operation
4892 document each operation
4894 2008-04-08 Robert Dewar <dewar@adacore.com>
4895 Bob Duff <duff@adacore.com>
4896 Gary Dismukes <dismukes@adacore.com>
4897 Ed Schonberg <schonberg@adacore.com>
4899 * alloc.ads: Add entries for Obsolescent_Warnings table
4901 * einfo.ads, einfo.adb: Minor reformatting.
4902 (Is_Discriminal): New subprogram.
4903 (Is_Prival): New subprogram.
4904 (Is_Protected_Component): New subprogram.
4905 (Is_Protected_Private): Removed.
4906 (Object_Ref, Set_Object_Ref): Removed.
4907 (Prival, Set_Prival): Change assertion.
4908 (Privals_Chain, Set_Privals_Chain): Removed.
4909 (Prival_Link, Set_Prival_Link): New subprogram.
4910 (Protected_Operation, Set_Protected_Operation): Removed.
4911 (Protection_Object, Set_Protection_Object): New subprogram.
4912 (Write_Field17_Name): Remove case for Object_Ref.
4913 (Write_Field20_Name): Add case for Prival_Link.
4914 (Write_Field22_Name): Remove case for Protected_Operation,
4916 Add case for Protection_Object.
4917 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4919 (Overlays_Constant): New flag
4920 (Is_Constant_Object): New predicate
4921 (Is_Standard_Character_Type): New predicate
4922 (Optimize_Alignment_Space): New flag
4923 (Optimize_Alignment_Time): New flag
4924 (Has_Postconditions): New flag
4925 (Obsolescent_Warrning): Field removed
4926 (Spec_PPC_List): New field
4927 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4928 subprograms to get and set the relative deadline associated to a task.
4930 * exp_attr.adb (May_Be_External_Call): Account for the case where the
4931 Access attribute is part of a named parameter association.
4932 (Expand_Access_To_Protected_Op): Test for the attribute occurring
4933 within an init proc and use that directly as the scope rather than
4934 traversing up to the protected operation's enclosing scope. Only apply
4935 assertion on Is_Open_Scopes in the case the scope traversal is done.
4936 For the init proc case use the address of the first formal (_init) as
4937 the protected object reference.
4938 Implement Invalid_Value attribute
4939 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4940 contents of the dispatch table there is no need to duplicate the
4941 itypes associated with record types (i.e. the implicit full view
4943 Implement Enum_Val attribute
4944 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4945 within _Postconditions procedure
4946 (Expand_N_Attribute_Reference, case Result): Implement new attribute
4948 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4949 a return statement calls a function that is not available in
4950 configurable runtime.
4951 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4952 (Expand_Non_Function_Return): Generate call to _Postconditions proc
4953 (Expand_Simple_Function_Return): Ditto
4955 * frontend.adb: Add call to Sem_Aux.Initialize
4957 * sem_aux.ads, sem_aux.adb: New file.
4959 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4960 Add new Pragma_Relative_Deadline.
4961 Add support for pragmas Check and Check_Policy
4963 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4964 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4965 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4966 missing check because they are not allowed in CPP tagged types.
4967 Add Sure parameter to Note_Possible_Modification calls
4968 Add implementation of Invalid_Value attribute
4969 Implement new attribute Has_Tagged_Values
4970 Implement Enum_Val attribute
4971 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4972 generated attributes.
4973 (Analyze_Attribute, case Result): If prefix of the attribute is
4974 overloaded, it always resolves to the enclosing function.
4975 (Analyze_Attribute, case Result): Properly deal with analysis when
4976 Postconditions are not active.
4977 (Resolve_Attribute, case Result): Properly deal with appearence during
4978 preanalysis in spec.
4979 Add processing for attribute Result
4981 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4983 (Analyze_Subprogram_Body): Install private_with_clauses when the body
4985 (Check_Inline_Pragma): recognize an inline pragma that appears within
4986 the subprogram body to which it applies.
4987 (Analyze_Function_Return): Check that type of the expression of a return
4988 statement in a function with a class-wide result is not declared at a
4989 deeper level than the function.
4990 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4991 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4992 user- defined operators.
4993 (Install_Formals): Moved to spec to allow use from Sem_Prag for
4994 analysis of precondition/postcondition pragmas.
4995 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4996 Last_Formal, along with lots of comments on what this is about
4997 (Analyze_Subprogram_Body): Fix case where we move entities from the
4998 spec to the body when there are no body entities (now possible with
4999 precondition and postcondition pragmas).
5000 (Process_PPCs): New procedure
5001 (Analyze_Subprogram_Body): Add call to Process_PPCs
5003 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5005 (Pop_Scope): Restore Check_Policy_List on scope exit
5006 (Push_Scope): Save Check_Policy_List on scope entry
5007 Change name In_Default_Expression => In_Spec_Expression
5008 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5009 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5010 (Analyze_Object_Renaming): Allow 'Reference as object
5011 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5012 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5013 of restriction identifier.
5014 Add Sure parameter to Note_Possible_Modication calls
5016 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5017 Don't check for primitive operations when calling Rep_Item_Too_Late.
5018 (Process_Import_Or_Interface): Do not place flag on formal
5020 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5021 propagate information to full view, which is the one elaborated by the
5023 (Make_Inline): the pragma is effective if it applies to an internally
5024 generated subprogram declaration for a body that carries the pragma.
5025 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5026 Optimize_Alignment_Local.
5027 (Analyze_PPC_In_Decl_Part): New procedure
5028 (Get_Pragma_Arg): Moved to outer level
5029 (Check_Precondition_Postcondition): Change to allow new visibility
5030 rules for package spec
5031 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5032 same as pragma Suppress/Unsuppress.
5033 Change name In_Default_Expression => In_Spec_Expression
5034 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5035 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5036 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5037 for the case of these pragmas appearing in the spec.
5038 (Check_Enabled): New function
5039 (Initialize): New procedure
5040 (Tree_Read): New procedure
5041 (Tree_Write): New procedure
5042 (Check_Precondition_Postcondition): New procedure
5043 Implement pragmas Check and Check_Policy
5044 Merge Assert processing with Check
5046 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5047 New warning flag -gnatw.e
5049 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5050 returning whether a task (or main procedure) has a pragma
5052 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5053 (or main procedure) has a pragma Relative_Deadline.
5054 Add Next_Pragma field to N_Pragma node
5055 (PPC_Enabled): New flag
5056 (Next_Pragma): Now used for Pre/Postcondition processing
5058 * snames.h, snames.ads, snames.adb: New standard name
5060 Add entry for 'Invalid_Value attribute
5061 Add entry for new attribute Has_Tagged_Values
5062 Add entry for Enum_Val attribute
5063 Add new standard names Aggregate, Configuration and Library.
5066 Add Pragma_Precondition
5067 Add Pragma_Postcondition
5068 Add Attribute_Result
5069 New standard name Archive_Builder_Append_Option
5070 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5071 There was also a missing non_preemptive_within_priorities.
5072 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5074 Add support for pragmas Check and Check_Policy
5076 * tree_gen.adb: Call Sem_Aux.Tree_Write
5078 * tree_in.adb: Call Sem_Aux.Tree_Read
5080 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5083 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5086 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5087 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5089 (Expand_Pragma_Check): New procedure
5091 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5094 * sinfo.adb (PPC_Enabled): New flag
5096 2008-04-08 Robert Dewar <dewar@adacore.com>
5097 Gary Dismukes <dismukes@adacore.com>
5098 Javier Miranda <miranda@adacore.com>
5099 Ed Schonberg <schonberg@adacore.com>
5101 * fe.h: Remove global Optimize_Alignment flag, no longer used
5103 * layout.adb: Test Optimize_Alignment flags rather than global switch
5105 * lib.ads, lib.adb: New OA_Setting field in library record
5107 * lib-load.adb: New OA_Setting field in library record
5109 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5110 units mentioned in limited_with_ clauses in the ali file, with an
5112 New Ox fields in U line
5114 * opt.adb: New flag Optimize_Alignment_Local
5115 (Check_Policy_List[_Config]): New flags
5117 * opt.ads (Invalid_Value_Used): New flag
5118 New switch Optimize_Alignment_Local
5119 (Warn_On_Parameter_Order): New flag
5120 (Check_Policy_List[_Config]): New flags
5122 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5123 limited_with clauses.
5124 New data structures for Optimize_Alignment
5126 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5128 (Check_Consistent_Optimize_Alignment): Rework for new structure
5129 (Check_Consistent_Restrictions): Fix incorrect error message
5131 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5132 created class-wide type (to the Parent field of the specific type).
5133 (Install_Siblings): Handle properly private_with_clauses on subprogram
5134 bodies and on generic units.
5135 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5136 illegal limited_with_clause that names a non-existent package.
5137 (Check_Body_Required): Determine whether a unit named a limited_with
5138 clause needs a body.
5139 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5140 Capture Optimize_Alignment settings to set new OA_Setting field in
5142 (Build_Limited_Views): Include task and protected type declarations.
5144 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5145 case of a possible constant redeclaration where the current object is
5146 an entry index constant.
5147 (Analyze_Object_Declaration): Generate an error in case of CPP
5148 class-wide object initialization.
5149 (Analyze_Object_Declaration): Add extra information on warnings for
5150 declaration of unconstrained objects.
5151 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5152 conflicts with the setting of Stored_Constraint in the case where the
5153 access type entity has already been created as an E_Incomplete_Type due
5154 to a limited with clause.
5155 Use new Is_Standard_Character_Type predicate
5156 (Analyze_Object_Declaration): Apply access_constant check only after
5157 expression has been resolved, given that it may be overloaded with
5158 several access types.
5159 (Constant_Redeclaration): Additional legality checks for deferred
5160 constant declarations tha involve anonymous access types and/or null
5161 exclusion indicators.
5162 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5163 (Analyze_Subtype_Declaration): Ditto
5164 (Analyze_Object_Declaration): Ditto
5165 (Analyze_Object_Declaration): Don't count tasks in generics
5166 Change name In_Default_Expression => In_Spec_Expression
5167 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5168 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5169 (Process_Discriminants): Additional check for illegal use of default
5170 expressions in access discriminant specifications in a type that is not
5172 (Check_Abstract_Overriding): If an inherited function dispaches on an
5173 access result, it must be overridden, even if the type is a null
5175 (Derive_Subprogram): The formals of the derived subprogram have the
5176 names and defaults of the parent subprogram, even if the type is
5177 obtained from the actual subprogram.
5178 (Derive_Subprogram): In the presence of interfaces, a formal of an
5179 inherited operation has the derived type not only if it descends from
5180 the type of the formal of the parent operation, but also if it
5181 implements it. This is relevant for the renamings created for the
5182 primitive operations of the actual for a formal derived type.
5183 (Is_Progenitor): New predicate, to determine whether the type of a
5184 formal in the parent operation must be replaced by the derived type.
5186 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5187 predicate recursive to handle components that have a user-defined
5188 Initialize procedure. Handle controlled derived types whose ancestor
5189 has a user-defined Initialize procedured.
5190 (Note_Possible_Modification): Add Sure parameter, generate warning if
5191 sure modification of constant
5192 Use new Is_Standard_Character_Type predicate
5193 (Find_Parameter_Type): when determining whether a protected operation
5194 implements an interface operation, retrieve the type of the formal from
5195 the entity when the formal is an access parameter or an
5196 anonymous-access-to-subprogram.
5197 Move Copy_Parameter_List to sem_util, for use when building stubbed
5199 (Has_Access_Values): Tagged types now return False
5200 (Within_HSS_Or_If): New procedure
5201 (Set_Optimize_Alignment_Flags): New procedure
5202 Change name In_Default_Expression => In_Spec_Expression
5203 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5204 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5206 2008-04-08 Tristan Gingold <gingold@adacore.com>
5208 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5210 2008-04-08 Tristan Gingold <gingold@adacore.com>
5214 * cuintp.c: Fix 16 bits issue for AVR.
5215 On AVR, integer is 16 bits, so it can't be used to do math with
5217 So use long_integer instead.
5219 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5221 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5222 System.OS_Primitives.
5223 Change type of various constants, parameters and local variables from
5224 Time to representation type OS_Time.
5225 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5226 Remove the declaration of constant Mili_F from several routines. New
5227 body for internal package Conversions_Operations.
5228 (Time_Of): Add default parameters for several formals.
5230 * a-caldel.adb: Minor reformatting
5232 * a-calend.ads, a-calend.adb: New body for internal package
5233 Conversions_Operations.
5234 (Time_Of): Add default parameters for several formals.
5236 * Makefile.rtl: Add a-ststop
5237 Add Ada.Calendar.Conversions to the list of runtime files.
5240 * a-calcon.adb, a-calcon.ads: New files.
5242 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5243 Tristan Gingold <gingold@adacore.com>
5245 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5246 (Install_Restricted_Handlers): New procedure
5247 which is a simplified version of Install_Handlers that does not store
5248 previously installed.
5250 * s-interr-vxworks.adb: Fix ACATS cxc3001
5251 On VxWorks interrupts can't be detached.
5252 (Install_Restricted_Handlers): New procedure.
5254 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5257 2008-04-08 Olivier Hainque <hainque@adacore.com>
5259 * s-intman-vxworks.ads, s-intman-vxworks.adb
5260 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5261 required services already implemented elsewhere.
5262 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5263 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5264 argument passed to the handler, which we need for ZCX propagation
5267 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5269 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5271 * g-timsta.adb, g-timsta.ads: New files.
5273 2008-04-08 Robert Dewar <dewar@adacore.com>
5275 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5276 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5277 (Raise_Exception_Always): Fix documentation accordingly
5279 2008-04-08 Robert Dewar <dewar@adacore.com>
5281 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5284 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5287 2008-04-08 Javier Miranda <miranda@adacore.com>
5288 Robert Dewar <dewar@adacore.com>
5289 Ed Schonberg <schonberg@adacore.com>
5291 * a-tags.adb (Register_Interface_Offset): New subprogram.
5292 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5293 (To_Predef_Prims_Table_Ptr): Removed.
5294 (Acc_Size): Removed.
5295 (To_Acc_Size): Removed.
5296 (Parent_Size): Modified to the call the subprogram returning the size of
5297 the parent by means of the new TSD component Size_Func.
5299 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5300 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5301 code referencing the Offset_To_Top component of the dispatch table's
5303 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5304 use of 'address to initialize dispatch table slots.
5305 (Size_Func): New component of the TSD. Used by the run-time to call the
5306 size primitive of the tagged type.
5308 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5309 Offset_To_Top component of a dispatch table.
5310 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5311 deferred constant declaration. do not add a null expression, to prevent
5312 spurious errors when full declaration is analyzed.
5313 (Apply_Discriminant_Check): If both discriminant constraints share a
5314 node which is not static but has no side effects, do not generate a
5315 check for that discriminant.
5316 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5317 subexpr, since the prefix of an attribute is a name.
5319 * checks.ads: Fix nit in comment.
5321 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5322 and body of predefined primitives in case of CPP tagged type
5324 (Freeze_Type): Deal properly with no storage pool case
5325 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5326 primitive Deep_Adjust if a nonlimited interface is derived from a
5328 (Build_Dcheck_Functions): Create discriminant-checking functions only
5329 for variants that have some component(s).
5330 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5331 properly the case where the slice bounds extend to the last value of the
5332 underlying representation.
5333 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5334 (Is_Variable_Size_Record): An array component has a static size if
5335 index bounds are enumeration literals.
5337 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5338 an external tag has been specified for the type.
5339 (Building_Static_DT): Add missing support for private types.
5340 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5341 to the entity associated with the parent of Typ. This is done to
5342 avoid wrong access when the parent is a private type.
5343 (Expand_Interface_Conversion): Improve error message when the
5344 configurable runtime has no support for dynamic interface conversion.
5345 (Expand_Interface_Thunk): Add missing support to interface types in
5346 configurable runtime.
5347 (Expand_Dispatching_Call): remove obsolete code.
5348 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5349 ensure that all subtypes and aggregates associated with dispatch
5350 tables have the attribute Is_Dispatch_Table_Entity set to true.
5351 (Register_Primitive): Rename one variable to improve code reading.
5352 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5353 of the pointer to the 'size primitive in the TSD.
5355 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5356 (RE_Offset_To_Top_Ptr): New entity.
5357 (RE_Register_Interface_Offset): New entity.
5358 (RE_Set_Dynamic_Offset_To_Top): New entity.
5359 (RE_Set_Offset_To_Top): Removed entity.
5360 (RE_Prim_Ptr): New entity
5361 (RE_Size_Func): New entity
5362 (RE_Size_Ptr): New entity
5363 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5364 (Ada_Dispatching_Child): Define this new subrange.
5365 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5366 RE_Time_Span, and RE_Time_Span_Zero).
5367 (RE_Unit_Table): Add new required run-time calls
5369 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5372 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5373 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5374 initializes the Offset_To_Top component of a dispatch table.
5375 (Build_Predef_Prims): Removed.
5376 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5378 (Build_Set_Size_Function): New subprogram.
5380 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5381 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5383 2008-04-08 Robert Dewar <dewar@adacore.com>
5385 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5386 computing Fore when Exp > 0
5388 2008-04-08 Robert Dewar <dewar@adacore.com>
5390 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5392 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5393 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5395 * fmap.adb: Remove Big_String declarations (now in Types)
5396 (No_Mapping_File): New Boolean global variable
5397 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5399 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5400 tables were empty before adding entries, open the mapping file
5401 with Truncate = True, instead of delete/re-create.
5403 * fname-sf.adb: Remove Big_String declarations (now in Types)
5405 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5406 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5409 * table.ads: Add for Table_Ptr'Storage_Size use 0
5411 * types.ads: Add Big_String declarations
5412 Add Size_Clause of zero for big pointer types
5414 2008-04-08 Vincent Celier <celier@adacore.com>
5416 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5417 (Usage): Add line for switch --subdirs=
5418 Add new switch -eL, to follow symbolic links when processing project
5421 * gnatcmd.adb: Process switches -eL and --subdirs=
5422 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5423 Program_Name to get proper tool names when AAMP_On_Target is set.
5424 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5425 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5426 Osint.Program_Name).
5428 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5429 (Usage): Add lines for switches -eL and --subdirs=
5431 * makeusg.adb: Add line for switch --subdirs=
5434 (Source_Data): New Boolean component Compiled, defaulted to True
5435 (Empty_File_Name: New global variable in private part, initialized in
5436 procedure Initialize.
5437 (Subdirs_Option): New constant string
5438 (Subdirs): New String_Ptr global variable
5439 (Language_Config): New component Include_Compatible_Languages
5440 (Project_Qualifier): New type for project qualifiers
5441 (Project_Data): New component Qualifier
5442 (Project_Configuration): New component Archive_Builder_Append_Option
5444 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5445 another imported project indicate the name of this imported project.
5446 (Check_File): When a unit is in two project files, indicate the project
5447 names and the paths of the source files for each project.
5448 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5449 set object, dependency and switches file names if Compiled is True.
5450 (Process_Compiler): Allow the empty string for value of attribute Driver
5451 (Get_Directories): When Subdirs is not null and Object_Dir is not
5452 specified, locate and create if necessary the actual object dir.
5453 (Locate_Directory): When Subdirs is not empty and Create is not the
5454 empty string, locate and create if necessary the actual directory
5455 as a subdirectory of directory Name.
5456 (Check_Library_Attributes.Check_Library): Allow a project where the only
5457 "sources" are header files of file based languages to be imported by
5458 library projects, in multi-language mode (gprbuild).
5459 (Check_Library_Attributes.Check_Library): In multi-language mode
5460 (gprbuild), allow a library project to import a project with no
5461 sources, even when this is not declared explicitly.
5462 (Check_If_Externally_Built): A virtual project extending an externally
5463 built project is also externally built.
5464 (Check_Library_Attributes): For a virtual project extending a library
5465 project, inherit the library directory.
5466 (Process_Project_Level_Array_Attributes): Process new attribute
5467 Inherit_Source_Path.
5468 For projects with specified qualifiers "standard", "library" or
5469 "abstract", check that the project conforms to the qualifier.
5470 (Process_Project_Level_Simple_Attributes): Process new attribute
5471 Archive_Builder_Append_Option.
5473 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5474 (Normalize_Compiler_Switches): Only keep compiler switches that are
5475 passed to gnat1 by the gcc driver and that are stored in the ALI file
5477 Do not take into account switc -save-temps
5479 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5480 gprmake is called with -eL.
5481 (Scan_Arg): Recognize switch -eL
5482 (Usage): Add line for switch -eL
5484 * prj.adb (Initialize): Initialize Empty_File_Name
5485 (Project_Empty): New component Qualifier
5487 * prj-attr.ads, prj-attr.adb: New project level attribute
5488 Inherit_Source_Path.
5489 New project level attribute Archive_Builder_Append_Option
5491 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5493 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5494 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5495 upward compatibility.
5497 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5498 each Trying ..." on different lines.
5499 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5500 is "configuration" when not in configuration. Fail when in configuration
5501 when a specified qualifier is other than "configuration".
5503 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5504 full associative array together.
5505 (Recursive_Process): Put the project qualifier in the project data
5507 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5508 (Set_Project_Qualifier_Of): New procedure
5510 2008-04-08 Robert Dewar <dewar@adacore.com>
5512 * errout.ads: Update comments for new handling of info: messages
5514 * erroutc.adb (Matches): New procedure
5515 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5516 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5517 info messages as well as style messages.
5519 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5521 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5523 (Check_A_Call): Special "info: " warnings now have ? in the text
5524 (Elab_Warning): Use info message in static case
5526 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5528 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5529 whether an array aggregate with static bounds and scalar components
5530 should be expanded into a static constant.
5532 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5533 Ed Schonberg <schonberg@adacore.com>
5534 Robert Dewar <dewar@adacore.com>
5536 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5537 Has_Stream_Attribute_ Definition when checking for available stream
5538 attributes on parameters of a limited type in Ada 2005. Necessary for
5539 proper recognition of visible stream attribute clauses.
5540 (Has_Stream_Attribute_Definition): If the type is derived from a
5541 private type, then use the derived type's underlying type for checking
5542 whether it has stream attributes.
5543 (Validate_Object_Declaration): The check for a user-defined Initialize
5544 procedure applies also to types with controlled components or a
5545 controlled ancestor.
5546 Reject an object declaration in a preelaborated unit if the type is a
5547 controlled type with an overriding Initialize procedure.
5548 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5549 checking when the parent of a dereference is a selected component and
5550 the name has not been analyzed.
5552 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5553 prefixes that are invalid explicit dereferences of remote
5554 access-to-class-wide values, first checking whether the selected
5555 component is a prefixed form of call to a tagged operation.
5556 (Analyze_Call): Remove code that issues an error for limited function
5557 calls in illegal contexts, as we now support all of the contexts that
5558 were forbidden here.
5559 Allow a function call that returns a task.and appears as the
5560 prefix of a selected component.
5561 (Analyze_Reference): Give error message if we try to make a 'Reference
5562 for an object that is atomic/aliased without its type having the
5563 corresponding attribute.
5564 (Analyze_Call): Remove condition checking for attributes to allow
5565 calls to functions with inherently limited results as prefixes of
5566 attributes. Remove related comment about Class attributes.
5567 (Analyze_Selected_Component): If the prefix is a remote type, check
5568 whether this is a prefixed call before reporting an error.
5569 (Complete_Object_Operation): If the controlling formal is an access to
5570 variable reject an actual that is a constant or an access to one.
5571 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5572 primitive operations from base type.
5574 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5576 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5577 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5578 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5579 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5580 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5581 (Analyze_Call): Remove code that issues an error for limited function
5582 calls in illegal contexts, as we now support all of the contexts that
5583 were forbidden here.
5584 New calling sequence for Get_Simple_Init_Val
5585 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5586 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5588 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5589 Ed Schonberg <schonberg@adacore.com>
5590 Robert Dewar <dewar@adacore.com>
5592 * exp_ch2.adb: Minor reformatting.
5593 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5594 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5595 (Expand_Protected_Component): New routine.
5596 (Expand_Protected_Private): Removed.
5597 Add Sure parameter to Note_Possible_Modification calls
5599 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5600 generated subprogram declaration must inherit the overriding indicator
5601 from the instantiation node.
5602 (Validate_Access_Type_Instance): If the designated type of the actual is
5603 a limited view, use the available view in all cases, not only if the
5604 type is an incomplete type.
5605 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5606 and the actual subtype does not exclude null.
5607 (Process_Default): Handle properly abstract formal subprograms.
5608 (Check_Formal_Package_Instance): Handle properly defaulted formal
5609 subprograms in a partially parameterized formal package.
5610 Add Sure parameter to Note_Possible_Modification calls
5611 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5612 actual cannot be limited.
5613 (Collect_Previous_Instances): Generate instance bodies for subprograms
5616 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5618 Add Sure parameter to Note_Possible_Modification calls
5619 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5620 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5621 constant overlaid by variable and issue warning.
5622 Use new Is_Standard_Character_Type predicate
5623 (Analyze_Record_Representation_Clause): Check that the specified
5624 Last_Bit is not less than First_Bit - 1.
5625 (Analyze_Attribute_Definition_Clause, case Address): Check for
5626 self-referential address clause
5628 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5629 detection mechanism when the lhs is a prival.
5630 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5631 assignment of a pointer to protected data, to an object declared
5632 outside of the protected object.
5633 (Analyze_Loop_Statement): Check for unreachable code after loop
5634 Add Sure parameter to Note_Possible_Modication calls
5635 Protect analysis from previous syntax error such as a scope mismatch
5637 (Analyze_Assignment_Statement): The assignment is illegal if the
5638 left-hand is an interface.
5640 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5641 violation of restriction No_Implicit_Conditionals
5642 Add Sure parameter to Note_Possible_Modication calls
5643 Use new Is_Standard_Character_Type predicate
5644 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5645 call as operator. Fixes problems (e.g. validity checking) which
5646 come from the result looking as though it does not come from source).
5647 (Resolve_Call): Check case of name in named parameter if style checks
5649 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5650 from the checking that such calls should not occur from an entry body.
5651 (Resolve_Call): If the return type of an Inline_Always function
5652 requires the secondary stack, create a transient scope for the call
5653 if the body of the function is not available for inlining.
5654 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5655 that are actuals for in-out formals.
5656 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5657 primitive operations from base type.
5658 (Analyze_Selected_Component): If the context is a call to a protected
5659 operation the parent may be an indexed component prior to expansion.
5660 (Resolve_Actuals): If an actual is of a protected subtype, use its
5661 base type to determine whether a conversion to the corresponding record
5663 (Resolve_Short_Circuit): Handle pragma Check
5665 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5666 Use new Is_Standard_Character_Type predicate
5667 (Eval_Relational_Op): Catch more cases of string comparison
5669 2008-04-08 Robert Dewar <dewar@adacore.com>
5670 Gary Dismukes <dismukes@adacore.com>
5672 * s-rident.ads: Add No_Default_Initialization restriction
5675 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5676 (Set_TSS): Handle No_Default_Initialization case
5678 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5679 No_Default_Initialization
5680 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5681 parameters when Normalize_Scalars is active.
5682 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5683 Fix casing error in formal parameter name in call
5684 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5685 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5686 dispatching call on VM targets.
5688 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5689 Thomas Quinot <quinot@adacore.com>
5691 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5692 selected component from an access type's Associated_Final_Chain to
5693 check for the presence of that field, rather than assuming it exists
5694 for all named access types.
5695 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5696 procedure to call at the end of the generated cleanup procedure.
5697 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5698 and an At_End_Proc already exists in the handled sequence of statements
5699 for which cleanup actions are being expanded, the original cleanup
5700 action must be preserved.
5702 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5703 Ed Schonberg <schonberg@adacore.com>
5704 Robert Dewar <dewar@adacore.com>
5705 Gary Dismukes <dismukes@adacore.com>
5707 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5708 Build_Unprotected_Subprogram_Body): Generate debug info for
5709 declarations related to the handling of private data in task and
5711 (Debug_Private_Data_Declarations): New subprogram.
5712 (Install_Private_Data_Declarations): Remove all debug info flagging.
5713 This is now done by Debug_Private_Data_Declarations at the correct
5715 (Build_Simple_Entry_Call): If the task name is a function call, expand
5716 the prefix into an object declaration, and make the surrounding block a
5718 (Build_Master_Entity): An internal block is a master if it wraps a call.
5719 Code reformatting, update comments. Code clean up.
5720 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5721 (Replicate_Entry_Formals): If the formal is an access parameter or
5722 anonymous access to subprogram, copy the original tree to create new
5723 entities for the formals of the subprogram.
5724 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5725 for tasks to store the value passed using pragma Relative_Deadline.
5726 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5727 run-time call to create a task.
5728 (Build_Wrapper_Spec): If the controlling argument of the interface
5729 operation is an access parameter with a non-null indicator, use the
5730 non-null indicator on the wrapper.
5732 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5733 present, which it may not be in the case where the type entity is an
5734 incomplete view brought in by a limited with.
5735 (Analyze_Task_Type): Only retrieve the full view when present, which it
5736 may not be in the case where the type entity is an incomplete view brought
5737 in by a limited with.
5738 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5739 private components of a protected type, to prevent the generation of freeze
5740 nodes for which there is no proper scope of elaboration.
5742 * exp_util.ads, exp_util.adb
5743 (Remove_Side_Effects): If the expression is a function call that returns a
5744 task, expand into a declaration to invoke the build_in_place machinery.
5745 (Find_Protection_Object): New routine.
5746 (Remove_Side_Effects): Also make a copy of the value
5747 for attributes whose result is of an elementary type.
5748 (Silly_Boolean_Array_Not_Test): New procedure
5749 (Silly_Boolean_Array_Xor_Test): New procedure
5750 (Is_Volatile_Reference): New function
5751 (Remove_Side_Effects): Use Is_Volatile_Reference
5752 (Possible_Bit_Aligned_Component): Handle slice case properly
5754 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5755 case test to Exp_Util
5756 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5758 2008-04-08 Thomas Quinot <quinot@adacore.com>
5760 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5762 (Add_RACW_Features): When processing an RACW in another unit than the
5763 main unit, set Body_Decls to No_List to indicate that the bodies of
5764 the type's TSS must not be generated.
5765 (GARLIC_Support.Add_RACW_Read_Attribute,
5766 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5767 Body_Decls is No_List.
5768 (PolyORB_Support.Add_RACW_Read_Attribute,
5769 PolyORB_Support.Add_RACW_Write_Attribute,
5770 PolyORB_Support.Add_RACW_From_Any,
5771 PolyORB_Support.Add_RACW_To_Any,
5772 PolyORB_Support.Add_RACW_TypeCode): Same.
5773 (Transmit_As_Unconstrained): New function.
5774 (Build_Ordered_Parameters_List): Use the above to order parameters.
5775 (GARLIC_Support.Build_General_Calling_Stubs):
5776 Use the above to determine which parameters to unmarshall using 'Input
5777 at the point where their temporary is declared (as opposed to later on
5779 (PolyORB_Support.Build_General_Calling_Stubs):
5780 Use the above to determine which parameters to unmarshall using From_Any
5781 at the point where their temporary is declared (as opposed to later on
5782 with an assignment).
5784 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5786 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5787 an Input function for an access type, do not perform default
5788 initialization on the local variable that receives the value, to
5789 prevent spurious warnings when the type is null-excluding.
5791 2008-04-08 Robert Dewar <dewar@adacore.com>
5792 Ed Schonberg <schonberg@adacore.com>
5794 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5796 (Size_Known): Generic formal scalar types have known at compile
5797 time size, so remove check.
5798 Fix casing error in formal parameter name in call
5799 (Freeze_Subprogram): If the subprogram is a user-defined operator,
5800 recheck its overriding indication.
5802 2008-04-08 Vincent Celier <celier@adacore.com>
5804 * gnat1drv.adb: Send all messages indicating an error to standard error
5806 2008-04-08 Robert Dewar <dewar@adacore.com>
5808 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5809 (List_Applicable_Restrictions): Do not list existing restrictions
5811 2008-04-08 Thomas Quinot <quinot@adacore.com>
5813 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5814 add a pointer to generic sockets literature
5815 do not mention that the given example is "typical" usage.
5816 Remove obsolete comment about multicast not being supported on Windows.
5817 (Connect_Socket): Make Server mode IN rather than IN OUT
5818 since this formal is never modified.
5820 2008-04-08 Robert Dewar <dewar@adacore.com>
5822 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5823 the declaration for some different entity.
5824 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5825 list is precent (following the parent subtype indication), display
5826 appropriate "and" keyword.
5828 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5829 Remove unnecessary calls to Init_Size_Align and Init_Esize.
5830 Add notes on use of Parent field of an Itype
5832 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5833 Robert Dewar <dewar@adacore.com>
5834 Gary Dismukes <dismukes@adacore.com>
5836 * lib-xref.adb (Is_On_LHS): Remove dead code
5837 (Output_Overriden_Op): If the overridden operation is itself inherited,
5838 list the ancestor operation, which is the one whose body or absstract
5839 specification is actually being overridden. For source navigation
5842 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5843 operation is primitive for the type.
5844 (Declare_Inherited_Private_Subprograms): If the new operation overrides
5845 an inherited private subprogram, set properly the Overridden_Operation
5846 attribute, for better cross-reference information.
5847 (Analyze_Package_Specification): Do late analysis of spec PPCs
5848 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5849 properly the full view and underlying full views of a private type in a
5850 child unit, whose full view is derived from a private type in a parent
5851 unit, and whose own full view becomes visible in the child body.
5853 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5854 primitive operation after the type has been frozen, add an explicit
5855 reference to the type and the operation, because other primitive
5856 references have been emitted already.
5857 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5858 dispatching call on VM targets.
5860 2008-04-08 Vincent Celier <celier@adacore.com>
5861 Thomas Quinot <quinot@adacore.com>
5863 * make.adb: (Gnatmake_Called): Remove, no longer necessary
5864 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5865 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5866 (Insert_Project_Sources): Take into account index in multi-unit source
5868 After building a library project, delete all temporary files.
5869 (Initialize): Reset current output after parsing project file.
5870 (Collect_Arguments_And_Compile): Never insert in the queue the sources
5871 of library projects that are externally built.
5872 Put file name in error and inform messages if -df is used
5873 (Display): If invoked with -d7, do not display path names, but only
5876 * makeutl.ads (Path_Or_File_Name): New function
5877 (Path_Or_File_Name): New function
5879 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5881 * Make-lang.in: Disable warnings during first stage of bootstrap
5883 Update dependencies.
5885 2008-04-08 Vincent Celier <celier@adacore.com>
5887 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5888 case to decide if ALI object file is included in library.
5889 (Build_Library): Never attempt to build a library if the project is
5892 2008-04-08 Thomas Quinot <quinot@adacore.com>
5894 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5895 (No_List) is defined to return Empty.
5897 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5899 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5902 (Read_Default_Search_Dirs): Do not consider spaces as path separators
5903 because spaces may be part of legal paths.
5905 2008-04-08 Robert Dewar <dewar@adacore.com>
5907 * par-ch11.adb (P_Exception_Handler): Check indentation level for
5910 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5912 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5913 in a type declaration, if this is not an interface declaration or
5914 private type extension.
5916 2008-04-08 Vincent Celier <celier@adacore.com>
5918 * prj-util.adb (Executable_Of): New String parameter Language. When
5919 Ada_Main is False and Language is not empty, attempt to remove the body
5920 suffix or the spec suffix of the language to get the base of the
5921 executable file name.
5922 (Put): New Boolean parameter Lower_Case, defauilted to False. When
5923 Lower_Case is True, put the value in lower case in the name list.
5924 (Executable_Of): If there is no executable suffix in the configuration,
5925 then do not modify Executable_Extension_On_Target.
5927 * prj-util.ads (Executable_Of): New String parameter Language,
5928 defaulted to the empty string.
5929 (Put): New Boolean parameter Lower_Case, defauilted to False
5931 2008-04-08 Robert Dewar <dewar@adacore.com>
5933 * scng.adb (Scan_Identifier): Handle case of identifier starting with
5934 wide character using UTF-8 encoding.
5936 2008-04-08 Javier Miranda <miranda@adacore.com>
5938 * sem.adb (Analyze): Consider case in which we analyze an empty node
5939 that was generated by a call to a runtime function that is not
5940 available under the configurable runtime.
5942 * sem.ads (Inside_Freezing_Actions): New flag.
5943 (Save_Check_Policy_List): New field in scope stack entry
5945 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5946 Robert Dewar <dewar@adacore.com>
5948 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5949 the ancestor part of an extension aggregate for a limited type.
5950 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5951 enumeration index bounds.
5952 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5953 when array is too short.
5954 (Check_Expr_OK_In_Limited_Aggregate): Move function
5955 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5957 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5958 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5959 component associations.
5960 (Check_Non_Limited_Type): Moved to outer level and renamed.
5961 (Resolve_Record_Aggregate): In an extension aggregate, an association
5962 with a box initialization can only designate a component of the
5963 extension, not a component inherited from the given ancestor
5965 * sem_case.adb: Use new Is_Standard_Character_Type predicate
5967 2008-04-08 Robert Dewar <dewar@adacore.com>
5969 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5971 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5972 Properly handle case where Aft > Scale and input number is less than
5975 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5977 * s-stoele.ads, s-soflin.ads: Move the location of
5978 Dummy_Communication_Block from System.Storage_Elements to
5981 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5982 emulate Communication_Block in certain scenarios.
5984 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5986 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5988 Add new subtype S_WWC, unchecked conversion routines From_WWC and
5990 (I_WWC, O_WWC): New routines for input and output of
5991 Wide_Wide_Character.
5993 2008-04-08 Robert Dewar <dewar@adacore.com>
5995 * stringt.adb (Write_String_Table_Entry): Handle wide characters
5998 2008-04-08 Robert Dewar <dewar@adacore.com>
6000 * styleg.adb (Check_Comment): Allow special char after -- in
6001 non-end-of-line case
6003 2008-04-08 Robert Dewar <dewar@adacore.com>
6005 * stylesw.adb: Implement -gnaty + - y options
6006 (Set_GNAT_Style_Check_Options): Includ I in style check string
6008 * stylesw.ads: Add comments for new style switch options
6010 2008-04-08 Sergey Rybin <rybin@adacore.com>
6012 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6013 to the set of the GNAT components needed by ASIS.
6015 2008-04-08 Bob Duff <duff@adacore.com>
6017 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6019 2008-04-08 Tristan Gingold <gingold@adacore.com>
6021 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6022 Improve error message generation.
6024 2008-04-08 Vincent Celier <celier@adacore.com>
6026 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6027 Use_Error, as specified in the RM. Check if directory is open and raise
6028 Use_Error if it is not.
6030 2008-04-08 Vincent Celier <celier@adacore.com>
6031 Robert Dewar <dewar@adacore.com>
6033 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6034 AAMP_On_Target is set.
6036 * vms_data.ads: Add NOxxx to style check switch list
6037 Add entry COMPONENTS for -gnatVe
6038 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6040 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6041 Add qualifiers for gnatmetric coupling options
6042 Add note that -gnata enables all checks
6043 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6044 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6045 New warning flag -gnatw.e
6047 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6048 Add entry for -gnatyN (forgotten before)
6049 Line for new warning switch -gnatw.p
6050 New warning flag -gnatw.e
6052 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6053 Document -gnaty - + y
6054 Replace occurences of "package specification" with "package spec"
6055 Define preprocessing symbols in documentation of gnatprep
6056 Clarify reason for distinguishing overflow checking
6057 Add documentation for project-aware tool switches -eL and --subdirs=
6058 Complete list of configuration pragmas
6059 Specify that, even when gnatmake switch -x is used, mains on the command
6060 line need to be sources of project files.
6061 Editing of gnatcheck/gnatmetric doc.
6062 Add documentation for -gnatw.p/-gnatw.P
6063 Add missing documentation for -fno-inline-functions.
6064 Add documentation for -gnatw.e
6066 * gnat_rm.texi: Add documentation for No_Default_Initialization
6067 Replace occurences of "package specification" with "package spec"
6068 Document use of * in Warnings Off string
6069 Update documentation of alignment/component clauses.
6070 Add documentation for Invalid_Value
6071 Document new consistency rule for Optimize_Alignment
6072 Add documentation for Precondition and Postcondition pragmas
6073 Add documentation for Check and Check_Policy pragmas
6074 Document new Enum_Val attribute
6075 Remove requirement for static string in pragma Assert
6076 Add documentation on GNAT.Time_Stamp
6078 * ug_words: add entry for -gnatVe
6079 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6080 Add entry for -gnatw.e
6082 * debug.adb: Add missing documentation for d.a flag
6083 Document new -gnatd.a switch.
6084 Add documentation for new gnatmake debug switch -df
6086 2008-04-08 Thomas Quinot <quinot@adacore.com>
6088 * gen-soccon.c: Bump year in copyright notices.
6090 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6092 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6094 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6097 2008-04-08 Robert Dewar <dewar@adacore.com>
6098 Bob Duff <duff@adacore.com>
6100 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6101 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6103 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6105 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6107 * g-trasym.ads: Minor comment improvements
6109 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6111 * a-sequio.ads, a-direio.ads: improve message for tagged type
6113 * a-strunb.ads: Minor reformatting
6115 * a-tifiio.adb: Minor reformatting
6117 * atree.adb (Fix_Parents): Use clearer names for formals
6118 Cleanup and simplify code
6119 Use named notation in calls
6121 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6124 * uintp.adb: Used named notation for some confusing calls
6126 * bindusg.adb: Minor change in one line of output
6128 * cstand.adb: Minor reformatting of src representation of Standard
6130 * a-assert.ads: Add comment.
6132 * g-decstr.adb: Fix bad indentation
6134 * expander.ads, expander.adb: Code clean up.
6136 * sem_dist.ads: Minor comment improvement
6138 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6139 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6141 * i-cstrin.adb: Fix casing error in formal parameter name in call
6143 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6145 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6146 mentioned in limited_with_clauses to do create semantic dependencies
6147 even though they appear in the ali file.
6149 2008-04-08 Emmanuel Briot <briot@adacore.com>
6151 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6153 (Get_Configuration): New subprogram.
6155 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6156 These optional parameters help preserve the casing of the project's name
6157 when pretty-printing.
6159 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6160 Arnaud Charlet <charlet@adacore.com>
6162 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6163 then use __gnat_set_exit_status to report the returned status code.
6165 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6166 messages on .NET, since some constructs of the language are not
6169 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6170 .NET linker, gnatlink now concatenate all .il files and pass this to
6173 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6174 Xavier Grave <grave@ipno.in2p3.fr>
6176 * Makefile.in: Add make ifeq define for mips/mipsel support.
6177 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6178 system-linux-mips.ads: New files.
6180 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6182 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6183 detect systems using GNU libc.
6189 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6191 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6192 constant constant for sysconf call.
6193 (bit_field): New packed boolean type used by cpu_set_t.
6194 (cpu_set_t): New type corresponding to the C type with
6195 the same name. Note that on the Ada side we use a bit
6196 field array for the affinity mask. There is not need
6197 for the C macro for setting individual bit.
6198 (pthread_setaffinity_np): New imported routine.
6199 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6202 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6204 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6206 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6208 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6209 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6210 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6211 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6212 Return by Depressed Stack Pointer.
6214 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6216 * decl.c (is_variable_size): Do not unconditionally return false
6217 on non-strict alignment platforms.
6219 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6221 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6222 used to process all the variants of the specified type.
6223 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6224 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6225 (rest_of_type_decl_compilation): Likewise.
6226 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6228 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6230 * gigi.h (insert_block): Kill.
6231 * utils.c (insert_block): Kill.
6233 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6235 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6236 type has self-referential size, get the size from the initializing
6237 expression directly if it is also a constant whose nominal type
6238 has self-referential size.
6240 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6243 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6246 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6247 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6249 2008-04-01 Andreas Jaeger <aj@suse.de>
6251 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6254 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6256 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6257 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6258 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6259 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6260 gnatlink.adb, gnatmem.adb, gprep.adb,
6261 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6262 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6263 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6264 lib-xref.ads, lib.adb, link.c, live.ads,
6265 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6266 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6267 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6268 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6269 namet.adb, namet.h, nlists.adb, nlists.ads,
6270 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6271 osint-c.ads, osint.adb, osint.ads, output.ads,
6272 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6273 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6274 par-endh.adb, par-labl.adb, par-prag.adb,
6275 par-sync.adb, par-tchk.adb, par-util.adb,
6276 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6277 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6278 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6279 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6281 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6283 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6284 size if it has overflowed.
6286 2008-03-31 Olivier Hainque <hainque@adacore.com>
6287 Eric Botcazou <ebotcazou@adacore.com>
6289 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6290 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6292 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6294 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6295 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6296 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6297 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6298 exp_tss.ads, exp_util.adb, exp_util.ads,
6299 exp_vfpt.adb, freeze.adb, freeze.ads,
6300 frontend.adb, g-alleve.adb, g-altcon.adb,
6301 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6302 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6303 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6304 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6305 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6306 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6307 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6308 g-except.ads, g-expect.ads, g-heasor.adb,
6309 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6310 g-locfil.ads, g-md5.adb, g-md5.ads,
6311 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6312 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6313 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6314 g-soccon-aix.ads, g-soccon-darwin.ads,
6315 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6316 g-soccon-hpux.ads, g-soccon-irix.ads,
6317 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6318 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6319 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6320 g-soccon-solaris.ads, g-soccon-tru64.ads,
6321 g-soccon-vms.ads, g-soccon-vxworks.ads,
6322 g-soccon.ads, g-socket.adb, g-socket.ads,
6323 g-socthi-mingw.adb, g-socthi-vms.adb,
6324 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6325 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6326 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6329 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6331 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6332 if the procedure is imported.
6334 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6336 * adaint.c: Fix warnings.
6338 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6340 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6342 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6344 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6345 Fix problem of status check for null file
6347 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6349 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6350 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6351 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6352 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6353 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6356 2008-03-26 Thomas Quinot <quinot@adacore.com>
6359 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6360 Get_Socket_Option): Add support for Receive_Packet_Info.
6362 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6363 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6364 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6365 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6366 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6367 new constants SO_REUSEPORT and IP_PKTINFO
6369 2008-03-26 Robert Dewar <dewar@adacore.com>
6371 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6372 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6373 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6374 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6375 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6376 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6377 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6378 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6379 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6380 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6381 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6382 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6383 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6384 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6385 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6386 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6387 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6388 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6389 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6390 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6391 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6392 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6393 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6394 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6395 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6396 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6397 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6398 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6399 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6400 s-tasloc.adb: Minor reformatting.
6402 Remove "used for" sections from comments.
6404 2008-03-26 Robert Dewar <dewar@adacore.com>
6406 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6407 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6408 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6409 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6410 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6411 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6412 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6413 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6414 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6415 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6416 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6417 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6418 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6419 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6420 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6421 double spaced if it fits on one line and otherwise single spaced.
6423 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6425 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6426 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6427 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6428 or task info if the thread could not be created.
6430 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6432 * gnatvsn.ads (Library_Version): Bump to 4.4.
6433 (Current_Year): Bump to 2008.
6435 2008-03-26 Robert Dewar <dewar@adacore.com>
6437 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6439 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6441 * debug.adb: Add debug flags d.r and d.v
6442 Add debug flag .T (Optimize_Alignment (Time))
6443 Add debug flag .S (Optimize_Alignment (Space))
6445 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6446 depending on setting of relevant debug flags.
6447 Replace use of Warnings_Off by Has_Warnings_Off
6448 (Freeze_Entity): In circuit for warning on suspicious convention
6449 actuals, do not give warning if subprogram has same entity as formal
6450 type, or if subprogram does not come from source.
6451 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6452 if Optimize_Alignment set to Space.
6454 * frontend.adb: Add call to Sem_Warn.Initialize
6455 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6456 Reset Optimize_Alignment mode from debug switches .S and .T
6458 * layout.adb (Layout_Composite_Object): Rewritten for
6459 Optimize_Aligment pragma.
6461 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6464 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6466 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6467 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6468 this change. Add entry for pragma Optimize_Alignment
6470 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6471 (Pragma_Identifier (..
6472 instead, adjustments throughout to accomodate this change.
6473 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6474 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6475 Add implementation of pragma Optimize_Alignment
6477 2008-03-26 Vincent Celier <celier@adacore.com>
6479 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6480 Improve memory usage to avoid use of stack.
6482 2008-03-26 Robert Dewar <dewar@adacore.com>
6484 * a-teioed.ads: Correct value of Default_Fill
6486 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6488 2008-03-26 Robert Dewar <dewar@adacore.com>
6490 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6491 with Current_Output (introduce Self).
6493 2008-03-26 Robert Dewar <dewar@adacore.com>
6495 * checks.adb (Ensure_Valid): Capture valid status if possible
6498 2008-03-26 Robert Dewar <dewar@adacore.com>
6500 * stand.ads: Deal with reordering of package standard declarations
6502 * cstand.adb: Put package Standard declarations in proper order
6504 2008-03-26 Robert Dewar <dewar@adacore.com>
6506 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6507 (Pragma_Identifier (.. instead.
6508 (OK_To_Reorder_Components): New flag
6509 (Has_Entries): Code cleanup.
6510 (Warnings_Off_Used): New flag
6511 (Warnings_Off_Used_Unmodified): New flag
6512 (Warnings_Off_Used_Unreferenced): New flag
6513 (Has_Warnings_Off): New function
6514 (Has_Unmodified): New function
6515 (Has_Unreferenced): New function
6516 (Is_Trivial_Subprogram): New flag
6517 (Is_Static_Dispatch_Table_Entity): New attribute.
6518 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6519 (more consistent with other similar names)
6520 (Access_Subprogram_Type): New classification function
6522 2008-03-26 Robert Dewar <dewar@adacore.com>
6524 * errout.ads: Document new !! insertion sequence
6526 * errout.adb (N_Pragma): Chars field removed, use Chars
6527 (Pragma_Identifier (.. instead.
6528 Replace use of Warnings_Off by Has_Warnings_Off
6529 (Error_Msg_Internal): Don't delete warning ending in !!
6531 2008-03-26 Robert Dewar <dewar@adacore.com>
6533 * par.adb (Check_No_Right_Paren): Removed no longer used
6535 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6536 (Pragma_Identifier (.. instead.
6538 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6540 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6541 par-ch4.adb: Minor improvements in error recovery and messages.
6543 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6546 * par-ch9.adb: Minor improvements in error recovery and messages
6547 (P_Protected): Better error recovery for "protected type x;"
6549 * par-util.adb: Minor improvements in error recovery and messages
6550 (Check_No_Right_Paren): Removed no longer used
6552 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6554 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6555 that the prefix of an attribute is the type of the aggregate being
6558 2008-03-26 Javier Miranda <miranda@adacore.com>
6559 Robert Dewar <dewar@adacore.com>
6561 * exp_attr.adb (N_Pragma): Chars field removed.
6562 (Expand_N_Attribute_Reference): If the designated type associated with
6563 attribute 'Unrestricted_Access is a subprogram entity then replace it
6564 by an E_Subprogram_Type itype.
6565 Implement attribute Old
6567 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6569 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6571 New_Internal_Entity by call to Create_Itype to centralize calls
6572 building itypes, ad propagate the convention of the designated
6573 subprogram. In addition, disable the machinery cleaning constant
6574 indications from all entities in current scope when 'Unrestricted_Access
6575 corresponds with a node initializing a dispatch table slot.
6576 (Analyze_Attribute): Parameterless attributes returning a string or a
6577 type will not be called with improper arguments, so we can remove junk
6578 code that was dealing with this case.
6579 Implement attribute Old
6581 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6582 Add entry for pragma Optimize_Alignment
6583 New standard names Sync and Synchronize
6585 2008-03-26 Robert Dewar <dewar@adacore.com>
6586 Arnaud Charlet <charlet@adacore.com>
6588 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6590 (No_Exception_Propagation_Active): New function.
6591 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6592 Update comments, and review all uses of No_Exception_Propagation, which
6593 are now correct and in sync with what gigi expects.
6595 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6597 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6598 Update comments, and review all uses of No_Exception_Propagation, which
6599 are now correct and in sync with what gigi expects.
6601 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6603 * sem_ch3.adb (Access_Definition): If the access type is the return
6604 result of a protected function, create an itype reference for it
6605 because usage will be in an inner scope from the point of declaration.
6606 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6607 OK_To_Reorder_Components.
6608 (Make_Index): If an overloaded range includes a universal integer
6609 interpretation, resolve to Standard.Integer.
6610 (Analyze_Subtype_Indication): Copy Convention to subtype
6611 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6612 limited an synchronized progenitors in type declaration and private
6613 extension declarations.
6615 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6616 protected subprogram body, determine proper scope from subprogram
6619 2008-03-26 Robert Dewar <dewar@adacore.com>
6621 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6624 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6626 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6627 of a heap allocator for a limited unconstrained function return when
6628 resstriction No_Allocators is active.
6629 (Analyze_Allocator): The restriction No_Allocators is now only checked
6630 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6632 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6633 of a heap allocator for a limited unconstrained function return when
6634 resstriction No_Allocators is active.
6635 (Analyze_Allocator): The restriction No_Allocators is now only checked
6636 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6637 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6638 operands are fixed-point types, the universal_fixed predefined operation
6639 is used, regardless of whether the operand type (s) have a primitive
6640 operation of the same name.
6642 2008-03-26 Javier Miranda <miranda@adacore.com>
6644 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6645 Is_Static_Dispatch_Table
6646 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6647 to Exchange_Declarations to exchange the private and full-view. Bug
6648 found working in this issue.
6649 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6650 to the subprogram pointer type.
6651 (Make_Secondary_DT): Replace generation of Prim'Address by
6652 Address (Prim'Unrestricted_Access)
6653 (Make_DT): Replace generation of Prim'Address by
6654 Address (Prim'Unrestricted_Access)
6655 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6656 simple call form for single entry.
6657 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6658 tables of predefined primitives).
6659 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6660 predefined primitives.
6661 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6662 access to dispatch tables containing predefined primitives.
6664 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6665 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6667 (Register_Predefined_DT_Entry): Updated to handle the new contents
6668 of attribute Access_Disp_Table (pointers to dispatch tables containing
6669 predefined primitives).
6671 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6673 (Find_Interface_ADT): Updated to skip the new contents of attribute
6674 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6677 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6679 (Set_Convention): Use new function Is_Access_Subprogram_Type
6680 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6681 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6684 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6685 expanded code avoiding calls to Build_Predef_Prims.
6686 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6687 call to Build_Get_Predefined_Prim_Op_Address.
6689 2008-03-26 Javier Miranda <miranda@adacore.com>
6691 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6692 subprogram Corresponding_Runtime_Package to know the runtime package
6693 that will provide support to a given protected type.
6695 * exp_ch9.adb (Add_Private_Declarations,
6696 Build_Protected_Subprogram_Call,
6697 Build_Protected_Entry, Build_Simple_Entry_Call,
6698 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6699 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6700 cleanup using the new centralized subprogram Corresponding_Runtime
6701 Package to know the runtime package that provides support to
6702 a given protected type.
6704 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6706 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6707 assignment is within the initialization procedure for a packed array,
6708 and Initialize_Scalars is enabled, compile right-hand side with checks
6709 off, because the value is purposely out of range.
6711 2008-03-26 Vincent Celier <celier@adacore.com>
6713 * gnatcmd.adb: Add processing for GNAT SYNC
6715 * vms_conv.ads: (Command_Type): Add command Sync
6717 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6719 * vms_data.ads: Add entries for -gnatw.w
6720 Add qualifier for gnatstub --header-file option
6721 Add switches for GNAT SYNC
6723 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6724 (Add_Package_Name): New procedure
6725 (Package_Name_List): New function
6726 (Initialize): Add known package names to the list
6727 (Register_New_Package): Add the new package name to the list
6729 2008-03-26 Robert Dewar <dewar@adacore.com>
6731 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6732 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6733 Raise_Exception by "raise with" construct.
6735 2008-03-26 Pascal Obry <obry@adacore.com>
6737 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6738 supported platforms.
6740 * Makefile.rtl: Add g-sercom.o.
6742 * impunit.adb: Add g-sercom.adb.
6744 * s-crtl.ads (open): New routine.
6748 * s-osinte-mingw.ads (BYTE): New type.
6750 (OVERLAPPED): Likewise.
6751 (GENERIC_READ): New constant.
6752 (GENERIC_WRITE): Likewise.
6753 (OPEN_EXISTING): Likewise.
6754 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6756 (CreateFile): New routine.
6757 (WriteFile): Likewise.
6758 (ReadFile): Likewise.
6759 (CloseHandle): Move next to the other file oriented routines.
6761 * g-sercom.ads: New unit.
6763 * g-sercom.adb: Default implementation, calls to this unit will raise
6764 a program error exception.
6766 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6767 GNU/Linux implementations.
6769 2008-03-26 Robert Dewar <dewar@adacore.com>
6771 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6773 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6774 unchecked conversion for different conventions only for subprogram
6777 2008-03-26 Vincent Celier <celier@adacore.com>
6779 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6780 to check if the specified object file is correct.
6782 2008-03-26 Thomas Quinot <quinot@adacore.com>
6784 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6785 Comes_From_Source to exclude primitives from being checked. We want to
6786 exclude predefined primitives only, so use the appropriate specific
6787 predicate. Also, flag a formal parameter of an anonymous
6788 access-to-subprogram type as illegal for a primitive operation of a
6789 remote access to class-wide type.
6791 2008-03-26 Vincent Celier <celier@adacore.com>
6793 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6794 known, check if it may be a missspelling of a known package name. In
6795 not verbose, not mode, issue warnings only if the package name is a
6796 possible misspelling.
6797 In verbose mode, always issue a warning for a not known package name,
6798 plus a warning if the name is a misspelling of a known package name.
6800 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6801 limited withs or limited withs are parse during one call.
6802 (Parse_Single_Project): Post parse context clause in two passes: non
6803 limited withs before current project and limited withs after current
6806 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6807 project with the name With_Name, even if it is only extended indirectly.
6808 (Recursive_Process): Process projects in order: first single withs, then
6809 current project, then limited withs.
6811 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6812 project with the name With_Name, even if it is only extended indirectly.
6814 2008-03-26 Robert Dewar <dewar@adacore.com>
6816 * scn.adb (Initialize_Scanner): Format messages belong on standard error
6818 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6820 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6821 a generic subprogram that is imported, do not attempt to compile
6824 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6825 imported, do not generate a raise_program_error for the non-existent
6827 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6828 perform minimal name resolution on the generic to avoid spurious
6830 (Find_Actual_Type): the designated type of the actual in a child unit
6831 may be declared in a parent unit without being an actual.
6833 2008-03-26 Robert Dewar <dewar@adacore.com>
6835 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6836 * sinfo.ads, sinfo.adb (From_At_End): New flag
6838 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6840 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6841 operations that have an interface parameter.
6842 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6843 Don't treat No_Return call as raise.
6845 * sem_disp.adb (Check_Dispatching_Operations): apply check for
6846 non-primitive interface primitives to access parameters, not to all
6847 parameters of an access type.
6849 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6851 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6852 declarations of a parent unit are made visible when compiling a child
6853 instance, the parent is not a hidden open scope, even though it may
6854 contain other pending instance.
6856 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6857 hidden open scope for some child instance, it does affect the
6858 visibility status of other stach entries.
6859 (Analyze_Object_Renaming): Check that a class-wide object cannot be
6860 renamed as an object of a specific type.
6862 2008-03-26 Robert Dewar <dewar@adacore.com>
6864 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6865 recursion and raise SE directly.
6866 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6867 set for formal type for IN mode parameter.
6869 2008-03-26 Robert Dewar <dewar@adacore.com>
6871 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6872 (Initialize): New procedure
6873 (Output_Warnings_Off_Warnings): New procedure
6874 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6875 (Output_Non_Modifed_In_Out_Warnings): Ditto
6876 (Warn_On_Unreferenced_Entity): Ditto
6878 2008-03-26 Vincent Celier <celier@adacore.com>
6880 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6883 2008-03-26 Matthew Heaney <heaney@adacore.com>
6885 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6886 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6887 Marked with clauses as private, and controlled operations as overriding
6889 2008-03-26 Robert Dewar <dewar@adacore.com>
6891 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6893 2008-03-26 Robert Dewar <dewar@adacore.com>
6895 * back_end.adb, back_end.ads: Minor reformatting
6897 * bindgen.adb: Minor clarification of comments
6899 * fname.ads: Minor comment fixes
6901 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6902 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6904 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6905 xsnames.adb: Remove warnings off pragma no longer needed
6907 * a-catizo.ads, a-calari.ads, a-calfor.adb,
6908 a-calfor.ads: Fix header.
6910 2008-03-26 Tristan Gingold <gingold@adacore.com>
6912 * init.c: Do not adjust pc for HPARITH on alpha/vms.
6914 2008-03-26 Robert Dewar <dewar@adacore.com>
6916 * lib-xref.adb: (OK_To_Set_Reference): New function
6917 (Generate_Reference): Don't set referenced from occurrence in Warnings,
6918 Unmodified, or Unreferenced pragma
6920 2008-03-26 Robert Dewar <dewar@adacore.com>
6922 * alloc.ads: Add entries for Warnings_Off_Pragmas table
6924 2008-03-26 GNAT Script <nobody@adacore.com>
6926 * Make-lang.in: Makefile automatically updated
6928 2008-03-26 Robert Dewar <dewar@adacore.com>
6930 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6931 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6932 removed, use Chars (Pragma_Identifier (.. instead, adjustments
6933 throughout to accomodate this change.
6935 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6937 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6938 Einfo.Set_Needs_Debug_Info)
6940 2008-03-26 Robert Dewar <dewar@adacore.com>
6942 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6943 Add description for the new gnatstub option '--header-file'
6944 clarification of -gnatwz/-gnatwZ
6945 Add a "Irix-Specific Considerations" section to document the need to
6946 set LD_LIBRARY_PATH when using the default shared runtime library.
6947 Added documentation for both gcov and gprof.
6949 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6950 messages that are not suppressed when clients are compiled.
6951 Add documentation of s-pooglo s-pooloc
6952 Document the new GNAT.Serial_Communications API.
6953 Add documentation for 'Old attribute
6954 Add description of pragma Optimize_Alignment
6956 * ug_words: Add entries for -gnatw.w -gnatw.W
6958 * usage.adb: Add line for -gnatw.w (warn on warnings off)
6960 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
6963 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
6965 * decl.c (maybe_pad_type): Avoid padding an integral type when
6966 bumping its alignment is sufficient.
6968 2008-03-25 Arnaud Charlet <charlet@adacore.com>
6970 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6971 Fix wrong formatting (lines too long)
6973 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6975 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6976 a-calend-vms.adb, a-calend.adb, a-calend.ads,
6977 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6978 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6979 a-cohama.ads, a-comlin.ads, a-coorse.adb,
6980 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6981 a-except-2005.ads, a-except.adb, a-except.ads,
6982 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6983 a-exextr.adb, a-filico.ads, a-finali.ads,
6984 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6985 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6986 a-sequio.ads, a-strbou.ads, a-strfix.adb,
6987 checks.adb, exp_ch3.adb, exp_ch4.adb,
6988 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6989 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6990 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6991 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6992 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6994 2008-03-24 Robert Dewar <dewar@adacore.com>
6996 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6997 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6998 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6999 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7000 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7001 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7002 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7003 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7004 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7005 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7006 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7007 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7008 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7009 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7010 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7011 double spaced if it fits on one line and otherwise single spaced.
7013 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7015 PR documentation/15479
7016 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7017 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7018 (doc/gnat_ugn.info): Renamed from ...
7019 (doc/gnat_ugn_unw.info): ... this.
7020 (doc/gnat_ugn.dvi): Renamed from ...
7021 (doc/gnat_ugn_unw.dvi): ... this.
7022 (doc/gnat_ugn.pdf): Renamed from ...
7023 (doc/gnat_ugn_unw.pdf): ... this.
7024 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7026 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7027 unconditionally to gnat_ugn.info. Fix cross references to the
7028 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7029 and GNU make manuals to be proper texinfo links.
7030 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7032 2008-03-21 Olivier Hainque <hainque@adacore.com>
7034 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7035 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7037 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7039 * trans.c (addressable_p): Add notes on addressability issues.
7041 2008-03-21 Olivier Hainque <hainque@adacore.com>
7042 Ed Schonberg <schonberg@adacore.com>
7044 * trans.c (addressable_p): Accept COND_EXPR when both arms
7046 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7047 (call_to_gnu): Do not use name reference in the error message
7048 for a misaligned by_reference_parameter. The actual may be a
7051 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7053 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7055 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7057 * gnat_rm.texi (Implementation Defined Characteristics)
7058 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7060 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7061 (Switches for gnatchop, Installing a library): Likewise.
7063 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7065 * trans.c (emit_range_check): Do not emit the check if the base type
7066 of the expression is the type against which its range must be checked.
7068 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7070 * decl.c (maybe_pad_type): Use value_factor_p.
7072 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7074 * lang.opt (nostdlib): Move around.
7075 * misc.c (gnat_handle_option): Fix formatting.
7076 (gnat_dwarf_name): Move around.
7077 * trans.c (Case_Statement_to_gnu): Fix formatting.
7078 (gnat_to_gnu): Likewise.
7079 * utils.c (aggregate_type_contains_array_p): Likewise.
7080 (create_subprog_decl): Likewise.
7082 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7084 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7085 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7087 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7089 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7090 BIGGEST_ALIGNMENT when capping the alignment of records with
7091 strict alignment and size clause.
7093 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7095 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7096 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7097 and -Wuninitialized.
7098 (gnat_post_options): Clear warn_unused_parameter.
7100 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7102 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7103 aligned bit-fields, bumping the alignment of the record type if deemed
7105 (value_factor_p): Return false instead of 0.
7107 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7109 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7110 for scalar types with small alignment.
7112 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7114 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7115 from that of the front-end's end label.
7116 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7117 from that of the loop label.
7119 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7121 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7122 comment for the packed array type case.
7123 * utils.c (build_template): Use a loop to strip padding or
7124 containing records for justified modular types.
7126 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7128 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7129 large alignments specified for types.
7130 (validate_alignment): Minor cleanup.
7132 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7134 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7135 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7136 the component for packing, if possible, as well as if a component
7137 size clause is specified.
7138 <E_Record_Subtype>: For an array type used to implement a packed
7139 array, get the component type from the original array type.
7140 Try to get a smaller form of the component for packing, if possible,
7141 as well as if a component size clause is specified.
7142 (round_up_to_align): New function.
7143 (make_packable_type): Add in_record parameter.
7144 For a padding record, preserve the size. If not in_record and the
7145 size is too large for an integral mode, attempt to shrink the size
7146 by lowering the alignment.
7147 Ditch the padding bits of the last component.
7148 Compute sizes and mode manually, and propagate the RM size.
7149 Return a BLKmode record type if its size has shrunk.
7150 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7151 Use Original_Array_Type to retrieve the type in case of an error.
7152 Adjust call to make_packable_type.
7153 (gnat_to_gnu_field): Likewise.
7154 (concat_id_with_name): Minor tweak.
7155 * trans.c (larger_record_type_p): New predicate.
7156 (call_to_gnu): Compute the nominal type of the object only if the
7157 parameter is by-reference. Do the conversion actual type -> nominal
7158 type if the nominal type is a larger record.
7159 (gnat_to_gnu): Do not require integral modes on the source type to
7160 avoid the conversion for types with identical names.
7161 (addressable_p): Add gnu_type parameter. If it is specified, do not
7162 return true if the expression is not addressable in gnu_type.
7163 Adjust recursive calls.
7164 * utils.c (finish_record_type): Remove dead code.
7166 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7169 * decl.c (maybe_pad_type): Avoid padding an integral type when
7170 bumping its alignment is sufficient.
7172 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7174 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7175 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7177 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7178 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7179 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7180 code output strings.
7181 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7182 system-vms_64.ads: Fix typos in ada source code comments.
7183 * sinfo-cn.adb: Remove incomplete sentence.
7185 PR documentation/15479
7186 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7188 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7191 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7193 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7196 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7197 that underlying type is present.
7199 2008-02-26 Tom Tromey <tromey@redhat.com>
7201 * misc.c (internal_error_function): Remove test of
7202 USE_MAPPED_LOCATION.
7203 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7204 (Sloc_to_locus): Remove old location code.
7206 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7208 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7209 `i.e.' by adding comma or `@:' as appropriate.
7210 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7211 plain characters `C', use `@samp{C}'.
7212 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7213 (Krunching Method): Likewise.
7215 * gnat_ugn.texi (Conventions): List environment variables and
7216 metasyntactic variables.
7217 (Compiling Programs): Fix notation of metasyntactic variables.
7218 Add @file where appropriate. Use @file for file extensions,
7220 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7221 instead of @file, @env instead of @code.
7223 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7225 PR documentation/15479
7226 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7227 and `...' with `@dots{}' or `@enddots{}'.
7229 PR documentation/15479
7230 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7231 use @command instead of @code, @option instead of @samp or @code,
7232 @code instead of @var, @samp instead of @file.
7234 PR documentation/15479
7235 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7236 in Makefile rules, by using `&&' rather than `;'.
7238 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7240 PR documentation/15479
7241 * gnat_ugn.texi: In non-code, avoid space before colon.
7242 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7243 (Examples of gnatxref Usage): Use @command{vi} instead of
7245 (Character Set Control): Do not use @code for UTF-8.
7246 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7248 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7250 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7252 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7255 * env.c: Add __rtems__ to if defined.
7256 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7257 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7258 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7259 pragma Convention as required.
7260 * gsocket.h: Make compile in and out of RTS.
7261 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7262 Use g-soccon-rtems.ads.
7263 * g-soccon-rtems.ads, system-rtems.ads: New files.
7265 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7268 * Make-lang.in (gnat1): Add $(GMPLIBS).
7270 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7272 * decl.c (components_to_record): Improve comment.
7274 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7276 * decl.c (components_to_record): Do not reuse the empty union type
7277 if there is a representation clause on the record.
7278 * trans.c (addressable_p): Return true for INTEGER_CST.
7280 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7282 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7283 in pointer arithmetics.
7284 * utils2.c (build_allocator): Likewise.
7286 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7288 * utils.c (build_function_stub): Properly build the call expression.
7290 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7292 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7293 before converting the expression to the type of the object.
7294 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7295 Stabilize constructors for special wrapping types.
7297 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7299 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7300 when necessary. Merge some conditional statements. Update comments.
7301 Rename unchecked_convert_p local variable to suppress_type_conversion.
7302 Do not suppress conversions in the In case.
7303 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7304 into account on non strict-alignment platforms.
7306 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7308 * utils.c (aggregate_type_contains_array_p): New predicate.
7309 (create_field_decl): In a packed record, force byte alignment
7310 for fields without specified position that contain an array.
7312 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7314 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7316 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7319 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7321 (bit_field): New packed boolean type used by cpu_set_t.
7322 (cpu_set_t): New type corresponding to the C type with
7323 the same name. Note that on the Ada side we use a bit
7324 field array for the affinity mask. There is not need
7325 for the C macro for setting individual bit.
7326 (pthread_setaffinity_np): New imported routine.
7328 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7331 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7332 on OpenBSD as is done on other BSD systems.
7335 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7336 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7340 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7344 * init.c (__gnat_error_handler, __gnat_install_handler,
7345 __gnat_init_float): Define for OpenBSD.
7347 * initialize.c (__gnat_initialize): Define for OpenBSD.
7349 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7352 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7353 instead of mktemp() or tmpnam() on NetBSD.
7355 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7357 * trans.c (call_to_gnu): Make the temporary for non-addressable
7358 In parameters passed by reference.
7359 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7361 2007-12-19 Robert Dewar <dewar@adacore.com>
7363 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7364 Add pragma Warnings (Off) for unassigned IN OUT arguments
7366 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7367 (Check_References): Extensive changes to tune up warnings
7368 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7369 (Has_Pragma_Unmodifed_Check_Spec): New function
7370 (Check_References): Implement pragma Unmodified
7371 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7373 * par-prag.adb: Dummy entry for pragma Unmodified
7375 * sem_prag.adb: Implement pragma Unmodified
7377 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7378 (Proc_Next_Component_Or_Discriminant): Fix typo.
7381 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7383 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7384 because the former already takes care of discarding the result.
7385 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7388 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7390 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7392 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7393 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7394 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7395 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7396 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7397 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7398 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7399 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7400 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7401 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7402 (Dynamic_Trampolines_Used): Delete.
7404 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7405 Turn on stack probing mechanism on LynxOS.
7407 2007-12-19 Bob Duff <duff@adacore.com>
7409 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7410 the resulting tail recursion by hand. This prevents running out of
7411 memory on deeply nested concatenations, since Field2 is where the left
7412 operand of concatenations is stored.
7413 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7414 clarify that it can only return OK or Abandon.
7416 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7417 operand by iteration, in order to avoid running out of memory on
7418 deeply-nested concatenations. Use the Parent pointer to get back up the
7420 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7421 Resolve_Op_Concat_Rest): New procedures split out of
7422 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7425 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7426 Traverse_Func, because the former already takes care of discarding the
7429 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7430 because the former already takes care of discarding the result.
7431 (Remove_Warning_Messages): Use appropriate subtype for Status and
7434 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7436 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7437 discriminants forces expansion of the aggregate into assignments.
7438 (Init_Record_Controller): If the type of the aggregate is untagged and
7439 is not inherently limited, the record controller is not limited either.
7441 2007-12-19 Robert Dewar <dewar@adacore.com>
7443 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7444 handling compile time known size of record or array (case of front end
7445 layout active, e.g. in GNAAMP).
7447 2007-12-19 Javier Miranda <miranda@adacore.com>
7449 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7450 that forces the construction of static dispatch tables in case of
7453 2007-12-19 Robert Dewar <dewar@adacore.com>
7455 * exp_ch9.adb (Null_Statements): Moved to library level
7456 (Trivial_Accept_OK): New function
7457 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7458 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7460 2007-12-19 Robert Dewar <dewar@adacore.com>
7462 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7463 in complex case where array is Volatile.
7465 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7467 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7468 properly the Ada2005 rules concerning when the current instance of a
7469 record type is aliased.
7471 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7473 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7475 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7477 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7479 2007-12-19 Vincent Celier <celier@adacore.com>
7481 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7482 package is not known
7484 * prj-attr.ads (Unknown_Package): New constant
7485 Do not crash when an unknown package is in several projects
7487 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7490 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7491 existing package Language_Processing.
7493 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7494 Gary Dismukes <dismukes@adacore.com>
7495 Samuel Tardieu <sam@rfc1149.net>
7497 PR ada/15803, ada/15805
7498 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7499 illegal access subtypes when there is a constrained partial view.
7500 (Check_For_Premature_Usage): New procedure inside
7501 Access_Subprogram_Declaration for checking that an access-to-subprogram
7502 type doesn't reference its own name within any formal parameters or
7503 result type (including within nested anonymous access types).
7504 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7505 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7506 context is an access_to_variable, the expression cannot be an
7509 2007-12-19 Bob Duff <duff@adacore.com>
7511 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7512 (Analyze_Concatenation): Use iteration instead of recursion in order
7513 to avoid running out of stack space for deeply nested concatenations.
7515 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7516 Gary Dismukes <dismukes@adacore.com>
7518 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7519 whose renamed entity is a subprogram that requires overriding.
7520 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7521 issuing an error for premature usage and issue a message that says
7522 'type' rather than 'object'.
7524 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7527 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7528 presence of a statically tagged operand (Present (Static_Tag)) with
7529 test for Indeterm_Ancestor_Call when determining whether to propagate
7530 the static tag to tag-indeterminate operands (which forces dispatching
7532 (Check_Controlling_Formals): Ada2005, access parameters can have
7534 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7535 not insert subprogram in list of primitive operations if already there.
7537 2007-12-19 Tristan Gingold <gingold@adacore.com>
7539 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7542 2007-12-19 Thomas Quinot <quinot@adacore.com>
7544 Part of PR ada/33688
7545 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7546 datagram info on Linux.
7548 2007-12-19 Vincent Celier <celier@adacore.com>
7550 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7551 that the source path name is always found in the dependencies.
7553 2007-12-19 Robert Dewar <dewar@adacore.com>
7555 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7556 Fix name of Wide_Wide_Latin_1/9 file names
7557 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7558 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7559 Add missing documentation for Ada.Command_Line.Response_File
7560 Update list of warning letters for Warnings pragma
7561 Add documentation for pragma Unmodified
7563 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7565 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7567 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7569 * s-vxwork-alpha.ads: Removed, no longer used.
7571 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7573 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7575 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7578 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7579 mlib-tgt-specific.adb.
7581 2007-12-13 Bob Duff <duff@adacore.com>
7583 * trans.c (Attribute_to_gnu): Check for violations of the
7584 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7585 the front end, but is moved here so we can make it more accurate.
7587 2007-12-13 Pascal Obry <obry@adacore.com>
7589 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7590 version is provided for older GNU/Linux distribution not
7591 supporting thread affinity sets.
7593 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7595 (bit_field): New packed boolean type used by cpu_set_t.
7596 (cpu_set_t): New type corresponding to the C type with
7597 the same name. Note that on the Ada side we use a bit
7598 field array for the affinity mask. There is not need
7599 for the C macro for setting individual bit.
7600 (pthread_setaffinity_np): New imported routine.
7602 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7604 (Create_Task): Set the processor affinity mask if information
7607 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7609 2007-12-13 Robert Dewar <dewar@adacore.com>
7611 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7612 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7613 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7614 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7615 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7616 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7617 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7618 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7619 for subprogram pointers.
7621 * g-ctrl_c.adb: New file.
7623 * g-ctrl_c.ads (Install_Handler): New body.
7625 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7626 instead of obsolete function Is_Always_Inlined.
7627 (Freeze_Entity): check for tagged type in imported C subprogram
7628 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7629 (Freeze_Entity): check for convention Ada subprogram pointer in
7630 imported C subprogram.
7631 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7632 bound would be chopped off and go from negative to zero, force
7633 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7634 bound) so that the size computation for the base type will take
7635 negative values into account.
7637 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7638 Bob Duff <duff@adacore.com>
7639 Tristan Gingold <gingold@adacore.com>
7641 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7642 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7643 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7644 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7645 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7646 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7647 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7648 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7649 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7650 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7651 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7652 (Always_Compatible_Rep): New flag to control trampolines globally.
7653 (Dynamic_Trampolines_Used): New flag for implementing the
7654 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7655 and not yet set correctly for some targets).
7657 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7658 Simply indirectly call s-stchop when a task is created.
7661 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7662 appears as an argument (entries A) in an ALI file.
7664 * fe.h (Stack_Check_Limits): Declare new target parameter.
7665 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7667 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7668 This variable is declared in C to be sure not subject to elaboration
7670 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7673 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7674 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7676 * s-stchop.ads: Add comments.
7678 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7679 limit method of stack checking.
7681 * s-stchop-limit.ads: New file.
7683 2007-12-13 Robert Dewar <dewar@adacore.com>
7685 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7686 a-cihama.adb, g-awk.adb,
7687 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7690 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7692 * sem.adb: Update handling of assigned value/unreferenced warnings
7694 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7696 * lib-xref.ads: Improve documentation for k xref type
7699 Update handling of assigned value/unreferenced warnings
7700 (Generate_Reference): Warning for reference to entity for which a
7701 pragma Unreferenced has been given should be unconditional.
7702 If the entity is a discriminal, mark the original
7703 discriminant as referenced.
7705 * sem_warn.ads, sem_warn.adb
7706 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7707 no entities referenced in package
7708 (Check_One_Unit): Don't give message about no entities referenced in
7709 a package if a pragma Unreferenced has appeared.
7710 Handle new warning flag -gnatw.a/-gnatw.A
7711 Update handling of assigned value/unreferenced warnings
7713 * atree.h: Add flags up to Flag247
7714 (Flag231): New macro.
7716 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7718 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7720 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7723 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7724 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7725 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7726 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7729 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7731 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7732 since we only have problems with Windows 95/98, which are not
7734 (__gnat_ttyname): Return the empty string on Nucleus, just as
7737 2007-12-13 Robert Dewar <dewar@adacore.com>
7739 * a-textio.adb, a-textio.ads:
7740 Extensive changes to private part for wide character encoding
7742 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7743 (Look_Ahead): Fix mishandling of encoded sequences
7744 Move declaration of Wch_Con to private part (should not be visible)
7746 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7747 UTF-8. Probably this is never used, but if it is, brackets is
7750 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7751 setting wide character encoding for no main program case and when
7752 encoding is specified using -W?
7753 Initialize stack limit of environment task if stack limit method of
7754 stack checking is enabled.
7755 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7756 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7757 (Get_Main_Unit_Name): New function.
7758 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7759 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7761 * bindusg.adb: Add line for -Wx switch
7763 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7765 Add new useful constant WC_Longest_Sequences
7767 * switch-b.adb: Clean up handling of -Wx switch
7768 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7770 * switch-c.adb: -gnatg activates warning on assertion errors
7771 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7773 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7775 2007-12-13 Robert Dewar <dewar@adacore.com>
7776 Ed Schonberg <schonberg@adacore.com>
7778 * a-ngcoty.adb: New pragma Fast_Math
7780 * opt.adb: New pragma Fast_Math
7783 Add Implemented_By_Entry to the list of pragmas which do not require any
7785 (Favor_Top_Level): New pragma.
7786 New pragma Fast_Math
7788 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7789 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7790 Expand_Allocator_Expression): Take into account VM_Target
7791 (Expand_Attribute, case 'Identity): Handle properly the case where
7792 the prefix is a task interface.
7793 New pragma Fast_Math
7795 * par.adb (Next_Token_Is): New function
7796 (P_Pragma): Add Skipping parameter
7797 (U_Left_Paren): New procedure
7798 (U_Right_Paren): New procedure
7799 New pragma Fast_Math
7801 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7803 New pragma Fast_Math
7805 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7806 Implemented_By_Entry.
7807 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7808 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7809 items, since it can apply to more than one overloadable entity. Set
7810 new flag Has_Pragma_Inline_Always for Inline_Always case.
7811 (Analyze_Pragma, case Complex_Representation): Improve error message.
7812 (Analyze_Pragma, case Assert): When assertions are disabled build the
7813 rewritten code with Sloc of expression rather than pragma, so new
7814 warning about failing is not deleted.
7815 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7816 protected types and update error message to reflect that. Test whether
7817 the protected type is allowed for the pragma (an error is issued if the
7818 type has any entries, or components that do not have preelaborable
7820 New pragma Fast_Math
7821 (Analyze_Pragma, case No_Return): Handle generic instance
7823 * snames.h, snames.ads, snames.adb:
7824 Add new predefined name for interface primitive _Disp_Requeue.
7825 New pragma Fast_Math
7827 * a-tags.ads, a-tags.adb: New calling sequence for
7828 String_To_Wide_[Wide_]String
7829 (Secondary_Tag): New subprogram.
7831 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7833 New calling sequence for String_To_Wide_[Wide_]String
7834 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7835 the use of the secondary stack for image routines.
7837 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7838 calling sequence for String_To_Wide_[Wide_]String
7840 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7842 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7843 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7845 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7846 (P_Formal_Part): Use Skipping parameter in P_Pragma call
7847 to improve error recovery
7849 * par-util.adb (Next_Token_Is): New function
7850 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7852 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7853 semicolon if missing
7854 (P_Pragma): Implement new Skipping parameter
7855 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7856 Fix location of flag for unrecognized pragma message
7858 * par-tchk.adb (U_Left_Paren): New procedure
7859 (U_Right_Paren): New procedure
7861 2007-12-13 Geert Bosch <bosch@adacore.com>
7864 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7865 the second or later Scaled_Divide would omit leading zeroes,
7866 resulting in too few digits produced and a Layout_Error as result.
7867 (Put): Initialize Pos.
7869 2007-12-13 Robert Dewar <dewar@adacore.com>
7871 atree.ads, atree.adb (Flag231..Flag247): New functions
7872 (Set_Flag231..Set_Flag247): New procedures
7873 (Basic_Set_Convention): Rename Set_Convention to be
7874 Basic_Set_Convention
7875 (Nkind_In): New functions
7876 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7878 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7880 of obsolete function Is_Always_Inlined
7881 (Register_Predefined_DT_Entry): Initialize slots of the second
7882 secondary dispatch table.
7883 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7884 (Expand_N_Function_Call): Remove special provision for stack checking.
7886 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7887 Include _Disp_Requeue in the list of predefined operations.
7888 (Find_Interface_ADT): Modified to fulfill the new specification.
7889 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7891 * par-ch4.adb, nlists.ads, nlists.adb:
7892 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7894 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7895 Fix location of flag for unrecognized pragma message
7897 * sem_ch7.adb: Use Nkind_In
7899 2007-12-13 Vincent Celier <celier@adacore.com>
7902 Indicate what flags are used by the Project Manager, gprbuild and
7904 (Opt.Follow_Links_For_Dirs): New flag
7905 (Warn_On_Assertion_Failure): New flag
7906 (Wide_Character_Encoding_Method_Specified): New flag
7907 (Suppress_All_Inlining): New switch set by -fno-inline
7908 (Real_VMS_Target): New flag
7909 New pragma Fast_Math
7911 2007-12-13 Robert Dewar <dewar@adacore.com>
7913 * back_end.adb: Recognize -fno-inline
7915 2007-12-13 Robert Dewar <dewar@adacore.com>
7917 * checks.adb: Fix optimization problem with short-circuited form
7919 2007-12-13 Bob Duff <duff@adacore.com>
7921 * clean.adb (Usage): Add line for -aP
7922 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7923 with a parameter "procedure Usage", instead of passing a pointer to a
7924 procedure. This is to eliminate trampolines (since the Usage procedure
7925 is often nested in a main procedure, and it would be inconvenient to
7928 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7929 to be generic, with a parameter "procedure Callback (...)", instead of
7930 passing a pointer to a procedure. This is to eliminate trampolines
7931 (since the Callback procedure is usually nested).
7933 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7934 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7935 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7937 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7938 Use the generic Heap_Sort_G instead of Heap_Sort_A.
7940 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7942 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7943 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7944 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7945 (Renamed_In_Spec): New flag
7946 (Has_Pragma_Inline_Always): New flag
7947 Add missing doc for pragma Obsolescent_Warning
7948 Add missing doc for 17 additional unused flags (230-247)
7949 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7950 Alphabetize with clauses.
7951 Separate Is_Thunk and Has_Thunks flags
7952 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7953 (Related_Interface): Renamed to Related_Type.
7954 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7955 (Set_Is_Flag): Restrict the assertion.
7957 2007-12-13 Vincent Celier <celier@adacore.com>
7959 * errout.adb (Output_Source_Line): Do not keep a trailing space after
7960 the source line number if the source line is empty.
7962 2007-12-13 Geert Bosch <bosch@adacore.com>
7964 * eval_fat.adb (Decompose_Int): Handle argument of zero.
7965 (Compose): Remove special casing of zero.
7966 (Exponent): Likewise.
7967 (Fraction): Likewise.
7968 (Machine): Likewise.
7969 (Decompose): Update comment.
7971 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7973 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7974 limited ancestor part, initialize controllers of enclosing record
7975 before expanding ancestor aggregate.
7976 (Gen_Assign): If a component of the aggregate is box-initialized, add
7977 code to call Initialize if the component is controlled, and explicit
7978 assignment of null if the component is an access type.
7980 Handle properly aggregates for limited types that appear in object
7981 declarations when the aggregate contains controlled values such as
7983 When expanding limited aggregates into individual components, do not
7984 call Adjust on controlled components that are limited.
7986 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7988 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7990 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7992 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7993 predefined primitive _Disp_Requeue.
7994 (Make_Predefined_Primitive_Specs): Create the spec for predefined
7995 primitive _Disp_Requeue.
7996 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7997 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7998 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7999 an interface type. In case of limited interfaces we now declare all the
8000 predefined primitives associated with synchronized interfaces as
8002 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8004 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8005 tagged type is an interface type and there is no user-defined equality
8007 Add also bodies of predefined primitives associated with synchronized
8009 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8010 interface types because they are now defined abstract.
8011 Add missing documentation.
8012 (Expand_Record_Controller): Update occurrence of Related_Interface
8014 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8015 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8016 class wide interface object declaration.
8017 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8018 if the access type already has one.
8019 (Expand_N_Object_Declaration): Defend against attempt to validity check
8020 generic types. Noticed for -gnatVcf specified with previous errors.
8022 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8024 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8025 Expand_Allocator_Expression): Take into account VM_Target
8027 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8028 secondary stack when VM_Target /= No_VM
8030 2007-12-13 Javier Miranda <miranda@adacore.com>
8031 Ed Schonberg <schonberg@adacore.com>
8033 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8034 Is_Complation_Unit by Is_Library_Level_Entity in the code
8035 that decides if the static dispatch tables need to be built.
8036 (Wrap_Transient_Declaration): Do not generate a finalization call if
8037 this is a renaming declaration and the renamed object is a component
8038 of a controlled type.
8040 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8042 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8043 In the case where the renamed subprogram is a dereference, call
8044 Force_Evaluation on the prefix.
8046 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8047 Ed Schonberg <schonberg@adacore.com>
8049 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8050 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8051 comment reformatting.
8052 (Set_Privals): Inherit aliased flag from formal. From code reading.
8053 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8054 by copy and initialized from the actual. This includes entry parameters.
8055 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8056 and Ada 2005 models of requeue.
8057 (Null_Statements): Still connsider do-end block null if it contains
8058 Unreferenced and Warnings pragmas.
8059 (Expand_N_Accept_Statement): Do not optimize away null do end if
8060 dispatching policy is other than defaulted.
8061 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8062 dispatching call, manually analyze the delay statement.
8063 (Find_Parameter_Type): Move subprogram to Sem_Util.
8065 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8066 Javier Miranda <miranda@adacore.com>
8068 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8069 _Disp_Requeue occupies dispatch table slot number 15. Move
8070 _Disp_Timed_Select to slot 16.
8071 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8072 generate the spec and body of _Disp_Reqeueue.
8073 (Make_DT): Build and initialize the second dispatch table.
8074 Handle initialization of RC_Offset when the parent
8075 is a private type with variable size components.
8076 (Make_Secondary_DT): Complete documentation. Add support to
8077 initialize the second dispatch table.
8078 (Make_Tags): Generate the tag of the second dispatch table.
8079 (Register_Primitive): Add support to register primitives in the
8080 second dispatch table.
8082 2007-12-13 Pascal Obry <obry@adacore.com>
8084 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8085 Windows. This signal is used by gnatmake to kill child processes for
8088 2007-12-13 Javier Miranda <miranda@adacore.com>
8090 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8091 support for generic dispatching constructor calls in which we need to
8092 locate the tag of a secondary dispatch table associated with an
8093 interface type to properly dispatch the call.
8094 (Expand_N_Attribute_Reference [case Address],
8095 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8096 handling of VM targets.
8098 2007-12-13 Robert Dewar <dewar@adacore.com>
8099 Ed Schonberg <schonberg@adacore.com>
8101 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8104 * ug_words: Add entries for -gnatw.a -gnatw.A
8106 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8107 literal is a subtype with non-static constraints, use the base type of
8108 the context as the base of the string subtype, to prevent type
8110 (Resolve_Actuals): If the actual is an entity name, generate a
8111 reference before the actual is resolved and expanded, to prevent
8112 spurious warnings on formals of enclosing protected operations.
8113 (Analyze_Overloaded_Selected_Component): If type of prefix if
8114 class-wide, use visible components of base type.
8115 (Resolve_Selected_Component): Ditto.
8116 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8117 evaluating to False, and issue warning message.
8119 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8121 2007-12-13 Emmanuel Briot <briot@adacore.com>
8123 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8126 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8128 (Month_Name_To_Number): New subprogram
8130 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8131 letter to upper-case.
8133 2007-12-13 Robert Dewar <dewar@adacore.com>
8134 Ed Schonberg <schonberg@adacore.com>
8136 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8138 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8139 context is a limited view, use non-limited view when available. If the
8140 non-limited view is an unconstrained array, this enforces consistency
8141 requirements in 3.10.2 (27).
8142 (Layout_Type): For an access type whose designated type is a limited
8143 view, examine its declaration to determine if it is an unconstrained
8144 array, and size the access type accordingly.
8145 (Layout_Type): Do not force 32-bits for convention c subprogram
8146 pointers in -gnatdm mode, only if real vms target.
8148 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8149 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8150 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8151 violations of the No_Implicit_Dynamic_Code restriction.
8152 (Resolve_Attribute, case 'Access): If designated type of context is a
8153 limited view, use non-limited view when available. If the non-limited
8154 view is an unconstrained array, this enforces consistency requirements
8156 (Layout_Type): For an access type whose designated type is a limited
8157 view, examine its declaration to determine if it is an unconstrained
8158 array, and size the access type accordingly.
8160 2007-12-13 Vincent Celier <celier@adacore.com>
8162 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8163 object directory of main project does not exist.
8164 On VMS, correctly set then environment variable for the source
8167 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8169 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8170 set to True this procedure will create the value of type REG_EXPAND_SZ.
8171 It was only possible to create REG_SZ values before.
8173 2007-12-13 Robert Dewar <dewar@adacore.com>
8175 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8176 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8177 namet-sp.adb, namet-sp.ads: New files.
8179 * g-speche.adb: Use generic routine in g-spchge
8181 * s-wchcnv.ads, s-wchcnv.adb:
8182 Minor code cleanup (make formal type consistent with spec)
8184 * namet.adb: Update comments.
8186 * par-endh.adb (Evaluate_End_Entry): Use new
8187 Namet.Sp.Is_Bad_Spelling_Of function
8189 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8191 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8192 ancestor is an access type initialized with a box, set its type
8193 explicitly, for use in subsequent expansion.
8194 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8197 2007-12-13 Robert Dewar <dewar@adacore.com>
8199 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8202 2007-12-13 Robert Dewar <dewar@adacore.com>
8204 * inline.adb (Back_End_Cannot_Inline): Use new flag
8205 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8207 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8208 Has_Pragma_Inline_Always instead.
8209 of obsolete function Is_Always_Inlined
8210 (Build_Body_To_Inline): Same change
8211 (Cannot_Inline): Same change
8212 Do not give warning on exception raise in No_Return function
8214 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8215 component has two inconsistent component clauses in the same record
8216 representation clause, favor the message that complains about
8217 duplication rather than inconsistency.
8219 (Record_Representation_Clause): Do not warn on missing component
8220 clauses for inherited components of a type extension.
8221 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8222 an overloadable item if it is a pragma that can apply to multiple
8223 overloadable entities (e.g. Inline) because a pragma cannot be on
8224 more than one chain at a time.
8225 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8226 conversion where one of the operands is Ada.Calendar.Time.
8227 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8228 For now, ignore Component_Size clause on VM targets, as done for
8231 2007-12-13 Emmanuel Briot <briot@adacore.com>
8232 Vincent Celier <celier@adacore.com>
8234 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8236 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8238 (Hash): Move instantiation of System.HTable.Hash from spec to body
8239 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8240 systems, since we do not need to recompute the Name_Id for the canonical
8242 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8243 as a parameter. This parameter is in fact always "ada" in all calls, and
8244 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8245 while loading a project with 40000 files
8247 * prj-attr.adb: Fix name of attribute Dependency_Driver
8248 Change the kind of indexing for attribute Root
8250 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8251 variables already declared, in case constructions.
8253 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8254 Current_Object_Path_File to No_Path.
8256 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8257 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8259 * prj-makr.adb: new parameter Current_Dir
8261 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8262 Ada sources when language is not Ada.
8263 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8264 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8265 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8266 (Locate_Directory): Always resolve links when computing Canonical_Path
8267 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8268 in Source_Files before checking for the presence of a directory
8270 Optimize calls to Name_Find when on case sensitive systems.
8271 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8273 (Prj.Nmsc.Check): new parameter Current_Dir
8274 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8275 cannot be empty and the spec suffix cannot be the same as the body or
8277 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8278 subunit), always consider the longest suffix.
8279 (Check_Configuration): Do not issue an error if there is no compiler
8280 for a language. Just issue a warning and ignore the sources for the
8282 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8284 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8285 (Unit_Exceptions): New hash table
8286 (Check_Naming_Schemes): Check if a file that could be a unit because of
8287 the naming scheme is not in fact a source because there is an exception
8289 (Look_For_Sources): Put the unit exceptions in hash table
8291 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8292 Other_Part to avoid exception when code is compiled with validity
8294 (Get_Sources_From_File): Check that there is no directory information
8296 (Look_For_Sources): Check that there is no directory information in the
8297 list of file names in Source_Files.
8298 (Look_For_Sources): In multi-language mode, do not allow exception file
8299 names that are excluded.
8300 (Excluded_Sources_Htable): New hash table
8301 (Search_Directories.Check_File): New procedure to simplify
8303 (Search_Directories): Do not consider excluded sources
8304 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8306 (Get_Exceptions): Set component Lang_Kind of Source_Data
8307 (Get_Unit_Exceptions): Ditto
8308 (Search_Directories): Ditto
8310 * prj-pars.adb: new parameter Current_Dir
8312 * prj-part.ads, prj-part.adb:
8313 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8314 (Opt.Follow_Links_For_Dirs): New flag
8315 (Project_Path_Name_Of): Cache information returned by this routine as
8316 Locate_Regular_File is a costly routine. The code to output a log
8317 information and the effective call to Locate_Regular_File is now
8318 factorized into a routine (code clean-up).
8319 (Parse, Parse_Single_Project): new parameter Current_Dir
8320 When main project file cannot be found, indicate in the error
8321 message the project path that was used to do the search.
8323 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8324 (Prj.Proc.Process*): new parameter Current_Dir
8326 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8328 2007-12-13 Bob Duff <duff@adacore.com>
8330 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8331 procedure to be called from the back end to check the
8332 No_Implicit_Dynamic_Code restriction.
8334 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8336 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8337 Fixes another case where RTE_Available_Call was ignored instead of being
8341 * rtsfind.ads: Add new entries.
8343 2007-12-13 Robert Dewar <dewar@adacore.com>
8345 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8346 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8348 * scn.adb: Implement BOM recognition
8350 2007-12-13 Thomas Quinot <quinot@adacore.com>
8351 Ed Schonberg <schonberg@adacore.com>
8353 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8354 subprogram body that acts as its own spec may not have a non-private
8355 WITH clause on a private sibling.
8356 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8357 child unit is a renaming, create an implicit with_clause on that
8358 parent, and not on the unit it renames, to prevent visibility errors
8359 in the current unit.
8361 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8363 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8364 renaming declaration, use the Slocs of the formal parameters from the
8365 declaration of the formal subprogram when creating the formal parameter
8366 entities in the renaming declaration.
8367 (Analyze_Formal_Type_Declaration): Change the placement of the error
8368 message concerning illegal known discriminants. It is now posted on the
8369 type rather than on the first discriminant. This change ensures early
8371 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8372 the package body that contains the instance, do not generate an
8373 out-of-place freeze node for the enclosing package.
8374 (Collect_Previous_Instantiations): Ignore internal instantiations
8375 generated for formal packages.
8376 (Validate_Derived_Type_Instance): Add a check that when a formal
8377 derived type is Known_To_Have_Preelab_Init then the actual type must
8378 have preelaborable initialization, and issue an error when this
8379 condition is violated.
8381 2007-12-13 Robert Dewar <dewar@adacore.com>
8383 * s-imenne.adb, s-imenne.ads: New files.
8385 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8386 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8387 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8388 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8389 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8392 2007-12-13 Javier Miranda <miranda@adacore.com>
8393 Ed Schonberg <schonberg@adacore.com>
8395 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8396 generation of spurious error if parent is an interface type; caused
8397 because predefined primitive bodies will be generated later by
8399 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8401 (Derive_Subprograms): Handle derivations of predefined primitives
8402 after all the user-defined primitives to ensure that they are
8403 found in proper order in instantiations.
8404 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8405 of Related_Interface to Related_Type.
8406 (Record_Type_Declaration): Minor reordering of calls to decorate the
8407 Tag component because the entity must have set its Ekind attribute
8408 before setting its Is_Tag attribute.
8409 (Analyze_Subtype_Declaration): In the case of subtypes with
8410 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8412 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8413 Ed Schonberg <schonberg@adacore.com>
8415 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8416 statement to the list of contexts where a selected component with a
8417 concurrent tagged type prefix should yield a primitive operation.
8418 (Find_Primitive_Operation): Handle case of class-wide types.
8419 (Analyze_Overloaded_Selected_Component): If type of prefix is
8420 class-wide, use visible components of base type.
8421 (Resolve_Selected_Component): Ditto.
8422 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8423 formal of a generic subprogram. find candidate interpretations by
8424 scanning the list of generic formal declarations.:
8425 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8426 type from a limited_with_clause, and the full view is available, use it
8427 for subsequent semantic checks.
8428 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8429 (Find_Primitive_Operation): New function.
8430 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8431 only once if several interpretations of the prefix yield an access type.
8432 (Try_Object_Operation): Code and comment cleanup.
8433 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8434 code reformatting. When the type of the prefix is tagged concurrent, a
8435 correct interpretation might be available in the primitive and
8436 class-wide operations of the type.
8438 2007-12-13 Robert Dewar <dewar@adacore.com>
8439 Ed Schonberg <schonberg@adacore.com>
8441 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8442 renaming entry as subprogram using rename-as-body if subprogram spec
8444 (Use_One_Type): The clause is legal on an access type whose designated
8445 type has a limited view.
8446 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8447 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8448 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8449 operation denoted by a selected component.
8450 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8451 it can be an expression, possibly overloaded, that returns a task or
8454 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8455 Gary Dismukes <dismukes@adacore.com>
8457 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8458 requeue statement is dispatching. Do not emit an error when the name is
8459 not an entry and the context is a dispatching select. Add code to
8460 perform subtype conformance between the formals of the current entry
8461 and those of the target interface primitive.
8462 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8463 Timed_Entry_Call): Analyze the triggering statement as the first step of
8464 the processing. If this is a dispatching select, postpone the analysis
8465 of all select statements until the Expander transforms the select. This
8466 approach avoids generating duplicate identifiers after the Expander has
8467 replicated some of the select statements. In case the Expander is
8468 disabled, perform regular analysis.
8469 (Check_Triggering_Statement): New routine.
8470 (Analyze_Requeue): Exclude any interpretations that are not entries when
8471 checking overloaded names in a requeue. Also test type conformance for
8472 matching interpretations rather than requiring subtype conformance at
8473 that point to conform with the RM's resolution rule for requeues.
8475 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8477 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8478 inherited operation is a defaulted tag-indeterminate call, and there is
8479 a statically tagged actual, use the static tag as a controlling actual
8480 for the defaulted actual.
8482 2007-12-13 Geert Bosch <bosch@adacore.com>
8484 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8485 context, so do not call Check_Non_Static_Context.
8487 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8489 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8490 whether formal E is an entity which may have parameters.
8492 2007-12-13 Bob Duff <duff@adacore.com>
8493 Javier Miranda <miranda@adacore.com>
8494 Robert Dewar <dewar@adacore.com>
8496 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8497 (Set_Convention): New procedure to set the Convention flag, and in
8498 addition make sure the Favor_Top_Level flag is kept in sync (all
8499 foreign-language conventions require Favor_Top_Level = True).
8500 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8502 (Collect_Interfaces_Info): Minor update to handle the two secondary
8503 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8504 (Generate_Parent_Ref): Add parameter to specify entity to check
8505 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8506 initialize a component of a type with preelaborable initialization.
8507 This includes the case of a discriminal used in such a context.
8508 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8509 latest Ada 2005 rules about renaming and 'Access of
8510 discriminant-dependent components.
8511 (Check_Nested_Access): Add handling when there are no enclosing
8512 subprograms (e.g. case of a package body).
8513 (Find_Parameter_Type): Factor routine from several other compiler files.
8514 Remove routine from Find_Overridden_Synchronized_Primitive.
8516 2007-12-13 Thomas Quinot <quinot@adacore.com>
8518 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8519 an invalid access to an uninitialized slot in the
8520 Source_File_Index_Table.
8522 2007-12-13 Thomas Quinot <quinot@adacore.com>
8524 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8526 2007-12-13 Bob Duff <duff@adacore.com>
8528 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8529 access-to-subprogram types in this package.
8531 2007-12-13 Olivier Hainque <hainque@adacore.com>
8533 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8534 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8535 Stack_Overlay_Address and document that we are using an internal
8537 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8538 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8539 consistently throughout the various implementation pieces.
8541 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8542 overlay we are using to fill the stack area with patterns.
8543 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8544 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8545 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8547 2007-12-13 Robert Dewar <dewar@adacore.com>
8549 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8551 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8554 (Create_Task): Take into account tasks created by foreign threads.
8555 Code clean up: use constants instead of hard coded values.
8557 2007-12-13 Robert Dewar <dewar@adacore.com>
8559 * styleg.adb (Check_Comment): More liberal rules for comment placement
8561 2007-12-13 Olivier Hainque <hainque@adacore.com>
8563 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8564 of Procedure Value instead of Frame Pointer as the invocation
8565 identifier associated with the instruction pointer in each traceback
8568 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8569 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8570 Pointer as the invocation identifier passed to tbk$symbolize.
8572 * s-traent-vms.ads, s-traent-vms.adb
8573 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8574 Procedure Value instead of Frame Pointer as the invocation identifier
8575 passed to tbk$symbolize.
8577 2007-12-13 Robert Dewar <dewar@adacore.com>
8579 * tbuild.ads, tbuild.adb:
8580 Fix location of flag for unrecognized pragma message
8582 2007-12-13 Robert Dewar <dewar@adacore.com>
8584 * treepr.ads, treepr.adb: (pl): implement use of positive value
8587 2007-12-13 Robert Dewar <dewar@adacore.com>
8589 * xeinfo.adb: Remove warnings
8590 * xnmake.adb: Remove warnings
8591 * xsinfo.adb: Remove warnings
8592 * xtreeprs.adb: Remove warnings
8593 * xsnames.adb: Remove warnings
8595 * a-ngcoar.adb: Fix typo.
8596 * s-interr.adb: Minor reformatting
8597 * env.c: Minor reformatting.
8598 * g-bytswa.adb: Minor reformatting.
8599 * g-rannum.ads: Minor documentation improvements
8600 * s-tasinf-mingw.adb: Minor header fix
8601 * a-clrefi.adb: Minor reformatting
8602 * g-sttsne.ads: Minor documentation improvement
8603 * g-sttsne-locking.ads: Minor documentation improvement
8604 * g-soliop-solaris.ads: Minor documentation improvement
8605 * g-soliop-mingw.ads: Minor documentation improvement
8606 * g-soliop.ads: Minor documentation improvement
8607 * exp_aggr.ads: Minor reformatting
8608 * debug.adb: Add documentation for the gprbuild debug flags
8609 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8610 * exp_pakd.adb: Minor reformatting
8612 * g-altive.ads, g-alleve.adb: Remove assertions.
8613 Add comment about minor differences between targets regarding
8614 floating-point operations.
8616 * g-thread.adb: Remove pragma unreferenced.
8617 * lib.ads: Minor reformatting
8618 * par-ch9.adb: Minor reformatting of error messages
8619 * sem_case.adb: Minor reformatting
8620 * s-fileio.adb: Minor reformattinng
8621 * s-vmexta.ads: Minor typo
8623 Take into account 'Success' value as per new GNAT warning.
8625 2007-12-13 Vincent Celier <celier@adacore.com>
8627 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8630 2007-12-13 Robert Dewar <dewar@adacore.com>
8631 Bob Duff <duff@adacore.com>
8633 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8634 Document that suffixes may be terminations of each others
8635 Add doc for -gnatw.a and -gnatw.A
8636 Document gnatbind -Wx switch
8637 Document BOM recognition
8638 Document pragma Implemented_By_Entry.
8641 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8642 Add doc for pragma Unreferenced suppressing no entities referenced msg
8643 Add documentation of GNAT.Directory_Operations.Iteration
8644 Add documentation of GNAT.Random_Numbers
8645 Add documentation for pragma Shared.
8646 Correct documentation for Bit_Order
8647 Add documentation for the Pool_Address attribute.
8648 Fix and improve documentation of pragma machine_attribute.
8649 New pragma Fast_Math
8650 Document BOM recognition
8652 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8653 Add /Wide_Character_Encoding for binder
8654 Add qualifier for the new gnatpp option --no-separate-loop-then
8656 2007-12-13 Matthew Heaney <heaney@adacore.com>
8658 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8659 which generic formal operations are called for each operation.
8661 2007-12-13 Olivier Hainque <hainque@adacore.com>
8663 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8664 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8666 2007-12-13 Emmanuel Briot <briot@adacore.com>
8668 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8669 Reference_Dir unless we actually need it.
8671 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8672 Tristan Gingold <gingold@adacore.com>
8674 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8677 a-calend-vms.adb: Remove pragma warning off and add pragma
8680 2007-12-13 Robert Dewar <dewar@adacore.com>
8682 * impunit.adb: Add entries for missing units
8684 * Makefile.rtl: Add new run-time units.
8686 * Make-lang.in: Update dependencies.
8688 2007-12-13 Bob Duff <duff@adacore.com>
8690 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8691 types, set Can_Use_Internal_Rep appropriately, based on
8692 Always_Compatible_Rep_On_Target.
8694 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8695 Arnaud Charlet <charlet@adacore.com>
8697 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8698 it to the front end and setting the aamp_target environment variable
8699 to the switch's argument to ensure that gnaampbind and gnaamplink will
8700 take the specified library into account.
8701 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8702 target, since the CIL compiler supports an "object" file (.il files).
8704 2007-12-13 Vincent Celier <celier@adacore.com>
8706 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8707 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8709 2007-12-13 Geert Bosch <bosch@adacore.com>
8711 * s-parame-vxworks.adb:
8712 Update comments to reflect usage of this package by Nucleus.
8714 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8716 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8717 spec would break code.
8719 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8721 * system-vxworks-alpha.ads: Removed.
8723 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8725 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8727 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8730 * sem_ch3.adb (Designates_T): New function.
8731 (Mentions_T): Factor reusable part of the logic into Designates_T.
8732 Consider non-access parameters and access and non-access result.
8733 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8734 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8736 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8738 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8741 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8742 the new implementation of target-specific calls.
8744 2007-12-07 Olivier Hainque <hainque@adacore.com>
8746 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8747 the designated full view, only follow a second level Full_View link
8748 for Non_Limited_Views of from_limited_with references.
8750 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8753 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8754 to be initialized with an access to constant object.
8756 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8757 when an access to constant is used to initialize an access
8761 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8763 2007-12-07 Olivier Hainque <hainque@adacore.com>
8766 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8767 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8768 this is from an alignment clause on the GNAT entity.
8769 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8770 to distinguish the case where we set it from the type's alignment.
8771 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8772 whether this alignment was set from an explicit alignment clause.
8774 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8776 * decl.c (make_packable_type): Revert last change.
8777 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8778 * utils.c (finish_record_type): Retrieve the real name of the type.
8780 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
8782 * trans.c (lvalue_required_p): Take base node directly instead
8783 of its parent. Rename second parameter to 'gnu_type'.
8784 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8785 <N_Slice>: Likewise.
8786 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8787 Adjust calls to lvalue_required_p.
8789 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
8792 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8793 parameters of an entry call.
8795 2007-12-03 Robert Dewar <dewar@adacore.com>
8796 Samuel Tardieu <sam@rfc1149.net>
8799 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8800 of variables declared in a library-level package.
8802 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
8804 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8805 of Empty_String'Unchecked_Access.
8807 * Makefile.in: Add support for sh4-linux.
8809 * system-linux-sh4.ads: New file.
8811 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
8814 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8815 and its argument must not be free()ed.
8817 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
8819 * decl.c (make_packable_type): Retrieve the real name of the type.
8820 (maybe_pad_type): Simplify similar code.
8822 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
8825 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8826 than an identifier is used after "case" in a variant_part.
8829 * par-ch4.adb (Is_Parameterless_Attribute): New map.
8830 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8831 attribute name or not depending on the new map.
8833 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8834 returning a string or a type will not be called with improper
8837 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8839 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8842 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8843 Signal an error when attribute argument is a fixed-point value of
8847 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8848 a derived ordinary fixed point type.
8850 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8851 RM_Size when a Small clause is found.
8853 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
8856 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8857 Pass 'false' for the new allocate_struct_function parameter.
8858 * utils.c (build_function_stub): Likewise.
8860 2007-11-25 Richard Guenther <rguenther@suse.de>
8862 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8863 (gnat_poplevel): Likewise.
8865 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
8867 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8868 strict alignment, no alignment clause and a known static size, cap
8869 the type alignment to the greatest power of 2 factor of the size.
8870 (gnat_to_gnu_field): If the field has a component clause, is aliased
8871 or of a type with strict alignment, require that its size be equal to
8873 (validate_size): Use the type size as the minimum size for a type with
8876 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
8878 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8879 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8880 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8881 Use 'Access instead of 'Unchecked_Access in second and third
8882 arguments of pthread_sigmask.
8884 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
8886 * decl.c (ceil_alignment): New function.
8887 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8888 (make_packable_type): Likewise.
8890 2007-11-22 Olivier Hainque <hainque@adacore.com>
8892 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8893 to fit in 80 columns.
8895 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
8897 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8898 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8900 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
8903 * misc.c (gnat_adjust_rli): Delete.
8904 (gnat_init): Do not initialize the translation code here.
8905 Do not call set_lang_adjust_rli.
8906 * trans.c (init_code_table): Make static.
8907 (gnat_init_stmt_group): Delete.
8908 (gigi): Initialize the translation code entirely here.
8909 Emit debug info for the common types here instead of...
8910 * utils.c (gnat_init_decl_processing): ...here.
8911 * gigi.h (init_code_table): Delete.
8912 (gnat_init_stmt_group): Likewise.
8914 2007-11-16 Olivier Hainque <hainque@adacore.com>
8916 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8917 retrieving an allocator return value from a super-aligned address from
8919 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8920 expect a super-aligned address for a fat or thin pointer.
8922 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
8924 * trans.c (call_to_gnu): Always set the source location on the call
8925 expression. If the function returns-by-target, also set it on the
8928 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
8930 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8931 sections of non-supported Interix target.
8933 * s-osinte-interix.ads: Removed.
8935 * i-cstrin.ads (chars_ptr): Make it a C convention type.
8937 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
8939 * a-tasatt.adb: Add a comment at the beginning of the package
8940 explaining why in general 'Unchecked_Access must be used instead
8943 * sem_prag.adb (Process_Convention): Move the test for the
8944 entity on which the Convention pragma applies down to also
8945 forbid pragma Convention on enumeration literals reached
8948 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
8950 * a-tasatt.adb: Revert previous change for this file as it will
8951 generate an error when this package is instantiated from a
8954 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
8956 * a-tasatt.adb: Type Wrapper should be declared in comment instead
8957 of already declared type Node_Access.
8958 Use 'Access instead of 'Unchecked_Access when applicable. Local
8959 lifetime is the one of the package.
8960 (Set_Value): W is allocated on the heap.
8962 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8964 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8966 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8969 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8971 (elaboration code): Timer_Queue lifetime is the one of the
8974 * tracebak.c (i386 alternative): Remove useless comparaison
8975 which is always false; LOWEST_ADDRESS is 0 and is never greater
8976 than an unsigned integer.
8978 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8979 embedded check for "Ada_Version >= Ada_05".
8981 2007-11-07 Olivier Hainque <hainque@adacore.com>
8983 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8984 craft and expand comment.
8986 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
8988 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8990 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
8992 * misc.c (gnat_handle_option): Replace call to abort with
8993 call to gcc_unreachable.
8994 (gnat_init): Likewise.
8995 (gnat_expand_expr): Likewise.
8996 (fp_prec_to_size): Likewise.
8997 (fp_size_to_prec): Likewise.
8999 2007-10-23 Richard Guenther <rguenther@suse.de>
9002 * tracebak.c: #undef abort after including system.h.
9004 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9006 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9007 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9009 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9011 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9013 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9014 Set the protection status of the guard page based on the value of On.
9016 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9018 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9019 (Exit_Task): Pass False to Hide_Yellow_Zone.
9021 2007-10-15 Robert Dewar <dewar@adacore.com>
9023 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9024 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9025 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9026 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9027 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9028 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9029 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9030 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9031 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9032 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9033 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9034 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9035 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9036 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9037 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9038 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9040 Add Unreferenced and Warnings (Off) pragmas for cases of
9041 variables modified calls where they are IN OUT or OUT parameters and
9042 the resulting values are not subsequently referenced. In a few cases,
9043 we also remove redundant code found by the new warnings.
9045 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9046 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9047 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9048 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9049 warning controlled by -gnatw.o that warns on cases of out parameter
9050 values being ignored.
9052 2007-10-15 Geert Bosch <bosch@adacore.com>
9054 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9056 * expect.c: Initial port to arm-mentor-nucleus.
9057 Use kill for __gnat_kill() on VMS.
9059 2007-10-15 Emmanuel Briot <briot@adacore.com>
9061 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9063 (Xref_Record): Change type for Line, since in the case of a reference to
9064 a predefined entity (as happens for array index types), the line is set
9066 Add support for parsing multiple array index types info, or
9067 multiple inherited interfaces info. This information cannot be stored
9068 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9069 and is therefore stored in the list of references instead. It has a
9070 special treatement later on in tools that use this information.
9072 2007-10-15 Tristan Gingold <gingold@adacore.com>
9074 * debug.adb: Document use of -gnatd.a and -gnatd.I
9076 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9078 2007-10-15 Javier Miranda <miranda@adacore.com>
9080 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9081 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9082 care of access to class-wide interface types plus removal of bizarre
9083 conversion of tagged object to access type (reported by Gary
9084 Dismukes). After this patch there is no need to perform any
9085 additional management on these nodes in Expand_Interface_Actuals.
9087 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9088 that handles use of 'Access and 'Unchecked_Access applied to
9089 actuals covering interface types. Such code is now
9090 centralized in Expand_N_Attribute_Reference.
9092 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9094 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9095 of tagged types whose ultimate ancestor is a CPP type.
9096 (Freeze_Array_Type): For a packed array type, generate an initialization
9097 procedure if the type is public, to handle properly a client that
9098 specifies Normalize_Scalars.
9100 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9102 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9103 inside a generic body, retrieve the full view of the entry family
9104 discrete subtype if available.
9106 2007-10-15 Thomas Quinot <quinot@adacore.com>
9108 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9109 attempt to generate stubs for hidden primitive operations.
9111 2007-10-15 Vincent Celier <celier@adacore.com>
9113 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9114 returning None, used when there is no platform specific body for
9117 2007-10-15 Bob Duff <duff@adacore.com>
9119 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9120 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9121 the generic Heap_Sort_G, in order to avoid trampolines.
9123 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9124 Jose Ruiz <ruiz@adacore.com>
9126 * vx_stack_info.c: New file.
9128 * i-forbla-unimplemented.ads: New file.
9130 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9131 for unsupported configurations; use it on VMS targets instead of the
9133 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9134 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9135 used by VxWorks targets to have access to task-specific data and be
9136 able to extract the stack boundaries for stack checking.
9137 Use system-vms-ia64.ads on ivms.
9139 * Make-lang.in: Update dependencies.
9141 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9144 2007-10-15 Vincent Celier <celier@adacore.com>
9146 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9148 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9150 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9152 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9153 the source is unknown.
9155 * prj-ext.adb: Spelling error fix
9157 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9158 95 reserved word in its name.
9159 (Process_Project_Level_Array_Attributes): Process new attribute
9160 Runtime_Library_Dir.
9162 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9163 config project against the user project names.
9165 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9166 not include a dot are always case insensitive.
9167 (Process_Declarative_Items): Ditto
9168 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9171 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9172 True, compare both indexes in lower case.
9174 2007-10-15 Robert Dewar <dewar@adacore.com>
9176 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9178 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9180 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9181 association for an access component, add an association with null as
9182 the expression. Remove testing for array subtypes and the setting in
9183 that case of Ctyp to the array component type, which prevented proper
9184 inclusion of an association for null-initialized arrays. Collapse
9185 condition that tests for array subtypes into just a test of
9186 Is_Partially_Initialized_Type (which already covers arrays anyway).
9188 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9190 * sem_ch12.adb: Minor code reformatting.
9191 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9192 find the parent package which may have been hidden by local
9195 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9197 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9198 flag of derived concurrent types, taking into account the flag setting
9199 on the parent subtype and any new set of discriminants.
9201 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9203 * sem_ch4.adb: Minor code and comment reformatting.
9204 (Analyze_Allocator): When the designated type of an unconstrained
9205 allocator is a record with unknown discriminants or an array with
9206 unknown range bounds, emit a detailed error message depending on the
9207 compilation mode and whether the designated type is limited.
9209 2007-10-15 Tristan Gingold <gingold@adacore.com>
9211 * system-vms-ia64.ads: New file.
9213 * system-vms_64.ads: Minor comment fix.
9215 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9217 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9218 body generated for a function with a controlling result that is a null
9219 extension, discard the generated body in favor of the current explicit
9222 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9224 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9225 examining its original form, to handle properly operator calls that
9226 have been rewritten.
9228 2007-10-15 Olivier Hainque <hainque@adacore.com>
9230 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9231 instead of a procedure value in each traceback entry.
9233 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9234 instead of procedure value to TBK$SYMBOLIZE.
9236 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9238 (TB_Entry_For): Account for the PV/FP renaming.
9240 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9242 (Null_TB_Entry): Account for change of component name.
9243 (PV_For): Rename as FP_For.
9245 2007-10-15 Tristan Gingold <gingold@adacore.com>
9247 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9248 This optimize assignment to over-aligned record.
9250 2007-10-15 Emmanuel Briot <briot@adacore.com>
9252 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9255 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9256 type, for dispatching calls.
9258 2007-10-15 Vincent Celier <celier@adacore.com>
9259 Robert Dewar <dewar@adacore.com>
9261 * gnat_ugn.texi: Add documentation for switches --version and --help
9262 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9263 gnatxref, gnatfind, gnatls, and gnatclean.
9265 Mention attribute Excluded_Source_Dirs
9266 Replace obsolescent attribute Locally_Removed_Files with attribute
9267 Excluded_Source_Files.
9268 Improve documentation of -u (gnatbind)
9269 Document how to do reliable stack checking for the environmental task
9272 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9273 Document attribute Excluded_Source_Files and indicate that attribute
9274 Locally_Removed_Files is obsolescent.
9276 2007-10-15 Thomas Quinot <quinot@adacore.com>
9278 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9281 Update documentation to note that OpenVMS 8.3 or later must be used
9282 to generate g-soccon-vms.ads.
9284 * atree.adb: Add ??? comment
9286 * exp_util.adb: Minor reformatting.
9287 Add ??? comment in Kill_Dead_Code.
9289 2007-10-15 Robert Dewar <dewar@adacore.com>
9291 * errout.ads: Comment clarification
9293 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9294 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9296 * lib.ads: Comment update
9298 * init.c: Minor reformatting.
9300 * sem_attr.adb: Minor formatting
9302 * osint-b.ads: Minor reformatting
9304 * sem_ch9.adb: Implement -gnatd.I switch
9306 * g-comlin.adb: (Start): Fix handling of empty command line.
9308 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9309 even when -rules follows the -cargs section.
9311 2007-10-08 Ollie Wild <aaw@google.com>
9313 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9315 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9317 (gnat_eh_runtime_type): Removed.
9318 (gnat_return_tree): New function.
9320 2007-10-08 Ben Elliston <bje@au.ibm.com>
9324 2007-08-31 Ben Elliston <bje@au.ibm.com>
9326 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9327 when compiling for powerpc64-*-linux.
9328 * system-linux-ppc64.ads: New file.
9330 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9332 Mapped location support
9333 * back_end.adb (Call_Back_End): Pass information about source
9334 files instead of units to gigi.
9335 * gigi.h (struct File_Info_Type): New.
9336 (gigi): Rename and change type of number_units parameter, change
9337 type of file_info_ptr parameter.
9338 * trans.c (number_files): New global variable.
9339 (gigi): Rename and change type of number_units parameter, change
9340 type of file_info_ptr parameter.
9341 If mapped location support is enabled, create the isomorphic mapping
9342 between source files and line maps.
9343 (Sloc_to_locus): If mapped location support is enabled, translate
9344 source location into mapped location.
9345 (annotate_with_node): Rename into set_expr_location_from_node.
9346 Call set_expr_location instead of annotate_with_locus.
9347 (Pragma_to_gnu): Adjust for above change.
9348 (Loop_Statement_to_gnu): Likewise.
9349 (call_to_gnu): Likewise.
9350 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9351 (gnat_to_gnu): Likewise.
9352 (add_stmt_with_node): Likewise.
9353 (add_cleanup): Likewise.
9354 * utils.c (gnat_init_decl_processing): Do not set input_line.
9356 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9358 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9359 (Applicable_Use): Emit a warning when a package tries to use itself.
9360 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9361 is already in use or the package where it is declared is in use or is
9362 declared in the current package.
9363 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9365 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9366 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9367 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9369 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9371 * a-calend-vms.adb, a-calend.adb:
9372 Add a section on leap seconds control along with two entities used to
9373 enable and disable leap seconds support. The array Leap_Second_Times is
9374 now constant and contains hard time values pre-generated. Remove
9375 all elaboration code used to populate the table of leap seconds.
9378 Add entity Leap_Seconds_Support to the list of global run-time variables
9379 along with a comment on its usage and values.
9380 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9381 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9382 or one (enabled) depending on the presence of binder switch "-y".
9383 (Gen_Adainit_C): Add code to generate the declaration of external int
9384 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9385 (enabled) depending on the presence of binder switch "-y".
9387 * init.c: Add __gl_leap_seconds_support to the list of global values
9388 computed by the binder.
9390 2007-09-26 Jerome Guitton <guitton@adacore.com>
9392 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9393 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9394 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9395 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9397 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9399 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9400 function which can be called by the debugger to interrupt the tasks of
9401 an Ada application asynchronously, as needed on VxWorks.
9402 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9404 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9405 renamed from Stop_All_Tasks. Update comments.
9406 (Stop_All_tasks): New function declaration.
9408 2007-09-26 Olivier Hainque <hainque@adacore.com>
9410 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9411 #include <utime.h> and #define GCC_RESOURCE_H before
9412 #include <sys/wait.h>.
9413 Add more protections in __gnat_translate_vms.
9415 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9416 #include <sys/wait.h>.
9418 2007-09-26 Thomas Quinot <quinot@adacore.com>
9419 Sergey Rybin <rybin@adacore.com>
9421 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9423 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9426 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9428 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9431 * sem_dist.ads: Minor comment fix
9433 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9435 2007-09-26 Javier Miranda <miranda@adacore.com>
9436 Eric Botcazou <ebotcazou@adacore.com>
9439 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9440 indirection added to the HT_Link component of the TSD. This is required
9441 to statically allocate the TSD.
9444 Minor reordering of the declarations in the private part. Required to
9445 add a level of indirection to the contents of the TSD component HT_Link.
9446 This is required to statically allocate the TSD.
9448 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9449 Is_Statically_Allocated set from constant objects.
9450 Do not make exported constants created by the compiler volatile.
9451 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9454 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9455 before returning them.
9457 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9458 public part of the package.
9459 (Make_DT): Move HT_Link component out of the TSD record. For this
9460 purpose Make_DT now declares a separate object that stores the
9461 HT_Link value, and initializes the TSD component with the address
9462 of this new object. The addition of this level of indirection is
9463 required to statically allocate the TSD because the TSD cannot
9464 have variable components.
9465 (Expand_Interface_Conversion): Improve the expanded code.
9466 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9468 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9469 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9470 if we are building static dispatch tables then we must not generate
9471 extra code to register the primitive because the dispatch table will
9472 be built at the end of the library package; otherwise we notify that
9473 we cannot build the static dispatch table.
9475 2007-09-26 Robert Dewar <dewar@adacore.com>
9477 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9480 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9481 (Analyze_Record_Representation_Clause): Suppress junk warning for
9482 missing component clause.
9483 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9484 tests for controlled type overlay to composites with controlled
9486 (Analyze_Record_Representation_Clause): Add reference for component name
9488 2007-09-26 Javier Miranda <miranda@adacore.com>
9489 Gary Dismukes <dismukes@adacore.com>
9491 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9492 for thunks associated with interface types.
9494 * einfo.ads: Improve documentatation of Is_Internal
9495 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9496 associated with interface types.
9497 Extensive comment fixes regarding flags that appear in all entities. The
9498 documentation is now consistent for all such flags (there were a number
9499 of errors in the documentation in this regard).
9501 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9503 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9504 of these procedures are passed a function call that already has
9505 build-in-place actuals (testing new flag
9506 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9507 the case where processing continues.
9508 (Expand_Call): If the call is generated from a thunk body then we
9509 propagate the extra actuals associated with the accessibility
9510 level of the access type actuals.
9512 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9513 of each extra formal of a protected operation to reference the
9514 corresponding extra formal of the subprogram denoted by the
9515 operation's Protected_Body_Subprogram.
9517 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9518 N_Function_Call nodes.
9520 2007-09-26 Robert Dewar <dewar@adacore.com>
9522 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9524 * debug.adb: Add d.s flag.
9526 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9528 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9529 debug variable so that it won't be initialized when pragma
9530 Initialize_Scalars is in effect.
9532 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9534 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9535 initialization of a full view. This is moved to
9536 Analyze_Package_Specification.
9538 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9539 preelaborable initialization of a full view in entity loop.
9540 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9541 its child units are use-visible only if they are visible child units.
9543 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9544 whether an expression can be used within a type declaration that
9545 requires preelaborable init.
9546 (Check_Components): Replace inline code that does partial checking for
9547 preelaborable default expressions with call to
9548 Is_Preelaborable_Expression.
9549 (Has_Preelaborable_Initialization): In the case of a generic actual
9550 subtype, (that is, Is_Generic_Actual is True), return the result of
9551 applying Has_Preelaborable_Initialization to the generic actual's base
9554 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9556 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9557 call to Jan_1_Day _Of_Week to optimize its performance.
9558 (Is_Leap): Move the routine to the scope of Week_In_Year.
9559 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9560 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9561 avoids calling Time_Of and Split, thus making it more efficent.
9562 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9564 * g-calend.ads (Week_In_Year): Change comment to reflect new
9567 2007-09-26 Emmanuel Briot <briot@adacore.com>
9569 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9570 Command_Line): New types
9571 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9572 support for defining how switches can be grouped on a command line (as
9573 is the case for -gnatw... for GNAT), and how simple switches can be
9574 used as aliases for more complex switches (-gnatwa is same as
9576 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9577 (Start, Current_*): New subprograms
9578 Added support for parsing an array of strings in addition to the real
9580 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9581 be moved from the body to the private part of the spec.
9582 (*): All subprograms now have an extra parameter with default value to
9583 specify which parser should be used. For backward compatibility, it
9584 defaults to parsing the command line of the application. They were also
9585 modified to properly handle cases where each of the argument does not
9586 start at index 1 (which is always true for Ada.Command_Line, but not
9587 when processing any Argument_List).
9588 (Free): New subprogram
9589 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9590 Argument): New subprograms
9591 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9592 special characters like ':', '=',... are now handled in a single place,
9593 which makes the code more extensible eventually.
9594 (Getopt, Full_Switch): When the switch was returned as part of the
9595 special character '*', make sure it is prepended by the switch character
9596 ('-' in general), so that the application knows whether "foo" or "-foo"
9597 was specified on the command line.
9599 2007-09-26 Florian Villoing <villoing@adacore.com>
9601 * g-dirope.adb (Remove_Dir): In case we are removing directories
9602 recursively, make sure that if an exception is raised during the
9603 processing, the current working directory is reset to its initial
9604 value before propagating the exception.
9606 2007-09-26 Vincent Celier <celier@adacore.com>
9608 * gnatbind.adb: If there are several ALI files specified and there is
9609 a main program to bind, the first ALI is expected to contain the main
9610 subprogram and the names of the binder generated files will be derived
9611 from the first ALI file name.
9612 (Gnatbind): Fix insertion character in invocation of Error_Msg
9614 2007-09-26 Vincent Celier <celier@adacore.com>
9616 * gnatcmd.adb (Check_Files): Do not include sources that have been
9617 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9619 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9621 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9622 information about each of its index types, following the type
9623 reference for its component type.
9625 2007-09-26 Vincent Celier <celier@adacore.com>
9627 * make.adb: (Kill): New procedure (__gnat_kill imported)
9628 (Running_Compile, Outstanding_Compiles): Global variables that
9629 were previously local to procedure Compile_Sources.
9630 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9631 compilation processes.
9633 (Gnatmake): If project files are used, create the mapping of all the
9634 sources, so that the correct paths will be found.
9636 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9638 2007-09-26 Vincent Celier <celier@adacore.com>
9640 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9642 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9643 Replace components Compiler_Min_Options and Binder_Min_Options with
9644 Compiler_Required_Switches and Binder_Required_Switches in record
9646 Remove components Default_Language and Config in Project_Tree_Data,
9649 * prj-attr.adb: New attributes Required_Switches (<language>) in
9650 packages Compiler and Binder.
9652 * prj-nmsc.adb: Major rewrite of the processing of configuration
9653 attributes for gprbuild. No impact on GNAT tools.
9655 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9656 process configuration attributes: this is done in Prj.Nmsc.Check.
9657 (Recursive_Process): Make a full copy of packages inherited from project
9658 being extended, instead of a shallow copy.
9659 (Process_Project_Tree_Phase_1): New procedure
9660 (Process_Project_Tree_Phase_1): New procedure
9661 (Process): Implementation now uses the two new procedures
9663 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9664 from the project config, not the tree config that no longer exists.
9666 2007-09-26 Vincent Celier <celier@adacore.com>
9668 * Make-lang.in: Update dependencies..
9670 2007-09-26 Vincent Celier <celier@adacore.com>
9672 * osint.adb, osint.ads: Minor reformatting
9674 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9676 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9678 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9679 message to cite use of <> in aggregate component associations rather
9680 than wrongly indicating use of limited aggregates.
9682 2007-09-26 Robert Dewar <dewar@adacore.com>
9684 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9687 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9689 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9690 ancestor of the derived type, the operations are inherited from the
9691 primary dispatch table of the parent.
9692 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9693 when the context is an explicit type conversion.
9695 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9697 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9698 rule for qualified expressions properly, to detect improper conversions
9699 and resolve some cases of overloading.
9701 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9703 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9704 proper kind of reference to the primitive operation, for better source
9706 (Valid_Conversion): A tagged conversion is legal if both operands are
9709 2007-09-26 Robert Dewar <dewar@adacore.com>
9711 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9714 2007-09-26 Vincent Celier <celier@adacore.com>
9716 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9718 2007-09-26 Robert Dewar <dewar@adacore.com>
9720 * s-wchstw.adb: provide messages for run time unit exceptions
9722 * a-witeio.adb: Minor reformatting
9724 * exp_ch13.adb: Minor reformatting
9726 2007-09-26 Sergey Rybin <rybin@adacore.com>
9728 * vms_data.ads: Revise gnatmetric qualifiers.
9729 Add qualified for the new gnatbind option '-y'
9731 * gnat_ugn.texi: Revise the gnatmetric section.
9732 Add entry for new gnatbind option '-y'.
9734 * gnat_rm.texi: Minor spelling correction.
9735 Document restriction on overlaying controlled types
9737 2007-09-26 Vincent Celier <celier@adacore.com>
9739 * makegpr.adb (Link_Executables): Do not fail when the root project has
9740 no sources, but is an extending project.
9742 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9744 * trans.c: Fix misplaced #define.
9746 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9748 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9749 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9751 2007-09-21 Olivier Hainque <hainque@adacore.com>
9753 * utils.c (type_for_nonaliased_component_p): Return false for
9754 all AGGREGATE_TYPEs.
9756 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9758 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9759 object covered by 13.3(19) volatile.
9761 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9765 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9766 in the special VIEW_CONVERT_EXPR case.
9768 2007-09-12 Robert Dewar <dewar@adacore.com>
9770 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9772 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9773 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9774 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9775 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9776 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9777 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9778 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9779 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9780 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9781 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9782 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9783 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9784 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9785 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9786 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9787 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9788 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9789 pragma Compiler_Unit and adds it to relevant library units.
9791 2007-09-12 Ed Schonberg <schonberg@adacore.com>
9793 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9794 a box need not correspond to any component.
9796 2007-09-12 Robert Dewar <dewar@adacore.com>
9798 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9799 the tasking version of the Ada run time when foreign threads are
9800 present and there are no explicit Ada tasks or tasking constructs.
9802 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9804 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
9806 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9807 the usage of switch -y.
9809 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9810 when switch -y is present.
9812 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9813 leap seconds in Ada.Calendar and its children.
9815 2007-09-12 Jose Ruiz <ruiz@adacore.com>
9817 * a-extiti.ads (Timer): The discriminant is a "not null access
9818 constant" in the Reference Manual.
9819 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9821 2007-09-12 Robert Dewar <dewar@adacore.com>
9823 * a-swuwha.adb: Remove junk RM header
9825 2007-09-12 Vincent Celier <celier@adacore.com>
9827 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9830 * g-bytswa.ads: Minor reformatting
9832 2007-09-12 Thomas Quinot <quinot@adacore.com>
9834 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9835 Add new constant Thread_Blocking_IO, always True by default, set False
9836 on a per-runtime basis.
9837 (Need_Netdb_Buffer): New constant.
9839 2007-09-12 Arnaud Charlet <charlet@adacore.com>
9841 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9842 Added renames for corresponding functions in System.Partition_Interface.
9844 2007-09-12 Doug Rupp <rupp@adacore.com>
9846 * Makefile.in: Remove VMS specific System.CRTL packages which are no
9849 * s-crtl-vms64.ads: Removed.
9851 2007-09-12 Olivier Hainque <hainque@adacore.com>
9853 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9854 with discriminant constraints, generalize the code for BIT_FIELDs
9855 to PACKED fields of constant size and propagate DECL_PACKED.
9857 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
9859 * decl.c (array_type_has_nonaliased_component): New predicate.
9860 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9861 set the TYPE_NONALIASED_COMPONENT flag on the type.
9862 <E_Array_Subtype>: Likewise.
9863 * gigi.h (type_for_nonaliased_component_p): Declare.
9864 * utils.c (type_for_nonaliased_component_p): New predicate.
9865 (create_field_decl): Invoke the above predicate to set the
9866 DECL_NONADDRESSABLE_P flag on the field.
9868 2007-09-11 Javier Miranda <miranda@adacore.com>
9870 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9871 in library level record type entities if we are generating statically
9872 allocated dispatch tables.
9874 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9875 importing/exporting the _tag declaration by new code
9876 importing/exporting the dispatch table wrapper. This change allows us
9877 to statically allocate of the TSD.
9878 (Make_DT.Export_DT): New procedure.
9879 (Build_Static_DT): New function.
9880 (Has_DT): New function.
9882 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9883 True_Constant and Current_Value. Required to statically
9884 allocate the dispatch tables.
9885 (Check_Allocator): Make function iterative instead of recursive.
9886 Also return inner allocator node, when present, so that we do not have
9887 to look for that node again in the caller.
9889 2007-09-11 Jan Hubicka <jh@suse.cz>
9891 * misc.c (gnat_expand_body): Kill.
9892 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9894 2007-09-10 Robert Dewar <dewar@adacore.com>
9896 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9897 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9898 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9899 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9900 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9901 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9902 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9903 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9904 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9905 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9906 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9907 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9908 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9909 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9910 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9911 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9912 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9913 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9914 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9915 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9916 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9917 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9918 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9919 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9920 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9921 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9922 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9923 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9924 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9925 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9926 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9927 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9928 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9929 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9930 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9931 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9932 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9933 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9934 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9935 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9936 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9937 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9938 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9939 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9940 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9941 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9942 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9943 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9944 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9945 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9946 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9947 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9948 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9949 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9950 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9951 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9952 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9953 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9954 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9955 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9956 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9957 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9958 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9959 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9960 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9961 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9962 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9963 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9964 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9965 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9966 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9967 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9968 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9969 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9970 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9971 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9972 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9973 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9974 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9975 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9976 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9977 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9978 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9980 2007-09-10 Emmanuel Briot <briot@adacore.com>
9982 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9985 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
9987 * adaint.c (__gnat_translate_vms): new function.
9989 2007-09-10 Gary Dismukes <dismukes@adacore.com>
9990 Thomas Quinot <quinot@adacore.com>
9992 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9993 create an abstract subprogram in the case of 'Input. For 'Output we now
9994 create a real spec/body when the type is abstract, since it can
9995 potentially be called.
9996 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9997 body for 'Output when the type is abstract (only the creation of the
9998 body for 'Input is excluded when the type is abstract).
9999 (Stream_Operation_OK): Add an additional condition in the return
10000 statement, so that False will be returned for TTS_Stream_Input if the
10001 associated tagged type is an abstract extension. Add comments for
10003 (Expand_N_Object_Declaration): For the case of a shared passive
10004 variable, insert init proc call only after the shared variable
10005 procedures have been processed, because the IP call needs to undergo
10006 shared passive variable reference expansion, which requires these
10007 procedures to be available (and elaborated).
10009 2007-09-10 Vincent Celier <celier@adacore.com>
10011 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10012 parameter Runtime_Project.
10014 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10016 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10017 given a box association, the type of the component is discriminated,
10018 and the value of the discriminant is the discriminant of the enclosing
10019 type, retrieve its value from the aggregate itself, where it must have
10022 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10023 to remove other spurious ambiguities on arithmetic operations involving
10024 literals and addresses, on systems where Address is a visible integer
10025 type, when the operator is called in functional notation.
10026 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10027 is legal when the types match, even if the operation is currently
10030 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10032 * sem_ch12.adb (Build_Local_Package): A formal package with no
10033 associations is legal if all formals have defaults. It is not
10034 equivalent to a formal declared with a box.
10036 2007-09-10 Sergey Rybin <rybin@adacore.com>
10038 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10040 2007-09-10 Sergey Rybin <rybin@adacore.com>
10042 * gnat_ugn.texi: Add description of the new '-lratio' option
10043 Update 7.3.1 section about availability of the feature.
10045 2007-09-10 Thomas Quinot <quinot@adacore.com>
10047 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10050 2007-09-10 Olivier Hainque <hainque@adacore.com>
10052 * Makefile.in: (mips-irix section): Activate build of libgmem.
10054 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10056 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10059 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10061 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10062 a debug renaming declaration specially.
10064 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10066 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10067 which a constant renaming is treated as a normal object declaration.
10068 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10069 the N_Indexed_Component case.
10070 <N_Indexed_Component>: Fall through to above case.
10071 <N_Object_Renaming_Declaration>: Return true for all composite types.
10073 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10075 * decl.c (make_packable_type): If the new type has been given BLKmode,
10076 try again to get an integral mode for it.
10078 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10080 Re-apply accidentally reverted change:
10082 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10084 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10085 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10086 and _Unwind_SWord with _sleb128_t.
10088 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10090 * trans.c (convert_with_check): Update call to real_2expN.
10092 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10094 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10095 * utils.c (end_subprog_body): Likewise.
10097 2007-09-03 Nick Clifton <nickc@redhat.com>
10099 * Make-lang.in: Change copyright header to refer to version 3 of
10100 the GNU General Public License and to point readers at the
10101 COPYING3 file and the FSF's license web page.
10102 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10103 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10104 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10105 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10108 2007-08-31 Vincent Celier <celier@adacore.com>
10112 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10113 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10114 (Check_Version_And_Help): New procedure in package Switch to process
10115 switches --version and --help.
10116 Use Check_Version_And_Help in GNAT tools
10119 (Compile_Sources): Make sure that sources that are "excluded" are not
10121 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10122 project file is used.
10123 (Version_Switch): Remove, moved to Switch
10124 (Help_Switch): Remove, moved to Switch
10125 (Display_Version): Remove, moved to Switch
10127 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10128 package Switch to process switches --version and --help.
10129 (Display_Version): New procedure
10131 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10133 2007-08-31 Javier Miranda <miranda@adacore.com>
10135 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10138 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10140 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10141 (Mark_Non_Null): If the node for which we just generated an access check
10142 is a reference to an *in* parameter and the reference appears in the
10143 declarative part of a subprogram body, mark the node as known non null.
10145 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10147 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10148 structure of E_Exception to reflect the new flag.
10149 (Is_Raised, Set_Is_Raised): New inlined routines.
10150 Update the usage of available flag to reflect the addition of Is_Raised.
10151 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10152 (Write_Entity_Flags): Write the status of flag Is_Raised.
10153 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10154 spurious ambiguities when integer literals appear in the context of an
10155 address type that is a visible integer type.
10157 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10158 exceptions never being raised.
10159 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10162 2007-08-31 Javier Miranda <miranda@adacore.com>
10164 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10165 statement when compiling under restriction No_Exceptions_Proparation.
10167 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10169 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10170 initialization aggregate for the type, generate itype references for
10171 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10173 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10175 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10176 library-level package renaming, pass the declaration associated with
10177 the renaming's special debug variable to Qualify_Entity_Names to ensure
10178 that its encoded name is properly qualified.
10180 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10181 occurring in the list of entities to qualify, and do not attempt to
10182 traverse an entity list in that case. Variables associated with
10183 ` library-level package renamings can now occur in the table.
10185 * exp_dbug.ads: Revise documentation of the encoding for renaming
10188 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10190 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10191 access type points to an unconstrained array.
10193 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10195 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10198 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10199 simple redundant qualifications. The check is performed whenever the
10200 expression is a non-overloaded identifier.
10201 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10202 to include loop parameters.
10203 (Valid_Conversion): Avoid generation of spurious error message.
10205 2007-08-31 Bob Duff <duff@adacore.com>
10207 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10208 concatenations of string literals into a single literal, in order to
10209 avoid very deep recursion in the front end, which was causing stack
10212 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10213 string, and the right operand is a string literal (the case of "" &
10214 "..."), optimize by avoiding copying the right operand -- just use the
10215 value of the right operand directly.
10217 * stringt.adb (Store_String_Chars): Optimize by growing the
10218 String_Chars table all at once, rather than appending characters one by
10220 (Write_String_Table_Entry): If the string to be printed is very long,
10221 just print the first few characters, followed by the length. Otherwise,
10222 doing "pn(n)" in the debugger can take an extremely long time.
10224 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10225 Store_String_Char with Store_String_Chars.
10227 2007-08-31 Vincent Celier <celier@adacore.com>
10229 * prj-attr.adb: Add new attribute Excluded_Source_Files
10231 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10232 Locally_Removed_Files.
10234 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10236 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10238 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10239 clauses of subunits, ignore limited_with_clauses that are illegal and
10240 have not been fully analyzed.
10242 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10244 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10245 flag, for effiency. It is called when analyzing arithmetic operators
10246 and also for actuals in calls that are universal_integers. The flag is
10247 set for the predefined type address, and for any type or subtype
10250 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10251 Universal_Integer, when the formal is a descendent of address and the
10252 call appears in user code.
10253 (Analyze_Selected_Component): if the prefix is a private extension, the
10254 tag component is visible.
10256 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10259 2007-08-31 Robert Dewar <dewar@adacore.com>
10261 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10262 sensitive file name systems to avoid unexpected mismatch in Vista.
10264 2007-08-31 Vincent Celier <celier@adacore.com>
10266 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10268 2007-08-31 Vincent Celier <celier@adacore.com>
10270 * symbols-vms.adb (Initialize): Read symbol files with continuation
10272 (Finalize): If symbol is long, split the line
10274 2007-08-31 Vincent Celier <celier@adacore.com>
10276 * fmap.ads: Minor comment updates
10278 2007-08-31 GNAT Script <nobody@adacore.com>
10280 * Make-lang.in: Makefile automatically updated
10282 2007-08-31 Bob Duff <duff@adacore.com>
10284 * sinfo.ads: Minor comment fix.
10286 2007-08-31 Thomas Quinot <quinot@adacore.com>
10288 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10289 with implementation.
10290 Documentation cleanup only.
10292 2007-08-31 Sergey Rybin <rybin@adacore.com>
10294 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10295 gnatpp '--separate-stmt-name' option.
10296 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10299 * gnat_ugn.texi: Add description for the new gnatpp
10300 '--separate-stmt-name' and '--use-on-new-line' options.
10302 2007-08-31 Ben Elliston <bje@au.ibm.com>
10304 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10305 when compiling for powerpc64-*-linux.
10306 * system-linux-ppc64.ads: New file.
10308 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10310 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10313 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10315 * misc.c (gnat_type_max_size): Constify.
10317 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10319 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10320 associated with Standard_Debug_Renaming_Type, to be used as the type of
10321 the special variables whose names provide debugger encodings for
10322 renaming declarations.
10324 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10325 (Set_Debug_Renaming_Link): Change to set Node25.
10326 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10327 (Write_Field25_Name): Add case for E_Variable to output
10328 "Debug_Renaming_Link".
10329 (Write_Field23_Name): Correct the output string for "Limited_View".
10331 * exp_dbug.adb: Add with and use of Tbuild.
10332 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10333 and literal with creation of a variable of type
10334 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10335 and the entity of the renaming declaration.
10336 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10337 part of the name of a variable that has a Debug_Renaming_Link.
10339 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10340 special type to be associated with variables that provide debugger
10341 encodings for renaming declarations.
10343 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10344 Ed Schonberg <schonberg@adacore.com>
10345 Javier Miranda <miranda@adacore.com>
10347 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10348 ancestor part given by an aggregate to test for an unchecked conversion,
10349 since this can occur in some cases when the ancestor part is a function
10350 call, and we don't want to fall into the recursive call to this
10351 procedure in that case.
10353 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10354 stream attributes on limited types to account for user-specified
10355 attributes as well as whether Input (resp. Output) becomes available
10356 due to Read (resp. Write) being available for the type. Change Boolean
10357 variable to the more accurate name
10358 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10359 double-"not" predicate at beginning of return statement to more
10360 understandable form.
10362 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10363 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10364 in a block statement and use that as the first statement of the
10365 expanded return rather than incorrectly using the handled sequence as
10366 the first statement.
10368 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10369 operation, generate an explicit freeze node for it rather than
10370 generating extra formals, to ensure that gigi has the proper order of
10371 elaboration for anonymous subtypes in the signature of the subprograms.
10372 (Build_In_Place_Formal): Move assertion to beginning of loop.
10373 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10374 applied to a function call (occurs for some cases of 'Input).
10375 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10376 applied to a function call (occurs for some cases of 'Input).
10378 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10379 2005, generate an extended return statement enclosing the result object
10382 * freeze.adb (Freeze_Record_Type): Extend the current management of
10383 components that are access type with an allocator as default value: add
10384 missing support to the use of qualified expressions of the
10385 allocator (which also cause freezing of the designated type!)
10386 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10387 dispatching operation, since extra formals may be needed by calls to
10388 build-in-place functions (such as stream 'Input).
10390 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10391 formals for 'Constrained and accessibility level in the case of a
10392 predefined dispatching operation.
10394 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10395 point, no need to find the parent node.
10397 2007-08-16 Javier Miranda <miranda@adacore.com>
10399 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10400 and entry barriers.
10402 2007-08-16 Javier Miranda <miranda@adacore.com>
10404 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10405 is not really required and can introduce regression with the debugger.
10406 The original problem is fixed with the patch written for checks.adb.
10408 2007-08-16 Thomas Quinot <quinot@adacore.com>
10410 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10411 Range_Check on Allocated_Table.
10413 2007-08-16 Vincent Celier <celier@adacore.com>
10415 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10416 Including_Non_Switch set to False.
10417 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10418 Including_Non_Switch set to False.
10420 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10421 parameter Including_Non_Switch, defaulted to True. When
10422 Including_Non_Switch is False, options that are not switches and
10423 appear as relative path are not converted to absolute paths.
10425 2007-08-16 Nicolas Roche <roche@adacore.com>
10427 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10430 * Make-lang.in: Update dependencies
10432 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10434 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10435 currently inspected is a selected component, retrieve the entity of
10437 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10438 from the immediate ancestor of Main_Unit_Entity.
10439 (Install_Limited_Withed_Unit): Do not install the limited view of
10440 package P if P is reachable through an ancestor chain from package C
10441 and C also has a with clause for P in its body.
10442 (Has_Limited_With_Clause): New routine.
10443 (Has_With_Clause): New routine.
10445 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10447 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10448 generic for an enclosing instance is a global reference, even though
10449 its scope is the enclosing instance.
10451 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10452 Javier Miranda <miranda@adacore.com>
10454 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10455 initialize a limited object.
10456 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10458 Make sure Has_Complex_Representation is inherited by derived type.
10460 2007-08-16 Robert Dewar <dewar@adacore.com>
10462 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10465 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10467 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10468 implements an operation inherited from a progenitor interface, verify
10469 that they are subtype-conformant.
10471 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10472 Bob Duff <duff@adacore.com>
10473 Nicolas Setton <setton@adacore.com>
10475 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10476 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10477 the statement which is being resolved comes from a predefined library
10478 unit, all non-predefined library interpretations are skipped.
10479 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10480 but the "&" is user defined, give an error, because the folding would
10483 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10484 the parser has folded a long sequence of concatenations of string
10487 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10488 and "JMP_BUF" variables as artificial.
10489 (N_String_Literal): Do not use alloca for very long string literals. Use
10490 xmalloc/free instead. Otherwise the stack might overflow.
10492 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10495 2007-08-16 Vincent Celier <celier@adacore.com>
10497 * vms_conv.adb (Process_Argument): Ensure that project related options
10498 are not put in the -cargs section when using GNAT COMPILE.
10500 2007-08-16 Robert Dewar <dewar@adacore.com>
10502 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10504 2007-08-16 Thomas Quinot <quinot@adacore.com>
10506 * a-tags.adb: Minor reformatting.
10508 2007-08-16 Bob Duff <duff@adacore.com>
10510 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10512 2007-08-14 Thomas Quinot <quinot@adacore.com>
10514 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10515 s-osinte-interix.ads, system-interix.ads: Removed.
10517 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10519 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10520 calls to Check_Within_Time_Bounds.
10521 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10522 (Difference): Account for possible rounding of the resulting difference
10524 2007-08-14 Robert Dewar <dewar@adacore.com>
10526 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10527 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10528 s-osinte-solaris.adb, s-osinte-solaris.ads,
10529 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10531 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10532 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10534 2007-08-14 Robert Dewar <dewar@adacore.com>
10535 Ed Schonberg <schonberg@adacore.com>
10537 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10538 Suppress unmodified in-out parameter warning in some cases
10539 This patch is a also fairly significant change to the way suppressible
10540 checks are handled.
10542 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10543 needed for access to concurrent record types generated by the expander.
10544 (Generate_Range_Check): When generating a temporary to capture the
10545 value of a conversion that requires a range check, set the type of the
10546 temporary before rewriting the node, so that the type is always
10547 properly placed for back-end use.
10548 (Apply_Float_Conversion_Check): Handle case where the conversion is
10550 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10551 for a protected type in order to examine its discriminants.
10553 2007-08-14 Robert Dewar <dewar@adacore.com>
10554 Gary Dismukes <dismukes@adacore.com>
10555 Ed Schonberg <schonberg@adacore.com>
10556 Thomas Quinot <quinot@adacore.com>
10558 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10559 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10560 tests optimized out.
10562 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10563 (Get_Allocator_Final_List): For the case of an anonymous access type
10564 that has a specified Associated_Final_Chain, do not go up to the
10566 (Expand_N_Type_Conversion): Test for the case of renamings of access
10567 parameters when deciding whether to apply a run-time accessibility
10569 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10570 aggregate code before allocator, and ahead of declaration for
10571 temporary, to prevent access before elaboration when the allocator is
10572 an actual for an access parameter.
10573 (Expand_N_Type_Conversion): On an access type conversion involving an
10574 access parameter, do not apply an accessibility check when the
10575 operand's original node was an attribute other than 'Access. We now
10576 create access conversions for the expansion of 'Unchecked_Access and
10577 'Unrestricted_Access in certain cases and clearly accessibility should
10578 not be checked for those.
10580 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10581 includes a type conversion of a packed component that has been expanded,
10582 recover the original expression for the object, and use this expression
10583 in the post-call assignment statement, so that the assignment is made
10584 to the object and not to a back-end temporary.
10585 (Freeze_Subprogram): In case of primitives of tagged types not defined
10586 at the library level force generation of code to register the primitive
10587 in the dispatch table. In addition some code reorganization has been
10588 done to leave the implementation clear.
10589 (Expand_Call): When expanding an inherited implicit conversion,
10590 preserve the type of the inherited function after the intrinsic
10591 operation has been expanded.
10593 * exp_ch2.ads, exp_ch2.adb
10594 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10595 of an entry formal appearing in an assignment statement does not assign
10597 (Expand_Current_Value): Instead of calling a routine to determine
10598 whether the prefix of an attribute reference should be optimized or
10599 not, prevent the optimization of such prefixes all together.
10601 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10602 component whose prefix is known to be of an access type is an implicit
10603 dereference and does not assign to the prefix.
10605 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10606 Robert Dewar <dewar@adacore.com>
10608 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10609 itype is visited, make an entry into table to link associated node and
10611 Add comments and correct harmless error in Build_NCT_Hash_Tables
10612 (Array_Aggr_Subtype): Associate each itype created for an index type to
10613 the corresponding range construct, and not to the aggregate itself. to
10614 maintain a one-to-one correspondence between itype and its associated
10615 node, to prevent errors when complex expression is copied.
10616 Fix mishandling of multiple levels of parens
10618 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10619 treatment of limited views uniform for all visible declarations in a
10620 limited_withed package.
10621 (New_Copy_Tree): If hash table is being used and itype is visited,
10622 make an entry into table to link associated node and new itype.
10623 (Resolve_Record_Aggregate): Do not add an others box association for a
10624 discriminated record component that has only discriminants, when there
10625 is a box association for the component itself.
10627 * par-ch4.adb: Fix mishandling of multiple levels of parens
10629 2007-08-14 Robert Dewar <dewar@adacore.com>
10631 * comperr.adb: Fix problem with suppressing warning messages from gigi
10633 * erroutc.ads, erroutc.adb, errout.ads,
10634 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10635 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10636 possible trailing spaces.
10637 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10638 Fix problem with suppressing warning messages from back end
10639 Improve handling of deleted warnings
10642 Fix problem with suppressing warning messages from back end
10643 Handle setting of Static_Dispatch_Tables flag.
10646 Fix problem with suppressing warning messages from back end
10648 * exp_intr.adb: Improve handling of deleted warnings
10650 2007-08-14 Robert Dewar <dewar@adacore.com>
10652 * debug.adb: Improve -gnatdI to cover all cases of serialization
10653 Add documentation of dZ, d.t
10655 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10657 (Sprint_Node_Actual): Generate new output associated with implicit
10658 importation and implicit exportation of object declarations.
10660 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10661 Robert Dewar <dewar@adacore.com>
10662 Javier Miranda <miranda@adacore.com>
10663 Gary Dismukes <dismukes@adacore.com>
10665 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10666 to make treatment of limited views uniform for all visible declarations
10667 in a limited_withed package.
10668 Improve warnings for in out parameters
10669 (Set_Related_Interaface/Related_Interface): Allow the use of this
10670 attribute with constants.
10671 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10672 Warn on duplicate pragma Preelaborable_Initialialization
10674 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10675 generation of a freezing node to ensure proper management of null
10676 excluding access types in the backend.
10677 (Create_Extra_Formals): Test base type of the formal when checking for
10678 the need to add an extra accessibility-level formal. Pass the entity E
10679 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10680 originally being done in a couple of cases), to ensure that the
10681 Extra_Formals list gets set on the entity E when the first entity is
10683 (Conforming_Types): Add missing calls to Base_Type to the code that
10684 handles anonymous access types. This is required to handle the
10685 general case because Process_Formals builds internal subtype entities
10686 to handle null-excluding access types.
10687 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10688 functions that need it, even when not marked Requires_Overriding.
10689 Improve warnings for in out parameters
10690 (Analyze_Function_Return): Warn for disallowed null return
10691 Warn on return from procedure with unset out parameter
10692 Ensure consistent use of # in error messages
10693 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10694 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10695 the implicit conversion of the expression done for anonymous access
10696 types. This is required to generate the code of the null excluding
10697 check (if required).
10699 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10700 A formal parameter is never publicly referenceable outside of its body.
10701 (Check_References): For an unreferenced formal parameter in an accept
10702 statement, use the same warning circuitry as for subprogram formal
10704 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10705 Output_Unreferenced_Messages, containing the part of that routine that
10706 is now reused for entry formals as described above.
10707 (Goto_Spec_Entity): New function
10708 (Check_References): Do not give IN OUT warning for dispatching operation
10709 Improve warnings for in out parameters
10710 (Test_Ref): Check that the entity is not undefinite before calling
10711 Scope_Within, in order to avoid infinite loops.
10712 Warn on return from procedure with unset out parameter
10713 Improved warnings for unused variables
10715 2007-08-14 Robert Dewar <dewar@adacore.com>
10716 Javier Miranda <miranda@adacore.com>
10717 Gary Dismukes <dismukes@adacore.com>
10719 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10720 (Expand_N_Attribute_Reference): Further unify the handling of the
10721 three forms of access attributes, using common code now for all three
10722 cases. Add a test for the case of applying an access attribute to
10723 an explicit dereference when the context is an access-to-interface
10724 type. In that case we need to apply the conversion to the prefix
10725 of the explicit dereference rather than the prefix of the attribute.
10726 (Attribute_Version, UET_Address): Set entity as internal to ensure
10727 proper dg output of implicit importation.
10728 (Expand_Access_To_Type): Removed.
10729 (Expand_N_Attribute_Reference): Merge the code from the three cases
10730 of access attributes, since the processing is largely identical for
10731 these cases. The substantive fix here is to process the case of a
10732 type name prefix (current instance case) before handling the case
10733 of interface prefixes.
10735 2007-08-14 Thomas Quinot <quinot@adacore.com>
10736 Ed Schonberg <schonberg@adacore.com>
10737 Javier Miranda <miranda@adacore.com>
10738 Robert Dewar <dewar@adacore.com>
10740 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10741 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10742 type that is an anonymous access to controlled object, establish
10743 an associated finalization chain to avoid corrupting the global
10744 finalization list when a dynamically allocated object designated
10745 by such a component is deallocated.
10746 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10747 functions that need it, even when not marked Requires_Overriding.
10748 (Initialize_Tag): Replace call to has_discriminants by call to
10749 Is_Variable_Size_Record in the circuitry that handles the
10750 initialization of secondary tags.
10751 (Is_Variable_Size_Record): New implementation.
10752 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10753 Suppress_Initialization pragma for a derived type.
10754 (Is_Variable_Size_Record): New subprogram.
10755 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10756 initial version of this routine and also fixes problems causing
10757 incomplete initialization of the table of interfaces.
10758 (Build_Init_Procedure): Improve the generation of code to initialize the
10759 the tag components of secondary dispatch tables.
10760 (Init_Secondary_Tags): New implementation that simplifies the previous
10761 version of this routine.
10762 (Make_DT): Add parameter to indicate when type has been frozen by an
10763 object declaration, for diagnostic purposes.
10764 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10765 diagnose attemps to freeze a subprogram when some untagged type of its
10766 profile is a private type whose full view has not been analyzed yet.
10767 (Freeze_Array_Type): Generate init proc for packed array if either
10768 Initialize or Normalize_Scalars is set.
10769 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10770 constructing the new profile, copy the null_exclusion indicator for each
10771 parameter, to ensure full conformance of the new body with the spec.
10773 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10774 Create wrappers for constructor functions that need it, even when not
10775 marked Requires_Overriding.
10776 (Covers): Handle properly designated types of anonymous access types,
10777 whose non-limited views are themselves incomplete types.
10778 (Add_Entry): Use an entity to store the abstract operation which hides
10780 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10781 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10782 initialization aggregate.
10783 (Function_Interp_May_Be_Hidden): Rename to
10784 Function_Interp_Has_Abstract_Op.
10785 (Has_Compatible_Type): Remove machinery that skips interpretations if
10786 they are labeled as potentially hidden by an abstract operator.
10787 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10788 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10789 (Write_Overloads): Output the abstract operator if present.
10790 (Add_Entry): Before inserting a new entry into the interpretation table
10791 for a node, determine whether the entry will be disabled by an abstract
10793 (Binary_Op_Interp_May_Be_Hidden): New routine.
10794 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10796 (Function_Interp_May_Be_Hidden): New routine.
10797 (Has_Compatible_Type): Do not consider interpretations hidden by
10798 abstract operators when trying to determine whether two types are
10800 (Has_Hidden_Interp): New routine.
10801 (Set_May_Be_Hidden_Interp): New routine.
10802 (Write_Overloads): Write the status of flag May_Be_Hidden.
10804 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10805 Javier Miranda <miranda@adacore.com>
10807 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10808 types declared in the declarative part of a nested package body or in
10809 the proper body of a stub.
10810 (Set_All_DT_Position): Add missing check to avoid wrong assignation
10811 of the same dispatch table slot to renamed primitives.
10812 (Make_Select_Specific_Data_Table): Handle private types.
10813 (Tagged_Kind): Handle private types.
10814 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10815 output of implicit importation and exportation.
10816 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10817 first formal of the thunk is always associated with the controlling
10818 type. In addition perform the following code cleanup: remove formal
10819 Thunk_Alias which is no longer required, cleanup evaluation of the
10820 the controlling type, and update the documentation.
10821 Replace occurrence of Default_Prim_Op_Count by
10822 Max_Predef_Prims. Addition of compile-time check to verify
10823 that the value of Max_Predef_Prims is correct.
10824 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10825 (Make_DT): Add parameter to indicate when type has been frozen by an
10826 object declaration, for diagnostic purposes.
10827 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10828 construction of statically allocated dispatch tables.
10829 (Make_DT): In case of library-level tagged types export the declaration
10830 of the primary tag. Remove generation of tags (now done by Make_Tags).
10831 Additional modifications to handle non-static generation of dispatch
10832 tables. Take care of building tables for asynchronous interface types
10833 (Make_Tags): New subprogram that generates the entities associated with
10834 the primary and secondary tags of Typ and fills the contents of Access_
10835 Disp_Table. In case of library-level tagged types imports the forward
10836 declaration of the primary tag that will be declared later by Make_DT.
10837 (Expand_Interface_Conversion): In case of access types to interfaces
10838 replace an itype declaration by an explicit type declaration to avoid
10839 problems associated with the scope of such itype in transient blocks.
10841 2007-08-14 Robert Dewar <dewar@adacore.com>
10842 Ed Schonberg <schonberg@adacore.com>
10843 Javier Miranda <miranda@adacore.com>
10845 * exp_util.ads, exp_util.adb:
10846 This patch replaces a number of occurrences of explicit tests for N_Null
10847 with calls to Known_Null. This improves tracking of null values, since
10848 Known_Null also catches null constants, and variables currently known to
10849 be null, so we get better tracking.
10850 (Ensure_Defined): create an itype reference only in the scope of the
10852 (Side_Effect_Free): A selected component of an access type that
10853 denotes a component with a rep clause must be treated as not
10854 side-effect free, because if it is part of a linked structure its
10855 value may be affected by a renaming.
10856 (Expand_Subtype_From_Expr): For limited objects initialized with build
10857 in place function calls, do nothing; otherwise we prematurely introduce
10858 an N_Reference node in the expression initializing the object, which
10859 breaks the circuitry that detects and adds the additional arguments to
10860 the called function. Bug found working in the new patch for statically
10861 allocated dispatch tables.
10862 (Is_Library_Level_Tagged_Type): New subprogram.
10863 (Remove_Side_Effects): If the expression of an elementary type is an
10864 operator treat as a function call.
10865 (Make_Literal_Range): If the index type of the array is not integer, use
10866 attributes properly to compute the constraint on the resulting aggregate
10869 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10870 class-wide type whose base type is an incomplete private type, leave
10871 class-wide type unfrozen so that freeze nodes can be generated
10872 properly at a later point.
10873 (Freeze_Entity, array case): Handle case of pragma Pack and component
10874 size attributre clause for same array.
10876 2007-08-14 Vincent Celier <celier@adacore.com>
10878 * prj.ads, prj.adb: Update Project Manager to new attribute names for
10880 Allow all valid declarations in configuration project files
10881 (Reset): Initialize all tables and hash tables in the project tree data
10882 Major update of the Project Manager and of the project aware tools,
10883 including gprmake, so that the same sources in the GNAT repository
10884 can be used by gprbuild.
10885 (Slash_Id): Change type to be Path_Name_Type
10886 (Slash): Return a Path_Name_Type instead of a File_Name_Type
10888 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10890 Update Project Manager to new attribute names for ghprbuild
10891 Allow all valid declarations in configuration project files
10892 Major update of the Project Manager and of the project aware tools,
10893 including gprmake, so that the same sources in the GNAT repository
10894 can be used by gprbuild.
10897 Major update of the Project Manager and of the project aware tools,
10898 including gprmake, so that the same sources in the GNAT repository
10899 can be used by gprbuild.
10901 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10902 insensitive flag for attributes with optional index.
10903 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10904 array attribute, put the index in lower case.
10905 Update Project Manager to new attribute names for ghprbuild
10906 Allow all valid declarations in configuration project files
10907 Major update of the Project Manager and of the project aware tools,
10908 including gprmake, so that the same sources in the GNAT repository
10909 can be used by gprbuild.
10911 * prj-env.ads, prj-env.adb:
10912 Major update of the Project Manager and of the project aware tools,
10913 including gprmake, so that the same sources in the GNAT repository
10914 can be used by gprbuild.
10915 (Get_Reference): Change type of parameter Path to Path_Name_Type
10917 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10918 removing '-' from the path to start with the first character of the
10920 Major update of the Project Manager and of the project aware tools,
10921 including gprmake, so that the same sources in the GNAT repository
10922 can be used by gprbuild.
10923 Major update of the Project Manager and of the project aware tools,
10924 including gprmake, so that the same sources in the GNAT repository
10925 can be used by gprbuild.
10927 * prj-nmsc.ads, prj-nmsc.adb:
10928 Update Project Manager to new attribute names for ghprbuild
10929 Allow all valid declarations in configuration project files
10930 (Search_Directories): Detect subunits that are specified with an
10931 attribute Body in package Naming. Do not replace a source/unit in the
10932 same project when the order of the source dirs are known. Detect
10933 duplicate sources/units in the same project when the order of the
10934 source dirs are not known.
10935 (Check_Ada_Name): Allow all identifiers that are not reserved words
10937 Major update of the Project Manager and of the project aware tools,
10938 including gprmake, so that the same sources in the GNAT repository
10939 can be used by gprbuild.
10940 (Look_For_Sources): If the list of sources is empty, set the object
10941 directory of non extending project to nil.
10942 Change type of path name variables to be Path_Name_Type
10943 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10944 otherwise creating missing directories will fail.
10946 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10947 prj-part.ads, prj-part.adb:
10948 Major update of the Project Manager and of the project aware tools,
10949 including gprmake, so that the same sources in the GNAT repository
10950 can be used by gprbuild.
10952 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10953 insensitive flag for attributes with optional index.
10954 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10955 array attribute, put the index in lower case.
10956 (Parse_Variable_Reference): Allow the current project name to be used in
10957 the prefix of an attribute reference.
10959 * prj-util.ads, prj-util.adb
10960 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10961 defaulted to False. When True, always check against indexes in lower
10964 * snames.ads, snames.h, snames.adb:
10965 Update Project Manager to new attribute names for gprbuild
10966 Allow all valid declarations in configuration project files
10968 2007-08-14 Robert Dewar <dewar@adacore.com>
10969 Ed Schonberg <schonberg@adacore.com>
10971 * opt.ads: Warning for non-local exception propagation now off by
10973 New switch -gnatI to disable representation clauses
10974 Implement new pragma Implicit_Packing
10977 Warning for non-local exception propagation now off by default
10978 Add warning for unchecked conversion of pointers wi different
10980 New switch -gnatI to disable representation clauses
10982 * usage.adb: new switch -gnatyS
10984 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10985 note that aggregates of anonymous array types are not flagged.
10986 -gnatwc now includes membership tests optimized away
10987 -gnatw.x warnings are now off by default
10988 Added conditional compilation Appendix
10989 Add documentation of -gnatI
10990 Add documentation for new -gnatyS style check
10991 Update documentation about SAL and auto-init on Windows.
10994 Add documentation for pragma Check_Name and 'Enabled attribute
10995 Document that Eliminate on dispatching operation is ignored
10996 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10997 Document pragma Main
10998 Document pragma Implicit_Packing
11000 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11001 different conventions
11002 New switch -gnatI to disable representation clauses
11004 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11005 recognized, report the invalid characters including "-gnat" instead of
11006 just the first character in the switch.
11007 New switch -gnatI to disable representation clauses
11008 Set Warn_On_Object_Renames_Function true for -gnatg
11010 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11011 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11012 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11013 to switch -aP (add directory to project search dir).
11015 * par-prag.adb: Implement new pragma Implicit_Packing
11017 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11018 type as having a non-standard representation, to force expansion on
11019 conversion to related types.
11020 (Analyze_Pragma): Warn on misspelled pragma
11021 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11022 Ensure consistent use of # in error messages
11023 Implement pragma Implicit_Packing
11025 2007-08-14 Olivier Hainque <hainque@adacore.com>
11026 Eric Botcazou <ebotcazou@adacore.com>
11028 * targtyps.c (get_target_maximum_default_alignment): New function.
11030 that the compiler might choose by default for a type or object.
11031 (get_target_default_allocator_alignment): New function. Alignment known
11032 to be honored by the target default allocator.
11033 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11034 we might accept for any type or object on the target.
11035 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11037 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11038 (get_target_default_allocator_alignment): Likewise.
11039 (get_target_maximum_allowed_alignment): Likewise.
11042 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11043 result of a function call, first try to use a stabilized reference for
11044 a constant renaming too.
11045 (validate_alignment): Use target_maximum_allowed_alignment instead of
11046 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11047 (gnat_to_gnu_entity): Use common nodes directly.
11048 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11049 alignment and size for the object.
11050 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11051 and N_Procedure_Call_Statement.
11052 (takes_address): Rename to lvalue_required_p, add third parameter
11053 'aliased' and adjust recursive calls.
11054 <N_Indexed_Component>: Update 'aliased' from the array type.
11055 <N_Selected_Component>: New case.
11056 <N_Object_Renaming_Declaration>: New Likewise.
11057 (Identifier_to_gnu): Adjust for above changes.
11058 (maybe_stabilize_reference) <CONST_DECL>: New case.
11060 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11061 between type variants.
11062 (build_simple_component_ref): Likewise.
11063 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11064 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11065 aligning type circuitry for allocations from the default storage pool.
11066 (build_allocator): Likewise.
11067 (build_simple_component_ref): Manually fold the reference for a
11068 constructor if the record type contains a template.
11070 * utils.c (value_zerop): Delete.
11071 (gnat_init_decl_processing): Emit debug info for common types.
11072 (rest_of_record_type_compilation): If a union contains a field
11073 with a non-constant qualifier, treat it as variable-sized.
11074 (finish_record_type): Give the stub TYPE_DECL a name.
11075 (rest_of_record_type_compilation): Likewise.
11076 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11077 types are equivalent array types.
11078 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11079 even if the type is not passed by reference.
11080 (static_ctors, static_dtors): Delete.
11081 (end_subprog_body): Do not record constructors and destructors.
11082 (build_global_cdtor): Delete.
11083 (gnat_write_global_declarations): Do not call build_global_cdtor.
11085 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11086 -fRTS=rtp is specified.
11087 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11090 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11091 of the personality function with SJLJ exceptions.
11093 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11094 the name of the personality function with SJLJ exceptions.
11096 2007-08-14 Robert Dewar <dewar@adacore.com>
11097 Ed Schonberg <schonberg@adacore.com>
11099 * par.ads, par.adb: Improve handling of extra right parens.
11100 (Par): Remove flag From_Limited_With_Clause.
11102 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11103 Improve handling of extra right parens.
11105 2007-08-14 Robert Dewar <dewar@adacore.com>
11107 * par-tchk.adb (TF_Semicolon): Improve error recovery
11109 2007-08-14 Robert Dewar <dewar@adacore.com>
11110 Ed Schonberg <schonberg@adacore.com>
11112 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11113 enumeration type, mark all literals as referenced.
11114 (Eval_Attribute, case 'Image): If the argument is an enumeration
11115 literal and names are available, constant-fold but mark nevertheless as
11117 Clean up function names.
11118 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11120 (Requires_Simple_Name_Prefix): Removed.
11122 2007-08-14 Robert Dewar <dewar@adacore.com>
11123 Ed Schonberg <schonberg@adacore.com>
11125 * sem_ch11.adb: Improved warnings for unused variables
11127 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11128 is a synchronized interface, the derived type is limited.
11129 (Analyze_Object_Declaration): Mark the potential coextensions in the
11130 definition and expression of an object declaration node.
11131 (Build_Derived_Type): For the completion of a private type declaration
11132 with a derived type declaration, chain the parent type's representation
11133 items to the last representation item of the derived type (not the
11134 first one) if they are not present already.
11135 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11136 object declaration of forward references to tags.
11137 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11138 subprogram types can appear as access discriminants of synchronized
11140 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11141 given in prefixed form as a selected component.
11142 (Process_Discriminants): If not all discriminants have defaults, place
11143 error message on a default that is present.
11144 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11145 extend a synchronized tagged type.
11146 Improved warnings for unused variables
11147 (Is_Visible_Component): Fix a visibility hole on a component inherited
11148 by a private extension when parent is itself declared as a private
11149 extension, and the derivation is in a child unit.
11150 (Find_Hidden_Interface): Move spec from the package body.
11152 2007-08-14 Robert Dewar <dewar@adacore.com>
11153 Ed Schonberg <schonberg@adacore.com>
11155 * sem_ch5.adb: Improve warnings on redundant assignments
11157 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11159 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11160 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11161 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11162 is set to False. Improves handling of Known_[Not_]Null.
11163 (Wrong_Type): Special case address arithmetic attempt
11164 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11165 abstract interfaces just using the partial view of private types.
11166 (Has_Abstract_Interfaces): Add new formal to allow checking types
11167 covering interfaces using the partial view of private types.
11168 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11169 component still needs to be defined in this case, but is never
11170 initialized as VMs are using other dispatching mechanisms.
11171 (Abstract_Interface_List): For a protected type, use base type to get
11172 proper declaration.
11173 Improve warnings on redundant assignments
11174 (Is_Variable): Handle properly an implicit dereference of a prefixed
11176 (Build_Actual_Subtype): If this is an actual subtype for an
11177 unconstrained formal parameter, use the sloc of the body for the new
11178 declaration, to prevent anomalises in the debugger.
11180 2007-08-14 Robert Dewar <dewar@adacore.com>
11182 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11183 dispatching operation
11185 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11186 Gary Dismukes <dismukes@adacore.com>
11189 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11190 expanded aggregate code before allocator, and ahead of declaration for
11191 temporary, to prevent access before elaboration when the allocator is
11192 an actual for an access parameter.
11193 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11194 the TSD and the table of interfaces.
11195 (Convert_To_Assignments): Augment the test for delaying aggregate
11196 expansion for limited return statements to include the case of extended
11197 returns, to prevent creation of an unwanted transient scope.
11198 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11199 (Expand_Array_Aggregate): Handle aggregates associated with
11200 statically allocated dispatch tables.
11201 (Expand_Record_Aggregate): Handle aggregates associated with
11202 statically allocated dispatch tables.
11203 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11204 of anonymous access type.
11206 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11208 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11209 is a variable that renames a slice, use the variable itself in the
11210 expannsion when the renamed expression itself may be modified between
11211 the declaration of the renaming and the array assignment.
11213 2007-08-14 Jerome Guitton <guitton@adacore.com>
11215 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11216 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11217 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11218 New functions; dummy implementations.
11220 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11221 functions, used to implement the multi-tasks mode routines on VxWorks.
11223 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11224 New functions, thin
11225 binding to the VxWorks routines which have changed between VxWorks 5
11227 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11228 which are not callable from a RTP.
11230 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11231 implemented for the multi-tasks mode on VxWorks 5 and 6.
11233 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11235 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11238 2007-08-14 Vincent Celier <celier@adacore.com>
11240 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11241 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11242 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11243 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11244 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11245 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11246 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11248 (Major_Id_Name): New function.
11249 mlib-tgt.ads/mlib.tgt.adb:
11250 (Library_Major_Minor_Id_Supported): New function, default returns True
11251 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11252 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11253 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11254 Implementation of Library_Major_Minor_Id_Supported returns False
11256 (Clean_Library_Directory): If major/minor ids are supported, clean all
11258 Major update of the Project Manager and of the project aware tools,
11259 including gprmake, so that the same sources in the GNAT repository
11260 can be used by gprbuild.
11262 2007-08-14 Olivier Hainque <hainque@adacore.com>
11264 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11265 (GCC_ZCX_Support): Switch to True.
11267 * s-intman-solaris.adb (Notify_Exception): Call
11268 Adjust_Context_For_Raise before raising, as expected for signal
11269 handlers in general.
11271 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11272 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11273 to other implementation bodies.
11275 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11276 be visible by multiple implementation bodies.
11278 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11279 only for conditions coming from hardware.
11280 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11281 adjustments to signal context prior to exception raise from signal
11283 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11285 Solaris section: (__gnat_adjust_context_for_raise): New function.
11286 Implementation of the machine context adjustments to perform prior to
11287 raise from a signal handler. Version for both sparc and x86.
11288 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11289 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11290 prior to raising as expected for any handler, before possible nested
11291 faults to make sure all the contexts in a chain have been adjusted by
11292 the time we propagate.
11294 2007-08-14 Pascal Obry <obry@adacore.com>
11296 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11297 (SYSTEM_INFO): New record.
11298 (SetThreadIdealProcessor): New imported routine needed for supporting
11299 task_info pragma on Windows.
11301 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11302 info can be applied to the current host.
11303 (Create_Task): Set the ideal processor if information is present.
11305 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11306 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11308 2007-08-14 Olivier Hainque <hainque@adacore.com>
11310 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11311 stack size and initial stack pointer value for a given task.
11312 (Enter_Task): Get the stack attributes of the task we are entering and
11313 let the stack checking engine know about them.
11315 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11316 Let the stack-checking engine know about the initial sp value and stack
11317 size associated with the current task.
11318 (Set_Stack_Info): If a stack base has been notified for the current
11319 task, honor it. Fallback to the previous less accurate method otherwise.
11321 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11323 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11325 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11326 treatment of limited views uniform for all visible declarations in a
11327 limited_withed package.
11328 Set flag indicating that a subprogram body for a child unit has a
11330 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11331 separate declaration, remove the unit name from visibility after
11332 compilation, so that environment is clean for subsequent compilations.
11333 (Install_Limited_Context_Clauses): Do not install a
11334 limited_private_with_clause unless the current unit is a body or a
11335 private child unit.
11336 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11337 in the same fashion.
11338 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11339 it applies to the declaration of the current package body.
11340 (Remove_Private_With_Clauses): If there is a regular with_clause for
11341 the unit, delete Private_With_Clause from context, to prevent improper
11342 hiding when processing subsequent nested packages and instantiations.
11344 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11346 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11347 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11348 representing absolute path names.
11349 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11351 * cstreams.c (__gnat_full_name for VxWorks): Use
11352 __gnat_is_absolute_path to detect whether we need to add the current
11353 directory to normalize the path.
11355 2007-08-14 Javier Miranda <miranda@adacore.com>
11358 a-tags.adb (Displace): Associate a message with the raised CE
11360 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11361 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11362 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11364 (Default_Prim_Op_Count): Removed.
11365 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11366 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11367 Remove pragma Inline_Always.
11369 * rtsfind.ads (Default_Prim_Op_Count): Removed
11370 (Max_Predef_Prims): New entity
11371 (RE_Expanded_Name): Removed
11372 (RE_HT_Link): Removed
11373 (RE_Iface_Tag): Remmoved
11374 (RE_Ifaces_Table): Removed
11375 (RE_Interfaces_Array): Removed
11376 (RE_Interface_Data_Element): Removed
11377 (RE_Nb_Ifaces): Removed
11378 (RE_RC_Offset): Removed
11379 (RE_Static_Offset_To_Top): Removed
11381 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11383 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11384 Prim_Op_Count by Max_Predef_Prims.
11386 2007-08-14 Thomas Quinot <quinot@adacore.com>
11387 Vincent Celier <celier@adacore.com>
11389 * binde.adb (Elab_All_Links): Remove unnecessary call to
11390 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11391 won't be an associated Afile).
11392 (Elab_All_Links): Fail if a referenced unit cannot be found
11395 Fix comments in bindgen regarding consistency checks done in Bcheck:
11396 the checks are made across units within a partition, not across several
11398 Fix generation of C binder file for VxWorks.
11400 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11401 Generic_May_Lack_ALI, more descriptive of the current use of the
11402 predicate, and update documentation.
11404 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11405 reorganization and documentation update for the case of predefined
11406 library generics (for which we do not reference an Afile).
11408 2007-08-14 Robert Dewar <dewar@adacore.com>
11410 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11411 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11412 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11413 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11414 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11415 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11416 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11417 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11418 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11419 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11420 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11421 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11422 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11423 g-altcon.adb: Minor reformatting
11425 ada-tree.h: Delete empty line.
11427 ali.ads: Minor reformatting
11428 Clarification of comments.
11429 Minor spelling correction
11431 * exp_dbug.adb: Add Warnings Off to suppress new warning
11433 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11436 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11439 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11441 * a-textio.ads: Reorder the standard input/output/error declarations
11444 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11446 * par-ch2.adb: Recognize RM specially in errout
11447 Change 'R'M to RM in all error messages
11449 * scng.adb: Recognize RM specially in errout
11451 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11452 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11454 * s-direio.adb: Add missing routine header box.
11456 * sem_attr.ads: Add ??? comments
11458 * sem_eval.adb: Recognize RM specially in errout
11459 Change 'R'M to RM in all error messages
11461 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11463 * s-tasinf.ads: Fix minor comment typo.
11465 * a-cihama.adb: Minor comment addition
11467 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11470 * s-tasinf-tru64.ads: Fix minor comment typo.
11472 * itypes.ads: Comment update.
11474 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11477 * argv.c: Added protection against null gnat_argv and gnat_envp.
11479 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11480 warning message when Tolerate_Consistency_Errors is True.
11482 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11483 Any_Id, as this subprogram is only applicable to *type* entities (it
11484 sets RM_Size). Instead initialize just Esize and Alignment.
11486 2007-08-14 Bob Duff <duff@adacore.com>
11488 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11489 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11490 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11491 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11492 a-coorse.ads (Next): Applied pragma Inline.
11493 Make all Containers packages Remote_Types (unless they are already
11495 (Previous): applied pragma Inline
11496 (Elements_Type): is now a record instead of an array
11498 2007-08-14 Thomas Quinot <quinot@adacore.com>
11500 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11502 (Set_Item): When the new item is an element of the currently allocated
11503 table passed by reference, save a copy on the stack if we're going
11504 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11505 variable to determine whether to call Set_Last.
11507 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11508 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11509 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11510 some occurrences of the pattern
11512 T.Table (T.Last) := Value;
11513 with a cleaner call to
11516 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11517 Gary Dismukes <dismukes@adacore.com>
11518 Thomas Quinot <quinot@adacore.com>
11520 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11521 derived type with interface progenitors use the analyzed formal as the
11522 parent of the actual, to create renamings for all the inherited
11523 operations in Derive_Subprograms.
11524 (Collect_Previous_Instances): new procedure within of
11525 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11526 unit being loaded, to ensure that the generation of global symbols is
11527 consistent in different compilation modes.
11528 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11529 takes progenitor types into account.
11530 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11531 traversing over the primitives of the formal and actual types to locate
11532 any abstract subprograms of the actual type that correspond to a
11533 nonabstract subprogram of the formal type's ancestor type(s), and issue
11534 an error if such is found.
11535 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11536 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11537 Remove bogus guard around calls to Inherit_Context.
11538 (Reset_Entity): If the entity is the selector of a selected component
11539 that denotes a named number, propagate constant-folding to the generic
11540 template only if the named number is global to the generic unit.
11541 (Set_Instance_Env): Only reset the compilation switches when compiling
11542 a predefined or internal unit.
11544 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11546 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11547 parameter to determine whether operation applies to the prefix.
11548 (Complete_Object_Operation): If actual has an access type and
11549 controlling formal is not an in_parameter, reject the actual if it is
11550 an access_to_constant type.
11551 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11552 type, the candidate operations are found in the scope of declaration of
11553 the type, because the type has no primitive subprograms.
11554 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11555 a private extension, only examine visible components before trying to
11556 analyze as a prefixed call.
11557 Change Entity_List to Type_To_Use, for better readability.
11558 (Has_Fixed_Op): Use base type when checking whether the type of an
11559 operator has a user-defined multiplication/division
11560 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11561 user-defined operators are available for fixed-point types.
11563 2007-08-14 Thomas Quinot <quinot@adacore.com>
11564 Ed Schonberg <schonberg@adacore.com>
11566 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11567 formal At_Any_Place indicating, when True, that we want to test for
11568 availability of the stream attribute at any place (as opposed to the
11569 current visibility context only).
11570 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11571 purpose of enforcing E.2.2(8) only if it is not available at any place.
11572 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11573 when checking the legality of an extension aggregate in a preelaborable
11574 package. Treat the literal null as a valid default expression in a
11575 component declaration for a type with preelaborable initialization.
11576 A limited interface is a legal progenitor for the designated type of a
11577 remote access to class-wide type.
11579 2007-08-14 Thomas Quinot <quinot@adacore.com>
11580 Ed Schonberg <schonberg@adacore.com>
11582 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11583 reference): Use correct entity as denoted entity for the selector of
11584 the rewritten node.
11585 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11586 setting the Referenced_As_LHS flag for entities that are implicitly
11588 (Find_Type): If the type is an internally generated incomplete type,
11589 mark the full view as referenced, to prevent spurious warnings.
11590 (Find_Selected_Component, Has_Components): Handle properly non-limited
11591 views that are themselves incomplete types.
11592 Handle interfaces visible through limited-with clauses.
11593 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11594 subprogram generic actual for which we have generated a renaming.
11595 Warn when the renaming introduces a homonym of
11596 the renamed entity, and the renamed entity is directly visible.
11598 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11599 Hristian Kirtchev <kirtchev@adacore.com>
11601 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11602 appear in the subtree to the current allocator if it is not a static
11604 (Resolve_Allocator): Perform cleanup if resolution has determined that
11605 the allocator is not a coextension.
11606 (Resolve): Skip an interpretation hidden by an abstract operator only
11607 when the type of the interpretation matches that of the context.
11608 (Resolve): When looping through all possible interpretations of a node,
11609 do not consider those that are hidden by abstract operators.
11610 (Resolve_Actuals): When verifying that an access to class-wide object
11611 is an actual for a controlling formal, ignore anonymous access to
11612 subprograms whose return type is an access to class_wide type.
11613 (Resolve_Slice): If the prefix of the slice is a selected component
11614 whose type depends on discriminants, build its actual subtype before
11615 applying range checks on the bounds of the slice.
11616 (Valid_Conversion): In an instance or inlined body, compare root types,
11617 to prevent anomalies between private and public views.
11618 (Resolve): Improve error message for ambiguous fixed multiplication
11619 expressions that involve universal_fixed multiplying operations.
11621 2007-08-14 Javier Miranda <miranda@adacore.com>
11622 Hristian Kirtchev <kirtchev@adacore.com>
11624 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11625 location to allow the correct generation of errors in case of
11626 restrictions applied to the expanded code.
11627 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11628 function if the condition does not reference them.
11629 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11632 2007-08-14 Thomas Quinot <quinot@adacore.com>
11633 Pablo Oliveira <oliveira@adacore.com>
11635 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11636 typecode parameters for a union (in a variant record), remove
11637 extraneous layer of Any wrapping for member label.
11638 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11639 elabration statements, register the package with the name server
11640 at the beginning, not at the end, of the elaboration statements so
11641 that they can create remote access to subprogram values that designate
11642 remote subprograms from the package.
11644 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11646 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11647 values to compute the number of seconds since the Unix Epoc in order to
11648 account for Daylight Savings Time. Perform special processing for dates
11649 that are earlier than the Unix Epoc to obtain a negative number.
11651 2007-08-14 Emmanuel Briot <briot@adacore.com>
11653 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11656 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11658 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11659 binder-generated file is not in Ada.
11660 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11661 recorded in the ALI file.
11662 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11664 2007-08-14 Vincent Celier <celier@adacore.com>
11666 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11667 (Output_Source): Do nothing if parameter is No_Sdep_Id
11669 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11670 shared library it imports has a later time stamp.
11671 (Check): Resolve the symbolic links in the path name of the object
11673 Check that the ALI file is in the correct object directory
11674 Check if a file name does not correspond to the mapping of units
11676 (Display_Version): New procedure
11677 (Initialize): Process switches --version and --help
11678 Use type Path_Name_Type for path name
11680 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11682 * impunit.adb: Re-organize System.Random_Numbers and
11683 GNAT.Random_Numbers and add to builds.
11685 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11687 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11689 * a-assert.ads, a-assert.adb: New files.
11691 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11693 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11694 if AAMP_On_Target is True, then the size of the type encompasses two
11695 addresses (a static link and a subprogram address), except in the case
11696 of library-level access types.
11698 2007-08-14 Vincent Celier <celier@adacore.com>
11700 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11702 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11703 possible trailing spaces.
11704 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11706 2007-08-14 Javier Miranda <miranda@adacore.com>
11708 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11709 null-excluding access types.
11711 2007-08-14 Javier Miranda <miranda@adacore.com>
11713 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11714 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11715 of private types add missing check on matching interfaces in the
11716 partial and full declarations.
11717 (Analyze_Protected_Type): Code cleanup.
11718 (Analyze_Task_Type): Code cleanup.
11720 2007-08-14 Javier Miranda <miranda@adacore.com>
11722 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11723 generated interface thunk.
11725 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11727 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11728 obsolescent warning on application of 'Class to an incomplete type.
11730 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11731 prevent obsolescent warning on application of 'Class to an incomplete
11734 2007-08-14 Pascal Obry <obry@adacore.com>
11736 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11739 2007-08-14 Cyrille Comar <comar@adacore.com>
11741 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11742 since it is potentially used in cases implying double finalization of
11745 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11747 * s-tasini.adb (Get_Stack_Info): Move this function to
11748 System.Soft_Links.Tasking because it is common to the full and the
11749 restricted run times.
11750 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11751 in SSL.Tasking.Init_Tasking_Soft_Links.
11753 * s-solita.adb (Get_Stack_Info): Function moved from
11754 System.Tasking.Initialization because it is common to the full and the
11755 restricted run times.
11756 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11758 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11760 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11761 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11762 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11765 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11768 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11770 * s-veboop.adb (SU): New named number initialized to
11771 System.Storage_Unit.
11772 (True_Val): The initialization expression is revised to use SU (=
11773 Storage_Unit) rather than assuming 8 for the component size of an
11774 unpacked Boolean array.
11776 2007-08-14 Tristan Gingold <gingold@adacore.com>
11778 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11780 * tb-ivms.c: New file.
11782 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11784 2007-08-14 Geert Bosch <bosch@adacore.com>
11786 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11787 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11788 Add required linker pragmas for automatically linking with the gnalasup
11789 linear algebra support library, and the systems math library.
11790 Rename cdot to cdotu and zdot to zdotu.
11791 Update header comment to describe purpose of package.
11793 2007-08-14 Thomas Quinot <quinot@adacore.com>
11795 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11796 an explicitly specified Associated_Final_Chain, use that list.
11797 (Expand_N_Package_Body): Build dispatch tables of library level tagged
11799 (Expand_N_Package_Declaration): Build dispatch tables of library level
11800 tagged types. Minor code cleanup.
11802 2007-08-14 Vincent Celier <celier@adacore.com>
11804 * gnatchop.adb (Terminate_Program): Remove exception and use
11805 Types.Terminate_Program instead.
11807 * osint.ads, osint.adb (Current_Exit_Status): New global variable
11808 (Find_Program_Name): Added protection against empty name.
11809 (OS_Exit_Through_Exception): New procedure
11811 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11812 (OS_Exit_Default): New procedure that contains the previous
11813 implementation of procedure OS_Exit.
11814 (Final_Value): Remove obsolete Interix stuff.
11816 2007-08-14 Thomas Quinot <quinot@adacore.com>
11818 * g-socket.ads: Reorganize example code so that it also works on
11821 2007-08-14 Tristan Gingold <gingold@adacore.com>
11823 * g-trasym.ads: AIX now supports symbolic backtraces.
11825 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11827 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11828 units being loaded to detect circularities. A circularity may be
11829 present even if the current chain of pending units to load starts from
11830 a limited_with_clause.
11832 * lib-load.ads: Change profile of Load_Unit to use a with_clause
11833 rather than a boolean flag, in order to detect circularities in
11836 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11837 than propagating the From_Limited_With flag, in order to handle
11838 properly circularities involving with_clauses.
11840 2007-08-14 Nicolas Setton <setton@adacore.com>
11842 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11845 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11847 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11848 to build for libgnala.
11849 libgnat: Add rules to build libgnala.a
11850 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11851 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11852 Add s-osinte-vxworks-kernel.adb to the target pairs of the
11853 kernel run-time lib for VxWorks 6, which would provide a different
11854 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11855 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11856 running ZCX by default.
11857 Add g-sttsne-locking to LynxOS version.
11858 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11859 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11861 * system-darwin-x86.ads: New file.
11863 * Make-lang.in: Delete files before copying onto them, so if they are
11864 read-only, the copy won't fail.
11865 Update dependencies
11867 2007-08-14 Pascal Obry <obry@adacore.com>
11869 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11872 2007-08-14 Vincent Celier <celier@adacore.com>
11874 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11875 (Gcc): Initialize Gcc_Name at the first call
11877 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11879 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11880 with_clauses of the enclosing unit when analyzing the package
11881 specification of a nested instance.
11883 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11885 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11886 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11887 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11888 layout of N_Allocator.
11890 2007-08-14 Thomas Quinot <quinot@adacore.com>
11892 * rtsfind.adb (Check_RPC): Add PCS version check.
11894 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11895 (Gnat_Free_Software): New function.
11897 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11898 the PCS_Version value from s-parint, used to check that it is consistent
11899 with what exp_dist expects.
11901 * s-parint.ads (PCS_Version): New entity for checking consistency
11902 between exp_dist and PCS.
11904 * gen-soccon.c: (SO_REUSEPORT): New constant.
11906 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11908 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11909 variable Sub_Second to Duration in order to accomodate a larger range
11910 of arithmetic operations.
11912 2007-08-14 Bob Duff <duff@adacore.com>
11914 * g-sttsne-locking.ads: Move comments from spec to body.
11915 * g-sttsne-locking.adb: Move comments from spec to body.
11916 * g-sttsne-vxworks.ads: Removed.
11917 * g-sttsne-vxworks.adb: Removed.
11919 2007-08-11 Ian Lance Taylor <iant@google.com>
11921 * misc.c (gnat_get_alias_set): Change return type to
11924 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11926 * decl.c, utils2.c: Fix whitespace in last change.
11928 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11930 * decl.c (compare_field_bitpos): Constify.
11931 * utils2.c (compare_elmt_bitpos): Likewise.
11933 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
11935 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11936 anonymous access type.
11937 (pthread_sigmask): Now take an access sigset_t.
11939 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11941 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11943 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
11945 PR tree-optimization/25737
11946 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11948 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
11950 * trans.c (Attribute_to_gnu): When subtracting an
11951 offset from a pointer, use POINTER_PLUS_EXPR with
11952 NEGATE_EXPR instead of MINUS_EXPR.
11953 (gnat_to_gnu): Likewise.
11954 * utils.c (convert): When converting between
11955 thin pointers, use POINTER_PLUS_EXPR and sizetype
11957 * utils2.c (known_alignment): POINTER_PLUS_EXPR
11958 have the same semantics as PLUS_EXPR for alignment.
11959 (build_binary_op): Add support for the semantics of
11960 POINTER_PLUS_EXPR's operands.
11961 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11963 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
11965 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11966 of get_signed_or_unsigned_type.
11967 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11969 2007-06-11 Bob Duff <duff@adacore.com>
11970 Thomas Quinot <quinot@adacore.com>
11972 * g-stsifd-sockets.adb (Create): Work around strange behavior of
11973 'bind' on windows that causes 'connect' to fail intermittently, by
11974 retrying the 'bind'.
11975 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11977 2007-06-10 Duncan Sands <baldrick@free.fr>
11979 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11980 than to void, for the fields when making a new fat pointer type.
11981 (gnat_substitute_in_type): Now substitute_in_type.
11982 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
11983 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11984 * utils.c (update_pointer_to): Update fat pointers by updating the
11985 dummy node pointers used for the fields.
11987 2007-06-06 Thomas Quinot <quinot@adacore.com>
11988 Bob Duff <duff@adacore.com>
11990 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11991 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11992 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
11993 constant Thread_Blocking_IO, always True by default, set False
11994 on a per-runtime basis.
11995 (Need_Netdb_Buffer): New constant.
11997 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11998 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12001 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12002 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12003 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12004 child package Task_Safe_NetDB
12005 (Host_Error_Messages): Add stub body.
12006 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12008 * g-soccon-mingw.ads: Add Windows-specific constants.
12009 (Need_Netdb_Buffer): New constant.
12010 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12011 wrapper and import inet_addr(3) from the standard sockets library
12013 (In_Addr): Add alignment clause.
12014 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12016 2007-06-06 Robert Dewar <dewar@adacore.com>
12018 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12019 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12020 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12021 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12022 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12023 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12024 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12025 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12026 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12027 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12028 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12029 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12030 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12031 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12032 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12033 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12034 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12035 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12036 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12037 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12038 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12039 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12040 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12041 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12042 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12043 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12044 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12045 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12046 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12047 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12048 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12049 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12050 Unchecked_* by Ada.Unchecked_*
12052 2007-06-06 Robert Dewar <dewar@adacore.com>
12054 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12055 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12056 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12057 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12058 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12059 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12061 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12062 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12063 s-tasloc.adb, s-tasloc.ads: New files.
12065 2007-06-06 Bob Duff <duff@adacore.com>
12067 * g-expect-vms.adb:
12068 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12069 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12070 (Send_Signal, Close): Raise Invalid_Process if the process id is
12072 (Pattern_Matcher_Access): Is now a general access type to be able to
12073 use aliased string.
12075 2007-06-06 Thomas Quinot <quinot@adacore.com>
12076 Arnaud Charlet <charlet@adacore.com>
12078 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12079 (SIGEMT is now used instead of SIGTERM on AIX).
12081 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12082 (Time_Slice_Supported): Set to True.
12083 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12085 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12087 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12088 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12089 express the bounds of Duration as Time. Raise Time_Error when the
12090 result is greater or equal to the higher bound of Duration (on the
12092 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12093 Ada_High_And_Leaps.
12094 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12095 Ada_High_And_Leaps.
12096 ("-" (Time, Time)): Reorder code.
12097 (All_Leap_Seconds): Removed.
12098 (Arithmetic_Operations.Add): Remove sign related kludge.
12099 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12100 with flag Leap_Support.
12101 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12102 (Check_Within_Time_Bounds): New procedure.
12103 (Clock): Control the leap seconds processing with flag Leap_Support.
12104 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12105 (Formatting_Operations.Split): Control the leap seconds processing with
12107 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12108 with flag Leap_Support. Adjust the year, month and day (if applicable)
12109 when the value of day seconds designates a new day.
12110 (Split): Use parameter associations for better readability. Integrate
12112 (Time_Of): Use parameter associations for better readability. Integrate
12115 * a-calfor.adb (Split): Use parameter associations for better
12116 readability. Integrate flag Is_Ada_05.
12117 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12118 better readability. Integrate flag Is_Ada_05.
12120 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12122 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12123 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12124 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12125 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12126 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12127 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12128 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12129 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12130 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12131 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12132 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12133 time when entering this routine to detect a backward clock setting
12134 (manual setting or DST adjustment), to avoid waiting for a longer delay
12136 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12137 Remove handling of deferred priority change, and replace by setting the
12138 task priority directly, as required by AI-188.
12140 (Max_Task_Image_Length): New constant.
12141 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12142 (Dynamic_Priority_Support): Removed, no longer needed.
12143 (Poll_Base_Priority_Change): Ditto.
12144 (Set_Ceiling): Add this procedure to change the ceiling priority
12145 associated to a lock. This is a dummy implementation because dynamic
12146 priority ceilings are not supported by the underlying system.
12148 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12149 accepting a RV with its priority boosted.
12150 Remove handling of deferred priority change, and replace by setting the
12151 task priority directly, as required by AI-188.
12153 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12155 Remove handling of deferred priority change, and replace by setting the
12156 task priority directly, as required by AI-188.
12157 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12158 of Self_Id earlier.
12160 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12161 (Poll_Base_Priority_Change): Removed.
12162 Code clean up: use SSL.Current_Target_Exception.
12164 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12165 to run as this is a potentially dispatching point.
12166 (Call_Synchronous): Use Local_Defer_Abort.
12167 (Callable): Relax assertion.
12168 (Selective_Wait): Relax assertion in case abort is not allowed.
12169 Remove handling of deferred priority change, and replace by setting the
12170 task priority directly, as required by AI-188.
12172 * s-tasuti.adb (Make_Passive): Adjust assertions.
12173 Remove handling of deferred priority change, and replace by setting the
12174 task priority directly, as required by AI-188.
12176 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12178 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12179 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12180 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12181 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12182 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12183 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12184 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12185 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12186 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12187 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12188 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12189 This patch changes the largest non-binary modulus from 2**31-1 to
12191 (Compiler_System_Version): Removed, no longer used.
12192 Clean up system files by removing flags only used on a single target.
12193 Also remove obsolete flags, only used during bootstrap from system.ads
12194 (Address): Add a pragma Preelaborable_Initialization.
12196 * system-aix.ads: Ditto.
12197 (GCC_ZCX_Support): Set to true.
12198 Update priority range on AIX and map Ada priorities to target
12199 priorities appropriately for different scheduling policies.
12201 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12203 2007-06-06 Vincent Celier <celier@adacore.com>
12205 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12206 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12208 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12209 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12210 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12211 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12212 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12213 MLib.Tgt, containing the default versions of the exported subprograms.
12214 For each platform, create a specific version of the body of new child
12215 package MLib.Tgt.Specific that contains only the body of subprograms
12216 that are different from the default.
12217 (Archive_Builder_Append_Options): New function.
12219 2007-06-06 Matthew Gingell <gingell@adacore.com>
12221 * s-osinte-aix.adb: Map Ada priorities to target priorities
12222 appropriately for different scheduling policies.
12224 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12226 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12228 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12229 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12231 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12233 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12234 Noop on VMS, added for interface commonality.
12236 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12237 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12238 Olivier Hainque <hainque@adacore.com>
12240 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12241 renamed expression of a full renaming at toplevel.
12242 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12243 the values the constant is initialized to if it is an N_Allocator.
12244 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12245 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12246 (make_aligning_type): Accept an extra ROOM argument for storage to be
12247 made available before the aligned field, and an extra BASE_ALIGN
12248 argument for callers to pass the alignment guaranteed to be honored for
12249 the whole aligning object. Avoid call to finish_record_type, which only
12250 interferes with the sizes we want to set.
12251 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12252 make_aligning_type for super-aligned objects on stack.
12253 (components_to_record): Pass the adjusted size of the type when creating
12254 fields in the qualified union for the variant part.
12255 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12256 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12258 (maybe_pad_type): Set TYPE_USER_ALIGN.
12259 (make_aligning_type): Likewise.
12260 ALIGN argument is unsigned int.
12261 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12262 (gnat_to_gnu_param): Likewise, for parameters.
12263 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12264 if it is constant and stems from a function call.
12265 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12266 of the record is specified. Adjust accordingly.
12267 (adjust_packed): New static function.
12268 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12269 (components_to_record): Likewise.
12270 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12271 side-effects if the object is deemed constant.
12272 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12273 type instead of merely finalizing it. Tidy.
12274 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12275 <E_Access_Type>: Likewise.
12276 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12277 (defer_debug_level): Delete.
12278 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12279 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12281 <E_Record_Type>: Do not explicitly defer finalizing the type.
12282 Adjust for write_record_type_debug_info renaming.
12283 <E_Subprogram_Type>: Likewise.
12284 Finalize deferred types right after deferred incomplete types are
12286 (rest_of_type_decl_compilation): New global function.
12287 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12288 (components_to_record): Propagate the packedness to the fields of the
12289 qualified union type if there is a variant part.
12290 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12291 instead of inline code to adjust the XUT field offsets.
12292 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12293 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12294 and write the debug info if the type derives from a discriminated one.
12295 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12296 <E_Array_Subtype>: Likewise.
12297 <E_String_Literal_Subtype>: Likewise.
12298 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12299 an alignment clause.
12300 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12301 before giving warning.
12302 (prepend_one_attribute_to): New function, helper to prepend an attribute
12303 to an attribute list.
12304 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12305 (prepend_attributes): Likewise.
12306 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12307 <E_Array_Type>: Declare the padding type for the element type, if any.
12308 <E_Array_Subtype>: Likewise.
12309 (defer_limited_with): New variable.
12310 (Gigi_Equivalent_Type): New function.
12311 (gnat_to_gnu_entity): Use it at start and use result throughout.
12312 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12313 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12314 indirection, precompute if unconstrained array to simplify logic, and
12315 use defer_limited_with to defer elaboration of some types from limited
12317 (finalize_from_with_types): New function.
12319 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12320 Eric Botcazou <ebotcazou@adacore.com>
12321 Tristan Gingold <gingold@adacore.com>
12322 Olivier Hainque <hainque@adacore.com>
12324 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12325 adding guard that the entity is an E_Constant before testing presence
12326 of Full_view (and remove unnecessary test that entity is not a type).
12327 For a CONST_DECL used by reference, manually retrieve
12328 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12329 (struct language_function): Move from utils.c to here.
12330 (struct parm_attr): New structure.
12331 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12332 (f_parm_attr_cache): New macro.
12333 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12334 expressions for the 'First, 'Last and 'Length attributes of the
12335 unconstrained array IN parameters.
12336 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12337 Allocate the information structure for the function earlier, as well
12338 as the language-specific part.
12339 If the parameter attributes cache has been populated, evaluate the
12340 cached expressions on entry.
12341 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12342 N_Procedure_Call_Statement and N_Indexed_Component.
12343 (Pragma_to_gnu): Translate inspection_point to an asm statement
12344 containaing a comment and a reference to the object (either its address
12345 for BLKmode or its value).
12346 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12347 to go to DECL_INITIAL. Together with the size constraint relaxation
12348 in create_var_decl, enlarges the set of situations in which an
12349 identifier may be used as an initializer without implying elaboration
12351 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12352 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12354 (maybe_stabilize_reference): Remove lvalues_only parameter.
12355 (gnat_stabilize_reference): Adjust for above change.
12356 (gnat_to_gnu): Do not set location information on the result
12357 if it is a reference.
12358 (add_cleanup): Add gnat_node parameter and set the location of the
12360 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12361 (Exception_Handler_to_gnu_zcx): Likewise.
12362 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12363 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12364 the former right after the latter.
12365 (start_stmt_group): Make global.
12366 (end_stmt_group): Likewise.
12367 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12369 (gnu_program_error_label_stack): Likewise.
12370 (gigi): Initialize them.
12371 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12372 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12374 (push_exception_label_stack): New function.
12375 (takes_address): New function.
12377 * utils.c (struct language_function): Move to trans.c from here.
12378 (unchecked_convert): Do not wrap up integer constants in
12379 VIEW_CONVERT_EXPRs.
12380 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12381 the latter for aggregate types, unexpected by later passes, and relax an
12382 arbitrary size constraint on the former.
12383 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12384 to compare the sizes.
12385 (convert_vms_descriptor): When converting to a fat pointer type, be
12386 prepared for a S descriptor at runtime in spite of a SB specification.
12387 (shift_unc_components_for_thin_pointers): New function.
12388 (write_record_type_debug_info): For variable-sized fields, cap the
12389 alignment of the pointer to the computed alignment.
12390 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12391 If REP_LEVEL is 2, do not compute the sizes.
12392 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12393 (build_unc_object_type): Likewise.
12394 (declare_debug_type): New function.
12396 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12398 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12399 no statement is expandable anymore.
12400 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12401 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12402 when the user requested it explicitely.
12403 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12405 (get_alias_set): Return alias set 0 for a type if
12406 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12408 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12409 (DECL_FUNCTION_STUB): New accessor macro.
12410 (SET_DECL_FUNCTION_STUB): New setter macro.
12412 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12414 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12417 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12419 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12420 Rename to Abort_Task_Interrupt to be able to keep the same interface
12421 as the rest of the targets.
12423 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12424 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12426 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12429 2007-06-06 Robert Dewar <dewar@adacore.com>
12431 * a-chahan.ads: Remove obsolescent pragmas
12433 * a-chlat1.ads: Minor reformatting
12435 2007-06-06 Robert Dewar <dewar@adacore.com>
12437 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12440 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12443 * errout.ads (Finalize): Changed interface
12444 (Output_Messages): New procedure
12445 (Compilation_Errors): New Interface
12447 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12448 Finalize/Output_Messages interface for Errout
12449 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12452 2007-06-06 Thomas Quinot <quinot@adacore.com>
12453 Olivier Hainque <hainque@adacore.com>
12454 Robert Dewar <dewar@adacore.com>
12456 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12458 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12459 propagation starts, to let debuggers know about the event in a reliable
12461 (Local_Raise): Moved to System.Exceptions
12462 More convenient to have this as a separate unit
12464 * s-except.adb, s-except.ads: New files.
12466 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12467 Debug_Unhandled_Exception in System.Exceptions where it belongs
12468 together with a couple of other debug helpers.
12469 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12470 the former Unhandled_Exception.
12472 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12473 (Warn_No_Exception_Propagation): New procedure
12474 (Warn_If_No_Propagation): Rewritten for new warning generation
12475 (Expand_Exception_Handlers): New warning generation
12476 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12477 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12478 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12479 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12480 even if restriction is set (makes life easier in Check_Returns)
12481 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12482 checking exception identities.
12483 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12484 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12485 block for handler (used by Check_Returns)
12486 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12487 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12488 remove all exception handlers when optimizing local raise statements.
12489 (Find_Local_Handler): Use Get_Renamed_Entity
12490 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12491 marked analyzed after expanding exception handlers, do not generate
12492 redundant cleanup actions, because they have been constructed already.
12494 2007-06-06 Thomas Quinot <quinot@adacore.com>
12496 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12497 presence of this categorization pragma is mandated by the language.
12498 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12501 2007-06-06 Vincent Celier <celier@adacore.com>
12502 Robert Dewar <dewar@adacore.com>
12504 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12505 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12506 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12507 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12508 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12509 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12510 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12511 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12512 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12513 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12514 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12516 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12517 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12518 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12519 Use variables of types File_Name_Type and Unit_Name_Type in error
12521 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12522 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12524 Define flags Flag217-Flag230 with associated subprograms
12525 (Flag_Word5): New record type.
12526 (Flag_Word5_Ptr): New access type.
12527 (To_Flag_Word5): New unchecked conversion.
12528 (To_Flag_Word5_Ptr): Likewise.
12529 (Flag216): New function.
12530 (Set_Flag216): New procedure.
12532 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12534 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12537 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12539 2007-06-06 Javier Miranda <miranda@adacore.com>
12541 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12543 (Object_Specific_Data_Array): This is now internal to the package.
12544 (Object_Specific_Data): This is now internal to the package.
12545 (Select_Specific_Data_Element): This is now internal to the package.
12546 (Select_Specific_Data_Array): This is now internal to the package.
12547 (Select_Specific_Data): This is now internal to the package.
12548 (Offset_To_Top_Function_Ptr): This is now public.
12549 (To_Offset_To_Top_Function_Ptr): Removed.
12550 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12551 local to subprogram Offset_To_Top.
12552 (Predefined_DT): Removed.
12553 (Typeinfo_Ptr): Removed.
12554 (OSD): This function is now internal to this package.
12555 (SSD): This function is now internal to this package.
12556 (DT): New function that displaces the pointer to the table of primitives
12557 to get access to the enclosing wrapper record.
12558 (IW_Membership): Code cleanup.
12559 (Offset_To_Top): Code cleanup.
12560 (Predefined_DT): Removed.
12561 (Register_Interface_Tag): Removed.
12562 (Set_Interface_Table): Removed.
12563 (Set_Offset_Index): Removed.
12564 (Set_Offset_To_Top): Code cleanup.
12565 (Set_OSD): Removed.
12566 (Set_Signature): Removed.
12567 (Set_SSD): Removed.
12568 (Set_Tagged_Kind): Removed.
12569 (Typeinfo_Ptr): Removed.
12571 (Displace): Add missing check on null actual.
12573 * exp_disp.ads, exp_disp.adb
12574 (Select_Expansion_Utilities): Removed.
12575 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12576 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12577 the interface requires a new parameter.
12578 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12579 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12580 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12581 Done to remove package Select_Expansion_Utilities.
12582 (Make_DT): New implementation for statically allocated dispatch tables.
12583 (Make_Secondary_DT): Moved to the scope of Make_DT.
12584 (Register_Primitive): Code cleanup plus incoporate the use of the new
12585 function DT_Address_Attribute.
12586 (Expand_Interface_Thunk): The profile of this subprogram has been
12587 changed to return the Thunk_Id and the corresponding code.
12588 (Fill_DT_Entry): Removed. Its functionality is now provided by
12589 subprogram Register_Primitive.
12590 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12591 subprogram Register_Primitive.
12592 (Register_Primitive): New subprogram that incorporates the previous
12593 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12594 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12595 was only required to call Make_DT_Access_Action, which is now removed.
12596 (Ada_Actions): Removed
12597 (Action_Is_Proc): Removed
12598 (Action_Nb_Arg): Removed
12599 Replace all the calls to Make_DT_Access_Action by direct calls to
12600 Make_Procedure_Call_Statement or Make_Function_Call.
12601 (Set_DTC_Entity_Value): New subprogram.
12602 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12603 (Expand_Interface_Thunk): Add missing support for primitives that are
12604 functions with a controlling result (case in which there is no need
12605 to generate the thunk).
12607 * exp_atag.ads, exp_atag.adb
12608 (Build_DT): New subprogram that displaces the pointer to reference the
12609 base of the wrapper record.
12610 (Build_Typeinfo_Offset): Removed.
12611 (RTE_Tag_Node): Removed.
12612 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12613 (Build_Get_RC_Offset): Removed.
12614 (Build_Inherit_Predefined_Prims): Removed.
12615 (Build_Inherit_TSD: Removed.
12616 (Build_New_TSD): Removed.
12617 (Build_Set_External_Tag): Removed.
12618 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12619 (Build_Set_Prim_Op_Address): Add documentation.
12620 (Build_Set_TSD): Removed.
12622 * rtsfind.ads, rtsfind.adb
12623 (Load_Fail): If load fails and we are not in configurable run-time
12624 mode, then raise Unrecoverable_Error.
12625 (Text_IO_Kludge): Generate an error message if a run-time library is
12626 not available in a given run-time (ie. zfp run-time).
12627 (RTE_Record_Component): Add code to check that the component we search
12628 for is not found in two records in the given run-time package.
12629 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12630 (RE_DT_Predef_Prims_Offset): New entity
12631 (RE_Static_Offset_To_Top): New entity
12632 (RE_HT_Link): New entity.
12633 (System_Address_Image): Addition of this run-time package.
12634 (RE_Address_Image): New entity.
12635 (RE_Abstract_Interface): Removed.
12636 (RE_Default_Prim_Op_Count): Removed.
12637 (RE_DT_Entry_Size): Removed.
12638 (RE_DT_Min_Prologue_Size): Removed.
12639 (RE_DT_Prologue_Size): Removed.
12640 (RE_Ifaces_Table_Ptr): Removed.
12641 (RE_Interface_Data_Ptr): Removed.
12642 (RE_Type_Specific_Data): Removed.
12643 (RE_Primary_DT): Removed.
12644 (RE_Register_Interface_Tag): Removed.
12645 (RE_Set_Offset_Index): Removed.
12646 (RE_Set_OSD): Removed.
12647 (RE_Set_SSD): Removed.
12648 (RE_Set_Signature): Removed.
12649 (RE_Set_Tagged_Kind): Removed.
12650 (RE_Address_Array): New entity.
12651 (RE_DT): New entity.
12652 (RE_Iface_Tag): New entity.
12653 (RE_Interfaces_Table): New entity.
12654 (RE_No_Dispatch_Table): New entity.
12655 (RE_NDT_Prims_Ptr): New entity.
12656 (RE_NDT_TSD): New entity.
12657 (RE_Num_Prims): New entity.
12658 (RE_Offset_To_Top_Function_Ptr): New entity.
12659 (RE_OSD_Table): New entity.
12660 (RE_OSD_Num_Prims): New entity.
12661 (RE_Predef_Prims): New entity
12662 (RE_Predef_Prims_Table_Ptr): New entity.
12663 (RE_Primary_DT): New entity.
12664 (RE_Signature): New entity.
12665 (RE_SSD): New entity.
12666 (RE_TSD): New entity.
12667 (RE_Type_Specific_Data): New entity.
12668 (RE_Tag_Kind): New entity.
12670 2007-06-06 Thomas Quinot <quinot@adacore.com>
12672 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12673 C imported variable.
12674 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12677 2007-06-06 Robert Dewar <dewar@adacore.com>
12679 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12682 2007-06-06 Vincent Celier <celier@adacore.com>
12684 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12685 is room for at least one digit and the minus sign.
12686 (Put.Put_Character): Never put a character outside of the range of
12689 2007-06-06 Olivier Hainque <hainque@adacore.com>
12690 Eric Botcazou <ebotcazou@adacore.com>
12692 * utils2.c (build_allocator): Provide the extra arguments to
12693 make_aligning_type for super-aligned objects allocated from the default
12694 pool. Leave enough room for a pointer before the aligning field, and
12695 store the system's allocator return value there.
12696 (build_call_alloc_dealloc): When releasing a super-aligned object,
12697 retrieve the system's allocator return value from where build_allocator
12698 has stored it, just ahead of the adjusted address we are passed.
12699 (build_call_raise): Handle properly the generation of line numbers when
12700 the node is marked No_Location.
12701 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12702 by using DECL_UID on ties.
12703 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12705 (build_call_raise): Handle converting exception into goto; support new
12707 (build_component_ref): Add new arg to build_call_raise.
12709 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12711 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12712 "." in the case of nnn.xxx when nnn terminates with an underscore.
12713 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12715 2007-06-06 Robert Dewar <dewar@adacore.com>
12717 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12719 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12720 Vincent Celier <celier@adacore.com>
12721 Robert Dewar <dewar@adacore.com>
12723 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12725 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12726 ((destructor)) for adafinal, even when switch -a is used.
12727 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12729 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12730 Output_Linker_Option_List is set. Suppress this formatting when
12731 Zero_Formatting is set.
12732 Add case for CLI_Target.
12733 (System_Restrictions_Used): New flag, used to avoid generating with of
12734 System_Restrictions and initialization of the data unless there is
12735 some use of System.Restrictions in the partition.
12736 (Check_System_Restrictions_Used): New procedure
12738 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12739 since we only with this unit in the binder file if it is used elsewhere
12742 2007-06-06 Vincent Celier <celier@adacore.com>
12744 * bindusg.adb: Add line for @<response file>
12745 Add lines for new switches -R and -Z
12747 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12748 hierarchy in the list of files of the closure when -R is used
12749 (Gnatbind): Accept arguments starting with '@' to indicate response
12750 files and take the arguments from the response files.
12751 If List_Closure is set, display the referenced files
12753 2007-06-06 Javier Miranda <miranda@adacore.com>
12754 Robert Dewar <dewar@adacore.com>
12755 Ed Schonberg <schonberg@adacore.com>
12757 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12758 which the address-clause is applied to in-mode actuals (allowed by
12760 (Apply_Discriminant_Check): Do not generate a check if the type is
12761 constrained by a current instance.
12762 (Activate_Division_Check): New procedure
12763 (Activate_Overflow_Check): New procedure
12764 (Activate_Range_Check): New procedure
12765 Call these new Activate procedures instead of setting flags directly
12766 (Apply_Array_Size_Check): Removed, no longer needed.
12767 Code clean up: remove obsolete code related to GCC 2.
12768 (Get_E_Length): Protect against bomb in case scope is standard
12769 (Selected_Range_Checks): If the node to be checked is a conversion to
12770 an unconstrained array type, and the expression is a slice, use the
12771 bounds of the slice to construct the required constraint checks.
12772 Improve NOT NULL error messages
12773 (Apply_Constraint_Check): If the context is a null-excluding access
12774 type, diagnose properly the literal null.
12776 2007-06-06 Pascal Obry <obry@adacore.com>
12778 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12779 and the corresponding .deps file.
12780 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12781 src directory. Minor code-clean-up. Use untouched casing for files
12782 read into the library src dir.
12783 (Clean_Library_Directory): Idem.
12784 (Parse_Cmd_Line): Accept new switch -aP
12786 2007-06-06 Javier Miranda <miranda@adacore.com>
12787 Ed Schonberg <schonberg@adacore.com>
12788 Robert Dewar <dewar@adacore.com>
12789 Eric Botcazou <ebotcazou@adacore.com>
12790 Arnaud Charlet <charlet@adacore.com>
12792 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12793 applicable to types that have the With_Type flag set. Returns the
12794 non-limited view of the type, if available, otherwise the type itself.
12795 For class-wide types, there is no direct link in the tree, so we have
12796 to retrieve the class-wide type of the non-limited view of the Etype.
12797 New attributes Static_Initialization and Static_Elaboration_Desired.
12798 Remove the pragma Thread_Body, and the associated flag
12799 Is_Thread_Body in entities, and all related code.
12800 (Suppress_Value_Tracking_On_Call): New flag
12801 E_Exception has Esize and Alignment fields
12802 (Universal_Aliasing): New function.
12803 (Set_Universal_Aliasing): New procedure.
12804 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12805 (Check_Nested_Access): New procedure.
12806 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12807 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12808 (Related_Interface): New attribute. Present in dispatch table pointer
12809 components of records. Set to point to the entity of the corresponding
12811 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12812 (Original_Access_Type): Remove, not needed.
12813 (Root_Type): Handle properly subtypes of class-wide-types.
12816 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12817 class-wide types visible through limited-with clauses.
12818 (Try_Primitive_Operation): When examining all primitive operations of a
12819 tagged type, do not consider subprograms labeled as hidden unless they
12820 belong to a private generic type with a tagged parent.
12821 (Try_Object_Operation): Extensive rewriting, to handle properly various
12822 overloading cases, when several ancestors may have class-wide operations
12823 that are possible candidates, and when the overloaded functions return
12824 array types and have defaulted parameters so that the call may be
12825 interpreted as an indexing.
12826 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12827 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12828 successive actuals before analyzing the call itself.
12829 (Try_Primitive_Operation): A primitive operation is compatible with the
12830 prefix if the prefix has a synchronized type and the type of the formal
12831 is its corresponding record, as can be the case when the primitive
12832 operation is declared outside of the body of the type.
12833 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12834 perform homonym traversal, looking for class-wide operation matches
12835 (formerly done in statements of Try_Class_Wide_Operation). Matches on
12836 access parameters are now restricted to anonymous access types.
12837 (Mark_Allocator): An allocator with a discriminant association parent is
12839 (Try_One_Prefix_Interpretation): If the type of the object is
12840 incomplete, as can be happen when it is a limited view obtained through
12841 a limited_with_clause, the selected component is not part of a prefixed
12843 (Complete_Object_Operation): Diagnose properly an object that is not
12844 aliased when the corresponding controlling formal is an access
12846 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12847 ambiguous calls in prefixed notation, where two primitives differ only
12848 in that the controlling argument of one is an access parameter.
12850 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12851 whether a function that returns an unconstrained type can be inlined.
12852 (Process_Formals): Diagnose properly the illegal use of an incomplete
12853 type in the profile of an access_to_subprogram declaration.
12854 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12855 operations are attached to the corresponding record.
12856 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12857 When processing a primitive of a concurrent type which implements an
12858 interface change the type of all controlling formals to that of the
12859 corresponding record type.
12860 (Check_Synchronized_Overriding): Relax the conditional logic when trying
12861 to determine the tagged type to which a primitive belongs.
12862 (Check_Conventions): Capture condition to ignore a primitive operation
12863 (which is shared between the loop in Check_Conventions and the one in
12864 Check_Convention) in a new local function Skip_Check.
12865 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12866 confusion with Check_Conventions' own Prim_Op local variable.
12867 (Create_Extra_Formals): Test for a tagged result type rather than a
12868 controlling result when determining whether to add a BIP_Alloc_Form
12869 formal and a BIP_Final_List formal to the function.
12870 (Check_Conformance); For parameters that are anonymous access types,
12871 subtype conformance requires that the not null and the constant
12872 indicators must match
12873 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12874 to retrieve the appropriate type when processing a concurrent type
12875 declared within a generic. Minor comment reformatting. Change invocation
12876 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12878 (Analyze_Subprogram_Body): If the return type of a function is an
12879 anonymous access to the limited view of a class-wide type, and the
12880 non-limited view of the type is available, update the type of the
12881 function so that code can be generated.
12882 (Process_Formals): In case of access-subtype itype whose designated
12883 type is also an itype (situation that happens now with access to
12884 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12885 attribute to avoid backend problems.
12886 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12887 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12888 anonymous types' designated types are same before testing
12889 Subtypes_Statically_Match.
12890 (Create_Extra_Formals): Test for a named access parameter that is a
12891 controlling formal as an additional condition for adding an
12892 accessibility level formal. This can occur in the subp type created for
12893 dispatching calls in Expand_Dispatching_Call, and allows calling
12894 Create_Extra_Formals from that procedure rather than special-casing the
12895 extra formals there.
12896 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12897 when the function has a controlling result.
12898 (Check_Returns): Add much more knowledge of the optimization of local
12899 raise statements to gotos, to retain proper warnings in this case.
12900 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12901 nodes when looking for last statement.
12903 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12904 class-wide types visible through limited with clauses.
12905 (Add_One_Interp): If the operands are anonymous access types, the
12906 predefined operator on universal_access is immediately visibles
12907 (Find_Unique_Type): Handle anonymous access to subprogram types just as
12908 other anonymous access types.
12909 (Disambiguate): Take into account CIL convention.
12910 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12912 2007-06-06 Robert Dewar <dewar@adacore.com>
12914 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12915 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12916 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12917 Fix lower bound of tables.
12920 * nlists.adb: Ditto.
12921 (Prev_Node, Next_Node): Change index type to Int so that it properly
12922 covers the range First_Node_Id - 1 up.
12924 2007-06-06 Javier Miranda <miranda@adacore.com>
12925 Ed Schonberg <schonberg@adacore.com>
12926 Bob Duff <duff@adacore.com>
12927 Hristian Kirtchev <kirtchev@adacore.com>
12929 * exp_aggr.ads, exp_aggr.adb:
12930 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12931 in extension aggregates.
12932 (Flatten): Other conditions being met, an aggregate is static if the
12933 low bound given by component associations is different from the low
12934 bound of the base index type.
12935 (Packed_Array_Aggregate_Handled): If the component type is itself a
12936 packed array or record, the front-end must expand into assignments.
12937 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12938 Init_Pr, instead of Ancestor_Is_Expression.
12939 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12940 coextension chain root, either generate a list controller or use the
12941 already existing one.
12942 (Static_Array_Aggregate): New procedure to construct a positional
12943 aggregate that can be handled by the backend, when all bounds and
12944 components are compile-time known constants.
12945 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12946 types covering interface types into assignments.
12947 (Replace_Type): move to Build_Record_Aggr_Code.
12948 (Expand_Record_Aggr_Code): if the target of the aggregate is an
12949 interface type, convert to the definite type of the aggregate itself,
12950 so that needed components are visible.
12951 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12952 components and the context is an extended return statement do not
12953 create a transient block for it, to prevent premature finalization
12954 before the return is executed.
12955 (Gen_Assign): Do not generate a call to deep adjust routine if the
12956 component type is itself an array of controlled (sub)-components
12957 initialized with an inner aggregate.
12958 (Component_Check): New name for Static_Check. This name is now more
12959 appropriate, and documentation is added which was missing.
12960 (Component_Check): Add test for bit aligned component value
12961 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12962 Tagged_Comps, name is more appropriate given added function below.
12963 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12965 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12966 Javier Miranda <miranda@adacore.com>
12967 Robert Dewar <dewar@adacore.com>
12969 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12970 Terminated: Add unchecked type conversion from System.Address to
12971 System.Tasking.Task_Id when calling the predefined primitive
12973 Disable new Ada 05 accessibility check for JVM.NET targets, which
12974 cannot be implemented in a practical way.
12975 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12976 the sources always references the tag of the actual object. Therefore,
12977 if 'Tag is applied in the sources to class-wide interface objects we
12978 generate code that displaces "this" to reference the base of the object.
12979 (Expand_N_Attribute_Reference, case Size): Return specified size if
12980 known to front end.
12981 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12982 has code that displaces the pointer of the object to manage interface
12983 types. However this code must not be executed when the prefix is a
12984 subprogram. This bug caused the wrong expansion of the internally
12985 generated assignment that fills the dispatch table when the primitive
12986 is a function returning a class-wide interface type.
12987 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12988 Set_Attribute_Name for Name_Unaligned_Valid.
12990 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12991 Gary Dismukes <dismukes@adacore.com>
12993 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12994 If the initialization is the equivalent aggregate of the initialization
12995 procedure of the type, do not remove it.
12996 (Expand_N_Attribute_Definition_Clause): Exclude access variables
12997 initialized to null from having their expression reset to empty and
12998 note this exception in the comment.
13000 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13001 Robert Dewar <dewar@adacore.com>
13002 Ed Schonberg <schonberg@adacore.com>
13003 Gary Dismukes <dismukes@adacore.com>
13005 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13006 Add "with" and "use" clauses for Sem_Attr.
13007 (Expand_Current_Value): Do not replace occurences of attribute
13008 references where the prefix must be a simple name.
13010 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13011 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13012 Attribute_Requires_Simple_Name_Prefix.
13013 (Name_Modifies_Prefix): Body of new function.
13014 (Requires_Simple_Name_Prefix): Body of new function.
13015 (Resolve_Attribute, case Access): Improve error message for case of
13016 mismatched conventions.
13017 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13019 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13020 constrained subtype for a nominal unconstrained type, use its base type
13021 to check for conformance with the context.
13022 (Resolve_Attribute): Remove test of the access type being associated
13023 with a return statement from condition for performing accessibility
13024 checks on access attributes, since this case is now captured by
13025 Is_Local_Anonymous_Access.
13026 (Analyze_Access_Attribute): Set Address_Taken on entity
13027 (Analyze_Attribute, case Address): Set Address_Taken on entity
13028 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13029 validating an access attribute whose prefix is a current instance.
13030 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13031 applied to dispatching operations, if freezing is required then we set
13032 the attribute Has_Delayed_Freeze in the prefix's entity.
13033 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13034 current scope if access of local subprogram taken
13035 (Analyze_Access_Attribute): Check legality of self-reference even if the
13036 expression comes from source, as when a single component association in
13037 an aggregate has a box association.
13038 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13039 the prefix if it is a protected operation and the attribute is
13040 Unrestricted_Access.
13041 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13042 reference to the base type of the context, to force a constraint check
13043 when the context is an access subtype with an explicit constraint.
13044 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13045 node is rewritten as an interface conversion. leave unanalyzed after
13046 resolution, to ensure that type checking against the context will take
13049 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13050 Javier Miranda <miranda@adacore.com>
13051 Robert Dewar <dewar@adacore.com>
13053 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13054 wrapper when the full view of the controlling type of an inherited
13055 function that dispatches on result implements interfaces.
13056 (Expand_N_Object_Declaration): In cases where the type of the
13057 declaration is anonymous access, create finalization list for it.
13058 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13059 if the object has no explicit initialization, to match description of
13060 functionality of pragam Persistent_BSS.
13061 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13062 new function to build static aggregates, to replace initialization call
13063 when static initialization is desired.
13064 (Freeze_Type): Generate a list controller for an access type whenever
13065 its designated type has controlled anonymous access discriminants.
13066 (Build_Equivalent_Aggregate): New procedure to compute a static
13067 aggregate to be used as default initialization for composite types,
13068 instead of a generating a call to the initialization procedure for the
13070 (Build_Initialization_Call): When available, replace a call to the
13071 initialization procedure with a copy of the equivalent static aggregate
13073 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13074 declarations for objects of a class-wide interface type, rather than
13075 just identifiers, to prevent visibility problems.
13076 (Expand_N_Object_Declaration): When expanding the declaration for an
13077 object of a class-wide interface type, preserve the homonym chain of
13078 the original entity before exchanging it with that of the generated
13079 renaming declaration.
13080 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13081 active, because there is no way to handle the exception.
13082 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13083 to do a minimum decoration of the Access_Disp_Table list.
13084 (Expand_Record_Controller): Avoid the addition of the controller between
13085 the component containing the tag of a secondary dispatch table and its
13086 adjacent component that stores the offset to the base of the object.
13087 This latter component is only generated when the parent type has
13088 discriminants ---documented in Add_Interface_Tag_Components).
13089 (Apply_Array_Size_Check): Removed, no longer needed.
13090 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13091 components, create a Master_Entity for it only if it contains tasks.
13092 (Build_Init_Procedure): Suppress the tag assignment compiling under
13094 (Freeze_Record_Type): Remove code associated with creation of dispatch
13096 (Init_Secondary_Tags): Update type of actuals when generating calls to
13097 Ada.Tags.Set_Offset_To_Top
13098 (Stream_Operation_OK): Disable use of streams compiling under no
13100 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13101 if Has_Init_Expression set.
13102 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13103 Register_Primitive, which provides the same functionality.
13104 (Requires_Init_Proc): Return false in case of interface types.
13105 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13107 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13108 is always associated with a predefined primitive because the internal
13109 entities associated with interface types are not predefined primitives.
13110 Therefore, the call to Is_Internal is replaced by a call to the
13111 function Is_Predefined_Dispatching_Operation.
13112 (Make_Eq_If): When generating the list of comparisons for the
13113 components of a given variant, omit the controller component that is
13114 present if the variant has controlled components.
13116 2007-06-06 Javier Miranda <miranda@adacore.com>
13117 Hristian Kirtchev <kirtchev@adacore.com>
13118 Bob Duff <duff@adacore.com>
13120 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13121 handle the creation of finalization lists and calls for nested
13122 coextensions when the root of the chains is part of a return statement.
13123 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13125 (Expand_Record_Equality): Skip components that are interface types.
13126 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13127 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13128 with Rewrite_Coextension. Change the condition for detecting coextension
13130 (Is_Local_Access_Discriminant): Removed.
13131 (Rewrite_Coextension): New routine which rewrites a static coextension
13132 as a temporary and uses its unrestricted access in the construction of
13134 (Complete_Coextension_Finalization): New routine. Generate finalization
13135 attachment calls to all delayed coextensions.
13136 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13137 the allocator is not a coextension itself and has delayed coextensions.
13138 If the current allocator is controlled, but also a coextension, delay
13139 the generation of the finalization attachment call.
13140 Rename local variable "Node" to "Nod" in order to avoid confusion with
13142 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13143 limited types that are not inherently limited. Such an allocator is
13144 illegal, but is generated by the expander for a return statement, to
13145 copy the result onto the secondary stack. This is the only case where a
13146 limited object can be copied. Generate code to displace the pointer
13147 to the object if the qualified expression is a class-wide interface
13148 object. Such displacement was missing and hence the copy of the object
13150 (Apply_Accessibility_Check): Handle allocated objects initialized in
13152 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13153 and Expand_Allocator_Expression. Allocating class-wide interface objects
13154 this routine displaces the pointer to the allocated object to reference
13155 the component referencing the corresponding secondary dispatch table.
13156 Expand_Allocator_Expression): Add missing support to allocate class-wide
13157 interface objects initialized with a qualified expression.
13158 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13159 function result type, and use the finalization list associated with the
13160 function scope in that case (such an anonymous type should not be
13161 treated like an access parameter's type).
13163 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13164 Gary Dismukes <dismukes@adacore.com>
13165 Javier Miranda <miranda@adacore.com>
13167 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13168 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13169 required exception handler.
13170 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13171 properly the case of a function whose return type is a limited
13172 class-wide interface type. Modify the code of the accessibility
13173 check to handle class-wide interface objects. In this case we need to
13174 displace "this" to reference the primary dispatch table to get access
13175 to the TSD of the object (to evaluate its accessibility level).
13176 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13177 rather than a controlling result as one of the conditions for
13178 generating tests of the implicit BIP_Alloc_Form formal. The
13179 initialization assignment is also handled according to whether the
13180 result is tagged instead of controlling.
13181 In the case where the init assignment is inserted in the "then" part of
13182 the allocation conditional, rewrite the target to be a dereference of
13183 the implicit BIP_Object_Access formal.
13184 If the returned value is unconstrained and created on the secondary
13185 stack, mark the enclosing block and function so that the secondary
13186 stack is not reclaimed on return.
13187 Treat returns from functions with controlling results similarly to
13188 returns from functions with unconstrained result subtypes.
13189 If the object returned is unconstrained, and an allocator must be
13190 created for it, analyze the allocator once the block for the extended
13191 return is installed, to ensure that finalizable components
13192 of the expression use the proper finalization list. Guard the call to
13193 Move_Final_List with a check that there is something to finalize.
13194 (Make_Tag_Ctrl_Assignment): Use "old" handling
13195 of controlled type assignment for virtual machines, since new code uses
13196 unsupported features (such as direct access to bytes in memory).
13198 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13199 Ed Schonberg <schonberg@adacore.com>
13201 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13202 accessibility actual, check for the case of an aliased object that has
13203 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13204 we fall into processing for the attribute rather than the name of the
13206 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13207 formal has its address taken in the body, create a temporary to capture
13208 value. If the return type is a limited interface, do not treat the
13209 return value as Controlled.
13210 (Is_In_Place_Function): If the return type is a limited interface,
13211 treat as returning in place. The actual returned object may not always
13212 be limited, but the caller has to assume that it is returned in place.
13213 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13214 context of an allocator, use the correct finalization chain (that is,
13215 the chain belonging to the access type, rather than the chain belonging
13216 to the current scope).
13217 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13218 result type rather than a controlling result as a precondition for
13219 adding an allocation form actual to a build-in-place call.
13220 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13221 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13222 primitive in the dispatch tables. This work is now done by Make_DT when
13223 the type is frozen.
13224 (Register_Predefined_DT_Entry): Removed.
13225 (Add_Return): If end label is not present, use sloc of last statement
13226 for generated return statement in procedure, for better gdb behavior
13228 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13229 object address nodes to ensure proper processing by routines like
13231 (Expand_Call): Fix generation of validity check for parameter
13232 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13233 the allocation form parameter if the result subtype is constrained,
13234 except when the function has a controlling result.
13235 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13236 rather than Is_Controlled and Has_Controlled_Component, since we want to
13237 include class-wide result types in this treatment. Also test for a
13238 controlling result, since that also requires passing a finalization
13240 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13241 even when the result subtype is constrained, to handle calls involving
13242 controlling results.
13243 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13244 is now called even when the result subtype is constrained, to handle
13245 calls involving controlling results.
13246 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13247 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13248 now performs the test).
13249 (Make_Build_In_Place_Call_In_Object_Declaration):
13250 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13251 constrained, to handle calls involving controlling results.
13252 (Add_Return): Accomodate rewritten pattern from local raise to goto
13253 transformation, so that we still recognize an transfer statement
13254 and do the right thing here in that case.
13255 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13256 and end of subprogram code.
13257 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13258 support for primitives that are functions (without formals) with a
13259 controlling result.
13260 (Inherited_From_Formal): If the actual subtype has not generic parent
13261 type, it is not an actual for a formal derived type, and there is no
13262 operation to inherit from the formal.
13264 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13265 Thomas Quinot <quinot@adacore.com>
13267 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13268 inserted cleanup code appropriately for GDB use.
13269 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13270 exception handler for Deep_Adjust or Deep_Finalize.
13271 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13272 Raise_From_Controlled_Operation is available, use a call to that
13273 subprogram instead of a plain "raise Program_Error" node to raise
13274 Program_Error if an exception is propagated from an Adjust or Finalize
13276 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13277 appears in the optional statement list of a triggering alternative, the
13278 scope actions can be inserted directly there, and not in the list that
13279 includes the asynchronous select itself.
13281 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13282 Robert Dewar <dewar@adacore.com>
13283 Hristian Kirtchev <kirtchev@adacore.com>
13285 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13286 generated exception handler appropriately when debugging generated code.
13287 Deal properly with No_Exception_Propagation restriction mode.
13288 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13289 System.Address to System.Tasking.Task_Id when processing the result of
13290 the predefined primitive _disp_get_task_id.
13291 (Expand_N_Asynchronous_Select): Clarify comment.
13292 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13293 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13294 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13295 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13296 privals and for generated call to Complete_Entry_Body, for better gdb
13298 (Copy_Result_Type): Utility to construct a parameter and result profile
13299 for protected functions whose return type is an anonymous access to
13301 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13303 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13304 point when the local-raise-to-goto transformation has taken place.
13306 2007-06-06 Javier Miranda <miranda@adacore.com>
13307 Nicolas Setton <setton@adacore.com>
13309 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13310 functionality when the backend is generating code.
13311 Otherwise any serious error
13312 reported by the backend calling the frontend routine Error_Msg
13313 changes the Compilation_Mode to Check_Semantics, disables the
13314 functionality of this routine and causes the generation of
13315 spureous additional errors.
13317 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13318 debugging information now generated by the compiler for fat-pointer
13320 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13322 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13324 2007-06-06 Thomas Quinot <quinot@adacore.com>
13326 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13327 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13328 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13329 For a remote call to a function with a classwide return type, apply an
13330 E.4(18) check to the returned value.
13331 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13332 stream attributes of the designated type of an RACW, as they are not
13333 dispatching primitive operations.
13335 2007-06-06 Geert Bosch <bosch@adacore.com>
13337 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13339 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13341 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13342 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13344 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13346 2007-06-06 Javier Miranda <miranda@adacore.com>
13348 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13349 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13351 2007-06-06 Javier Miranda <miranda@adacore.com>
13353 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13354 deallocation of class-wide interface objects.
13355 (Expand_Dispatching_Constructor_Call): Take into account that if the
13356 result of the dispatching constructor is an interface type, the
13357 function returns a class-wide interface type; otherwise the returned
13358 object would be actual. The frontend previously accepted returning
13359 interface types because Expand_Interface_Actuals silently performed
13360 the management of the returned type "as if" it were a class-wide
13362 (Expand_Dispatching_Constructor_Call): Replace call to
13363 Make_DT_Access_Action by direct call to Make_Function_Call.
13365 2007-06-06 Robert Dewar <dewar@adacore.com>
13366 Ed Schonberg <schonberg@adacore.com>
13368 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13369 compute masking constant, since we now set Esize properly to the
13371 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13372 to match the alignment.
13373 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13374 packed arrays of 8 bits or less.
13376 * freeze.adb (Freeze_Entity): When freezing the formals of a
13377 subprogram, freeze the designated type of a parameter of an access type
13378 only if it is an access parameter.
13379 Increase size of C convention enumeration object
13380 (Freeze_Entity, array type case): Make sure Esize value is properly
13381 adjusted for the alignment if it is known.
13382 (Freeze_Entity, array type case): When checking bit packed arrays for
13383 the size being incorrect, check RM_Size, not Esize.
13384 (Freeze_Record_Type): Check for bad discriminated record convention
13385 (In_Exp_Body): Return true if the body is generated for a subprogram
13386 renaming, either an attribute renaming or a renaming as body.
13387 (Check_Itype): If the designated type of an anonymous access component
13388 is a non-protected subprogram type, indicate that it is frozen, to
13389 prevent out-of-scope freeze node at some subsequent call.
13390 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13391 only if the subprogram is neither imported nor exported, as well as the
13392 NCA descriptor class if the subprogram is exported.
13394 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13395 Arnaud Charlet <charlet@adacore.com>
13396 Robert Dewar <dewar@adacore.com>
13397 Gary Dismukes <dismukes@adacore.com>
13399 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13400 default initialization on an imported object, when there is no
13401 initialization call generated for it.
13402 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13405 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13406 Static_Elaboration_Desired.
13407 Remove pragma Thread_Body.
13408 Implement a new pragma No_Body
13409 Removes the Explicit_Overriding pragma
13410 Remove Optional_Overriding pragma
13411 (Prag): Deal with Universal_Aliasing.
13412 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13413 Pragma_CIL_Constructor): New names.
13415 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13416 uses the equivalent aggregate of a type must be treated as an implicit
13418 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13419 has none of the other categories.
13420 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13421 to apply Import to an object renaming declaration.
13423 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13424 from a C++ class should be declared as limited and that it will be
13425 considererd limited.
13426 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13427 should be declared as limited and that it will be considererd limited.
13428 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13429 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13430 (Analyze_Pragma): Deal with Universal_Aliasing.
13431 (Sig_Flags): Likewise.
13432 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13433 (Overflow_Checks_Unsuppressed): New flag.
13434 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13435 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13436 case of JVM or .NET targets, and compiling user code.
13437 Add debugging convenience routine rv
13439 2007-06-06 Robert Dewar <dewar@adacore.com>
13441 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13442 are interface type.
13443 (Build_Elementary_Input_Call): For floating-point use right type in the
13444 absence of strange size or stream size clauses.
13445 (Build_Elementary_Write_Call): Same fix
13446 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13447 set to value that does not match base type size.
13449 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13451 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13452 object of a limited type can be initialized with a call to a function
13453 that returns in place. If the limited type has unknown discriminants,
13454 and the underlying type is a constrained composite type, build an actual
13455 subtype from the function call, as is done for private types.
13456 (Side_Effect_Free): An expression that is the renaming of an object or
13457 whose prefix is the renaming of a object, is not side-effect free
13458 because it may be assigned through the renaming and its value must be
13459 captured in a temporary.
13460 (Has_Controlled_Coextensions): New routine.
13461 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13462 as is done for other limited types.
13463 (Non_Limited_Designated_Type): new predicate.
13464 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13466 Remove all handling of with_type clauses.
13468 * par-ch10.adb: Remove all handling of with_type clauses.
13470 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13471 checksum if the main source could not be parsed.
13472 (Loat_Unit): When processing a child unit, determine properly whether
13473 the parent unit is a renaming when the parent is itself a child unit.
13474 Remove handling of with_type clauses.
13476 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13477 (Set_Is_Static_Coextension): New procedure.
13478 (Has_Local_Raise): New function
13479 (Set_Has_Local_Raise): New procedure
13480 (Renaming_Exception): New field
13481 (Has_Init_Expression): New flag
13482 (Delay_Finalize_Attach): Remove because flag is obsolete.
13483 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13484 Remove all handling of with_type clauses.
13485 (Exception_Junk): Can now be set in N_Block_Statement
13487 2007-06-06 Vincent Celier <celier@adacore.com>
13488 Robert Dewar <dewar@adacore.com>
13490 * frontend.adb (Frontend): Return immediately if the main source could
13491 not be parsed, because of preprocessing errors.
13493 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13494 (Gnat1drv): Exit with errors if the main source could not be parsed,
13495 because of preprocessing errors.
13496 (Check_Rep_Info): New procedure
13498 2007-06-06 Robert Dewar <dewar@adacore.com>
13500 * g-hesorg.ads, g-heasor.ads,
13501 g-busorg.ads, g-bubsor.ads: Update documentation
13502 GNAT.Heap/Bubble_Sort_G is now pure
13504 2007-06-06 Robert Dewar <dewar@adacore.com>
13506 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13508 2007-06-06 Robert Dewar <dewar@adacore.com>
13509 Ed Schonberg <schonberg@adacore.com>
13511 * g-comlin.ads, g-comlin.adb:
13512 Add new warning for renaming of function return objects
13514 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13515 (Tree_Read): Use size of object instead of type'object_size, since the
13516 latter is incorrect for packed array types.
13517 (Tree_Write): Same fix
13519 * opt.ads: Add new warning for renaming of function return objects
13520 (Generating_Code): New boolean variable used to indicate that the
13521 frontend as finished its work and has called the backend to process
13522 the tree and generate the object file.
13523 (GCC_Version): Is now private
13524 (Static_Dispatch_Tables): New constant declaration.
13525 (Overflow_Checks_Unsuppressed): New flag.
13526 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13527 (List_Closure): New flag for gnatbind (-R)
13528 Zero_Formatting: New flag for gnatbind (-Z)
13529 (Special_Exception_Package_Used): New flag.
13530 (Warn_On_Unrepped_Components): New flag.
13532 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13533 unit is a compilation unit, rather than relying on its scope, so that
13534 Standard can be renamed.
13535 (Analyze_Object_Renaming): Add new warning for renaming of function
13537 Also reject attempt to rename function return object in Ada 83 mode.
13538 (Attribute_Renaming): In case of tagged types, add the body of the
13539 generated function to the freezing actions of the type.
13540 (Find_Type): A protected type is visible right after the reserved word
13541 "is" is encountered in its type declaration. Set the entity and type
13542 rather than emitting an error message.
13543 (New_Scope): Properly propagate Discard_Names to inner scopes
13544 (Check_Nested_Access): New procedure.
13545 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13546 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13548 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13549 Add new warning for renaming of function return objects
13550 (Check_References): Suppress warnings for objects whose type or
13551 base type has Warnings suppressed.
13552 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13553 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13555 2007-06-06 Vincent Celier <celier@adacore.com>
13556 Emmanuel Briot <briot@adacore.com>
13557 Olivier Hainque <hainque@adacore.com>
13559 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13560 absolute value of Header.Block_Size when displaying the freed physical
13562 (Allocate): Compute Storage_Address using Integer_Address, not
13563 Storage_Offset, because the range of Storage_Offset may not be large
13565 (Configure): New parameter Low_Level_Traces
13566 (Allocate, Deallocation, Free_Physically): Added low-level traces
13567 (Configure): new parameter Errors_To_Stdout.
13568 (Output_File): new subprogram
13569 (Deallocate, Dereference): Send error messages to the proper stream
13570 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13571 documented. Previous code would send it to the current output file
13572 defined in GNAT.IO, which might not be stdout
13573 (Is_Valid): Adjust comment to mention that a positive reply means that
13574 Header_Of may be used to retrieve the allocation header associated with
13575 the subprogram Storage address argument. Return False early if this
13576 address argument is misaligned.
13578 2007-06-06 Vincent Celier <celier@adacore.com>
13580 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13582 (ASIS_Main): New global variable
13583 (Get_Closure): New procedure
13584 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13585 check, metric or pretty. Call Get_Closure in this case.
13586 (Check_Files): For GNAT LIST, check all sources of all projects when
13587 All_Projects is True.
13588 (GNATCmd): Accept -U for GNAT LIST
13590 2007-06-06 Vincent Celier <celier@adacore.com>
13592 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13594 Correct error message when invocation of the linker fails
13595 Add explicit size clause for the C imported variables
13596 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13597 we expect char size.
13598 Read target parameters earlier, since this is needed to set
13599 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13602 2007-06-06 Vincent Celier <celier@adacore.com>
13605 Add 3 spaces before the default project directory when displaying
13606 the project search path.
13607 Add new command line switch '-l' to display license information.
13609 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13611 * gmem.c: Add support for timestamps on memory operations.
13613 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13614 operations (not used currently, just foundation for future
13615 enhancements). Add possibility to perform full dump of gmem.out file.
13616 (Print_Back_Traces): Declare accesses to root arrays constants since
13617 they aren't modified.
13618 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13620 2007-06-06 Vincent Celier <celier@adacore.com>
13622 * gnatsym.adb: Update Copyright notice
13623 (Parse_Cmd_Line): Accept new switch -D
13624 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13627 * prj.ads (Policy): New policy Direct
13628 (Yes_No_Unknown): New enumeration type
13629 (Project_Data): New component Libgnarl_Needed
13631 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13632 use the untouched pathname casing.
13633 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13634 proper casing on non case-sensitive platforms like Windows.
13635 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13636 on all platforms, as it is not possible to know which one is allowed
13637 before processing the project files.
13638 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13639 specified when symbol policy is Direct. Check that when there is a
13640 symbol file defined (either by default or with attribute
13641 Library_Symbol_File) it is not the same as the reference symbol file.
13642 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13643 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13644 extending projects.
13645 (Record_Ada_Source): Record a source that has been locally removed in an
13648 * symbols.ads (Policy): New policy Direct
13650 * symbols-vms.adb (Initialize): Take new policy Direct in case
13653 2007-06-06 Vincent Celier <celier@adacore.com>
13655 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13656 Correct obvious bug (return Dir; instead of return Directory;).
13657 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13659 2007-06-06 Thomas Quinot <quinot@adacore.com>
13661 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13662 they have UNIX line endings (LF only) even on Windows, and thus pass
13663 all GNAT style checks.
13665 2007-06-06 Emmanuel Briot <briot@adacore.com>
13667 * g-regpat.adb (Quote): Fix improper quoting of '.'
13669 2007-06-06 Thomas Quinot <quinot@adacore.com>
13671 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13672 default, set False on a per-runtime basis.
13673 (Need_Netdb_Buffer): New constant.
13675 * g-socket.ads, g-socket.adb: Import new package
13676 GNAT.Sockets.Thin.Task_Safe_NetDB.
13677 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13678 binding to obtain proper message.
13679 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13680 Replace various occurrences of Arry (Arry'First)'Address with the
13681 equivalent Arry'Address (GNAT always follows implementation advice from
13683 (Get_Host_By_Address, Get_Host_By_Name,
13684 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13685 instead, rely on platform-specific task safe netdb operations provided
13688 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13689 parameter Process_Blocking_IO.
13690 (Host_Error_Messages): Add stub body.
13691 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13692 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13693 Safe_Getservbyport): Move functions into new child package
13695 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13696 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13697 (In_Addr): Add alignment clause.
13699 2007-06-06 Robert Dewar <dewar@adacore.com>
13701 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13702 Add note about symbolic traceback
13704 2007-06-06 Pascal Obry <obry@adacore.com>
13706 * hostparm.ads (Normalized_CWD): Use the host directory separator
13707 instead of the hardcoded forward slash which is not the proper
13708 character on Windows for example.
13709 (Java_VM): Removed.
13711 2007-06-06 Vincent Celier <celier@adacore.com>
13712 Arnaud Charlet <charlet@adacore.com>
13714 * a-clrefi.adb, a-clrefi.ads: New files
13716 * impunit.adb: Add s-os_lib in the list of user visible units.
13717 (Non_Imp_File_Names_95): Add a-clrefi to this list
13718 Remove obsolete run-time entries.
13719 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13720 "a-exetim" -- Ada.Execution_Time
13721 "a-extiti" -- Ada.Execution_Time.Timers
13723 * mlib-prj.ads, mlib-prj.adb
13724 (Build_Library): Use untouched object dir and library dir. At the
13725 same time makes sure that the checks are done using the canonical
13726 form. Removes hard-coded directory separator and use the proper host
13728 (Process_Project): Do not look in object directory to check if libgnarl
13729 is needed for a library, if there is no object directory.
13730 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13732 (Build_Library): When invoking gnatbind, use a response file if the
13733 total size of the arguments is too large.
13735 * Makefile.rtl: (g-sttsne): New object file.
13736 Add entry for a-clrefi, s-utf_32, System.Exceptions
13738 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13739 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13740 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13741 Change g-string to s-string, g-os_lib to s-os_lib
13742 Change all g-utf_32 references to s-utf_32
13744 2007-06-06 Tristan Gingold <gingold@adacore.com>
13745 Olivier Hainque <hainque@adacore.com>
13747 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13748 LIB$STOP is called to raise an exception and the IP of the exception
13749 is the instruction right after the call.
13750 (__gnat_adjust_context_for_raise, AIX): Implement.
13751 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13752 adjust_context_for_raise before Raise_From_Signal_Hanler.
13753 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13754 siginfo is passed to the handler, necessary to let the zcx propagation
13755 engine unwind past it.
13757 2007-06-06 Olivier Hainque <hainque@adacore.com>
13759 * initialize.c (__gnat_initialize for vxworks): Update documentation
13760 on the ZCX support, using different sets of crtstuff objects than with
13763 2007-06-06 Robert Dewar <dewar@adacore.com>
13765 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13767 (Layout_Type): Fix recomputation of size from alignment.
13769 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13770 Javier Miranda <miranda@adacore.com>
13772 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13773 association in an instance.
13774 (Copy_Generic_Node): If the node is a string literal, no need to copy
13776 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13777 grandparent of the entity.
13778 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13779 to simplify handling of formal interfaces that derive from other formal
13781 (Instantiate_Subprogram_Body): The defining unit name of the body of
13782 the instance should be a defining identifier.
13783 (Install_Formal_Packages): make global to the package, for use in
13784 instantiations of child units.
13785 (Analyze_Package_Instantiation): Do not attempt to set information on an
13786 enclosing master of an entry when expansion is disabled.
13787 (Instantiate_Type): If the actual is a tagged synchronized type and the
13788 generic ancestor is an interface, create a generic actual for the
13789 corresponding record.
13790 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13791 declaration, to ensure that the interface list is processed correctly.
13792 (Inline_Instance_Body): If enclosing scope is an instance body, remove
13793 its entities from visibiility as well.
13794 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
13795 given with a named association, analyze the expression only, not the
13796 discriminant association itself.
13797 (Reset_Entity): If the analysis of a selected component is transformed
13798 into an expanded name in the prefix of a call with parameters, do not
13799 transform the original node into an expanded name, to prevent visibility
13800 errors in the case of nested generics.
13801 (Check_Private_View): For an array type, check whether the index types
13802 may need exchanging.
13804 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13805 Vincent Celier <celier@adacore.com>
13807 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13808 since both are separated.
13809 Add support for imported CIL packages.
13810 Add further special handling of "value_type" for CIL.
13811 Add special handling of pragma Import for CIL.
13813 * make.ads, make.adb: When switch -eS is used, direct all outputs to
13814 standard output instead of standard error, except errors.
13815 (Absolute_Path): Use untouched casing for the parent directory.
13816 (Add_Library_Search_Dir): Use the untouched directory name.
13817 (Add_Source_Search_Dir): Idem.
13818 (Change_To_Object_Directory): Update output to use proper casing.
13819 (Create_Binder_Mapping_File): Use the untouched filename to set
13821 (Gnatmake): Use untouched library and executable directory names.
13822 (Insert_Project_Sources): Use untouched filename for spec and body.
13823 (Is_In_Object_Directory): Use untouched object directory.
13824 (Mark_Directory): Idem.
13825 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13826 contains the non-canonical filename in all cases.
13827 (Change_To_Object_Directory): In verbose mode, display the name of the
13828 object directory we're changing to.
13829 (Compile_Sources): Make sure, when a project file is used, to compile
13830 the body of the unit, when there is one, even when only the spec is
13831 recorded in an ALI file.
13832 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13834 (Report_Compilation_Failed): New procedure
13835 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13836 procedures moved from the spec to the body.
13837 (Extract_Failure): Removed, not used
13838 Replace explicit raises of exception Bind_Failed and Link_Failed with
13839 calls to Make_Failed with the proper message.
13840 Replace explicit raises of exception Compilation_Failed with calls to
13841 procedure Report_Compilation_Failed.
13842 (Initialize): Create mapping files unconditionally when using project
13845 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13846 Pragma_CIL_Constructor): New names.
13848 * targparm.ads, targparm.adb
13849 (Compiler_System_Version): Removed, no longer used.
13850 (Get_Target_Parameters): Relax checks on system.ads validity. Add
13851 handling of two new system flags: JVM and CLI.
13853 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13854 Arnaud Charlet <charlet@adacore.com>
13856 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13857 time, use the default s-interr body that provides interrupt support
13859 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13860 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13861 g-soccon.ads, and s-taprop.adb for the marte run time.
13862 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13863 timers are supported on marte.
13864 (EH_MECHANISM for marte): Do not use ZCX.
13865 (THREADSLIB for marte): Use -lmarte.
13866 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13867 Add mlib-tgt-specific.o to gnatmake objects
13868 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13869 longer of MLib.Tgt.
13870 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13871 6, either kernel or rtp, use a specialized version of s-osinte.ads.
13873 2007-06-06 Pascal Obry <obry@adacore.com>
13875 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13877 2007-06-06 Vincent Celier <celier@adacore.com>
13879 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13880 separator, use instead the proper host directory separator.
13881 (Copy_ALI_Files): Make sure that an already existing ALI file in the
13882 ALI copy dir is writable, before doing the copy.
13884 * mlib-utl.ads, mlib-utl.adb:
13885 (Gcc): If length of command line is too long, put the list of object
13886 files in a response file, if this is supported by the platform.
13887 (Ar): If invocation of the archive builder is allowed to be done in
13888 chunks and building it in one shot would go above an OS dependent
13889 limit on the number of characters on the command line, build the archive
13892 2007-06-06 Vincent Celier <celier@adacore.com>
13894 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13895 of specified object file is not equal to base name of source.
13897 2007-06-06 Javier Miranda <miranda@adacore.com>
13898 Hristian Kirtchev <kirtchev@adacore.com>
13899 Ed Schonberg <schonberg@adacore.com>
13901 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13902 the full type declaration.
13903 (Analyze_Component_Declaration): Add local variable E to capture the
13904 initialization expression of the declaration. Replace the occurences of
13905 Expression (N) with E.
13906 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13907 limited interface object with a function call.
13908 (Array_Type_Declaration): If the declaration lacks subtype marks for
13909 indices, create a simple index list to prevent cascaded errors.
13910 (Is_Null_Extension): Ignore internal components created for secondary
13911 tags when checking whether a record extension is a null extension.
13912 (Check_Abstract_Interfaces): Add missing support for interface subtypes
13913 and generic formals.
13914 (Derived_Type_Declaration): Add missing support for interface subtypes
13915 and generic formals.
13916 (Analyze_Object_Declaration): If an initialization expression is
13917 present, traverse its subtree and mark all allocators as static
13919 (Add_Interface_Tag_Component): When looking for components that may be
13920 secondary tags, ignore pragmas that can appear within a record
13922 (Check_Abstract_Overriding): an inherited function that dispatches on
13923 result does not need to be overriden if the controlling type is a null
13925 (Mentions_T): Handle properly a 'class attribute in an anonymous access
13926 component declaration, when the prefix is an expanded name.
13927 (Inherit_Component): If the derivation is for a private extension,
13928 inherited components remain visible and their ekind should not be set
13930 (Find_Type_Of_Object): In the case of an access definition, always set
13931 Is_Local_Anonymous_Access. We were previously not marking the anonymous
13932 access type of a return object as a local anonymous type.
13933 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13934 range with character literal bounds.
13935 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13936 (Access_Subprogram_Declaration): Indicate that the type declaration
13937 depends on an incomplete type only if the incomplete type is declared
13939 (Analyze_Subtype_Declaration): Handle properly subtypes of
13940 synchronized types that are tagged, and that may appear as generic
13942 (Access_Subprogram_Declaration): An anonymous access to subprogram can
13943 appear as an access discriminant in a private type declaration.
13944 (Add_Interface_Tag_Components): Complete decoration of the component
13945 containing the tag of a secondary dispatch table and the component
13946 containing the offset to the base of the object (this latter component
13947 is only generated when the parent type has discriminants --as documented
13949 (Inherit_Components): Use the new decoration of the tag components to
13950 improve the condition that avoids inheriting the components associated
13951 with secondary tags of the parent.
13952 (Build_Discriminanted_Subtype): Indicate to the backend that the
13953 size of record types associated with dispatch tables is known at
13955 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13956 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13957 to include task, protected, and synchronized interfaces as limited
13959 (Process_Discriminants): Remove the setting of
13960 Is_Local_Anonymous_Access on the type of (anonymous) access
13961 discriminants of nonlimited types.
13962 (Analyze_Interface_Type_Declaration): Complete the decoration of the
13963 class-wide entity it is is already present. This situation occurs if
13964 the limited-view has been previously built.
13965 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13967 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13970 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13972 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13973 of the type that specify the position of interface tags when the type
13974 inherits discriminated array components from the parent type.
13975 If a component is initialized with a box, check for the presence of a
13976 default expression in its declaration before using its default
13977 initialization procedure.
13978 (Resolve_Record_Aggregate): If a component is box-initialized, and the
13979 component type has a discriminants, create a partial aggregate for it
13980 by copying the discriminants of the component subtype.
13981 Reject attempt to initialize a discriminant with a box.
13982 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13983 associated with dispatch tables is known at compile time.
13984 (Get_Value): If an association in a record aggregate has a box
13985 association, and the corresponding record component has a default
13986 expression, always copy the default expression, even when the
13987 association has a single choice, in order to create a proper
13988 association for the expanded aggregate.
13990 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13991 Robert Dewar <dewar@adacore.com>
13993 * par-ch12.adb (P_Generic_Associations): The source position of an
13994 Others association is that of the others keyword, not that of the token
13995 that follows the box.
13996 (P_Formal_Type_Definition): Handle formal access types that carry a
13997 not null indicator.
13999 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14000 multiple identifier are present, save Scan_State before scanning the
14001 colon, to ensure that separate trees are constructed for each
14003 (P_Identifier_Declarations): For object declaration, set new flag
14004 Has_Init_Expression if initialization expression present.
14005 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14006 Improve NOT NULL error messages
14008 2007-06-06 Robert Dewar <dewar@adacore.com>
14010 * par-ch4.adb: (P_Name): Recover from literal used as name
14012 2007-06-06 Vincent Celier <celier@adacore.com>
14014 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14015 defaulted to False.
14016 In the "not" case, recursive call with Complemented set to True.
14017 Do not allow "or" or "and" operators when Complemented is True.
14019 2007-06-06 Vincent Celier <celier@adacore.com>
14021 * prj.adb (Project_Empty): Gives default value for new component
14024 * prj-attr.ads: Minor reformatting
14026 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14027 directory using the untouched casing.
14028 (For_All_Source_Dirs): Idem.
14030 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14031 directories specified with switches -aP.
14032 (Add_Search_Project_Directory): New procedure
14033 (Initialize_Project_Path): Put the directories in table
14034 Search_Directories in the project search path.
14035 (Initialize_Project_Path): For VMS, transform into canonical form the
14038 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14040 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14041 true if configurable run-time or No_Run_Time is set.
14042 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14043 processing an unit which is not the one being compiled.
14045 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14047 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14048 Replace UC by Ada.UC
14050 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14051 Replace UC by Ada.UC
14053 2007-06-06 Robert Dewar <dewar@adacore.com>
14055 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14057 2007-06-06 Robert Dewar <dewar@adacore.com>
14059 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14060 Remove no longer used nodes.
14062 2007-06-06 Javier Miranda <miranda@adacore.com>
14063 Ed Schonberg <schonberg@adacore.com>
14064 Robert Dewar <dewar@adacore.com>
14066 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14067 on obsolescent withed unit in case of limited-withed units.
14068 (Analyze_Compilation_Unit): Add guard to code that removed an
14069 instantiation from visibility, to prevent compiler aborts when
14070 instantiation is abandoned early on.
14071 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14072 current unit being analyzed, and Distinguish local incomplete types
14073 from limited views of types declared elsewhere.
14074 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14075 to state that the class-wide entity is shared by the limited-view
14077 (Analyze_With_Clause): Improve placement of flag for case of
14078 unimplemented unit.
14079 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14080 manner similar to GNAT.Current_Exception. This is a violation of
14081 restriction (No_Exception_Propagation), and also inhibits the
14082 optimization of local raise to goto.
14083 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14084 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14085 for violation of restriction No_Exception_Propagation.
14087 2007-06-06 Javier Miranda <miranda@adacore.com>
14088 Hristian Kirtchev <kirtchev@adacore.com>
14089 Gary Dismukes <dismukes@adacore.com>
14091 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14092 use of entity Exception_Occurrence if it is not available in the
14095 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14096 concurrent types are declared within an Ada 2005 generic, build their
14097 corresponding record types since they are needed for overriding-related
14099 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14100 protected type does not implement a task interface or a nonlimited
14102 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14103 type does not implement a protected interface or a nonlimited interface.
14104 (Single_Task_Declaration, Single_Protected_Declaration): use original
14105 entity for variable declaration, to ensure that debugging information
14106 is correcty generated.
14107 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14108 routines if the expander is not active.
14109 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14110 raise, since special things happen for task exception handlers.
14112 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14113 concurrent types declared within a generic.
14114 (Check_Dispatching_Operation): Do not emit warning about late interface
14115 operations in the context of an instance.
14116 (Check_Dispatching_Call): Remove restriction against calling a
14117 dispatching operation with a limited controlling result.
14118 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14119 Register_Interface_DT_Entry by calls to Register_Primitive.
14120 (Check_Dispatching_Formals): Handle properly a function with a
14121 controlling access result.
14123 2007-06-06 Robert Dewar <dewar@adacore.com>
14124 Arnaud Charlet <charlet@adacore.com>
14126 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14127 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14128 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14129 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14130 message when using a VM, since this attribute is not supported.
14131 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14133 * usage.adb: Add new warning for renaming of function return objects
14134 Indicate that -gnatwp and -gnatwP concern front-end inlining
14135 Add line for -gnatyg
14136 Add usage information for -gnatw.c/C
14138 2007-06-06 Robert Dewar <dewar@adacore.com>
14139 Ed Schonberg <schonberg@adacore.com>
14142 (Find_Var): Do not consider function call in test for infinite loop
14143 warning if warnings set off for function entity.
14144 (One_Bound): Do not create a temporary for a loop bound if it is a
14146 (Analyze_Assignment): Traverse the right hand side of an assignment and
14147 mark all allocators as static coextensions.
14148 (Analyze_Assignment): Exempt assignments involving a dispatching call
14149 to a function with a controlling access result from the check requiring
14150 the target to be class-wide.
14152 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14153 Ed Schonberg <schonberg@adacore.com>
14154 Robert Dewar <dewar@adacore.com>
14155 Javier Miranda <miranda@adacore.com>
14157 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14158 chain of coextensions when an allocator serves as the root of such a
14160 (Propagate_Coextensions): Remove the test for the root being an
14162 (Resolve_Allocator): Add condition to ensure that all future decoration
14163 occurs on an allocator node. Add processing and cleanup for static
14165 (Valid_Conversion): If the operand type is the limited view of a
14166 class-wide type, use the non-limited view is available to determine
14167 legality of operation.
14168 (Ambiguous_Character): move to spec, for use elsewhere.
14169 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14170 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14171 character literals.
14172 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14173 Do_Division_Check flag explicitly.
14174 (Resolve_Actuals): If the actual is of a synchronized type, and the
14175 formal is of the corresponding record type, this is a call to a
14176 primitive operation of the type, that is declared outside of the type;
14177 the actual must be unchecked-converted to the type of the actual
14178 (Resolve_Call): Kill all current values for any subprogram call if
14179 flag Suppress_Value_Tracking_On_Call is set.
14180 (Resolve_Type_Conversion): Generate error message the the operand
14181 or target of interface conversions come from a limited view.
14182 (Check_Infinite_Recursion): Ignore generated calls
14183 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14184 that an expression that constrains an access discriminant in an
14185 allocator does not denote an object with a deeper level than the
14186 allocator's access type.
14187 (Resolve_Allocator): In the case of an allocator initialized by an
14188 aggregate of a discriminated type, check that associations for any
14189 access discriminants satisfy accessibility requirements by calling
14190 Check_Allocator_Discrim_Accessibility.
14191 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14192 subprogram types in the same fashion as other anonymous access types.
14193 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14194 message that is not a continuation message.
14195 (Resolve_Type_Conversion): Add missing support for conversion to
14197 (Resolve_Actuals): Introduce a transient scope around the call if an
14198 actual is a call to a function returning a limited type, because the
14199 resulting value must be finalized after the call.
14200 (Resolve_Actuals): If the call was given in prefix notations, check
14201 whether an implicit 'Access reference or implicit dereference must be
14202 added to make the actual conform to the controlling formal.
14204 2007-06-06 Robert Dewar <dewar@adacore.com>
14205 Javier Miranda <miranda@adacore.com>
14207 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14208 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14209 overriding of an inherited private subprogram now there is no need to
14210 inherit its dispatching slot and reduce the size of the dispatch table.
14211 Set_All_DT_Position now ensures that the same slot is now assigned to
14212 both entities. This is required to statically build the dispatch table.
14213 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14214 of calling Set_All_DT_Position to re-evaluate the position of the
14215 entries in the dispatch table. Such reevaluation is not desired if
14216 the tagged type is already frozen.
14218 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14219 Gary Dismukes <dismukes@adacore.com>
14220 Robert Dewar <dewar@adacore.com>
14221 Javier Miranda <miranda@adacore.com>
14223 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14224 reference acts as an lvalue when the attribute name modifies the prefix
14225 (Is_Coextension_Root): New routine.
14226 (Mark_Static_Coextensions): New routine.
14227 (Type_Access_Level): Revise code for checking the level of the
14228 anonymous access type of a return object.
14229 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14230 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14231 retrieval of the corresponding controlling record type.
14232 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14233 concurrent types declared within a generic as well as class wide types.
14234 Emit a mode incompatibility error whenever a protected entry or routine
14235 override an interface routine whose first parameter is not of mode
14236 "out", "in out" or access to variable.
14237 (Overrides_Synchronized_Primitive): Rename to
14238 Find_Overridden_Synchronized_Primitive.
14239 (Collect_Interface_Components): New subprogram that collects all the
14240 components of a tagged record containing tags of secondary dispatch
14242 (Add_Global_Declaration): New procedure
14243 (Abstract_Interface_List): Handle properly the case of a subtype of a
14245 (Type_Access_Level): In the case of a type whose parent scope is a
14246 return statement, call Type_Access_Level recursively on the enclosing
14247 function's result type to determine the level of the return object's
14249 (Build_Elaboration_Entity): Build name of elaboration entity from the
14250 scope chain of the entity, rather than the unit name of the file name.
14251 (Check_Nested_Access): New procedure.
14252 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14253 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14254 (Get_Renamed_Entity): Utility routine for performing common operation
14255 of chasing the Renamed_Entity field of an entity.
14257 2007-06-06 Robert Dewar <dewar@adacore.com>
14259 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14261 (Check_A_Call): Add check for entry call which was causing blowup
14263 2007-06-06 Olivier Hainque <hainque@adacore.com>
14265 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14266 special code on ia64-vms to handle major incompatibilities between the
14267 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14268 this routine with a very different set of arguments and expectations on
14271 2007-06-06 Thomas Quinot <quinot@adacore.com>
14273 * socket.c (__gnat_close_signalling_fd): New function.
14274 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14275 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14276 New supporting functions for task safe Netdb operations.
14278 2007-06-06 Thomas Quinot <quinot@adacore.com>
14279 Olivier Hainque <hainque@adacore.com>
14281 * a-except-2005.ads, a-except-2005.adb
14282 (Raise_From_Controlled_Operation): New procedure in
14283 (private part of) Ada.Exceptions (standard runtime version). Used to
14284 provide informational exception message when Program_Error is raised as
14285 a result of an Adjust or Finalize operation propagating an exception.
14286 (Rmsg_28): Fix description for E.4(18) check.
14287 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14288 propagation starts, to let debuggers know about the event in a reliable
14290 Take the address of E and dereference to make sure it is homed on stack
14291 and prevent the stores from being deleted, necessary for proper
14292 debugger behavior on "break exception" hits.
14293 (Local_Raise): Moved to System.Exceptions
14295 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14296 exception message from the current occurrence and raise Program_Error
14297 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14299 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14300 Arnaud Charlet <charlet@adacore.com>
14302 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14305 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14306 priority associated to a lock.
14308 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14309 assertion to take into account case of no abort restriction.
14310 (Initialize_Protection_Entries): Add initialization for the field
14311 New_Ceiling associated to the protected object.
14312 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14315 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14316 since this function needs to be set consistently with Update_Exception.
14318 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14319 since this function needs to be set consistently with Update_Exception.
14321 * s-taskin.ads: Update comments on
14322 Interrupt_Server_Blocked_On_Event_Flag.
14323 (Unbind_Handler): Fix handling of server_task wakeup
14324 (Server_Task): Set self's state so that Unbind_Handler can take
14325 appropriate actions.
14326 (Common_ATCB): Now use a constant from System.Parameters to determine
14327 the max size of the Task_Image field.
14329 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14330 Initialize_Analyzer function.
14331 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14332 take into account case of no abort restriction.
14333 ([Vulnerable_]Complete_Master): Modify assertion.
14335 * s-tataat.adb (Finalize): Use the nestable versions of
14336 Defer/Undefer_Abort.
14338 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14340 * s-tpobop.ads: Update comments.
14342 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14343 of locking the object manually, to avoid inconsistencies between
14344 Lock/Unlock_Entry assertions.
14346 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14348 application and System.Parameters.No_Abort is True.
14349 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14350 (Unbind_Handler): Fix handling of server_task wakeup
14351 (Server_Task): Set self's state so that Unbind_Handler can take
14352 appropriate actions.
14354 2007-06-06 Thomas Quinot <quinot@adacore.com>
14356 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14357 declarations instead of an explicit null body, for conciseness.
14359 2007-06-06 Robert Dewar <dewar@adacore.com>
14361 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14362 illegal aggregate and the type is still Any_Composite.
14363 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14365 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14367 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14368 to prevent subsequent expansion.
14370 2007-06-06 Robert Dewar <dewar@adacore.com>
14372 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14374 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14375 Robert Dewar <dewar@adacore.com>
14377 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14379 (Write_Itype): Handle case of string literal subtype, which
14380 comes up in this context.
14381 (Update_Itype): when debugging expanded code, update sloc of itypes
14382 associated with defining_identifiers and ranges, for gdb use.
14383 (Sprint_Node_Actual): Add static keyword to object or exception
14384 declaration output if Is_Statically_Allocated is True.
14385 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14386 or task body, so that the tree carries the proper Sloc information for
14388 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14390 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14392 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14393 compile time, to avoid dynamic memory allocation
14394 (Elaboration code): Only use dynamic memory allocation when needed.
14396 2007-06-06 Quentin Ochem <ochem@adacore.com>
14398 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14400 (Stack_Analyzer): Added field "Overflow_Guard"
14401 (Task_Result): Added field "Overflow_Guard".
14402 (Index_Str): New constant.
14403 (Task_Name_Str): New constant.
14404 (Actual_Size_Str): New constant.
14405 (Pattern_Array_Element_Size): New constant.
14406 (Get_Usage_Range): New subprogram.
14407 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14408 Now align the output.
14410 (Initialize): Added value for Overflow_Guard.
14411 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14412 Update the value of the overflow guard according to the actual
14413 beginning of the pattern array.
14414 (Initialize_Analyzer): Added parameter Overflow_Guard.
14415 Take this parameter into accound when computing the max size.
14416 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14417 (Report_Result): Removed extra useless procedure.
14418 Updated call to Output_Result.
14419 Moved full computation of the Task_Result here.
14421 2007-06-06 Thomas Quinot <quinot@adacore.com>
14423 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14424 Thread_Blocking_IO, always True by default, set False on a per-runtime
14426 Add Windows-specific constants
14427 Add new constant Need_Netdb_Buffer.
14428 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14429 not, whether to use getXXXbyYYY_r.
14431 * gsocket.h: Add new constant Need_Netdb_Buffer.
14432 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14433 not, whether to use getXXXbyYYY_r.
14435 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14437 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14438 than their first call.
14439 Add type Dummy_Communication_Block used in the generation of the pre-
14440 defined dispatching primitive _disp_asynchronous_select.
14441 (Storage_Element): Put Pragma Universal_Aliasing on it.
14443 2007-06-06 Vincent Celier <celier@adacore.com>
14445 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14448 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14449 letter if it is not followed by a '/' or a '\'.
14450 (Windows): New Boolean function
14452 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14454 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14456 (Containing_Directory): Raise Use_Error when the directory is a root
14458 (Extension): When returning the result, use a conversion to Result_Type,
14459 not a qualification.
14461 2007-06-06 Robert Dewar <dewar@adacore.com>
14463 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14464 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14466 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14467 Warn_On_Non_Local_Exception to False, to turn off warnings for
14468 No_Exception_Propagation in ZFP runtime.
14469 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14471 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14473 2007-06-06 Vincent Celier <celier@adacore.com>
14475 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14478 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14479 (Scan_Make_Switches): Recognize new switch -aP
14481 2007-06-06 Matthew Gingell <gingell@adacore.com>
14482 Jose Ruiz <ruiz@adacore.com>
14484 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14485 VxWorks task descriptor in the Ada run time, call a C subprogram
14486 (__gnat_get_stack_info) that extracts the required information.
14488 * sysdep.c: Back out temporary lynxos workaround.
14489 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14490 time the stack information associated to the currently executing task.
14491 Only VxWorks systems require this function.
14493 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14495 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14496 add the stack bias if the offset is computed from a frame address.
14497 (__gnat_backtrace): Adjust for above change.
14499 2007-06-06 Thomas Quinot <quinot@adacore.com>
14501 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14502 PE_Non_Transportable_Actual.
14503 (By_Descriptor_Last): New constant.
14504 (By_Copy_Return): Likewise.
14506 2007-06-06 Vincent Celier <celier@adacore.com>
14508 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14511 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14512 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14513 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14514 Add missing comment for /OPTIMIZE=SPACE
14515 Add entry for OPTIMIZE=SPACE
14516 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14517 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14519 2007-06-06 Vincent Celier <celier@adacore.com>
14520 Robert Dewar <dewar@adacore.com>
14522 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14525 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14526 Document gnatbind switch -a
14527 (case Constructions): Document that variables declarations are allowed
14528 for previously declared variables.
14529 Fix external lib project example
14530 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14531 Indicate that "#if not X or Y then" is not allowed in input files to
14533 Document gnatw.x and gnatw.X warning flags
14534 Mention -Winline switch to activate warnings when back-end inlining is
14536 Add gnatcheck rule descriptions
14537 Describe how to use the GNAT driver to call a tool on a closure.
14538 Describe how to run project-wide checks or metrics.
14539 Document gnatbind's -R option
14540 Updated to account for Ada 2005 support
14542 * gnat_rm.texi (Case Construction): Allow variable declarations for
14543 previously declared variables.
14544 (Representation Clauses and Pragmas): Lift restriction on alignment
14545 clauses for record types.
14546 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14547 Document No_Exception_Propagation restriction
14548 Document No_Body pragma
14549 Updated to account for Ada 2005 support; corrected some typos
14550 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14552 * gnat-style.texi: Make it clear that we never use mode IN for
14553 procedures or functions
14555 * ug_words: Add entries for -gnatw.x and -gnatw.X
14556 Add entries for -gnatw.c/.C
14558 2007-06-06 Pascal Obry <obry@adacore.com>
14559 Vincent Celier <celier@adacore.com>
14561 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14562 dirs and library name.
14563 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14565 (Build_Library): Idem.
14566 (Compile_Individual_Sources): Idem.
14567 (Compile_Link_With_Gnatmake): Idem.
14568 (Compile_Sources): Idem.
14569 (Get_Imported_Directories): Idem.
14570 (Link_Executables): Idem. Same change for the executable dir.
14571 (Check_Compilation_Needed): C_Source_Path new variable containing
14572 the canonical form of Source_Path to check against the source names
14573 in the dependency file.
14574 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14575 verbose mode, display the name of the object directory we're changing
14577 (Saved_Switches): New name of table X_Switches
14578 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14579 (Usage): New line for switch -aP
14580 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14581 testing if a directory should be added to the search path.
14583 2007-06-06 Javier Miranda <miranda@adacore.com>
14585 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14586 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14587 declaration after freezing point of all its associated tagged types;
14588 otherwise such types are frozen too early.
14590 2007-06-06 Robert Dewar <dewar@adacore.com>
14592 * a-reatim.adb: Documentation addition
14594 * g-cgideb.adb: Minor code reorganization
14596 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14597 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14598 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14600 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14601 function. Change name New_Scope to Push_Scope
14602 (Get_Debug_Flag_K): Remove unused obsolete function.
14604 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14607 * makeusg.adb: Update Copyright notice
14608 Add line for switch -aP
14610 * makeusg.adb: Fix wording of some usage messages
14612 * s-assert.adb (Raise_Assert_Failure): Add call to
14613 Debug_Raise_Assert_Failure.
14615 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14616 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14617 is restricted to 1).
14619 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14621 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14622 node location to No_Location when we're not debugging the expanded
14625 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14627 * misc.c (enumerate_modes): Consider log2_b to always be one.
14629 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14631 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14633 2007-05-02 Pascal Obry <obry@adacore.com>
14635 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14636 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14637 encoding support of Stream_IO.
14638 (Write_Unit): Idem.
14640 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14641 filename and corresponding encoding to match the OS requirement.
14642 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14643 routine will fail on specific devices like CON: AUX: ...
14645 PR ada/29856: Add missing braces
14647 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14650 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14652 2007-04-21 Jan Hubicka <jh@suse.cz>
14654 * misc.c (gnat_expand_body): Don't call target for destructors,
14655 avoid redundant check on syntax errors.
14657 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14659 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14660 instead of checking GIMPLE_STMT_P in chain_next.
14662 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14665 * system-linux-alpha.ads: Disable constant condition warning for the
14666 Default_Bit_Order variable.
14667 * system-linux-s390.ads: Likewise.
14668 * system-linux-s390x.ads: Likewise.
14669 * system-linux-sparc.ads: Likewise.
14671 2007-04-06 Javier Miranda <miranda@adacore.com>
14672 Matt Heaney <heaney@adacore.com>
14673 Robert Dewar <dewar@adacore.com>
14675 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14676 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14677 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14678 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14679 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14680 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14681 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14682 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14683 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14684 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14685 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14686 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14687 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14688 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14689 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14690 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14691 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14692 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14693 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14694 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14695 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14696 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14697 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14698 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14699 s-taprop-tru64.adb, s-taprop-irix.adb,
14700 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14701 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14702 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14703 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14704 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14705 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14706 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14707 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14708 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14709 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14710 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14711 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14712 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14713 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14714 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14715 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14716 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14717 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14718 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14719 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14721 Update documentation.
14724 2007-04-06 Robert Dewar <dewar@adacore.com>
14726 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14727 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14728 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14729 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14730 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14731 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14732 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14733 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14734 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14735 system-hpux-ia64.ads, targparm.adb,
14736 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14738 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14739 kept for bootstrap purposes only.
14741 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14743 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14744 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14745 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14746 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14748 2007-04-06 Robert Dewar <dewar@adacore.com>
14750 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14751 (Local_Raise): New dummy procedure called when a raise is converted
14752 to a local goto. Used for debugger to detect that the exception
14755 * debug.adb: Document new d.g flag (expand local raise statements to
14756 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14758 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14760 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14761 suppress warnings for unused handlers.
14762 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14763 warnings for raise statements not handled locally.
14764 (Get_RT_Exception_Entity): New function
14765 (Get_Local_Call_Entity): New function
14766 (Find_Local_Handler): New function
14767 (Warn_If_No_Propagation): New procedure
14768 (Expand_At_End_Handler): Call Make_Implicit_Handler
14769 (Expand_Exception_Handlers): Major additions to deal with local handlers
14770 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14771 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14774 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14775 (Get_Local_Call_Entity): New function
14777 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14778 of restrictions that the binder will never suggest adding.
14780 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14783 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14784 be with'ed in the presence of pragma Restriction
14785 (No_Exception_Propagation).
14787 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14789 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14790 parameter, then the handler is not a suitable target for a local raise,
14791 and this is a violation of restriction No_Exception_Propagation.
14792 (Analyze_Handled_Statements): Analyze choice parameters in exception
14793 handlers before analyzing statement sequence (needed for proper
14794 detection of local raise statements).
14795 (Analyze_Raise_Statement): Reraise statement is a violation of the
14796 No_Exception_Propagation restriction.
14798 * s-rident.ads: Add new restriction No_Exception_Propagation
14800 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14801 function, like Make_Exception_Handler but sets Local_Raise_Statements
14803 (Add_Unique_Serial_Number): Deal with case where this is called during
14804 processing of configuration pragmas.
14806 2007-04-06 Thomas Quinot <quinot@adacore.com>
14807 Pat Rogers <rogers@adacore.com>
14808 Pascal Obry <obry@adacore.com>
14810 * g-stsifd-sockets.adb: New file.
14812 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14813 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14814 g-socthi-vms.adb: Move signalling
14815 fd management to a nested package, so that they can conveniently be
14816 moved to a subunit that is shared across Windows, VMS, and VxWorks
14817 (Ada implementation) or completed with imported bodies from socket.c
14819 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14821 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14822 the signalling file descriptor.
14823 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14824 signalling file descriptor.
14825 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14826 instead of creating a pair of sockets for signalling here.
14828 * g-socthi.adb: Ditto.
14829 Set the runtime process to ignore SIGPIPEs on platforms that support
14830 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14832 * g-socthi-mingw.adb: Ditto.
14833 (WS_Version): Use Windows 2.2.
14834 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14836 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14837 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14839 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14840 added GNAT byte swapping facility
14841 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14843 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14845 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14847 (__gnat_create_signalling_fds): New subprogram.
14848 Set the runtime process to ignore SIGPIPEs on platforms that support
14849 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14851 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
14852 Vincent Celier <celier@adacore.com>
14854 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14855 New version of Ada.Calendar which supports the new upper bound of Ada
14856 time (2399-12-31 86_399.999999999).
14857 The following modifications have been made to the package:
14858 - New representation of time as count of nanoseconds since the start of
14859 Ada time (1901-1-1 0.0).
14860 - Target independent Split and Time_Of routines which service both
14861 Ada 95 and Ada 2005 code.
14862 - Target independent interface to the Ada 2005 children of Calendar.
14863 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14864 - Handling of non-leap centenial years.
14865 - Updated clock function.
14866 - Updated arithmetic and comparison operators.
14868 * a-caldel.adb (To_Duration): Add call to target independent routine in
14869 Ada.Calendar to handle the conversion of time to duration.
14871 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14873 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14875 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14876 targets do not have a natural time zone, GMT is used as a default.
14877 (__gnat_get_task_options): New.
14879 * a-direct.adb (Modification_Time): Add with and use clauses for
14880 Ada.Calendar and Ada.
14881 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14882 since it is no longer needed.
14883 (Duration_To_Time): Removed.
14884 (OS_Time_To_Long_Integer): Removed.
14885 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14886 Formatting Time_Of routines which automatically handle time zones,
14887 buffer periods and leap seconds.
14889 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14890 target independent routines in Ada.Calendar.
14892 * a-calfor.ads, a-calfor.adb:
14893 Code cleanup and addition of validity checks in various routines.
14894 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14897 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14898 independent routine in Ada.Calendar.
14900 2007-04-06 Olivier Hainque <hainque@adacore.com>
14903 (convert_addresses): Adjust prototype and dummy definition to expect an
14904 extra file_name argument.
14906 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14907 filling the now expected file_name argument with the appropriate
14909 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14910 (tracebk): Array of void * instead of char *, corresponding to what
14911 convert_addresses expects.
14912 (exename): New static global, to hold the executable file name to be
14913 used in all convert_addresses invocations.
14914 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14916 (__gnat_gmem_a2l_initialize): Resolve exename.
14917 (__gnat_convert_addresses): Use exename as the convert_addresses
14918 file_name argument.
14920 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14921 "convert_addresses", now expecting a filename argument. Import the
14922 necessary entities to compute the filename to use and pass it to
14925 2007-04-06 Matt Gingell <gingell@adacore.com>
14927 * system-aix.ads: Back out previous change.
14928 (Functions_Return_By_DSP): Removed
14930 2007-04-06 Pascal Obry <obry@adacore.com>
14932 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14933 or the monotonic used by Ada.Real_Time) to compute the sleep duration
14936 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14938 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14939 function. Its value changes in different VxWorks versions, and it is
14940 now handled by the function __gnat_get_task_options.
14942 * s-taprop-vxworks.adb (Create_Task): Call the function
14943 __gnat_get_task_options to get the required options for creating a task.
14945 2007-04-06 Pascal Obry <obry@adacore.com>
14946 Thomas Quinot <quinot@adacore.com>
14948 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14949 dealing with filename.
14950 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14951 filename from a standard string to a wide-string depending on the
14953 (__gnat_freopen): Idem.
14954 (__gnat_current_time): New function (wrapper for time(3) standard C
14957 * g-os_lib.ads (Current_Time): New function. Returns the current
14958 system time as an OS_Time value.
14960 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14961 (Monotonic_Clock): Same.
14963 2007-04-06 Quentin Ochem <ochem@adacore.com>
14965 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14967 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14969 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14971 * a-retide.adb: Add elaboration code to ensure that the tasking run
14972 time is initialized when using delay operations even when no task is
14975 2007-04-06 Javier Miranda <miranda@adacore.com>
14977 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14978 component Num_Prim_Ops.
14979 (Set_Num_Prim_Ops): Removed.
14980 Remove all the assertions because all the routines of this
14981 package are inline always.
14982 (Get_Offset_Index): Add support to primary dispatch tables.
14983 Move the documentation about the dispatch table to a-tags.ads
14984 (Set_External_Tag): Removed
14985 (Inherit_TSD): Removed.
14986 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14987 moved to a-tags.ads
14988 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14989 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14990 of the TSD field "Table" because this field has been renamed to
14992 (Inherit_CPP_DT): Removed.
14993 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14994 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14995 declarations have been moved to a-tags.ads
14996 (Check_Size): Removed.
14997 (Expanded_Name): Updated to get access to the new field of TSD
14998 containing the address of the expanded name.
14999 (Get_Access_Level/Set_Access_Level): Removed.
15000 (Get_Predefined_Prim_Op_Address): Removed.
15001 (Set_Predefined_Prim_Op_Address): Removed.
15002 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15003 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15004 (Set_Expanded_Name): Removed.
15005 (Inherit_DT): Removed.
15006 (Inherit_CPP_DT): Removed.
15007 (Set_RC_Offset): Removed.
15008 (Set_TSD): Removed.
15009 (Base_Address): New function that displaces "this" to point to the base
15010 of the object (that is, to point to the primary tag of the object).
15012 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15013 Javier Miranda <miranda@adacore.com>
15015 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15016 anonymous access component, do not create a master_id if type already
15017 has one, as may happen if the type is a subcomponent of a packed array
15019 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15020 Initialize_Tag): Remove code associated with the old CPP pragmas.
15021 CPP_Virtual and CPP_Vtable are no longer supported.
15022 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15023 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15024 (Freeze_Record_Type): Remove call to
15025 Init_Predefined_Interface_Primitives.
15026 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15027 code required to initialize the tags of the secondary dispatch tables.
15028 This leaves the algoritm more clear.
15029 (Init_Secondary_Tags): Add support for concurrent record types
15030 (Make_Predefined_Primitive_Specs): Code cleanup.
15031 (Predefined_Primitive_Bodies): Code cleanup.
15032 (Build_Master_Renaming): New local subprogram.
15033 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15034 anonymous access to task type components.
15035 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15036 subtype indication are resolved during analysis, and must not be done
15038 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15040 2007-04-06 Geert Bosch <bosch@adacore.com>
15041 Ed Schonberg <schonberg@adacore.com>
15042 Javier Miranda <miranda@adacore.com>
15043 Bob Duff <duff@adacore.com>
15045 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15046 for conversion of a Float_Type'Truncation to integer.
15048 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15049 check if a node is an attribute that can be handled directly by the
15051 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15052 attributes that can be handled directly by the back end.
15053 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15054 use new predicate Is_Access_Protected_Subprogram_Type.
15055 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15056 and Unchecked_Union if it is generated as part of the default Output
15057 procedure for a type with default discriminants.
15058 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15059 if we are compiling under restriction No_Dispatching_Calls.
15060 (Constrained): Use Underlying_Type, in case the type is private without
15061 discriminants, but the full type has discriminants.
15062 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15063 call to Build_Get_Access_Level.
15064 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15065 interface objects requires a call to the run-time subprogram that
15066 returns the base address of the object.
15067 (Valid_Conversion): Improve error message on illegal attempt to store
15068 an anonymous access to subprogram value into a record component.
15070 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15072 (Simplify_Type_Conversion): New procedure that performs simplification
15073 of Int_Type (Float_Type'Truncation (X)).
15074 (Resolve_Type_Conversion): Call above procedure after resolving operand
15075 and before performing checks. This replaces the existing ineffective
15077 (Set_String_Literal_Subtype): When creating the internal static lower
15078 bound subtype for a string literal, use a newly created copy of the
15079 subtree representing the lower bound.
15080 (Resolve_Call): Exclude build-in-place function calls from transient
15081 scope treatment. Update comments to describe this exception.
15082 (Resolve_Equality_Op): In case of dispatching call check violation of
15083 restriction No_Dispatching_Calls.
15084 (Resolve_Call): If the call returns an array, the context imposes the
15085 component type of the array, and the function has one non-defaulted
15086 parameter, rewrite the call as the indexing of a call with a single
15087 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15089 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15090 the master of the created object is the innermost enclosing statement.
15091 (Remove_Conversions): For a binary operator, check if type of second
15092 formal is numeric, to check if an abstract interpretation is present
15093 in the case of exponentiation as well.
15095 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15096 Bob Duff <duff@adacore.com>
15098 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15099 copying a parameter list in a call, set properly the First_Named_Formal
15100 and Next_Named_Formal fields in the new list and in the enclosing call.
15101 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15102 names, to ease typing in the debugger. Improve comments.
15103 (Watch_Node): New variable, intended to be set in the debugger.
15104 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15105 called when the watched node is created.
15106 (New_Node_Debugging_Output): Combined version of local procedures
15107 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15108 with a parameter so that conditional breakpoints like "if Node = 12345"
15110 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15111 Add Elist1 function
15113 2007-04-06 Thomas Quinot <quinot@adacore.com>
15114 Ed Schonberg <schonberg@adacore.com>
15115 Gary Dismukes <dismukes@adacore.com>
15117 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15118 required for a conversion between two access-to-unconstrained-array
15120 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15121 to discriminant constraints on discriminant objects. This rule must
15122 apply as well to discriminants of protected types in private components.
15123 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15124 object of a null-excluding access type then don't require the
15125 the object declaration to have an expression and don't emit a
15128 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15129 Eric Botcazou <botcazou@adacore.com>
15131 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15134 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15135 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15138 * fe.h (Compiler_Abort): Add third parameter.
15140 * misc.c (internal_error_function): Build third argument from current
15141 input location and pass it to Compiler_Abort.
15143 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15145 * cstand.adb (Create_Standard): When the target's storage unit size is
15146 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15149 2007-04-06 Nicolas Roche <roche@adacore.com>
15151 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15152 absolute path can have the following form: device:/a/b. In this case
15153 '/' should be inserted between the path and the filename.
15155 2007-04-06 Olivier Hainque <hainque@adacore.com>
15156 Eric Botcazou <botcazou@adacore.com>
15158 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15159 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15160 corresponding definition has created the so made visible variable.
15161 Handle anonymous access to protected subprogram.
15162 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15163 object with an address clause volatile. Re-enable original fix.
15164 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15166 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15167 associated with either the Equivalent or Root type, instead of the
15169 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15170 subtree for every field of a global record type.
15171 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15172 discriminants, invoke again variable_size on its newly computed sizes.
15174 2007-04-06 Robert Dewar <dewar@adacore.com>
15175 Thomas Quinot <quinot@adacore.com>
15176 Ed Schonberg <schonberg@adacore.com>
15177 Bob Duff <duff@adacore.com>
15179 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15180 (Next_Component_Or_Discriminant): New function and procedure
15181 (First_Index, First_Literal, Master_Id,
15182 Set_First_Index, Set_First_Literal, Set_Master_Id):
15183 Add missing Ekind assertions.
15184 (Is_Access_Protected_Subprogram_Type): New predicate.
15185 (Has_RACW): New entity flag, set on package entities to indicate that
15186 the package contains the declaration of a remote accecss-to-classwide
15188 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15189 attribute, in case the result type has controlled parts.
15190 (Requires_Overriding): Add this new flag, because "requires
15191 overriding" is subtly different from "is abstract" (see AI-228).
15192 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15193 Is_Abstract_Type. Make sure these are called only when appropriate.
15194 (Has_Pragma_Unreferenced_Objects): New flag
15196 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15197 class-wide, the tag of the right-hand side must be an exact match, not
15198 an ancestor of that of the object on left-hand side.
15199 (Move_Activation_Chain): New procedure to create the call to
15200 System.Tasking.Stages.Move_Activation_Chain.
15201 (Expand_N_Extended_Return_Statement): Generate code to call
15202 System.Finalization_Implementation.Move_Final_List at the end of a
15203 return statement if the function's result type has controlled parts.
15204 Move asserts to Build_In_Place_Formal.
15205 (Move_Final_List): New function to create the call statement.
15206 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15207 tagged type, replace generation of call to the run-time subprogram
15208 CW_Membership by call to Build_CW_Membership.
15209 (Expand_N_Return_Statement): Replace generation of call to the run-time
15210 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15211 (Expand_N_Simple_Function_Return): Replace generation of call to the
15212 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15214 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15215 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15216 access to protected operations.
15217 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15218 master and chain actual parameters to a build-in-place function call
15220 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15222 (Make_Build_In_Place_Call_In_Allocator,
15223 Make_Build_In_Place_Call_In_Anonymous_Context,
15224 Make_Build_In_Place_Call_In_Assignment,
15225 Make_Build_In_Place_Call_In_Object_Declaration): Call
15226 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15227 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15228 stubbed procedure with a null body, replace the call with a null
15229 statement without using the full inlining machinery, for efficiency
15230 and to avoid invalid values in source file table entries.
15232 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15233 renamings of calls to build-in-place functions.
15235 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15236 provides the functionality of RTE_Available to record components.
15237 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15238 to avoid undesired overloading.
15239 (Entity): New subprogram that returns the entity for the referened
15240 unit. If this unit has not been loaded, it returns Empty.
15241 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15242 Remove no longer used entities.
15243 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15244 (RE_Type_Specific_Data): New entity.
15245 (RE_Move_Any_Value): New entity.
15246 (RE_TA_A, RE_Get_Any_Type): New entities.
15247 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15248 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15249 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15250 (Entity): New subprogram that returns the entity for the referened
15251 unit. If this unit has not been loaded, it returns Empty.
15252 (RTE): Addition of a new formal that extends the search to the scopes
15253 of the record types found in the chain of the package.
15255 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15256 "abstract subprograms must be visible" message, whether or not the type
15257 is an interface; that is, remove the special case for interface types.
15258 (Analyze_Function_Return): Remove error message "return of task objects
15259 is not yet implemented" because this is now implemented.
15260 (Create_Extra_Formals): Add the extra master and activation chain
15261 formals in case the result type has tasks.
15262 Remove error message "return of limited controlled objects is not yet
15264 (Create_Extra_Formals): Add the extra caller's finalization list formal
15265 in case the result type has controlled parts.
15266 (Process_Formals): In case of access formal types there is no need
15267 to continue with the analysis of the formals if we already notified
15269 (Check_Overriding_Indicator): Add code to check overriding of predefined
15271 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15272 flags for formals that do not require them,.
15273 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15274 hidden entity is use visible or directly visible.
15275 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15276 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15277 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15278 New_Overloaded_Entity): Split Is_Abstract flag into
15279 Is_Abstract_Subprogram and Is_Abstract_Type.
15281 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15282 a return statement's finalization list to the caller's list, used for
15283 build-in-place functions with result type with controlled parts.
15284 Remove no longer used entities.
15286 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15287 longer needed, because the full type is now limited, and therefore a
15288 pass-by-reference type.
15289 (Foreign_Task_Level): New constant.
15291 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15292 move tasks from the activation chain belonging to a return statement to
15293 the one passed in by the caller, and update the master to the one
15294 passed in by the caller.
15295 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15296 of unactivated tasks, so we don't kill the ones that are being returned
15297 by a build-in-place function.
15298 (Create_Task): Ignore AI-280 for foreign threads.
15300 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15301 Robert Dewar <dewar@adacore.com>
15302 Bob Duff <duff@adacore.com>
15303 Gary Dismukes <dismukes@adacore.com>
15305 * errout.adb (Unwind_Internal_Type): Use predicate
15306 Is_Access__Protected_Subprogram_Type.
15308 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15309 (Freeze_Entity, packed array case): Do not override explicitly set
15310 alignment and size clauses.
15311 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15312 the enclosing subprogram is a child unit body that acts as a spec.
15313 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15314 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15315 Remove all code for DSP option
15317 * layout.adb (Layout_Record_Type): Use First/
15318 Next_Component_Or_Discriminant
15319 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15320 to handle properly the anonymous access case.
15322 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15323 for all access attributes, because overload resolution should work the
15324 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15325 causes the error message for the ambiguous "X'Access = Y'Access" and
15326 "X'Unrestricted_Access = Y'Access" and so forth to match.
15327 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15328 now that anonymous access to protected operations have their own kind.
15329 (Resolve_Attribute): In case of dispatching call check the violation of
15330 restriction No_Dispatching_Calls.
15331 (Check_Array_Type): Check new -gnatyA array index style option
15333 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15334 attempt to derive from a synchronized tagged type.
15335 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15336 type, inherit the class-wide type already created, because it may
15337 already have been used in a self-referential anonymous access component.
15338 (Mentions_T): Recognize self-referential anonymous access components
15339 that use (a subtype of) the class-wide type of the enclosing type.
15340 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15341 Derived_Type for Prev formal on call to
15342 Check_Anonymous_Access_Components rather than Empty.
15343 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15344 a record extension in deciding whether to create a class-wide type,
15345 rather than just checking Tagged_Present.
15346 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15347 to stand-alone object declarations as well as component declarations.
15348 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15349 prevent accidental overwriting when enclosing package appears in
15350 a limited_with_clause.
15351 (Array_Type_Declaration): If the component type is an anonymous access,
15352 the associated_node for the itype is the type declaration itself.
15353 (Add_Interface_Tag_Components): Modified to support concurrent
15354 types with abstract interfaces.
15355 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15356 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15357 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15358 to complete the decoration of synchronized interface types. Add also
15359 a call to Check_Abstract_Interfaces to verify the ARM rules.
15360 (Derive_Interface_Subprograms): Modified to support concurrent types
15361 with abstract interfaces.
15362 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15363 mark, rather than delaying the full resolution depending on context.
15364 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15365 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15366 Array_Type_Declaration,Build_Derived_Record_Type,
15367 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15368 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15369 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15370 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15371 called only when appropriate.
15372 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15374 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15375 an itype reference for the anonymous designated subtype, to prevent
15376 scope anonmalies in gigi.
15377 (Build_Itype_Reference): New utility, to simplify construction of such
15380 2007-04-06 Vincent Celier <celier@adacore.com>
15382 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15383 are suppressed, supply an initial dummy entry covering all possible
15386 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15387 and start with only one, such as "-RTS=none".
15388 (Collect_Arguments): Do not check for sources outside of projects.
15389 Do not collect arguments if project is externally built.
15390 (Compile_Sources): Do nothing, not even check if the source is up to
15391 date, if its project is externally built.
15392 (Compile): When compiling a predefined source, add -gnatpg
15393 as the second switch, after -c.
15394 (Compile_Sources): Allow compilation of Annex J renames without -a
15395 (Is_In_Object_Directory): Check if the ALI file is in the object
15396 even if there is no project extension.
15397 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15398 gnatbind if the ALI file effectively exists.
15399 (Initialize): Add the directory where gnatmake is invoked in front of
15400 the path if it is invoked from a bin directory, even without directory
15401 information, so that the correct GNAT tools will be used when spawned
15402 without directory information.
15404 * makeusg.adb: Change switch -S to -eS
15405 Add lines for new switches -we, -wn and -ws
15406 Add line for new switch -p
15408 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15409 Treat_As_Error and there are warnings.
15411 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15412 -gnatww Change gnatmake switch -S to -eS
15413 (Scan_Make_Switches): Code reorganisation. Process separately multi
15414 character switches and single character switches.
15415 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15416 False when switch is not recognized by gnatmake.
15417 (Scan_Make_Switches): Set Setup_Projects True when -p or
15418 --create-missing-dirs is specified.
15420 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15421 renamings Calendar, Machine_Code, Unchecked_Conversion and
15422 Unchecked_Deallocation only when Renamings_Included is True.
15424 * par.adb: Allow library units Calendar, Machine_Code,
15425 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15426 when -gnatg is not specified.
15427 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15428 there is no need to generate always a record_definition_node in case
15429 of synchronized interface types.
15430 (SIS_Entry_Active): Initialize global variable to False
15431 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15432 indicate cases where AI-447 says "not null" is legal.
15434 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15436 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15437 files with with several lines starting with the object fileb name.
15438 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15440 (Initialize): Add the directory where gprmake is invoked in front of the
15441 path, if it is invoked from a bin directory or with directory
15442 information, so that the correct GNAT tools will be used when invoked
15444 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15446 * vms_data.ads: Update switches/qualifiers
15448 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15449 Thomas Quinot <quinot@adacore.com>
15452 If the array component is a discriminated record, the array aggregate
15453 is non-static even if the component is given by an aggregate with
15455 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15456 (Convert_Aggr_In_Allocator): If the allocator is for an access
15457 discriminant and the type is controlled. do not place on a finalization
15458 list at this point. The proper list will be determined from the
15460 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15461 initialize record controller if needed, before the components, to ensure
15462 that they are properly finalized.
15463 (Build_Record_Aggr_Code): For the case of an array component that has a
15464 corresponding array aggregate in the record aggregate, perform sliding
15467 2007-04-06 Javier Miranda <miranda@adacore.com>
15468 Gary Dismukes <dismukes@adacore.com>
15469 Ed Schonberg <schonberg@adacore.com>
15471 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15472 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15474 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15475 accessibility on class-wide allocators if the allocator occurs at the
15476 same scope level as the allocator's type. The check is guaranteed to
15477 succeed in that case, even when the expression originates from a
15478 parameter of the containing subprogram.
15479 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15480 under No_Dispatching_Calls restriction. During the semantic analysis
15481 we already notified such violation.
15482 (Tagged_Membership): Constant folding. There is no need to check
15483 the tag at run-time if the type of the right operand is non
15484 class-wide abstract.
15485 Replace call to Is_Ancestor by call to Is_Parent
15486 to support concurrent types with interface types.
15487 (Expand_N_Allocator): Add an assertion associated with the generation
15489 (Expand_N_Slice): Do not enable range check to nodes associated
15490 with the frontend expansion of the dispatch table.
15491 (Is_Local_Access_Discriminant): Subsidiary function to
15492 Expand_N_Allocator.
15493 (Tagged_Membership): Replace generation of call to the run-time
15494 subprogram CW_Membership by call to Build_CW_Membership.
15495 (Expand_Allocator_Expression): Replace generation of call to the
15496 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15498 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15499 initialize most the TSD components by means of an aggregate.
15500 Modify the declaration of the object containing the TSD
15501 because we now expand code that has a higher level of abstraction.
15502 The TSD has a discriminant containing the Inheritance Depth Level,
15503 value that is used in the membership test but also to fix the size
15504 of the table of ancestors.
15505 (Expand_Interface_Conversion): Insert function body at the closest place
15506 to the conversion expression, to prevent access-before-elaboration
15507 errors in the backend.
15508 Code improved to reduce the size of the dispatch table if
15509 compiling under restriction No_Dispatching_Calls plus code cleanup.
15510 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15511 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15512 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15513 code to return immediately if compiling under No_Dispatching_Calls
15515 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15516 CPP_Virtual and CPP_Vtable are no longer supported.
15517 (Expand_Interface_Conversion): Add missing support for interface type
15519 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15520 Is_Parent to support concurrent types with interfaces.
15521 (Init_Predefined_Interface_Primitives): Removed.
15522 (Make_Secondary_DT): Modified to support concurrent record types.
15523 (Set_All_DT_Position): Modified to support concurrent record types.
15524 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15525 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15526 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15527 with CW_Membership.
15528 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15529 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15530 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15531 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15532 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15533 (Expand_Dispatching_Call): Replace generation of call to the run-time
15534 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15535 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15537 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15538 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15539 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15540 Build_Set_Prim_Op_Address.
15541 (Get_Remotely_Callable): Subprogram removed.
15542 (Init_Predefined_Interface_Primitives): Replace generation of call to
15543 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15546 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15547 First (Parameter_Associations ()) with the call to First_Actual that
15548 returns an actual parameter expression for both named and positional
15551 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15552 check violation of restriction No_Dispatching_Calls.
15553 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15554 controlling argument.
15556 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15557 First/Next_Component_Or_Discriminant
15558 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15559 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15560 specify Any_Limited_Interface, and this functionality is already
15561 provided by the function Has_Abstract_Interfaces.
15562 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15563 support concurrent types implementing interfaces.
15564 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15565 specify kind Any_Limited_Interface, and this functionality is already
15566 provided by the function Has_Abstract_Interfaces.
15567 (Remove_Side_Effects): replace Controlled_Type by
15568 CW_Or_Controlled_Type whenever the issue is related to
15569 using or not the secondary stack.
15571 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15572 P_Interface_Type_Definition to fulfill the new interface (the formal
15573 Is_Synchronized is no longer required).
15575 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15576 Update dependencies.
15578 * exp_atag.ads, exp_atag.adb: New file
15580 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15581 Bob Duff <duff@adacore.com>
15582 Cyrille Comar <comar@adacore.com>
15584 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15585 anonymous, use finalization list of enclosing dynamic scope.
15586 (Expand_N_Package_Declaration): For a library package declaration
15587 without a corresponding body, generate RACW subprogram bodies in the
15588 spec (just as we do for the task activation call).
15589 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15590 Is_Abstract_Type. Make sure these are called only when appropriate.
15591 Remove all code for DSP option
15592 (CW_Or_Controlled_Type): new subprogram.
15594 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15595 Ed Schonberg <schonberg@adacore.com>
15596 Gary Dismukes <dismukes@adacore.com>
15598 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15599 parameter. If it is set to true, return a result capped according to
15600 the global upper bound for the index of an entry family.
15601 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15602 (Build_Find_Body_Index): Adjust for above change.
15603 (Entry_Index_Expression): Likewise.
15604 (Is_Potentially_Large_Family): New function extracted from...
15605 (Collect_Entry_Families): ...here. Call it to detect whether the family
15606 is potentially large.
15607 (Build_Entry_Count_Expression): If the family is potentially large, call
15608 Family_Size with 'Cap' set to true.
15609 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15610 a protected version of an operation declared in the private part of
15611 a protected object, because they may be invoked through a callback.
15612 (Set_Privals): If the type of a private component is an anonymous access
15613 type, do not create a new itype for each protected body.
15614 If the body of a protected operation creates
15615 controlled types (including allocators for class-widetypes), the
15616 body of the corresponding protected subprogram must include a
15618 (Build_Activation_Chain_Entity): Build the chain entity for extended
15620 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15621 to determine whether operation overrides an inherited primitive.
15622 (Build_Wrapper_Spec): Add code to examine the parents while looking
15623 for a possible overriding candidate.
15624 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15625 hold an actual parameter value since its initialization is separated
15626 from the the declaration. Prevents errors on null-excluding access
15629 2007-04-06 Thomas Quinot <quinot@adacore.com>
15630 Pablo Oliveira <oliveira@adacore.com>
15632 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15633 Do an Unchecked_Conversion to handle the passage from the Underlying
15634 Type to the Base Type when calling Build_To_Any_Call and
15635 Build_From_Any_Call.
15636 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15637 E_Constant, depending upon Variable formal.
15638 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15639 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15640 parameter that requires an extra constrained parameter, declare
15641 temporary for actual as a variable, not a constant.
15642 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15643 the unit being compiled is the one that contains the stub type.
15644 Change primitive operation name for the RACW associated with a RAS
15645 from Call to _Call so it cannot clash with any legal identifier.
15646 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15648 (Append_RACW_Bodies): New subprogram.
15649 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15650 Add_Receiving_Stubs_To_Declarations functions.
15651 When expanding a package body, this list correspond to the
15652 statements in the HSS at the end of the pacakge.
15653 When expanding a package spec, this list correspond to the
15655 (Add_Receiving_Stubs_To_Declarations): Append the function
15656 registering the receiving stubs at the end of the 'Stmts' list.
15657 (RCI_Package_Locator): Pass the new Version generic formal when
15658 instantiating a RCI_Locator package.
15659 (Build_From_Any_Function): To compute the High bound for an
15660 unconstrained array actual, we add the Low bound with the length.
15661 Thus we must convert the low bound and the length to an appropriate
15662 type before doing the sum.
15663 (Build_Subprogram_Receiving_Stubs, PolyORB):
15664 * Retrieve the extra formals parameters at the
15665 end of the parameter stream.
15666 * Use Move_Any_Value to write back out parameters
15667 after executing the request as it is more efficient
15668 than Copy_Any_Value.
15669 * Build the any containing Extra Formals with the
15670 appropriate typecode.
15671 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15672 empty Component_List.
15673 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15674 the tree the declaration for an object that serves as actual parameter
15675 in server-side stubs.
15676 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15677 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15678 Use Build_Actual_Object_Declaration to prepare the actuals.
15679 (Add_Parameter_To_NVList): Set the parameter mode to In for
15680 Extra Constrained Parameters.
15681 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15682 Extra Constrained parameters.
15683 (Build_To_Any_Function, Build_From_Any_Function,
15684 Built_TypeCode_Function): When Typ is implicit, call the correct
15685 function with the first not implicit parent type.
15686 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15687 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15688 typecode from the Etype. Therefore we retrieve the correct typecode
15689 with a call to Get_Any_Type.
15690 (Copy_Specification): Do controlling formal type substitution based on
15691 Is_Controlling_Formal flag, instead of caller-provided object type.
15692 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15693 a RACW primitive operation, we might get a subprogram declaration for an
15694 ancestor of the RACW designated type (not for the designated type
15695 itself), in the case where this operation is inherited. In this case we
15696 have no easy means of determining the original tagged type for which
15697 the primitive was declared, so instead we now rely on
15698 Copy_Specification to use the Is_Controlling_Formal flag to determine
15699 which formals require type substitution.
15701 2007-04-06 Robert Dewar <dewar@adacore.com>
15702 Ed Schonberg <schonberg@adacore.com>
15704 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15705 GNAT.Current_Exception are not allowed if pragma Restrictions
15706 (No_Exception_Propagation) is set and in any case make the associated
15707 handler unsuitable as a target for a local raise statement.
15708 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15709 run-time subprogram CW_Membership by call to Build_CW_Membership.
15710 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15711 by a function call, a temporary must be created before expanding the
15712 Constructor_Call itself, to prevent out-of-order elaboration in the
15713 back-end when stack checking is enabled..
15715 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15717 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15718 result are the bounds of the left operand, not the right.
15720 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15723 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15724 discriminant defaults.
15725 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15726 (Make_Component_List_Attributes): Ditto.
15728 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15729 Bob Duff <duff@adacore.com>
15731 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15732 an association with a box as providing a value even though the
15733 initialization procedure for the type is not available.
15734 (Resolve_Record_Aggregate): Check that a choice of an association with a
15735 box corresponds to a component of the type.
15736 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15737 Is_Abstract_Subprogram and Is_Abstract_Type.
15739 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15742 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15743 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15744 called only when appropriate.
15746 2007-04-06 Olivier Hainque <hainque@adacore.com>
15748 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15749 associated vector view instead of all to the unsigned char view.
15751 * g-altcon.adb (Generic_Conversions): New internal generic package,
15752 offering facilities for all the Vector/View conversion routines
15753 implemented by this unit.
15754 (To_View/To_Vector - all versions): Reimplemented in a systematic
15755 manner, using the internal Generic_Conversions facilities.
15757 2007-04-06 Pascal Obry <obry@adacore.com>
15759 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15761 (Create): Free the source string before storing the new one.
15763 2007-04-06 Vincent Celier <celier@adacore.com>
15765 * g-debpoo.adb (Validity): New package with a complete new
15766 implementation of subprograms Is_Valid and Set_Valid.
15767 (Is_Valid): Move to local package Validity
15768 (Set_Valid): Move to local package Validity
15770 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15771 Pablo Oliveira <oliveira@adacore.com>
15773 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15774 we must ensure that there is enough place for the new data we are going
15777 2007-04-06 Thomas Quinot <quinot@adacore.com>
15779 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15782 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15783 Vincent Celier <celier@adacore.com>
15785 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15786 (Stack_String): Add this String that contains the name of the Stack
15787 package in the project file.
15788 (Packages_To_Check_By_Stack): Add this list that contains the packages
15789 to be checked by gnatstack, which are the naming and the stack packages.
15790 (Check_Files): If no .ci files were specified for gnatstack we add all
15791 the .ci files belonging to the projects, including binder generated
15793 (Non_VMS_Usage): Document that gnatstack accept project file switches.
15794 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15795 Add gnatstack to the list of commands that use project file related
15796 switches, and get the single attribute Switches from the stack package
15797 in a project file when calling gnatstack. Parse the -U flag for
15798 processing files belonging to all projects in the project tree.
15799 Remove all processing for command Setup
15801 * prj-attr.adb: Add new package Stack with single attribute Switches
15803 * vms_conv.ads (Command_Type): Add command Stack.
15804 Move to body declarations that are only used in the body: types Item_Id,
15805 Translation_Type, Item_Ptr, Item and its subtypes.
15807 * vms_conv.adb: (Initialize): Add data for new command Stack.
15808 Add declarations moved from the spec: types Item_Id, Translation_Type,
15809 Item_Ptr, Item and its subtypes.
15810 (Cargs_Buffer): New table
15811 (Cargs): New Boolean global variable
15812 (Process_Buffer): New procedure to create arguments
15813 (Place): Put character in table Buffer or Cargs_Buffer depending on the
15815 (Process_Argument): Set Cargs when processing qualifiers for GNAT
15817 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15818 empty, for table Cargs_Buffer.
15819 (Initialize): Remove component Setup in Command_List
15821 2007-04-06 Vincent Celier <celier@adacore.com>
15823 * gprep.adb (Process_Files.Process_One_File): Use full file name when
15824 issuing pragma Source_Reference.
15826 2007-04-06 Emmanuel Briot <briot@adacore.com>
15828 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15829 [[:xdigit:]] character class.
15830 Also raise an exception when an invalid character class is used.
15832 2007-04-06 Pascal Obry <obry@adacore.com>
15834 * i-cstrea.ads: (fopen): Add encoding parameter.
15836 Change reference from a-sysdep.c to sysdep.c in comment.
15837 Update copyright notice.
15838 This set of patch add support for the encoding form parameter.
15840 * mingw32.h (S2WSU): New macro to convert from a string to a
15841 wide-string using the UTF-8 encoding. The S2WS macro supports now only
15842 standard 8bits encoding.
15843 (WS2SU): As above but converting from wide-sring to string.
15844 This is needed as it is necessary to have access to both versions in the
15845 runtime for the form parameter encoding support.
15846 This set of patch add support for the encoding form parameter.
15847 (S2WS): Improve implementation to handle cases where the filename is not
15848 UTF-8 encoded. In this case we default to using the current code page
15849 for the conversion.
15851 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15852 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15853 the constants defined in adaint.h.
15854 (fopen): Add encoding parameter.
15857 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15858 encoding. This is needed for the Reset routine (freopen low level-call).
15860 * s-fileio.adb (Open): Decode encoding form parameter and set the
15861 corresponding encoding value into AFCB structure.
15862 (Reset): Pass the encoding value to freopen.
15863 (Close): Move the call to Lock_Task to the beginning of the procedure.
15865 2007-04-06 Geert Bosch <bosch@adacore.com>
15866 Robert Dewar <dewar@adacore.com>
15868 * i-fortra.ads: Add Double_Complex type.
15870 * impunit.adb: (Is_Known_Unit): New function
15871 Add Gnat.Byte_Swapping
15873 Add new Ada 2005 units
15874 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15875 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15876 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15877 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15879 * impunit.ads (Is_Known_Unit): New function
15881 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15882 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15883 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15884 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15885 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15886 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15889 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15891 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15893 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15894 Arnaud Charlet <charlet@adacore.com>
15896 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15897 __gnat_adjust_context_for_raise.
15898 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15899 implementation of floating point operations as native x86 targets.
15900 So the FPU should be initialized in the same way using finit. Fix
15901 floating point operations accuracy issues.
15902 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15903 member in struct sigaction, so as to avoid warning for incompatible
15906 2007-04-06 Serguei Rybin <rybin@adacore.com>
15908 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15909 switches from previously loaded tree
15911 2007-04-06 Thomas Quinot <quinot@adacore.com>
15913 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15914 cases where a given dependency has a body or not.
15915 (Write_With_File_Names): New subprogram, common code for the two cases
15918 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15919 Javier Miranda <miranda@adacore.com>
15921 * lib-xref.ads, lib-xref.adb:
15922 Modify the loop that collects type references, to include interface
15923 types that the type implements. List each of these interfaces when
15924 building the entry for the type.
15925 (Generate_Definition): Initialize component Def and Typ of new entry
15926 in table Xrefs, to avoid to have these components unitialized.
15927 (Output_References): Split Is_Abstract flag into
15928 Is_Abstract_Subprogram and Is_Abstract_Type.
15929 (Generate_Reference): Add barrier to do not generate the warning
15930 associated with Ada 2005 entities with entities generated by the
15933 2007-04-06 Robert Dewar <dewar@adacore.com>
15934 Arnaud Charlet <charlet@adacore.com>
15935 Vincent Celier <celier@adacore.com>
15937 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15938 Update 'Exception Handling Control' chapter which was outdated.
15939 Minor fix to documentation of -gnatwq
15940 Remove section "Adapting the Run Time to a New C++ Compiler" because
15941 it is now obsolete.
15942 Add passage on need of -nostart-files in some non-ada-main cases.
15943 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15944 Update documentation about Interfacing with C++
15945 Add documentation for new gnatmake switch -p
15946 Add missing protocol part in URLs.
15948 Document pragma Compile_Time_Error
15949 Add documentation for Object_Size indicating that stand alone
15950 objects can have a larger size in some cases.
15951 Add node for GNAT.Byte_Swapping, GNAT.SHA1
15952 Update reference to the Ravenscar profile.
15953 Document pragma Unreferenced_Objects
15955 * gnat-style.texi: Fix typo
15957 2007-04-06 Vincent Celier <celier@adacore.com>
15959 * mlib.adb (Building_Library): Only output "building a library..." in
15962 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15963 files in verbose mode.
15965 * mlib-utl.adb (Ar): Only output the first object files when not in
15967 (Gcc): Do not display all the object files if not in verbose mode, only
15970 2007-04-06 Robert Dewar <dewar@adacore.com>
15972 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15973 it no longer destroys the contents of Name_Buffer or Name_Len and
15974 non-standard and invalid names are handled better.
15975 (Get_Decoded_Name_String): Improve performance by using
15976 Name_Has_No_Encodings flag in the name table.
15977 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15978 Used for debugging printouts.
15980 2007-04-06 Robert Dewar <dewar@adacore.com>
15981 Javier Miranda <miranda@adacore.com>
15982 Bob Duff <duff@adacore.com>
15984 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15985 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15986 there is no need to generate always a record_definition_node in case
15987 of synchronized interface types.
15988 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15989 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15990 illegal in Ada 95, in cases where it is legal. Change the warnings to
15991 errors in other cases. Don't give the error unless the "not null"
15992 parses properly. Correct the source position at which the error occurs.
15993 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15994 P_Null_Exclusion, to suppress "not null" warnings.
15995 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15996 associated goto statements.
15998 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16001 * scans.ads (Type_Token_Location): New flag
16003 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16004 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16005 P_Null_Exclusion, to suppress "not null" warnings.
16007 2007-04-06 Robert Dewar <dewar@adacore.com>
16008 Javier Miranda <miranda@adacore.com>
16009 Bob Duff <duff@adacore.com>
16010 Vincent Celier <celier@adacore.com>
16012 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16013 (Extensions_Allowed): No longer sets Ada_Version
16014 Entry for pragma Unreferenced_Objects
16016 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16017 system.tasking if pragma priority used in a procedure
16018 (Analyze_Pragma, case Warning): Handle dot warning switches
16019 (Process_Compile_Time_Warning_Or_Error): New procedure
16020 (Analyze_Pragma): Add processing for Compile_Time_Error
16021 Add support for extra arguments External_Name and Link_Name.
16022 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16023 (Process_Import_Or_Interface): Add support for the use of pragma Import
16025 (Extensions_Allowed): No longer affects Ada_Version
16026 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16027 Is_Abstract_Type. Make sure these are called only when appropriate.
16028 Add processing for pragma Unreferenced_Objects
16030 * snames.h, snames.ads, snames.adb: Add entry for pragma
16032 Add new standard name Minimum_Binder_Options for new gprmake
16033 Add new standard names for gprmake: Archive_Suffix,
16034 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16035 Library_Support, Library_Version_Options,
16036 Shared_Library_Minimum_Options,
16037 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16038 Change Name_Call to Name_uCall so that it cannot clash with a legal
16040 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16041 Append C_Plus_Plus to convention identifiers as synonym for CPP
16042 Add new standard names Stack and Builder_Switches
16043 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16044 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16045 Run_Path_Option, Toolchain_Version.
16046 Entry for pragma Unreferenced_Objects
16048 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16049 switches, without repetition of "eD". Make sure that last character of
16050 -gnatep= switch is not taken as -gnat switch character.
16051 Complete rewrite of circuit for handling saving compilation options
16052 Occasioned by need to support dot switchs for -gnatw, but cleans up
16054 -gnatX does not affect Ada_Version
16055 Include -gnatyA in -gnatg style switches
16057 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16058 warnings on return objects.
16059 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16060 (Set_Dot_Warning_Switch): New procedure
16061 (Check_References): Add missing case of test for
16062 Has_Pragma_Unreferenced_Objects
16063 (Output_Unreferenced_Messages): Implement effect of new pragma
16064 Unreferenced_Objects, remove special casing of limited controlled
16067 2007-04-06 Vincent Celier <celier@adacore.com>
16069 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16070 the default project path, initially done during elaboration of the
16072 If the prefix returned by Sdefault is null, get the prefix from a call
16073 to Executable_Prefix_Path.
16074 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16077 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16078 canonical directory name to open the directory from which files are
16080 (Record_Other_Sources): Idem.
16081 (Locate_Directory): Add the possibility to create automatically missing
16082 directories when Setup_Projects is True.
16083 Call Locate_Directory so that the directory will be created when
16084 Setup_Projects is True, for object dir, library dir, library ALI dir,
16085 library source copy dir and exec dir.
16087 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16090 2007-04-06 Robert Dewar <dewar@adacore.com>
16092 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16093 Use First/Next_Component_Or_Discriminant
16094 (Analyze_Record_Representation_Clause):
16095 Use First/Next_Component_Or_Discriminant
16096 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16097 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16098 definition if type is unconstrained.
16099 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16100 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16101 Is_Abstract_Subprogram and Is_Abstract_Type.
16102 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16104 * repinfo.adb (List_Record_Info): Use First/
16105 Next_Component_Or_Discriminant.
16107 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16110 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16111 Include -gnatyA in default switches
16113 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16114 (Warn_On_Reverse_Bit_Order): New flag
16115 (Extensions_Allowed): Update the documentation.
16116 (Warn_On_Questionable_Missing_Parens): Now on by default
16118 * usage.adb: Add documentation of -gnatw.x/X switches
16119 Document new -gnatyA style switch
16120 -gnatq warnings are on by default
16122 2007-04-06 Ed Falis <falis@adacore.com>
16124 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16125 full word is no longer compared twice.
16127 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16129 * sem_ch10.adb (Install_Limited_Context_Clauses.
16130 Expand_Limited_With_Clause): Use a new copy of selector name in the
16131 call to Make_With_Clause. This fixes the tree structure for ASIS
16132 purposes. Nothing is changed in the compiler behaviour.
16133 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16134 a package renaming.
16135 (Install_Limited_With_Clauses): Do not install non-limited view when it
16136 is still incomplete.
16138 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16139 Gary Dismukes <dismukes@adacore.com>
16141 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16142 when capturing size information, instead of base type, which for a
16143 formal array type will be the unconstrained type.
16144 (Analyze_Formal_Object_Declaration): Add check for illegal default
16145 expressions for a formal in object of a limited type.
16146 (Instantiate_Object): Ditto.
16147 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16148 because they were defaulted in the formal package and no check applies
16150 (Check_Formal_Package_Instance): Extend conformance check to other
16151 discrete types beyond Integer.
16152 (Process_Default): Copy directly the unmatched formal. A generic copy
16153 has already been performed in Analyze_Formal_Package.
16154 (Analyze_Associations): If a formal subprogram has no match, check for
16155 partial parametrization before looking for a default, to prevent
16157 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16158 not set the instantiation environment before analyzing the actuals.
16159 Fixes regression on 8515-003 with implementation of AI-133.
16160 Set_Instance_Env checks whether the generic unit is a predefined
16161 unit, in which case the instance must be analyzed with the latest Ada
16162 mode. This setting must take place after analysis of the actuals,
16163 because the actuals must be analyzed and frozen in the Ada mode extant
16164 outside of the current instantiation.
16165 (Save_Env, Restore_Env): Preserve and restore the configuration
16166 parameters so that predefined units can be compiled in the proper Ada
16168 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16169 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16170 and Is_Abstract_Type.
16171 (Analyze_Formal_Package): For better error recovery, Add exception
16172 handler to catch Instantion_Error, which can be raised in
16173 Analyze_Associations
16175 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16176 Bob Duff <duff@adacore.com>
16177 Gary Dismukes <dismukes@adacore.com>
16179 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16180 prefix type is a discriminated subtype of the type of the formal.
16181 (Analyze_Allocator): Collect all coextensions regardless of the context.
16182 Whether they can be allocated statically is determined in exp_ch4.
16183 (Analyze_Selected_Component): If the prefix is a limited view and the
16184 non-limited view is available, use the non-limited one.
16185 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16186 therefore illegal), suggest a qualified expression rather than a type
16187 conversion, because a type conversion would be illegal in this context.
16188 (Anayze_Allocator): Trace recursively all nested allocators so that all
16189 coextensions are on the corresponding list for the root. Do no mark
16190 coextensions if the root allocator is within a declaration for a stack-
16191 allocated object, because the access discriminants will be allocated on
16193 (Analyze_Call): Remove restriction on calls to limited functions for the
16194 cases of generic actuals for formal objects, defaults for formal objects
16195 and defaults for record components.
16196 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16197 element list. Their expansion is delayed until the enclosing allocator
16198 is processed and its finalization list constructed.
16199 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16200 for an operation with the given name among the primitive operations of
16201 the corresponding record type.
16202 (Analyze_Selected_Component): If the prefix is a task type that
16203 implements an interface, and there is no entry with the given name,
16204 check whether there is another primitive operation (e.g. a function)
16206 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16207 properly the indexing of a function call written in prefix form, where
16208 the function returns an array type, and all parameters of the function
16209 except the first have defaults.
16210 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16211 the original operands, rather than relocating them, for efficiency and
16212 to work properly when an operand is overloaded.
16213 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16214 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16215 (Analyze_Selected_Component): If the prefix is a private extension, only
16216 scan the visible components, not those of the full view.
16217 (Try_Primitive_Operation): If the operation is a procedure, collect all
16218 possible interpretations, as for a function, because in the presence of
16219 classwide parameters several primitive operations of the type can match
16220 the given arguments.
16222 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16223 Robert Dewar <dewar@adacore.com>
16225 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16226 tag-indeterminate call to an abstract function, when the left-hand side
16228 (Analyze_Loop_Statement): Improve detection of infinite loops
16230 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16231 Thomas Quinot <quinot@adacore.com>
16233 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16234 out of Analyze_Package_Declaration, because processing must be applied
16235 to package bodies as well, for deferred constants completed by pragmas.
16236 (Analyze_Package_Declaration): When the package declaration being
16237 analyzed does not require an explicit body, call Check_Completion.
16238 (May_Need_Implicit_Body): An implicit body is required when a package
16239 spec contains the declaration of a remote access-to-classwide type.
16240 (Analyze_Package_Body): If the package contains RACWs, append the
16241 pending subprogram bodies generated by exp_dist at the end of the body.
16242 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16243 Is_Abstract_Subprogram and Is_Abstract_Type.
16244 (Preserve_Full_Attributes): The full entity list is not an attribute
16245 that must be preserved from full to partial view.
16247 * sem_dist.adb (Add_RAS_Dereference_TSS):
16248 Change primitive name to _Call so it cannot clash with any legal
16249 identifier, and be special-cased in Check_Completion.
16250 Mark the full view of the designated type for the RACW associated with
16251 a RAS as Comes_From_Source to get proper view switching when installing
16252 private declarations.
16253 Provite a placeholder nested package body along with the nested spec
16254 to have a place for Append_RACW_Bodies to generate the calling stubs
16255 and stream attributes.
16257 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16258 Robert Dewar <dewar@adacore.com>
16260 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16261 that is a limited view, check the non-limited view if available.
16262 (Undefined): Refine error message for missing with of Text_IO
16263 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16264 to distinguish real missing with cases.
16265 Fix format of all missing with messages
16266 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16267 renaming as body when renamed entity is abstract.
16269 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16270 Javier Miranda <miranda@adacore.com>
16272 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16273 predicate recursive, to handle complex expressions on literals whose
16274 spurious ambiguity comes from the abstract interpretation of some
16276 (Interface_Present_In_Ancestor): Add support to concurrent record
16278 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16279 Is_Abstract_Subprogram and Is_Abstract_Type.
16281 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16282 Javier Miranda <miranda@adacore.com>
16284 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16285 dereference of a local object R created as a reference to another
16286 object O, use the access level of O.
16287 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16288 rather than local Same_Formal_Type, to check whether protected operation
16289 overrides an inherited one.
16290 (Same_Formal_Type): New predicate, used when matching signatures of
16291 overriding synchronized operations, to handle the case when a formal
16292 has a type that is a generic actual.
16293 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16294 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16295 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16296 syntactic ambiguities involving indexing of function calls that return
16298 (Abstract_Interface_List): New subprogram that returns the list of
16299 abstract interfaces associated with a concurrent type or a
16300 concurrent record type.
16301 (Interface_Present_In_Parent): New subprogram used to check if a
16302 given type or some of its parents implement a given interface.
16303 (Collect_Abstract_Interfaces): Add support for concurrent types
16304 with interface types.
16305 (Has_Abstract_Interfaces): Add support for concurrent types with
16307 (Is_Parent): New subprogram that determines whether E1 is a parent
16308 of E2. For a concurrent type its parent is the first element of its
16309 list of interface types; for other types this function provides the
16310 same result than Is_Ancestor.
16311 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16312 (Collect_Synchronized_Interfaces): Removed because the subprogram
16313 Collect_Abstract_Interfaces provides this functionality.
16314 (Collect_Abstract_Interfaces): Minor update to give support to
16315 concurrent types and thus avoid undesired code duplication.
16316 (Get_Subprogram_Entity): Handle entry calls.
16317 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16319 (Enter_Name): Do not give -gnatwh hiding warning for record component
16320 entities, they never result in hiding.
16322 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16323 Robert Dewar <dewar@adacore.com>
16325 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16326 to chain nested components that are allocators for access discriminants
16327 of the enclosing object.
16328 Add N_Push and N_Pop nodes
16329 New field Exception_Label added
16330 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16331 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16332 (Is_Coextension): New flag for allocators, to mark allocators that
16333 correspond to access discriminants of dynamically allocated objects.
16334 (N_Block_Statement): Document the fact that the corresponding entity
16335 can be an E_Return_Statement.
16336 (Is_Coextension): New flag for allocators.
16337 Remove all code for DSP option
16339 * sprint.ads, sprint.adb: Display basic information for class_wide
16340 subtypes. Add handling of N_Push and N_Pop nodes
16342 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16344 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16345 before propagating exception.
16347 2007-04-06 Olivier Hainque <hainque@adacore.com>
16349 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16350 an address always within the call instruction from a return address.
16352 2007-04-06 Olivier Hainque <hainque@adacore.com>
16353 Eric Botcazou <botcazou@adacore.com>
16355 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16356 expression with a COMPOUND_EXPR including the call instead of emitting
16357 the call directly here.
16358 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16359 high bound is constant and the slice is empty. Tidy.
16360 (tree_transform, case N_Op_Not): Handle properly the case where the
16361 operation applies to a private type whose full view is a modular type.
16362 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16363 Address_Clause, use the associated Expression as the GNAT tree
16364 representing the choice value to ensure the corresponding GCC tree is
16365 of the proper kind.
16366 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16367 instead of just the operands, as the base GCC stabilize_reference does.
16368 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16369 requested; otherwise fail.
16370 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16372 2007-04-06 Thomas Quinot <quinot@adacore.com>
16374 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16375 implementation of UI_Div.
16376 (UI_Div): Reimplement as a call to UI_Div_Rem.
16377 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16378 remainder, avoiding the cost of a multiplication and a subtraction.
16379 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16380 provides both quotient and remainder in a single computation.
16381 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16382 functions for uint.
16383 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16384 is undefined if the given n is not inversible.
16386 2007-04-06 Olivier Hainque <hainque@adacore.com>
16388 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16389 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16392 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16393 Olivier Hainque <hainque@adacore.com>
16395 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16396 when updating the contents of the old pointer to an unconstrained array.
16397 (end_subprog_body): Set error_gnat_node to Empty.
16398 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16399 (unchecked_convert): For subtype to base type conversions, require that
16400 the source be a subtype if it is an integer type.
16401 (builtin_decls): New global, vector of available builtin functions.
16402 (gnat_pushdecl): Add global builtin function declaration nodes to the
16403 builtin_decls list.
16404 (gnat_install_builtins): Adjust comments.
16405 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16406 calling gnat_pushdecl, so that it knows when it handed a builtin
16407 function declaration node.
16408 (builtin_decl_for): Search the builtin_decls list.
16410 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16412 * s-stchop-vxworks.adb:
16413 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16415 2007-04-06 Robert Dewar <dewar@adacore.com>
16416 Arnaud Charlet <charlet@adacore.com>
16418 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16420 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16422 Add mention of -Sev (set initialize_scalars option from environment
16423 variable at run time) in gnatbind usage message.
16425 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16427 * fname-uf.ads: Minor comment fix
16429 * osint.ads: Change pragma Elaborate to Elaborate_All
16431 * par-load.adb: Add documentation.
16433 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16435 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16437 * s-secsta.ads: Extra comments
16439 * s-soflin.ads: Minor comment fixes
16441 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16443 * s-wchcon.ads: Minor comment addition
16445 * treepr.adb: Minor change in message
16446 (Print_Name,Print_Node): Make these debug printouts more robust: print
16447 "no such..." instead of crashing on bad input.
16449 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16451 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16452 instead of gnat_signed_or_unsigned_type.
16453 * utils.c (gnat_signed_or_unsigned_type): Remove.
16454 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16455 * gigi.h (gnat_signed_or_unsigned_type): Remove
16457 2007-03-09 Roger Sayle <roger@eyesopen.com>
16459 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16460 fold with the result of buildN.
16461 * decl.c (gnat_to_gnu_entity): Likewise.
16462 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16463 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16465 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16466 nonbinary_modular_operation, build_binary_op, build_unary_op,
16467 build_cond_expr): Likewise.
16469 * utils.c (convert): Use fold_build1 when casting values to void.
16470 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16471 fold_convert instead of convert when appropriate.
16473 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16475 * Make-lang.in: Add install-pdf target as copied from
16476 automake v1.10 rules.
16478 2007-02-28 Andreas Schwab <schwab@suse.de>
16480 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16481 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16482 (doc/gnat-style.info): Likewise.
16484 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16486 * gnat-style.texi: Standardize title page.
16487 * gnat_rm.texi: Likewise.
16488 * gnat_ugn.texi: Likewise.
16490 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16492 * decl.c (annotate_value): Adjust for refactoring of tree_map
16495 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16497 * decl.c (annotate_value): Adjust for refactoring of tree_map
16500 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16503 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16504 untagged derived type, add hidden components to keep discriminant
16505 layout consistent, when a given discriminant of the derived type
16506 constraints several discriminants of the parent type.
16508 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16509 Sandra Loosemore <sandra@codesourcery.com>
16511 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16512 build the call expression.
16513 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16514 * utils.c (max_size) <tcc_exceptional>: Delete.
16515 <tcc_vl_exp>: New case.
16516 <tcc_expression>: Delete CALL_EXPR subcase.
16517 (build_global_cdtor): Use build_call_nary instead of build3.
16518 * utils2.c (build_call_1_expr): Likewise.
16519 (build_call_2_expr): Likewise.
16520 (build_call_0_expr): Likewise.
16521 (build_call_alloc_dealloc): Likewise.
16523 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16525 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16526 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16527 and _Unwind_SWord with _sleb128_t.
16529 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16531 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16532 * decl.c: Include gt-ada-decl.h.
16533 (annotate_value_cache): New.
16534 (annotate_value): Use it instead of TREE_COMPLEXITY.
16536 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16538 * misc.c, utils2.c: Fix comment typos.
16540 2007-01-24 Roger Sayle <roger@eyesopen.com>
16542 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16543 TREE_CONSTANT_OVERFLOW.
16544 (allocatable_size_p, annotate_value): Likewise.
16545 * trans.c (gnat_to_gnu): Likewise.
16546 * utils.c (unchecked_convert): Likewise.
16547 * utils2.c (build_simple_component_ref): Likewise.
16549 2007-01-23 Richard Guenther <rguenther@suse.de>
16552 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16553 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16554 (gnatboot3): Likewise.
16555 (GNATBIND): Do not define.
16556 * Makefile.in (GNATBIND): Do not define.
16558 2007-01-08 Richard Guenther <rguenther@suse.de>
16560 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16561 * trans.c (gnat_to_gnu): Likewise.
16563 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16565 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16566 * adaint.c: Likewise.
16568 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16570 Merge from gimple-tuples-branch:
16571 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16573 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16574 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16575 GIMPLE_MODIFY_STMT.
16577 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16579 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16580 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16583 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16586 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16587 if the initializer takes into account the padding.
16589 2006-11-11 Richard Guenther <rguenther@suse.de>
16591 * trans.c (maybe_stabilize_reference): Remove handling of
16592 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16594 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16597 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16598 (To_Target_Priority): New function.
16600 2006-10-31 Robert Dewar <dewar@adacore.com>
16602 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16603 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16604 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16605 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16606 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16607 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16608 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16609 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16610 a-szbzha.adb: Minor reformatting. Fix header.
16612 * a-numaux-x86.adb: Add parentheses for use of unary minus
16613 * a-ngcefu.adb: Supply missing parentheses for unary minus
16614 * a-ngcoty.adb: Add parens for use of unary minus
16615 * a-ngelfu.adb: Add missing parens for unary minus
16616 * a-tifiio.adb: Add parentheses for uses of unary minus
16618 2006-10-31 Robert Dewar <dewar@adacore.com>
16619 Bob Duff <duff@adacore.com>
16620 Ed Schonberg <schonberg@adacore.com>
16622 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16623 with multiplying operator.
16624 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16625 pointer whether the context expects "any real type".
16626 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16627 universal_fixed "*" and "/" operators when they are used in a context
16628 that expects any real type. Also set the type of the node to
16629 Universal_Real in this case, because downstream processing requires it
16630 (mainly static expression evaluation).
16631 Reword some continuation messages
16632 Add some \\ sequences to continuation messages
16633 (Resolve_Call): Refine infinite recursion case. The test has been
16634 sharpened to eliminate some false positives.
16635 Check for Current_Task usage now includes entry barrier, and is now a
16636 warning, not an error.
16637 (Resolve): If the call is ambiguous, indicate whether an interpretation
16638 is an inherited operation.
16639 (Check_Aggr): When resolving aggregates, skip associations with a box,
16640 which are priori correct, and will be replaced by an actual default
16641 expression in the course of expansion.
16642 (Resolve_Type_Conversion): Add missing support for conversion from
16643 a class-wide interface to a tagged type. Minor code cleanup.
16644 (Valid_Tagged_Converion): Add support for abstact interface type
16646 (Resolve_Selected_Component): Call Generate_Reference here rather than
16647 during analysis, and use May_Be_Lvalue to distinguish read/write.
16648 (Valid_Array_Conversion): New procedure, abstracted from
16649 Valid_Conversion, to incorporate accessibility checks for arrays of
16650 anonymous access types.
16651 (Valid_Conversion): For a conversion to a numeric type occurring in an
16652 instance or inlined body, no need to check that the operand type is
16653 numeric, since this has been checked during analysis of the template.
16654 Remove legacy test for scope name Unchecked_Conversion.
16656 * sem_res.ads: Minor reformatting
16658 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16659 (PE_Current_Task_In_Entry_Body): New exception code
16660 (SE_Restriction_Violation): Removed, not used
16662 * a-except.ads: Update comments.
16664 * types.h, types.ads: Add definition for Validity_Check
16665 (PE_Current_Task_In_Entry_Body): New exception code
16666 (SE_Restriction_Violation): Removed, not used
16668 2006-10-31 Thomas Quinot <quinot@adacore.com>
16670 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16673 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16674 Jose Ruiz <ruiz@adacore.com>
16676 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16677 part of Ada.Calendar: all subprogram raise Unimplemented.
16678 (Split_W_Offset): Temp function body, raising Unimplemented
16680 * a-calend.ads, a-calend-vms.ads:
16681 Add imported variable Invalid_TZ_Offset used to designate targets unable
16682 to support time zones.
16683 (Unimplemented): Temporary function raised by the body of new
16685 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16686 unit provides handling of leap seconds and is used by the new Ada 2005
16687 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16688 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16689 version returns an extra value which is the offset to UTC.
16691 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16692 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16693 (Split_W_Offset): New function body.
16694 (Time_Of): When a date is close to UNIX epoch, compute the time for
16695 that date plus one day (that amount is later substracted after
16696 executing mktime) so there are no problems with time zone adjustments.
16698 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16700 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16701 a-catizo.ads, a-catizo.adb: New files.
16703 * impunit.adb: Add new Ada 2005 entries
16705 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16706 Rename all occurences of "__gnat_localtime_r" to
16707 "__gnat_localtime_tzoff".
16708 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16709 zone data and calculate the GMT offset.
16710 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16711 Use the field "tm_gmtoff" to extract the GMT offset.
16712 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16713 the external variable "timezone" to calculate the GMT offset.
16715 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16716 Jose Ruiz <ruiz@adacore.com>
16718 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16719 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16720 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16721 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16722 System.Any_Priority to a POSIX priority on the target.
16724 * system-linux-ia64.ads:
16725 Extend range of Priority types on Linux to use the whole range made
16726 available by the system.
16728 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16729 function maps from System.Any_Priority to a POSIX priority on the
16731 (PTHREAD_PRIO_PROTECT): Set real value.
16732 (PTHREAD_PRIO_INHERIT): Now a function.
16733 (SIGCPUFAIL): New signal.
16734 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16735 are documented as reserved by the OS.
16737 * system-aix.ads: Use the full range of priorities provided by the
16740 * s-taprop-posix.adb: Call new function To_Target_Priority.
16741 (Set_Priority): Take into account Task_Dispatching_Policy and
16742 Priority_Specific_Dispatching pragmas when determining if Round Robin
16743 must be used for scheduling the task.
16745 * system-linux-x86_64.ads, system-linux-x86.ads,
16746 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16747 the whole range made available by the system.
16749 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16750 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16751 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16752 when deallocating the TCB in order to avoid potential references to
16754 (Set_Priority): Take into account Task_Dispatching_Policy and
16755 Priority_Specific_Dispatching pragmas when determining if Round Robin
16756 or FIFO within priorities must be used for scheduling the task.
16758 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16759 the Thread field (to be used internally by the run-time system) and the
16760 kernel-level task id in the LWP field (to be used by the debugger).
16761 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16762 instance, and propagate the current task options to the spawned task.
16763 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16764 (Initialize): Set Round Robin dispatching when the corresponding pragma
16767 2006-10-31 Robert Dewar <dewar@adacore.com>
16769 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16770 system-linux-hppa.ads, system-hpux-ia64.ads,
16771 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16772 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16773 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16774 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16775 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16776 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16777 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16778 Default_Bit_Order) to kill constant condition warnings for references
16781 2006-10-31 Vincent Celier <celier@adacore.com>
16782 Eric Botcazou <ebotcazou@adacore.com>
16784 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16785 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16786 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16787 Ext_To, when building the library file name
16789 * mlib-tgt-vxworks.adb: ditto.
16790 (Get_Target_Suffix): Add support for x86 targets.
16792 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16794 * mlib-tgt-darwin.adb:
16795 Use Append_To, instead of Ext_To, when building the library file name
16796 (Flat_Namespace): New global variable.
16797 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16798 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16799 (Link_Shared_Libgcc): Delete.
16800 (Build_Dynamic_Library): Adjust for above changes.
16802 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16804 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16806 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16807 (Initialize): Add type conversions required by above change.
16809 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16811 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16812 (getpid): New body for this function that uses the underlying taskIdSelf
16813 function for VxWorks 5 and VxWorks 6 in kernel mode.
16814 (unsigned_int): New type, modular to allow logical bit operations.
16815 (taskOptionsGet): New imported function.
16817 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16818 field to be compliant with the type used by the corresponding operating
16821 2006-10-31 Pascal Obry <obry@adacore.com>
16822 Eric Botcazou <ebotcazou@adacore.com>
16823 Vincent Celier <celier@adacore.com>
16825 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16826 ASCII version of the registry API. This is needed as the GNAT runtime
16827 is now UNICODE by default.
16829 (get_gcc_version): Do not hardcode the return value.
16830 (__gnat_file_time_name): On Windows properly set the default returned
16831 value to -1 which corresponds to Invalid_Time.
16832 (__gnat_fopen): New routine. A simple wrapper on all plateforms
16833 except on Windows where it does conversion for unicode support.
16834 (__gnat_freopen): Idem.
16835 (__gnat_locate_exec_on_path): If environment variable PATH does not
16836 exist, return a NULL pointer
16838 * adaint.h: (__gnat_fopen): Declare.
16839 (__gnat_freopen): Likewise.
16841 * mingw32.h (_tfreopen): Define this macro here for older MingW
16843 Activate the unicode support on platforms using a MingW runtime
16844 version 3.9 or newer.
16846 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16847 This is needed for proper unicode support on Windows.
16850 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16851 Nicolas Setton <setton@adacore.com>
16852 Olivier Hainque <hainque@adacore.com>
16853 Gary Dismukes <dismukes@adacore.com>
16855 * gigi.h: (tree_code_for_record_type): Declare.
16856 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16857 (get_global_renaming_pointers): Rename to
16858 invalidate_global_renaming_pointers.
16859 (static_ctors): Delete.
16860 (static_dtors): Likewise.
16861 (gnat_write_global_declarations): Declare.
16862 (create_var_decl): Adjust descriptive comment to indicate that the
16863 subprogram may return a CONST_DECL node.
16864 (create_true_var_decl): Declare new function, similar to
16865 create_var_decl but forcing the creation of a VAR_DECL node.
16866 (get_global_renaming_pointers): Declare.
16867 (add_global_renaming_pointer): Likewise.
16869 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16871 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16872 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16874 (gnat_to_gnu_entity): Remove From_With_Type from computation for
16876 <E_Access_Type>: Use the Non_Limited_View as the full view of the
16877 designated type if the pointer comes from a limited_with clause. Make
16878 incomplete designated type if it is in the main unit and has a freeze
16880 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16881 Underlying_Full_View similarly. Return earlier if the full view already
16882 has an associated tree.
16883 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16884 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16885 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16886 reference type built for objects with an address clause.
16887 Use create_true_var_decl with const_flag set for
16888 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16890 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16891 for Character and Wide_Character types. This info is read by the
16892 dwarf-2 writer, and is needed to be able to use the command "ptype
16893 character" in the debugger.
16894 (gnat_to_gnu_entity): When generating a type representing
16895 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16896 so that debug writers can distinguish it from ordinary integers.
16897 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16898 addition to TREE_READONLY to assert the constantness of variables for
16899 elaboration purposes.
16900 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16901 parameters to call new Einfo function First_Formal_With_Extras.
16902 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16903 protected type with its corresponding discriminant, to obtain a usable
16905 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16906 for a multiple elaboration of the "equivalent" type.
16907 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16908 into record_global_renaming_pointer.
16909 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16910 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16911 <E_Array_Subtype>: Likewise.
16912 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16913 incomplete subtypes and incomplete subtypes of incomplete types visible
16914 through a limited with clause.
16915 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16916 the base index type for the maximum size of the array only if they are
16918 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16919 expression into a SAVE_EXPR if stabilization failed.
16921 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16922 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16923 by lower level compilation passes.
16924 (gnat_genericize): New function, lowering a function body to GENERIC.
16925 Turn the type of RESULT_DECL into a real reference type if the decl
16926 has been marked DECL_BY_REFERENCE, and adjust references to the latter
16928 (gnat_genericize_r): New function. Tree walking callback for
16930 (convert_from_reference, is_byref_result): New functions. Helpers for
16932 (create_type_decl): Call gnat_pushdecl before calling
16933 rest_of_decl_compilation, to make sure that field TYPE_NAME of
16934 type_decl is properly set before calling the debug information writers.
16935 (write_record_type_debug_info): The heuristics which compute the
16936 alignment of a field in a variant record might not be accurate. Add a
16937 safety test to make sure no alignment is set to a smaller value than
16938 the alignment of the field type.
16939 (make_dummy_type): Use the Non_Limited_View as the underlying type if
16940 the type comes from a limited_with clause. Do not loop on the full view.
16941 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16942 (dummy_node_table): New global variable, moved from decl.c.
16943 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16944 (save_gnu_tree): Use above macros.
16945 (get_gnu_tree): Likewise.
16946 (present_gnu_tree): Likewise.
16947 (init_dummy_type): New function, moved from decl.c. Use above macros.
16948 (make_dummy_type): Likewise.
16949 (tree_code_for_record_type): New function extracted from make_dummy_type
16950 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16951 (static_ctors): Change it to a vector, make static.
16952 (static_dtors): Likewise.
16953 (end_subprog_body): Adjust for above change.
16954 (build_global_cdtor): Moved from trans.c.
16955 (gnat_write_global_declarations): Emit global constructor and
16956 destructor, and call cgraph_optimize before emitting debug info for
16957 global declarations.
16958 (global_decls): New global variable.
16959 (gnat_pushdecl): Store the global declarations in global_decls, for
16961 (gnat_write_global_declarations): Emit debug information for global
16963 (create_var_decl_1): Former create_var_decl, with an extra argument to
16964 state whether the creation of a CONST_DECL is allowed.
16965 (create_var_decl): Behavior unchanged. Now a wrapper around
16966 create_var_decl_1 allowing CONST_DECL creation.
16967 (create_true_var_decl): New function, similar to create_var_decl but
16968 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16969 (create_field_decl): Do not always mark the field as addressable
16970 if its type is an aggregate.
16971 (global_renaming_pointers): New static variable.
16972 (add_global_renaming_pointer): New function.
16973 (get_global_renaming_pointers): Likewise.
16975 * misc.c (gnat_dwarf_name): New function.
16976 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16977 (gnat_post_options): Add comment about structural alias analysis.
16978 (gnat_parse_file): Do not call cgraph_optimize here.
16979 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16981 * trans.c (process_freeze_entity): Don't abort if we already have a
16982 non dummy GCC tree for a Concurrent_Record_Type, as it might
16983 legitimately have been elaborated while processing the associated
16984 Concurrent_Type prior to this explicit freeze node.
16985 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16986 exception handler volatile if it is of variable size.
16987 (process_type): Remove bypass for types coming from a limited_with
16989 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16990 actual, convert the corresponding gnu_actual to the real destination
16991 type when necessary.
16992 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16993 originally TREE_READONLY but whose elaboration cannot be performed
16995 Part of fix for F504-021.
16996 (tree_transform, subprogram cases): Change loops on formal parameters to
16997 call new Einfo function First_Formal_With_Extras.
16998 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16999 stemming from type conversion for the lhs.
17000 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17001 number of bits per unit for components of records.
17002 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17003 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17004 with At_End_Proc after the SJLJ EH cleanup.
17005 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17007 (elaborate_all_entities): Do not retest type_annotate_only.
17008 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17009 result type of an abstract subprogram, which may be an itype associated
17010 with an anonymous access result (related to AI-318-02).
17011 (build_global_cdtor): Move to utils.c.
17012 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17013 this choice is not a null tree nor an integer constant.
17014 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17015 on the body of elaboration routines instead of mark_unvisited.
17016 (add_stmt): Do not mark the tree.
17017 (add_decl_expr): Tweak comment.
17018 (mark_unvisited): Delete.
17019 (unshare_save_expr): New static function.
17020 (call_to_gnu): Issue an error when making a temporary around a
17021 procedure call because of non-addressable actual parameter if the
17022 type of the formal is by_reference.
17023 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17024 after building the elaboration routine.
17026 2006-10-31 Bob Duff <duff@adacore.com>
17028 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17029 as finalization-started, so we can raise Program_Error on 'new'.
17031 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17032 collection has already started.
17034 * s-finimp.ads (Collection_Finalization_Started): Added new special
17035 flag value for indicating that a collection's finalization has started.
17037 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17038 create a task whose master has already waited for dependent tasks.
17040 2006-10-31 Robert Dewar <dewar@adacore.com>
17042 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17044 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17045 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17046 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17047 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17048 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17049 a-except-2005.ads: Add pragma Preelaborable_Warning
17051 2006-10-31 Robert Dewar <dewar@adacore.com>
17052 Jose Ruiz <ruiz@adacore.com>
17054 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17056 * ali.adb (Get_Name): Properly handle scanning of wide character names
17057 encoded with brackets notation.
17058 (Known_ALI_Lines): Add S lines to this list.
17059 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17060 New flag Elaborate_All_Desirable in unit table
17062 * ali.ads (Priority_Specific_Dispatching): Add this range of
17063 identifiers to be used for Priority_Specific_Dispatching table entries.
17064 (ALIs_Record): Add First_Specific_Dispatching and
17065 Last_Specific_Dispatching that point to the first and last entries
17066 respectively in the priority specific dispatching table for this unit.
17067 (Specific_Dispatching): Add this table for storing each S (priority
17068 specific dispatching) line encountered in the input ALI file.
17069 New flag Elaborate_All_Desirable in unit table
17071 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17072 Check_Consistent_Dispatching_Policy.
17073 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17074 verifying that the use of Priority_Specific_Dispatching,
17075 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17078 * bindgen.adb: (Public_Version_Warning): function removed.
17079 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17080 required information from ALI files in order to initialize the table
17081 containing the specific dispatching policy.
17082 (Gen_Adainit_Ada): Generate the variables required for priority specific
17083 dispatching entries (__gl_priority_specific_dispatching and
17084 __gl_num_specific_dispatching).
17085 (Gen_Adainit_C): Generate the variables required for priority specific
17086 dispatching entries (__gl_priority_specific_dispatching and
17087 __gl_num_specific_dispatching).
17088 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17090 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17091 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17093 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17094 a call to gnat_set_globals.
17095 Generate a string containing settings from
17096 Priority_Specific_Dispatching pragma entries.
17097 (Gen_Object_Files_Options): Do not include the runtime libraries when
17098 pragma No_Run_Time is specified.
17100 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17101 consistency with s-intman-posix.adb.
17102 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17103 handler is installed with SA_SIGINFO.
17104 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17105 FreeBSD ZCX support, copied from Linux version.
17106 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17107 sigfillset, and sigemptyset so the routines defined by MaRTE.
17108 (__gl_priority_specific_dispatching): Add this variable that stores the
17109 string containing priority specific dispatching policies in the
17111 (__gl_num_specific_dispatching): Add this variable that indicates the
17112 highest priority for which a priority specific dispatching pragma
17114 (__gnat_get_specific_dispatching): Add this routine that returns the
17115 priority specific dispatching policy, as set by a
17116 Priority_Specific_Dispatching pragma appearing anywhere in the current
17117 partition. The input argument is the priority number, and the result
17118 is the upper case first character of the policy name.
17119 (__gnat_set_globals): Now a dummy function.
17120 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17121 mechargs instead of sigargs, as the latter can be retrieved from the
17122 former and sigargs is not what we want on ia64.
17123 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17125 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17126 (tasking_error): Remove unused symbol.
17127 (_abort_signal): Move this symbol to the IRIX specific part since this
17128 is the only target that uses this definition.
17129 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17130 this is the only target that uses this definition.
17131 (Lock_Task): Remove unused symbol.
17132 (Unlock_Task): Remove unused symbol.
17134 * lib-writ.adb (Write_ALI): Output new S lines for
17135 Priority_Specific_Dispatching pragmas.
17136 Implement new flag BD for elaborate body desirable
17138 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17139 (Specific_Dispatching): Add this table for storing the entries
17140 corresponding to Priority_Specific_Dispatching pragmas.
17141 Document new BD flag for elaborate body desirable
17143 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17146 2006-10-31 Javier Miranda <miranda@adacore.com>
17148 * a-tags.ads, a-tags.adb:
17149 (Predefined_DT): New function that improves readability of the code.
17150 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17151 Inherit_DT): Use the new function Predefined_DT to improve code
17153 (Register_Interface_Tag): Update assertion.
17154 (Set_Interface_Table): Update assertion.
17155 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17156 determining progenitor interfaces in Tags.
17157 (Inherit_CPP_DT): New subprogram.
17159 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17160 analysis of the thunk code.
17161 (Expand_Interface_Conversion): Handle run-time conversion of
17162 access to class wide types.
17163 (Expand_Dispatching_Call): When generating the profile for the
17164 subprogram itype for a dispatching operation, properly terminate the
17165 formal parameters chaind list (set the Next_Entity of the last formal
17167 (Collect_All_Interfaces): Removed. This routine has been moved to
17168 sem_util and renamed as Collect_All_Abstract_Interfaces.
17169 (Set_All_DT_Position): Hidden entities associated with abstract
17170 interface primitives are not taken into account in the check for
17171 3.9.3(10); this check is done with the aliased entity.
17172 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17173 interfacing with CPP by default.
17174 (Expand_Interface_Conversion): Add missing support for static conversion
17175 from an interface to a tagged type.
17176 (Collect_All_Interfaces): Add new out formal containing the list of
17177 abstract interface types to cleanup the subprogram Make_DT.
17178 (Make_DT): Update the code to generate the table of interfaces in case
17179 of abstract interface types.
17180 (Is_Predefined_Dispatching_Alias): New function that returns true if
17181 a primitive is not a predefined dispatching primitive but it is an
17182 alias of a predefined dispatching primitive.
17183 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17184 compiling under full ABI compatibility mode we avoid the generation of
17185 calls to run-time services that fill the dispatch tables because under
17186 this mode we currently inherit the dispatch tables in the IP subprogram.
17187 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17188 (Expand_Interface_Conversion): Use an address as the type of the formal
17189 of the internally built function that handles the case in which the
17190 target type is an access type.
17192 2006-10-31 Robert Dewar <dewar@adacore.com>
17194 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17196 2006-10-31 Robert Dewar <dewar@adacore.com>
17198 * bindusg.ads, bindusg.adb:
17199 Change to package and rename procedure as Display, which
17200 now ensures that it only outputs usage information once.
17202 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17204 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17207 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17210 2006-10-31 Robert Dewar <dewar@adacore.com>
17211 Ed Schonberg <schonberg@adacore.com>
17213 * treepr.adb: Use new subtype N_Membership_Test
17215 * checks.ads, checks.adb: Add definition for Validity_Check
17216 (Range_Or_Validity_Checks_Suppressed): New function
17217 (Ensure_Valid): Test Validity_Check suppressed
17218 (Insert_Valid_Check): Test Validity_Check suppressed
17219 (Insert_Valid_Check): Preserve Do_Range_Check flag
17220 (Validity_Check_Range): New procedure
17221 (Expr_Known_Valid): Result of membership test is always valid
17222 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17223 by themselves. Disabling those checks must also be done for task types,
17224 where discriminants may be used for the bounds of entry families.
17225 (Apply_Address_Clause_Check): Remove side-effects if address expression
17226 is non-static and is not the name of a declared constant.
17227 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17228 Code cleanup and new error messages.
17229 (Enable_Range_Check): Test for some cases of suppressed checks
17230 (Generate_Index_Checks): Suppress index checks if index checks are
17231 suppressed for array object or array type.
17232 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17233 length check failure, even if checks are off.
17234 (Ensure_Valid): Do not generate a check on an indexed component whose
17235 prefix is a packed boolean array.
17236 * checks.adb: (Alignment_Checks_Suppressed): New function
17237 (Apply_Address_Clause_Check): New procedure, this is a completely
17238 rewritten replacement for Apply_Alignment_Check
17239 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17240 we request a discriminal value only in case of discriminants.
17241 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17242 assignments where the target subtype is unconstrained and the target
17243 object is a parameter or dereference (other aliased cases are known
17244 to be unconstrained).
17246 2006-10-31 Robert Dewar <dewar@adacore.com>
17248 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17249 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17250 vms_conv.adb: Fix bad table increment values (much too small)
17252 * table.adb (Realloc): Make sure we get at least some new elements
17253 Defends against silly small values for table increment
17255 2006-10-31 Robert Dewar <dewar@adacore.com>
17256 Ed Schonberg <schonberg@adacore.com>
17257 Bob Duff <duff@adacore.com>
17259 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17260 entities. Move other fields around to make this possible
17261 (Is_Derived_Type): Add missing call to Is_Type.
17262 (Extra_Formals): New function for subprograms, entries, subprogram
17264 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17265 (First_Formal_With_Extras): New function for subprogs, entries, subp
17267 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17268 Add node information for E_Return_Statement.
17269 (Elaborate_Body_Desirable): New flag
17270 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17271 to be Is_Inherently_Limited_Type, because return-by-reference has
17272 no meaning in Ada 2005.
17273 (E_Return_Statement): New entity kind.
17274 (Return_Applies_To): Field of E_Return_Statement.
17275 (Is_Return_Object): New flag in object entities.
17276 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17277 (Must_Have_Preelab_Init): New flag
17278 (Known_To_Have_Preelab_Init): New flag
17279 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17280 (Is_Visible_Formal): New flag on entities in formal packages.
17281 (Low_Bound_Known): New flag
17282 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17284 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17285 output when Id is an incomplete subtype.
17287 2006-10-31 Robert Dewar <dewar@adacore.com>
17289 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17290 Avoid abbreviation Creat
17291 (Finalize): List all sources in extended mail source if -gnatl
17293 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17294 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17295 (Set_Specific_Warning_On): New procedure
17296 (Set_Specific_Warning_Off): New procedure
17297 Add implementation of new insertion \\
17298 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17299 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17301 (Error_Msg_Internal): Make sure that we set Last_Killed to
17302 True when a message from another package is suppressed.
17303 Implement insertion character ~ (insert string)
17304 (First_Node): Minor adjustments to get better placement.
17307 Implement new -gnatl=xxx switch to output listing to file
17310 Implement new -gnatl=xxx switch to output listing to file
17312 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17313 (Commands_To_Stdout): New flag
17314 Implement new -gnatl=xxx switch to output listing to file
17315 New switch Dump_Source_Text
17316 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17317 Define Error_Msg_Line_Length
17318 (Warn_On_Assumed_Low_Bound): New switch
17320 * osint.ads, osint.adb
17321 (Normalize_Directory_Name): Fix bug.
17322 Implement new -gnatl=xxx switch to output listing to file
17323 (Concat): Removed, replaced by real concatenation
17324 Make use of concatenation now allowed in compiler
17325 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17326 we find the 'lib' or 'bin' directory even when the tool has been
17327 invoked with a relative path.
17328 (Executable_Name): New function taking string parameters.
17330 * osint-c.ads, osint-c.adb:
17331 Implement new -gnatl=xxx switch to output listing to file
17333 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17336 Implement new -gnatl=xxx switch to output listing to file
17337 Recognize new -gnatL switch
17338 (no longer keep in old warning about old style usage)
17339 Use concatenation to simplify code
17340 Recognize -gnatjnn switch
17341 (Scan_Front_End_Switches): Clean up handling of -gnatW
17342 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17344 2006-10-31 Robert Dewar <dewar@adacore.com>
17346 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17347 (Set_Specific_Warning_Off): New procedure
17348 (Warning_Specifically_Suppressed): New function
17349 (Validate_Specific_Warnings): New procedure
17350 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17352 * err_vars.ads: Implement insertion character ~ (insert string)
17354 2006-10-31 Bob Duff <duff@adacore.com>
17355 Ed Schonberg <schonberg@adacore.com>
17357 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17358 the parent part is a build-in-place function call, generate assignments.
17359 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17360 are build-in-place function calls.
17361 (Replace_Self_Reference): New subsidiary of
17362 Make_OK_Assignment_Statement, to replace an access attribute that is a
17363 self-reference into an access to the appropriate component of the
17364 target object. Generalizes previous mechanism to handle self-references
17365 nested at any level.
17366 (Is_Self_Referential_Init): Remove, not needed.
17367 (Is_Self_Referential_Init): New predicate to simplify handling of self
17368 referential components in record aggregates.
17369 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17370 check for presence of entity before checking for self-reference.
17371 (Has_Default_Init_Comps): Return True if a component association is a
17372 self-reference to the enclosing type, which can only come from a
17373 default initialization.
17374 (Make_OK_Assignment_Statement): If the expression is of the form
17375 Typ'Acc, where Acc is an access attribute, the expression comes from a
17376 default initialized self-referential component.
17377 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17378 that has been derived from several abstract interfaces we must also
17379 initialize the tags of the secondary dispatch tables.
17381 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17382 Thomas Quinot <quinot@adacore.com>
17383 Javier Miranda <miranda@adacore.com>
17384 Robert Dewar <dewar@adacore.com>
17387 (Expand_Access_To_Protected_Op): If the context indicates that an access
17388 to a local operation may be transfered outside of the object, create an
17389 access to the wrapper operation that must be used in an external call.
17390 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17391 target, pass the Valid attribute applied to a floating-point prefix on
17392 to the back end without expansion.
17393 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17394 the allocated storage when it is specified by a per-object expression.
17395 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17396 Nothing to do here, the attribute has been rewritten during semantic
17398 (Expand_Attribute_Reference): Handle expansion of the new Priority
17400 (Find_Fat_Info): Handle case of universal real
17401 (Expand_Access_To_Protected_Op): Fix use of access to protected
17402 subprogram from inside the body of a protected entry.
17403 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17404 'Access and 'Unrestricted_Access, to transform the attribute reference
17405 into a fat pointer.
17406 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17407 subcomponent's enclosing variable is aliased with a constrained subtype.
17408 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17409 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17410 an aliased prefix must be known to be constrained in order to use True
17411 for the attribute value, and now it's possible for some aliased views
17412 to be unconstrained.
17414 2006-10-31 Robert Dewar <dewar@adacore.com>
17416 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17417 (Expand_Entity_Reference): Correct error of not handling subprogram
17418 formals in current_value processing.
17420 2006-10-31 Javier Miranda <miranda@adacore.com>
17421 Robert Dewar <dewar@adacore.com>
17422 Ed Schonberg <schonberg@adacore.com>
17423 Gary Dismukes <dismukes@adacore.com>
17425 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17426 register in the final list objects containing class-wide interfaces;
17427 otherwise we incorrectly register the tag of the interface in the final
17429 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17430 generate the wrapper if the parent primitive is abstract. This is
17431 required to report the correct error message.
17432 (Expand_N_Subtype_Indication): Do validity checks on range
17433 (Clean_Task_Names): If an initialization procedure includes a call to
17434 initialize a task (sub)component, indicate that the procedure will use
17435 the secondary stack.
17436 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17437 compatibility for interfacing with CPP by default.
17438 (Expand_N_Object_Declaration): Only build an Adjust call when the
17439 object's type is a nonlimited controlled type.
17440 * exp_ch3.adb: Add with and use of Exp_Ch6.
17441 (Expand_N_Object_Declaration): Check for object initialization that is a
17442 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17443 Object_Declaration to the call.
17444 (Freeze_Type): When the designated type of an RACW was not frozen at the
17445 point where the RACW was declared, validate the primitive operations
17446 with respect to E.2.2(14) when it finally is frozen.
17447 (Build_Initialization_Call,Expand_Record_Controller): Rename
17448 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17449 return-by-reference has no meaning in Ada 2005.
17450 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17451 to register tag of the immediate ancestor interfaces in the
17452 run-time structure.
17453 (Init_Secondary_Tags): Moved to the specification to allow the
17454 initialization of extension aggregates with abstract interfaces.
17455 (Build_Master_Renaming): Make public, for use by function declarations
17456 whose return type is an anonymous access type.
17457 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17458 Insert_List_Before_And_Analyze after the generation of the specs
17459 associated with null procedures.
17460 (Expand_Tagged_Root): Update documentation in its specification.
17461 (Init_Secondary_Tags): Update documentation.
17462 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17463 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17464 then generate code to inherit the contents of the dispatch table
17465 directly from the ancestor.
17466 (Expand_Record_Controller): Insert controller component after tags of
17467 implemented interfaces.
17468 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17469 create null procedure overridings when null procedures are inherited
17471 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17472 declarations for overriding null primitives inherited from interfaces.
17473 (Is_Null_Interface_Procedure): New function in
17474 Make_Null_Procedure_Specs.
17475 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17476 immediate ancestor of a tagged type is an abstract interface type we
17477 must generate the specification of the predefined primitives associated
17478 with controlled types (because the dispatch table of the ancestor is
17479 null and hence these entries cannot be inherited). This is required to
17480 elaborate well the dispatch table.
17482 2006-10-31 Javier Miranda <miranda@adacore.com>
17483 Ed Schonberg <schonberg@adacore.com>
17484 Bob Duff <duff@adacore.com>
17485 Gary Dismukes <dismukes@adacore.com>
17486 Robert Dewar <dewar@adacore.com>
17488 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17490 (Expand_N_In): Do validity checks on range
17491 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17492 (Expand_N_Allocator): For "new T", if the object is constrained by
17493 discriminant defaults, allocate the right amount of memory, rather than
17494 the maximum for type T.
17495 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17496 when the allocator is initialized by a build-in-place call, since the
17497 allocator is already rewritten as a reference to the function result,
17498 and this prevents an unwanted duplication of the function call.
17499 Add with and use of Exp_Ch6.
17500 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17501 is a call to build-in-place function and apply
17502 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17503 untagged designated types).
17504 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17505 optimization if source or target is biased.
17506 (Expand_N_Allocator): Add comments for case of an allocator within a
17507 function that returns an anonymous access type designating tasks.
17508 (Expand_N_Allocator): apply discriminant checks for access
17509 discriminants of anonymous access types (AI-402, AI-416)
17511 2006-10-31 Bob Duff <duff@adacore.com>
17512 Robert Dewar <dewar@adacore.com>
17513 Gary Dismukes <dismukes@adacore.com>
17514 Ed Schonberg <schonberg@adacore.com>
17516 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17518 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17519 (Expand_N_Assignment_Statement): Call
17520 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17521 build-in-place function call. Currently, this can happen only for
17522 assignments that come from aggregates.
17523 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17524 in order to alleviate the upward compatibility introduced by AI-318.
17525 (Expand_N_Extended_Return_Statement): Add support for handling the
17526 return object as a build-in-place result.
17527 (Expand_Non_Function_Return): Implement simple return statements nested
17528 within an extended return.
17529 (Enable_New_Return_Processing): Turn on the new processing of return
17531 (Expand_Non_Function_Return): For a return within an extended return,
17532 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17533 (Expand_N_Extended_Return_Statement): Implement AI-318
17534 (Expand_Simple_Function_Return): Ditto.
17535 (Expand_N_If_Statement): Handle new -gnatwt warning
17536 (Expand_N_Case_Statement): Handle new -gnatwt warning
17537 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17538 a protected object.
17539 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17540 validity checking of assignments to elementary record components.
17541 (Expand_N_Return_Statement): return Class Wide types on the secondary
17542 stack independantly of their controlled status since with HIE runtimes,
17543 class wide types are not potentially controlled anymore.
17545 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17548 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17549 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17550 it expects a block, procedure, or task. The return statement will get
17551 turned into a block, and Expand_Cleanup_Actions will happen then.
17553 2006-10-31 Robert Dewar <dewar@adacore.com>
17554 Ed Schonberg <schonberg@adacore.com>
17555 Bob Duff <duff@adacore.com>
17556 Gary Dismukes <dismukes@adacore.com>
17558 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17560 (Expand_Inlined_Call): Tagged types are by-reference types, and
17561 therefore should be replaced by a renaming declaration in the expanded
17562 body, as is done for limited types.
17563 (Expand_Call): If this is a call to a function with dispatching access
17564 result, propagate tag from context.
17565 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17567 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17568 build-in-place when the right-hand side of an assignment is a
17569 build-in-place function call.
17570 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17571 of the explicit dereference of the allocator to the result subtype of
17572 the build-in-place function. This is needed to satisfy type checking
17573 in cases where the caller's return object is created by an allocator for
17574 a class-wide access type and the type named in the allocator is a
17576 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17577 conversion of the reference to the declared object to the result subtype
17578 of the build-in-place function. This is needed to satisfy type checking
17579 in cases where the declared object has a class-wide type. Also, in the
17580 class-wide case, change the type of the object entity to the specific
17581 result subtype of the function, to avoid passing a class-wide object
17582 without explicit initialization to the back end.
17583 (Register_Interface_DT_Entry): Moved outside the body of
17584 Freeze_Subprogram because this routine is now public; it is called from
17585 Check_Dispatching_Overriding to handle late overriding of abstract
17586 interface primitives.
17587 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17588 adding an implicit access actual on a call to a build-in-place function.
17589 (Expand_Actuals): Test for an actual parameter that is a call to a
17590 build-in-place function and apply
17591 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17592 (Is_Build_In_Place_Function): New function to determine whether an
17593 entity is a function whose calls should be handled as build-in-place.
17594 (Is_Build_In_Place_Function_Call): New function to determine whether an
17595 expression is a function call that should handled as build-in-place.
17596 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17597 calls to build-in-place functions as the initialization of an allocator.
17598 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17599 handling calls to build-in-place functions in contexts that do not
17600 involve init of a separate object (for example, actuals of subprogram
17602 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17603 handling calls to build-in-place functions as the initialization of an
17604 object declaration.
17605 (Detect_Infinite_Recursion): Add explicit parameter Process to
17606 instantiation of Traverse_Body to avoid unreferenced warning.
17607 (Check_Overriding_Inherited_Interfaces): Removed.
17608 (Register_Interface_DT_Entry): Code cleanup.
17609 (Register_Predefined_DT_Entry): Code cleanup.
17610 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17611 inlined statements if within a transient scope.
17612 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17613 formal parameters with occurrences of actuals in inlined body, establish
17614 visibility on the proper view of the actual's subtype for the body's
17616 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17617 compatibility mode and we have an imported CPP subprogram because
17618 for now we assume that imported CPP primitives correspond with
17619 objects whose constructor is in the CPP side (and therefore we
17620 don't need to generate code to register them in the dispatch table).
17621 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17622 aligned selected component.
17623 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17624 the actual of an in-mode parameter is a type conversion.
17625 (Expand_Actuals): If the call does not come from source and the actual
17626 is potentially misaligned, let gigi handle it rather than rejecting the
17627 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17628 Class Wide types as returning by reference independantly of their
17629 controlled status since with HIE runtimes class wide types are not
17630 potentially controlled anymore.
17632 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17634 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17635 references that are private components of the protected object.
17636 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17637 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17638 instantiation to deal with warnings.
17639 (Initialize_Protection): If expression for priority is non-static, use
17640 System_Priority as its expected type, in case the expression has not
17643 2006-10-31 Robert Dewar <dewar@adacore.com>
17645 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17646 initialization of Homonym_Len.
17647 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17648 names from fully qualified name. Fixes problem of duplicate
17649 external names differing only in the presence of such a block name.
17651 2006-10-31 Thomas Quinot <quinot@adacore.com>
17652 Pablo Oliveira <oliveira@adacore.com>
17654 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17655 subprogram Ids, even if they are not yet assigned.
17656 (Build_Subprogram_Id): It is now this function that will take care of
17657 calling Assign_Subprogram_Ids if necessary.
17658 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17659 should be done only once they are assigned.
17660 (Build_From_Any_Function, case of tagged types): Add missing call to
17662 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17663 type for an RACW type.
17664 (Add_RACW_Features): When processing an RACW declaration for which the
17665 designated type is already frozen, enforce E.2.2(14) rules immediately.
17666 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17667 special reordering of controlling formals.
17669 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17670 associated stub type for an RACW type.
17672 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17674 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17675 fixed-point operations in an integer context, i.e. as operands of a
17676 conversion to an integer type, indicate that result must be rounded.
17678 2006-10-31 Robert Dewar <dewar@adacore.com>
17680 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17681 cases, pass the encoding method, since it is now required by the run
17684 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17685 assumption that Str'First = 1.
17686 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17687 it on to the Value_Wide_Wide_Character call.
17688 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17689 properly handles a string of the form quote-encoded_wide_char-quote.
17691 * s-wchcnv.adb: Minor reformatting
17693 2006-10-31 Javier Miranda <miranda@adacore.com>
17695 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17696 run-time membership test to ensure that the constructed object
17697 implements the target abstract interface.
17699 2006-10-31 Robert Dewar <dewar@adacore.com>
17701 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17702 Machine_Attribute pragma internally to implement the user pragma.
17703 Add processing for pragma Interface so that it is now completely
17704 equivalent to pragma Import.
17706 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17707 so that it can be applied to all entities, including record components
17708 and enumeration literals.
17709 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17710 priority ranges are correct, verify compatibility against task
17711 dispatching and locking policies, and if everything is correct an entry
17712 is added to the table containing priority specific dispatching entries
17713 for this compilation unit.
17714 (Delay_Config_Pragma_Analyze): Delay processing
17715 Priority_Specific_Dispatching pragmas because when processing the
17716 pragma we need to access run-time data, such as the range of
17717 System.Any_Priority.
17718 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17719 Allow pragma Unreferenced as a context item
17720 Add pragma Preelaborable_Initialization
17721 (Analyze_Pragma, case Interface): Interface is extended so that it is
17722 now syntactically and semantically equivalent to Import.
17723 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17724 insertion characters.
17725 Add handling for Pragma_Wide_Character_Encoding
17726 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17727 never supercedes a real restriction, and that a real restriction
17728 always supercedes a warning.
17729 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17732 2006-10-31 Bob Duff <duff@adacore.com>
17733 Ed Schonberg <schonberg@adacore.com>
17734 Robert Dewar <dewar@adacore.com>
17736 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17737 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17738 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17740 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17741 type of the function containing a return statement, because the
17742 Return_Type field was removed. We now use the Return_Applies_To field.
17744 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17745 (Build_Task_Image_Decl): If procedure is not called from an
17746 initialization procedure, indicate that function that builds task name
17747 uses the sec. stack. Otherwise the enclosing initialization procedure
17748 will carry the indication.
17749 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17750 N_Object_Declaration instead.
17751 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17752 conditional dead code killed, and change implementation accordingly.
17753 (Insert_Actions): Add N_Return_Object_Declaration case.
17754 Correct comment to mention N_Extension_Aggregate node.
17755 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17756 attempts to save information for global variables which cannot be
17758 (Get_Current_Value_Condition): Handle conditions the other way round
17759 (constant on left). Also handle right operand of AND and AND THEN
17760 (Set_Current_Value_Condition): Corresponding changes
17761 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17762 (Get_Current_Value_Condition): Handle simple boolean operands
17763 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17764 (Get_Current_Value_Condition): If the variable reference is within an
17765 if-statement, does not appear in the list of then_statments, and does
17766 not come from source, treat it as being at unknown location.
17767 (Get_Current_Value_Condition): Enhance to allow while statements to be
17768 processed as well as if statements.
17769 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17771 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17772 of loop. This is safe now that we fixed Kill_Current_Values.
17773 (OK_To_Do_Constant_Replacement): Check whether current scope is
17774 Standard, before examining outer scopes.
17776 2006-10-31 Vincent Celier <celier@adacore.com>
17778 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17779 When True, apply VMS treatment to children of packages A, G, I and S.
17782 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17784 2006-10-31 Robert Dewar <dewar@adacore.com>
17785 Ed Schonberg <schonberg@adacore.com>
17787 * freeze.adb: Add handling of Last_Assignment field
17788 (Warn_Overlay): Supply missing continuation marks in error msgs
17789 (Freeze_Entity): Add check for Preelaborable_Initialization
17791 * g-comlin.adb: Add Warnings (Off) to prevent new warning
17793 * g-expect.adb: Add Warnings (Off) to prevent new warning
17795 * lib-xref.adb: Add handling of Last_Assignment field
17796 (Generate_Reference): Centralize handling of pragma Obsolescent here
17797 (Generate_Reference): Accept an implicit reference generated for a
17798 default in an instance.
17799 (Generate_Reference): Accept a reference for a node that is not in the
17800 main unit, if it is the generic body corresponding to an subprogram
17803 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17805 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17807 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17809 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17810 use clauses, to avoid messages on packages used to qualify, and also
17811 to avoid messages from obsolescent units.
17812 (Warn_On_Useless_Assignments): Don't generate messages for imported
17813 and exported variables.
17814 (Warn_On_Useless_Assignments): New procedure
17815 (Output_Obsolescent_Entity_Warnings): New procedure
17816 (Check_Code_Statement): New procedure
17818 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17819 Change name Is_Ada_2005 to Is_Ada_2005_Only
17820 (Last_Assignment): New field for useless assignment warning
17822 2006-10-31 Olivier Hainque <hainque@adacore.com>
17824 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17825 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17827 2006-10-31 Bob Duff <duff@adacore.com>
17828 Robert Dewar <dewar@adacore.com>
17829 Ed Schonberg <schonberg@adacore.com>
17831 * g-awk.adb (Default_Session, Current_Session): Compile this file in
17832 Ada 95 mode, because it violates the new rules for AI-318.
17834 * g-awk.ads: Use overloaded subprograms in every case where we used to
17835 have a default of Current_Session. This makes the code closer to be
17836 correct for both Ada 95 and 2005.
17838 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17839 code, relying on the fact that the compiler generates a warning
17840 instead of an error in -gnatg mode.
17842 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17843 E_Return_Statement entity kind.
17844 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17846 * par.adb (P_Interface_Type_Definition): Addition of one formal to
17847 report an error if the reserved word abstract has been previously found.
17848 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17850 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17851 parenthesized range attribute usage
17852 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17854 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17855 in the syntax for extended_return_statement. This is not in the latest
17856 RM, but the ARG is expected to issue an AI allowing this.
17857 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17858 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17859 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17860 P_Return_Statement): Parse the new syntax for extended_return_statement.
17862 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17863 Output_End_Missing): Add error-recovery code for the new
17864 extended_return_statement syntax; that is, the new E_Return entry on
17867 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17868 limited to nonlimited, because otherwise we violate the new Ada 2005
17869 rules about returning limited types in function Create_AST_Handler in
17872 * sem.adb (Analyze): Add cases for new node kinds
17873 N_Extended_Return_Statement and N_Return_Object_Declaration.
17875 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17876 type is in the same category as type of context before applying check,
17877 to prevent anomalies in instantiations.
17878 (Resolve_Aggregate): Remove test for limited components in aggregates.
17879 It's unnecessary in Ada 95, because if it has limited components, then
17880 it must be limited. It's wrong in Ada 2005, because limited aggregates
17882 (Resolve_Record_Aggregate): Move check for limited types later, because
17883 OK_For_Limited_Init requires its argument to have been resolved.
17884 (Get_Value): When copying the component default expression for a
17885 defaulted association in an aggregate, use the sloc of the aggregate
17886 and not that of the original expression, to prevent spurious
17887 elaboration errors, when the expression includes function calls.
17888 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17889 were missing. We also didn't handle qualified expressions. Now also
17890 allow function calls. Use new common routine OK_For_Limited_Init.
17891 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17892 with space can upper case letter).
17894 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17895 Has_Static_Discriminants flag
17896 (Record_Type_Declaration): Diagnose an attempt to declare an interface
17897 type with discriminants.
17898 (Process_Range_Expr_In_Decl): Do validity checks on range
17899 (Build_Discriminant_Constraints): Use updated form of
17900 Denotes_Discriminant.
17901 (Process_Subtype): If the subtype is a private subtype whose full view
17902 is a concurrent subtype, introduce an itype reference to prevent scope
17904 (Build_Derived_Record_Type, Collect_Interface_Primitives,
17905 Record_Type_Declaration): The functionality of the subprograms
17906 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17907 is now performed by a single routine.
17908 (Build_Derived_Record_Type): If the type definition includes an explicit
17909 indication of limitedness, then the type must be marked as limited here
17910 to ensure that any access discriminants will not be treated as having
17911 a local anonymous access type.
17912 (Check_Abstract_Overriding): Issue a detailed error message when an
17913 abstract subprogram was not overridden due to incorrect mode of its
17915 (Analyze_Private_Extension_Declaration): Add support for the analysis of
17916 synchronized private extension declarations. Verify that the ancestor is
17917 a limited or synchronized interface or in the generic case, the ancestor
17918 is a tagged limited type or synchronized interface and all progenitors
17919 are either limited or synchronized interfaces.
17920 Derived_Type_Declaration): Check for presence of private extension when
17921 dealing with synchronized formal derived types.
17922 Process_Full_View): Enchance the check done on the usage of "limited" by
17923 testing whether the private view is synchronized.
17924 Verify that a synchronized private view is completed by a protected or
17926 (OK_For_Limited_Init_In_05): New function.
17927 (Analyze_Object_Declaration): Move check for limited types later,
17928 because OK_For_Limited_Init requires its argument to have been resolved.
17929 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17930 in order to alleviate the upward compatibility introduced by AI-318.
17931 (Constrain_Corresponding_Record): If the constraint is for a component
17932 subtype, mark the itype as frozen, to avoid out-of-scope references to
17933 discriminants in the back-end.
17934 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17935 this subprogram against wrong sources.
17936 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17937 discriminant of limited type completed with a protected type, when the
17938 discriminant is used to constrain a private component of the type, and
17939 expansion is disabled.
17940 (Find_Type_Of_Object): Do not treat a return subtype that is an
17941 anonymous subtype as a local_anonymous_type, because its accessibility
17942 level is the return type of the enclosing function.
17943 (Check_Initialization): In -gnatg mode, turn the error "cannot
17944 initialize entities of limited type" into a warning.
17945 (OK_For_Limited_Init): Return true for generated nodes, since it
17946 sometimes violates the legality rules.
17947 (Make_Incomplete_Declaration): If the type for which an incomplete
17948 declaration is created happens to be the currently visible entity,
17949 preserve the homonym chain when removing it from visibility.
17950 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17951 inherited subprograms.
17952 (Access_Definition): If this is an access to function that is the return
17953 type of an access_to_function definition, context is a type declaration
17954 and the scope of the anonymous type is the current one.
17955 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17956 incomplete subtype to the set of private dependents of the original
17958 (Constrain_Discriminated_Type): Emit an error message whenever an
17959 incomplete subtype is being constrained.
17960 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17961 corresponding subtype of the full view of the original incomplete type.
17962 (Check_Incomplete): Properly detect invalid usage of incomplete types
17965 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17967 * g-catiio.ads, g-catiio.adb (Value): New function.
17968 Given an input String, try and parse a valid Time value.
17970 2006-10-31 Vincent Celier <celier@adacore.com>
17972 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17973 Integer_Address arithmetic, as in Set_Valid.
17975 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17976 Robert Dewar <dewar@adacore.com>
17978 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17979 handling executable extension manually and duplicating code.
17981 * make.adb: Implement new -S switch
17982 (Gnatmake): Use new function Osint.Executable_Name instead
17983 of handling executable extension manually.
17985 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17986 is specified, the executable name ends with this suffix.
17987 Take advantage of Osint.Executable_Name instead of duplicating code.
17989 * switch-m.adb: Recognize new gnatmake -S switch
17991 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17993 (Get_Target_Parameters): Set Executable_Extension_On_Target if
17996 * makeusg.adb: Add line for gnatmake -S switch
17998 2006-10-31 Vincent Celier <celier@adacore.com>
18000 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18001 call it with -static-libgcc, as there are some platforms, such as
18002 Darwin, where one of these two switches is compulsory to link.
18004 2006-10-31 Vincent Celier <celier@adacore.com>
18006 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18007 instead of ADA_PROJECT_PATH, for the project path.
18008 (Gnatls): When displaying the project path directories, use host dir
18011 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18012 names in the project path, as absolute paths may correspond to
18013 multi-valued VMS logical names.
18015 2006-10-31 Vincent Celier <celier@adacore.com>
18017 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18018 absolute path name.
18019 (Locate_Regular_File): Ditto
18020 (Change_Dir): Remove, no longer used
18021 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18022 on Windows. Get it calling Get_Current_Dir.
18023 (OpenVMS): Remove imported boolean, no longer needed.
18024 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18025 (Pid_To_Integer): New function to convert a Process_Id to Integer
18027 2006-10-31 Thomas Quinot <quinot@adacore.com>
18029 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18030 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18032 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18035 2006-10-31 Robert Dewar <dewar@adacore.com>
18037 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18038 initial letter o as a zero.
18040 2006-10-31 Robert Dewar <dewar@adacore.com>
18042 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18044 2006-10-31 Robert Dewar <dewar@adacore.com>
18046 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18048 (Layout_Variant_Record): Retrieve the discriminants from the entity
18049 rather than from the type definition, because in the case of a full
18050 type for a private type we need to take the discriminants from the
18052 (Layout_Component_List): When applying the Max operator to variants with
18053 a nonstatic size, check whether either operand is static and scale that
18054 operand from bits to storage units before applying Max.
18055 (Layout_Type): In VMS, if a C-convention access type has no explicit
18056 size clause (and does not inherit one in the case of a derived type),
18057 then the size is reset to 32 from 64.
18059 2006-10-31 Vincent Celier <celier@adacore.com>
18061 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18062 its file has already been loaded, according to the unit being loaded,
18063 not to the current value of Multiple_Unit_Index.
18065 2006-10-31 Thomas Quinot <quinot@adacore.com>
18066 Eric Botcazou <ebotcazou@adacore.com>
18067 Arnaud Charlet <charlet@adacore.com>
18069 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18070 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18072 (a-except.o): Pass it to the compiler.
18073 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18074 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18075 a-calend-mingw.adb version.
18077 * Makefile.rtl: Added s-dsaser.
18078 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18079 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18080 Ada.Dispatching.Round_Robin.
18081 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18083 * Make-lang.in: Remove all references to gt-ada-decl.h.
18084 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18086 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18087 Update dependencies.
18089 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18091 2006-10-31 Vincent Celier <celier@adacore.com>
18093 * mlib-utl.adb (Initialized): Remove, no longer used
18094 (Initialize): Remove, no longer used
18095 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18096 if there is one, the archive indexer. Fail if the archive builder cannot
18098 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18101 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18103 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18104 Process_Body_Clauses): If the context of a body includes a use clause
18105 for P.Q then a with_clause for P in the same body is not redundant,
18106 even if the spec also has a with_clause on P.
18107 Add missing continuation mark to error msg
18108 (Build_Limited_Views): A limited view of a type is tagged if its
18109 declaration includes a record extension.
18110 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18111 node, even if the subunit has errors. This avoids malfunction by
18112 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18113 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18114 generation of obsolescent messages for with statements (cannot do
18115 this too early, or we cannot implement avoiding the messages in the
18116 case of obsolescent units withing obsolescent units).
18117 (Install_Siblings): If the with_clause is on a remote descendant of
18118 an ancestor of the current compilation unit, find whether there is
18119 a sibling child unit that is immediately visible.
18120 (Remove_Private_With_Clauses): New procedure, invoked after completing
18121 the analysis of the private part of a nested package, to remove from
18122 visibility the private with_clauses of the enclosing package
18124 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18125 now centralized in Generate_Reference.
18126 (Install_Limited_Context_Clauses): Remove superfluous error
18127 message associated with unlimited view visible through use
18128 and renamings. In addition, at the point in which the error
18129 is reported, we add the backslash to the text of the error
18130 to ensure that it is reported as a single error message.
18131 Use new // insertion for some continuation messages
18132 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18133 to create implicit with_clause for parent unit mentioned in original
18134 limited_with_clause.
18135 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18136 unit is a child unit. For ASIS queries.
18137 (Analyze_Subunit): If the subunit appears within a child unit, make all
18138 ancestor child units directly visible again.
18140 2006-10-31 Robert Dewar <dewar@adacore.com>
18142 * par-ch10.adb (P_Context_Clause): Minor error message fix
18144 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18145 Javier Miranda <miranda@adacore.com>
18147 * par-ch12.adb: Grammar update and cleanup.
18148 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18149 support for synchronized derived type definitions.
18150 Add the new actual Abstract_Present to every call to
18151 P_Interface_Type_Definition.
18152 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18153 a formal object declaration with an access definition or a subtype mark
18154 with a null exclusion.
18155 (P_Generic_Association): Handle association with box, and others_choice
18156 with box, to support Ada 2005 partially parametrized formal packages.
18158 2006-10-31 Robert Dewar <dewar@adacore.com>
18159 Javier Miranda <miranda@adacore.com>
18161 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18162 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18163 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18164 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18165 private extensions.
18166 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18167 to P_Interface_Type_Definition.
18168 (P_Interface_Type_Definition): Addition of one formal to report an error
18169 if the reserved word abstract has been previously found.
18170 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18171 object renaming declaration with an access definition or subtype mark
18172 with a possible null exclusion.
18174 * par-ch9.adb: Minor error msg fix
18176 * par-load.adb: Add missing continuation mark to error msg
18178 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18180 2006-10-31 Vincent Celier <celier@adacore.com>
18182 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18183 unknown attribute in unknown package or in package that does not need
18185 (Parse_Package_Declaration): Do not issue warning for unknown package in
18188 2006-10-31 Vincent Celier <celier@adacore.com>
18190 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18191 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18194 2006-10-31 Vincent Celier <celier@adacore.com>
18196 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18197 on VMS, change "__" to '.' before checking the name.
18198 (Record_Ada_Source): Always add the source file name in the list of
18199 of sources, even if it is not the first time, as it is for another
18201 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18202 dot, instead of replacing only the first '_'.
18204 * prj-part.adb (Parse): Convert project file path to canonical form
18206 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18207 extended, the project id of the project extending it is recorded in its
18208 data, even when it has already been processed as an imported project.
18210 2006-10-31 Robert Dewar <dewar@adacore.com>
18212 * repinfo.adb (List_Entities): Don't list entities from renaming
18215 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18216 Robert Dewar <dewar@adacore.com>
18218 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18219 only a restriction warning is active for the given restriction. This is
18220 desirable because we do not want to modify code in the case where only
18222 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18223 causes overriding of real restrictions.
18224 Take advantage of new No_Restrictions constant.
18226 * raise.h: (__gnat_set_globals): Change profile.
18228 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18230 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18233 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18234 Move all the entities in obsolete package System.PolyORB_Interface to
18235 System.Partition_Interface.
18236 (RE_Storage_Size): New function in System.Tasking.
18237 (RE_Get_Ceiling): New entity.
18238 (RE_Set_Ceiling): New entity.
18239 (RO_PE_Get_Ceiling): New entity.
18240 (RO_RE_Set_Ceiling): New entity.
18241 (Inherit_CPP_DT): New entity
18243 2006-10-31 Robert Dewar <dewar@adacore.com>
18245 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18246 starting with a digit.
18248 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18249 Thomas Quinot <quinot@adacore.com>
18250 Javier Miranda <miranda@adacore.com>
18251 Gary Dismukes <dismukes@adacore.com>
18253 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18254 properly an attempt to apply Unchecked_Access to a protected operation.
18255 (OK_Self_Reference): New subprogram to check the legality of an access
18256 attribute whose prefix is the type of an enclosing aggregate.
18257 Generalizes previous mechanism to handle attribute references nested
18258 arbitrarily deep within the aggregate.
18259 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18260 can appear in an aggregate if this is a default-initialized aggregate
18261 for a self-referential type.
18262 (Resolve_Attribute, case Access): Ditto.
18263 Add support for new implementation defined attribute Stub_Type.
18264 (Eval_Attribute, case Attribute_Stub_Type): New case.
18265 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18266 (Stream_Attribute_Available): Implement using new subprogram from
18267 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18268 Has_Specified_Stream_Attribute flag.
18269 Disallow Storage_Size and Storage_Pool for access to subprogram
18270 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18271 access types of return subtypes in extended return statements. Remove
18272 accessibility checks on anonymous access types when Unchecked_Access is
18274 (Analyze_Attribute): Add support for the use of 'Class to convert
18275 a class-wide interface to a tagged type.
18276 Add support for the attribute Priority.
18277 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18278 whether the designated type is discriminated with a constrained partial
18279 view and require static matching in that case.
18280 Add local variable Des_Btyp. The Designated_Type
18281 of an access to incomplete subtype is either its non-limited view if
18282 coming from a limited with or its etype if regular incomplete subtype.
18284 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18285 Fix predicate to identify and allow cases of (expander-generated)
18286 references to tag of designated object of a RACW.
18287 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18288 non-static, and therefore cannot appear as a primary in a preelaborable
18290 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18291 Has_Read_Write_Attributes.
18292 (Has_Read_Write_Attributes): Reimplement in termes of
18293 Has_Stream_Attribute_Definition.
18294 (Missing_Read_Write_Attributes): When checking component types in a
18295 record, unconditionally call Missing_Read_Write_Attributes recursively
18296 (remove guard checking for Is_Record_Type / Is_Access_Type).
18298 2006-10-31 Robert Dewar <dewar@adacore.com>
18300 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18301 useless assignments here and conditionalize it on absence of exception
18303 (Analyze_Exception_Handlers): Small code reorganization of error
18304 detection code, for new handling of formal packages.
18306 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18307 Hristian Kirtchev <kirtchev@adacore.com>
18309 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18310 that has been constant-folded, preserve information of original tree,
18312 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18313 generated private extension declaration if the formal derived type is
18314 synchronized. Carry synchronized present over to the generated private
18316 (Validate_Derived_Type_Instance): Ensure that the actual of a
18317 synchronized formal derived type is a synchronized tagged type.
18318 (Instantiate_Formal_Package): When creating the instantiation used to
18319 validate the actual package of a formal declared without a box, check
18320 whether the formal itself depends on a prior actual.
18321 (Instantiate_Formal_Subprogram): Create new entities for the defining
18322 identifiers of the formals in the renaming declaration, for ASIS use.
18323 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18324 a renaming declaration or a subtype declaration for an actual in an
18325 instance, capture location information of declaration in generic, for
18327 (Instantiate_Formal_Package): Add comments on needed additional tests.
18328 AI-317 (partial parametrization) is fully implemented.
18329 (Validate_Private_Type_Instance): Add check for actual which
18330 must have preelaborable initialization
18331 Use new // insertion for some continuation messages
18332 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18333 Default_Expression. Add type retrieval when the declaration has an
18334 access definition. Update premature usage of incomplete type check.
18335 (Check_Access_Definition): New subsidiary routine. Check whether the
18336 current compilation version is Ada 05 and the supplied node has an
18338 (Instantiate object): Alphabetize local variables. Handle the creation
18339 of new renaming declarations with respect to the kind of definition
18340 used - either an access definition or a subtype mark. Guard against
18341 unnecessary error message in the context of anonymous access types after
18342 they have been resolved. Add check for required null exclusion in a
18343 formal object declaration.
18344 (Switch_View): A private subtype of a non-private type needs to be
18345 switched (the base type can have been switched without its private
18346 dependents because of the last branch of Check_Private_View.
18347 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18349 (Instantiate_Type): Emit an error message whenever a class-wide type of
18350 a tagged incomplete type is used as a generic actual.
18351 (Find_Actual_Type): Extend routine to handle a component type in a child
18352 unit that is imported from a formal package in a parent.
18353 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18354 agree on constrainedness, rather than checking against ultimate ancestor
18355 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18356 generic body, for navigation purposes.
18358 2006-10-31 Robert Dewar <dewar@adacore.com>
18359 Thomas Quinot <quinot@adacore.com>
18361 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18363 (New_Stream_Subprogram): When processing an attribute definition clause
18364 for a stream-oriented subprogram, record an entity node occurring at
18365 the point of clause to use for checking the visibility of the clause,
18366 as defined by 8.3(23) as amended by AI-195.
18367 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18368 New_Stream_Function and New_Stream_Procedure.
18369 (New_Stream_Function, New_Stream_Procedure): Removed.
18370 (Analyze_Attribute_Definition_Clause, case Address): Check new
18371 Alignment_Check check
18373 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18374 Javier Miranda <miranda@adacore.com>
18375 Robert Dewar <dewar@adacore.com>
18377 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18378 generate the same errors compiling under -gnatc.
18379 (Try_Object_Operation): If no candidate interpretation succeeds, but
18380 there is at least one primitive operation with the right name, report
18381 error in call rather than on a malformed selected component.
18382 (Analyze_Selected_Component): If the prefix is an incomplete type from
18383 a limited view, and the full view is available, use the full view to
18384 determine whether this is a prefixed call to a primitive operation.
18385 (Operator_Check): Verify that a candidate interpretation is a binary
18386 operation before checking the type of its second formal.
18387 (Analyze_Call): Add additional warnings for function call contexts not
18389 (Analyze_Allocator): Move the check for "initialization not allowed for
18390 limited types" after analyzing the expression. This is necessary,
18391 because OK_For_Limited_Init looks at the structure of the expression.
18392 Before analysis, we don't necessarily know what sort of expression it
18393 is. For example, we don't know whether F(X) is a function call or an
18394 indexed component; the former is legal in Ada 2005; the latter is not.
18395 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18396 were missing. We also didn't handle qualified expressions. Now also
18397 allow function calls. Use new common routine OK_For_Limited_Init.
18398 (Analyze_Type_Conversion): Do not perform some legality checks in an
18399 instance, because the error message will be redundant or spurious.
18400 (Analyze_Overloaded_Selected_Component): Do not do style check when
18401 setting an entity, since we do not know it is the right entity yet.
18402 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18403 (Analyze_Overloaded_Selected_Component): Same change
18404 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18405 since regular incomplete subtypes are transformed into corresponding
18406 subtypes of their full views.
18407 (Complete_Object_Operation): Treat name of transformed subprogram call
18408 as coming from source, for browsing purposes.
18409 (Try_Primitive_Operation): If formal is an access parameter, compare
18410 with base type of object to determine whether it is a primitive
18412 (Operator_Check): If no interpretation of the operator matches, check
18413 whether a use clause on any candidate might make the operation legal.
18414 (Try_Class_Wide_Operation): Check whether the first parameter is an
18415 access type whose designated type is class-wide.
18417 2006-10-31 Robert Dewar <dewar@adacore.com>
18418 Ed Schonberg <schonberg@adacore.com>
18419 Gary Dismukes <dismukes@adacore.com>
18421 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18422 warn on infinite loops.
18423 Add \\ to some continuation messages
18424 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18425 (Process_Bounds): If the bounds are integer literals that result from
18426 constant-folding, and they carry a user-defined type, preserve that type
18427 rather than treating this as an integer range.
18428 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18429 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18430 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18431 left hand side of assignment.
18432 (Analyze_Assignment): Add suport to manage assigments to the attribute
18433 priority of a protected object.
18434 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18435 not just identifiers.
18436 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18437 or AND THEN for possible tracking.
18438 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18439 case of while loops so we can track values in the loop body.
18441 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18442 Hristian Kirtchev <kirtchev@adacore.com>
18443 Bob Duff <duff@adacore.com>
18445 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18446 procedure cannot be a protected operation (it is a basic_declaration,
18447 not a subprogram_declaration).
18448 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18449 Subp. Add logic for entry processing.
18450 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18451 Determine whether an entry or subprogram of a protected or task type
18452 override an inherited primitive of an implemented interface.
18453 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18454 Update the actual used in calls to Check_Overriding_Indicator.
18455 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18456 generate the proper reference to the parent unit, for cross-reference.
18457 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18459 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18460 (Add_Extra_Formal): Revise procedure to allow passing in associated
18461 entity, scope, and name suffix, and handle setting of the new
18462 Extra_Formals field.
18463 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18464 pass new parameters. Add support for adding the new extra access formal
18465 for functions whose calls are treated as build-in-place.
18466 (Analyze_A_Return_Statement): Correct casing in error message.
18467 Move Pop_Scope to after Analyze_Function_Return, because an extended
18468 return statement really is a full-fledged scope. Otherwise, visibility
18469 doesn't work right. Correct use of "\" for continuation messages.
18470 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18471 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18472 the node doesn't get properly marked as analyzed.
18473 (Analyze_Subprogram_Body): If subprogram is a function that returns
18474 an anonymous access type that denotes a task, build a Master Entity
18476 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18477 proper usage of null exclusion in a result definition.
18478 (Process_Formals): Code cleanup and new error message.
18479 (Process_Formals): Detect incorrect application of null exclusion to
18481 (Conforming_Types): Handle conformance between [sub]types and itypes
18482 generated for entities that have null exclusions applied to them.
18483 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18484 base type is an access subtype. This case arrises with null exclusions.
18485 (New_Overloaded_Entity): Do not remove the overriden entity from the
18486 homonym chain if it corresponds with an abstract interface primitive.
18487 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18488 call to the synthesized predicate Is_Incomplete_Type.
18489 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18491 (Analyze_Subprogram_Declaration): Check that abstract interface
18492 primitives are abstract or null.
18493 (Analyze_Subprogram_Specification): Remove previous check for abstract
18494 interfaces because it was not complete.
18495 (Has_Interface_Formals): Removed.
18497 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18498 Javier Miranda <miranda@adacore.com>
18500 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18501 of Analyze_Package_Body, to create Itype references for anonymous
18502 access types created in the package declaration, whose designated types
18503 may have only a limited view.
18504 (Analyze_Package_Specification): For the private part of a nested
18505 package, install private_with_clauses of enclosing compilation unit if
18506 we are in its visible part.
18507 (Declare_Inherited_Private_Subprograms): Complete barrier
18508 to ensure that the primitive operation has an alias to some parent
18509 primitive. This is now required because, after the changes done for the
18510 implementation of abstract interfaces, the contents of the list of
18511 primitives has entities whose alias attribute references entities of
18512 such list of primitives.
18513 (Analyze_Package_Specification): Simplify code that handles parent units
18514 of instances and formal packages.
18515 (Uninstall_Declarations): Check the convention consistency among
18516 primitive overriding operations of a tagged record type.
18518 2006-10-31 Robert Dewar <dewar@adacore.com>
18519 Hristian Kirtchev <kirtchev@adacore.com>
18520 Javier Miranda <miranda@adacore.com>
18521 Ed Schonberg <schonberg@adacore.com>
18523 * sem_ch8.adb: Minor error msg rewording
18524 (Undefined): When checking for misspellings, invert arguments (to get
18525 expected and found set right)
18526 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18527 (Analyze_Generic_Renaming): Same fix
18528 (Use_One_Package): Do not take into account the internal entities of
18529 abstract interfaces during the analysis of entities that are marked
18530 as potentially use-visible.
18531 (Find_Type): Handle the case of an attribute reference for
18532 implementation defined attribute Stub_Type (simply let the analysis of
18533 the attribute reference rewrite it).
18534 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18535 type that appears in a Use_Type clause.
18536 (Analyze_Object_Renaming): Add support for renaming of the Priority
18538 (Find_Type): In Ada 2005, a task type can be used within its own body,
18539 when it appears in an access definition.
18540 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18541 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18542 in a formal object declaration or in a subtype declaration.
18543 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18544 (Check_Null_Exclusion): New local routine to
18545 Analyze_Subprogram_Renaming. Check whether the formals and return
18546 profile of a renamed subprogram have required null exclusions when
18547 their counterparts of the renaming already impose them.
18548 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18549 Determine whether an entity is inside a generic scope.
18550 (In_Open_Scope): First pass of documentation update.
18551 (Find_Expanded_Name): Add support for shadow entities associated with
18552 limited withed packages. This is required to handle nested packages.
18553 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18554 that makes a renaming of a limited withed package illegal.
18556 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18557 Ed Schonberg <schonberg@adacore.com>
18559 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18560 Check_Overriding_Indicator.
18561 (Analyze_Task_Definition): Ditto.
18562 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18563 (Check_Overriding_Indicator): To find overridden interface operation,
18564 examine only homonyms that have an explicit subprogram declaration, not
18565 inherited operations created by an unrelated type derivation.
18566 (Check_Overriding_Indicator): When checking for the presence of "null"
18567 in a procedure, ensure that the queried node is a procedure
18569 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18570 type when the formal is an access to variable.
18571 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18572 (Analyze_Task_Type): Same addition
18573 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18574 provide navigation capabilities for entries.
18576 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18577 Ed Schonberg <schonberg@adacore.com>
18578 Javier Miranda <miranda@adacore.com>
18579 Gary Dismukes <dismukes@adacore.com>
18581 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18582 inherited from an interface ancestor by another interface in the
18583 context of an instance as 'late'.
18584 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18585 of a call to a function that dispatches on access result.
18586 (Check_Dispatching_Operation): In case of late overriding of a primitive
18587 that covers abstract interface subprograms we register it in all the
18588 secondary dispatch tables associated with abstract interfaces.
18589 (Check_Dispatching_Call): Add check that a dispatching call is not made
18590 to a function with a controlling result of a limited type. This is a
18591 current implementation restriction.
18592 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18593 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18594 argument is an interface type that is a generic formal.
18595 (Is_Interface_Subprogram): Removed.
18596 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18597 operation, check the formals to handle the case in which it is
18598 associated with an abstract interface type.
18600 2006-10-31 Robert Dewar <dewar@adacore.com>
18601 Ed Schonberg <schonberg@adacore.com>
18603 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18604 Add new calls to this procedure during traversal
18605 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18606 another unit if expansion is disabled.
18608 2006-10-31 Robert Dewar <dewar@adacore.com>
18610 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18611 Current_Value in the conditional case, to evaluate additional
18612 comparisons at compile time.
18614 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18615 Hristian Kirtchev <kirtchev@adacore.com>
18616 Javier Miranda <miranda@adacore.com>
18618 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18619 subprogram type to provide better diagnostics in case of ambiguity.
18620 (Covers): Handle coverage of formal and actual anonymous access types in
18621 the context of generic instantiation.
18622 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18623 abstract interface types; this is required to handle concurrent types
18624 with discriminants and abstract interface types.
18625 (Covers): Include type coverage of both regular incomplete subtypes and
18626 incomplete subtypes of incomplete type visibles through a limited with
18629 2006-10-31 Robert Dewar <dewar@adacore.com>
18630 Hristian Kirtchev <kirtchev@adacore.com>
18631 Ed Schonberg <schonberg@adacore.com>
18633 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18634 messages for entities in packages which are not used.
18635 (Collect_Synchronized_Interfaces): New procedure.
18636 (Overrides_Synchronized_Primitive): New function.
18637 (Denotes_Discriminant): Extend predicate to apply to task types.
18638 Add missing continuation marks in error msgs
18639 (Unqualify): New function for removing zero or more levels of
18640 qualification from an expression. There are numerous places where this
18641 ought to be used, but we currently only deal properly with zero or one
18643 (In_Instance); The analysis of the actuals in the instantiation of a
18644 child unit is not within an instantiation, even though the parent
18645 instance is on the scope stack.
18646 (Safe_To_Capture_Value): Exclude the case of variables that are
18648 (Check_Obsolescent): Removed
18649 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18650 is an aliased view, even when rewritten as a reference to the target
18651 object in an assignment.
18652 (Get_Subprogram_Entity): New function
18653 (Known_To_Be_Assigned): New function
18654 (Type_Access_Level): Compute properly the access level of a return
18655 subtype that is an anonymous access type.
18656 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18657 (Is_Transfer): The new extended_return_statement causes a transfer of
18659 (Has_Preelaborable_Initialization): New function
18660 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18661 has a null exclusion depending on its Nkind.
18662 Change Is_Lvalue to May_Be_Lvalue
18663 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18664 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18665 (Safe_To_Capture_Value): Extend functionality so it can be used for
18666 the current value condition case.
18667 (Has_Compatible_Alignment): New function
18668 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18669 objects to handle the Ada 2005 case, where aliasedness no longer implies
18670 that the object is constrained. In particular, for dereferenced names,
18671 the designated object must be assumed to be unconstrained.
18672 (Kill_Current_Values): Properly deal with the case where we encounter
18673 a loop in the scope chain.
18674 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18676 (Compile_Time_Constraint_Error): Improve error message in error case
18678 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18679 associated with entities of abstract interface primitives.
18680 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18682 2006-10-31 Robert Dewar <dewar@adacore.com>
18684 * s-osinte-tru64.adb:
18685 Mark Asm statements Volatile to prevent warnings (seems a
18686 reasonable change anyway)
18689 * s-mastop-irix.adb: Add Volatile to Asm statements
18690 Suppresses warning, and seems appropriate in any case
18692 * s-osinte-vms.adb: Add Volatile to Asm statement
18694 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18696 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18698 Add call to Check_Code_Statement
18700 2006-10-31 Robert Dewar <dewar@adacore.com>
18701 Ed Schonberg <schonberg@adacore.com>
18702 Bob Duff <duff@adacore.com>
18704 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18705 Synchronized_Present): Add Formal_Derived_Type_Definition and
18706 Private_Extension_Declaration to the list of assertions.
18707 (Is_Entry_Barrier_Function): New flag
18708 (Has_Self_Reference): New flag on aggregates, to indicate that they
18709 contain a reference to the enclosing type, inserted through a default
18711 (Next_Rep_Item): Move from Node4 to Node5.
18712 (Entity): Add this field for N_Attribute_Definition_Clause.
18713 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18714 (N_Return_Object_Declaration): Remove this node kind. We now use
18715 N_Object_Declaration instead.
18716 (Actual_Designated_Subtype): Move to a different place to make room in
18717 N_Extended_Return_Statement.
18718 (Procedure_To_Call): Move to a different place to make room in
18719 N_Extended_Return_Statement.
18720 (Return_Type): Removed this field to make room in return statements
18722 (Return_Statement_Entity): New field in return statements, in part to
18723 replace Return_Type, and in part to support the fact that return
18724 statements are now pushed on the scope stack during semantic analysis.
18725 (Return_Object_Declarations): New field to support extended return
18727 (N_Extended_Return_Statement): New node for extended_return_statement
18729 (N_Return_Object_Declaration): New node for part of
18730 extended_return_statement nonterminal. Needed because all the necessary
18731 fields won't fit in N_Extended_Return_Statement.
18732 Generic_associations now carry the Box_Present flag, to indicate a
18733 default for an actual in a partially parametrized formal package.
18735 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18736 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18737 and for the new predefined dispatching policies: EDF_Across_Priorities,
18738 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18739 Introduce new name Stub_Type for implementation defined attribute.
18740 Add pragma Preelaborable_Initialization
18741 Add entry for Priority attribute.
18742 Add Pragma_Wide_Character_Encoding
18743 (Get_Convention_Name): Given a convention id, this function returns the
18744 corresponding name id from the names table.
18746 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18747 Robert Dewar <dewar@adacore.com>
18748 Bob Duff <duff@adacore.com>
18750 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18751 print null exclusion twice in the case of an access definition,
18752 Implement new -gnatL switch
18753 Remove N_Return_Object_Declaration. We now use
18754 N_Object_Declaration instead. Implement the case for
18755 N_Extended_Return_Statement. Alphabetize the cases.
18756 Add cases for new nodes N_Extended_Return_Statement and
18757 N_Return_Object_Declaration. The code is not yet written.
18758 Update the output for N_Formal_Object_Declaration
18759 and N_Object_Renaming_Declaration.
18760 (Write_Itype): Account for the case of a modular integer subtype whose
18761 base type is private.
18763 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18765 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18766 Remove elaboration code, now done in the binder.
18768 * s-rident.ads: Make this unit Preelaborate.
18769 (No_Restrictions): New constant used to clean up code and follow
18770 preelaborate constraints.
18773 Add System.Restrictions dependence, referenced directly from the
18774 binder generated file.
18776 2006-10-31 Gary Dismukes <dismukes@adacore.com>
18778 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18779 True when AAMP extended floating-point is in use (48-bit). Change type
18780 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18781 the two byte array types on AFloat. Change type of IV_Ilf overlay
18782 variable from Byte8 to ByteLF. Add appropriate initializations of
18783 floating-point overlays for AAMP cases.
18785 2006-10-31 Javier Miranda <miranda@adacore.com>
18787 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18788 (Get_Ceiling): New subprogram that returns
18789 the ceiling priority of the protected object.
18790 (Set_Ceiling): New subprogram that sets the new ceiling priority of
18791 the protected object.
18793 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18795 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18797 2006-10-31 Jose Ruiz <ruiz@adacore.com>
18799 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18800 requeuing to the same protected object to give higher priority tasks
18801 the opportunity to execute.
18803 2006-10-31 Robert Dewar <dewar@adacore.com>
18805 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18806 add more precise check for the character sequence that follows '[' to
18807 avoid possible confusion in case if '[' is the last character of a
18809 (Scan_Wide): Always allow brackets encoding
18811 2006-10-31 Olivier Hainque <hainque@adacore.com>
18813 * s-stchop.ads: make this unit preelaborate. This is desirable in
18814 general and made mandatory by the use of this unit by s-taprop which
18815 is itself preelaborate.
18817 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18818 Td_Events component.
18820 2006-10-31 Vincent Celier <celier@adacore.com>
18822 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18825 2006-10-31 Vincent Celier <celier@adacore.com>
18827 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18829 2006-10-31 Vincent Celier <celier@adacore.com>
18831 * makegpr.adb (Check_Compilation_Needed): Take into account path names
18833 (Check_Compilation_Needed): When checking a C or C++ source, do not
18834 resolve symbolic links.
18835 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18836 When not in verbose mode and Ellipse is True, display "..." for the
18837 first argument with Display set to False.
18838 (Build_Global_Archive): Always set Display True for the first object
18839 file. Call Display_Command with Ellipse set to True.
18841 2006-10-31 Matt Heaney <heaney@adacore.com>
18843 * a-crbtgo.ads: Commented each subprogram
18845 * a-crbtgo.adb: Added reference to book from which algorithms were
18848 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18849 indicate which child.
18850 (Generic_Conditional_Insert): changed parameter name from "Success" to
18852 (Generic_Unconditional_Insert_With_Hint): improved algorithm
18854 * a-coorse.adb (Replace_Element): changed parameter name in call to
18855 conditional insert operation.
18857 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18859 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18862 * a-ciorse.adb (Replace_Element): changed parameter name in call to
18863 conditional insert operation.
18865 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18868 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18869 instead of mode inout.
18871 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18873 (Generic_Read): preserve existing buckets array if possible
18874 (Generic_Write): don't send buckets array length anymore
18876 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18877 instead of mode inout.
18879 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18880 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18882 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18883 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18884 (Replace_Element): local operation is now an instantiation
18886 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18887 check current length.
18888 (Generic_Replace_Element): new operation
18890 2006-10-31 Doug Rupp <rupp@adacore.com>
18892 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18893 Call TBK$SYMBOLIZE without omitting parameters.
18895 2006-10-31 Vincent Celier <celier@adacore.com>
18897 * symbols-processing-vms-ia64.adb,
18898 symbols-processing-vms-alpha.adb (Process): Do not include symbols
18899 that come from generic instantiations in bodies.
18901 2006-10-31 Pat Rogers <rogers@adacore.com>
18903 * a-rttiev.ads, a-rttiev.adb:
18904 This is a significant redesign primarily for the sake of automatic
18905 timer task termination but also to fix a design flaw.
18906 Therefore we are now using an RTS lock, instead of a protected
18907 object, to provide mutual exclusion to the queue of pending events
18908 and the type Timing_Event is no longer a protected type.
18910 2006-10-31 Robert Dewar <dewar@adacore.com>
18911 Cyrille Comar <comar@adacore.com>
18912 Ben Brosgol <brosgol@adacore.com>
18914 * debug.adb: Update flags documentation
18916 * gnat_ugn.texi: Add documentation for new -gnatwq switch
18917 Clean up documentation for several other warning switches
18918 Clarify how task stack size can be specified with various
18919 versions of Windows.
18920 Add note that -gnatVo includes ranges including loops
18921 Add documentation for -gnatL switch
18922 Add note on elaboration warning for initializing variables
18923 Add documentation for new -gnatwt warning switch
18924 Document new form of pragma Warnings (On|Off, string)
18925 Add comment on use of pragma Warnings to control warnings
18926 Add documentation for -gnatjnn switch
18927 Modify section on interfacing with C for VMS 64-bit.
18928 Add doc for -gnatVe/E
18929 Add documentation of new warning flags -gnatww/-gnatwW
18930 Add warnings about address clause overlays to list of warnings
18931 (Exception Handling Control): Document that the option --RTS must be
18932 used consistently for gcc and gnatbind.
18933 Clarify that inlining is not always possible
18934 Update documentation on pragma Unchecked_Union.
18937 Add documentation for new extended version of pragma Obsolescent
18938 Add documentation for implementation defined attribute 'Stub_Type.
18939 Add note on use of Volatile in asm statements
18940 Add documentation on use of pragma Unreferenced in context clause
18941 Document new form of pragma Warnings (On|Off, pattern)
18942 Document pragma Wide_Character_Encoding
18943 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18944 enforced if code generation is active.
18945 Add section on pragma Suppress to document GNAT specific check
18947 Clarify difference between No_Dispatching_Calls & No_Dispatch.
18948 Add documentation for pragma Restrictions (No_Elaboration_Code)
18951 Add comments on layout of subprogram local variables in the
18952 presence of nested subprograms.
18954 * ug_words: Resync.
18956 * elists.ads: Minor reformatting
18957 Node returns Node_Or_Entity_Id (doc change only)
18959 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18961 * g-arrspl.ads (Create): Update comments.
18963 * sem.ads: Add details on the handling of the scope stack.
18965 * usage.adb: Update documentation.
18967 * validsw.ads, validsw.adb:
18968 Add definition of Validity_Check_Components and implement -gnatVe/E
18970 * vms_data.ads: Add missing VMS qualifiers.
18972 * s-addope.ads: Add documentation on overflow and divide by zero
18974 2006-10-31 Robert Dewar <dewar@adacore.com>
18975 Thomas Quinot <quinot@adacore.com>
18976 Arnaud Charlet <charlet@adacore.com>
18978 * fmap.adb: Put routines in alpha order
18980 * g-boumai.ads: Remove redundant 'in' keywords
18982 * g-cgi.adb: Minor reformatting
18984 * g-cgi.ads: Remove redundant 'in' keywords
18986 * get_targ.adb: Put routines in alpha order
18988 * prj-attr.ads: Minor reformatting
18990 * s-atacco.ads: Minor reformatting
18992 * scn.adb: Put routines in alpha order
18994 * sinput-l.adb: Minor comment fix
18996 * sinput-p.adb: Minor comment fix
18998 * s-maccod.ads: Minor reformatting
19000 * s-memory.adb: Minor reformatting
19002 * s-htable.adb: Fix typo in comment.
19004 * s-secsta.adb: Minor comment update.
19006 * s-soflin.adb: Minor reformatting
19009 Add comment about odd qualification in Storage_Offset declaration
19012 Remove unnecessary 'in' keywords for formal parameters.
19014 * treeprs.adt: Minor reformatting
19016 * urealp.adb: Put routines in alpha order
19018 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19021 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19023 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19025 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19026 workaround as on other platforms.
19028 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19029 * g-expect-vms.adb: Remove redundant 'in' keywords
19031 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19032 clear error message if the list-of-files file cannot be opened.
19034 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19035 equality operator is always visible.
19037 * lang.opt: Woverlength-strings: New option.
19040 Update copyright, since nmake.ads and nmake.adb have changed.
19042 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19043 (Binder_Output_Time_Stamps_Set): removed.
19044 (Old_Binder_Output_Time_Stamp): idem.
19045 (New_Binder_Output_Time_Stamp): idem.
19046 (Recording_Time_From_Last_Bind): idem.
19047 (Recording_Time_From_Last_Bind): Make constant.
19049 * output.ads, output.adb (Write_Str): Allow LF characters
19050 (Write_Spaces): New procedure
19052 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19054 * inline.adb: Minor reformatting
19056 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19058 * s-mastop-vms.adb: Remove redundant 'in' keywords
19060 * s-osprim-vms.adb: Remove redundant 'in' keywords
19062 * s-trafor-default.adb: Remove redundant 'in' keywords
19064 * 9drpc.adb: Remove redundant 'in' keywords
19066 * s-osinte-mingw.ads: Minor reformatting
19068 * s-inmaop-posix.adb: Minor reformatting
19070 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19072 * a-exexda.adb: Minor code reorganization
19074 * a-filico.adb: Minor reformatting
19076 * a-finali.adb: Minor reformatting
19078 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19080 * a-numeri.ads: Minor reformatting
19082 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19084 * exp_pakd.ads: Fix obsolete comment
19086 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19087 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19088 Probably not a bug, but certainly neater and more efficient.
19090 * a-tienio.adb: Minor reformatting
19092 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19093 Avoid assuming low bound of string is 1.
19095 * gnatbind.adb: Change Bindusg to package and rename procedure as
19096 Display, which now ensures that it only outputs usage information once.
19097 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19099 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19102 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19104 (Match): Add pragma Assert to ensure that Matches'First is zero
19106 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19108 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19109 documented preconditions (also kills warnings about bad indexes).
19111 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19113 (Build_Import_Library): Ditto;
19115 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19117 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19119 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19120 lower bound of choice table is 1.
19122 * sem_case.ads (Analyze_Choices): Document that lower bound of
19125 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19128 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19129 and add appropriate Assert pragma to suppress warnings.
19131 * atree.h, atree.ads, atree.adb
19132 Change Elist24 to Elist25
19133 Add definitions of Field28 and Node28
19134 (Traverse_Field): Use new syntactic parent table in sinfo.
19136 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19138 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19140 * exp_tss.adb: Put routines in alpha order
19142 * fe.h: Remove redundant declarations.
19144 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19146 * utils.c (builtin_function): Rename to gnat_builtin_function.
19147 Move common code to add_builtin_function.
19148 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19149 gnat_builtin_function.
19150 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19151 Change the signature.
19153 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19155 * Makefile.in: Add TEXI2PDF definition.
19156 * Make-lang.in: Add "ada.pdf" target.
19158 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19160 * decl.c, utils.c: Fix comment typos.
19161 * utils.c: Fix a typo.
19163 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19165 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19166 on "pure" Ada subprograms if SJLJ exceptions are used.
19167 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19168 on the declaration node of JMPBUF_SAVE.
19169 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19170 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19171 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19173 2006-08-20 Laurent Guerby <laurent@guerby.net>
19176 g-socket.adb (Bind_Socket): Call Set_Address.
19178 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19181 * decl.c (same_discriminant_p): New static function.
19182 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19183 subtype and we have discriminants, fix up the COMPONENT_REFs
19184 for the discriminants to make them reference the corresponding
19185 fields of the parent subtype after it has been built.
19187 2006-09-15 Roger Sayle <roger@eyesopen.com>
19190 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19191 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19193 2006-09-13 Olivier Hainque <hainque@adacore.com>
19196 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19197 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19198 let the common gimplifier code make and propagate a temporary copy.
19199 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19200 out/in-out actuals and defer setting the addressable/readonly bits
19203 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19206 * decl.c (components_to_record): Defer emitting debug info for the
19207 record type associated with the variant until after we are sure to
19210 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19213 * gigi.h (gnat_internal_attribute_table): Declare.
19214 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19215 * utils.c (gnat_internal_attribute_table): New global variable.
19216 (builtin_function): Always call decl_attributes on the builtin.
19217 (handle_const_attribute): New static function.
19218 (handle_nothrow_attribute): Likewise.
19220 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19222 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19224 2006-06-23 Olivier Hainque <hainque@adacore.com>
19226 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19227 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19229 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19230 Eric Botcazou <ebotcazou@adacore.com>
19233 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19234 check-gnat into check-acats.
19236 2006-06-17 Karl Berry <karl@gnu.org>
19238 * gnat-style.texi (@dircategory): Use "Software development"
19239 instead of "Programming", following the Free Software Directory.
19241 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19244 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19246 2006-06-06 Laurent Guerby <laurent@guerby.net>
19249 mlib-utl.adb: Use Program_Name.
19251 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19253 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19254 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19255 trans.c, utils.c: Fix comment typos. Follow spelling
19257 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19260 2006-05-19 Nicolas Setton <setton@adacore.com>
19262 * misc.c (gnat_dwarf_name): New function.
19263 (LANG_HOOKS_DWARF_NAME): Define to it.
19265 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19267 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19268 (ada/misc.o): Likewise.
19269 (ada/utils.o): Likewise.
19271 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19273 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19274 * s-osinte-kfreebsd-gnu.ads: New file.
19276 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19278 * Make-lang.in: Rename docdir to gcc_docdir.
19280 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19282 * gigi.h (get_ada_base_type): Delete.
19283 * utils2.c (get_ada_base_type): Likewise.
19284 * trans.c (convert_with_check): Operate in the real base type.
19286 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19288 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19290 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19292 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19293 whether to make the decl common.
19295 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19297 * Make-lang.in (Ada): Remove.
19298 (.PHONY): Remove Ada
19300 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19302 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19303 aggregate, check the interpretations of the other operand to find one
19304 that may be a boolean array.
19306 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19307 the prefix is a private extension.
19309 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19312 * utils2.c (find_common_type): If both input types are BLKmode and
19313 have the same constant size, keep using the first one.
19315 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19317 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19319 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19321 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19323 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19324 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19325 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19326 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19327 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19328 aborted while owning a lock.
19330 2006-02-17 Javier Miranda <miranda@adacore.com>
19331 Robert Dewar <dewar@adacore.com>
19333 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19334 through an access to class-wide interface we force the displacement of
19335 the pointer to the allocated object to reference the corresponding
19336 secondary dispatch table.
19337 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19338 if Long_Shifts are supported on the target, even if 64 bit divides
19339 are not supported (configurable run time mode).
19340 (Expand_N_Type_Conversion): Do validity check if validity checks on
19341 operands are enabled.
19342 (Expand_N_Qualified_Expression): Do validity check if validity checks
19343 on operands are enabled.
19345 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19347 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19348 must be materialized when the renamed expression is an explicit
19351 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19353 * freeze.adb (Statically_Discriminated_Components): Return false if
19354 the bounds of the type of the discriminant are not static expressions.
19356 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19357 the bounds of the discriminant type are not static.
19359 2006-02-17 Robert Dewar <dewar@adacore.com>
19361 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19362 then we close To if it is valid.
19364 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19366 * init.c (facility_resignal_table): new array
19367 (__gnat_default_resignal_p): enhance default predicate to resignal if
19368 VMS condition has one of the predefined facility codes.
19370 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19372 * Makefile.in: Use VMS64 specialized versions of several units in
19373 Interfaces.C hierarchy to be compatible with HP C default size choices.
19374 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19376 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19378 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19379 instantiation, the corresponding entity is the related_instance of the
19380 wrapper package created for the instance.
19382 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19384 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19385 the current instance is nested within another instance in a child unit.
19387 2006-02-17 Javier Miranda <miranda@adacore.com>
19388 Ed Schonberg <schonberg@adacore.com>
19390 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19391 type we cannot inherit the primitive operations; we inherit the
19392 Corresponding_Record_Type (which has the list of primitive operations).
19393 (Check_Anonymous_Access_Types): When creating anonymous access types for
19394 access components, use Rewrite in order to preserve the tree structure,
19396 (Analyze_Object_Declaration): For limited types with access
19397 discriminants with defaults initialized by an aggregate, obtain
19398 subtype from aggregate as for other mutable types.
19399 (Derived_Type_Declaration): If the derived type is a limited interface,
19400 set the corresponding flag (Is_Limited_Record is not sufficient).
19402 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19404 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19405 to inline a function that returns an unconstrained type, the return
19406 expression must be the first variable declared in the body of the
19409 2006-02-17 Javier Miranda <miranda@adacore.com>
19411 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19412 abstract interface type, the static analysis is not enough to know if
19413 the interface is implemented or not by the source tagged type. Hence
19414 we must pass the work to the expander to generate the required code to
19415 evaluate the conversion at run-time.
19416 (Resolve_Equality_Op): Do not apply previous
19417 transformation if expansion is disasbled, to prevent anomalies when
19418 locating global references in a generic unit.
19420 2006-02-17 Vincent Celier <celier@adacore.com>
19422 * snames.ads, snames.adb: New standard names for new project attributes:
19423 archive_builder, archive_indexer, compiler_pic_option,
19424 config_body_file_name, config_body_file_name_pattern,
19425 config_file_switches, config_file_unique, config_spec_file_name,
19426 config_spec_file_name_pattern, default_builder_switches,
19427 default_global_compiler_switches, default_language,
19428 dependency_file_kind, global_compiler_switches, include_path,
19429 include_path_file, language_kind, linker_executable_option,
19430 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19431 roots, runtime_project.
19433 2006-02-17 Matthew Heaney <heaney@adacore.com>
19435 * a-convec.ads, a-convec.adb:
19436 (operator "&"): handle potential overflow for large index types
19437 (Insert): removed Contraint_Error when using large index types
19438 (Insert_Space): removed Constraint_Error for large index types
19439 (Length): moved constraint check from Length to Insert
19441 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19442 as not null access.
19443 Explicit raise statements now include an exception message.
19444 (operator "&"): handle potential overflow for large index types
19445 (Insert): removed Contraint_Error when using large index types
19446 (Insert_Space): removed Constraint_Error for large index types
19447 (Length): moved constraint check from Length to Insert
19449 2006-02-17 Robert Dewar <dewar@adacore.com>
19451 * s-wchcnv.adb: Document handling of [ on output (we do not change
19452 this to ["5B"] and the new comments say why not.
19455 Add note for -gnatVo that this now includes the cases of type
19456 conversions and qualified expressions.
19457 Add comments on handling of brackets encoding for Text_IO
19459 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19460 Thomas Quinot <quinot@adacore.com>
19461 Robert Dewar <dewar@adacore.com>
19462 Javier Miranda <miranda@adacore.com>
19464 * expander.adb: Fix typo in comment
19466 * exp_pakd.adb: Fix typo
19467 Minor comment reformatting.
19469 * g-dyntab.adb: Minor reformatting
19471 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19472 aliased subprograms to look for the abstract interface subprogram.
19474 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19476 * env.c (__gnat_setenv): Use size_t.
19477 (__gnat_unsetenv): Likewise.
19478 (__gnat_clearenv): Likewise.
19480 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19482 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19484 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19486 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19487 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19488 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19489 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19490 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19491 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19492 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19493 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19494 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19497 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19499 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19500 protection against race conditions is not needed.
19501 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19503 (Set_Specific_Handler): Add mutual exclusive access to the specific
19505 (Specific_Handler): Add mutual exclusive access for retrieving the
19508 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19511 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19512 Fall_Back_Handler and Specific_Handler.
19514 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19515 termination handlers.
19516 Set two different owerflow depending on the maximal stack size.
19518 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19519 protection against race conditions is not needed when executing the
19520 task termination handler.
19522 2006-02-13 Robert Dewar <dewar@adacore.com>
19524 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19525 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19526 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19527 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19528 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19529 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19530 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19531 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19532 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19533 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19534 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19535 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19536 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19537 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19538 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19539 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19540 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19541 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19542 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19543 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19544 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19545 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19546 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19547 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19548 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19549 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19550 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19551 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19552 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19553 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19554 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19555 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19556 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19557 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19560 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19562 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19563 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19564 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19565 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19566 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19567 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19568 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19569 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19570 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19572 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19574 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19575 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19576 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19577 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19578 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19579 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19580 replaced by anonymous access type.
19581 (pthread_sigmask): Now take an access sigset_t
19583 * s-osinte-hpux.ads: Ditto.
19584 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19585 properly 32 and 64 bit ABIs.
19587 2006-02-13 Pascal Obry <obry@adacore.com>
19589 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19590 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19591 s-taprop-linux.adb, s-taprop-solaris.adb,
19592 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19593 adjustement is already done when calling this routine.
19595 2006-02-13 Pascal Obry <obry@adacore.com>
19597 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19598 table to take advantage of the 16 priority levels available on Windows
19599 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19600 supported by this new mapping.
19602 2006-02-13 Nicolas Setton <setton@adacore.com>
19604 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19605 (get_encoding): New subprogram. Extracts the encodings from an encoded
19608 2006-02-13 Pascal Obry <obry@adacore.com>
19609 Nicolas Roche <roche@adacore.com>
19610 Arnaud Charlet <charlet@adacore.com>
19612 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19614 (__gnat_try_lock): Add unicode support by using a specific section on
19616 (__gnat_get_current_dir): Idem.
19617 (__gnat_open_read): Idem.
19618 (__gnat_open_rw): Idem.
19619 (__gnat_open_create): Idem.
19620 (__gnat_create_output_file): Idem.
19621 (__gnat_open_append): Idem.
19622 (__gnat_open_new): Idem.
19623 (__gnat_file_time_name): Idem.
19624 (__gnat_set_file_time_name): Idem.
19625 (__gnat_stat): Idem.
19626 (win32_no_block_spawn): Idem.
19627 (__gnat_locate_exec_on_path): Idem.
19628 (__gnat_opendir): New routine.
19629 (__gnat_closedir): Idem.
19630 (__gnat_readdir): Add new parameter length (pointer to int). Update
19631 implementation to use it and add specific Win32 code for Unicode
19633 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19634 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19635 (convert_addresses): Do not define this dummy routine on VMS.
19637 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19638 runtime Unicode support will be activated.
19639 (S2WS): String to Wide-String conversion. This version just copy a
19640 string in non Unicode version.
19641 (WS2S): Wide-String to String conversion. This version just copy a
19642 string in non Unicode version.
19644 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19645 (Open): Now import __gnat_opendir from adaint.c.
19646 (Read): Change the implementation to support unicode characters. It is
19647 not possible to use strlen() on Windows as this version supports only
19648 standard ASCII characters. So the length of the directory entry is now
19649 returned from the imported __gnat_readdir routine.
19650 Update copyright notice.
19652 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19653 (opendir): Moved to adaint.c.
19655 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19656 (Get_Directory): Fix wrong indexing.
19657 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19658 __gnat_getenv from env.c
19659 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19662 * env.h, env.c: New file.
19664 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19665 adaint.c by __gnat_getenv from env.c
19667 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19668 adaint.c by __gnat_getenv from env.c
19670 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19672 Update dependencies.
19674 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19675 Olivier Hainque <hainque@adacore.com>
19676 Eric Botcazou <ebotcazou@adacore.com>
19678 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19680 * gigi.h (value_factor_p): Add prototype and description, now public.
19682 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19683 promotion for field with rep clause if the associated size was proven
19685 Expand comments describing attempts to use a packable type.
19686 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19687 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19688 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19689 necessary since these are not different types and pointers may
19690 actually designate any subtype in this hierarchy.
19691 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19692 discriminants but put them into record only if not Unchecked_Union;
19693 pass flag to components_to_record showing Unchecked_Union.
19694 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19695 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19696 (components_to_record): New argument UNCHECKED_UNION.
19697 Remove special case code for Unchecked_Union and instead use main code
19698 with small changes.
19701 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19702 variable with the expression being built, only its inner field.
19704 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19705 emit_sequence_entry_statements.
19706 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19707 (establish_gnat_vms_condition_handler): Move before
19708 Subprogram_Body_to_gnu.
19709 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19710 for a subprogram if it has a foreign convention or is exported.
19711 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19712 substituted for a CONST_DECL.
19713 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19714 Etype to assoc_to_constructor.
19715 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19716 discriminants of Unchecked_Union.
19717 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19718 don't need cluttering preprocessor directives.
19719 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19720 condition handler as current in the compiled function.
19721 (body_with_handlers_p): New function. Tell whether a given sequence of
19722 statements node is attached to a package or subprogram body and involves
19723 exception handlers possibly nested within inner block statements.
19724 (emit_sequence_entry_statements): New function, to emit special
19725 statements on entry of sequences when necessary. Establish GNAT
19726 condition handler in the proper cases for VMS.
19727 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19728 emit_sequence_entry_statements.
19730 * utils2.c (find_common_type): If both input types are BLKmode and
19731 have a constant size, use the smaller one.
19732 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19735 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19737 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19738 (convert, case UNION_TYPE): Remove special treatment for unchecked
19742 (update_pointer_to): Update variants of pointer types to unconstrained
19743 arrays by attaching the list of fields of the main variant.
19745 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19746 Robert Dewar <dewar@adacore.com>
19748 * a-exexpr.adb, a-exexpr-gcc.adb
19749 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19750 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19751 Remove code unused for exception propagation for the compiler itself
19752 from a-except.adb and update to still share separate packages.
19754 * a-except.ads, a-except.adb: Ditto.
19755 Add comments that this version is now used only by the compiler and
19756 other basic tools. The full version that includes the Ada 2005 stuff
19757 is in separate files a-except-2005.ads/adb. The reason is that we do
19758 not want to cause bootstrap problems with compilers not recognizing
19760 Add exception reason code PE_Implicit_Return
19761 Add new exception reason code (Null Exception_Id)
19763 * a-except-2005.adb, a-except-2005.ads: New files.
19765 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19767 * s-wchcon.adb: New file.
19769 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19770 (traceback.o deps): Likewise.
19771 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19772 Activate build of GMEM instrumentation library on VMS targets.
19773 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19774 Use a-except-2005.ads/adb for all run-time library builds unless
19775 specified otherwise.
19776 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19777 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19778 Use s-parame.adb on all native platforms.
19779 Use s-parame-vxworks.adb on all vxworks platforms.
19780 Add env.c env.h in LIBGNAT_SRCS
19781 Add env.o in LIBGNAT_OBJS
19782 (GNATMAKE_OBJS): Remove ctrl_c.o object.
19783 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19784 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19785 supports VxWorks 6 RTPs.
19786 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19787 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19789 * types.h, types.ads (Terminate_Program): New exception
19790 Add comment on modifying multiple versions of a-except.adb when the
19791 table of exception reasons is modified.
19792 Add exception reason code PE_Implicit_Return
19793 Add new exception reason code (Null Exception_Id)
19795 * clean.adb (Initialize): Get the target parameters before checking
19796 if target is OpenVMS. Move the OpenVMS specific code here from package
19797 body elaboration code.
19799 2006-02-13 Thomas Quinot <quinot@adacore.com>
19800 Vincent Celier <celier@adacore.com>
19801 Robert Dewar <dewar@adacore.com>
19803 * ali-util.adb (Get_File_Checksum): Update to account for change in
19804 profile of Initialize_Scanner.
19806 * gprep.adb (Gnatprep): Update to account for change in profile of
19807 Initialize_Scanner.
19808 (Process_One_File): Same.
19810 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19811 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19812 that behaviour using the new Unit information recorded in the source
19813 files table, rather than going through all units every time.
19814 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19815 (Get_Source_Unit): Same.
19817 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19818 change in profile of Initialize_Scanner.
19819 (Prepare_To_Preprocess): Same.
19821 * lib.ads: Fix typo in comment (templace -> template).
19823 * prj-part.adb (Parse_Single_Project): Update to account for change in
19824 profile of Initialize_Scanner.
19826 * scn.adb (Initialize_Scanner): Account for change in profile of
19827 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19828 Also record the association of the given Source_File_Index to the
19829 corresponding Unit_Number_Type.
19831 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19833 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19834 Remove Unit formal for generic scanner: this formal
19835 is only relevant to Scn (the scanner instance used to parse Ada source
19836 files), not to other instances. Update comment accordingly.
19837 (Scan): Use new function Snames.Is_Keyword_Name.
19839 * sinfo-cn.adb: Fix typo in comment.
19841 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19844 * sinput.ads (Source_File_Record): New component Unit, used to capture
19845 the unit identifier (if any) associated to a source file.
19847 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19848 Unit in Source_File_Record.
19850 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19851 in profile of Initialize_Scanner.
19853 * scans.adb (Initialize_Ada_Keywords): New procedure
19855 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19856 Ada keywords in the Namet table, without the need to call
19857 Initialize_Scanner.
19859 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19860 (Is_Keyword_Name): New function
19862 * snames.ads: Add subtype Configuration_Pragma_Names
19863 Add pragma Ada_2005 (synonym for Ada_05)
19864 (Is_Keyword_Name): New function
19866 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19868 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19870 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19873 * a-stwima.adb (To_Set): Add extra check when N = 0.
19875 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19877 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19879 * s-parame-mingw.adb, s-parame-linux.adb,
19880 s-parame-solaris.adb: Removed, replaced by s-parame.adb
19882 * s-parame-vxworks.ads: Fix typo.
19884 * s-parame-vxworks.adb: New file.
19886 * s-parame.adb: Version now used by all native platforms.
19887 (Default_Stack_Size): Use 2 megs for default stack size and use
19888 __gl_default_stack_size when available.
19889 (Minimum_Stack_Size): Use 12K.
19891 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19892 (Create_Task): Refine implementation taking advantage of the XP stack
19893 size support. On XP, we now create the thread using the flag
19894 STACK_SIZE_PARAM_IS_A_RESERVATION.
19896 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19898 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19899 XP and 0 on older Windows versions.
19901 * interfac-vms.ads: Removed, no longer used.
19903 2006-02-13 Matthew Heaney <heaney@adacore.com>
19905 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19906 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19907 a-cohase.adb: All explicit raise statements now include an exception
19910 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19911 (Update_Element_Preserving_Key): renamed op to just Update_Element.
19912 Explicit raise statements now include an exception message
19914 * a-cihase.ads, a-cohase.ads: Removed comment.
19916 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19917 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19918 a-szbzha.adb, a-szfzha.ads: New files.
19920 2006-02-13 Matthew Heaney <heaney@adacore.com>
19922 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19925 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19927 * lang.opt: Wvariadic-macros: New option.
19928 Wold-style-definition: Likewise.
19929 Wmissing-format-attribute: Likewise.
19931 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19932 -Wold-style-definition and -Wmissing-format-attribute.
19934 2006-02-13 Robert Dewar <dewar@adacore.com>
19936 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19938 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19940 2006-02-13 Nicolas Roche <roche@adacore.com>
19942 * a-envvar.adb, a-envvar.ads: New files.
19944 2006-02-13 Douglas Rupp <rupp@adacore.com>
19946 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19948 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19950 2006-02-13 Pat Rogers <rogers@adacore.com>
19952 * a-rttiev.adb, a-rttiev.ads: New files.
19954 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19956 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19957 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
19959 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19961 2006-02-13 Robert Dewar <dewar@adacore.com>
19963 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
19964 sem_case.adb: Minor code reorganization (not Present should be No)
19966 2006-02-13 Geert Bosch <bosch@adacore.com>
19967 Gary Dismukes <dismukes@adacore.com>
19969 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19970 0, since the lower bound of the actual string may be greater than one.
19973 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19974 layout is requested.
19976 2006-02-13 Vincent Celier <celier@adacore.com>
19978 * back_end.adb (Scan_Compiler_Arguments): Check if
19979 Search_Directory_Present is True and, if it is, add the argument in
19980 the source search directory path.
19982 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19983 Search_Directory_Present to True.
19985 2006-02-13 Joel Brobecker <brobecke@adacore.com>
19987 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19988 volatile, to tell the compiler to preserve this variable at any level
19990 (Gen_Versions_Ada): Temporarily work around codegen bug.
19992 2006-02-13 Vincent Celier <celier@adacore.com>
19994 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19995 gcc to link with option -shared-libgcc.
19996 (Gnatlink): Remove duplicate switches -shared-libgcc
19998 2006-02-13 Robert Dewar <dewar@adacore.com>
20000 * gnatvsn.ads (Current_Year): New constant, used to easily update
20001 copyright on all GNAT tools.
20003 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20006 2006-02-13 Robert Dewar <dewar@adacore.com>
20008 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20009 after hyphen (small aesthetic change useful for a range of numbers
20011 Suppress range checks for a couple of assignments which otherwise
20012 cause validity checks with validity checking turned on.
20014 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20015 Improvement in error message for object.
20016 (Rep_Item_Too_Late): Remove '!' in warning message.
20018 2006-02-13 Robert Dewar <dewar@adacore.com>
20019 Eric Botcazou <ebotcazou@adacore.com>
20021 * err_vars.ads: Suppress range checks for a couple of assignments
20022 which otherwise cause validity checks with validity checking turned on.
20025 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20026 Make message unconditional if it is a warning.
20027 (Error_Msg_NEL): Always output warning messages.
20028 Suppress range checks for a couple of assignments which otherwise
20029 cause validity checks with validity checking turned on.
20031 * errout.ads (Message Insertion Characters): Document that '!' is
20032 implied by '?' in error messages.
20034 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20035 (Gnat1drv): Use a goto to end of main subprogram instead of
20036 Exit_Program (E_Success) so that finalization can occur normally.
20038 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20040 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20043 2006-02-13 Vincent Celier <celier@adacore.com>
20045 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20046 Unchecked_Conversion functions.
20047 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20048 when OpenVMS returns False.
20050 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20051 a-dirval.adb (OpenVMS): New Boolean function
20053 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20054 Thomas Quinot <quinot@adacore.com>
20056 * checks.adb (Build_Discriminant_Checks): If the expression being
20057 checks is an aggregate retrieve the values of its discriminants to
20058 generate the check, rather than creating a temporary and a reference
20060 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20061 (Install_Null_Excluding_Check): Ditto
20062 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20063 not for the renamed object, so that the actual itype is attached in the
20066 2006-02-13 Robert Dewar <dewar@adacore.com>
20067 Vincent Celier <celier@adacore.com>
20069 * debug.adb: Eliminate numeric switches for binder/gnatmake
20071 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20072 switches for the compiler.
20073 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20074 (Scan_Make_Switches): When failing with an illegal switch, output an
20075 error message with the full switch.
20076 Eliminate numeric switches for binder/gnatmake
20078 * switch.ads, switch.adb (Bad_Switch): New procedure
20080 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20081 Remove 0-9 as debug flag character possibilities
20082 -d is now controlling the primary stack size when its value is a
20083 positive. Also add checks against invalid values, and support for kb,
20084 mb. Ditto for -D switch.
20086 2006-02-13 Robert Dewar <dewar@adacore.com>
20087 Serguei Rybin <rybin@adacore.com>
20089 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20090 save/restore routines.
20091 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20092 were not always properly handled previously.
20093 Since we are changing the tree format anyway, also get rid of the
20094 junk obsolete Immediate_Errors flag.
20095 (Tree_Read): Change the way of reading Tree_Version_String - now we
20096 read the version string from the tree even if its length is not the
20097 same as the length of the version string computed from Gnatvsn.
20098 (Search_Directory_Present): New Boolean flag for the compiler.
20099 Define Tree_Version_String as a dynamic string.
20100 (Default_Stack_Size): new variable, used to handle switch -d.
20103 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20104 only for main unit.
20105 Add pragma Ada_2005 (synonym for Ada_05)
20106 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20107 were not always properly handled previously.
20109 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20110 explicit Ada_95 to Ada_2005.
20112 2006-02-13 Javier Miranda <miranda@adacore.com>
20113 Robert Dewar <dewar@adacore.com>
20114 Ed Schonberg <schonberg@adacore.com>
20116 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20117 against errors in the source program: a private types for which the
20118 corresponding full type declaration is missing and pragma CPP_Virtual
20120 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20121 (Is_Known_Null): New flag
20122 (Has_Pragma_Pure): New flag
20123 (No_Return): Present in all entities, set only for procedures
20124 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20125 explicitly declared limited.
20126 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20127 entities. Only used for component marked Is_Tag. If present it stores
20128 the Offset_To_Top function used to provide this value in tagged types
20129 whose ancestor has discriminants.
20131 * exp_ch2.adb: Update status of new Is_Known_Null flag
20133 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20135 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20136 the categorization sense if Is_Pure was set by pragma Pure_Function.
20138 2006-02-13 Quentin Ochem <ochem@adacore.com>
20139 Olivier Hainque <hainque@adacore.com>
20141 * bindusg.adb: Updated documentation for -d and -D switches.
20143 * raise.h (__gnat_set_globals): added new parameter for
20144 Default_Stack_Size.
20146 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20147 (__gnat_handle_vms_condition): Adjust context before raise.
20148 (__gnat_install_handler): Restore the global vector setup for GCC
20149 versions before 3.4, as the frame based circtuitry is not available
20151 (__gnat_set_globals): added a parameter default_stack_size
20152 (__gl_default_stack_size): new variable.
20154 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20156 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20157 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20158 does not exist in the Ada RM.
20159 (Compatible_Int_Bounds): Determine whether two integer range bounds
20160 are of equal length and have the same start and end values.
20161 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20162 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20163 aggregate when it is part of an object declaration.
20164 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20165 constrains discriminants of its parent, add explicitly the discriminant
20166 constraints of the ancestor by retrieving them from the
20167 stored_constraint of the parent.
20169 2006-02-13 Robert Dewar <dewar@adacore.com>
20171 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20172 attribute Mechanism_Code is applied to renamed subprogram, modify
20173 prefix to point to base subprogram.
20174 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20176 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20177 renamed subprograms so that the front-end must replace the prefix
20180 2006-02-13 Javier Miranda <miranda@adacore.com>
20181 Gary Dismukes <dismukes@adacore.com>
20183 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20184 availability of RE_Interface_Tag.
20185 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20186 (Freeze_Record_Type): Do not generate the tables associated with
20187 timed and conditional dispatching calls through synchronized
20188 interfaces if compiling under No_Dispatching_Calls restriction.
20189 When compiling for Ada 2005, for a nonabstract
20190 type with a null extension, call Make_Controlling_Function_Wrappers
20191 and insert the wrapper function declarations and bodies (the latter
20192 being appended as freeze actions).
20193 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20194 predefined primitives associated with timed and conditional
20195 dispatching calls through synchronized interfaces if we are
20196 compiling under No_Dispatching_Calls.
20197 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20198 service is available before generating a call.
20199 (Make_Controlling_Function_Wrappers): New procedure.
20200 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20201 access-to-limited-interfaces because they can be used to reference
20202 tasks that implement such limited interface.
20203 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20204 procedure spec and body of the Offset_To_Top function that is generated
20205 when the parent of a type with discriminants has secondary dispatch
20207 (Init_Secondary_Tags): Handle the case in which the parent of the type
20208 containing secondary dispatch tables has discriminants to generate the
20209 correct arguments to call Set_Offset_To_Top.
20210 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20212 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20213 Add Wide_[Wide_]Expanded_Name.
20214 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20215 the same functionality of Get_Prim_Op_Address but applied to predefined
20216 primitive operations because the pointers to the predefined primitives
20217 are now saved in a separate table.
20218 (Parent_Size): Modified to get access to the separate table of primitive
20219 operations or the parent type.
20220 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20221 functionality of Set_Prim_Op_Address but applied to predefined primitive
20223 (Set_Signature): New subprogram used to store the signature of a DT.
20224 (Displace): If the Offset_To_Top value is not static then call the
20225 function generated by the expander to get such value; otherwise use
20226 the value stored in the table of interfaces.
20227 (Offset_To_Top): The type of the actual has been changed to Address to
20228 give the correct support to tagged types with discriminants. In this
20229 case this value is stored just immediately after the tag field.
20230 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20231 offset_to_top value is static and hence pass this value to the run-time
20232 to store it in the table of interfaces, or else if this value is dynamic
20233 and then pass to the run-time the address of a function that is
20234 generated by the expander to provide this value for each object of the
20237 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20238 (Default_Prim_Op_Count): New entity
20239 (Get_Predefined_Prim_Op_Address): New entity
20240 (Set_Predefined_Prim_Op_Address): New entity
20241 (RE_Set_Signature): New entity
20243 2006-02-13 Thomas Quinot <quinot@adacore.com>
20244 Ed Schonberg <schonberg@adacore.com>
20246 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20247 Make_Adjust_Call done for a newly-allocated object.
20249 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20250 in a subprogram are wrapped in a cleanup block, indicate that the
20251 subprogram contains an inner block with an exception handler.
20252 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20253 Adjust call is for a newly-allocated object. In that case we must not
20254 assume that the finalization list chain pointers are correct (since they
20255 come from a bit-for-bit copy of the original object's pointers) so if
20256 the attach level would otherwise be zero (no change), we set it to 4
20257 instead to cause the pointers to be reset to null.
20259 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20260 reset chain pointers to null.
20262 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20264 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20265 string, and the context requires a loop for the assignment (e.g.
20266 because the left-hand side is packed), generate a unique name for the
20267 temporary that holds the string, to prevent spurious name clashes.
20269 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20270 Javier Miranda <miranda@adacore.com>
20271 Robert Dewar <dewar@adacore.com>
20272 Gary Dismukes <dismukes@adacore.com>
20274 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20275 return unconstrained arrays.
20277 (Expand_Call): An indirect call through an access parameter of a
20278 protected operation is not a protected call.
20279 Add circuit to raise CE in Ada 2005 mode following call
20280 to Raise_Exception.
20281 (Register_DT_Entry): Do nothing if
20282 the run-time does not give support to abstract interfaces.
20283 (Freeze_Subprogram): In case of dispatching operations, do not generate
20284 code to register the operation in the dispatch table if the source
20285 is compiled with No_Dispatching_Calls.
20286 (Register_Predefined_DT_Entry): Generate code that calls the new
20287 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20288 Set_Prim_Op_Address.
20290 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20291 on array assignments if the right-hand side is a function call that has
20292 been inlined. Check is performed on the assignment in the block.
20293 (Process_Bounds): If bounds and range are overloaded, apply preference
20294 rule for root operations to disambiguate, and diagnose true ambiguity.
20295 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20296 a tag-indeterminate right-hand side even when Expander_Active is True.
20297 Needed to ensure that dispatching calls to T'Input are allowed and
20298 get the tag of the target class-wide object.
20300 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20301 an inherited primitive operation that already overrides several
20302 abstract interface primitives. For transitivity, the new entity must
20303 also override all the abstract interface primitives covered by the
20304 inherited overriden primitive.
20305 Emit warning if new entity differs from homograph in same scope only in
20306 that one has an access parameter and the other one has a parameter of
20307 a general access type with the same designated type, at the same
20308 position in the signature.
20309 (Make_Inequality_Operator): Use source locations of parameters and
20310 subtype marks from corresponding equality operator when creating the
20311 tree structure for the implicit declaration of "/=". This does not
20312 change anything in behaviour except that the decoration of the
20313 components of the subtree created for "/=" allows ASIS to get the
20314 string images of the corresponding identifiers.
20315 (Analyze_Return_Statement): Remove '!' in warning message.
20316 (Check_Statement_Sequence): Likewise.
20317 (Analyze_Subprogram_Body): For an access parameter whose designated type
20318 is an incomplete type imported through a limited_with clause, use the
20319 type of the corresponding formal in the body.
20320 (Check_Returns): Implicit return in No_Return procedure now raises
20321 Program_Error with a compile time warning, instead of beging illegal.
20322 (Has_Single_Return): Function returning unconstrained type cannot be
20323 inlined if expression in unique return statement is not an identifier.
20324 (Build_Body_To_Inline): It is possible to inline a function call that
20325 returns an unconstrained type if all return statements in the function
20326 return the same local variable. Subsidiary procedure Has_Single_Return
20327 verifies that the body conforms to this restriction.
20329 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20330 same type, and one of them is of an anonymous access type, convert
20331 the other operand to it, so that this is a valid binary operation for
20333 (Resolve_Type_Conversion): Handle subtypes of protected types and
20334 task types when accessing to the corresponding record type.
20335 (Resolve_Allocator): Add '\' in 2-line warning message.
20336 Remove '!' in warning message.
20337 (Resolve_Call): Add '\' in 2-line warning message.
20338 (Valid_Conversion): Likewise.
20339 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20340 resulting type may be an access type with an implicit dereference.
20341 Obtain the proper component from the designated type.
20342 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20343 given by an expanded name with prefix Standard, when the operands are
20344 of an anonymous access type.
20345 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20346 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20347 prefix of the expression is not of an incomplete type. Allows full
20348 diagnoses of all semantic errors.
20349 (Resolve_Actuals): If the actual is an allocator whose directly
20350 designated type is a class-wide interface we build an anonymous
20351 access type to use it as the type of the allocator. Later, when
20352 the subprogram call is expanded, if the interface has a secondary
20353 dispatch table the expander will add a type conversion to force
20354 the displacement of the pointer.
20355 (Resolve_Call): If a function that returns an unconstrained type is
20356 marked Inlined_Always and inlined, the call will be inlined and does
20357 not require the creation of a transient scope.
20358 (Check_Direct_Boolean_Op): Removed
20359 (Resolve_Comparison_Op): Remove call to above
20360 (Resolve_Equality_Op): Remove call to above
20361 (Resolve_Logical_Op): Inline above, since this is only call.
20362 (Valid_Conversion): Handle properly conversions between arrays of
20363 convertible anonymous access types.
20366 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20367 the literal in an unchecked conversion, because GCC 4.x needs a static
20368 value for a string bound.
20370 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20371 Hristian Kirtchev <kirtchev@adacore.com>
20373 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20374 components of the corresponding record, take into account component
20375 definitions that are access definitions.
20376 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20377 procedure is not considered a dispatching call and will be expanded
20380 2006-02-13 Javier Miranda <miranda@adacore.com>
20382 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20383 controlling argument of the dispatching call is an abstract interface
20384 class-wide type then we use it directly.
20385 Check No_Dispatching_Calls restriction.
20386 (Default_Prim_Op_Position): Remove the code that looks for the last
20387 entity in the list of aliased subprograms. This code was wrong in
20389 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20390 when the source is compiled with the No_Dispatching_Calls restriction.
20391 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20392 if we are compiling with restriction No_Dispatching_Calls.
20393 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20394 subprograms if we are compiling under No_Dispatching_Calls restriction.
20395 (Make_DT): Generate a dispatch table with a single dummy entry if
20396 we are compiling with the No_Dispatching_Calls restriction. In
20397 addition, in this case we don't generate code that calls to the
20398 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20399 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20400 of this subprogram if compiling with the No_Dispatching_Calls
20402 (Expand_Type_Conversion): Instead of using the actual parameter,
20403 the argument passed as parameter to the conversion function was
20404 erroneously referenced by the expander.
20405 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20406 Set_Predefined_Primitive_Op_Address and Set_Signature.
20407 (Expand_Dispatching_Call): Generate call to
20408 Get_Predefined_Prim_Op_Address for predefined primitives.
20409 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20410 predefined primitives.
20411 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20412 primitives we reserve one dummy entry to ensure that the tag does not
20413 point to some memory that is associated with some other object. In
20414 addition, remove all the old code that generated the assignments
20415 associated with the signature of the dispatch table and replace them
20416 by a call to the new subprogram Set_Signature.
20417 (Set_All_DT_Position): Change the algorithm because now we have a
20418 separate dispatch table associated with predefined primitive operations.
20419 (Expand_Interface_Conversion): In case of non-static offset_to_top
20420 add explicit dereference to get access to the object after the call
20421 to displace the pointer to the object.
20422 (Expand_Interface_Thunk): Modify the generation of the actual used
20423 in the calls to the run-time function Offset_To_Top to fulfil its
20425 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20427 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20429 * exp_dist.adb (Copy_Specification): For access parameters, copy
20430 Null_Exclusion flag, which will have been set for stream subprograms
20433 2006-02-13 Pascal Obry <obry@adacore.com>
20435 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20436 previous implementation was using the C runtime spawnve routine but
20437 the corresponding wait was using directly the Win32 API. This was
20438 causing some times a lock when waiting for an event using
20439 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20440 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20441 API fixes this problem.
20443 2006-02-13 Robert Dewar <dewar@adacore.com>
20445 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20448 2006-02-13 Thomas Quinot <quinot@adacore.com>
20450 * exp_pakd.ads: Fix typos in comments.
20452 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20453 array reference that is an explicit dereference, mark the converted
20454 (packed) array reference as analyzed to prevent a forthcoming
20455 reanalysis from resetting its type to the original (non-packed) array
20458 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20459 Javier Miranda <miranda@adacore.com>
20460 Eric Botcazou <ebotcazou@adacore.com>
20462 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20463 Is_Predefined_Primitive_Operation): When
20464 searching for the predefined equality operator, verify that operands
20465 have the same type.
20466 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20467 for the last entity in the list of aliased subprograms. This code
20468 was wrong in case of renamings.
20469 (Set_Renamed_Subprogram): New procedure
20470 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20471 Exp_Type constant computed when entering this subprogram.
20472 (Known_Null): New function
20473 (OK_To_Do_Constant_Replacement): New function
20474 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20475 (Side_Effect_Free): An attribute reference 'Input is not free of
20476 side effect, unlike other attributes that are functions. (from code
20478 (Remove_Side_Effects): Expressions that involve packed arrays or records
20479 are copied at the point of reference, and therefore must be marked as
20480 renamings of objects.
20481 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20482 not a dispatching operation.
20485 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20486 elementary types in all cases.
20488 2006-02-13 Javier Miranda <miranda@adacore.com>
20490 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20491 task types when accessing to the corresponding record type.
20492 Remove '!' in warning message.
20494 2006-02-13 Olivier Hainque <hainque@adacore.com>
20496 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20497 to avoid useless and space inefficient overalignments on targets where
20498 Max_Alignment is larger than 16.
20500 2006-02-13 Pascal Obry <obry@adacore.com>
20502 * g-catiio.adb (Sec_Number): New type used to compute the number of
20503 seconds since 1-1-1970.
20504 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20505 negative numbers (years, months...) it is better to have a Natural here.
20507 (Image) [Number]: Change parameter from Long_Integer to Number.
20508 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20509 overflow for dates past year 2038.
20511 2006-02-13 Matthew Heaney <heaney@adacore.com>
20513 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20516 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20518 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20520 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20521 finalization can occur normally.
20523 2006-02-13 Vincent Celier <celier@adacore.com>
20525 * gnatcmd.adb (Rules_Switches): New table
20526 (Add_To_Rules_Switches): New procedure
20527 (GNATCmd): For command CHECK, put all options following "-rules" in the
20528 Rules_Switches table. Append these -rules switches after the -cargs
20531 2006-02-13 Robert Dewar <dewar@adacore.com>
20533 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20534 These two cases were generating incorrect output, and if this unit
20535 was built with checks on, generated a discriminant mismatch constraint
20538 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20539 Robert Dewar <dewar@adacore.com>
20541 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20542 view is an array type, indicate the component type as well, for
20543 navigation purposes.
20544 (Generate_Reference): Don't consider array ref on LHS to be a case
20545 of violating pragma Unreferenced.
20546 Do not give Ada 2005 warning except on real reference.
20548 2006-02-13 Vincent Celier <celier@adacore.com>
20550 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20551 main source, add switch -mdebug-main=_ada_ so that the executable can
20552 be debugged by the standard VMS debugger.
20553 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20554 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20555 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20556 of the last source, as the binding and linking phases are never
20558 Set all executable obsolete when rebuilding a library.
20560 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20563 2006-02-13 Javier Miranda <miranda@adacore.com>
20566 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20567 code to improve the error message reported when the program has
20568 declarations of abstract interface types and it is not compiled with
20569 the -gnat05 switch.
20570 (P_Access_Definition): Reorganize the code to improve the error
20571 message reported when the new Ada 2005 syntax for anonymous
20572 access types is used and the program is not compiled with the
20575 2006-02-13 Robert Dewar <dewar@adacore.com>
20577 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20578 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20581 2006-02-13 Javier Miranda <miranda@adacore.com>
20583 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20584 against source containing syntax errors.
20586 2006-02-13 Vincent Celier <celier@adacore.com>
20588 * prj.adb (Reset): Initialize the first element of table Namings with
20589 the standard naming data.
20591 2006-02-13 Vincent Celier <celier@adacore.com>
20593 * prj.ads (Error_Warning): New enumeration type
20595 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20596 unknown, use the location of the project to report the error.
20597 (When_No_Sources): New global variable
20598 (Report_No_Ada_Sources): New procedure
20599 (Check): New parameter When_No_Sources. Set value of global variable
20601 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20602 (Get_Sources_From_File): Ditto
20603 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20606 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20607 Call Prj.Proc.Process with parameter When_No_Sources.
20609 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20610 Call Recursive_Check with parameter When_No_Sources.
20611 (Recursive_Check): New parameter When_No_Sources. Call itself and
20612 Prj.Nmsc.Check with parameter When_No_Sources.
20613 (Process): New parameter When_No_Sources. Call Check with parameter
20615 (Copy_Package_Declarations): New procedure to copy renamed parameters
20616 and setting the location of the declared attributes to the location
20617 of the renamed package.
20618 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20621 2006-02-13 Vincent Celier <celier@adacore.com>
20623 * prj-makr.adb (Make): Preserve the comments from the original project
20625 When removing nodes (attributes Source_Dirs, Source_Files,
20626 Source_List_File and package Naming), save the comments and attach the
20627 saved comments to the newly created nodes.
20628 Do not add a with clause for the naming package if one already exists.
20630 2006-02-13 Javier Miranda <miranda@adacore.com>
20631 Gary Dismukes <dismukes@adacore.com>
20632 Robert Dewar <dewar@adacore.com>
20634 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20636 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20637 aliased entities to look for the overriden abstract interface
20639 (Is_Interface_Subprogram): Complete documentation.
20640 (Check_Dispatching_Operation): Do not generate code to register the
20641 operation in the dispatch table if the source is compiled with
20642 restriction No_Dispatching_Calls.
20643 (Override_Dispatching_Operation): Check for illegal attempt to override
20644 No_Return procedure with procedure that is not No_Return
20645 (Check_Dispatching_Call): Suppress the check for an abstract operation
20646 when the original node of an actual is a tag-indeterminate attribute
20647 call, since the attribute, which must be 'Input, can never be abstract.
20648 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20649 call to the Input attribute (even when rewritten).
20650 (Propagate_Tag): Augment comment to indicate the possibility of a call
20651 to an Input attribute.
20653 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20654 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20656 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20657 No_Wide_Characters is no longer partition-wide
20658 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20661 2006-02-13 Douglas Rupp <rupp@adacore.com>
20663 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20665 2006-02-13 Javier Miranda <miranda@adacore.com>
20667 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20668 handles default-initialized components to keep separate the management
20669 of this feature but also avoid the unrequired resolution and
20670 expansion of components that do not have partially initialized
20672 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20673 (Check_Bounds): Likewise.
20674 (Check_Length): Likewise.
20676 2006-02-13 Javier Miranda <miranda@adacore.com>
20677 Ed Schonberg <schonberg@adacore.com>
20679 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20680 abstract interface type call analyze_and_resolve to expand the type
20681 conversion into the corresponding displacement of the
20682 reference to the base of the object.
20683 (Eval_Attribute, case Width): For systems where IEEE extended precision
20684 is supported, the maximum exponent occupies 4 decimal digits.
20685 (Accessibility_Message): Add '\' in 2-line warning message.
20686 (Resolve_Attribute): Likewise.
20687 (case Attribute_Access): Significantly revise checks
20688 for illegal access-to-subprogram Access attributes to properly enforce
20689 the rules of 3.10.2(32/2).
20690 Diagnose use of current instance with an illegal attribute.
20692 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20694 (Enclosing_Generic_Unit): New function to return a node's innermost
20695 enclosing generic declaration node.
20696 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20697 (Type_Access_Level): The accessibility level of anonymous acccess types
20698 associated with discriminants is that of the current instance of the
20699 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20700 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20701 (Kill_Current_Values_For_Entity): New function
20702 (Enter_Name): Change formal type to Entity_Id
20704 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20705 Ed Schonberg <schonberg@adacore.com>
20706 Gary Dismukes <dismukes@adacore.com>
20708 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20709 Analyze_Compilation_Unit.
20710 Detect and warn on redundant with clauses detected in a package spec
20711 and/or body when -gnatwr is used.
20712 (Analyze_Context): Analyze config pragmas before other items
20713 (Install_Context_Items): Don't analyze config pragmas here
20714 (Install_Limited_Withed_Unit): Set limited entity of package in
20715 with_clause so that cross-reference information or warning messages on
20716 unused packages can be properly generated
20717 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20718 has Error_Posted set. Prevent infinite loops in illegal programs.
20719 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20720 to the point of the error test requiring the current unit to be private.
20721 This ensures that private with clauses are not exempted from the basic
20722 checking for being a descendant of the same library unit parent as a
20723 withed private descendant unit.
20724 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20725 handle private with clauses properly, as well as to account for cases
20726 where the withed unit is a public descendant of a private ancestor
20727 (in which case the current unit must be a descendant of the private
20728 ancestor's parent). The spec comments were updated accordingly. Also,
20729 the old error message in this subprogram was replaced with error
20730 messages that mirror the errors tested and reported by
20731 Check_Private_Child_Unit.
20732 Parameter and variable names improved for readability.
20733 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20734 private as the precondition for calling
20735 Check_Private_Limited_Withed_Unit since that subprogram has been
20736 revised to test public units as well as private units.
20738 2006-02-13 Thomas Quinot <quinot@adacore.com>
20739 Robert Dewar <dewar@adacore.com>
20740 Ed Schonberg <schonberg@adacore.com>
20741 Javier Miranda <miranda@adacore.com>
20743 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20744 that Scope_Stack.First = 1.
20745 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20746 were not always properly handled previously.
20747 (Formal_Entity): Complete rewrite, to handle properly some complex case
20748 with multiple levels of parametrization by formal packages.
20749 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20750 to the corresponding derived type declaration for proper semantics.
20752 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20753 (Check_Component): Enforce restriction on components of
20754 unchecked_unions: a component in a variant cannot contain tasks or
20756 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20758 Add pragma Ada_2005 (synonym for Ada_05)
20759 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20760 were not always properly handled previously.
20761 Document that pragma Propagate_Exceptions has no effect
20762 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20763 (Set_Convention_From_Pragma): Check that if a convention is
20764 specified for a dispatching operation, then it must be
20765 consistent with the existing convention for the operation.
20766 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20767 longer required to specify an vtable-ptr component in the record. For
20768 compatibility reasons we leave the support for the previous definition.
20769 (Analyze_Pragma, case No_Return): Allow multiple arguments
20771 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20772 non-overrideen inherited operation with a controlling result as
20773 illegal only its implicit declaration comes from the derived type
20774 declaration of its result's type.
20775 (Check_Possible_Deferred_Completion): Relocate the object definition
20776 node of the subtype indication of a deferred constant completion rather
20777 than directly analyzing it. The analysis of the generated subtype will
20778 correctly decorate the GNAT tree.
20779 (Record_Type_Declaration): Check whether this is a declaration for a
20780 limited derived record before analyzing components.
20781 (Analyze_Component_Declaration): Diagnose record types not explicitly
20782 declared limited when a component has a limited type.
20783 (Build_Derived_Record_Type): Code reorganization to check if some of
20784 the inherited subprograms of a tagged type cover interface primitives.
20785 This check was missing in case of a full-type associated with a private
20787 (Constant_Redeclaration): Check that the subtypes of the partial and the
20788 full view of a constrained deferred constant statically match.
20789 (Mentions_T): A reference to the current type in an anonymous access
20790 component declaration must be an entity name.
20791 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20792 class_wide type to refer to full type, not to the incomplete one.
20793 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20794 available. Required to give support to the certified run-time.
20795 (Analyze_Component_Declaration): In case of anonymous access components
20796 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20797 (Process_Discriminants): For an access discriminant, use the
20798 discriminant specification as the associated_node_for_itype, to
20799 simplify accessibility checks.
20801 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20802 Javier Miranda <miranda@adacore.com>
20804 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20805 abstract interpretations on an operator, remove interpretations that
20806 yield Address or a type derived from it, if one of the operands is an
20808 (Try_Object_Operation.Try_Primitive_Operation,
20809 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20810 location when creating the new reference to a primitive or class-wide
20811 operation as a part of rewriting a subprogram call.
20812 (Try_Primitive_Operations): If context requires a function, collect all
20813 interpretations after the first match, because there may be primitive
20814 operations of the same type with the same profile and different return
20815 types. From code reading.
20816 (Try_Primitive_Operation): Use the node kind to choose the proper
20817 operation when a function and a procedure have the same parameter
20819 (Complete_Object_Operation): If formal is an access parameter and prefix
20820 is an object, rewrite as an Access reference, to match signature of
20821 primitive operation.
20822 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20823 by an expanded name with prefix Standard, when the operands are of an
20824 anonymous access type.
20825 (Remove_Abstract_Operations): If the operation is abstract because it is
20826 inherited by a user-defined type derived from Address, remove it as
20827 well from the set of candidate interpretations of an overloaded node.
20828 (Analyze_Membership_Op): Membership test not applicable to cpp-class
20831 2006-02-13 Bob Duff <duff@adacore.com>
20833 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20834 redundant use clauses.
20835 In particular, if the scope of two use clauses overlaps, but one is not
20836 entirely included in the other, we should not warn. This can happen
20837 with nested packages.
20838 (Analyze_Subprogram_Renaming): Protect the compiler against previously
20839 reported errors. The bug was reported when the compiler was built
20840 with assertions enabled.
20841 (Find_Type): If the node is a 'Class reference and the prefix is a
20842 synchronized type without a corresponding record, return the type
20845 2006-02-13 Javier Miranda <miranda@adacore.com>
20847 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20848 if this is the full-declaration associated with a private declaration
20849 that implement interfaces, then the private type declaration must be
20851 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20852 as aliased. The use of the 'access attribute is not available for such
20853 object (for this purpose the object should be explicitly marked as
20854 aliased, but being an anonymous type this is not possible).
20856 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20857 Robert Dewar <dewar@adacore.com>
20859 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20860 compilation unit is an elaboration scope.
20861 (Add_Task_Proc): Add '\' in 2-line warning message.
20862 (Activate_All_Desirable): Deal with case of unit with'ed by parent
20864 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20865 Javier Miranda <miranda@adacore.com>
20867 * sem_type.adb (Write_Overloads): Improve display of candidate
20869 (Add_One_Interp): Do not add to the list of interpretations aliased
20870 entities corresponding with an abstract interface type that is an
20871 immediate ancestor of a tagged type; otherwise we have a dummy
20872 conflict between this entity and the aliased entity.
20873 (Disambiguate): The predefined equality on universal_access is not
20874 usable if there is a user-defined equality with the proper signature,
20875 declared in the same declarative part as the designated type.
20876 (Find_Unique_Type): The universal_access equality operator defined under
20877 AI-230 does not cover pool specific access types.
20878 (Covers): If one of the types is a generic actual subtype, check whether
20879 it matches the partial view of the other type.
20881 2006-02-13 Thomas Quinot <quinot@adacore.com>
20883 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20884 line. This is necessary to allow In_Extended_Main_Unit to provide
20885 correct results for itypes while writing out expanded source.
20886 (Close_File): No need to update the source_index_table here since it's
20887 now done for each line.
20889 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20890 Robert Dewar <dewar@adacore.com>
20892 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20893 preserve the source unit where the itype is declared, and prevent a
20895 (Note_Implicit_Run_Time_Call): New procedure
20896 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20899 * sprint.ads: Document use of $ for implicit run time routine call
20901 2006-02-13 Quentin Ochem <ochem@adacore.com>
20903 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20906 2006-02-13 Bob Duff <duff@adacore.com>
20908 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20909 Scan_Unsigned, so we do not scan leading blanks and sign twice.
20910 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20911 raise Constraint_Error.
20913 * s-vallli.adb (Scan_Long_Long_Integer): Call
20914 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20915 do not scan leading blanks and sign twice.
20916 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20917 raise Constraint_Error.
20919 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20920 Scan_Long_Long_Unsigned): Split out most of the processing from
20921 Scan_Long_Long_Unsigned out into
20922 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20923 This prevents scanning leading blanks and sign twice.
20924 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20927 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20928 out most of the processing from Scan_Unsigned out into
20929 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20930 This prevents scanning leading blanks and sign twice.
20932 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20933 use with Modular'Value attribute.
20934 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20937 2006-02-13 Robert Dewar <dewar@adacore.com>
20939 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20941 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20943 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20944 (PPC VxWorks): Likewise.
20945 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20946 (forced_callee): Make non-inlinable and non-pure.
20947 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20949 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20950 Ben Brosgol <brosgol@adacore.com>
20951 Robert Dewar <dewar@adacore.com>
20953 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20955 Document that gnatbind -M option is for cross environments only.
20956 Added description of using gnatmem to trace gnat rtl allocs and deallocs
20957 Add note on use of $ to label implicit run time calls
20958 Add documentation for -gnatyI (check mode IN)
20959 Updated chapter on compatibility with HP Ada
20960 VMS-oriented edits.
20961 Ran spell and corrected errors
20962 Add documentation for gnatbind -d and rework documentation of -D
20964 Add subprogram/data elimination section.
20965 Minor editing of annex A.
20966 Add section for gnatcheck.
20967 Add documentation for restriction No_Dispatching_Calls
20968 Add documentation for pragma Ada_2005
20969 Remove mention of obsolete pragma Propagate_Exceptions
20970 Document that pragma Unreferenced can appear after DO in ACCEPT
20971 Clarify Pure_Function for library level units
20972 Mention Max/Min in connection with No_Implicit_Conditionals
20973 No_Wide_Characters restriction is no longer partition-wide
20974 Add a nice example for Universal_Literal_String attribute
20975 Document that pragma No_Return can take multiple arguments
20977 * ug_words: Added entry for gnatcheck
20979 * g-ctrl_c.ads (Install_Handler): Enhance comments
20981 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20983 * g-trasym.ads: Add documentation on how to do off line symbolic
20984 traceback computation.
20986 * s-fatgen.adb: Add comments for Unaligned_Valid
20988 * stand.ads: Fix typo in comment
20990 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20992 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20994 2006-02-06 Roger Sayle <roger@eyesopen.com>
20996 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20998 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21001 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21002 implementation that calls __main.
21004 2006-01-25 Peter O'Gorman <peter@pogma.com>
21007 * Makefile.in (GCC_LINK): Remove quotes.
21008 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21011 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21013 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21016 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21018 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21020 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21022 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21024 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21027 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21029 * Make-lang.in: Update dependencies
21031 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21033 * Make-lang.in: Add rule for ada/exp_sel.o
21035 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21037 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21039 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21041 * gnatvsn.ads (Library_Version): Bump to version 4.2
21042 (ASIS_Version_Number): Bumped.
21044 2005-12-09 Doug Rupp <rupp@adacore.com>
21046 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21047 Ada bind file prefix on VMS from b$ to b__.
21048 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21051 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21052 Targparm.OpenVMS_On_Target.
21053 (Object_Suffix): Initialize with target object suffix.
21054 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21056 * butil.adb: Change some Hostparm.OpenVMS checks to
21057 Targparm.OpenVMS_On_Target.
21059 * clean.adb: Change some Hostparm.OpenVMS checks to
21060 Targparm.OpenVMS_On_Target.
21061 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21062 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21063 Ada bind file prefix on VMS from b$ to b__.
21065 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21066 --GCC so that Get_Target_Parameters can find system.ads.
21067 (Gnatlink): Call Get_Target_Parameters in mainline.
21068 Initialize standard packages for Targparm.
21069 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21070 (Process_Args): Also Check for object files with target object
21072 (Make_Binder_File_Names): Create with target object extension.
21073 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21076 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21077 Targparm.OpenVMS_On_Target.
21078 ({declaration},Build_Library,Check_Library): Change Ada bind file
21079 prefix on VMS from b$ to b__.
21081 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21082 Targparm.OpenVMS_On_Target.
21083 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21086 * targext.c: New file.
21088 * Makefile.in: add support for vxworks653 builds
21089 (../../vxaddr2line): gnatlink with targext.o.
21090 (TOOLS_LIBS): Move targext.o to precede libgnat.
21091 (init.o, initialize.o): Minor clean up in dependencies.
21092 (GNATLINK_OBJS): Add targparm.o, snames.o
21093 Add rules fo building targext.o and linking it explicitly with all
21095 Also add targext.o to gnatlib.
21097 * Make-lang.in: Add rules for building targext.o and linking it in
21098 with gnat1 and gnatbind.
21099 Add entry for exp_sel.o.
21101 * osint.adb Change some Hostparm.OpenVMS checks to
21102 Targparm.OpenVMS_On_Target.
21103 (Object_File_Name): Use target object suffix.
21105 * osint.ads (Object_Suffix): Remove, no longer used.
21106 (Target_Object_Suffix): Initialize with target object suffix.
21108 * rident.ads: Add special exception to license.
21110 * targparm.adb (Get_Target_Parameters): Set the value of
21111 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21113 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21115 * targparm.ads: Add special exception to license.
21117 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21119 (Copy_File): Make sure from file is closed if error on to file
21120 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21122 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21123 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21125 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21126 target object suffix.
21128 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21129 Quentin Ochem <ochem@adacore.com>
21130 Florian Villoing <villoing@adacore.com>
21132 * a-taster.ads, a-taster.adb: New files.
21134 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21135 link to the version that does nothing. This way the task termination
21136 routine is not executed twice for the environment task when finishing
21137 because of an unhandled exception.
21139 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21140 handler because of an unhandled exception.
21142 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21143 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21145 * s-finimp.adb (initialization code): Modify the soft link for the
21146 finalization of the global list instead of Adafinal.
21148 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21149 non-tasking version of the soft link for task termination. We do
21150 nothing since if we are using the non-tasking version it
21151 means that the task termination functionality is not used.
21152 (Null_Finalize_Global_List): Add this null version for the procedure
21153 in charge of finalizing the global list for controlled objects.
21154 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21155 instead for handling run-time termination in a more flexible way.
21156 (Adafinal_NT): This new procedure will take care of finalizing the
21157 global list for controlled objects if needed, but no tasking
21160 * s-tarest.adb (Task_Lock): Do not try to lock again the
21161 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21162 some run-time operations.
21163 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21164 until all nested locks have been released.
21165 (Task_Wrapper): Call the fall-back task termination handler. It
21166 applies to all tasks but the environment task.
21167 (Finalize_Global_Tasks): Add the call for the task termination
21168 procedure for the environment task.
21169 (Task_Wrapper): suppress warnings around declaration of
21170 Secondary_Stack_Address.
21172 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21173 moved to the Common_ATCB record.
21174 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21175 Common_ATCB record.
21176 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21177 Common_ATCB record.
21179 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21180 Fall_Back_Handler, and Specific_Handler.
21182 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21183 defined in Ada.Task_Termination, to avoid circular dependencies.
21184 (Termination_Handler): Redefine this type here, alredy defined in
21185 Ada.Task_Termination, for avoiding circular dependencies.
21186 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21187 for storing task termination handlers. In addition,
21188 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21189 Common_ATCB because it is used by both the regular and the restricted
21191 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21192 Common_ATCB because it is used by both the regular and the restricted
21194 (Common_ATCB): Added a dynamic task analyzer field.
21196 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21197 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21198 (Task_Wrapper): Call the task termination handler. It applies to all
21199 tasks but the environment task.
21200 (Finalize_Global_Tasks): Call the task termination procedure for the
21201 environment task. The call to Finalize_Global_List is now performed
21202 using the soft links mechanism.
21203 (Task_Wrapper): added dynamic stack analysis.
21205 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21206 potentially blocking operations has been moved from
21207 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21208 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21209 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21210 this run-time check.
21212 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21213 of task termination procedure.
21214 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21215 link for the task termination procedure.
21217 * bindusg.adb: (Bindusg): Added documentation for -u option.
21219 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21220 (Get_Main_C): Add handling of dynamic stack analysis.
21221 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21223 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21224 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21225 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21227 * opt.ads: Added flags used by dynamic stack measurement.
21228 (Max_Line_Length): Remove (not used anymore)
21230 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21231 (Standart_Output): new subprogram
21232 (Set_Output): new subprogram
21233 (Put): now uses the value of Current_Out to know if the output has to be
21234 send to stderr or stdout.
21236 * s-stausa.ads: Complete implementation.
21238 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21240 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21241 list of Ada 05 files.
21242 (GNAT Library Units): Add AltiVec files.
21244 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21245 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21246 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21248 2005-12-09 Nicolas Setton <setton@adacore.com>
21250 * adaint.c (__gnat_locate_regular_file): Return immediately if
21251 file_name is empty.
21253 2005-12-09 Javier Miranda <miranda@adacore.com>
21254 Hristian Kirtchev <kirtchev@adacore.com>
21256 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21257 to the specification because the frontend generates code that uses this
21259 (Set_Interface_Table): Add missing assertion.
21260 Update documentation describing the run-time structure.
21261 (Displace): New subprogram that displaces the pointer to the object
21262 to reference one of its secondary dispatch tables.
21263 (IW_Membership): Modified to use the new table of interfaces.
21264 (Inherit_TSD): Modified to use the new table of interfaces.
21265 (Register_Interface_Tag): Use the additional formal to fill the
21266 contents of the new table of interfaces.
21267 (Set_Interface_Table): New subprogram that stores in the TSD the
21268 pointer to the table of interfaces.
21269 (Set_Offset_To_Top): Use the additional formal to save copy of
21270 the offset value in the table of interfaces.
21271 Update structure of GNAT Primary and Secondary dispatch table diagram.
21272 Add comment section on GNAT dispatch table prologue.
21273 (Offset_To_Signature): Update the constant value of the Signature field.
21274 (Dispatch_Table): Update comment on hidden fields in the prologue.
21275 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21276 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21277 the type of formal parameter T to Tag, introduce additional assertions.
21278 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21280 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21282 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21283 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21284 record component containing the tag of the secondary dispatch table we
21285 have to use the Offset_To_Top run-time function to get this information;
21286 otherwise if the pointer to the base of the object has been displace
21287 we get a wrong value if we use the 'position attribute.
21289 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21290 all the calls to Expand_Interface_Thunk.
21291 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21292 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21293 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21294 ensure that the interfaces implemented by the ancestors are placed
21295 at the header of the generated list.
21296 (Expand_Interface_Conversion): Handle the case in which the displacement
21297 associated with the interface conversion is not statically known. In
21298 this case we generate a call to the new run-time subprogram Displace.
21299 (Make_DT): Generate and fill the new table of interfaces.
21300 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21301 Get_Tagged_Kind and Set_Tagged_Kind.
21302 (Tagged_Kind): New function that determines the tagged kind of a type
21303 with respect to limitedness and concurrency and returns a reference to
21305 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21306 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21307 primary dispatch table for a type.
21308 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21309 secondary dispatch table respectively of a tagged type.
21311 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21312 (Expand_Interface_Conversion): New subprogram to indicate if the
21313 displacement of the type conversion is statically known.
21314 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21316 * rtsfind.ads (RE_Offset_To_Top): New entity
21317 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21318 accessible to users.
21319 (Re_Displace): New entity
21320 (RE_Interface_Data): New entity
21321 (RE_Set_Interface_Data): New_Entity
21322 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21323 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21324 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21325 RE_TK_Tagged, RE_TK_Task.
21327 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21328 Init_Secondary_Tags_Internal to allow its use with interface types and
21329 also to generate the code for the new additional actual required
21330 by Set_Offset_To_Top.
21331 (Build_Init_Statements): In case of components associated with abstract
21332 interface types there is no need to generate a call to its IP.
21333 (Freeze_Record_Type): Generate Select Specific Data tables only for
21335 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21336 the bodies and specifications of the predefined primitive operations
21337 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21338 for concurrent types.
21340 * exp_sel.ads, exp_sel.adb: New files.
21342 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21343 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21344 properly protected objects and attach handler in the case of the
21345 restricted profile.
21346 Move embeded package Select_Expansion_Utilities into a separate external
21348 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21349 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21350 (Build_K, Build_S_Assignment): New subprograms, part of the select
21351 expansion utilities.
21352 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21353 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21354 where the trigger is a dispatching procedure of a limited tagged type.
21356 2005-12-09 Olivier Hainque <hainque@adacore.com>
21358 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21359 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21360 about the use and expansion of SAVE_EXPRs in the various possible
21361 renaming handling cases.
21362 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21363 abusing DECL_FCONTEXT.
21365 2005-12-09 Matthew Heaney <heaney@adacore.com>
21367 * a-convec.adb (Merge): Added assertions to check whether vector params
21370 * a-coinve.adb (Merge): Added assertions to check whether vector params
21373 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21375 (Cursor'Read): raises PE
21377 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21378 to its default value.
21380 * a-cihama.adb: Manually check whether cursor's key and elem are
21383 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21384 (Merge): Assert that target and source lists are in order
21385 (Swap): Declare non-const temporaries, to pass to Splice
21387 * a-cdlili.ads: (Splice): Changed param name and param mode
21389 * a-cdlili.adb: (Splice): Changed param name and param mode
21390 (Merge): Assert that target and source lists are in order
21391 (Swap): Declare non-const temporaries, to pass to Splice
21393 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21394 (Write): declare Stream param as not null
21396 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21397 an exception message.
21399 2005-12-09 Thomas Quinot <quinot@adacore.com>
21400 Robert Dewar <dewar@adacore.com>
21402 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21403 which is the absolute maximum length we can support.
21405 * frontend.adb: For the processing of configuration pragma files,
21406 remove references to Opt.Max_Line_Length, which is not checked anymore.
21408 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21411 * scn.adb, scng.adb:
21412 Always check line length against the absolute supported maximum,
21413 Hostparm.Max_Line_Length.
21415 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21416 value for the maximum line length is Max_Line_Length (not
21417 Column_Number'Last).
21418 Minor error msg update
21419 (Set_Style_Check_Options): New interface returning error msg
21420 Minor code reorganization (processing for 'M' was out of alpha order)
21422 * switch-c.adb: New interface for Set_Style_Check_Options
21424 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21427 2005-12-09 Javier Miranda <miranda@adacore.com>
21429 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21430 with IP subprogram were only supported if there were limited types.
21432 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21433 records with IP subprogram were only supported if there were limited
21436 2005-12-09 Olivier Hainque <hainque@adacore.com>
21437 Eric Botcazou <ebotcazou@adacore.com>
21439 * trans.c (tree_transform, emit_check): Adjust calls to
21440 build_call_raise, passing the now expected GNAT_NODE argument.
21442 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21443 source line information than what the current global locus indicates
21446 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21447 field has overflowed.
21448 (build_call_raise): Add a GNAT_NODE argument to convey better source
21449 line information than what the current global locus indicates when
21451 (build_component_ref): Adjust call to build_call_raise.
21453 2005-12-09 Pascal Obry <obry@adacore.com>
21455 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21456 the iterator is quitting iteration on parent directory.
21458 2005-12-09 Javier Miranda <miranda@adacore.com>
21460 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21461 and the assignment to a class-wide object, before the assignment we
21462 generate a run-time check to ensure that the tag of the Target is
21463 covered by the tag of the source.
21465 2005-12-09 Robert Dewar <dewar@adacore.com>
21467 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21468 parameter in call to Image_Wide_Character.
21470 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21471 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21472 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21473 annoying FFFE/FFFF inconsistency.
21475 2005-12-09 Robert Dewar <dewar@adacore.com>
21476 Javier Miranda <miranda@adacore.com>
21477 Ed Schonberg <schonberg@adacore.com>
21479 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21480 of type conversion.
21481 (Find_Interface): New subprogram that given a tagged type and one of its
21482 component associated with the secondary table of an abstract interface
21483 type, return the entity associated with such abstract interface type.
21484 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21485 base type to create anonymous subtype, because entity may be a locally
21486 declared subtype or generic actual.
21487 (Find_Interface): New subprogram that given a tagged type and one of its
21488 component associated with the secondary table of an abstract interface
21489 type, return the entity associated with such abstract interface type.
21491 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21492 conversion cannot be handled at compile time. In this case we pass this
21493 information to the expander to generate the appropriate code.
21495 2005-12-09 Robert Dewar <dewar@adacore.com>
21496 Ed Schonberg <schonberg@adacore.com>
21497 Gary Dismukes <dismukes@adacore.com>
21498 Javier Miranda <miranda@adacore.com>
21499 Hristian Kirtchev <kirtchev@adacore.com>
21501 * einfo.adb (Itype_Printed): New flag
21502 (Is_Limited_Type): Derived types do not inherit limitedness from
21503 interface progenitors.
21504 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21507 * einfo.ads (Itype_Printed): New flag
21508 Move Is_Wrapper_Package to proper section
21509 Add missing Inline for Is_Volatile
21511 * output.ads, output.adb (Write_Erase_Char): New procedure
21512 (Save/Restore_Output_Buffer): New procedures
21513 (Save/Restore_Output_Buffer): New procedures
21515 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21516 Add missing support for anonymous access type
21517 (Write_Id): Insert calls to Write_Itype
21518 (Write_Itype): New procedure to output itypes
21520 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21521 use of "limited" in declaration.
21523 * sinfo.ads, sinfo.adb:
21524 Formal derived types can carry an explicit "limited" indication.
21526 * sem_ch3.adb: Add with and use of Targparm.
21527 (Create_Component): If Frontend_Layout_On_Target is True and the
21528 copied component does not have a known static Esize, then reset
21529 the size and positional fields of the new component.
21530 (Analyze_Component_Declaration): A limited component is
21531 legal within a protected type that implements an interface.
21532 (Collect_Interfaces): Do not add to the list the interfaces that
21533 are implemented by the ancestors.
21534 (Derived_Type_Declaration): If the parent of the full-view is an
21535 interface perform a transformation of the tree to ensure that it has
21536 the same parent than the partial-view. This simplifies the job of the
21537 expander in order to generate the correct object layout, and it is
21538 needed because the list of interfaces of the full-view can be given in
21540 (Process_Full_View): The parent of the full-view does not need to be
21541 a descendant of the parent of the partial view if both parents are
21543 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21544 "limited" the parent must be a limited type.
21545 (Build_Derived_Record_Type): A derived type that is explicitly limited
21546 must have limited ancestor and progenitors.
21547 (Build_Derived_Type): Ditto.
21548 (Process_Full_View): Verify that explicit uses of "limited" in partial
21549 and full declarations are consistent.
21550 (Find_Ancestor_Interface): Remove function.
21551 (Collect_Implemented_Interfaces): New procedure used to gather all
21552 implemented interfaces by a type.
21553 (Contain_Interface): New function used to check whether an interface is
21555 (Find_Hidden_Interface): New function used to determine whether two
21556 lists of interfaces constitute a set equality. If not, the first
21557 differing interface is returned.
21558 (Process_Full_View): Improve the check for the "no hidden interface"
21559 rule as defined by AI-396.
21561 2005-12-09 Robert Dewar <dewar@adacore.com>
21563 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21564 types, not on record subtypes.
21565 (Freeze_Entity): Code cleanup. Add barrier to the loop
21566 that generates the references for primitive operations. This allows to
21567 remove an unnecessary exception handler.
21568 Code reformatting and comment clean ups.
21570 2005-12-09 Vincent Celier <celier@adacore.com>
21572 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21573 If GNAT CHECK is called with a project file, but with no
21574 source on the command line, call gnatcheck with all the compilable
21575 sources of the project.
21576 Take into account the new command Check, for gnatcheck. Treat as for
21577 other ASIS tools: take into account project, specific package Check and
21579 For ASIS tools, add the switches in package Compiler for
21580 the invocation of the compiler.
21582 * prj-attr.adb: Add package Check and its attributes
21584 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21586 * vms_conv.adb (Initialize): Change Params of command Check to
21588 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21589 Add data for new command Check
21591 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21593 Add qualifiers for Check command options
21594 (Command_Type): New command Check
21596 2005-12-09 Thomas Quinot <quinot@adacore.com>
21598 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21599 command line switch overruns the output buffer.
21601 2005-12-09 Robert Dewar <dewar@adacore.com>
21603 * sem_prag.adb: Processing for new pragma Complete_Representation
21604 (Analyze_Pragma, case Debug): Implement two argument form.
21606 * par-prag.adb: Entry for new pragma Complete_Representation
21607 (Prag, case Debug): Recognize two argument form of pragma Debug
21608 New interface for Set_Style_Check_Options.
21610 * sem_ch13.adb: Implement new pragma Complete_Representation.
21612 * snames.adb, snames.ads, snames.h: Entry for new pragma
21613 Complete_Representation.
21615 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21617 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21618 available user-specified stream attributes on limited parameters to
21619 also test the type directly rather than only its underlying type (for
21620 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21621 attributes are visible at the point of the subprogram declaration.
21622 For Ada 2005, the error message is modified to indicate that the
21623 type's stream attributes must be visible (again, only for -gnat05).
21625 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21627 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21628 anonymous access types.
21630 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21631 matching of anonymous access types and anonymous access to subprogram
21632 types. 'R'M 4.9.1 (2/2).
21634 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21636 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21637 rule prematurely when operands are universal, remaining ambiguities
21638 will be removed during resolution.
21641 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21642 that are Ada 2005 functions.
21643 (Has_Abstract_Interpretation): Subsidiary to
21644 Remove_Conversions, to remove ambiguities caused by abstract operations
21645 on numeric types when operands are universal.
21647 2005-12-09 Robert Dewar <dewar@adacore.com>
21649 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21650 for case where spec is categorized.
21652 2005-12-09 Javier Miranda <miranda@adacore.com>
21654 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21655 types use the corresponding record type. This was not needed before
21656 the implementation of Ada 2005 synchronized types because
21657 concurrent types were never tagged types in Ada 95.
21659 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21661 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21662 first subtype of the type of the expression to verify that it is a
21665 2005-12-09 Robert Dewar <dewar@adacore.com>
21667 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21670 2005-12-09 Quentin Ochem <ochem@adacore.com>
21671 Robert Dewar <dewar@adacore.com>
21672 Ed Falis <falis@adacore.com>
21673 Florian Villoing <villoing@adacore.com>
21674 Thomas Quinot <quinot@adacore.com>
21675 Arnaud Charlet <charlet@adacore.com>
21677 * gnat_ugn.texi: Created section "Stack Related Tools"
21678 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21679 "Stack Related Tools"
21680 Added subsection "Static Stack Usage Analysis"
21681 Added subsection "Dynamic Stack Usage Analysis"
21682 Include documentation of itypes in sprint listing (-gnatG)
21683 Documented gnatbind -D switch (default sec stack size for fixed sec
21685 Added Interrupt_State and Persistent_BSS to list of configuration
21687 Add missing doc for maximum value of nnn in -gnatyMnnn
21689 * gnat_rm.texi: Document the AltiVec binding.
21690 Add documentation for pragma Complete_Representation
21691 Shortened an overly long line (> 79 chars)
21692 Clarify documentation of unchecked conversion in implementation
21694 Document two argument form of pragma Debug
21696 * types.ads (Column_Number): Update documentation.
21698 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21699 library level Finalize_Storage_Only objects (these are not attached to
21700 any finalization list).
21702 * system-mingw.ads: (Underlying_Priorities): Update comment.
21704 2005-12-09 Robert Dewar <dewar@adacore.com>
21706 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21707 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21708 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21709 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21710 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21711 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21712 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21713 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21716 2005-12-09 Robert Dewar <dewar@adacore.com>
21718 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21719 (Ne_G): New function
21721 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21722 for tag assignment.
21723 (Rewrite_Comparison): Handle case where operation is not a comparison
21724 and ignore, and also handle type conversion case.
21726 2005-12-09 Thomas Quinot <quinot@adacore.com>
21728 * exp_aggr.ads: Fix typo in comment.
21729 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21731 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21733 * layout.adb: Replace various uses of byte by storage unit throughout.
21734 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21735 static size, convert to storage units before returning, to conform to
21738 2005-12-09 Matthew Gingell <gingell@adacore.com>
21740 * g-exctra.ads: Fix typo in comment.
21742 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21744 * utils.c: Minor reformatting.
21746 2005-12-09 Robert Dewar <dewar@adacore.com>
21749 Further comment fixes to make the status of the default file clear
21751 * s-bitops.adb: Clarify comment for Bits_Array
21753 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21755 * Make-lang.in (ada.install-normal): Remove.
21757 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21759 * Make-lang.in: Remove all dependencies on s-gtype.
21761 2005-12-05 Richard Guenther <rguenther@suse.de>
21763 * utils.c (convert): Use fold_convert where appropriate.
21765 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21767 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21770 2005-12-02 Richard Guenther <rguenther@suse.de>
21772 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21774 2005-12-01 Roger Sayle <roger@eyesopen.com>
21776 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21779 2005-11-23 Laurent Guerby <laurent@guerby.net>
21781 * mlib-prj.adb (Build_Library): Initialize Delete.
21783 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
21785 * socket.c: Add extern int h_errno for rtems since networking header
21786 files are not available at this point in a tool bootstrap. Newlib
21787 only has basic C library header files.
21789 2005-11-19 Richard Guenther <rguenther@suse.de>
21790 Roger Sayle <roger@eyesopen.com>
21793 * misc.c (internal_error_function): Don't use vsprintf to format
21794 the error message text, instead use pp_format_text and the new
21795 pretty printer APIs. This allows handling of %qs, %w, etc.
21797 2005-11-18 Laurent Guerby <laurent@guerby.net>
21800 * Makefile.in: Use s-auxdec-empty for RTEMS.
21802 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21805 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21806 a temporary if taking the address of something that is neither
21807 reference, declaration, or constant, since the gimplifier
21808 can't handle that case.
21810 2005-11-17 Laurent Guerby <laurent@guerby.net>
21813 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21815 2005-11-16 Richard Guenther <rguenther@suse.de>
21817 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21819 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
21822 * raise-gcc.c: Add missing stdarg.h include.
21824 2005-11-16 Richard Guenther <rguenther@suse.de>
21826 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21827 (ada/misc.o): Likewise.
21829 2005-11-14 Thomas Quinot <quinot@adacore.com>
21831 * g-soccon.ads: Minor reformatting. Update comments.
21833 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21834 gain visibility on the declaration of struct timeval.
21836 * g-soccon-freebsd.ads,
21837 g-soccon-darwin.ads,
21838 g-soccon-tru64.ads,
21842 g-soccon-solaris.ads,
21844 g-soccon-mingw.ads,
21845 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21847 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21848 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21849 g-soccon-linux-x86.ads: New files.
21851 * g-socthi-mingw.adb:
21852 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21854 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21855 (time_t, suseconds_t): New types constructed to match the tv_sec
21856 and tv_usec fields of C struct timeval.
21857 (Timeval): Construct structure in terms of the new types.
21858 (Host_Errno): New function (imported from socket.c), returns last hosts
21861 * g-socthi-vxworks.adb: Add error handling circuitry.
21863 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21864 components of struct timeval.
21865 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21866 (Check_Selector): In error conditions, clear internal socket sets to
21867 avoid a memory leak.
21868 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21869 Send_Timeout, Receive_Timeout.
21871 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21872 the tv_sec and tv_usec fields of C struct timeval.
21873 (Timeval): Construct structure in terms of the new types.
21874 (Host_Errno): New function (imported from socket.c), returns last hosts
21877 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21878 hosts database last error code.
21880 * gen-soccon.c: Complete value expansion should not be performed on
21881 TARGET, as it has the form of a math expression, and some components
21882 may be platform-defined macros.
21883 For VxWorks, generate the OK and ERROR values.
21884 New constants giving the sizes of the components of C struct timeval.
21886 2005-11-14 Robert Dewar <dewar@adacore.com>
21887 Ed Schonberg <schonberg@adacore.com>
21890 * types.ads: Include All_Checks in Suppress_Array
21892 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21893 not(a=b), since we no longer do this rewriting, and hence it is not
21895 (Elaboration_Checks_Suppressed): Add special casing to
21896 deal with different cases of static and dynamic elaboration checks (all
21897 checks does not count in the first case, but does in the second).
21898 (Expr_Known_Valid): Do not assume that the result of any arbitrary
21899 function call is valid, since this is not the case.
21900 (Ensure_Valid): Do not apply validity check to a real literal
21901 in a universal or fixed context
21903 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21904 elementary types using the operator in standard. It is cleaner not to
21905 modify the programmers intent, especially in the case of floating-point.
21906 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21907 it did not matter because we always rewrote a/=b to not(a=b).
21908 (Expand_Allocator_Expression): For an allocator expression whose nominal
21909 subtype is an unconstrained packed type, convert the expression to its
21910 actual constrained subtype.
21911 Implement warning for <= or >= where < or > not possible
21912 Fix to Vax_Float tests (too early in many routines, causing premature
21913 Vax_Float expansions.
21915 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21916 to be used with packages and generic packages as well as with
21918 (Suppress): Set All_Checks, but not Elaboration_Check, for case
21919 of pragma Suppress (All_Checks)
21920 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21921 a string literal for precise control over warnings.
21922 Avoid raise of pragma in case of unrecognized pragma and just return
21925 * sem_prag.ads: Minor reformatting
21927 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21928 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21929 Switch. Do not handle any exception.
21930 Include -gnatwx as part of -gnatg (warn on redundant parens)
21931 Allow optional = after -gnatm
21932 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21933 longer sets Elaboration_Checks.
21934 Code to set warning mode moved to Sem_Warn
21935 so that it can be shared by pragma processing.
21937 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21940 * s-taprop-solaris.adb:
21941 Change some <= to =, to avoid new warning
21943 * a-exexda.adb, prj-proc.adb:
21944 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21945 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21947 2005-11-14 Robert Dewar <dewar@adacore.com>
21949 * exp_vfpt.adb: Handle /= case
21950 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21951 so that we do not get duplicate scaling for fixed point conversions.
21953 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21955 2005-11-14 Matthew Gingell <gingell@adacore.com>
21957 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21958 Increase default priority on Lynx from 15 to 17, and meet the Ada
21959 requirement that Default_Priority be ((Priority'First +
21960 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21962 2005-11-14 Vincent Celier <celier@adacore.com>
21964 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21965 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21966 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21967 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21968 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21969 mlib-tgt-lynxos.adb (DLL_Prefix): New function
21971 2005-11-14 Doug Rupp <rupp@adacore.com>
21973 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21976 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21978 * s-traces-default.adb, s-trafor-default.ads,
21979 s-tratas-default.adb: Fix compilation errors.
21981 2005-11-14 Jose Ruiz <ruiz@adacore.com>
21983 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21984 raising the exception so the memory used is freed.
21986 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21988 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21989 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21990 (convert_address): Update comments and list of platforms using this.
21992 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21995 2005-11-14 Pascal Obry <obry@adacore.com>
21996 Vincent Celier <celier@adacore.com>
21998 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22001 * memroot.adb: Remove redundant with/use clause on
22002 System.Storage_Elements.
22004 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22006 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22007 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22008 related code to a-exexpr.adb
22009 (Save_Occurrence_And_Private): Move GCC EH related code to
22011 (Raise_Current_Excep): Add new variable Id with pragma
22012 volatile, to ensure that the variable lives on stack.
22014 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22016 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22018 Move GCC EH related code to a-exexpr-gcc.adb
22020 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22022 Split the Linux version of g-soccon into separate variants for 32 and 64
22024 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22025 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22026 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22027 of host variable $(RANLIB_FLAGS).
22028 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22029 Code clean up: remove unused/obsolete targets.
22030 (EH_MECHANISM): New variable introduced to differenciate between the
22031 two EH mechanisms statically.
22032 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22033 (LIBGNAT_OBJS): Add raise-gcc.o
22034 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22035 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22036 supports VxWorks 6 RTPs.
22037 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22038 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22040 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22042 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22044 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22045 deferral level, when abort is not allowed, to a later stage (the
22047 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22048 it will not get changed by the generated code. It was previously done
22051 2005-11-14 Thomas Quinot <quinot@adacore.com>
22052 Olivier Hainque <hainque@adacore.com>
22053 Eric Botcazou <ebotcazou@adacore.com>
22056 Factor common code to build a storage type for an unconstrained object
22057 from a fat or thin pointer type and a constrained object type.
22058 (annotate_value): Handle BIT_AND_EXPR.
22059 (annotate_rep): Don't restrict the back annotation of inherited
22060 components to the type_annotate_only case.
22061 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22062 we are not defining the type.
22063 <E_Record_Type>: Likewise.
22064 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22065 to get advantage of the new maybe_stabilize_reference interface, to
22066 ensure that what we reference is indeed stabilized instead of relying
22067 on assumptions on what the stabilizer does.
22068 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22069 type imported through a limited_with clause, use its non-limited view.
22070 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22072 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22073 of #if sections + explicit comparisons of convention identifiers.
22074 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22075 before early-returning for certain types when code generation is
22077 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22078 nullification of gnu_expr we do for objects with address clause and
22079 that we are not defining.
22080 (elaborate_expression_1): Do not create constants when creating
22081 variables needed by the debug info: the dwarf2 writer considers that
22082 CONST_DECLs is used only to represent enumeration constants, and emits
22084 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22085 object with an address clause into an indirect reference, drop the
22086 initializing expression.
22088 (STACK_CHECK_BUILTIN): Delete.
22089 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22090 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22091 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22092 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22093 corresponding to the renamed object as ignored for debugging purposes.
22095 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22096 related): For a prefix that is a dereference of a fat or thin pointer,
22097 if there is an actual subtype provided by the front-end, use that
22098 subtype to build an actual type with bounds template.
22099 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22100 is provided by the front-end, use that subtype to compute the size of
22101 the deallocated object.
22102 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22103 check for a potential violation of a No_Elaboration_Code restriction.
22104 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22105 with extra arguments to control whether to recurse through non-values
22106 and to let the caller know if the stabilization has succeeded.
22107 (gnat_stabilize_reference): Now a simple wrapper around
22108 maybe_stabilize, for common uses without restriction on lvalues and
22109 without need to check for the success indication.
22110 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22111 pass false instead of 0 as the FORCE argument which is a bool.
22112 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22113 attached to a renaming pointer has been properly stabilized, as no such
22114 object is attached otherwise.
22115 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22116 function uses the "target pointer" return mechanism.
22117 Reinstate conversion of the actual to the type of the formal
22118 parameter before any other specific treatment based on the passing
22119 mechanism. This turns out to be necessary in order for PLACEHOLDER
22120 substitution to work properly when the latter type is unconstrained.
22122 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22124 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22125 with extra arguments to control whether to recurse through non-values
22126 and to let the caller know if the stabilization has succeeded.
22128 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22129 static output of record constructor if all the components are constant.
22130 (gnat_build_constructor): For a record type, sort the list of field
22131 initializers in increasing bit position order.
22132 Factor common code to build a storage type for an unconstrained object
22133 from a fat or thin pointer type and a constrained object type.
22134 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22135 types variants, and process special cases of VIEW_CONVERT expressions
22136 as their NOP_EXPR counterpart to ensure we get to the
22137 CORRESPONDING_VARs associated with CONST_DECls.
22138 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22139 on the right-hand side.
22141 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22143 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22144 are converting back to its original type.
22145 (convert) <JM input>: Fallthrough regular conversion code instead of
22146 extracting the object if converting to a type variant.
22147 (create_var_decl): When a variable has an initializer requiring code
22148 generation and we are at the top level, check for a potential violation
22149 of a No_Elaboration_Code restriction.
22150 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22151 SIZE and SIZE_UNIT which we need for later back-annotations.
22152 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22153 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22154 is an unchecked union.
22155 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22156 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22157 main variant, just replace the VIEW_CONVERT_EXPR.
22158 <UNION_TYPE>: Revert 2005-03-02 change.
22160 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22162 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22164 2005-11-14 Matthew Heaney <heaney@adacore.com>
22166 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22167 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22168 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22169 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22170 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22171 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22172 Compiles against the spec for ordered maps described in sections
22173 A.18.6 of the most recent (August 2005) AI-302 draft.
22175 2005-11-14 Olivier Hainque <hainque@adacore.com>
22177 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22178 to ensure bias adjustments take place when need be and to prevent
22179 occurrences of intermediate overflows.
22181 2005-11-14 Matthew Gingell <gingell@adacore.com>
22182 Olivier Hainque <hainque@adacore.com>
22184 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22187 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22188 tracebacks on ia64 HP-UX and provide explanatory comment.
22189 Enable backtraces on ia64 GNU/Linux.
22190 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22191 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22193 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22194 Javier Miranda <miranda@adacore.com>
22196 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22197 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22198 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22199 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22201 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22202 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22205 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22206 subprogram that generates the external name associated with a
22207 secondary dispatch table.
22208 (Get_Secondary_DT_External_Name): New subprogram that generates the
22209 external name associated with a secondary dispatch table.
22211 2005-11-14 Emmanuel Briot <briot@adacore.com>
22213 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22214 line in the ALI file to include both an instantiation reference, and a
22217 2005-11-14 Vincent Celier <celier@adacore.com>
22219 * clean.adb (Check_Project): Look for Ada code in extending project,
22220 even if Ada is not specified as a language.
22221 Use new function DLL_Prefix for DLL_Name
22222 (Clean_Interface_Copy_Directory): New procedure
22223 (Clean_Library_Directory): New procedure
22224 (Clean_Directory): Remove procedure, no longer used
22225 (Clean_Project): Do not delete any file in an externally built project
22227 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22228 directory of an extending project, even when there are no Ada source
22230 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22231 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22233 * mlib-prj.adb (Check_Library): For all library projects, get the
22234 library file timestamp.
22235 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22236 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22237 (Clean): Remove procedure, no longer used
22238 (Ultimate_Extension_Of): New function
22239 (Build_Library): When cleaning the library directory, only remove an
22240 existing library file and any ALI file of a source of the project.
22241 When cleaning the interface copy directory, remove any source that
22242 could be a source of the project.
22244 * prj.ads, prj.adb (Project_Empty): Add values of new components
22245 Library_TS and All_Imported_Projects.
22246 (Project_Empty): Add values for new components of Project_Data:
22247 Library_ALI_Dir and Display_Library_ALI_Dir
22249 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22251 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22252 attribute Library_ALI_Dir.
22253 (Check_Library_Attributes): The library directory cannot be the same as
22254 any source directory of the project tree.
22255 (Check_Stand_Alone_Library): The interface copy directory cannot be
22256 the same as any source directory of the project tree.
22258 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22259 all temporary files.
22261 2005-11-14 Robert Dewar <dewar@adacore.com>
22262 Ed Schonberg <schonberg@adacore.com>
22264 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22265 (Check_Elab_Call): A call within a protected body is never an
22266 elaboration call, and does not require checking.
22267 (Same_Elaboration_Scope): Take into account protected types for both
22269 (Activate_Elaborate_All_Desirable): New procedure
22271 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22274 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22275 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22277 * lib-writ.ads, lib-writ.adb:
22278 Implement new AD/ED for Elaborate_All/Elaborate desirable
22279 Use new Elaborate_All_Desirable flag in N_With_Clause node
22281 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22282 N_Free_Statement nodes.
22283 Define new class N_Subprogram_Instantiation
22284 Add Elaborate_Desirable flag to N_With_Clause node
22285 Add N_Delay_Statement (covering two kinds of delay)
22287 * debug.adb: Introduce d.f flag for compiler
22288 Add -da switch for binder
22290 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22291 Cyrille Comar <comar@adacore.com>
22293 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22294 for task component, in the case of a limited aggregate. The enclosed
22295 object declaration will create it earlier. Otherwise, in the case of a
22296 nested aggregate, the object may appear in the wrong scope.
22297 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22298 (Gen_Assign): If the component being assigned is an array type and the
22299 expression is itself an aggregate, wrap the assignment in a block to
22300 force finalization actions on the temporary created for each row of the
22302 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22303 structures are initialized after all discriminants are set so that
22304 they can be accessed even when their offset is dynamic.
22306 2005-11-14 Robert Dewar <dewar@adacore.com>
22307 Hristian Kirtchev <kirtchev@adacore.com>
22309 * sem_attr.adb: Implement Machine_Rounding attribute
22310 (Analyze_Access_Attribute): The access attribute may appear within an
22311 aggregate that has been expanded into a loop.
22312 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22313 'Terminated whenever the prefix is of a task interface class-wide type.
22314 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22315 the prefix is of a task interface class-wide type.
22317 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22320 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22321 Remove pragma Inline for [Unaligned_]Valid.
22322 Add comments that Valid routines do not work for Vax_Float
22324 * exp_attr.adb: Implement Machine_Rounding attribute
22326 * snames.h: Add entry for Machine_Rounding attribute
22328 2005-11-14 Javier Miranda <miranda@adacore.com>
22329 Robert Dewar <dewar@adacore.com>
22330 Hristian Kirtchev <kirtchev@adacore.com>
22332 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22333 and related): For a prefix that is an explicit dereference of an
22334 access to unconstrained packed array type, annotate the dereference
22335 with an actual subtype so GIGI can make a correct size computation.
22336 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22337 'Unrestricted_Access, if the designated type is an interface we
22338 add a type conversion to force the displacement of the pointer
22339 to the secondary dispatch table.
22340 Use Universal_Real instead of Long_Long_Float when we need a high
22341 precision float type for the generated code (prevents gratuitous
22342 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22343 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22344 'Terminated for task interface class-wide objects. Generate a call to
22345 the predefined dispatching routine used to retrieve the _task_id from
22346 a task corresponding record.
22347 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22349 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22350 (Check_Dispatching_Operation): Protect the frontend againts
22351 previously detected errors.
22353 * Makefile.rtl: Add new instantiations of system.fat_gen
22355 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22356 Change name of instantiated package for better consistency
22357 with newly added system.fat_gen instantiations.
22359 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22360 s-fvagfl.ads: New files.
22362 2005-11-14 Cyrille Comar <comar@adacore.com>
22363 Thomas Quinot <quinot@adacore.com>
22365 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22366 assignment of a value of a tagged type that has been rewritten to a
22367 block statement, it is known by construction that no checks are
22368 necessary for the statements within the block: analyze it with checks
22370 (Expand_N_If_Statement): When killing a dead then-branch in an
22371 if-statement that has elsif_parts, recompute the Current_Value node
22372 for any entity whose value is known from the condition of the first
22374 (Expand_N_Return_Statement): When returning a mutable record, convert
22375 the return value into its actual subtype in order to help the backend
22376 to return the actual size instead of the maximum. This is another
22377 aftermath of not returning mutable records on the sec-stack anymore.
22379 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22380 handling of error msg for suspicious reverse range iteration.
22381 (Check_Possible_Current_Value_Condition): Move declaration from body to
22382 spec, to allow this subprogram to be called from exp_ch5.
22384 2005-11-14 Thomas Quinot <quinot@adacore.com>
22386 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22387 generate a set of nested array aggregates instead of a single flat
22388 aggregate for multi-dimensional arrays.
22390 2005-11-14 Pascal Obry <obry@adacore.com>
22392 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22393 by spawnve is a process handle, no need to convert. Add a parameter
22394 close to control wether the process handle must be closed.
22395 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22396 a process handle, not need to convert.
22397 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22399 * g-expect.adb: (Kill): Document the new close parameter.
22400 (Close): Do not release the process handle in the kill there as
22401 waitpid() is using it.
22402 (Send_Signal): Release the process handle.
22404 2005-11-14 Robert Dewar <dewar@adacore.com>
22406 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22407 need a high precision float type for the generated code (prevents
22408 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22411 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22412 need a high precision float type for the generated code (prevents
22413 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22415 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22416 allowed on non-static enumeration subtypes. Force a load error to emit
22417 the correct diagnostic.
22419 2005-11-14 Thomas Quinot <quinot@adacore.com>
22420 Robert Dewar <dewar@adacore.com>
22421 Ed Schonberg <schonberg@adacore.com>
22423 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22424 subtype to compute the size of the designated object at run-time,
22425 create such a subtype and store it in the Actual_Designated_Subtype
22426 attribute of the N_Free_Statement.
22427 Generate itype for classwide designated object in both cases of
22428 user-specified storage pool: specific and class-wide, not only in the
22430 Raise CE when trying to set a not null access type object to null.
22431 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22432 an explicit loop, because freeze nodes make its position variable.
22434 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22437 2005-11-14 Javier Miranda <miranda@adacore.com>
22439 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22440 Build_Stream_Procedure): Add the null-excluding attribute to the first
22442 This has no semantic meaning under Ada95 mode but it is a
22443 requirement under Ada05 mode.
22445 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22446 the null exclusion is used under Ada95 mode
22447 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22448 (P_Access_Definition): Remove assertion that forbids the use of
22449 the null-exclusion feature in Ada95.
22451 2005-11-14 Robert Dewar <dewar@adacore.com>
22453 * impunit.adb: Exclude container helper units not intended for use by
22456 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22458 * freeze.adb (Freeze_Entity): For an access formal that is an access
22459 to subprogram, freeze the anonymous subprogram type at the same time,
22460 to prevent later freezing in the wrong scope, such as the enclosing
22462 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22463 subprogram whenever available.
22465 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22468 * gnatvsn.ads (Library_Version): Bump to 4.1
22470 2005-11-14 Robert Dewar <dewar@adacore.com>
22472 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22473 Storage_Offset to avoid wrap around causing invalid results.
22475 2005-11-14 Pascal Obry <obry@adacore.com>
22477 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22479 (Scan_Bind_Arg): Fail with an error message if -M option is used
22480 on a native compiler.
22482 2005-11-14 Robert Dewar <dewar@adacore.com>
22483 Vincent Celier <celier@adacore.com>
22485 * gprep.adb: Implement -C switch to scan comments
22487 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22489 * scans.ads: Comment updates (including new use of Tok_Comment in
22492 * opt.ads: Add documentation for flags that are used by gprmake,
22493 currently and in the next version of gprmake.
22494 (Verbosity_Level): New variable
22495 Add Replace_In_Comments switch
22497 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22499 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22501 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22503 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22504 message, friendlier.
22506 2005-11-14 Robert Dewar <dewar@adacore.com>
22508 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22510 2005-11-14 Doug Rupp <rupp@adacore.com>
22512 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22514 2005-11-14 Robert Dewar <dewar@adacore.com>
22516 * interfac.ads: Change declarations of IEEE float types so that we no
22517 longer need a separate version of this package for VMS.
22519 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22521 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22522 internal entity created for the declaration of a child subprogram body
22523 with no spec as coming from source, to generate proper cross-reference
22526 2005-11-14 Vincent Celier <celier@adacore.com>
22528 * make.adb (Compile_Sources): Change verbose message to minimum
22529 verbosity level High for "is in an Ada library", "is a read-only
22530 library" and "is an internal library",
22531 (Create_Binder_Mapping_File): Path name of ALI file for library project
22532 must include the library directory, not the object directory.
22533 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22534 for new switches -vl, -vm and -vh.
22535 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22536 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22537 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22538 in a project that is externally built.
22539 (Compute_All_Imported_Projects): New procedure
22540 (Gnatmake): Check if importing libraries should be regenerated because
22541 at least an imported library is more recent.
22542 (Initialize): For each project compute the list of the projects it
22543 imports directly or indirectly.
22544 (Add_Library_Search_Dir): New procedure, used in place of
22545 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22546 put in the search paths.
22547 (Add_Source_Search_Dir): New procedure, used in place of
22548 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22549 put in the search paths.
22550 (Mark_Directory): Resolve the absolute path the directory before marking
22553 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22554 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22555 Switch. Do not handle any exception.
22556 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22557 so that the switch is recognized as valid.
22558 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22560 2005-11-14 GNAT Script <nobody@adacore.com>
22562 * Make-lang.in: Makefile automatically updated
22564 2005-11-14 Pascal Obry <obry@adacore.com>
22566 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22568 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22569 In both cases the last argument was dropped.
22571 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22573 * namet.h: (Column_Numbe): New type.
22574 (Get_Column_Number): Define to sinput__get_column_number.
22575 (Instantiation): Define to sinput__instantiation.
22576 (Get_Column_Number): Declare.
22577 (Instantiation): Likewise.
22579 2005-11-14 Robert Dewar <dewar@adacore.com>
22581 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22582 syntax, which could cause compiler hangs.
22584 2005-11-14 Vincent Celier <celier@adacore.com>
22586 * prj-ext.adb: Take into account new environment variable
22587 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22589 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22590 normalize its path name, making it absolute and resolving symbolic
22591 links, and replace the original if resolved path is different.
22593 2005-11-14 Vincent Celier <celier@adacore.com>
22595 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22596 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22598 2005-11-14 Emmanuel Briot <briot@adacore.com>
22600 * prj-pp.adb (Print): Do not output the with statement if the
22601 associated name is empty, which happens for virtual extending projects.
22602 (Print): Preserve the "extends all" attribute when printing the project.
22604 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22605 a virtual extending project.
22607 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22609 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22610 rhs of an assignment even if the type is unconstrained, when the
22611 context is non-expanding.
22612 In an inlined body, if the context type is private,
22613 resolve with its full view, which must be a composite type.
22615 2005-11-14 Robert Dewar <dewar@adacore.com>
22616 Ed Schonberg <schonberg@adacore.com>
22618 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22619 Do not give obsolescent warning on with of subprogram (since we
22621 (Analyze_With_Clause): Add test for obsolescent package
22622 (Install_Context_Clauses): If the unit is the body of a child unit, do
22623 not install twice the private declarations of the parents, to prevent
22624 circular lists of Use_Clauses in a parent.
22625 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22626 compiling body of child unit.
22627 Use new class N_Subprogram_Instantiation
22628 (Expand_With_Clause): If this is a private with_clause for a child unit,
22629 appearing in the context of a package declaration, then the implicit
22630 with_clauses generated for parent units are private as well.
22631 (License_Check): Do not generate message if with'ed unit is internal
22633 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22634 Ed Schonberg <schonberg@adacore.com>
22635 Thomas Quinot <quinot@adacore.com>
22637 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22638 names are internal, because they will not have a corresponding partner
22639 in the actual package.
22640 (Analyze_Formal_Package): Move the setting of the formal package spec's
22641 Generic_Parent field so that it occurs prior to analyzing the package,
22642 to allow proper operation of Install_Parent_Private_Declarations.
22643 (Analyze_Package_Instantiation): Set the instantiated package entity's
22644 Package_Instantiation field.
22645 (Get_Package_Instantiation_Node): Move declaration to package spec.
22646 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22648 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22649 instantiation is Unchecked_Conversion, for which no parents are needed.
22650 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22651 parent scopes of a scope being removed prior to inlining an instance
22653 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22654 the current context is itself an instance within a non-instance child
22655 unit, to prevent scope stack errors.
22656 (Save_References): If the node is an aggregate that is an actual in a
22657 call, rewrite as a qualified expression to preserve some type
22658 information, to resolve possible ambiguities in the instance.
22659 (Instance_Parent_Unit): New global variable to record the ultimate
22660 parent unit associated with a generic child unit instance (associated
22661 with the existing Parent_Unit_Visible flag).
22662 (type Instance_Env): New component Instance_Parent_Unit for stacking
22663 parents recorded in the global Instance_Parent_Unit.
22664 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22666 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22667 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22668 not already set. Replace test of Is_Child_Unit with test of parent's
22669 scope against package Standard. Add comments and a ??? comment.
22670 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22671 on a child instance parent to test that the parent equals
22672 Instance_Parent rather than simply checking that the unit is not a
22674 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22675 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22676 a formal interface are ancestors of the corresponding actual.
22677 (Validate_Formal_Interface_Type): Additional legality checks.
22678 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22679 interface types with ancestors.
22680 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22681 to diagnose attempts to use generic within its own declaration.
22683 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22684 Javier Miranda <miranda@adacore.com>
22686 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22688 (Build_Private_Derived_Type): The entity of the created full view of the
22689 derived type does not come from source. If after installing the private
22690 declarations of the parent scope the parent is still private, use its
22691 full view to construct the full declaration of the derived type.
22692 (Build_Derived_Record_Type): Relax the condition that controls the
22693 execution of the check that verifies that the partial view and
22694 the full view agree in the set of implemented interfaces. In
22695 addition, this test now only takes into account the progenitors.
22696 (Derive_Interface_Subprograms): No need to derive subprograms
22697 of ancestors that are interfaces.
22698 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22700 Change name Is_Package to Is_Package_Or_Generic_Package
22701 (Complete_Subprograms_Derivation): Handle the case in which the full
22702 view is a transitive derivation of the ancestor of the partial view.
22703 (Process_Full_View): Rename local subprogram Find_Interface_In_
22704 Descendant to Find_Ancestor_Interface to leave the code more clear.
22705 Remove wrong code that avoids the generation of an error message
22706 when the immediate ancestor of the partial view is an interface.
22707 In addition some minor reorganization of the code has been done to
22708 leave it more clear.
22709 (Analyze_Type_Declaration): If type has previous incomplete tagged
22710 partial view, inherit properly its primitive operations.
22711 (Collect_Interfaces): Make public, for analysis of formal
22713 (Analyze_Interface_Declaration): New procedure for use for regular and
22714 formal interface declarations.
22715 (Build_Derived_Record_Type): Add support for private types to the code
22716 that checks if a tagged type implements abstract interfaces.
22717 (Check_Aliased_Component_Type): The test applies in the spec of an
22719 (Access_Type_Declaration): Clean up declaration of malformed type
22720 declared as an access to its own classwide type, to prevent cascaded
22722 (Collect_Interfaces): For private extensions and for derived task types
22723 and derived protected types, the parent may be an interface that must
22724 be included in the interface list.
22725 (Access_Definition): If the designated type is an interface that may
22726 contain tasks, create Master_Id for it before analyzing the expression
22727 of the declaration, which may be an allocator.
22728 (Record_Type_Declaration): Set properly the interface kind, for use
22729 in allocators, the creation of master id's for task interfaces, etc.
22731 2005-11-14 Javier Miranda <miranda@adacore.com>
22732 Ed Schonberg <schonberg@adacore.com>
22734 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22735 omitted in case of stream attribute subprograms.
22736 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22737 appear immediately after a subprogram body, when there is no previous
22738 subprogram declaration.
22739 Change name Is_Package to Is_Package_Or_Generic_Package
22740 (Process_Formals): A non null qualifier on a non null named access
22741 type is not an error, and is a warning only if Redundant_Constructs
22744 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22745 Ed Schonberg <schonberg@adacore.com>
22747 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22748 nested within Analyze_Package_Specification to install the private
22749 declarations and use clauses within each of the parent units of a
22750 package instance of a generic child package.
22751 (Analyze_Package_Specification): When entering a private part of a
22752 package associated with a generic instance or formal package, the
22753 private declarations of the parent must be installed (by calling new
22754 procedure Install_Parent_Private_Declarations).
22755 Change name Is_Package to Is_Package_Or_Generic_Package
22756 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22757 record is absent in a generic context, which does not indicate a
22760 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22762 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22763 not try to rewrite a renamed stream attribute, because the operations
22764 on the type may not have been generated.
22765 Handle properly a renaming_as_body generated for a stream operation
22766 whose default is abstract because the object type itself is abstract.
22767 (Find_Type): If the type is incomplete and appears as the prefix of a
22768 'Class reference, it is tagged, and its list of primitive operations
22769 must be initialized properly.
22770 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22771 private declaration of a parent unit, prior to compiling the private
22772 part of a child unit, find on the scope stack the proper parent entity
22773 on which to link the use clause.
22774 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22776 (Analyze_Object_Renaming): An attribute reference is not a legal object
22777 if it is not a function call.
22779 2005-11-14 Robert Dewar <dewar@adacore.com>
22780 Ed Schonberg <schonberg@adacore.com>
22782 * sem_eval.adb: Implement d.f flag
22783 (Subtype_Statically_Match): A generic actual type has unknown
22784 discriminants when the corresponding actual has a similar partial view.
22785 If the routine is called to validate the signature of an inherited
22786 operation in a child instance, the generic actual matches the full view,
22788 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22789 Ed Schonberg <schonberg@adacore.com>
22790 Robert Dewar <dewar@adacore.com>
22791 Thomas Quinot <quinot@adacore.com>
22793 * sem_res.adb (Resolve_Call): Provide a better error message whenever
22794 a procedure call is used as a select statement trigger and is not an
22795 entry renaming or a primitive of a limited interface.
22796 (Valid_Conversion): If the operand has a single interpretation do not
22797 remove address operations.
22798 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22799 statement to inhibit warning.
22800 (Resolve_Unary_Op): Do not produce a warning when
22801 processing an expression of the form -(A mod B)
22802 Use Universal_Real instead of Long_Long_Float when we need a high
22803 precision float type for the generated code (prevents gratuitous
22804 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22805 (Resolve_Concatenation_Arg): Improve error message when argument is an
22806 ambiguous call to a function that returns an array.
22807 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22808 there is an implicit operator in the given scope if we are within an
22809 instance: legality check has been performed on the generic.
22810 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22811 after resolving operand, to avoid false warnings on overloaded calls.
22813 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22814 Javier Miranda <miranda@adacore.com>
22817 * sem_type.adb (Covers): In an inlined body, a composite type matches
22818 a private type whose full view is a composite type.
22819 (Interface_Present_In_Ancestor): Protect the frontend against
22820 previously detected errors to ensure that its compilation
22821 with assertions enabled gives the same output that its
22822 compilation without assertions.
22823 (Interface_Present_In_Ancestor): Add support for private types.
22824 Change name In_Actual to In_Generic_Actual (clean up)
22825 (Disambiguate): New predicate In_Actual, to recognize expressions that
22826 appear in the renaming declaration generated for generic actuals, and
22827 which must be resolved in the outer context.
22829 2005-11-14 Robert Dewar <dewar@adacore.com>
22830 Thomas Quinot <quinot@adacore.com>
22831 Hristian Kirtchev <kirtchev@adacore.com>
22832 Ed Schonberg <schonberg@adacore.com>
22834 * sem_util.ads, sem_util.adb: Change name Is_Package to
22835 Is_Package_Or_Generic_Package.
22836 (Check_Obsolescent): New procedure.
22837 (Set_Is_Public): Remove obsolete junk test.
22838 (Set_Public_Status): Do not set Is_Public on an object whose declaration
22839 occurs within a handled_sequence_of_statemets.
22840 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22841 for a parameterless procedure.
22842 (Enter_Name): Recognize renaming declarations created for private
22843 component of a protected type within protected operations, so that
22844 the source name of the component can be used in the debugger.
22846 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22847 Robert Dewar <dewar@adacore.com>
22849 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22850 of a generic subprogram are not visible outside the body.
22851 (Set_Warning_Switch): New procedure (code to set warning mode moved
22852 here from Switch.C so that it can be shared by pragma processing.
22853 (Check_References): Special case warning for non-modified non-imported
22855 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22856 form with a string literal argument
22858 2005-11-14 Javier Miranda <miranda@adacore.com>
22860 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22862 (Write): Addition of "not null" to the anonymous access.
22863 (Read): Addition of "not null" to the anonymous access.
22864 (Write): Addition of "not null" to the anonymous access.
22866 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22867 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22868 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22869 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22870 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22871 "not null" to the anonymous access.
22873 2005-11-14 Robert Dewar <dewar@adacore.com>
22875 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22878 2005-11-14 Vincent Celier <celier@adacore.com>
22880 * switch.adb (Bad_Switch): New procedure
22881 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22882 message when in error.
22884 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22885 Too_Many_Output_Files): Remove declarations, no longer used.
22886 (Scan_Nat): New parameter Switch
22888 (Bad_Switch): New procedure
22890 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22891 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22892 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22893 to Osint.Fail. Do not handle any exception.
22895 2005-11-14 Vincent Celier <celier@adacore.com>
22897 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22898 designates a non existent directory.
22900 2005-11-14 Robert Dewar <dewar@adacore.com>
22902 * xgnatugn.adb: Replace invalid membership test by 'Valid
22904 2005-11-14 Vincent Celier <celier@adacore.com>
22906 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22907 there is no object directory.
22909 2005-11-14 Robert Dewar <dewar@adacore.com>
22911 * usage.adb: Minor adjustment to output format, use nn instead of nnn
22912 (so that -gnateInnn does not run into next column)
22914 2005-11-14 Ed Falis <falis@adacore.com>
22916 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22919 2005-11-14 Cyrille Comar <comar@adacore.com>
22921 * s-chepoo.ads: Add comments on Dereference.
22922 Remove unnecessary inherited abstract primitives.
22925 2005-11-14 Robert Dewar <dewar@adacore.com>
22927 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22928 node parameter, not needed, since it is available as Declaration_Node.
22930 2005-11-14 Geert Bosch <bosch@adacore.com>
22932 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22933 grammatically correct.
22935 2005-11-14 Vincent Celier <celier@adacore.com>
22937 * s-fileio.ads: Correct spelling error in comment
22939 2005-11-14 Cyrille Comar <comar@adacore.com>
22940 Robert Dewar <dewar@adacore.com>
22941 Vincent Celier <celier@adacore.com>
22942 Ben Brosgol <brosgol@adacore.com>
22943 Jose Ruiz <ruiz@adacore.com>
22944 Pascal Obry <obry@adacore.com>
22947 Document that -fstack-check is needed for strict compliance with the
22948 Ada 95 Reference Manual.
22949 Correct reference to VAX systems to meet HP guidelines
22950 Add documentation for new gnatmake switches -vl, -vm and -vh
22951 Replace DEC Ada by HP Ada
22952 Replace DIGITAL by HP
22953 Remove empty section on tools in compatibility section
22954 Clarify the Windows convention semantics.
22955 Document the Win32 calling convention.
22956 The Stdcall, Win32 and DLL convention are synonyms.
22957 Add a note in -gnatR description about zero size record components
22958 Note on new >= and <= warnings for -gnatwc
22959 Document that equal sign after -gnatm is optional.
22960 Note that strip is working fine on DLL built with a Library
22961 Project. The restriction apply only to DLL built with gnatdll.
22962 Update section about the way to debug a DLL.
22963 Update information about the DLL convention.
22964 Document -C switch for gnatprep
22965 Document new attribute Library_ALI_Dir
22966 Update elaboration doc to include implicit Elaborate pragmas now
22967 generated for subprogram instantiations.
22968 Document limitation on executable names that include spaces for --GCC,
22969 --GNATBIND, and --GNATLINK switches.
22970 Document that -w causes -gnatws to be added at start of gcc switches
22972 * gnat_rm.texi: Document that -mieee is needed for generating infinite
22973 and NaN values in case of overflow on machines that are not fully
22974 compliant with the IEEE floating-point standard.
22975 Create a section describing the set of compiler options needed for
22976 strict compliance with the Ada 95 Reference Manual.
22977 Add documentation for pragma Obsolescent applied to a package
22978 Clarify potential issues of mixed language programs related to the
22979 I/O buffering enabling in the elaboration of the GNAT runtime.
22980 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22981 This documentation only patch adds extra documentsion for pragma
22982 Restrictions (No_Elaboration_Code), explaining why it is not possible
22983 to document this restriction in terms of allowed source constructs.
22984 Document string literal form of pragma Warnings
22985 Document new attribute Library_ALI_Dir
22986 Add documentation on stable attributes in project files that was missing
22988 * gnat-style.texi: Indicate that paragraphs within a single comment
22989 should be separated by empty comment lines
22991 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22994 * bindusg.adb: Minor cleanup, put -m before -M for consistency
22996 2005-11-14 Robert Dewar <dewar@adacore.com>
22998 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22999 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23000 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23001 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23002 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23003 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23004 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23005 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23006 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23007 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23008 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23009 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23010 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23011 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23012 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23013 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23014 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23015 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23016 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23017 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23018 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23019 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23020 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23021 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23022 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23023 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23024 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23025 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23026 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23027 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23028 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23029 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23030 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23031 system-interix.ads, system-solaris-sparc.ads,
23032 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23033 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23034 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23035 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23036 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23037 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23038 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23039 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23040 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23041 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23042 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23043 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23044 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23045 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23046 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23047 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23048 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23049 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23050 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23051 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23052 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23053 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23054 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23055 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23056 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23057 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23058 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23059 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23060 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23061 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23062 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23063 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23064 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23065 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23066 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23067 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23068 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23069 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23070 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23071 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23072 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23073 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23074 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23075 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23076 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23077 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23078 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23079 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23080 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23081 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23082 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23083 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23084 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23085 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23086 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23087 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23088 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23089 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23090 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23091 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23092 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23093 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23094 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23095 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23096 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23097 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23098 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23099 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23100 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23101 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23102 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23103 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23104 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23105 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23106 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23107 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23108 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23109 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23110 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23111 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23112 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23113 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23114 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23115 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23116 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23117 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23118 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23119 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23120 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23121 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23122 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23123 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23124 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23125 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23126 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23127 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23128 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23129 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23130 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23131 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23132 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23133 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23134 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23135 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23136 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23137 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23138 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23139 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23140 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23141 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23142 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23143 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23144 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23145 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23146 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23147 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23148 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23149 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23150 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23151 a-numaux-darwin.ads, a-numaux-darwin.adb,
23152 a-swuwha.ads, a-stunha.ads: Minor reformatting
23154 2005-11-14 Robert Dewar <dewar@adacore.com>
23157 * osint-m.adb: Add pragma Elaborate_All for Osint
23159 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23162 * trans.c (call_to_gnu): Restore statement lost in translation.
23164 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23166 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23167 (__gnat_adjust_context_for_raise): Add conditional code so that the
23168 IA-64 is also supported.
23170 2005-11-03 James E Wilson <wilson@specifix.com>
23173 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23174 TREE_OVERFLOW check.
23176 2005-09-21 Olivier Hainque <hainque@adacore.com>
23179 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23180 as we create them to store a size in bits.
23182 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23190 * utils2.c (build_return_expr): New helper function.
23191 * gigi.h (build_return_expr): Declare it.
23192 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23193 of manually building the RETURN_EXPR tree.
23194 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23195 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23196 build_binary_op for the "target pointer" case. Use build_return_expr
23197 instead of manually building the RETURN_EXPR tree.
23199 2005-09-16 Laurent Guerby <laurent@guerby.net>
23202 * s-tpinop.ads: Make this unit Preelaborate.
23204 2005-09-16 Andreas Jaeger <aj@suse.de>
23206 * socket.c: Add string.h for memcpy.
23208 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23210 * dec-io.ads, dec-io.adb: Removed, no longer used.
23212 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23214 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23216 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23217 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23218 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23219 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23220 dependent units are Preelaborate.
23221 (Initialize): Call Interrupt_Managemeent.Initialize and
23222 OS_Primitives.Initialize to ensure proper initialization of this unit.
23223 Remove use of System.Soft_Links
23224 Make this unit Preelaborate.
23226 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23227 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23228 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23229 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23230 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23231 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23232 Add pragma Preelaborate, since these packages are suitable for this
23236 * s-traent-vms.ads, s-intman-dummy.adb,
23237 s-taprop-dummy.adb: Make this unit Preelaborate.
23239 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23240 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23241 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23242 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23243 s-intman-solaris.adb, s-intman-irix-athread.adb,
23244 s-intman-irix.adb: Mark this unit Preelaborate.
23245 (Initialize): New procedure.
23248 * s-taspri-linux.ads: Removed.
23250 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23251 as done by other implementations (e.g. posix).
23253 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23254 responsible for deferring abort.
23255 Mark this unit Preelaborate.
23257 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23258 proper initialization of the tasking run-time.
23260 * s-tasdeb.ads: Mark this unit Preelaborate.
23261 (Known_Tasks): Add explicit default value to avoid elaboration code.
23263 * s-inmaop-vms.adb (Elaboration code): Add call to
23264 Interrupt_Management.Initialize since the elaboration code depends on
23265 proper initialization of this package.
23267 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23268 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23269 s-osprim-posix.adb: Make this unit Preelaborate.
23271 * a-calend.adb: Add call to OS_Primitives.Initialize
23273 * a-elchha.adb: Update use of Except.Id.Full_Name.
23274 Minor reformatting.
23275 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23277 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23278 Move with clauses outside Warnings Off now that dependent units are
23280 Use raise xxx with "..."; Ada 2005 form.
23282 * a-taside.ads, a-taside.adb:
23283 Remove some dependencies, to make it easier to make this unit truly
23285 Rewrite some code to be conformant with Preelaborate rules.
23287 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23288 marked Preelaborate in the future.
23290 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23291 these units Preelaborate.
23293 * s-exctab.adb: Update use of Except.Id.Full_Name.
23295 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23296 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23297 Set_Exc_Stack_Addr): Removed, no longer used.
23298 Remove reference to *Machine_State_Addr*, no longer needed.
23300 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23301 (Exception_Data): Full_Name is now a System.Address so that this unit
23302 can be made Preelaborate.
23303 Clean up/simplify code thanks to Full_Name being a System.Address.
23304 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23306 * s-taskin.ads, s-taskin.adb:
23307 Move with clauses outside Warnings Off now that dependent units are
23309 Make this unit Preelaborate.
23310 (Initialize): New proceduure, replace elaboration code and makes the
23311 set up of the tasking run-time cleaner.
23312 (Detect_Blocking): Now a function instead of a deferred boolean, to
23313 obey Preelaborate rules.
23315 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23316 soft links, no longer used.
23318 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23319 packages are suitable for this categorization.
23321 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23322 since we compile run-time sources in Ada 2005 mode.
23323 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23324 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23326 Remove reference to *Machine_State_Addr*, no longer needed.
23328 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23330 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23331 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23332 Remove reference to System.Exceptions.
23334 * s-mastop-x86.adb: Removed, no longer used.
23336 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23338 * a-excach.adb: Minor reformatting.
23340 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23341 instead fix new warnings that were hidden by this change.
23342 (AAA, ZZZ): Removed, replaced by...
23343 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23344 are used instead of constants, to help make Ada.Exception truly
23346 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23347 Raise_Storage_Error): File is now a System.Address, to simplify code.
23348 (Elab code): Removed, no longer used.
23349 (Null_Occurrence): Remove Warnings Off and make this construct
23351 Remove code related to front-end zero cost exception handling, since
23352 it is no longer used.
23353 Remove -gnatL/-gnatZ switches.
23355 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23356 Update use of Except.Msg.
23358 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23359 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23360 to front-end zero cost exception handling, since it is no longer used.
23361 Remove -gnatL/-gnatZ switches.
23363 * lib-writ.ads: Minor reformatting
23366 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23368 * Make-lang.in: Remove references to s-except.ads
23370 * s-except.ads: Removed, no longer used.
23372 * s-mastop.ads, s-mastop.adb:
23373 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23374 Remove reference to System.Exceptions.
23376 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23377 switch-b.adb: Remove code related to front-end zero cost exception
23378 handling, since it is no longer used.
23379 Remove -gnatL/-gnatZ switches.
23381 2005-09-01 Robert Dewar <dewar@adacore.com>
23382 Gary Dismukes <dismukes@adacore.com>
23383 Javier Miranda <miranda@adacore.com>
23385 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23386 type by valid test and generate warning.
23387 (Tagged_Membership): Generate call to the run-time
23388 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23389 Change formal name Subtype_Mark to Result_Definition in several calls to
23390 Make_Function_Specification.
23391 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23392 check for proper accessibility of the operand of a class-wide allocator.
23393 The check can be left out if checks are suppressed or if the expression
23394 has a specific tagged type whose level is known to be safe.
23396 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23397 generates the run-time check associated with null-excluding entities.
23398 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23399 check on the level of the return expression of a class-wide function
23400 can be elided. The check usually isn't needed if the expression has a
23401 specific type (unless it's a conversion or a formal parameter). Also
23402 add a test for whether accessibility checks are suppressed. Augment
23403 the comments to describe the conditions for performing the check.
23405 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23406 Javier Miranda <miranda@adacore.com>
23407 Gary Dismukes <dismukes@adacore.com>
23408 Ed Schonberg <schonberg@adacore.com>
23410 * a-tags.adb (IW_Membership): Give support to
23411 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23412 subprogram has been extended to look for the tag in the ancestors tag
23414 Update the structure of the GNAT Dispatch Table to reflect the
23415 additional two tables used in dispatching selects.
23416 Introduce appropriate array types and record components in
23417 Type_Specific_Data to reflect the two tables.
23418 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23419 the TSD of a tag, indexed by position.
23420 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23421 operation kind in the TSD of a tag, indexed by position.
23423 * a-tags.ads: Introduce an enumeration type to capture different
23424 primitive operation kinds. Define a constant reflecting the number of
23425 predefined primitive operations.
23426 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23427 of an entry wrapper.
23428 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23429 callable entity of a primitive operation.
23431 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23432 primitive operations used in dispatching selects for limited
23433 interfaces, limited tagged, task and protected types what implement a
23435 (Freeze_Type): Generate the bodies of the primitive operations used in
23436 dispatching selects for limited tagged, task and protected types that
23437 implement a limited interface. Generate statements to populate the two
23438 auxiliary tables used for dispatching in select statements.
23439 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23440 associated with predefined interface primitive operations.
23441 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23442 Set_Result_Definition.
23443 (Build_Variant_Record_Equality): Change Subtype_Mark to
23445 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23446 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23447 (Build_Assignment): Simplify the code that adds the run-time-check.
23448 (Expand_N_Object_Declaration): Code cleanup.
23450 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23451 entries when there is a protected type that implements a limited
23454 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23455 common routines used in expansion of dispatching selects.
23456 (Add_Private_Declarations): Select the appropriate protection type when
23457 there is a protected type that implements a limited interface.
23458 (Build_Parameter_Block): Generate a wrapped parameter block.
23459 (Build_Protected_Subprogram_Body): Select the appropriate type for
23460 locking entries when there is a protected type that implements a
23462 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23463 classified as entry wrappers.
23464 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23465 asynchronous selects.
23466 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23467 dispatching conditional selects.
23468 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23469 protection when there is a protected type that implements limited
23471 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23473 (Extract_Dispatching_Call): Extract the entity of the name of a
23474 dispatching call, the object parameter, actual parameters and
23475 corresponding formals.
23476 (Make_Initialize_Protection): Correct logic of protection initialization
23477 when there is a protected type that implements a limited interface.
23478 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23479 values of actual parameters.
23480 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23481 block and assign them to the original actual parameters.
23483 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23484 (Build_Protected_Sub_Specification): Change the type and name of the
23485 last formal to account for the increased variety of protection modes.
23487 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23488 entities. Used to save the value of the Is_Hidden attribute when the
23489 limited-view is installed.
23490 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23491 the attribute of procedures classified as entry wrappers.
23492 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23493 entity of a primitive wrapper.
23494 (Write_Entity_Flags): Output the name and value of the
23495 Is_Primitive_Wrapper attribute.
23496 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23498 (Underlying_Type): If we have an incomplete entity that comes from
23499 the limited view then we return the Underlying_Type of its non-limited
23500 view if it is already available.
23501 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23502 including operators.
23503 (Write_Field26_Name): Add entry for Overridden_Operation
23504 (Overridden_Operation): New attribute of functions and procedures.
23506 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23507 predefined position in the dispatch table for the primitive operations
23508 used in dispatching selects.
23509 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23510 predefined primitive operations and replace it with
23511 Default_Prim_Op_Count.
23512 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23513 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23514 the names of the generated primitive operations used in dispatching
23516 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23517 case of abstract interface types. They will be inherit by the objects
23518 implementing the interface.
23519 (Make_DT): There is no need to inherit the dispatch table of the
23520 ancestor interface for the elaboration of abstract interface types.
23521 The dispatch table will be inherited by the object implementing the
23523 (Copy_Secondary_DTs): Add documentation.
23524 (Validate_Position): Improve this static check in case of
23525 aliased subprograms because aliased subprograms must have
23527 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23528 the entries associated with predefined primitives of all the secondary
23530 (Build_Anonymous_Access_Type): Removed.
23531 (Expand_Interface_Actuals): With the previous cleanup there is no need
23532 to build an anonymous access type. This allows further cleanup in the
23533 code generated by the expander.
23534 (Expand_Interface_Conversion): If the actual is an access type then
23535 build an internal function to handle the displacement. If the actual
23536 is null this function returns null because no displacement is
23537 required; otherwise performs a type conversion that will be
23538 expanded in the code that returns the value of the displaced actual.
23539 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23540 conversions that have no effect in the generated code because no
23541 displacement is required. Code cleanup; use local variables to
23542 avoid repeated calls to the subprogram directly_designated_type().
23544 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23545 Classify the primitive operations used in dispatching selects as
23547 (Implements_Limited_Interface): Determine whether some type either
23548 directly implements a limited interface or extends a type that
23549 implements a limited interface.
23550 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23551 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23552 expression is limited.
23553 (Find_Interface_Tag): Add code to handle class-wide types and
23554 entities from the limited-view.
23556 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23557 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23558 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23559 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23562 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23563 of procedure name or prefix that appears as a trigger in a triggering
23566 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23568 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23570 * s-tataat.adb, a-tasatt.adb:
23571 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23573 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23574 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23575 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23578 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23579 Jose Ruiz <ruiz@adacore.com>
23581 * s-taprop-vxworks.adb:
23582 Move with clauses outside Warnings Off now that dependent units are
23584 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23585 initialization of this unit.
23586 (Specific): Add new procedures Initialize and Delete so that this
23587 package can be used for VxWorks 5.x and 6.x
23588 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23589 differences between VxWorks 5.x and 6.x
23590 Minor reformatting.
23591 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23593 Use only Preelaborate-compatible constructs.
23595 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23596 Primitives.Operations.
23597 (Delete, Initialize): New procedures.
23599 * s-osinte-vxworks.adb: Body used to handle differences between
23600 VxWorks 5.x and 6.x
23601 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23603 * s-osinte-vxworks.ads: Minor reformatting.
23604 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23605 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23607 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23608 between Vxworks 5 and 6.
23609 (taskLock, taskUnlock): Removeed, no longer used.
23611 * adaint.c: The wait.h header is not located in the sys directory on
23612 VxWorks when using RTPs.
23613 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23615 (__gnat_dup): dup is available on Vxworks when using RTPs.
23616 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23618 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23620 * expect.c: The wait.h header is not located in the sys directory on
23621 VxWorks when using RTPs.
23623 2005-09-01 Thomas Quinot <quinot@adacore.com>
23625 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23627 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23629 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23630 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23631 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23632 g-soccon-freebsd.ads: Add new constants:
23634 SO_RCVTIMEO/SO_SNDTIMEO
23638 Move all target-specific file inclusions and macro definitions to
23639 gsocket.h, in order to ensure that any C code in socket.c will see a
23640 set of constants that is consistent with the contents of g-soccon.ads.
23642 * gsocket.h: Code imported from gen-soccon.c:
23643 Move all target-specific file inclusions and macro definitions to
23644 gsocket.h, in order to ensure that any C code in socket.c will see a set
23645 of constants that is consistent with the contents of g-soccon.ads.
23646 This change also makes gen-soccon self-contained (removing dependencies
23647 upon GCC internal headers).
23649 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23651 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23653 * socket.c: Minor reformatting.
23655 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23656 Thomas Quinot <quinot@adacore.com>
23658 * fname-sf.adb, mlib-tgt.ads,
23659 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23660 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23661 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23662 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23663 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23664 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23665 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23666 makegpr.adb: Remove redundant use_clauses.
23668 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23670 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23671 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23672 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23673 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23674 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23675 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23676 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23677 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23678 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23679 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23680 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23681 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23682 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23683 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23684 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23685 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23686 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23687 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23688 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23689 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23690 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23691 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23692 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23693 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23694 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23695 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23696 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23697 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23698 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23699 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23700 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23701 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23702 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23703 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23704 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23705 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23706 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23707 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23708 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23709 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23710 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23711 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23712 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23713 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23714 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23715 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23716 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23717 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23718 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23719 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23720 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23721 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23722 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23723 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23724 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23725 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23726 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23727 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23728 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23729 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23730 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23731 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23732 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23733 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23734 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23735 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23736 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23737 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23738 and always use the no parameter form for consistency.
23740 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23742 2005-09-01 Robert Dewar <dewar@adacore.com>
23744 * binde.adb: Minor reformatting
23745 (Find_Elab_Order): Output warning if -p used with static elab order
23747 2005-09-01 Robert Dewar <dewar@adacore.com>
23749 * checks.adb (Check_Needed): New procedure, deals with removing checks
23750 based on analysis of short-circuited forms. Also generates warnings for
23751 improper use of non-short-circuited forms.
23754 2005-09-01 Robert Dewar <dewar@adacore.com>
23756 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23759 2005-09-01 Robert Dewar <dewar@adacore.com>
23761 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23763 Implement new insertion char < (conditional warning)
23764 * errutil.adb, erroutc.adb: Implement new insertion char <
23765 (conditional warning).
23766 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23767 (Error_Msg_Warn): New variable for < insertion char.
23768 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23770 (Check_For_Source): Change value of Source_Id only after the current
23771 source has been dealt with.
23773 2005-09-01 Robert Dewar <dewar@adacore.com>
23774 Doug Rupp <rupp@adacore.com>
23776 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23777 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23778 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23779 (Valid_D, Valid_F, Valid_G): New functions
23781 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23782 Hristian Kirtchev <kirtchev@adacore.com>
23783 Javier Miranda <miranda@adacore.com>
23785 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23786 from object notation, the original node is unanalyzed and carries no
23787 semantic information, so that accessiblity checks must be performed on
23788 the type of the actual itself.
23789 (Expand_N_Subprogram_Declaration): Change last actual parameter for
23790 compatibility with Build_Protected_Sub_Specification.
23791 (Check_Overriding_Inherited_Interfaces): Add suport to handle
23792 overloaded primitives.
23793 (Register_Interface_DT_Entry): Use the new name of the formal
23794 the the calls to Expand_Interface_Thunk
23796 * exp_dbug.ads: Augment comments on encoding of protected types to
23797 include the generation of dispatching subprograms when the type
23798 implements at least one interface.
23800 * lib.ads: Extend information in Load_Stack to include whether a given
23801 load comes from a Limited_With_Clause.
23803 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23804 whether a potential circularity is harmless, because it includes units
23805 loaded through a limited_with clause. Extends previous treatment which
23806 did not handle properly arbitrary combinations of limited and
23807 non-limited clauses.
23809 2005-09-01 Nicolas Setton <setton@adacore.com>
23811 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23812 to be encoded as typ___XBLU_lowerbound__upperbound instead of
23813 typ___XB_lowerbound__upperbound.
23815 2005-09-01 Thomas Quinot <quinot@adacore.com>
23817 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23818 dummy access formal for RACW/RAS TypeCode TSS.
23819 (Build_TypeCode_Call): Do not generate dummy null access actual for
23820 calls to the TypeCode TSS.
23822 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23824 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23825 fully qualified name, to distinguish instances with the same local name.
23827 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23830 2005-09-01 Robert Dewar <dewar@adacore.com>
23832 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23835 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
23837 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23838 (Free): New deallocation procedure for filter elements
23839 (Close): Deallocate any existing filter for the concerned connection
23841 2005-09-01 Laurent Pautet <pautet@adacore.com>
23843 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23844 position set is provided, we compute one in order to reduce the maximum
23845 length of the keys. This computation first selects a character
23846 position between 1 and the minimum length of the keys in order to
23847 avoid reducing one of the keys to an empty string.
23848 (Initialize, Compute): When the ratio V to K is too low, the algorithm
23849 does not converge. The initialization procedure now comes with a
23850 maximum number of iterations such that when exceeded, an exception is
23851 raised in Compute. The user can initialize this ratio to another value
23853 Reformating and updated headers.
23855 2005-09-01 Javier Miranda <miranda@adacore.com>
23857 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23858 that given an entity T creates and returns an Itype that duplicates the
23859 contents of T. The returned Itype has the null-exclusion
23860 attribute set to True, and its Etype attribute references T
23861 to keep the association between the two entities.
23862 Update copyright notice
23864 * sem_aggr.adb (Check_Can_Never_Be_Null,
23865 Aggregate_Constraint_Checks, Resolve_Aggregate,
23866 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23868 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23870 2005-09-01 Gary Dismukes <dismukes@adacore.com>
23871 Robert Dewar <dewar@adacore.com>
23872 Hristian Kirtchev <kirtchev@adacore.com>
23874 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23877 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23879 Call Set_Result_Definition instead of Set_Subtype_Mark.
23880 (P_Subprogram_Specification): Add parsing of anonymous access result
23881 plus null exclusions. Call Set_Result_Definition instead of
23884 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23885 (P_Access_Type_Definition): Add parsing for an anonymous access result
23886 subtype, plus parsing for null exclusions. Call Set_Result_Definition
23887 instead of Set_Subtype_Mark.
23889 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23890 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23891 (Result_Definition): New function for N_Function_Specifications.
23892 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23893 N_Function_Specification.
23894 (Set_Null_Exclusion_Present): Allow this flag for
23895 N_Function_Specification.
23896 (Set_Result_Definition): New procedure for N_Function_Specifications.
23897 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23898 and N_Function_Specification.
23900 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23901 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23902 Add support for LIMITED NEW for Ada 2005 AI-419
23903 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23904 syntax for anonymous access results.
23905 Replace Subtype_Mark field by Result_Definition in
23906 N_Function_Specification and N_Access_Definition specs.
23907 Add Null_Exclusion_Present to spec of N_Function_Specification.
23908 (Result_Definition): New function for N_Function_Specification and
23909 N_Access_Function_Definition.
23910 (Set_Result_Definition): New procedure for N_Function_Specification and
23911 N_Access_Function_Definition.
23913 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23914 Result_Definition for cases of N_Access_Function_Definition and
23915 N_Function_Specification.
23916 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23918 2005-09-01 Vincent Celier <celier@adacore.com>
23920 * lib-writ.adb: Update Copyright notice
23921 (Write_With_Lines): On platforms where file names are case-insensitive,
23922 record the file names in lower case.
23923 (Write_ALI): For D lines, on platforms where file names are
23924 case-insensitive, record the file names in lower case.
23926 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23927 Emmanuel Briot <briot@adacore.com>
23929 * lib-xref.adb (Output_Overridden_Op): Display information on
23930 overridden operation.
23932 * lib-xref.ads: Add documentation on overridden operations.
23934 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23937 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23938 overriding entity information.
23940 2005-09-01 Vincent Celier <celier@adacore.com>
23942 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23943 including those that are inherited.
23945 2005-09-01 Robert Dewar <dewar@adacore.com>
23947 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23949 * par-prag.adb: Implement new pragma Debug_Policy
23951 * sem_prag.adb Implement new pragma Debug_Policy
23952 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23953 Component_Size attribute specification. Give warning for ignored pragma
23956 * snames.h, snames.ads, snames.adb: Introduce entries in
23957 Preset_Names for Name_Disp_Asynchronous_Select,
23958 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23959 Name_Disp_Timed_Select.
23960 New pragma Debug_Policy
23962 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23964 Switch -gnata also sets Debug_Pragmas_Enabled
23966 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23967 handle an explicit -gnata when compiling predefined files.
23969 2005-09-01 Vincent Celier <celier@adacore.com>
23971 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23972 directories of projects that have no Ada sources.
23974 2005-09-01 Robert Dewar <dewar@adacore.com>
23976 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23977 (makes a difference for wide characters)
23979 * widechar.adb, widechar.ads:
23980 Add Wide_Char_Byte_Count feature to count chars vs bytes
23982 2005-09-01 Thomas Quinot <quinot@adacore.com>
23983 Ed Schonberg <schonberg@adacore.com>
23984 Robert Dewar <dewar@adacore.com>
23986 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23987 'Address attribute reference with an overloaded prefix, use the
23988 location of the prefix (not the location of the attribute reference) as
23989 the error location.
23990 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23991 a function renaming thereof, is a valid prefix for 'Size (where it is
23992 intepreted as a function call).
23993 (Statically_Denotes_Entity): New predicate to determine whether the
23994 prefix of an array attribute can be considered static.
23997 (Eval_Attr): Fix failure to evaluate Component_Size for
23998 unconstrained arrays (resulted in wrong value in packed case, since
23999 back end cannot handle this case)
24001 2005-09-01 Robert Dewar <dewar@adacore.com>
24003 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24004 error msgs for most common cases.
24005 Use new errout insertion char < (conditional warning)
24007 2005-09-01 Javier Miranda <miranda@adacore.com>
24008 Ed Schonberg <schonberg@adacore.com>
24010 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24011 become local to the whole package.
24012 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24013 the package was already analyzed the new algorithm "replaces" the
24014 real entities by the shadow ones. This is required to ensure that
24015 the order of these entities in the homonym chains does not change;
24016 otherwise we can have undefined references at linking time because
24017 in case of conflicts the external name of the entities will have
24018 a suffix that depends on the order of the entities in the chain.
24019 (Remove_Limited_With_Clause): Complementary code that completes the
24020 new algorithm and replaces the shadow entities by the real ones.
24021 (Install_Limited_Withed_Unit): When unchaining entities before the
24022 installation of the shadow entities, only regular entities of the
24023 public part must be taken into account. This is required to
24024 keep this routine in synch with the work done by Remove_Limited_
24026 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24027 even if unit is analyzed, because the analysis of the unit is
24028 idempotent in any case, and the limited view of the unit may have to
24029 be installed for proper visibility.
24030 (Expand_Limited_With_Clause): Even if the unit in the implicit
24031 with_clause has been analyzed already, a limited view of the package
24032 must be built for the current context, if it does not exist yet.
24034 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24035 Javier Miranda <miranda@adacore.com>
24036 Gary Dismukes <dismukes@adacore.com>
24038 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24039 defining entity for the instance body, make a new defining identifier
24040 rather than copying the entity of the spec, to prevent accidental
24041 sharing of the entity list.
24042 (Check_Private_View): When exchanging views of private types, build the
24043 list of exchanged views as a stack, to ensure that on exit the exchanges
24044 are undone in the proper order.
24045 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24046 Restore the compilation environment in case of instantiation_error.
24047 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24048 for an anonymous access result.
24049 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24050 (Formal_Entity): Handle properly the case of a formal package that
24051 denotes a generic package renaming.
24053 2005-09-01 Thomas Quinot <quinot@adacore.com>
24055 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24056 clause if the array aggregate is surrounded by parentheses.
24058 2005-09-01 Cyrille Comar <comar@adacore.com>
24059 Gary Dismukes <dismukes@adacore.com>
24060 Ed Schonberg <schonberg@adacore.com>
24061 Javier Miranda <miranda@adacore.com>
24063 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24065 to check if a type is Constrained in cases related to code generation
24066 (rather than semantic checking) since otherwise we do not generate
24067 similar code for mutable private types depending if their
24068 discriminants are visible or not.
24069 (Check_Abstract_Overriding): Do not complain about failure to override
24070 the primitive operations used in dispatching selects since they will
24071 always be overriden at the freeze point of the type.
24072 (Access_Definition): Separate out handling for resetting the scope
24073 of an anonymous access function result type. Retrieve the scope
24074 of the associated function rather than using Current_Scope, which
24075 does not have a consistent value (depends on whether we're in the
24076 middle of analyzing formal parameters). Add ??? comment about
24077 finding a cleaner way to handle the special cases of scope setting.
24078 (Process_Incomplete_Dependents): A protected operation is never a
24079 dispatching operation (only its wrapper may be).
24080 (Build_Derived_Record_Type): In case of tagged private types that
24081 implement interfaces add derivation of predefined primitive
24083 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24084 by two parameters that are used in case of derivation from abstract
24085 interface types: No_Predefined_Prims is used to avoid the derivation
24086 of predefined primitives from the interface, and Predefined
24087 Prims_Only is used to complete the derivation predefined primitives
24088 in case of private tagged types implementing interfaces.
24089 Fix typo in comments
24090 (Find_Interface_In_Descendant): Protect the frontend against
24091 wrong code with large circularity chains.
24092 (Is_Private_Overriding): Add support for entities overriding interface
24093 subprograms. The test failed because Entities associated with overriden
24094 interface subprograms are always marked as hidden (and used to build
24095 the secondary dispatch table); in this case the overriden entity is
24096 available through the field abstract_interface_alias (cf. override_
24097 dispatching_operation)
24098 (Access_Definition): Set the scope of the type to Current_Scope for the
24099 case of a function with an anonymous access result type.
24100 (Access_Subprogram_Declaration): Handle creation of the type entity for
24101 an access-to-function type with an anonymous access result.
24102 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24103 in handling for N_Access_Function_Definition.
24104 (Analyze_Subtype_Declaration): Modify the text of error message.
24105 (Derived_Type_Declaration): Modify the text of error message.
24106 (Process_Subtype): Modify the text of error message plus cleanup
24107 of one redundant error message.
24108 (Analyze_Component_Declaration): Code cleanup.
24109 (Analyze_Object_Declaration): Code cleanup.
24110 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24111 attribute in case of access types. Code cleanup.
24112 (Array_Type_Declaration): Code cleanup.
24113 (Process_Discriminants): Create the new null-excluding itype
24114 if required. Code cleanup.
24115 (Process_Subtype): Create the new null-excluding itype if
24116 required. Code cleanup.
24117 (Build_Derived_Record_Type): Code cleanup to avoid calling
24118 twice the subprogram derive_subprograms in case of private
24119 types that implement interfaces. In this particular case the
24120 subprogram Complete_Subprograms_Derivation already does the
24121 job associated with the second call.
24123 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24124 conversion to the full view when generating an operation for a
24125 discriminant whose type may currently be private.
24127 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24128 Javier Miranda <miranda@adacore.com>
24130 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24131 V (Obj.F), the rewriting does not involve the indexed component, but
24132 only the selected component itself.
24133 Do not apply the transformation if the analyzed node is an actual of a
24134 call to another subprogram.
24135 (Complete_Object_Operation): Retain the entity of the
24136 dispatching operation in the selector of the rewritten node. The
24137 entity will be used in the expansion of dispatching selects.
24138 (Analyze_One_Call): Improve location of the error message associated
24140 (Analyze_Selected_Component): No need to resolve prefix when it is a
24141 function call, resolution is done when parent node is resolved, as
24143 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24144 when attempting to resolve a call transformed from its object notation.
24145 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24146 of the argument list for each interpretation of the operation.
24147 (Try_Object_Operation): The designated type of an access parameter may
24148 be an incomplete type obtained through a limited_with clause, in which
24149 case the primitive operations of the type are retrieved from its full
24151 (Analyze_Call): If this is an indirect call, and the return type of the
24152 access_to_subprogram is incomplete, use its full view if available.
24154 2005-09-01 Javier Miranda <miranda@adacore.com>
24155 Gary Dismukes <dismukes@adacore.com>
24157 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24158 access types the null-exclusion and access-to-constant attributes must
24160 (Analyze_Return_Statement): When the result type is an anonymous access
24161 type, apply a conversion of the return expression to the access type
24162 to ensure that appropriate accessibility checks are performed.
24163 (Analyze_Return_Type): For the case of an anonymous access result type,
24164 generate the Itype and set Is_Local_Anonymous_Access on the type.
24165 Add ??? placeholder for check to disallow returning a limited object
24166 in Ada 2005 unless it's an aggregate or a result of a function call.
24167 Change calls from Subtype_Mark to Result_Definition.
24168 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24169 Result_Definition in call to Make_Function_Specification.
24170 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24171 Set_Result_Definition.
24172 (Make_Inequality_Operator): Change formal Subtype_Mark to
24173 Result_Definition in call to Make_Function_Specification.
24174 (Process_Formals): Create the new null-excluding itype if required.
24175 (New_Overloaded_Entity): For an entity overriding an interface primitive
24176 check if the entity also covers other abstract subprograms in the same
24177 scope. This is required to handle the general case, that is, overriding
24178 other interface primitives and overriding abstract subprograms inherited
24179 from some abstract ancestor type.
24180 (New_Overloaded_Entity): For an overriding entity that comes from
24181 source, note the operation that it overrides.
24182 (Check_Conformance, Type_Conformant): Addition of one new formal
24183 to skip controlling formals in the analysis. This is used to
24184 handle overloading of abstract interfaces.
24185 (Base_Types_Match): Add missing case for types imported from
24186 limited-with clauses
24187 (New_Overloaded_Entity): Add barrier to protect the use of
24188 the "alias" attribute.
24190 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24192 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24193 verify that the procedure and the entry are mode conformant.
24194 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24195 as a different operator, which is often a cut-and-paste error.
24197 2005-09-01 Javier Miranda <miranda@adacore.com>
24198 Ed Schonberg <schonberg@adacore.com>
24200 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24201 used in controlling parameters exclude null because it is necessary to
24202 read the tag to dispatch, and null has no tag.
24203 (Override_Dispatching_Operation): If the previous operation is inherited
24204 from an interface, it becomes hidden and does not participate in later
24207 2005-09-01 Javier Miranda <miranda@adacore.com>
24208 Ed Schonberg <schonberg@adacore.com>
24209 Gary Dismukes <dismukes@adacore.com>
24211 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24212 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24213 the expander will generate the corresponding run-time check to evaluate
24215 (Resolve_Call): Check for legal type of procedure name or prefix that
24216 appears as a trigger in a triggering alternative.
24217 (Valid_Conversion): If expression is ambiguous and the context involves
24218 an extension of System, remove System.Address interpretations.
24219 (Resolve_Qualified_Expression): Reject the case of a specific-type
24220 qualification applied to a class-wide argument. Enhance comment
24221 to explain checking of Original_Node.
24222 (Resolve_Type_Conversion): The location of the error message was not
24223 general enough to handle the general case and hence it has been removed.
24224 In addition, this patch improves the text of the message.
24225 (Resolve_Type_Conversion): Add missing support for access to interface
24227 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24228 do not expand if the expression is the actual in a call, because proper
24229 expansion will take place when the call itself is expanded.
24230 (Resolve_Allocator): If the context is an unchecked conversion, the
24231 allocator inherits its storage pool, if any, from the target type of
24234 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24235 Javier Miranda <miranda@adacore.com>
24237 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24238 inherited interface operation that has an implementation, use the
24239 implementation to avoid spurious ambiguities.
24240 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24241 use the Corresponding_Record_Typ attribute to look for the interface
24242 because it is set by the expander (and hence it is not always
24243 available). For this reason we traverse the list of interfaces
24244 (available in the parent of the concurrent type).
24245 (Interface_Present_In_Ancestor): Handle entities from the limited view
24247 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24249 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24250 from the list of required components.
24251 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24252 primitive procedure of a limited interface with a controlling first
24254 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24256 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24257 capture if it is generated in the second operand of a short-circuit
24259 Do not capture values for variables with address clauses.
24260 (Is_Object_Reference): Treat a function call as an object reference only
24261 if its type is not Standard_Void_Type.
24263 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24265 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24266 to a variable that is statically known to be constant.
24268 2005-09-01 Geert Bosch <bosch@adacore.com>
24269 Robert Dewar <dewar@adacore.com>
24271 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24272 (VAXGF_Safe_First): Idem.
24274 2005-09-01 Robert Dewar <dewar@adacore.com>
24275 Arnaud Charlet <charlet@adacore.com>
24277 * g-dirope.ads: Minor reformatting
24278 Document that bounds of result of Base_Name match the input index
24280 Add documentation on environment variable syntax for Expand_Path
24282 * gnat_ugn.texi: Update documentation to include mention of -m switches
24283 Document new treatment of wide characters in max line length
24285 Remove -gnatL/-gnatZ switches, no longer used.
24286 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24289 * gnat_rm.texi: Add doc for two argument form of pragma
24290 Float_Representation.
24291 Add documentation for pragma No_Strict_Aliasing
24292 Add note that explicit component clause overrides pragma Pack.
24293 Add documentation of pragma Debug_Policy
24295 2005-09-01 Matthew Heaney <heaney@adacore.com>
24297 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24298 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24299 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24300 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24301 draft (Draft 13, August 2005) of Ada Amendment 1.
24303 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24305 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24306 Note that the platform-specific version of g-soccon.ads for VMS is now
24307 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24308 really is a package spec).
24309 Replace s-taspri-linux.ads by s-taspri-posix.ads
24310 Remove references to s-mastop-x86.adb
24312 * system-vxworks-xscale.ads: Removed, no longer used.
24313 * s-vxwork-xscale.ads: Removed, no longer used.
24315 2005-09-01 Robert Dewar <dewar@adacore.com>
24317 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24318 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24319 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24320 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24321 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24322 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24323 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24324 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24325 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24326 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24327 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24328 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24329 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24330 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24331 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24332 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24333 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24334 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24335 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24336 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24337 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24339 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24343 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24345 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24346 Doug Rupp <rupp@adacore.com>
24348 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24350 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24351 this code in the GNAT run-time.
24353 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24356 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24357 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24359 (__gnat_inside_elab_final_code): Moved here from
24360 Standard_Library and only defined for the compiler.
24361 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24362 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24363 using RTPs because directly vectored Interrupt routines are not
24364 supported on this configuration.
24365 (getpid): Do not redefine this function on VxWorks when using RTPs
24366 because this primitive is well supported by the RTP libraries.
24367 (copy_msg): Correct the code that checks for buffer overflow.
24368 Discovered during code reading.
24370 2005-08-29 Olivier Hainque <hainque@adacore.com>
24372 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24373 a library level mutable variable with an initializer, tell
24374 build_allocator to ignore the initializer's size. It may not be large
24375 enough for all the values that might be assigned to the variable later
24378 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24379 Eric Botcazou <ebotcazou@adacore.com>
24381 * trans.c: Protect < in error msg with quote
24382 Replace GCC_ZCX by Back_End_Exceptions.
24383 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24384 has been sufficiently aligned in the record.
24386 2005-08-15 James E. Wilson <wilson@specifix.com>
24388 * system-linux-alpha.ads: Change ia64 to alpha.
24390 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24392 * decl.c, utils.c: Fix comment typos.
24394 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24396 * decl.c, init.c, initialize.c: Fix comment typos.
24398 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24400 Make CONSTRUCTOR use VEC to store initializers.
24401 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24403 * trans.c (extract_values): Likewise.
24404 * utils.c (convert, remove_conversions): Likewise.
24405 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24406 gnat_build_constructor): Likewise.
24408 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24410 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24412 (compare_field_bitpos): Likewise.
24414 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24416 * utils.c (create_var_decl): Only set DECL_COMMON on
24417 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24418 VAR_OR_FUNCTION_DECL_P.
24420 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24422 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24425 2005-07-07 Pascal Obry <obry@adacore.com>
24427 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24428 returned type on Windows.
24430 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24433 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24434 exception in this case.
24435 Simplify the code as "Image (Image'Range)" = "Image".
24437 2005-07-07 Vincent Celier <celier@adacore.com>
24439 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24440 the destructor/constructor attributes for <lib>final/<lib>init.
24442 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24444 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24446 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24447 type if the parameter is not passed by copy but reference by default.
24449 2005-07-07 Javier Miranda <miranda@adacore.com>
24451 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24452 Reimplementation of the support for abstract interface types in order
24453 to leave the code more clear and easy to maintain.
24455 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24456 abstract interface types in order to leave the code clearer and easier
24459 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24460 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24461 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24462 appropriate entry of the secondary dispatch table.
24463 (Make_DT): Add code to inherit the secondary dispatch tables of
24466 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24467 implementing both functionalities by means of a common routine, each
24468 routine has its own code.
24470 2005-07-07 Javier Miranda <miranda@adacore.com>
24472 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24474 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24477 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24480 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24481 use of tag incomplete types.
24483 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24484 give support to tagged incomplete types.
24486 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24487 expression is a discriminant reference and its type is private, as can
24488 happen within a stream operation for a mutable record, use the full
24489 view of the type to resolve the case alternatives.
24490 (Analyze_Assignment): Check wrong dereference of incomplete types.
24492 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24495 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24498 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24499 N_Incomplete_Type_Declaration nodes.
24501 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24502 Tag_Present to give support to tagged incomplete types:
24504 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24507 2005-07-07 Olivier Hainque <hainque@adacore.com>
24510 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24511 definitions for the Unwind wrappers in the compiler case.
24513 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24514 Javier Miranda <miranda@adacore.com>
24516 * par-load.adb (Load): If a child unit is loaded through a limited_with
24517 clause, each parent must be loaded as a limited unit as well.
24519 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24520 Check_Withed_Unit. Return true if there is a previous with_clause for
24521 this unit, whether limited or not.
24522 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24524 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24525 _withed_unit that checks if some package installed through normal with
24526 clauses has a renaming declaration of package whose limited-view is
24527 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24528 of the current Draft document for Ada 2005.
24529 (Analyze_Context): Complete the list of compilation units that
24530 are allowed to contain limited-with clauses. It also contains
24531 checks that were previously done by Install_Limited_Context_Clauses.
24532 This makes the code more clear and easy to maintain.
24533 (Expand_Limited_With_Clause) It is now a local subprogram of
24534 Install_Limited_Context_Clauses, and contains the code that adds
24535 the implicit limited-with clauses for parents of child units.
24536 This functionality was prevously done by Analyze_Context.
24538 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24541 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24542 been erroneously named in a limited-with clause of its own context.
24543 In this case the error has been previously notified by Analyze_Context.
24545 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24547 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24548 generic package that contains local declarations with the same name.
24549 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24551 2005-07-07 Bernard Banner <banner@adacore.com>
24553 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24554 ia64 platform only on platforms that you the GCC unwind library
24555 rather than the system unwind library.
24557 2005-07-07 Thomas Quinot <quinot@adacore.com>
24559 * expect.c: Minor reformatting
24561 2005-07-07 Sergey Rybin <rybin@adacore.com>
24563 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24566 * gnat_ugn.texi: Add description for new gnatpp option
24569 2005-07-04 Thomas Quinot <quinot@adacore.com>
24571 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24572 (Get_Command_Output): New subprogram to launch a process and get its
24573 standard output as a string.
24575 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24576 Olivier Hainque <hainque@adacore.com>
24578 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24579 fetch a code-range descriptor associated with the machine state. On
24580 failure set the machine state's PC to 0; on success, pass the
24581 descriptor to exc_virtual_unwind.
24583 * init.c (Tru64 section): New function __gnat_set_code_loc.
24585 2005-07-04 Vincent Celier <celier@adacore.com>
24587 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24588 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24589 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24590 Remove all auto-initialization code, as this is now done through the
24591 constructor mechanism.
24593 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24594 __gnat_sals_init_using_constructors): New functions.
24596 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24597 Linker_Constructor and Linker_Destructor when switch -a is used.
24599 * bindusg.adb: Add line for new switch -a
24601 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24602 (Gnatbind): When switch -a is used, check if it is allowed
24604 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24606 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24608 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24609 This prevents us from hitting a limitation during the debug info
24610 generation when using stabs.
24611 (Prims_Ptr): Likewise.
24613 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24614 Ed Schonberg <schonberg@adacore.com>
24615 Javier Miranda <miranda@adacore.com>
24617 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24618 N_Object_Declaration, only perform the checks if the Object_Definition
24619 is not an Access_Definition.
24621 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24622 where the parent of an the access definition is an N_Object_Declaration
24623 when determining the Associated_Node_For_Itype and scope of an
24624 anonymous access-to-subprogram type.
24626 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24627 Corresponding_Spec on the body created for a null procedure. Add ???
24628 comment. Remove New_Copy_Tree call on body argument to
24629 Set_Body_To_Inline.
24631 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24632 discriminants, use the type of the actual as well, because the
24633 discriminants may be read by the called subprogram.
24635 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24636 access type we do not need to handle non-limited views.
24637 (Build_Derived_Record_Type): Additional check to check that in case of
24638 private types, interfaces are only allowed in private extensions.
24640 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24642 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24643 <Pragma_Linker_Destructor>: Likewise.
24645 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24646 Pragma_Linker_Destructor.
24648 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24649 ATTR_LINK_DESTRUCTOR.
24650 (static_ctors, static_dtors): New variables.
24652 * misc.c (gnat_expand_body): Output current function as constructor
24653 and destructor if requested.
24655 * par-prag.adb: Add processing for pragma Linker_Constructor and
24658 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24659 extracted from Check_Interrupt_Or_Attach_Handler.
24660 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24661 Implement pragma Linker_Constructor and Linker_Destructor with the
24662 help of Find_Unique_Parameterless_Procedure.
24663 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24665 * snames.h, snames.ads, snames.adb:
24666 Add Name_Linker_Constructor and Name_Linker_Destructor.
24667 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24668 * snames.adb: Remove Name_Alias.
24670 * trans.c: Include cgraph.h.
24671 (build_global_cdtor): New function.
24672 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24674 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24676 (addressable_p) <COMPONENT_REF>: Unconditionally test
24677 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24679 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24680 variable if it is external.
24682 (static_ctors, static_dtors): New global variables.
24683 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24684 <ATTR_LINK_DESTRUCTOR>: Likewise.
24685 (end_subprog_body): Chain function as constructor and destructor
24688 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24689 Remove_Side_Effects with Variable_Ref set to true.
24690 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24691 for non-scalar types even if Variable_Ref is true and for class-wide
24694 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24696 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24697 to prevent spurious warnings.
24699 2005-07-04 Thomas Quinot <quinot@adacore.com>
24701 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24702 Itypes. Itypes are really unexpected there.
24703 (Build_TypeCode_Function): Generalise special processing for Itypes to
24704 handle the case of numeric implicit base types as well as enumerated
24707 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24709 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24710 controlled, indicate the expected type of the dereference that is
24711 created for the call to Deep_Finalize, to prevent spurious errors when
24712 the designated type is private and completed with a derivation from
24713 another private type.
24715 2005-07-04 Vincent Celier <celier@adacore.com>
24717 * make.adb (Change_To_Object_Directory): When unable to change the
24718 current dir to the object directory, output the full path of the
24721 2005-07-04 Matthew Gingell <gingell@adacore.com>
24723 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24725 * indepsw-linux.adb: Replace by...
24727 * indepsw-gnu.adb: ...this new file
24729 2005-07-04 Vincent Celier <celier@adacore.com>
24731 * mlib-prj.adb (Auto_Initialize): New constant String
24732 (SALs_Use_Constructors): New Boolean function
24733 (Build_Library): Call gnatbind with Auto_Initialize switch when
24734 SALs_Use_Constructors returns True.
24736 * mlib-tgt.ads: Minor reformatting
24738 * mlib-utl.ads: Minor reformatting
24740 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24742 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24744 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24745 single protected declarations can have an interface list.
24746 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24747 with seriously malformed entry declarations, and lead to compilation
24748 abandoned messages.
24750 2005-07-04 Javier Miranda <miranda@adacore.com>
24752 * par-load.adb: Load the context items in two rounds.
24754 2005-07-04 Robert Dewar <dewar@adacore.com>
24756 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24758 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24759 Javier Miranda <miranda@adacore.com>
24761 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24762 type extension needs a limited view.
24763 Remove previous restriction on private types available through the
24764 limited-view (only tagged private types were previously allowed).
24765 (Install_Withed_Unit): In the code that implements the
24766 legality rule given in AI-377, exclude a child unit with the name
24767 Standard, because it is a homonym of the Standard environment package.
24769 2005-07-04 Thomas Quinot <quinot@adacore.com>
24771 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24772 overloaded function call, carry interpretations from the original tree
24775 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24777 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24778 types check whether some designated type is a limited view, and use
24779 the non-limited view if available.
24781 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24783 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24784 constraint of full view of a private view T1 if present, when T2 is a
24785 discriminated full view.
24787 2005-07-04 Thomas Quinot <quinot@adacore.com>
24789 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24790 actual that is a view conversion of a bit packed array reference.
24792 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24794 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24795 present before checking whether an interface type covers a synchronized
24798 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24800 * sem_util.adb (Is_Object_Reference): An indexed or selected component
24801 whose prefix is an implicit dereference is an object reference. Removes
24802 spurious errors when compiling with -gnatc.
24804 2005-07-04 Robert Dewar <dewar@adacore.com>
24807 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24809 2005-07-04 Matthew Gingell <gingell@adacore.com>
24811 * tracebak.c: Enable tracebacks on ia64 platforms
24813 2005-07-04 Vincent Celier <celier@adacore.com>
24815 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24816 the GNAT BIND command, as gnatbind accepts multiples ALI files with
24817 the -L or -n switches.
24819 2005-07-04 Vincent Celier <celier@adacore.com>
24821 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24822 correctly computed and the main project data is not modified while
24824 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24825 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24826 c++linker as this does not work on some platforms.
24828 2005-07-04 Matthew Heaney <heaney@adacore.com>
24830 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24832 * a-coinve.adb: Perform constraint checks explicitly.
24834 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24835 Thomas Quinot <quinot@adacore.com>
24837 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24838 new target gen-soccon.
24840 2005-07-04 Robert Dewar <dewar@adacore.com>
24842 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24844 2005-07-04 Thomas Quinot <quinot@adacore.com>
24846 * g-socket.ads (Check_Selector): Minor rewording of comment.
24848 2005-07-04 Vincent Celier <celier@adacore.com>
24850 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24852 2005-07-04 Thomas Quinot <quinot@adacore.com>
24854 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24856 2005-07-04 Sergey Rybin <rybin@adacore.com>
24858 * gnat_ugn.texi: Add description of --eol gnatpp option
24860 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24861 Thomas Quinot <quinot@adacore.com>
24863 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24864 if the user wants all calls of a subprogram to be flagged,
24865 independently of whether they are made from within the same unit or
24867 Mention restriction for pragma Linker_Alias on some platforms.
24868 Document pragma Linker_Constructor and Linker_Destructor.
24869 Rewrite documentation of Weak_External, Linker_Section and
24870 Linker_Alias pragmas.
24872 2005-07-04 Arnaud Charlet <charlet@adacore.com>
24874 * s-stausa.ads, s-stausa.adb: New files.
24876 2005-06-30 Kelley Cook
24878 * all files: Update FSF address in copyright headers.
24879 * gen-soccon.co (main): Output new FSF address in generated files.
24881 2005-06-28 Paul Brook <paul@codesourcery.com>
24883 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24885 2005-06-14 Olivier Hainque <hainque@adacore.com>
24886 Eric Botcazou <ebotcazou@adacore.com>
24888 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24889 exc_unwind, now that we are generating proper .debug_frame output for
24892 * tracebak.c: Remove the mips-irix section, as we are now using the
24893 s-mastop based unwinder again.
24894 Under SPARC/Solaris, take into account the stack bias to compute the
24895 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
24898 2005-06-14 Doug Rupp <rupp@adacore.com>
24900 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24902 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24904 2005-06-14 Pascal Obry <obry@adacore.com>
24906 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24907 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24908 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24911 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24912 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24913 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24914 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24915 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24916 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24917 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24918 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24919 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24920 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24921 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24922 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24923 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24924 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24925 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24926 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24927 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24928 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24929 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24930 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24931 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24932 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24933 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24934 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24935 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24936 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24937 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24938 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24939 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24940 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24941 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24942 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24943 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24944 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24945 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24946 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24947 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24948 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24949 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24950 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24951 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24952 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24953 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24954 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24955 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24956 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24957 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24958 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24959 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24960 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24961 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24962 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24963 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24964 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24965 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24966 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24967 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24968 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24969 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24970 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24971 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24972 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24973 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24974 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24975 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24976 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24977 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24978 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24979 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24980 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24981 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24982 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24983 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24984 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24985 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24986 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24987 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24988 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24989 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24990 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24991 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24992 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24993 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24994 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24995 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24996 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24997 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24998 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24999 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25000 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25001 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25002 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25003 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25004 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25005 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25006 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25007 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25008 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25009 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25010 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25011 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25012 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25013 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25014 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25015 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25016 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25017 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25018 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25019 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25020 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25021 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25022 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25023 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25024 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25025 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25026 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25027 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25028 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25029 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25030 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25031 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25032 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25033 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25034 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25035 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25036 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25037 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25038 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25039 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25040 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25041 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25042 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25043 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25045 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25046 Arnaud Charlet <charlet@adacore.com>
25048 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25049 longer protected objects. They have been replaced by lower-level
25050 suspension objects made up by a mutex and a condition variable (or
25051 their equivalent given a particular OS) plus some internal data to
25052 reflect the state of the suspension object.
25053 (Initialize, Finalize): Add this initialization procedure for
25054 Suspension_Object, which is a controlled type.
25055 (Finalize): Add the finalization procedure for Suspension_Object,
25056 which is a controlled type.
25058 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25059 Ada.Synchronous_Task_Control because there is no longer a need for a
25060 VxWorks specific version of this package. Target dependencies
25061 has been moved to System.Task_Primitives.Operations.
25063 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25065 (InitializeCriticalSection, EnterCriticalSection,
25066 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25067 pCriticalSection by an anonymous access type so that we avoid problems
25068 of accessibility to local objects.
25070 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25071 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25072 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25073 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25074 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25075 set the environment task mask here.
25076 (Current_State): Add this function that returns the state of the
25078 (Set_False): Add this procedure that sets the state of the suspension
25080 (Set_True): Add this procedure that sets the state of the suspension
25081 object to True, releasing the task that was suspended, if any.
25082 (Suspend_Until_True): Add this procedure that blocks the calling task
25083 until the state of the object is True. Program_Error is raised if
25084 another task is already waiting on that suspension object.
25085 (Initialize): Add this procedure for initializing the suspension
25086 object. It initializes the mutex and the condition variable which are
25087 used for synchronization and queuing, and it sets the internal state
25089 (Finalize): Add this procedure for finalizing the suspension object,
25090 destroying the mutex and the condition variable.
25092 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25093 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25094 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25095 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25096 which provides a low-level abstraction (using operating system
25097 primitives) for Ada.Synchronous_Task_Control.
25098 This object is made up by a mutex (for ensuring mutual exclusion), a
25099 condition variable (for queuing threads until the condition is
25100 signaled), a Boolean (State) indicating whether the object is open,
25101 and a Boolean (Waiting) reflecting whether there is a task already
25102 suspended on this object.
25104 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25105 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25106 s-intman-vms.ads, s-intman-mingw.adb,
25107 (Initialize_Interrupts): Removed, no longer used.
25109 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25110 (Setup_Interrupt_Mask): New procedure.
25112 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25114 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25116 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25117 this is no longer done in the body of s-taprop
25118 (Server_Task): Explicitely test for Pending_Action in case
25119 System.Parameters.No_Abort is True.
25121 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25122 is no longer done in the body of s-taprop
25124 2005-06-14 Robert Dewar <dewar@adacore.com>
25126 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25127 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25128 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25129 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25130 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25131 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25132 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25133 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25134 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25135 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25136 system-linux-hppa.ads, system-vms_64.ads,
25137 system-vxworks-alpha.ads: Minor comment update for
25138 AI-362 (unit is Pure).
25140 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25141 Add pragma Pure_05 for AI-362
25142 Make remaining conversion functions obsolescent in Ada 95
25144 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25145 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25146 Add entries for a-wichun and a-zchuni
25147 Add a-widcha a-zchara for AI-395
25148 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25150 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25151 Add entries for a-wichun.o and a-zchuni.o
25152 Entries for a-widcha.o and a-zchara.o
25153 Add entry for a-chacon.o
25155 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25157 * a-chacon.ads, a-chacon.adb: New files.
25159 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25160 categorization violations.
25162 * a-strmap.ads: Add pragma Pure_05 for AI-362
25163 * a-strmap.ads: Add note on implicit categorization for AI-362
25165 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25167 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25168 Set Ada_Version_Explicit, for implementation of AI-362
25169 Add processing for pragma Pure_05 and Preelaborate_05
25170 Add entry for Assertion_Policy pragma
25172 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25173 when needed for proper processing of categorization stuff
25176 For several cases, make errors in preealborate units warnings,
25177 instead of errors, if GNAT_Mode is set. For AI-362.
25179 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25180 preelaborate unit is now warning if in GNAT mode
25182 * s-stoele.ads: Document AI-362 for pragma preelaborate
25184 2005-06-14 Doug Rupp <rupp@adacore.com>
25186 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25187 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25188 Default_Exception_Msg_Max_Length: new parameter.
25190 * a-except.ads: (Exception_Msg_Max_Length): Set to
25191 System.Parameters.Default_Exception_Msg_Max_Length
25192 Add pragma Preelaborate_05 for AI-362
25193 Add warnings off to allow categorization violations for AI-362
25195 2005-06-14 Vincent Celier <celier@adacore.com>
25197 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25198 Process is now in package Processing.
25200 * symbols.ads, symbols.adb:
25201 (Processing): New package, containing procedure Process
25203 * symbols-vms-alpha.adb:
25204 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25206 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25207 symbols-processing-vms-ia64.adb: New files.
25209 2005-06-14 Pascal Obry <obry@adacore.com>
25211 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25212 implementation. This new version generates the proper DllMain routine
25213 to initialize the SAL. The DllMain is generated in Ada and compiled
25214 before being added as option to the library build command.
25216 2005-06-14 Doug Rupp <rupp@adacore.com>
25217 Pascal Obry <obry@adacore.com>
25219 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25220 call to decc$translate_vms.
25221 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25222 need to remove those quotes before catenating the filename.
25223 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25224 * avoid allocating the memory twice for better efficiency;
25225 * allocate 32K buffer for environment expansion as suggested by MSDN;
25226 * prepend ".;" to the path so that current directory is searched too.
25228 2005-06-14 Robert Dewar <dewar@adacore.com>
25230 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25231 instead of raising CE (AI-241)
25232 Add warnings off to allow categorization violations for AI-362
25234 2005-06-14 Robert Dewar <dewar@adacore.com>
25236 * ali-util.adb, gnatbind.adb: Remove references to
25237 Force_RM_Elaboration_Order.
25239 * switch-b.adb: Remove recognition of -f switch
25241 2005-06-14 Pascal Obry <obry@adacore.com>
25243 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25244 implementation which is slightly more efficient.
25246 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25247 Javier Miranda <miranda@adacore.com>
25248 Ed Schonberg <schonberg@adacore.com>
25249 Hristian Kirtchev <kirtchev@adacore.com>
25251 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25252 allocator's designated type is a class-wide type, and compiling for
25253 Ada 2005, emit a run-time check that the accessibility level of the
25254 type given in the allocator's expression is not deeper than the level
25255 of the allocator's access type.
25257 (Tagged_Membership): Modified to gives support to abstract interface
25260 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25262 (Descendant_Tag): New predefined function
25263 (Is_Descendant_At_Same_Level): New predefined function
25264 (Get_Access_Level): New private function
25265 (Set_Access_Level): New private procedure
25266 (IW_Membership): New function. Given the tag of an object and the tag
25267 associated with an interface, evaluate if the object implements the
25269 (Register_Interface_Tag): New procedure used to initialize the table of
25270 interfaces used by the IW_Membership function.
25271 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25272 of the dispatch table.
25273 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25274 table of interfaces of the parent.
25275 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25276 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25277 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25278 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25279 Ada 2005 semantics for the new predefined function.
25281 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25282 call to Descendant_Tag rather than Internal_Tag.
25283 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25284 the accessibility level of the attribute's Item parameter is not deeper
25285 than the level of the attribute's prefix type. Tag_Error is raised if
25286 the check fails. The check is only emitted for Ada_05.
25287 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25288 requested stream attribute, use it.
25289 (Expand_N_Attribute_Reference): If the designated type is an interface
25290 then rewrite the referenced object as a conversion to force the
25291 displacement of the pointer to the secondary dispatch table.
25292 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25293 is a dereference of an object with a constrained partial view.
25295 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25296 type is a class-wide type, emit a run-time check that the accessibility
25297 level of the returned object is not deeper than the level of the
25298 function's master (only when compiling for Ada 2005).
25300 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25301 Action_Nb_Arg): Add entries for new Get_Access_Level and
25302 Set_Access_Level routines in these tables.
25303 (Make_DT): Generate a call to set the accessibility level of the
25304 tagged type in its TSD.
25305 (Make_DT): Code cleanup. The functionality of generating all the
25306 secondary dispatch tables has been moved to freeze_record_type.
25307 (Make_Abstract_Interface_DT): Minor code cleanup.
25308 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25309 this subprogram implements a new algorithm that provides the
25310 same functionality and it is more clear in case of primitives
25311 associated with abstract interfaces.
25312 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25313 clean up, the functionality of this subprogram is now provided
25314 by Set_All_DT_Position.
25315 (Write_DT): New subprogram: a debugging procedure designed to be called
25316 within gdb to display the dispatch tables associated with a tagged
25318 (Collect_All_Interfaces): New subprogram that collects the whole list
25319 of interfaces that are directly or indirectly implemented by a tagged
25321 (Default_Prim_Op_Position): New subprogram that returns the fixed
25322 position in the dispatch table of the default primitive operations.
25323 (Expand_Interface_Actuals): New subprogram to generate code that
25324 displaces all the actuals corresponding to class-wide interfaces to
25325 reference the interface tag of the actual object.
25326 (Expand_Interface_Conversion): New subprogram. Reference the base of
25327 the object to give access to the interface tag associated with the
25328 secondary dispatch table.
25329 (Expand_Interface_Thunk): New subprogram that generates the code of the
25330 thunk. This is required for compatibility with the C+ ABI.
25331 (Make_Abstract_Interface_DT): New subprogram that generate the
25332 declarations for the secondary dispatch tables associated with an
25333 abstract interface.
25334 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25335 attribute for each primitive operation covering interface subprograms
25336 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25337 These subprograms were upgraded to give support to abstract interfaces
25339 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25340 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25341 RE_Set_Access_Level.
25342 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25343 Add support to call the followig new run-time subprograms:
25344 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25346 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25347 match its full declaration when both have an access definition with
25348 statically matching designated subtypes.
25349 (Analyze_Component_Declaration): Delete commented out code that was
25350 incorrectly setting the scope of an anonymous access component's type.
25351 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25352 an access discriminant when the containing type is nonlimited.
25353 (Make_Incomplete_Type_Declaration): Create an incomplete type
25354 declaration for a record type that includes self-referential access
25356 (Check_Anonymous_Access_Types): Before full analysis of a record type
25357 declaration, create anonymous access types for each self-referential
25359 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25360 an access component in this context is a Local_Anonymous_Access, for
25361 proper accessibility checks.
25362 (Access_Definition): Set properly the scope of the anonymous access type
25363 created for a stand-alone access object.
25364 (Find_Type_Of_Object): An object declaration may be given with an access
25366 (Complete_Subprograms_Derivation): New subprogram used to complete
25367 type derivation of private tagged types implementing interfaces.
25368 In this case some interface primitives may have been overriden
25369 with the partial-view and, instead of re-calculating them, they
25370 are included in the list of primitive operations of the full-view.
25371 (Build_Derived_Record_Type): Modified to give support to private
25372 types implemening interfaces.
25373 (Access_Definition): Reject ALL on anonymous access types.
25374 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25375 type derivation to occur at a deeper accessibility level than the
25377 For the case of derivation within a generic body however, disallow the
25378 derivation if the derived type has an ancestor that is a formal type
25379 declared in the formal part of an enclosing generic.
25380 (Analyze_Object_Declaration): For protected objects, remove the check
25381 that they cannot contain interrupt handlers if not declared at library
25383 (Add_Interface_Tag_Components): New subprogram to add the tag components
25384 corresponding to all the abstract interface types implemented by a
25385 record type or a derived record type.
25386 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25387 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25388 Process_Full_View, Record_Type_Declaration): Modified to give
25389 support to abstract interface types
25390 (Collect_Interfaces): New subprogram that collects the list of
25391 interfaces that are not already implemented by the ancestors
25392 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25393 when partial view has no discriminants and full view has defaults.
25394 (Constrain_Access): Reject a constraint on a general access type
25395 if the discriminants of the designated type have defaults.
25396 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25397 full-type declaration or subprogram spec. This is required to handle
25398 nested anonymous declarations.
25399 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25400 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25401 Process_Full_View, Record_Type_Declaration): Modified to give
25402 support to abstract interface types
25403 (Derive_Subprograms): Addition of a new formal to indicate if
25404 we are in the case of an abstact-interface derivation
25405 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25406 to the specification because it is requied to analyze all the
25407 identifiers found in a list of interfaces
25409 * debug.adb: Complete documentation of flag "-gnatdZ"
25411 * exp_ch3.adb: Implement config version of persistent_bss pragma
25412 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25413 testing for TSS presence to properly enforce visibility rules.
25414 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25415 Make_Abstract_Interfaces_DT to generate the secondary tables
25416 associated with abstract interfaces.
25417 (Build_Init_Procedure): Modified to initialize all the tags
25419 (Component_Needs_Simple_Initialization): Similar to other tags,
25420 interface tags do not need initialization.
25421 (Freeze_Record_Type): Modified to give support to abstract interface
25423 (Expand_N_Object_Declaration): Do not generate an initialization for
25424 a scalar temporary marked as internal.
25426 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25427 in-out parameter that is a component in an initialization procedure,
25428 whose constraint might depend on discriminants, and that may be
25429 misaligned because of packing or representation clauses.
25430 (Is_Legal_Copy): New predicate to determine whether a possibly
25431 misaligned in-out actual can actually be passed by copy/return. This
25432 is an error in case the type is by_reference, and a warning if this is
25433 the consequence of a DEC import pragma on the subprogram.
25434 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25436 (Expand_Inlined_Call): Mark temporary generated for the return value as
25437 internal, so that no useless scalar normalization is generated for it.
25438 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25439 null procedure can always be inlined.
25440 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25441 procedure, generate an explicit empty body for it.
25443 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25444 Given a type implementing an interface, returns the corresponding
25445 access_disp_table value.
25446 (Find_Interface_Tag): New subprogram. Given a type implementing an
25447 interface, returns the record component containing the tag of the
25449 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25450 previous ones that return the corresponding tag and access_disp_table
25452 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25453 is a predefined primitive operation.
25454 (Expand_Subtype_From_Expr): If the expression is a selected component
25455 within an initialization procedure, compute its actual subtype, because
25456 the component may depend on the discriminants of the enclosing record.
25458 * i-cpp.ads, i-cpp.adb:
25459 This package has been left available for compatibility with previous
25460 versions of the frontend. As part of the new layout this is now a
25461 dummy package that uses declarations available at a-tags.ads
25463 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25464 "constant access" and "aliased [constant] access" when not compiling
25466 Suppress Ada 2005 keyword warning if -gnatwY used
25467 (P_Identifier_Declarations): Add support for object declarations with
25468 access definitions.
25469 (Private_Extension_Declaration): Complete the documentation
25470 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25471 attribute in case of private extension declaration
25472 (P_Type_Declaration): Mark as "abstract" the type declarations
25473 corresponding with protected, synchronized and task interfaces
25474 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25475 for a subprogram or instance declaration.
25477 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25478 instantiation that is a dispatching operation has controlling access
25479 parameters that are null excluding.
25480 Save and restore Ada_Version_Explicit, for implementation of AI-362
25481 (Validate_Derived_Type_Instance): Add check for abstract interface
25483 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25484 the generic that is created to represent the formal package.
25485 (Analyze_Package_Instantiation): Instantiate body immediately if the
25486 package is a predefined unit that contains inlined subprograms, and
25487 we are compiling for a Configurable_Run_Time.
25488 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25489 If the program has a null default, generate an empty body for it.
25491 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25492 error message condition, null procedures are correctly detected now.
25493 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25494 for subprograms in the context of protected types. Instead, the
25495 indicator is examined in Sem_Ch9 while analysing the subprogram
25497 (Check_Overriding_Indicator): Check consistency of overriding indicator
25498 on subprogram stubs as well.
25499 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25501 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25502 the type of the first formal is a concurrent type, replace this type
25503 by the corresponding record type.
25504 (Analyze_Subprogram_Body): Undo the previous work.
25505 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25506 analysis of the prefix ends up analyzing the call itself, after which
25508 (Has_Interface_Formals): New subprogram subsidiary to analyze
25509 subprogram_specification that returns true if some non
25510 class-wide interface subprogram is found
25511 (New_Overloaded_Entity): Modified to give support to abstract
25513 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25514 access to subprograms must be recursive.
25515 (Is_Unchecked_Conversion): Improve the test that recognizes
25516 instantiations of Unchecked_Conversion, and allows them in bodies that
25517 are to be inlined by the front-end. When the body comes from an
25518 instantiation, a reference to Unchecked_Conversion will be an
25519 Expanded_Name, even though the body has not been analyzed yet.
25520 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25521 Must_Override and Must_Not_Override, to better express intent of AI.
25522 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25523 that it is consistent with the overrinding status of the subprogram
25525 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25527 If the subprogram is a null procedure, indicate that it does not need
25530 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25531 available through limited-with clauses.
25532 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25533 allowed as the last primitive of a tagged type if it has no previous
25535 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25536 to give support to abstract interface types
25538 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25539 in the case where the target type is an anonymous access type of an
25540 object or component (that is, when Is_Local_Anonymous_Access is true).
25541 Prevent the special checks for conversions of access discriminants in
25542 the case where the discriminant belongs to a nonlimited type, since
25543 such discriminants have their accessibility level defined in the same
25544 way as a normal component of an anonymous access type.
25545 (Resolve_Allocator): When an allocator's designated type is a class-wide
25546 type, check that the accessibility level of type given in the
25547 allocator's expression or subtype indication is not statically deeper
25548 than the level of the allocator's access type.
25549 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25550 name in a discriminant constraint of a record component.
25551 (Resolve_Explicit_Dereference): Do not check whether the type is
25552 incomplete when the dereference is a use of an access discriminant in
25553 an initialization procedure.
25554 (Resolve_Type_Conversion): Handle conversions to abstract interface
25556 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25557 abstract interface type is always valid.
25558 (Valid_Conversion): Modified to give support to abstract interface types
25559 (Resolve_Actuals): Enable full error reporting on view conversions
25560 between unrelated by_reference array types.
25561 The rule for view conversions of arrays with aliased components is
25562 weakened in Ada 2005.
25563 Call to obsolescent subprogram is now considered to be a violation of
25564 pragma Restrictions (No_Obsolescent_Features).
25565 (Check_Direct_Boolean_Operator): If the boolean operation has been
25566 constant-folded, there is nothing to check.
25567 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25568 check on possible violation of restriction No_Direct_Boolean_Operators
25569 until after expansion of operands, to prevent spurious errors when
25570 operation is constant-folded.
25572 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25573 Has_Compatible_Type): Modified to give support to abstract interface
25575 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25576 of a given type implements a given interface
25578 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25579 prefix is a parameterless function that returns an access_to_procedure.
25580 (Transform_Object_Operation): Handle properly function calls of the
25581 form Obj.Op (X), which prior to analysis appear as indexed components.
25582 (Analyze_One_Call): Complete the error notification to help new Ada
25584 (Analyze_Allocator): For an allocator without an initial value, where
25585 the designated type has a constrained partial view, a discriminant
25586 constraint is illegal.
25588 2005-06-14 Robert Dewar <dewar@adacore.com>
25590 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25591 do with treatment of Set_Col when positioned at end of line character.
25593 2005-06-14 Robert Dewar <dewar@adacore.com>
25595 * atree.adb: (Elist*): Protect against uninitialized field
25597 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25599 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25600 for an attribute reference that returns an access type.
25601 (Apply_Discriminant_Check): No need for check if (designated) type has
25602 constrained partial view.
25604 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25605 both bound checks, rather than a conjunction.
25606 (Insert_Valid_Check): If the expression is an actual that is an indexed
25607 component of a bit-packed array, force expansion of the packed element
25608 reference, because it is specifically inhibited elsewhere.
25610 2005-06-14 Vincent Celier <celier@adacore.com>
25612 * clean.adb (Clean_Project): Correctly delete executable specified as
25613 absolute path names.
25615 * make.adb (Gnatmake): Allow relative executable path names with
25616 directory information even when project files are used.
25617 (Change_To_Object_Directory): Fail gracefully when unable to change
25618 current working directory to object directory of a project.
25619 (Gnatmake): Remove exception handler that could no longer be exercized
25620 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25621 may be deallocated by Normalize_Arguments.
25622 (Collect_Arguments): Eliminate empty arguments
25624 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25625 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25626 (Check_Project): Return False when Project is No_Project. Return True
25627 when All_Projects is True.
25628 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25629 All_Projects to True.
25632 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25633 Javier Miranda <miranda@adacore.com>
25634 Thomas Quinot <quinot@adacore.com>
25635 Robert Dewar <dewar@adacore.com>
25636 Hristian Kirtchev <kirtchev@adacore.com>
25637 Gary Dismukes <dismukes@adacore.com>
25639 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25640 anonymous access types, to indicate that the accessibility level of
25641 the type is determined by that of the enclosing declaration.
25642 (Has_Persistent_BSS): New flag
25643 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25644 of this attribute with functions.
25645 (Is_Primitive_Wrapper): Remove the barrier.
25646 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25647 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25649 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25650 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25652 (Is_Pure_Unit_Access_Type): New flag
25653 (Abstract_Interfaces): Complete the assertion to cover all usages.
25654 (Set_Is_Interface): Complete the assertion to cover all usages.
25655 (Is_Primitive_Wrapper): New attribute.
25656 (Is_Obsolescent): Now applies to all entities (though it is only set
25657 for subprograms currently)
25658 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25659 which solves various problems concerning access subtypes.
25660 (Has_Persistent_BSS): New flag
25661 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25662 Remove these subprograms because this attribute is currently
25665 Has_Specified_Stream_Input (Flag190)
25666 Has_Specified_Stream_Output (Flag191)
25667 Has_Specified_Stream_Read (Flag192)
25668 Has_Specified_Stream_Write (Flag193)
25669 Present in all type and subtype entities. Set for a given view if the
25670 corresponding stream-oriented attribute has been defined by an
25671 attribute definition clause. When such a clause occurs, a TSS is set
25672 on the underlying full view; the flags are used to track visibility of
25673 the attribute definition clause for partial or incomplete views.
25674 (Is_Pure_Unit_Access_Type): New flag
25675 Clarify use of Is_Internal.
25676 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25677 internally generated to wrap the invocation of tasks and protected
25678 types that implement interfaces.
25679 (Implementation_Base_Type): Documentation correction
25680 (Is_Obsolescent): Now applies to all entities (though it is only set
25681 for subprograms currently)
25682 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25683 which solves various problems concerning access subtypes.
25685 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25686 for examined parameters. Identify unequal parameter list lengths as
25687 non-conformant parameters.
25688 (Overriding_Possible): Do not check for "All" qualifier in declaration
25689 of controlling access parameter, following prescription of AI-404.
25690 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25691 that build the procedure body that wraps an entry invocation
25692 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25693 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25694 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25695 give support to abstract interface types
25697 * freeze.adb (Freeze_Entity): Issue error message if
25698 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25699 type has no storage pool (Ada 2005) AI-366.
25700 Also modified to give support to abstract interface types
25701 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25702 Inline_Always pragma.
25704 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25705 now begin an entry declaration.
25706 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25707 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25708 a subprogram declaration preceded by an overriding indicator.
25709 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25710 declarations or subprogram declarations preceded by reserved words
25711 "not" or "overriding".
25712 (P_Entry_Declaration): Update comment. Parse and check overriding
25713 indicator, set semantic flags of entry declarations.
25714 (P_Task): New error message in case of private applied
25715 to a task type declaration.
25716 (P_Protected): New error message in case of private applied
25717 to a task type declaration.
25719 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25720 in which the full view of a type implementing an interface is a
25722 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25723 Declare_Inherited_Private_Subprograms): If an explicit operation
25724 overrides an operation that is inherited in the private part, mark the
25725 explicit one as overriding, to enable overriding indicator checks.
25726 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25727 full view to partial view, to simplify handling in back-end.
25729 * sprint.adb: Print interface lists where needed: derived types,
25730 protected types, task types.
25731 output "is null" for null procedures. Part of implementation of
25733 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25734 relaxation of rules for access types in pure, shared passive partitions.
25736 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25737 first read discriminants into temporary objects, performing checks on
25738 the read values, then possibly performing discriminant checks on the
25739 actual (if it is constrained), and only finally reading the components
25740 into a constrained temporary object.
25741 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25742 case of reading discriminants of a mutable record type to recognize
25743 the new form of the code generated by
25744 Build_Mutable_Record_Read_Procedure.
25746 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25747 of a simple call to Make_TSS_Name.
25748 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25749 buffer, in order for Is_TSS to work correctly on local TSS names.
25751 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25752 Is_Local_Anonymous_Access to check legaliy of attributes in the
25753 context of access components and stand-alone access objects.
25754 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25755 treated as available for a limited private type if there is an
25756 attribute_definition_clause that applies to its full view, but not in
25757 other cases where the attribute is available for the full view
25758 (specifically, the sole fact that the full view is non-limited does not
25759 make the attribute available for the partial view).
25760 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25761 non-overloaded intrinsic subprogram.
25762 (Check_Stream_Attribute): Reject an attribute reference for an
25763 unavailable stream attribute even if the prefix is not a limited type
25764 (case of a 'Input attribute reference for an abstract, non-classwide
25766 (Stream_Attribute_Available): New function to determine whether a stream
25767 attribute is available at a place.
25768 (Check_Attribute): Use Stream_Attribute_Available instead of just
25769 testing for TSS presence on the implementation base type.
25770 (Analyze_Attribute): Modified to give support to task interfaces.
25771 (Analyze_Access_Attribute): Add error check for use of an Access (or
25772 Unrestricted_Access) attribute with a subprogram marked as
25774 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25775 an Address attribute with a subprogram marked as Inline_Always.
25776 Update Eval_Attribute to handle new value of Width from AI-395
25778 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25779 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25780 Factor common code across the stream-oriented attribute circcuits into
25781 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25782 processing is functionally identical to the previous duplicated one,
25783 except that an expression that denotes an abstract subprogram will now
25784 be rejected, as mandated by AI-195 item 5.
25786 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25787 Is_Local_Anonymous_Access to apply accessibility checks to access
25788 components and stand-alone access objects.
25789 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25791 (Is_Potentially_Persistent_Type): New function
25792 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25793 a heap-object whose type has a constrained partial view, the object is
25794 unconstrained and the component may depend on a discriminant, making its
25797 * sinfo.ads, sinfo.adb
25798 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25799 (Must_Override): Flag applicable to N_Entry_Declaration.
25800 Indicate that interface_list can appear in single task and single
25801 protected declarations.
25802 Replace Is_Overriding and Not_Overriding with Must_Override and
25803 Must_Not_Override, to better express intent of AI.
25804 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25805 of an overriding indicator in a subprogram or instance.
25806 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25807 Add the overriding indicator [[not] overriding] construct to the
25808 following grammar productions:
25810 GENERIC_INSTANTIATION
25811 SUBPROGRAM_SPECIFICATION
25813 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25814 can start with an overriding indicator.
25816 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25817 flags accordingly on subrogram specifications or instances.
25820 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25821 overriding_indicator, if present, is consistent with status of spec.
25822 Improve error message for null-excluding checks on controlling access
25824 (Check_In_Previous_With_Clause): Protect the frontend against
25825 previously reported critical errors in the context clauses.
25826 Save and restore Ada_Version_Explicit, for implementation of AI-362
25827 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25828 operation verify that controlling formals of the renamed entity that
25829 are access parameters are explicitly non-null.
25830 (Find_Expanded_Name): Improve error message when prefix is an illegal
25831 reference to a private child unit.
25833 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25834 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25835 Rewrite to correspond to new wide character names in AI-395
25837 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25838 default procedures.
25840 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25841 Robert Dewar <dewar@adacore.com>
25843 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25844 code, not on the bodies of predefined operations, to cut down on
25847 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25849 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25850 be expanded in place. The size computation does not require a
25851 subtraction, which would raise an exception on a compiler built with
25852 assertions when the upper bound is Integer'first.
25853 (Flatten): For an array of composite components, take into account the
25854 size of the components to determine whether it is safe to expand the
25855 array into a purely positional representation.
25857 2005-06-14 Thomas Quinot <quinot@adacore.com>
25859 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25860 denoting a formal parameter into account.
25862 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25864 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25865 the entry_call alternative of a conditional entry call, wrap the
25866 conditional entry call itself.
25868 2005-06-14 Nicolas Setton <setton@adacore.com>
25869 Ed Schonberg <schonberg@adacore.com>
25871 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25872 the "simple_choice" member in a variant record, in accordance with the
25873 description in the package spec: the information output for a constant
25874 should be "S number", not "SS number".
25875 (Get_Encoded_Name): Return at once if not generating code. Avoids name
25876 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25878 2005-06-14 Thomas Quinot <quinot@adacore.com>
25880 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25881 RACW without any primitives, do not generate the if statement for
25882 dispatching by name in the PolyORB/DSA case, as it would be malformed
25883 (it would have an Elsif_Parts list that is not No_List, but with a
25886 2005-06-14 Robert Dewar <dewar@adacore.com>
25888 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25890 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25892 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25893 can determine whether pragma Suppress_Exception_Locations is in effect.
25895 * utils2.c (build_call_raise): Do not pass the file name to the
25896 exception handler if pragma Suppress_Exception_Locations is in effect.
25897 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25899 2005-06-14 Emmanuel Briot <briot@adacore.com>
25901 * g-debpoo.adb (Deallocate, Dereference): Improve output.
25903 2005-06-14 Nicolas Roche <roche@adacore.com>
25905 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25907 (Next_Level): Fix minor bug in handling of ../dir case
25908 (Read): Add dir separator to Directory name so that "" is understood as
25911 2005-06-14 Pascal Obry <obry@adacore.com>
25913 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25914 releasing the items.
25916 2005-06-14 Vincent Celier <celier@adacore.com>
25917 Cyrille Comar <comar@adacore.com>
25919 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25920 with output file descriptor and with output file name.
25921 (Dup, Dup2): Now global procedures as they are used by two subprograms
25922 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25924 2005-06-14 Thomas Quinot <quinot@adacore.com>
25927 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25929 (Create_Selector): Bind listening socket used to create the signalling
25930 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25931 Set listen backlog to 1 to ensure that we detect socket theft by a
25932 failure of our own connect(2) call.
25933 (Check_Selector): Improve documentation of the selector mechanism.
25934 (Broadcast_Inet_Addr): New constant.
25936 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25938 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25939 type which turns out to be an incomplete and incorrect fix.
25940 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25941 of the type is declared in a record (for determination of insertion
25943 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25944 a private type and ensure that the primary entity is used for the type
25945 of the newly created function's V formal by taking the Etype of the
25948 2005-06-14 Javier Miranda <miranda@adacore.com>
25949 Jose Ruiz <ruiz@adacore.com>
25950 Robert Dewar <dewar@adacore.com>
25951 Ed Schonberg <schonberg@adacore.com>
25953 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25954 that indicates if we are parsing a compilation unit found in a
25955 limited-with clause.
25956 It is use to avoid the circularity check.
25958 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25959 we are parsing a compilation unit found in a limited-with clause. This
25960 is use to avoid the circularity check.
25962 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25963 unit as a consequence of parsing a limited-with clause. This is used
25964 to avoid the circularity check.
25966 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25967 (Analyze_Context): Limited-with clauses are now allowed
25968 in more compilation units.
25969 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25970 againts previously reported critical errors in context clauses
25971 (Install_Limited_Withed_Unit): Code cleanup plus static detection
25972 of two further errors: renamed subprograms and renamed packages
25973 are not allowed in limited with clauses.
25974 (Install_Siblings): Do not install private_with_clauses on the package
25975 declaration for a non-private child unit.
25976 (Re_Install_Parents): When a parent of the subunit is reinstalled,
25977 reset visibility of child units properly.
25978 (Install_Withed_Unit): When a child unit appears in a with_clause of its
25979 parent, it is immediately visible.
25981 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25982 Emmanuel Briot <briot@adacore.com>
25984 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25985 declared within an inlined body as referenced, to prevent spurious
25987 (Output_One_Ref): If an entity renames an array component, indicate in
25988 the ALI file that this aliases (renames) the array. Capture as well
25989 function renamings that rename predefined operations.
25990 Add information about generic parent for package and subprogram
25992 (Get_Type_Reference): For a subtype that is the renaming of an actual in
25993 an instantiation, use the first_subtype to ensure that we don't generate
25994 cross-reference information for internal types.
25995 For objects and parameters of a generic private type, retain the '*'
25996 indicator to distinguish such an entity from its type.
25998 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25999 to store information about instantiated entities.
26001 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26004 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26005 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26008 2005-06-10 Doug Rupp <rupp@adacore.com>
26009 Arnaud Charlet <charlet@adacore.com>
26010 Olivier Hainque <hainque@adacore.com>
26011 Jose Ruiz <ruiz@adacore.com>
26013 * Make-lang.in: Add initialize.o when needed.
26014 Remove obsolete references to RT_FLAGS.
26015 Add missing dependencies for sdefault.o
26017 * initialize.c: New file.
26019 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26020 [VMS] cond_signal_table: Fix problem in declaration.
26021 [VMS] __gnat_error_handler: rewrite.
26022 Move all __gnat_initialize() routines to initialize.c
26023 Specialize the former "hpux" section to "hppa hpux", as this is what the
26024 section really is here for and we now have other hpux ports that need
26025 different contents.
26026 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26027 function for this target. Adjust PC by one in the machine context. This
26028 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26029 it is more reliable to do that in the signal handler itself.
26030 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26031 flags, so that the handler is passed the context structure to adjust
26032 prior to the raise.
26033 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26034 SA_SIGINFO sigaction should look like. Call
26035 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26036 Machine_State_Operations stuff.
26037 Add conditional code so that the x86_64 is also supported.
26039 2005-06-14 Pascal Obry <obry@adacore.com>
26041 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26044 2005-06-14 Robert Dewar <dewar@adacore.com>
26046 * opt.ads, opt.adb: New flags for persistent_bss mode
26047 Add Ada_Version_Explicit, for implementation of AI-362
26048 Add Assertions_Enabled_Config and associated handling
26049 Needed since setting can be changed with Assertion_Policy pragma
26050 Add new flag Warn_On_Ada_2005_Compatibility
26052 * switch-c.adb: Recognize -gnatwy/Y
26053 Set Ada_Version_Explicit, for implementation of AI-362
26054 The -gnatg switch now includes -gnatyu
26056 * usage.adb: Add -gnatwy/Y
26057 Remove wrong asterisk on -gnatwX line
26058 Add line for -gnatyu switch
26060 2005-06-14 Vincent Celier <celier@adacore.com>
26062 * osint.adb (Add_Default_Search_Dirs): Put source and object
26063 directories of project files before directories coming from
26064 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26066 2005-06-14 Robert Dewar <dewar@adacore.com>
26069 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26070 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26072 2005-06-14 Vincent Celier <celier@adacore.com>
26074 * prep.adb (Preprocess): Ignore error when scanning the first token of
26077 2005-06-14 Vincent Celier <celier@adacore.com>
26079 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26080 (Check_Stand_Alone_Library): If the specified reference symbol file does
26081 not exist, only issue a warning when the symbol policy is not
26082 Controlled. And, when symbol policy is Compliant, set the symbol
26083 policy to Autonomous.
26085 2005-06-14 Vincent Celier <celier@adacore.com>
26087 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26088 when the project file in a with clause is not the last one, that is the
26089 project file name is followed by a comma.
26090 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26091 (Print): Issue list of project files separated by commas in with clauses
26092 according to the values returned by Is_Not_Last_In_List.
26093 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26094 (Set_Is_Not_Last_In_List): New procedure
26096 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26098 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26100 2005-06-14 Robert Dewar <dewar@adacore.com>
26102 * scng.adb: Add call to new Check_EOF routine
26103 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26104 Add some comments regarding wide character handling
26106 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26108 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26110 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26111 characters are now considered graphic characters and hence yield false
26114 * nmake.adt: Modify header so that xnmake does not generate output
26115 files with multiple blank lines.
26117 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26118 not have an extra blank line
26120 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26122 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26123 expression when the component type is an anonymous access type to
26124 ensure that appropriate accessibility checks are done.
26126 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26127 expression of an assignment when the target object is of an anonymous
26128 access type. This ensures that required accessibility checks are done.
26129 (One_Bound): Move the check for type Universal_Integer to
26131 (Process_Bounds): Check whether the type of the preanalyzed range is
26132 Universal_Integer, and in that case set Typ to Integer_Type prior
26133 to setting the type of the original range and the calls to One_Bound.
26135 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26137 * sem_case.adb (Expand_Others_Choice): Improve warning.
26139 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26141 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26142 constraint of full view if present, when other type is discriminated.
26143 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26144 when the pointer is known to be non-null, and emit appropriate warning.
26146 2005-06-14 Robert Dewar <dewar@adacore.com>
26147 Ed Schonberg <schonberg@adacore.com>
26150 * sem_prag.adb: Implement pragma Persistent_BSS
26151 Remove obsolete pragma Persistent_Data, Persistent_Object
26152 Set Ada_Version_Explicit, for implementation of AI-362
26153 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26154 Add processing for pragma Pure_05 and Preelaborate_05
26155 Add processing for Assertion_Policy pragma
26156 Add pragma identifiers for Assert
26157 (Analyze_Pragma, case Assert): Check number of arguments
26158 (Process_Inline): Additional guard against an illegal program, where the
26159 argument of the pragma is undefined, and warnings on redundant
26160 constructs are enabled.
26161 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26162 Ada_05 to this pragma, specifying that the pragma is only active in
26164 (Check_Arg_Order): New procedure
26165 Add appropriate calls to this procedure throughout
26166 Also throughout, check entity name before doing any other checks
26168 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26169 Remove obsolete pragma Persistent_Data, Persistent_Object
26170 Add entries for pragma Pure_05 and Preelaborate_05
26171 Add entries for Assertion_Policy pragma and associated names
26172 Add some names for pragma argument processing
26174 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26176 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26178 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26179 appears within a negation (either from source or as a rewriting of
26180 inequality) adjust text of warning accordingly.
26182 2005-06-14 Thomas Quinot <quinot@adacore.com>
26184 * s-strxdr.adb: Follow AI95-00132
26186 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26188 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26190 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26191 Jose Ruiz <ruiz@adacore.com>
26193 * s-tposen.adb, s-tpobop.adb
26194 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26196 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26197 there is no violation of the Max_Entry_Queue_Length restriction (if it
26198 has been set); Program_Error is raised otherwise.
26199 (Requeue_Call): Before requeuing the task on the target entry queue we
26200 check that there is no violation of the Max_Entry_Queue_Length
26201 restriction (if it has been set); Program_Error is raised otherwise.
26203 2005-06-14 Robert Dewar <dewar@adacore.com>
26205 * styleg.adb: Fix several remaining problems in -gnatyu switch
26206 Blank line count not reset at start
26207 Scanning outside source buffer in some cases
26208 Confusing message for blanks at end of file
26209 Non-empty blank lines not recognized
26211 * nmake.adt: Modify header so that xnmake does not generate output
26212 files with multiple blank lines.
26214 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26215 not have an extra blank line
26217 2005-06-14 Sergey Rybin <rybin@adacore.com>
26219 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26221 2005-06-14 Doug Rupp <rupp@adacore.com>
26222 Vincent Celier <celier@adacore.com>
26224 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26227 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26228 Remove "Library" command.
26229 Change keyword for style check -gnatyd from NOCRLF to
26231 Remove useless second style check keyword NONE
26232 Remove help documentation for inexistent style check keyword
26234 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26235 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26236 Add UNNECESSARY_BLANK_LINES for -gnatyu
26237 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26239 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26241 2005-06-14 Vincent Celier <celier@adacore.com>
26243 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26244 gprmake was invoked with -d.
26245 (Compile_Sources): If -d was used, output the "completed ..." message
26246 for each compilation.
26247 (Scan_Arg): Recognize new switch -d
26248 When -c and at least one main is specified, set
26249 Unique_Compile to True to guarantee that no other sources will be
26252 2005-06-14 Matthew Heaney <heaney@adacore.com>
26254 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26255 * a-swuwha.ads, a-swuwha.adb: New files
26257 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26258 * a-szuzha.ads, a-szuzha.adb: New files.
26260 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26261 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26262 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26263 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26264 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26265 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26266 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26267 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26268 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26269 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26272 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26273 Olivier Hainque <hainque@adacore.com>
26274 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26275 Pascal Obry <obry@adacore.com>
26277 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26279 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26280 making a temporary around a procedure call because of non-addressable
26282 (process_freeze_entity): If entity is a private type, capture size
26283 information that may have been computed for the full view.
26284 (tree_transform, case N_Allocator): If have initializing expression,
26285 check type for Has_Constrained_Partial_View and pass that to
26287 (tree_transform, case N_Return_Statement): Pass extra arg to
26290 * decl.c (annotate_value): Remove early return if -gnatR is not
26292 (gnat_to_gnu_field): Don't make a packable type for a component clause
26293 if the position is byte aligned, the field is aliased, and the clause
26294 size isn't a multiple of the packable alignment. It serves no useful
26295 purpose packing-wise and would be rejected later on.
26296 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26299 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26300 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26302 (create_concat_name): Idem.
26304 2005-06-10 Robert Dewar <dewar@adacore.com>
26305 Eric Botcazou <ebotcazou@adacore.com>
26306 Ben Brosgol <brosgol@adacore.com>
26307 Cyrille Comar <comar@adacore.com>
26308 Sergey Rybin <rybin@adacore.com>
26309 Pascal Obry <obry@adacore.com>
26311 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26312 Document second argument (Ada_05) of pragma Obsolescent
26313 Add note that call to subprogram marked with pragma Obsolescent
26314 is now considered to be a violation of program Restrictions
26315 (No_Obsolescent_Features).
26316 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26317 that only machine-dependent attributes are supported.
26320 Commented out menu lines and empty section for gnatclean examples
26322 Fix some over long lines
26323 Clarify and enhance documentation of ADA_PROJECT_PATH.
26324 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26325 Mention new switch -fcallgraph-info.
26326 Mention new switch -fstack-usage.
26327 For gnatpp, replace '-notab' with '-N' and add this option to Index
26328 Corrected VMS example.
26329 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26331 Add documentation for -gnatyu switch (unnecessary blank lines)
26332 Document new switch -U for GNAT PRETTY and GNAT METRIC
26333 Add note about Stdcall being handled as C convention on non Windows OS.
26334 Remove some junk typo in description of gnatbind -S switch
26335 Remove reference to Extensions_Allowed pragma
26336 Document the new order of the directories to be searched (source and
26337 object directories of project files before directories in ADA_*_PATH
26338 environment variables.
26340 * g-trasym.ads: Document that IRIX is supported
26342 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26344 * Makefile.in: Add initialize.o when needed.
26345 Adapt to new VMS package body Symbols and subunits
26346 No specialized version of a-sytaco is needed for VxWorks.
26348 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26349 * a-zchara.ads, a-widcha.ads: New files.
26351 * system-hpux-ia64.ads: New file.
26353 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26354 is imported from the VxWorks kernel.
26356 2005-06-14 Robert Dewar <dewar@adacore.com>
26358 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26359 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26360 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26361 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26362 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26363 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26364 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26365 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26366 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26367 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26368 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26369 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26371 2005-06-14 Thomas Quinot <quinot@adacore.com>
26373 * xeinfo.adb: Fix typo in comment
26375 2005-06-14 Javier Miranda <miranda@adacore.com>
26377 * repinfo.ads: Fix typo in comment
26379 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26381 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26382 Parent_Tag is now in the visible part of Ada.Tags).
26383 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26384 using imported function.
26386 2005-06-14 Bernard Banner <banner@adacore.com>
26388 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26389 also apply for handling support for VxSim 653.
26391 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26393 * xsnames.adb: Add automatic generation of snames.h.
26395 2005-06-14 Thomas Quinot <quinot@adacore.com>
26397 * gen-soccon.c: Add IP_MULTICAST_IF constant
26398 Minor reformatting and adjustments to prevent warnings.
26400 2005-06-14 Pascal Obry <obry@adacore.com>
26402 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26404 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26406 * trans.c (gnat_gimplify_expr): Call
26407 recompute_tree_invarant_for_addr_expr when we change
26408 the operand of the ADDR_EXPR.
26410 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26412 * misc.c: Don't include errors.h.
26414 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26416 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26418 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26420 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26422 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26424 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26427 * Makefile.in: Make TGT_LIB behave correctly.
26429 2005-04-23 DJ Delorie <dj@redhat.com>
26431 * misc.c: Adjust warning() callers.
26433 2005-04-16 Laurent Guerby <laurent@guerby.net>
26436 * a-nudira.adb (Value): Check for valid string.
26437 * a-nuflra.adb (Value): Likewise.
26439 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26441 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26443 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26445 * adaint.c, init.c, tracebak.c: Fix comment typos.
26446 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26448 2005-04-07 Laurent Guerby <laurent@guerby.net>
26449 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26451 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26452 * system-hpux.ads: Define Signed_Zeros to be True.
26453 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26455 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26457 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26458 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26461 2005-03-30 Tom Tromey <tromey@redhat.com>
26463 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26465 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26467 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26469 2005-03-29 Robert Dewar <dewar@adacore.com>
26471 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26472 fixed-point expression has value that is not a multiple of the Small
26475 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26477 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26480 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26482 2005-03-29 Vincent Celier <celier@adacore.com>
26484 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26485 (Build_Dynamic_Library.Version_String): Return the empty string when
26486 Lib_Version is empty or when the symbol policy is not Autonomous.
26488 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26489 a symbol is not in the reference symbol file, increase the Major ID
26490 and set the Minor ID to 0.
26491 Use gsmatch=lequal instead of gsmatch=equal
26493 2005-03-29 Doug Rupp <rupp@adacore.com>
26495 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26496 name and translate.
26498 2005-03-29 Javier Miranda <miranda@adacore.com>
26500 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26501 (Inherit_DT): The first formal has been redefined as a Tag.
26502 This allows us the removal of the subprogram Get_TSD.
26503 (TSD): Replace the call to Get_TSD by the actual code.
26505 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26506 (Make_DT): Upgrade the call to Inherit_TSD according to the
26507 new interface: the first formal is now a Tag.
26509 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26510 redefined as a Tag.
26511 This change allows us to remove the subprogram Get_TSD.
26512 (CPP_Get_TSD): Subprogram removed.
26513 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26515 * rtsfind.ads: Remove support to call the run-time
26518 2005-03-29 Robert Dewar <dewar@adacore.com>
26520 * errutil.adb, errout.adb:
26521 Minor comment updates on Line_Terminator references
26523 * par-ch10.adb: Add ??? comment about line terminator
26525 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26526 (check dos line terminator).
26527 (Check_Line_Max_Length): New procedure, split off from the existing
26528 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26529 be properly recognized.
26531 * styleg.adb: Add ??? comment for line terminator reference
26533 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26534 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26536 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26537 (check dos line terminator).
26538 (Check_Line_Max_Length): New procedure, split off from the existing
26539 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26540 be properly recognized.
26542 * stylesw.ads, stylesw.adb:
26543 Add handling for new -gnatyd switch (check dos line terminator)
26545 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26546 Recognize -gnatwb/-gnatwB switches
26547 Include Warn_On_Bad_Fixed_Value for -gnatg
26550 Add line for new -gnatyd switch (check dos line terminator)
26552 * usage.adb: Add lines for -gnatwb/-gnatwB
26554 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26556 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26558 * gnat_ugn.texi: Fix overlong lines
26559 Document new -gnatyd switch
26560 Document new -gnatwb/-gnatwB switches
26562 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26564 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26565 order to retrieve the component list of the type, before examining
26566 individual components.
26568 * sem_type.adb (Covers): Types are compatible if one is the base type
26569 of the other, even though their base types might differ when private
26570 views are involved.
26572 2005-03-29 Thomas Quinot <quinot@adacore.com>
26574 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26575 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26576 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26577 analyzed if expansion is disabled (which could otherwise cause spurious
26578 error messages if expansion has been disabled due to previous
26579 (unrelated) errors).
26581 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26582 is disabled, the entity denoted by the argument is the access type
26583 itself, not an underlying record type, so there is no need to go back
26584 to the Corresponding_Remote_Type.
26586 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26587 Robert Dewar <dewar@adacore.com>
26589 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26590 expand a call to an instance of
26591 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26592 Constructor actual of the instance. A class-wide membership
26593 check is also generated, to ensure that the tag passed to the instance
26594 denotes a type in the class.
26595 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26596 of Name_Generic_Dispatching_Constructor.
26598 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26599 05 unit for AI-260-02).
26601 * a-tgdico.ads: New file.
26603 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26604 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26606 * snames.ads, snames.adb (Preset_Names): Add entry for
26607 Generic_Dispatching_Constructor.
26610 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26611 character type cases.
26612 (Analyze_Subprogram_Renaming): Add special handling for
26613 the case of renaming of stream attributes when the renaming denotes a
26614 generic formal subprogram association for an abstract formal subprogram.
26615 Check that the attribute is a primitive stream attribute (and not
26616 a class-wide stream attribute) and then rewrite the attribute name
26617 as the name of the appropriate compiler-generated stream primitive.
26619 2005-03-29 Robert Dewar <dewar@adacore.com>
26621 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26623 (Is_Possibly_Unaligned_Object): Correct typo that
26624 resulted in inaccurate result for unaligned scalars within records.
26626 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26628 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26629 itype whose parent is controlled and not yet frozen, do not create a
26630 freeze node for the itype if expansion is disabled.
26632 2005-03-29 Vincent Celier <celier@adacore.com>
26634 * make.adb (Gnatmake): Don't fail if the main project file is declared
26635 as having no Ada sources. Do not display message "no sources to
26636 compile" in quiet output.
26638 2005-03-29 Doug Rupp <rupp@adacore.com>
26640 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26643 2005-03-29 Robert Dewar <dewar@adacore.com>
26645 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26648 2005-03-29 Robert Dewar <dewar@adacore.com>
26650 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26651 missing TYPE Improve the error message generated when compiling a
26652 limited interface in Ada83 or Ada95 mode.
26654 2005-03-29 Robert Dewar <dewar@adacore.com>
26656 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26657 rather than proceed ahead using a junk attribute name.
26659 2005-03-29 Vincent Celier <celier@adacore.com>
26661 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26663 * prj-part.adb (Parse_Single_Project): Set the location of a project
26664 on its defining identifier, rather than on the reserved word "project".
26666 * prj-proc.adb (Expression): Adapt to the fact that default of external
26667 references may be string expressions, not always literal strings.
26668 (Recursive_Process): Set Display_Name equal to Name
26669 when Location is No_Location, that is when there is no actual file.
26670 Get the Display_Name of the project from the source, when it is not a
26672 (Process): Use the Display_Name in error messages
26674 * prj-strt.adb (External_Reference): Allow default to be string
26675 expressions, not only literal strings.
26677 2005-03-29 Vincent Celier <celier@adacore.com>
26679 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26680 file and the reference symbol file to be the same file.
26682 2005-03-29 Thomas Quinot <quinot@adacore.com>
26684 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26685 forbid conversion of a local access-to-subprogram type to a remote one.
26687 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26688 equivalent type for a remote access-to-subprogram type, go back to the
26689 original RAS entity when displaying an error message, so the casing is
26690 the original source casing.
26692 2005-03-29 Robert Dewar <dewar@adacore.com>
26694 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26697 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26699 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26700 subtype if code is being pre-analyzed, to prevent un-expanded
26701 references to protected formals, among others.
26702 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26703 interpretation that can be a call, include the result of the call as a
26704 possible interpretation of the dereference.
26706 * sem_ch5.adb (Process_Bounds): Determine type of range by
26707 pre-analyzing a copy of the original range, and then analyze the range
26708 with the expected type.
26710 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26711 with an overloaded prefix where not all interpretations yield an
26712 access to subprogram, do not rewrite node as a call.
26713 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26714 the node as a call once the context identifies the interpretation of
26715 the prefix whose call yields the context type.
26716 (Valid_Conversion): For the case of a conversion between
26717 local access-to-subprogram types, check subtype conformance using
26718 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26719 detailed error message.
26721 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26723 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26724 indicator, indicate that the formal can never be null.
26725 (Process_Formals): If a formal has a non_null indicator, insert the
26726 resulting subtype immediately before the enclosing subprogram decl,
26727 and not at the beginning of the corresponding declarative part, to
26728 prevent access before elaboration (Ada2005).
26730 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26733 * utils.c (finish_record_type): Use variable_size when setting sizes.
26735 2005-03-29 Robert Dewar <dewar@adacore.com>
26737 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26738 guarantee Unix style line terminators for the output files, even when
26739 running on windows.
26741 2005-03-29 Robert Dewar <dewar@adacore.com>
26743 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26744 buffer if an exception is raised.
26746 2005-03-29 Ed Falis <falis@adacore.com>
26748 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26751 2005-03-29 Robert Dewar <dewar@adacore.com>
26753 * sem_util.ads: Minor reformatting
26754 * gnat_rm.texi: Minor editing.
26756 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26758 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26759 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26761 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26763 * adaint.c (__gnat_portable_spawn): Adjust cast.
26765 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26767 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26769 2005-03-17 Pascal Obry <obry@adacore.com>
26771 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26774 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26775 Reimplement under Win32 using Win32 API.
26777 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26780 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
26782 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26783 (DECL_RENAMED_OBJECT): New accessor macro.
26784 (SET_DECL_RENAMED_OBJECT): New setter macro.
26786 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26787 object in all cases. Attach the renamed object to the VAR_DECL.
26788 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26789 field is not prescribed.
26791 * misc.c (gnat_handle_option): Handle -gnatO separately.
26792 (gnat_print_decl) <VAR_DECL>: New case.
26793 Print the DECL_RENAMED_OBJECT node.
26795 * lang.opt: Declare separate -gnatO option.
26797 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26798 pointer, replace it with the renamed object.
26799 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26800 pointer type if the source is not a fat pointer type whose underlying
26801 array has the same non-zero alias set as that of the destination array.
26803 2005-03-17 Javier Miranda <miranda@adacore.com>
26805 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26806 (Get_Inheritance_Depth): Removed.
26807 (Set_Inheritance_Depth): Removed.
26809 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26810 subprogram Get_Expanded_Name because it is not referenced by the
26813 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26814 (CPP_Get_Inheritance_Depth): Removed.
26815 (CPP_Set_Inheritance_Depth): Removed.
26817 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26819 2005-03-17 Robert Dewar <dewar@adacore.com>
26821 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26822 3, since we now expect GCC 3 to do all the work.
26824 2005-03-17 Javier Miranda <miranda@adacore.com>
26826 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26827 of one barrier to avoid wrong usage of this attribute.
26829 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26830 First_Private_Entity.
26832 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26833 the subprogram against wrong usage.
26834 Adapt the code to traverse the entities in the
26835 scope of a record_type because in addition to its usage regarding
26836 packages, this subprogram is also called by Expand_N_Freeze_Entity
26837 to install the visible declarations of the enclosing scope of a
26838 record_type_with_private to establish the proper visibility before
26839 freezing the entity and related subprograms.
26841 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26843 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26846 2005-03-17 Thomas Quinot <quinot@adacore.com>
26848 * exp_ch3.adb (Check_Attr): New subprogram.
26849 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26850 into a new Check_Attr subprogram, in order to provide a more
26851 explanatory error message (including the name of the missing attribute).
26852 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26853 subprogram determines whether a default implementation exists for a
26854 given stream attribute.
26855 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26856 Determine whether to generate a default implementation for each stream
26857 attribute separately, as this depends on the specific attribute.
26859 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26860 limited extension where a stream attribute is missing for a limited
26861 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26862 generate a bogus reference to the missing attribute to prevent
26863 cascaded errors. Instead, generate a null statement.
26865 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26866 available for a limited type if it has been specified for an ancestor
26869 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26871 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26872 entity is an operator.
26874 2005-03-17 Thomas Quinot <quinot@adacore.com>
26876 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26877 spec, to make this predicate available to other units.
26879 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26882 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26883 when no distribution runtime library is available.
26885 * sem_res.adb, sem_dist.adb: Disable expansion of remote
26886 access-to-subprogram types when no distribution runtime library is
26888 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26889 predicate available to other units.
26891 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26892 spec, to make this predicate available to other units.
26894 2005-03-17 Vincent Celier <celier@adacore.com>
26896 * make.adb (Insert_Project_Sources): Make sure the Q is always
26899 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26900 the default for the tree, not the global default naming.
26902 * prj-proc.adb (Recursive_Process): No need to put the default naming
26903 in the project data, it's already there.
26905 2005-03-17 Doug Rupp <rupp@adacore.com>
26907 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26909 * 5xcrtl.ads: Renamed to...
26910 * s-crtl-vms64.ads: ...this new file
26912 2005-03-17 Robert Dewar <dewar@adacore.com>
26915 * namet.adb (Copy_One_Character): Set proper wide character encoding
26916 for upper half character if we have upper half encoding.
26918 2005-03-17 Robert Dewar <dewar@adacore.com>
26920 * par.adb (Par): Improved msg for attempt to recompile predefined unit
26922 2005-03-17 Thomas Quinot <quinot@adacore.com>
26924 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26925 tagged limited type, the TSS is a newly built renaming declaration:
26926 insert it using Set_TSS, not Copy_TSS.
26928 2005-03-17 Javier Miranda <miranda@adacore.com>
26930 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26931 Try_Object_Operation): Analyze the object that is accessible
26932 through the prefix of the subprogram call before we apply
26933 the transformation of the object-operation notation.
26935 2005-03-17 Jose Ruiz <ruiz@adacore.com>
26937 * s-taprob.adb (Initialize_Protection): Initialize the protected
26938 object's owner to Null_Task.
26939 (Lock): If pragma Detect_Blocking is in effect and the caller of this
26940 procedure is already the protected object's owner then Program_Error
26941 is raised. In addition the protected object's owner is updated.
26942 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26943 of this procedure is already the protected object's owner then
26944 Program_Error is raised.
26945 In addition the protected object's owner is updated.
26946 (Unlock): Remove the ownership of the protected object.
26948 * s-taprob.ads (Protection): Add the field Owner, used to store the
26949 protected object's owner.
26950 This component is needed for detecting one type of potentially blocking
26951 operations (external calls on a protected subprogram with the same
26952 target object as that of the protected action). Document the rest of
26955 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26956 Initialize the protected object's owner to Null_Task.
26957 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26958 caller of this procedure is already the protected object's owner then
26959 Program_Error is raised.
26960 Do not raise Program_Error when this procedure is called from a
26962 (Unlock_Entries): Remove the ownership of the protected object.
26963 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26964 of this procedure is already the protected object's owner then
26965 Program_Error is raised.
26966 Do not raise Program_Error when this procedure is called from
26967 a protected action.
26969 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26970 used to store the protected object's owner.
26972 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26973 effect and this procedure (a potentially blocking operation) is called
26974 from whithin a protected action, Program_Error is raised.
26975 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26976 and this procedure (a potentially blocking operation) is called from
26977 whithin a protected action, Program_Error is raised.
26979 2005-03-17 Vincent Celier <celier@adacore.com>
26980 Nicolas Setton <setton@adacore.com>
26982 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26983 switch, not supported by the linker on Darwin. Add '_' before
26984 <library>init, as this character is added unconditionally by the
26986 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26987 correct one ".dylib". This fixes detection of the archive files when
26988 building library projects.
26990 2005-03-17 Vincent Celier <celier@adacore.com>
26992 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26993 -gnat83, -gnat95 and -gnat05.
26995 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
26997 * gnat_ugn.texi: Document gnatmem restriction
26999 2005-03-17 Thomas Quinot <quinot@adacore.com>
27001 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27004 2005-03-17 Robert Dewar <dewar@adacore.com>
27006 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27007 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27008 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27010 * casing.adb: Comment improvements
27012 2005-03-17 Pascal Obry <obry@adacore.com>
27014 * g-expect.adb: Minor reformatting.
27016 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27018 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27019 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27022 2005-03-15 Vincent Celier <celier@adacore.com>
27024 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27025 Add new parameter In_Tree to specify the project tree: needed
27026 by the project manager. Adapt to changes in project manager
27027 using new parameter In_Tree.
27029 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27031 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27032 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27033 ada/bldtools to avoid make -jN failures.
27035 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27037 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27038 to NULL_TREE on entry.
27040 2005-03-15 Robert Dewar <dewar@adacore.com>
27042 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27043 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27044 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27045 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27046 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27047 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27048 system-interix.ads, system-solaris-sparc.ads,
27049 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27050 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27051 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27052 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27053 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27054 Compiler_System_Version to be False.
27056 * opt.ads: Add new flag Opt.Address_Is_Private
27058 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27059 Add new parameter Compiler_System_Version to avoid checking for
27060 completeness of parameters when compiler is compiling itself.
27061 Allows old versions of GNAT to be compiled with new compiler.
27063 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27065 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27066 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27068 (Stack_Base_Available): New flag.
27069 (Get_Page_Size): New overloaded functions imported from C.
27070 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27071 PROT_ON, PROT_OFF): New constants.
27072 (mprotect): New function imported from C.
27073 (pthread_teb_t): New record type.
27075 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27076 (Create_Task): Account for the Yellow Zone and the guard page.
27078 2005-03-15 Vincent Celier <celier@adacore.com>
27080 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27081 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27082 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27083 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27084 Library_File_Name_For): Add new parameter In_Tree
27085 to specify the project tree: needed by the project manager.
27086 Adapt to changes in project manager using new parameter In_Tree.
27087 Remove local imports, use functions in System.CRTL.
27089 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27090 to use the project manager.
27092 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27093 In_Tree to designate the project tree. Adapt to changes in the project
27094 manager, using In_Tree.
27096 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27097 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27098 project tree: needed by the project manager.
27099 (Build_Library): Check that Arg'Length >= 6 before checking if it
27100 contains "--RTS=...".
27102 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27103 Library_File_Name_For): Add new parameter In_Tree to specify the
27104 project tree: needed by the project manager.
27106 * prj.ads, prj.adb: Major modifications to allow several project trees
27107 in memory at the same time.
27108 Change tables to dynamic tables and hash tables to dynamic hash
27109 tables. Move tables and hash tables from Prj.Com (in the visible part)
27110 and Prj.Env (in the private part). Move some constants from the visible
27111 part to the private part. Make other constants deferred.
27112 (Project_Empty): Make it a variable, not a function
27113 (Empty_Project): Add parameter Tree. Returns the data with the default
27114 naming data of the project tree Tree.
27115 (Initialize): After updating Std_Naming_Data, copy its value to the
27116 component Naming of Project Empty.
27117 (Register_Default_Naming_Scheme): Use and update the default naming
27118 component of the project tree, instead of the global variable
27120 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27121 Tree is not defaulted, return the default naming data of the Tree.
27122 (Initial_Buffer_Size): Constant moved from private part
27123 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27124 variables initialized in procedure Initialize.
27125 (Add_To_Buffer): Add two in out parameters to replace global variables
27126 Buffer and Buffer_Last.
27127 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27129 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27131 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27132 for the project tree.
27133 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27134 constant at the beginning of the package spec, so that they cane be used
27135 in subprograms before their full declarations.
27136 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27137 (Empty_Project): Add parameter of type Project_Node_Ref
27138 (Private_Project_Tree_Data): Add component Default_Naming of type
27140 (Buffer, Buffer_Last): remove global variables
27141 (Add_To_Buffer): Add two in out parameters to replace global variables
27142 Buffer and Buffer_Last.
27143 (Current_Packages_To_Check): Remove global variable
27144 (Empty_Name): Move to private part
27145 (No-Symbols): Make it a constant
27146 (Private_Project_Tree_Data): New type for the private part of the
27148 (Project_Tree_Data): New type for the data of a project tree
27149 (Project_Tree_Ref): New type to designate a project tree
27150 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27151 for the project tree.
27153 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27154 imports package Table.
27156 * prj-com.adb: Remove empty, no longer needed body
27158 * prj-com.ads: Move most of the content of this package to package Prj.
27160 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27161 designate the project node tree and Packages_To_Check to replace
27162 global variable Current_Packages_To_Check.
27163 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27164 when needed. Adapt to changes in project manager with project node tree
27167 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27168 project tree to most subprograms. Move tables and hash tables to
27169 private part of package Prj.
27170 Adapt to changes in project manager using project tree In_Tree.
27172 * prj-makr.adb (Tree): New constant to designate the project node tree
27173 Adapt to change in project manager using project node tree Tree
27175 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27176 display the Library_Src_Dir and the Library_Dir.
27177 Add new parameter In_Tree to designate the project node tree to most
27178 subprograms. Adapt to changes in the project manager, using project tree
27180 (Check_Naming_Scheme): Do not alter the casing on platforms where
27181 the casing of file names is not significant.
27182 (Check): Add new parameter In_Tree to designate the
27184 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27185 designate the project tree.
27186 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27188 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27189 to replace those that were in the private part of package Prj.
27190 Add new parameter In__Tree to designate the project node tree to most
27191 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27192 (Post_Parse_Context_Clause): When specifying the project node of a with
27193 clause, indicate that it is a limited with only if there is "limited"
27194 in the with clause, not necessarily when In_Limited is True.
27195 (Parse): Add new parameter In_Tree to designate the project node tree
27197 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27198 designate the project node tree. Adapt to change in Prj.Tree with
27199 project node tree In_Tree.
27201 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27202 tree In_Tree in the call to function Empty_Process to give its initial
27203 value to the project data Processed_Data.
27204 Add new parameters In_Tree to designate the project tree and
27205 From_Project_Node_Tree to designate the project node tree to several
27206 subprograms. Adapt to change in project manager with project tree
27207 In_Tree and project node tree From_Project_Node_Tree.
27209 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27210 to replace those that were in the private part of package Prj.
27211 Add new parameter In_Tree to designate the project node tree to most
27212 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27214 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27215 Project_Node_Tree_Ref to most subprograms.
27216 Use this new parameter to store project nodes in the designated project
27218 (Project_Node_Tree_Ref): New type to designate a project node tree
27219 (Tree_Private_Part): Change table to dynamic table and hash tables to
27220 dynamic hash tables.
27222 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27223 the project tree to most subprograms. Adapt to changes in project
27224 manager using project tree In_Tree.
27226 * makegpr.adb (Project_Tree): New constant needed to use project
27229 2005-03-15 Olivier Hainque <hainque@adacore.com>
27231 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27232 for sigactions with SA_SIGINFO set. Call
27233 __gnat_adjust_context_for_raise before raising, to perform the
27234 potentially required adjustments to the machine context for the GCC
27237 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27239 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27240 Adjust PC by one in the provided machine context.
27241 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27242 so that the handler is passed the context structure to adjust prior to
27244 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27245 SA_SIGINFO sigaction should look like. Call
27246 __gnat_adjust_context_for_raise before actually raising.
27247 (__gnat_adjust_context_for_raise): Default noop to help PC
27248 adjustments before raise from signal handlers.
27249 (__gnat_error_handler): Indirectly call a predicate function to
27250 determine if a condition should be resignaled or not.
27251 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27252 (__gnat_default_resignal_p): Default GNAT predicate.
27254 2005-03-15 Doug Rupp <rupp@adacore.com>
27256 * adaint.c: Prefix #include of VMS system header files with vms/
27257 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27258 Do not define a dummy function "convert_addresses" under Darwin,
27261 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27264 2005-03-15 Nicolas Setton <setton@adacore.com>
27266 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27269 2005-03-15 Robert Dewar <dewar@adacore.com>
27271 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27274 * a-retide.ads: Minor comment changes
27276 2005-03-15 Robert Dewar <dewar@adacore.com>
27278 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27279 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27280 Realloc_For_Chunk to private part of package.
27281 New subprograms for AI-301
27283 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27284 Get_Line procedure.
27285 Avoid unnecessary use of Get/Set_Wide_String
27287 2005-03-15 Robert Dewar <dewar@adacore.com>
27290 * a-stunau.ads, a-stunau.adb:
27291 Change interface to allow efficient (and correct) implementation
27292 The previous changes to allow extra space in unbounded strings had
27293 left this interface a bit broken.
27295 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27297 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27298 Minor reformatting (function specs)
27300 * g-spitbo.adb: New interface for Get_String
27302 * g-spitbo.ads: Minor reformatting
27304 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27306 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27308 2005-03-15 Javier Miranda <miranda@adacore.com>
27309 Robert Dewar <dewar@adacore.com>
27310 Thomas Quinot <quinot@adacore.com>
27311 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27313 * atree.ads, atree.adb: Add support for Elist24 field
27315 * atree.h: Fix wrong definition of Field27
27316 Add support for Elist16 field
27317 Add support for Elist24 field
27319 * einfo.ads, einfo.adb (Abstract_Interfaces,
27320 Set_Abstract_Interfaces): New subprograms.
27321 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27323 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27324 entities rather than a single node.
27325 (Is_Interface, Set_Is_Interface): New subprogram
27326 (First_Tag_Component): New syntesized attribute
27327 (Next_Tag_Component): New synthesized attribute
27328 (Write_Entity_Flags): Upgraded to write Is_Interface
27329 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27330 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27331 (Task_Body_Procedure): New subprogram to read this attribute.
27332 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27333 (Has_Controlled_Component): Now applies to all entities.
27334 This is only a documentation change, since it always worked to apply
27335 this to other than composite types (yielding false), but now this is
27337 Update documentation on Must_Be_Byte_Aligned for new spec
27339 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27340 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27341 uses of the Access_Disp_Table attribute to reference the first dispatch
27342 table associated with a tagged type. As
27343 part of the implementation of abstract interface types,
27344 Access_Disp_Table has been redefined to contain a list of dispatch
27345 tables (rather than a single dispatch table).
27346 Similarly, upgrade all the references to Tag_Component by the
27347 new attribute First_Tag_Component.
27348 (Find_Inherited_TSS): Moved to exp_tss.
27349 Clean up test in Expand_N_Object_Declaration for cases
27350 where we need to do a separate assignment of the initial value.
27351 (Expand_N_Object_Declaration): If the expression in the
27352 declaration of a tagged type is an aggregate, no need to generate an
27353 additional tag assignment.
27354 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27356 Bit packed array ops are only called if operands are known to be
27358 (Component_Equality): When returning an N_Raise_Program_Error statement,
27359 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27360 expects that only expressions have a bona fide type).
27361 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27362 determine the amount of data to be copied.
27364 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27365 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27366 INTERFACE_TYPE_DEFINITION ::=
27367 [limited | task | protected | synchronized] interface
27368 [AND interface_list]
27370 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27372 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27374 (P_Interface_Type_Definition): New subprogram that parses the new
27375 syntax rule of Ada 2005 interfaces
27376 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27377 messages by the correct RENAMES (quotes removed).
27379 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27380 attribute First_Tag_Component.
27382 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27383 (Interface_List, Set_Interface_List): New subprograms.
27384 (Interface_Present, Set_Interface_Present): New subprograms.
27385 (Limited_Present, Set_Limited_Present): Available also in derived
27386 type definition nodes.
27387 (Protected_Present, Set_Protected_Present): Available also in
27388 record type definition and
27389 derived type definition nodes.
27390 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27391 (Task_Present, Set_Task_Present): New subprogram.
27392 (Task_Body_Procedure): Removed.
27393 (Set_Task_Body_Procedure): Removed.
27394 These subprogram have been removed because the attribute
27395 Task_Body_Procedure has been moved to the corresponding task type
27396 or task subtype entity to leave a field free to store the list
27397 of interfaces implemented by a task (for AI-345)
27398 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27399 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27400 expression flag Do_Range_Check
27401 (Exception_Junk): Change to Flag7 to accomodate above change
27402 (Box_Present, Default_Name, Specification, Set_Box_Present,
27403 Set_Default_Name, Set_Specification): Expand the expression
27404 "X in N_Formal_Subprogram_Declaration" into the corresponding
27405 two comparisons. Required to use the csinfo tool.
27407 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27408 "with string" given.
27410 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27413 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27416 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27417 attribute Task_Body_Procedure rather than the old semantic field that
27418 was available in the task_type_declaration node.
27420 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27421 interface type definitions.
27422 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27425 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27426 task type declaration.
27427 (P_Protected): Modified to handle the list of interfaces in a
27428 protected type declaration.
27430 2005-03-15 Doug Rupp <rupp@adacore.com>
27431 Vincent Celier <celier@adacore.com>
27433 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27434 (Gen_Output_File_C): Likewise.
27435 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27437 2005-03-15 Thomas Quinot <quinot@adacore.com>
27439 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27440 is an N_Raise_Constraint_Error node, create a new copy of it without
27441 going through a call to Duplicate_Subexpr.
27443 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27444 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27445 Nicolas Setton <setton@adacore.com>
27446 Ed Schonberg <schonberg@adacore.com>
27452 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27453 representation clause that prescribes a size not equal to the rounded
27454 size of their types.
27455 (gnat_to_gnu_entity, case E_Component): Always look at
27456 Original_Record_Component if Present and not the entity.
27457 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27458 of tagged extension types by not making field for components that are
27460 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27461 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27462 expression to the type of the object when the object is constant.
27463 Reverse defer_debug_incomplete_list before traversing it, so that trees
27464 are processed in the order at which they were added to the list. This
27465 order is important when using the stabs debug format.
27466 If we are deferring the output of debug information, also defer this
27467 output for a function return type.
27468 When adding fields to a record, prevent emitting debug information
27469 for incomplete records, emit the information only when the record is
27471 (components_to_record): New parameter defer_debug.
27472 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27473 (gnat_to_gnu_field_decl): New function.
27474 (substitution_list, annotate_rep): Call it.
27475 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27476 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27477 No longer update discriminants to not be a COMPONENT_REF.
27478 (copy_alias_set): Strip padding from input type; also handle
27479 unconstrained arrays properly.
27481 * gigi.h (write_record_type_debug_info): New function.
27482 Convert to use ANSI-style prototypes. Remove unused
27483 declarations for emit_stack_check, elab_all_gnat and
27484 set_second_error_entity.
27485 (gnat_to_gnu_field_decl): New decl.
27487 * utils.c (write_record_type_debug_info): New function.
27488 (finish_record_type): Delegate generation of debug information to
27489 write_record_type_debug_info.
27490 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27491 (update_pointer_to): Fix pasto.
27492 (convert) <UNION_TYPE>: Accept slight type variations when
27493 converting to an unchecked union type.
27495 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27496 replace the N_Freeze_Entity with a null statement.
27498 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27499 within a constrained subcomponent of an enclosing record, place the
27500 freeze nodes in the scope stack entry for the enclosing record.
27501 (Undelay_Type): New Subprogram.
27502 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27503 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27504 within records; allow them to have freeze nodes if their base types
27507 * exp_util.adb (Remove_Side_Effects): Properly test for
27508 Expansion_Delayed and handle case when it's inside an
27509 N_Qualified_Expression.
27511 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27512 Comes_From_Generic, to recognize accurately that the parent type in a
27513 derived type declaration can be traced back to a formal type, because
27514 it is one or is derived from one, or because its completion is derived
27516 (Constrain_Component_Type): If component comes from source and has no
27517 explicit constraint, no need to constrain in in a subtype of the
27519 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27520 Minor change to propagate Is_Ada_2005 flag
27522 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27523 Expansion_Delayed is False.
27524 (assoc_to_constructor): Ignore fields that have a
27525 Corresponding_Discriminant.
27526 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27527 function returns "by target", dereference the target pointer using the
27528 type of the actual return value.
27529 <all>: Be prepared for a null gnu_result.
27530 (processed_inline_subprograms): Check flag_really_no_inline
27531 instead of flag_no_inline.
27532 (set_second_error_entity): Remove unused function.
27533 (gnat_to_gnu, case N_Selected_Component): Call
27534 gnat_to_gnu_field_decl.
27535 (assoc_to_constructor): Likewise.
27537 2005-03-15 Robert Dewar <dewar@adacore.com>
27538 Ed Schonberg <schonberg@adacore.com>
27539 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27541 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27542 Must_Be_Byte_Aligned for cases where we do not need to use a
27543 System.Pack_nn unit.
27545 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27547 Needed now that we do some processing for IN parameters as well. This
27548 may well fix some unrelated errors.
27549 (Expand_Call): Handle case of unaligned objects (in particular those
27550 that come from packed arrays).
27551 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27552 renamed entity is an inherited operation, re-expand the call using the
27553 original operation, which is the one to call.
27554 Detect attempt to inline parameterless recursive subprogram.
27555 (Represented_As_Scalar): Fix to work properly with private types
27556 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27557 accurate estimate. Yields True in far fewer cases than before,
27558 improving the quality of code that depends on this test.
27560 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27561 over both visible and private declarations to remove them from tree,
27562 and mark subprograms declared in package as eliminated, to prevent
27563 spurious use in subsequent compilation of generic units in the context.
27565 * exp_util.ads: Minor cleanup in variable names
27567 * sem_eval.ads, sem_eval.adb: Minor reformatting
27568 (Compile_Time_Known_Bounds): New function
27570 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27572 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27573 determining whether an unchecked conversion is needed for the argument
27574 of an initialization call.
27576 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27578 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27579 that appears in the instantiation rather than the internal subtype
27580 generated in the wrapper package, to avoid anomalies in gigi when the
27581 target is derived from a private type whose full view is an access type.
27583 2005-03-15 Robert Dewar <dewar@adacore.com>
27585 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27587 Add documentation to replace the use of this flag
27588 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27591 2005-03-15 Thomas Quinot <quinot@adacore.com>
27593 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27594 here from exp_attr so it can be shared between exp_attr and exp_dist.
27595 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27596 all TSS names, not a subset thereof, and the previous name introduced
27597 an unnecessarily confusion that a distinction might exist between
27598 "OK" TSS names and some "not OK" TSS names.
27600 2005-03-15 Doug Rupp <rupp@adacore.com>
27602 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27605 2005-03-15 Pascal Obry <obry@adacore.com>
27606 Eric Botcazou <ebotcazou@adacore.com>
27610 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27611 when IN_RTS. This is to work around a bootstrap path problem.
27613 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27614 table and pass it to __gnat_install_SEH_handler().
27615 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27617 * lang.opt: Fix specification of -fRTS=.
27619 2005-03-15 Doug Rupp <rupp@adacore.com>
27620 Bernard Banner <banner@adacore.com>
27621 Vincent Celier <celier@adacore.com>
27622 Arnaud Charlet <charlet@adacore.com>
27625 This change works fine when gnatlib is built from the gcc directory,
27626 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27627 is not passed to ada/Makefile.in, so more work is needed by a
27628 Makefile/configure expert.
27630 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27631 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27632 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27634 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27635 Run ranlib on libgccprefix.a
27636 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27637 (ADA_INCLUDE_SRCS): Split Ada packages.
27639 2005-03-15 Robert Dewar <dewar@adacore.com>
27641 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27643 * impunit.adb: Add GNAT.UTF_32
27645 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27647 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27648 now uses GNAT.UTF_32).
27650 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27651 capabilities for categorizing characters using Unicode categories
27653 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27655 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27656 instantiation that has been rewritten as a package body, retrieve spec
27657 to generate proper name for implicit_with_clause.
27658 (Install_Parents): Recognize a parent that is an instantiation but has
27659 been rewritten as a package declaration during analysis.
27661 2005-03-15 Javier Miranda <miranda@adacore.com>
27662 Ed Schonberg <schonberg@adacore.com>
27664 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27665 parameter reported some error we immediately return. This improves the
27666 behaviour of the frontend in case of errors.
27667 (Install_Parent, Remove_Parent): Introduce new flag
27668 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27669 ancestor of a generic child unit, when the child is being instantiated.
27670 (Inline_Instance_Body): If we are compiling the private
27671 part or the body of a child unit, restore the proper visibility of the
27672 parents after compiling the instance body.
27674 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27675 Javier Miranda <miranda@adacore.com>
27678 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27679 of a private type, in which case it is underlying_type that denotes
27680 the proper task. Also modified to use the new entity attribute
27681 that is directly available in the task type and task subtype entities
27682 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27683 arrays when other dimensions than the first are constrained by
27684 discriminants of an enclosing record.
27685 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27686 a combination of indexed and selected components, find ultimate entity
27687 and generate the appropriate reference for it, to suppress spurious
27689 (Note_Possible_Modification): If an entity name has no entity, return.
27690 (Is_Variable): A function call never denotes a variable.
27691 (Requires_Transient_Scope): For record types, recurse only on
27692 components, not on internal subtypes that may have been generated for
27693 constrained components.
27695 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27697 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27698 Eliminated as candidates for resolution. Both efficient, and avoids
27699 anomalies with operators declared in deleted code.
27700 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27701 expansion is disabled (as when compiling a generic) to prevent spurious
27702 warnings on prefixes of selected components.
27704 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27706 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27707 attached to a list before checking whether it appears in the private
27708 declarations of the current package.
27709 (Make_Inequality_Operator): Insert declaration in proper declarative
27710 list rather than just setting the Parent field, so that
27711 Is_Private_Declaration can handle it properly.
27713 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27715 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27716 a renaming a body, check that the renamed subprogram in not intrinsic.
27717 (Find_Direct_Name): If several use_visible entities hide
27718 each other, and the context is a predefined file compiled through
27719 rtsfind, keep only the entity that comes from a predefined file.
27721 2005-03-15 Geert Bosch <bosch@adacore.com>
27723 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27724 long float padding to also cover AMD64 and IA64.
27726 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27728 * s-imgwch.adb: Add with and use of Interfaces.
27729 (Img_Wide_Character): Change type of Val to Unsigned_16.
27730 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27732 2005-03-15 Matthew Gingell <gingell@adacore.com>
27734 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27736 2005-03-15 Robert Dewar <dewar@adacore.com>
27738 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27740 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27742 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27744 2005-03-15 Robert Dewar <dewar@adacore.com>
27746 * s-bitops.adb, s-bitops.ads,
27747 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27748 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27749 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27750 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27751 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27752 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27753 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27754 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27757 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27759 * utils2.c (build_binary_op): Fix typo.
27761 2005-03-15 Doug Rupp <rupp@adacore.com>
27763 * s-crtl.ads (popen,pclose): New imports.
27765 2005-03-15 Cyrille Comar <comar@adacore.com>
27767 * comperr.adb (Compiler_Abort): remove references to obsolete
27768 procedures in the bug boxes for various GNAT builds.
27770 2005-03-15 Vincent Celier <celier@adacore.com>
27772 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27774 2005-03-15 Geert Bosch <bosch@adacore.com>
27775 Arnaud Charlet <charlet@adacore.com>
27776 Robert Dewar <dewar@adacore.com>
27777 Cyrille Comar <comar@adacore.com>
27778 Sergey Rybin <rybin@adacore.com>
27780 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27781 too specific and long-winded to be appropriate for the GNAT User's
27783 Warn about use of GCC switches not documented in the GNAT User's Guide,
27784 as these may cause generated code to not conform to Ada semantics.
27785 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27786 Add documentation for -gnat95 and -gnat05 switches
27787 Remove paragraph documenting obsolete way to refer to third party
27789 Add a few references to Ada_05 that were missing.
27790 Update documentation on -gnatZ/-gnatL.
27791 Document limitation when using -m64 under Solaris.
27792 Change the "Name Casing" subsection of the pretty-printer section
27793 according to the changes in the dictionary processing.
27795 * gnat_rm.texi: Document the Ada_05 pragma.
27796 Section on record representation clauses describes the new more
27797 relaxed rules about placement of large packed bit array components.
27798 Add documentation of GNAT.UTF_32
27800 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
27802 * misc.c (gnat_post_options): Turn off structural
27805 2005-03-08 Laurent Guerby <laurent@guerby.net>
27807 * system-linux-sparc.ads: Fix typo in previous commit.
27809 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
27810 Laurent Guerby <laurent@guerby.net>
27813 * system-linux-sparc.ads: New.
27814 * Makefile.in: Add sparc linux entry.
27816 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
27818 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27819 parameters as unused.
27821 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
27822 Partial merge from libada-gnattools-branch:
27824 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27825 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27826 into code in gnattools/Makefile.in. Remove direct dependencies on
27827 stamp-tools by tools clauses.
27828 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27829 * config-lang.in: Add gnattools to $lang_dirs.
27831 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
27834 * utils.c (gnat_type_for_mode): Return null instead of ICE because
27835 we asked for an unknown mode.
27837 2005-02-12 Richard Henderson <rth@redhat.com>
27839 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27840 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27842 2005-02-10 Andreas Jaeger <aj@suse.de>
27844 * init.c (__gnat_initialize): Mark parameter as unused.
27846 2005-02-09 Doug Rupp <rupp@adacore.com>
27848 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27849 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27851 2005-02-09 Doug Rupp <rupp@adacore.com>
27853 * gnatchop.adb (dup, dup2),
27854 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27856 * gnatlbr.adb (mkdir),
27857 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
27859 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27861 2005-02-09 Doug Rupp <rupp@adacore.com>
27863 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27865 2005-02-09 Robert Dewar <dewar@adacore.com>
27866 Thomas Quinot <quinot@adacore.com>
27867 Javier Miranda <miranda@adacore.com>
27868 Pascal Obry <obry@adacore.com>
27869 Ed Schonberg <schonberg@adacore.com>
27870 Doug Rupp <rupp@adacore.com>
27871 Gary Dismukes <dismukes@adacore.com>
27872 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27874 * g-zstspl.ads: New file.
27876 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27878 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27880 Add definition of Wide_Wide_Space for AI-285
27882 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27883 interface (to support Ada 95 and Ada 2005 units).
27884 Add Unbounded_IO files
27885 Add entries for Wide_Wide packages for AI-285
27886 Add list of containers packages to Ada 2005 unit list
27888 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27889 support new Unbounded_IO package cleanly.
27891 * g-utf_32.ads, g-utf_32.adb: New files.
27893 * Makefile.rtl: Add entry for g-utf_32
27894 Add new files for Unbounded_IO
27895 Adjust make file for new AI-285 wide wide packages
27896 Add AI-302 containers to the run time.
27898 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27899 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27900 subprograms for AI-301.
27902 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27904 * a-stunau.ads: Minor comment correction
27906 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27908 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27909 (Check_RPC): Update to match changes in expanded code.
27910 Clean up unused entity.
27912 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27913 was not taken into account.
27914 This includes proper initialization with Normalize_Scalars.
27915 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27916 normalize scalars cases (particularly the latter) to do a better job
27917 of finding invalid representations.
27919 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27921 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27924 * exp_dist.adb: Add support for wide wide character type
27925 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27926 private part, generate stub bodies at the end of the private part,
27927 not the visible part.
27928 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27930 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27931 generic wrapper to execute final processing after completing the
27932 expansion of the RPC receiver for an RACW.
27934 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27935 packages and attributes.
27936 (Preset_Names): Addition of the new reserved words of Ada 2005,
27937 that is interface, overriding and synchronized.
27938 (Get_Pragma_Id): Give support to the use of the new reserved word
27939 "interface" as a pragma name.
27940 (Is_Pragma_Name): Give support to the use of the new reserved word
27941 "interface" as a pragma name.
27942 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27943 attribute implementation.
27945 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27946 checks to entities that are output parameters of Asm operations.
27947 Handle the Stream_Size attribute.
27948 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27950 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27952 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27953 for second parameter being 0.0.
27954 Add support for wide wide character type.
27955 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27957 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27958 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27959 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27960 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27961 for wide wide character cases.
27963 * cstand.adb: Create entities for Wide_Wide_Character and
27966 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27967 accordance with AI-258.
27968 Add new declarations for 16/32 bit C character types (Part of AI285)
27970 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27971 (Obsolescent_Warning): New field
27972 (Rep_Clause): New local subprogram used to share code. Returns the rep
27973 clause for which the name is given in parameter.
27974 (Has_Stream_Size_Clause): New routine.
27975 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27976 (Address_Clause): Implementation is now using Rep_Clause.
27977 (Alignment_Clause): Idem.
27978 (Size_Clause): Idem.
27980 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27981 entity in non-Ada 2005 mode and generate warning.
27983 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27984 (Prag): Code cleanup. Remove old gnat pragma "overriding"
27986 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27987 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27988 on the named unit if the pragma is not in the current compilation unit,
27989 so that elaboration calls in the current unit can set up an elaboration
27990 dependency on the named unit, as needed.
27991 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27992 subprogram as well as for subprograms declared within a package.
27993 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27996 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27997 to z) to avoid some instances of duplication for Wide_Wide packages.
27999 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28002 * scn.adb: Char_Literal_Value field is now a Uint
28004 * scng.adb: Significant rewrite to handle new Ada 2005 features
28005 allowing wide and wide wide characters in program text, e.g. for
28006 identifiers, as described in AI-285.
28007 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28008 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28009 (Scan): Give support to the new reserved words.
28011 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28012 warning notifying that interface, overriding, and synchronized are
28013 new reserved words.
28014 (P_Pragma): Allow the use of the new reserved word "interface" as
28017 * gnatls.adb, gnatbind.adb,
28018 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28019 identifiers named "interface" to "SAL_Interface".
28021 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28022 (Structured Exception handling).
28023 (Gen_Main_C): Idem.
28026 (Gen_Main_Ada): Set the default exit code if specified.
28027 (Gen_Main_C): Likewise.
28029 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28030 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28032 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28035 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28036 has a collision with the new Ada 2005 "interface" reserved word.
28038 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28039 generate a warning notifying that interface, overriding, and
28040 synchronized are new reserved words.
28042 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28043 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28044 and Tok_Synchronized.
28046 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28047 "dispatching" rather than "primitive" operations, since dispatching
28048 calls are now allowed to abstract formal subprograms (which are not
28050 Char_Literal_Value field is now a Uint
28051 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28052 compute the actual subtype of the designated object to impose the proper
28054 (Resolve_Selected_Component): Do not insert an access check if the
28055 prefix is an access type: such a node is expanded into an explicit
28056 dereference, on which the access check is performed anyway. Removes
28057 expensive duplicate checks.
28058 (Resolve_Call): Use new flag Is_Obsolescent and field
28059 Obsolescent_Warning so that pragma Obsolescent works on library
28061 Add support for wide wide character type
28062 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28063 value by a warning message.
28064 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28065 as fixed-point, and one of the operands is non-static and universal, it
28066 can only be an illegal exponentiation operation, in which case there is
28067 no real value to retrieve.
28069 * exp_strm.adb: Add support for wide wide character type
28070 (Build_Elementary_Input_Call): Compute the size of the stream element by
28071 querying the rep chain to find the Stream_Attribute attribute value.
28072 (Build_Elementary_Write_Call): Ditto.
28074 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28075 Add support for wide wide character type
28076 Replace the error messages on wrong null-exclusion value by warnings
28077 as described in Ada 2005.
28078 (Resolve_Extension_Aggregate): Document the fact that the error
28079 message on class-wide expressions in extensions aggregates.
28081 * sem_case.adb: Add support for wide wide character type
28083 * sem_ch13.adb: Add support for wide wide character type
28084 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28086 * sem_ch3.adb: Add support for wide wide character type
28087 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28088 now-useless Itype, to prevent cascaded errors on a compiler built
28091 * sem_ch8.adb: Add with and use of Sem_Disp.
28092 (Analyze_Subprogram_Renaming): Replace unclean uses of
28093 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28094 of Corresponding_Spec to Empty).
28095 (Attribute_Renaming): Replace use of Corresponding_Spec with
28096 Corresponding_ Formal_Spec and simplify condition.
28097 (Use_One_Package): Check that scope of homonym of identifier is defined,
28098 before checking whether it is a wrapper package.
28099 Add support for wide wide character type
28101 * sem_eval.adb: Add support for wide wide character type.
28102 (Eval_Arithmetic_Op): Check for compile time known signed integer
28103 overflow in the non-static case.
28104 (Subtypes_Statically_Match): A formal scalar type and its base type do
28105 not statically match.
28107 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28108 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28110 (Unit_Declaration_Node): Ditto.
28111 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28112 has a packed array type, the prefix has been rewritten into a type
28113 conversion. Determine variable-ness from the converted expression.
28114 Handle wide wide character cases.
28116 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28118 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28119 Remove ["0A"] from comment, since it can look like a line terminator.
28120 Currently we don't permit this, but this is under discussion by the
28121 ARG, and it is easy enough to use a different example.
28123 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28124 handling UTF-32 encoding for wide wide character.
28125 Implement new brackets coding ["hhhhhhhh"]
28126 Add UTF-8 encodings for full UTF-32 range
28128 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28130 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28131 bit range Add full UTF-32 support.
28132 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28133 notify that constraint error will be raised at run-time
28134 because a null value is assigned to a null-excluding object.
28135 Remove some obsolete declarations and make Char_Code
28138 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28139 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28140 Rcheck subprograms.
28142 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28143 wrong null-exclusion value by a warning message.
28144 (Enable_Range_Check): Do range check if the prefix is an
28145 explicit dereference whose designated object is an unconstrained array.
28146 Current algorithm for removing duplicate checks is over-eager in this
28149 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28150 null-exclusion value by a warning message
28152 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28153 completely. Add support for Uint2 field
28155 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28156 exp_prag.adb: Char_Literal_Value field is now a Uint.
28158 * exp_util.adb (Insert_Actions): Replace
28159 N_Formal_Subprogram_Declaration by
28160 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28161 Char_Literal_Value field is now a Uint.
28163 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28164 defined for subprogram renaming declarations. When set, the field
28165 indicates the defining entity of a corresponding formal subprogram
28166 when the renaming corresponds to a formal subprogram association in an
28168 (Set_Corresponding_Formal_Spec): New procedure to return
28169 Corresponding_Formal_Spec field.
28170 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28171 (which is now a subtype).
28172 Char_Literal_Value field is now a Uint
28174 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28175 pointer to the base of the dispatch table.
28176 Minor changes to comments.
28177 (Controlling_Type): New function for determining the tagged type
28178 associated with a tagged primitive subprogram.
28179 (Expand_Dispatching_Call): Add support for a controlling actual that is
28180 directly a value of type Ada.Tag rather than a tagged object.
28182 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28183 describing the new layout.
28184 (Dispatch_Table): The expander computes the actual array size, allocates
28185 the Dispatch_Table record accordingly, and generates code that displaces
28186 the base of the record after the Typeinfo_Ptr component. The access to
28187 these components is done by means of local functions.
28188 (Offset_To_Top): New function.
28189 (Typeinfo_Ptr): New function.
28190 (Get_TSD): Modified to access the new position of the TSD.
28191 (Set_TSD): Modified to save the TSD in its new position.
28193 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28194 case of formal abstract subprograms. Add check and message for -gnat05.
28197 * sem_ch12.adb: Add with and use for Sem_Disp.
28198 (Analyze_Associations): Minor change from "=" to "in" for use of
28199 N_Formal_Subtype_Declaration (which is now a subtype).
28200 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28201 N_Formal_Subtype_Declaration (which is now a subtype).
28202 (Analyze_Formal_Subprogram): Add handling for
28203 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28204 dispatching, setting the controlling status of the formal parameters
28205 and result, and issuing an error if there is no controlling type for
28206 the formal subprogram.
28207 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28208 which is an unclean use of that field, we set the new field
28209 Corresponding_Formal_Spec to make the formal subprogram available to
28210 processing in Analyze_Subprogram_Declaration.
28211 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28212 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28213 Constrained, so that it is is does not statically match its anonymous
28216 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28217 abstract formal subprograms in error check for functions returning
28218 abstract types. Set scope of new designator for
28219 a parameterless subprogram, so that it is available when checking the
28220 body for nested subprograms, before full analysis of said body.
28221 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28222 subprogram only if inner one comes from source.
28223 (Analyze_Function_Call): If the call is given in object notation, the
28224 analysis of the name rewrites the node and analyzes it with the proper
28225 argument list. After analyzing the name, if the call has been rewritten
28226 and the result type is set, no further analysis is needed.
28227 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28228 mark in function specification, in a context where the formals are
28229 visible and hide outer homographs.
28231 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28232 as the tagged type for the cases of abstract formal subprograms and
28233 renamings of those. Clean up spec comments.
28234 (Check_Dispatching_Context): Add error message to indicate "abstract
28235 procedure", covering the case of a call to a formal abstract procedure
28236 that has statically tagged operands.
28237 (Check_Dispatching_Call): Check for the case of an actual given by
28238 a tag-indeterminate function call whose type is an ancestor of the
28239 containing call's associated tagged type. This situation can occur
28240 for inherited primitives with function defaults. In this case we
28241 use the tagged type's tag directly as the controlling argument for
28243 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28245 * sprint.adb (Sprint_Node_Actual): Split
28246 N_Formal_Subprogram_Declaration into two alternatives for the new
28247 cases N_Formal_Abstract_Subprogram_Declaration and
28248 N_Formal_Concrete_Subprogram_Declaration.
28249 Char_Literal_Value field is now a Uint.
28251 * trans.c: Get rid of junk Uint2 reference.
28252 Char_Literal_Value field is now a Uint.
28253 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28254 (gigi): Correct third arg to gimplify_body.
28256 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28257 (TYPE_LANG_FLAG_0): Check for record or union.
28259 * treepr.adb: Char_Literal_Value field is now a Uint
28261 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28264 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28265 Add full UTF-32 support
28266 Char_Code is now 32 bits
28268 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28269 wide character UTF_32 line terminators.
28270 Initialize Main_Source_File to avoid error when no main
28273 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28274 (Main_Source_File) when no main source has been loaded, to avoid
28277 2005-02-09 Robert Dewar <dewar@adacore.com>
28279 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28280 Fix name of Set routine
28282 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28285 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28286 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28289 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28290 forms of Get_Line subprograms for AI-301.
28292 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28293 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28294 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28295 a-stwima.ads: Minor reformatting.
28297 2005-02-09 Doug Rupp <rupp@adacore.com>
28298 Thomas Quinot <quinot@adacore.com>
28300 * adaint.c, adaint.h
28301 [VMS] (to_ptr32): New function.
28302 (MAYBE_TO_PTR32): New macro.
28303 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28305 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28306 [VMS] (#define fork()): Remove since unneccessary.
28307 (__gnat_set_close_on_exec): New routine to support
28308 GNAT.OS_Lib.Set_Close_On_Exec.
28310 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28311 the parent side as close-on-exec so that they are not inherited by the
28314 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28315 set or clear the FD_CLOEXEC flag on a file descriptor.
28317 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28318 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28322 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28323 on the field if Pragma Component_Alignment (Storage_Unit).
28324 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28325 side-effects as if it were a constant; also make SAVE_EXPR to protect
28327 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28329 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28330 (components_to_record): Test it.
28331 Fix improper usage of REFERENCE_CLASS_P.
28333 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28336 * utils2.c: Minor reformatting.
28338 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28339 handle other cases like RECORD_TYPE.
28341 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28343 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28345 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28346 component of an array of arrays in an assignment context, and the
28347 aggregate has component associations that require sliding on
28348 assignment, force reanalysis of the aggregate to generate a temporary
28349 before the assignment.
28350 (Must_Slide): Make global to the package, for use in Gen_Assign.
28352 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28354 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28355 unchecked union with no inferable discriminants, return a
28356 Raise_Program_Error node, rather than inserting it at the point the
28358 (Expand_Record_Equality, Component_Equality): Handle properly the case
28359 where some subcomponent is an unchecked union whose generated equality
28360 code raises program error.
28362 2005-02-09 Doug Rupp <rupp@adacore.com>
28364 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28365 [VMS] (#define exit hack): Remove.
28367 2005-02-09 Pascal Obry <obry@adacore.com>
28368 Arnaud Charlet <charlet@adacore.com>
28370 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28371 address of the exception registration. The Win32 version of this
28372 routine calls __gnat_install_SEH_handler() to initialize the SEH
28373 (Structured Exception Handling) handler.
28374 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28375 SEH (Structured Exception Handling) now.
28376 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28377 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28378 preprocessor condition protecting the call to the extra eh setup
28379 subprogram, which is only available for the ppc target.
28380 (__gnat_clear_exception_count): replaced reference to
28381 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28383 * seh_init.c: New file.
28385 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28386 (GNATBIND_OBJS): Idem.
28388 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28389 routine takes a new parameter (a pointer to the exception registration
28390 for the SEH (Structured Exception Handling) support.
28392 * raise.h: (__gnat_install_SEH_handler): New prototype.
28393 Update copyright notice.
28395 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28396 record and initialize it by calling __gnat_install_SEH_handler.
28398 2005-02-09 Vincent Celier <celier@adacore.com>
28400 * make.adb (Gnatmake): Do not fail when the main project has no object
28403 2005-02-09 Doug Rupp <rupp@adacore.com>
28405 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28406 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28407 [VMS]: Add translations for g-enblsp.adb.
28409 * s-asthan-vms.adb: Removed.
28410 * s-asthan-vms-alpha.adb: Added.
28412 2005-02-09 Pascal Obry <obry@adacore.com>
28414 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28415 (LIBGNAT_OBJS): Add seh_init.o.
28417 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28420 * Makefile.in: Link all gnat tools with -static-libgcc, since
28421 -shared-libgcc is now used by default on some systems (e.g. linux with
28423 Remove references to Makefile.prolog/generic, no longer used.
28425 2005-02-09 Vincent Celier <celier@adacore.com>
28427 * prj-makr.adb (Process_Directory): Put file name in canonical case
28428 before matching against the patterns.
28429 If gnatname has been invoked as <prefix>-gnatname
28430 then invoke the compiler as <prefix>-gcc, not just "gcc".
28432 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28434 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28435 with expansion disabled. The actual subtype is needed among other
28436 places when the selected component appears in the context of a loop
28437 bound, and denotes a packed array.
28438 (Operator_Check): Always use the first subtype in the
28439 error message, to avoid the appearance of internal base types.
28440 (Transform_Object_Operation): Copy each actual in full
28441 to the parameter associations of the constructed call, rather than
28442 using the shallow copy mechanism of New_Copy_List. This ensures that
28443 the chaining of named associations is done properly.
28444 (Complete_Object_Operation): Rewrite node, rather than
28445 replacing it, so that we can trace back to the original selected
28448 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28449 and calls that use object notation, if the called function is not
28450 declared in a withed unit, place the elaboration constraint on the
28451 unit in the context that makes the function accessible.
28452 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28453 imposes an elaboration constraint between two packages.
28455 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28457 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28458 views of a private type after handling its private dependents, to
28459 maintain proper stack discipline between entry and exit from the
28462 2005-02-09 Cyrille Comar <comar@adacore.com>
28464 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28465 Minor reformatting.
28467 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28469 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28470 fields for foreign threads.
28472 2005-02-09 Doug Rupp <rupp@adacore.com>
28474 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28475 recursion warnings when compiled with -gnatdm.
28477 2005-02-09 Robert Dewar <dewar@adacore.com>
28479 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28480 Slight fix to documentation of -gnaty with no parameters
28482 * xr_tabls.ads: Add ??? comment for missing overall comment
28484 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28485 we now use by default.
28487 * xsnames.adb: Adjust end of file test to look for five space followed
28488 by '#' instead of six spaces. The format of xsnames.adb was modified
28489 in the last update.
28491 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28494 * clean.adb: Minor reformatting.
28496 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28497 gnatname.adb: Minor reformatting
28498 Add 2005 to copyright output when utility is run
28500 * csets.adb: Eliminate obsolete comment
28502 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28505 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28507 2005-02-09 Sergey Rybin <rybin@adacore.com>
28509 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28510 the difference between compact and incompact layout and add the record
28511 representation clause to the example illustrating different layouts.
28512 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28513 component clauses").
28515 2005-02-09 Florian Villoing <villoing@adacore.com>
28517 * gnat_ugn.texi: Fix typos.
28518 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28520 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28521 in the generated documentation.
28523 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28525 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28527 Update linker wrapper when linking with non GNU C++.
28529 2005-02-09 Pascal Obry <obry@adacore.com>
28532 Document the procedure to debug the DllMain routine on Windows.
28533 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28535 Document new BIND qualifer /RETURN_CODES=VMS.
28537 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28539 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28540 Edited gnatmetric chapter
28542 2005-02-09 Robert Dewar <dewar@adacore.com>
28545 Changes to document new wide wide character support
28547 Update documentation on Normalize_Scalars and Initialize_Scalars
28549 2005-02-09 Pascal Obry <obry@adacore.com>
28551 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28553 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28555 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28556 from the VxWorks kernel) that is needed for getting the active
28557 priority of the different tasks.
28559 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28560 Use a pragma Elaborate_Body in the spec file instead.
28561 Noticed by code reading.
28563 2005-02-09 Thomas Quinot <quinot@adacore.com>
28565 * exp_util.ads: Minor correction in comment.
28567 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28569 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28570 since this procedure is now too complex to be worth inlining.
28572 2005-02-09 Richard Henderson <rth@redhat.com>
28574 * utils.c (gnat_define_builtin): Remove.
28575 (gnat_install_builtins): Use build_common_builtin_nodes.
28577 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28579 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28580 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28581 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28582 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28583 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28584 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28585 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28586 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28587 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28588 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28589 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28590 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28591 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28592 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28593 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28594 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28595 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28596 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28597 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28598 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28599 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28600 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28601 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28602 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28603 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28604 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28605 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28606 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28607 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28608 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28609 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28610 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28611 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28612 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28615 2005-01-27 Laurent Guerby <laurent@guerby.net>
28617 * Makefile.in: Fix a-intnam.ads from previous commit,
28618 add 2005 to copyright.
28619 * a-intman-rtems.ads: Renamed to...
28620 * a-intnam-rtems.ads:
28622 2005-01-27 Laurent Guerby <laurent@guerby.net>
28624 * Makefile.in: Rename GNAT RTEMS specific files.
28625 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28626 5rosinte.ads, 5rparame.adb: Replaced by files below.
28627 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28628 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28630 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28631 Laurent Guerby <laurent@guerby.net>
28634 * 5rosinte.ads: Add No_Key constant.
28635 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28636 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28638 2005-01-26 Laurent Guerby <laurent@guerby.net>
28641 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28643 2005-01-20 Richard Henderson <rth@redhat.com>
28645 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28646 a-intnam-linux.ads and system-linux-alpha.ads.
28647 * a-intnam-linux-alpha.ads: Remove file.
28648 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28649 * system-linux-alpha.ads: New file.
28651 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28654 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28655 set to the new string.
28657 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28659 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28662 2005-01-18 Richard Henderson <rth@redhat.com>
28664 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28665 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28667 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28669 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28671 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28672 (GCC_ZCX_Support): Likewise.
28674 2005-01-11 Bastian Blank <waldi@debian.org>
28676 * system-linux-s390.ads: Define Preallocated_Stacks.
28677 * system-linux-s390x.ads: Likewise.
28679 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28681 * gnat_ugn.texi: Fix texi errors with null variables.
28683 2005-01-03 Thomas Quinot <quinot@adacore.com>
28685 * gen-soccon.c: New utility program to generate g-soccon.ads
28688 * socket.c, gsocket.h: Split inclusion of system header files into a
28689 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28691 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28692 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28693 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28694 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28695 should not be edited by hand anymore, but should be regenerated using
28698 2005-01-03 Robert Dewar <dewar@adacore.com>
28699 Ed Schonberg <schonberg@adacore.com>
28700 Vincent Celier <celier@adacore.com>
28702 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28703 on/off, since this is an obsolescent feature, for which we now generate
28706 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28707 warning mode is set and obsolescent usage of this attribute occurs.
28708 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28709 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28710 predates, and partly motivates, the adoption of the AI.
28711 Implement new Ada 2005 attribute Mod
28713 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28716 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28718 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28719 pragma restrictions.
28720 New entry for Ada 2005 attribute Mod.
28723 Add recognition of new pragma Restrictions No_Dependence
28724 Recognize restriction No_Obsolescent_Features at parse time
28726 * bcheck.adb: Add circuitry for checking for consistency of
28727 No_Dependence restrictions.
28729 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28732 * restrict.ads, restrict.adb: Add subprograms to deal with
28733 No_Dependence restrictions.
28735 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28738 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28739 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28741 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28742 dummy parameter to scng instantiation.
28743 Needed for new restriction No_Obsolescent_Features
28745 * scn.adb: (Obsolescent_Check): New procedure
28746 Needed for new restriction No_Obsolescent_Features
28748 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28749 specified by AI-285, needed for implementation of AI-388 (adding greek
28750 pi to Ada.Numerics).
28751 Add new generic formal to scng, needed for new restriction
28752 No_Obsolescent_Features.
28754 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28756 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28757 restrictions lines.
28758 (Scan_ALI): When finding an unexpected character on an R line, raise
28759 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28760 Ignore_Errors is True, default restrictions are set and scanning of the
28761 ALI file continues with the next line. Also, when Bad_R_Line is raised
28762 and Ignore_Errors is True, skip to the end of le line.
28764 * sem_ch10.adb: Check that explicit with's do not violate
28765 No_Dependence restrictions.
28766 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28767 illegal context clauses containing child units of instance.
28769 * sem_prag.adb: Processing and checking for new No_Dependence
28771 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28772 analyze and check the External argument.
28774 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28776 2005-01-03 Robert Dewar <dewar@adacore.com>
28778 * atree.adb: Add a fifth component to entities
28779 This allows us to add 32 flags and four new fields
28781 * atree.ads: Add a fifth component to entities
28782 This allows us to add 32 flags and four new fields
28784 * einfo.ads, einfo.adb: Document new fields and new flags now available
28785 Add routines for printing new fields
28787 * treepr.adb: Call routines to print out additional fields if present
28789 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28791 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28792 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28794 * Makefile.in: Add support to build shared Ada libraries on solaris x86
28795 Remove gpr2make, replaced by gprmake.
28796 Remove references to gnatmem and libaddr2line.
28797 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28798 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28799 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28800 a-numaux-darwin.ads and a-numaux-darwin.adb
28801 Enable mlib-tgt-lynxos.adb on lynxos.
28803 * Make-lang.in: Remove rules for gpr2make.
28804 When generating sdefault.adb, do not call Relocate_Path
28805 on S3 for function Target_Name, as it is not a path.
28806 Remove references to gnatmem and libaddr2line.
28808 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28811 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
28813 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28814 address is incompatible with its base type alignment constraints when
28815 this can be decided statically.
28817 2005-01-03 Olivier Hainque <hainque@adacore.com>
28819 * decl.c (compatible_signatures_p): New function. The intended purpose
28820 is to check if two function signatures for a call-site and a callee are
28821 compatible enough for the call to be valid. The underlying purpose is
28822 to check if a call to a mapped builtin is using the right interface.
28823 The current code actually does not check antyhing - this a placeholder
28824 for future refinements.
28825 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28826 builtin calls for convention Intrinsic.
28828 * gigi.h (builtin_decl_for): Declare (new function).
28830 * utils.c (gnat_install_builtins): Install the target specific builtins.
28831 (builtin_decl_for): New function, provide a dummy body for now.
28833 2005-01-03 Geert Bosch <bosch@adacore.com>
28835 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28836 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28837 (Pred): Implement in terms of Succ.
28839 * trans.c (convert_with_check): Reimplement conversion of float to
28842 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28843 Vincent Celier <celier@adacore.com>
28845 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28846 bounds can be negative, and must be declared Int, not Nat.
28848 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28849 array is checked after using the index in the array.
28851 * makegpr.adb (Add_Switches): Check if there is a package for the
28852 processor. If there is no package, do not look for switches.
28854 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28856 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28857 generation of predefined stream operations (specs and bodies) should
28858 proceed. Under various restrictions these subprograms must not be
28861 2005-01-03 Thomas Quinot <quinot@adacore.com>
28864 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28865 amount of PCS-specific code in RACW stubs generation.
28866 (Copy_Specification): Set Etype on copied formal parameter entities, as
28867 this information is needed for PolyORB stubs generation.
28868 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28869 variable Dynamic_Async.
28870 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28871 (Build_RPC_Receiver_Specification): Make generic again, as recent
28872 changes have allowed RPC receivers to have the same profile for both
28873 variants of the PCS.
28874 Reorganise RPC receiver generation to reduce differences between the
28875 structure of GARLIC and PolyORB RPC receivers.
28876 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28878 Simplify elaboration code for RCI packages.
28880 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28881 generation to reduce differences between the structure of GARLIC and
28882 PolyORB RPC receivers.
28884 * s-stratt.adb: Fix typo in comment.
28886 2005-01-03 Thomas Quinot <quinot@adacore.com>
28888 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28889 copied from Make_Init_Call).
28891 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28892 reads and assignments on a temporary variable declared with appropriate
28895 2005-01-03 Robert Dewar <dewar@adacore.com>
28897 * i-c.adb (To_C): Raise CE if string is null and Append_Null
28899 2005-01-03 Robert Dewar <dewar@adacore.com>
28901 * i-cstrin.adb (Update): Do not append a null in form called with a
28902 String. This avoids unintended behavior.
28904 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28907 * init.c: Fix warnings on Free BSD section.
28909 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28912 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28915 2005-01-03 Vincent Celier <celier@adacore.com>
28917 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28918 libraries when Unique_Compile is True (-u switch).
28921 2005-01-03 Robert Dewar <dewar@adacore.com>
28923 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28924 upper case letter or underscore after W, as allowed by spec.
28926 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28928 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28929 darwin port by using proper type definitions from header files.
28930 Use SIGTERM instead of SIGABRT for SIGADAABORT.
28932 2005-01-03 Robert Dewar <dewar@adacore.com>
28934 * par.adb: Enhance error message handling for configuration file
28937 2005-01-03 Robert Dewar <dewar@adacore.com>
28939 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28940 removed during the previous update (test properly for case of dividing
28941 largest negative number by -1, which generates overflow).
28943 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28944 Sergey Rybin <rybin@adacore.com>
28946 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28947 to use as the defining identifier for a formal package.
28948 (Remove_Parent): If the instance takes place within (an instance of)
28949 a sibling, preserve private declarations of common parent.
28951 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28953 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28954 to determine whether one of the operands is a fixed-point type for
28955 which a user-defined multiplication or division operation might be
28958 * sem_res.adb (Valid_Conversion): The legality rules for conversions
28959 of access types are symmetric in Ada 2005: either designated type can
28962 2005-01-03 Vincent Celier <celier@adacore.com>
28964 * s-fileio.adb (Temp_File_Record): Change length of string component
28965 Name from L_tmpnam + 1 to max_path_len + 1.
28967 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28969 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28970 Self_Id.Deferral_Level = 0.
28971 (Do_Pending_Action): Move this function to the spec.
28973 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28974 Do_Pending_Action explicitely when needed, in case we're using
28975 No_Abort restrictions.
28977 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28978 deferral level since it will not get changed by the generated code.
28979 Keeping a default value of 1 would prevent some operations (e.g.
28980 select or delay) to proceed successfully.
28982 2005-01-03 Ben Brosgol <brosgol@adacore.com>
28983 Robert Dewar <dewar@adacore.com>
28984 Cyrille Comar <comar@adacore.com>
28986 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28987 porting guide chapter (vms version).
28988 Revised doc title (removed "for native platforms") and subtitle.
28989 Add discussion on warning flag for obsolescent features. First we
28990 note that it applies to obsolete GNAT features, which was previously
28991 omitted. Second we contrast the behavior with that of the new
28992 Ada 2005 AI-368 restriction No_Obsolescent_Features.
28993 Preliminary rewriting of GNAT & libraries chapter in order to take
28994 into account default project locations & new project manager
28997 2005-01-03 Robert Dewar <dewar@adacore.com>
28999 * cstand.adb (Create_Operators): Clean up format and documentation of
29000 unary and binary operator result tables. No change in code, just
29001 reformatting and addition of comments.
29003 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29004 sem_ch2.adb: Minor reformatting
29006 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29007 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29008 comments for Tree_Read and Tree_Write.
29010 2005-01-03 Pascal Obry <obry@adacore.com>
29012 * exp_attr.ads: Minor reformatting.
29014 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29016 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29019 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29021 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29022 whether the ancestor type is private, as may be the case with nested
29025 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29028 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29030 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29032 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29033 * utils2.c (build_unary_op): Likewise.
29035 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29037 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29039 2004-12-19 Richard Henderson <rth@redhat.com>
29041 * trans.c (gigi): Update gimplify_body call.
29043 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29045 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29047 2004-12-07 Ed Falis <falis@adacore.com>
29049 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29050 current task being suspended.
29052 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29054 (__gnat_map_signal): removed test for current task being suspended.
29056 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29058 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29059 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29060 targets (such as AAMP).
29062 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29064 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29065 because the back-end may otherwise treat it as a redefinition of the
29068 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29070 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29072 * lang-specs.h: Accept --param.
29074 2004-12-07 Vincent Celier <celier@adacore.com>
29076 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29077 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29078 Current_Body_Suffix => Ada_Body_Suffix).
29079 Take into account Externally_Built attribute.
29081 * clean.adb (In_Extension_Chain): Always return False when one of the
29082 parameter is No_Project.
29083 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29084 Ada_Language_Index).
29085 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29086 Process_Languages for procedure Parse).
29088 * gnatcmd.adb (Carg_Switches): New table.
29089 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29090 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29091 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29093 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29094 Header_Num and function Hash are now declared in package Prj,
29097 * prj.adb (Suffix_Of): New function.
29098 (Set (Suffix)): New procedure.
29099 (Hash): One function moved from Prj.Com
29100 (Is_Present, Language_Processing_Data_Of): New functions
29101 (Set): Two new procedures
29102 (Add_Language_Name, Display_Language_Name): New procedures
29104 * prj.ads: (Suffix_Of): New function
29105 (Set (Suffix)): New procedure
29106 Add several types and tables for multi-language support.
29107 (Header_Num): Type moved from Prj.Com
29108 (Hash): Two functions moved from Prj.Com
29109 (Is_Present, Language_Processing_Data_Of): New functions
29110 (Set): Two new procedures
29111 (Add_Language_Name, Display_Language_Name): New procedures
29112 (Naming): Component name changes:
29113 Current_Spec_Suffix => Ada_Spec_Suffix,
29114 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29115 Impl_Suffixes, Supp_Suffixes.
29116 (Project_Data): New components: Externally_Built, Supp_Languages,
29117 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29118 Default_Linker_Path.
29120 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29121 new package Language_Processing with its attributes (Compiler_Driver,
29122 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29123 Binder_Driver, Default_Linker).
29125 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29126 (Header_Num): Type moved to package Prj
29128 * prj-env.adb: Adapt to name changes in package Prj
29129 (Current_Spec_Suffix => Ada_Spec_Suffix,
29130 Current_Body_Suffix => Ada_Body_Suffix).
29132 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29133 default to the project path, except the "-" is one of the directories
29134 in env var ADA_PROJECT_PATH.
29135 (Current_Project_Path): Global variable, replacing Project_Path
29136 that was in the body of Prj.Part.
29137 (Project_Path): New function
29138 (Set_Project_Path): New procedure
29139 Initialize Current_Project_Path during elaboration of the package
29140 Remove dependency on Prj.Com, no longer needed
29142 * prj-ext.ads (Project_Path): New function
29143 (Set_Project_Path): New procedure
29145 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29146 suffix is defined for language <lang>.
29147 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29148 accessing directly the components of Naming.
29149 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29150 Reorganise of this package.
29151 Break procedure Check in several procedures.
29153 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29154 Other_Languages_Check and Language_Independent_Check) with a single
29157 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29158 Process_Languages, no longer needed.
29160 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29161 Current_Project_Path.
29162 Remove elaboration code, moved to the body of Prj.Ext
29163 Use new function Prj.Ext.Project_Path instead of old variable
29165 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29166 When comparing with project paths on the stack, first put the resolved
29167 path in canonical case.
29168 (Parse_Single_Project): Set the path name of the project file in the
29169 tree to the normalized path.
29171 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29172 parameter Process_Languages, no longer needed.
29173 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29174 Other_Languages_Check.
29176 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29177 to store the resolved canonical path of the project file.
29178 Remove dependency to Prj.Com, no longer needed
29180 * prj-util.adb: Adapt to name changes in package Prj
29181 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29184 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29185 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29186 Externally_Built, Include_Option, Language_Processing.
29188 * makegpr.adb: Numerous changes due to changes in packages
29191 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29192 default to the project path, except whe "-" is one of the directories
29193 in env var ADA_PROJECT_PATH.
29194 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29196 2004-12-07 Robert Dewar <dewar@adacore.com>
29198 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29200 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29203 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29204 flag. No longer needed now that we handle this in gnat1drv.adb.
29206 * repinfo.ads: Minor reformatting
29208 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29209 Olivier Hainque <hainque@adacore.com>
29210 Eric Botcazou <ebotcazou@adacore.com>
29212 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29213 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29214 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29215 of a bitfield, which we know is useless and causes trouble because of
29216 alignment implications.
29218 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29220 (process_attributes): Clear DECL_COMMON again when a section attribute
29222 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29223 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29224 (create_field_decl): Special case ADDRESSABLE negative to mean
29225 "no bitfield creation", to be used by make_aligning_type. Don't
29226 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29227 fields claimed addressable still have to be bitfields. Use
29228 value_factor_p instead of a raw binop construction to check for the
29229 position's alignment.
29231 2004-12-07 Geert Bosch <bosch@adacore.com>
29233 * eval_fat.adb: Revert previous change.
29235 2004-12-07 Thomas Quinot <quinot@adacore.com>
29236 Ed Schonberg <schonberg@adacore.com>
29238 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29239 with an implicit dereference as its prefix, use
29240 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29241 an explicit dereference. This ensures that a reference to the original
29242 prefix is generated, if appropriate.
29244 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29245 dereference is rewritten to an explicit one, generate a reference to
29246 the entity denoted by its prefix using the original prefix node, so
29247 the dereference can be properly recorded as a read of the denoted
29248 access value, if appropriate.
29250 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29251 emitting 'assigned but never read' warning on a variable on the basis
29252 that it has an access type.
29253 (Check_References): Emit unreferenced warning when the scope is a
29256 2004-12-07 Robert Dewar <dewar@adacore.com>
29257 Ed Schonberg <schonberg@adacore.com>
29259 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29262 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29263 leaving call unchanged.
29264 This deals with the case where the pragma Import specified
29265 an external name, to be handled by the back end.
29267 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29268 subprogram which is Imported with convention Intrinsic if an
29269 External_Name argument is specified.
29270 (Process_Import_Or_Interface): Properly diagnose link name argument.
29271 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29272 with Sem_Ch6.Cannot_Inline.
29273 (Process_Inline): Provide separate warning for inapplicable inline
29275 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29276 treatment is uniform on different targets.
29278 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29280 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29281 construct is rewritten, preserve end label to permit source navigation.
29283 2004-12-07 Thomas Quinot <quinot@adacore.com>
29285 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29286 Specific_Build_Stub_Target): New subprograms.
29287 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29288 the PCS implementation used, using the above PCS-customized subprograms.
29289 Minor reformatting.
29290 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29291 for generation of DSA code targeted to the PolyORB PCS.
29292 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29293 implementation of the partition communication subsystem in ancillary
29295 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29296 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29297 PCS-specific part of Add_Stub_Type.
29298 (Insert_Partition_Check): Use runtime library function to perform
29301 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29302 (RE_Same_Partition): New entity, from s-parint.
29304 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29306 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29308 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29309 Output the copyright message on a separate line from the version
29312 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29314 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29315 compile-time warning.
29317 2004-12-07 Robert Dewar <dewar@adacore.com>
29319 * g-regpat.adb: (Match): Change a misuse of or to or else
29321 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29324 (Generate_Reference): Handle properly a reference to an entry formal,
29325 when an accept statement has a pragma Unreferenced for it.
29327 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29328 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29329 the body, to ensure that warnings are properly emitted for each accept
29330 statement of a given task entry.
29332 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29334 * Makefile.in: Add support for foreign threads on VMS.
29336 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29338 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29340 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29342 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29344 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29346 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29348 2004-12-07 Robert Dewar <dewar@adacore.com>
29350 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29352 (Remove_Next_Debug): Same fix
29354 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29355 maintain back pointers now, though we did not used to, and comments
29357 (Prepend): Remove pragma Inline.
29358 (Remove_Next): Same cleanup
29360 2004-12-07 Thomas Quinot <quinot@adacore.com>
29362 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29363 used to record an implicit dereference as a read operation on its
29364 prefix when operating under -gnatc. Necessary to avoid spurious
29365 'variable assigned but never read' warnings in that mode.
29366 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29367 is a non-overloaded implicit dereference, call the above subprogram to
29368 ensure proper recording of references.
29370 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29372 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29373 to be resolved later as part of Analyze_Iteration_Scheme's call to
29376 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29378 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29379 prefix is not a scalar type, place error message on prefix, not on
29382 2004-12-07 Bernard Banner <banner@adacore.com>
29384 * vxaddr2line.adb: Add support for x86 vxworks
29386 2004-12-07 Thomas Quinot <quinot@adacore.com>
29388 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29389 documentation of the behaviour of these functions when passed an IP
29390 address that has no record in the system hosts database and no reverse
29393 * cstand.adb, a-tags.ads: Fix typos in comment.
29395 2004-12-07 Robert Dewar <dewar@adacore.com>
29397 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29398 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29399 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29400 s-poosiz.ads: Minor reformatting
29402 * make.adb: Minor reformatting
29403 Add some ??? comments asking for more comments
29405 * s-poosiz.adb: Minor reformatting
29406 Add comments on alignment requirement
29408 * sinfo.ads: Remove obsolete comment and fix typo.
29410 2004-12-07 Vincent Celier <celier@adacore.com>
29411 Sergey Rybin <rybin@adacore.com>
29413 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29414 Files" with the new tool and package names.
29415 Reformatting to suppress most of the warnings for line too long
29416 Document the new section "Project Search Path:" in the output of
29418 Add gnatmetric section
29420 2004-12-07 Vincent Celier <celier@adacore.com>
29422 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29423 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29424 and -eit to -ept. Added qualifier
29425 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29427 2004-11-27 Andreas Schwab <schwab@suse.de>
29429 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29431 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29433 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29434 internal implementation unit GNAT.Sockets.Thin,
29435 as their usage for sockets is non-portable (using the read and write
29436 functions from the system runtime library is fine on UNIX but won't
29437 work under Windows).
29439 * mingw32.h: Update copyright notice.
29441 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29443 * ada-tree.h: Minor reformatting of previous change to avoid lines
29444 longer than 79 characters.
29446 2004-11-25 Olivier Hainque <hainque@adacore.com>
29448 * tb-gcc.c: GCC infrastructure based implementation of
29451 2004-11-24 Steven Bosscher <stevenb@suse.de>
29453 * misc.c (gnat_post_options): Don't clear
29454 flag_inline_functions.
29456 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29459 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29462 2004-11-21 Andreas Jaeger <aj@suse.de>
29464 * stylesw.adb: Change Style_Check_Subprogram_Order to
29465 Style_Check_Order_Subprograms.
29467 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29469 * adaint.h, adaint.c
29470 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29472 Add also a cast to kill another warning.
29473 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29474 parameter with the priority class of the parent process instead of
29475 always using the NORMAL_PRIORITY_CLASS.
29476 (__gnat_dup): New function.
29477 (__gnat_dup2): New function.
29478 (__gnat_is_symbolic_link): Enable the effective body of this
29479 function when __APPLE__ is defined.
29481 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29484 2004-11-18 Olivier Hainque <hainque@adacore.com>
29486 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29487 address of which may be used to represent "others" and "all others"
29488 choices in exception tables, instead of the current harcoded
29489 (void *)0 and (void *)1.
29490 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29492 * gigi.h (others_decl, all_others_decl): New decls representing the
29493 new Others_Value and All_Others_Value objects.
29494 (struct attrib): Rename "arg" component as "args", since GCC expects a
29495 list of arguments in there.
29497 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29498 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29501 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29502 others_decl and all_others_decl instead of hardcoded dummy addresses
29503 to represent "others" and "all others" choices, which is cleaner and
29504 more flexible with respect to the possible eh pointer encoding policies.
29506 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29507 (process_attributes): Account for the naming change of the "args"
29508 attribute list entry component.
29510 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29511 cumulating attributes for different entities into a single list.
29512 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29513 attributes for the current entity and propagate first subtype
29514 attributes to other subtypes.
29515 <E_Procedure>: Attribute arguments are attr->args and not
29516 attr->arg any more.
29517 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29518 argument provided, as this is what GCC expects. Use NULL_TREE instead
29521 2004-11-18 Robert Dewar <dewar@adacore.com>
29523 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29524 Minor reformatting througout (including new function specs)
29525 Add ??? comments asking for clarification.
29527 2004-11-18 Thomas Quinot <quinot@adacore.com>
29529 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29530 incomplete duplicate implementation of this subprogram from butil.
29532 2004-11-18 Thomas Quinot <quinot@adacore.com>
29534 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29535 procedures factors the common processing for building an RPC receiver
29536 for an RCI package or an RACW type.
29537 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29538 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29539 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29541 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29543 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29545 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29546 distribution subprogram identifiers that are either subprogram numbers
29548 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29549 string distribution identifiers assigned to a given subprogram.
29550 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29551 (Add_RAS_Dereference_TSS): Add comments.
29552 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29553 is not referenced yet because it will be used by the PolyORB DSA
29555 (Insert_Partition_Check): Remove fossile code.
29556 (First_RCI_Subprogram_Id): Document this constant.
29557 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29559 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29560 replaced with calls to Get_Library_Unit_Name_String. Previously there
29561 were several instances of the same code in different locations in the
29562 compiler; this checkin completes the replacement of all of these
29563 instances with calls to a common subprogram.
29564 Minor reformatting.
29566 * sem_dist.adb: Remove comment noting that RPC receiver generation
29567 should be disabled for RACWs that implement RASs.
29568 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29570 * sem_util.ads, sem_util.adb (Has_Stream): New function
29571 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29572 qualified name of a library unit into the name buffer.
29573 (Note_Possible_Modification): Generate a reference only
29574 if the context comes from source.
29576 * snames.ads (PCS_Names): New subtype corresponding to names of
29577 supported implementations of the Partition Communication Subsystem
29578 (PCS) (i.e. the runtime library support modules for the distributed
29581 2004-11-18 Robert Dewar <dewar@adacore.com>
29582 Ed Schonberg <schonberg@adacore.com>
29584 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29585 (Has_Rep_Pragma): New function
29586 (Has_Attribute_Definition_Clause): New function
29587 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29588 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29590 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29592 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29593 (Expand_Pragma_Psect_Object): New procedure
29594 These procedures contain the revised and cleaned up processing for
29595 these two pragmas. This processing was formerly in Sem_Prag, but
29596 is more appropriately moved here. The cleanup involves making sure
29597 that the pragmas are properly attached to the tree, and that no
29598 nodes are improperly shared.
29600 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29601 pragmas to Exp_Prag, which is more appropriate.
29602 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29603 check for duplicates Remove use of Is_Psected flag, no longer needed.
29604 Use new Make_String_Literal function with string.
29606 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29607 that are functions return universal values, that have to be converted
29608 to the context type.
29609 Use new Make_String_Literal function with string.
29610 (Get_Stream_Convert_Pragma): New function, replaces the use of
29611 Get_Rep_Pragma, which had to be kludged to work in this case.
29613 * freeze.adb: Use new Has_Rep_Pragma function
29615 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29616 function with string.
29617 Use new Has_Rep_Pragma function.
29619 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29622 2004-11-18 Robert Dewar <dewar@adacore.com>
29624 * errout.ads, errout.adb: (First_Sloc): New function
29626 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29627 check (-gnatyx) instead of being included as a redundant construct
29630 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29631 Style_Check_Order_Subprograms.
29633 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29634 stylesw.adb: Add Style_Check_Xtra_Parens
29636 * usage.adb: Add line for -gnatyx (check extra parens)
29638 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29640 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29641 Robert Dewar <dewar@adacore.com>
29643 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29644 discriminant of a constrained subtype, analyze the copy of the
29645 corresponding constraint, because in some cases it may be only
29646 partially analyzed.
29647 Removes long-lived ??? comments.
29649 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29650 handled controlled or secondary-stack expressions within the
29651 iteration_scheme of a loop.
29653 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29654 bounds that may contain functions calls, to prevent memory leaks when
29655 the bound contains a call to a function that uses the secondary stack.
29656 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29657 generate temporaries for loop bounds that might contain function calls
29658 that require secondary stack and/or finalization actions.
29660 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29661 selected component and the selector is overloadable (not just a
29662 function) treat as function call, Analyze_Call will disambiguate if
29664 (Analyze_Selected_Component): Do not generate an actual subtype for the
29665 selected component if expansion is disabled. The actual subtype is only
29666 needed for constraint checks.
29667 (Analyze_Allocator): If restriction No_Streams is set, then do
29668 not permit objects to be declared of a stream type, or of a
29669 composite type containing a stream.
29671 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29672 No_Streams no longer prohibits with'ing this package.
29674 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29675 discriminants, but the parent base has unknown discriminants, there is
29676 no discriminant constraint to inherit. Such a discrepancy can arise
29677 when the actual for a formal type with unknown discriminants is a
29678 similar private type whose full view has discriminants.
29679 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29680 do not permit objects to be declared of a stream type, or of a
29681 composite type containing a stream.
29683 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29685 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29686 protected operations.
29688 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29689 generated name, it complicates decoding in gdb and hinders debugging
29690 of protected operations.
29691 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29692 flag for the protected entry barrier function.
29693 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29694 flag for the protected entry function.
29696 2004-11-18 Nicolas Setton <setton@adacore.com>
29698 * expect.c: Define __unix__ when __APPLE__ is defined.
29700 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29701 Darwin-specific section.
29703 * lang-specs.h: Change the placement of the %1 marker.
29704 Works around the fact that gcc adds -fPIC by default under Darwin.
29706 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29708 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29709 type of the object with the packed array type, set the Analyzed flag
29710 on the object if it is an entity or simple indexed component, to avoid
29711 spurious type errors.
29713 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29715 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29716 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29717 separate line from the version message.
29719 2004-11-18 Ed Falis <falis@adacore.com>
29721 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29723 (init_float): Eliminate initialization of floating point status for
29724 AE653. The instructions have no effect for vThreads.
29726 2004-11-18 Vincent Celier <celier@adacore.com>
29728 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29729 gnatbind is invoked with -shared.
29731 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29733 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29734 for Detect_Blocking which is redundant with the check done within the
29735 procedure Protected_Single_Entry_Call.
29736 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29737 Detect_Blocking which is redundant with the check done within the
29738 procedure Protected_Single_Entry_Call.
29740 2004-11-18 Vincent Celier <celier@adacore.com>
29742 * makegpr.adb (Compile): Put the compiling switches (in package
29743 Compiler and on the command line) immediately after "-c", instead of
29744 at the end of the command line invocation of the compiler, when
29745 compiling a non-Ada file.
29746 (Build_Global_Archive): When there is no need to rebuild the archive,
29747 set Global_Archive_Exists, so that the archive is passed to the linker
29750 2004-11-18 Robert Dewar <dewar@adacore.com>
29751 Sergey Rybin <rybin@adacore.com>
29754 Remove extra paren check from list of checks for redundant constructs
29755 Add documentation of new -gnatyx style check (check extra parens)
29756 Remove paragraph about gnatelim debug options.
29758 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29759 objects rather than forbidding dependencies on the package Ada.Streams.
29761 * sinfo.ads: Add ??? note that we should document pragmas passed to
29764 * g-expect.ads: Fix a few typos in the comments.
29766 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29768 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29771 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29773 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29775 2004-11-07 Andreas Schwab <schwab@suse.de>
29777 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29779 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
29782 * Makefile.in (darwin): Set soext to .dylib.
29784 2004-10-26 Vincent Celier <celier@gnat.com>
29785 Thomas Quinot <quinot@act-europe.fr>
29787 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29788 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29789 there is no use of GNAT.Sockets.Constants.
29790 Remove remaining pragma Import for C_Write
29791 Remove C_Read and C_Write from internal implementation unit
29792 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29793 the read and write functions from the system runtime library is fine
29794 on UNIX but won't work under Windows).
29796 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29797 (Check_Selector): Use C_Recv instead of C_Read.
29798 Selectors are the GNAT.Sockets abstraction to perform a select()
29799 call on a set of descriptors. To allow abortion of an ongoing
29800 select operation, some data is written to a dedicated socket that
29801 is always monitored.
29802 Under Windows, the write and read library functions cannot operate
29803 on sockets, so we need to use send and recv instead, which is portable
29804 across all supported platforms.
29806 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29807 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29808 (using the read and write functions from the system runtime library is
29809 fine on UNIX but won't work under Windows).
29811 2004-10-26 Nicolas Setton <setton@act-europe.fr>
29813 * mlib-tgt-darwin.adb: New file.
29815 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29816 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29817 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29818 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29821 * Makefile.in: Add support for building shared libraries under Darwin.
29822 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29823 the low level EH init subprogram to be called from __gnat_initialize.
29825 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29826 indicates which options to pass to the archive indexer.
29828 * mlib-utl.adb: Add support for calling ranlib with additional
29829 options. This is needed for instance under Mac OS X.
29830 (Ranlib_Options): New global variable, used to store the potential
29831 options to pass to ranlib.
29832 (Ar): Use Ranlib_Options when spawning ranlib.
29833 (Initialize): Set the value of ranlib option.
29835 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29837 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29838 instead of 8K, to reflect the real potential needs for stack-checking
29841 2004-10-26 Pascal Obry <obry@gnat.com>
29843 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29845 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29846 Windows only the initial thread stack size can be set so it is good to
29847 start we a low stack size.
29848 The OS will adjust the size as needed.
29850 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29851 Nicolas Setton <setton@act-europe.fr>
29853 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29854 "__unix__" instead of "unix".
29855 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29856 sections were just mistakenly ignored. The former is
29857 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29858 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29859 of hpux. This prevents an unwanted definition of the symbol
29860 convert_addresses in adaint.o.
29862 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29864 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29865 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29867 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29869 * a-filico.ads, a-filico.adb: fix incorrect header.
29871 2004-10-26 Javier Miranda <miranda@gnat.com>
29873 * a-ststio.ads: Fix typo in identifier
29875 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29877 * sem_ch4.adb: Minor reformatting.
29879 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29881 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29882 enabled, check the result of unary and binary operations when the
29883 expression is the right-hand side of an assignment.
29885 2004-10-26 Vincent Celier <celier@gnat.com>
29887 * clean.adb (Delete): Do not output warnings when in quiet output and
29888 not in verbose mode.
29889 (Force_Deletions): New Boolean flag, defaulted to False
29890 (Delete): Only delete a file if it is writable, and when
29891 Force_Deletions is True.
29892 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29893 (Usage): Line for new switch -f
29894 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29897 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29899 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29900 JM type only if its size matches that of the wrapper. When a size is
29901 prescribed and the field is not aliased, remove the wrapper of a JM
29902 type only if the size is not greater than that of the packed array.
29903 (gnat_to_gnu_entity): Change the extension of packed array wrappers
29906 2004-10-26 Geert Bosch <bosch@gnat.com>
29908 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29909 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29910 (Pred): Implement in terms of Succ.
29912 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29914 * exp_aggr.adb (Safe_Component): An aggregate component that is an
29915 unchecked conversion is safe for in-place use if the expression of the
29916 conversion is safe.
29917 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29918 be expandable in place even if the aggregate does not come from source.
29919 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29920 designated object of an allocator in place, rather than building it
29921 first on the stack. The previous scheme forces a full copy of the array,
29922 and may be altogether unsusable if the size of the array is too large
29923 for stack allocation.
29925 2004-10-26 Robert Dewar <dewar@gnat.com>
29927 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29928 compares if the component is atomic.
29930 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29931 array assignment if the component type is atomic.
29933 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29934 Eric Botcazou <ebotcazou@act-europe.fr>
29936 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29937 is aliased and is a by_reference type, do not pass by copy.
29938 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29939 detect whether the call is in the right side of an assignment or
29940 the expression of an object declaration. Recurse on component
29941 association within aggregates.
29942 Call it in the condition that determines whether the temporary is
29943 necessary for correct stack-checking.
29945 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29947 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29948 RACW_Type, used in the PolyORB version.
29949 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29950 version and the GARLIC version.
29952 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29953 Rename RCI_Info to RCI_Locator for better consistency between the
29954 GARLIC and PolyORB versions of the distributed systems annex.
29955 (DSA_Implementation_Name): This enumeration lists the possible
29956 implementations of the Partition Communication Subsystem for the
29957 Distributed Systems Annex (DSA). The three available implementations
29958 are the dummy stub implementation (No_DSA), and two versions based on
29959 two different distribution runtime libraries: GARLIC and PolyORB. Both
29960 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29962 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29965 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29966 between the GARLIC and PolyORB versions of the distributed systems
29968 Remove RE_Unbounded_Reclaim_Pool since it is unused.
29970 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29972 * gnat1drv.adb: Suppress calling the back end when
29973 Frontend_Layout_On_Target is true.
29975 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29977 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29978 Set_Read_Only): New subprograms.
29979 These new routines allow the user to set or unset the Owner execute
29980 and Owner write permission flags on a file.
29982 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29983 GNAT.OS_Lib.Set_Executable instead of rolling our own.
29985 2004-10-26 Matthew Gingell <gingell@gnat.com>
29987 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29989 2004-10-26 Pascal Obry <obry@gnat.com>
29991 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29992 memory before the faulting page we properly test the process read
29993 access for this address using appropriate Win32 routine.
29994 (HPUX sections): guard with "__hpux__" instead of "hpux".
29996 2004-10-26 Robert Dewar <dewar@gnat.com>
29998 * lib-xref.adb (Generate_Reference): Don't complain about reference to
29999 entry parameter if pragma Unreferenced set, since we do not properly
30000 handle the case of multiple parameters.
30002 2004-10-26 Vincent Celier <celier@gnat.com>
30004 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30005 (Ada_Objects_Path.Add): For a library project, add to the object path
30006 the library directory only if there is no object directory or if the
30007 library directory contains ALI files.
30008 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30010 2004-10-26 Vincent Celier <celier@gnat.com>
30012 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30013 extension of library projects.
30015 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30016 path defaults to ".:<prefix>/lib/gnat".
30017 (Parse): For an extending all project, allow direct import of a project
30018 that is virtually extended.
30020 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30021 the specified name is directly imported, return its ID. Otherwise, if
30022 an extension of this project is imported, return the ID of the
30025 2004-10-26 Robert Dewar <dewar@gnat.com>
30027 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30028 (Sub3): New procedure, used by Scaled_Divide
30029 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30030 correct more than one instance of failure to propagate carries
30032 (Double_Divide): Handle overflow case of largest negative number
30033 divided by minus one.
30035 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30036 the case of a quotient value out of range.
30039 2004-10-26 Robert Dewar <dewar@gnat.com>
30041 * s-bitops.adb (Bit_Eq): Remove redundant check.
30043 * s-bitops.ads: Minor comment updates
30044 Change some occurrences of Address to System.Address
30046 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30048 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30050 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30051 accessibility check to prefix that is a protected operation.
30053 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30055 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30056 empty, post message on stub.
30058 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30059 Javier Miranda <miranda@gnat.com>
30061 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30062 current instance appears within a unit that is directly in the context
30064 Used to determine whether the body of the instance should be analyzed
30065 immediately after its spec, to make its subprogram bodies available
30066 for front-end inlining.
30067 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30068 constraint is not allowed on the component type (AARM 12.5.3(3))
30070 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30072 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30073 'Storage_Pool): enhance, document & limit detection of non-sharable
30076 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30078 * s-pooglo.ads: Add more documentation now that this pool is properly
30081 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30083 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30084 or protected type with discriminants, do not constrain the
30085 corresponding record type if the subtype declaration has no
30086 discriminant constraints. This can be the case in source code, or in
30087 the subtype declaration created to rename an actual type within an
30090 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30092 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30093 different kind of stub (possibly wrong name for file), do not check
30095 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30096 includes call to some function that returns an unconstrained type, do
30099 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30101 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30102 appear in the code for the main unit. Dependencies among units in the
30103 context of the main unit are established when those other units are
30104 compiled. Otherwise spurious elaboration constraints can generate
30105 incorrect elaboration circularities.
30107 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30108 Ed Schonberg <schonberg@gnat.com>
30110 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30111 subprogram is called with a parameter that is not an object name. This
30112 situation arises for some cases of illegal code, which is diagnosed
30113 later, and in this case it is wrong to call Is_Aliased, as that might
30114 cause a compiler crash.
30115 (Explain_Limited_Type): Refine previous fix to include
30116 inherited components of derived types, to provide complete information.
30118 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30119 is the prival for a protected object.
30120 It is necessary to mark this entity as a variable, in addition to
30121 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30122 modified to avoid checking the Aliased flag on entities that are not
30123 objects. (Checking that flag for non-objects is erroneous and could
30124 lead to a compiler crash).
30126 2004-10-26 Robert Dewar <dewar@gnat.com>
30128 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30129 X_Frac = 0.5, then we know that the number X must be positive.
30130 (Succ): Remove the same redundant test, and also fix the primary test
30131 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30133 (Decompose): Add fuller comments to spec
30135 2004-10-26 Pascal Obry <obry@gnat.com>
30137 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30138 validity (process must have read access). Set to 0 in all other cases.
30139 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30140 violation on Win32.
30141 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30142 segmentation violation.
30144 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30146 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30147 whose type is a constructed subtype of an aliased object with an
30148 unconstrained nominal subtype, convert the actual to the constructed
30149 subtype before taking its address.
30151 2004-10-26 Vincent Celier <celier@gnat.com>
30153 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30154 (Is_Path_Name_Case_Sensitive): New function
30156 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30157 (Base_Name, Simple_Name, Current_Directory, Compose,
30158 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30161 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30162 Vasiliy Fofanov <fofanov@act-europe.fr>
30163 Vincent Celier <celier@gnat.com>
30165 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30166 "memory management issues" section and document some of the useful
30167 memory pools provided as part of the GNAT library.
30168 Remove "virtual" from declaration of A::method2 in
30169 the simple example of Ada/C++ mixed system.
30170 Library Projects may be virtually extended: their virtual extensions
30171 are not Library Projects.
30172 Added section on extending project hierarchies.
30174 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30176 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30178 (__gnat_portable_spawn): Remove const.
30180 * mingw32.h (MAXPATHLEN): Check for previous definition.
30182 2004-10-17 Matthias Klose <doko@debian.org>
30184 * gnatvsn.ads: Set gnat library version to 4.0.
30186 2004-10-05 Vincent Celier <celier@gnat.com>
30188 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30190 2004-10-04 Laurent Guerby <laurent@guerby.net>
30193 * Makefile.in: Define and use RANLIB_FLAGS.
30195 2004-10-04 Pascal Obry <obry@gnat.com>
30197 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30198 other x86 platforms).
30200 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30202 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30203 in general and triggers stack alignment adjustment for thread entry
30204 points on targets where this is necessary.
30206 2004-10-04 Bernard Banner <banner@gnat.com>
30209 * Makefile.in: Add section for powerpc linux
30210 Add variant i-vxwork-x86.ads
30212 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30214 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30216 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30217 table registration calls when need be. Ensures no reference to the crt
30218 ctors symbol are issued in the SJLJ case, which avoids possible
30219 undefined symbol errors in the case of modules to be statically linked
30222 2004-10-04 Javier Miranda <miranda@gnat.com>
30224 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30225 in-line the code corresponding to subprogram Analyze_Actuals. In
30226 addition, analyze the actuals only in case of subprogram call.
30228 2004-10-04 Ed Falis <falis@gnat.com>
30230 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30232 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30234 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30235 in the documentation.
30237 2004-10-04 Robert Dewar <dewar@gnat.com>
30239 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30241 (Analyze_Block_Statement): Add circuitry to detect following dead code
30242 (Check_Unreachable_Code): Handle case of block exit
30244 2004-10-04 Robert Dewar <dewar@gnat.com>
30246 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30247 (XMatchD): Avoid warning for Logic_Error call
30249 2004-10-04 Robert Dewar <dewar@gnat.com>
30251 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30252 consider expressions buried within a procedure actual to be an actual.
30253 This caused some blowups with uses of packed slices within a procedure
30256 2004-10-04 Robert Dewar <dewar@gnat.com>
30258 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30259 longer need to be initialized to zero.
30260 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30261 initialized to zero.
30263 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30264 considered valid, even if the representation is modular. That's correct
30265 now that we no longer initialize packed modular arrays to zero.
30267 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30268 suffixes. These are now documented as the only cases in which the
30269 debugger ignores outer records.
30270 Previously, the spec allowed arbitrary suffixes for this purpose.
30271 Change name of LJM to JM for packed array pad records
30272 Create separate section on packed array handling, and add a whole new
30273 set of comments to this section describing the situation with packed
30274 modular types and justification requirements depending on endianness.
30276 2004-10-04 Robert Dewar <dewar@gnat.com>
30278 * a-except.adb: Add a comment for last change
30280 * einfo.ads: Minor spelling correction in comment
30282 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30284 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30287 * sem_util.ads: Minor comment update
30289 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30291 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30292 Inline_Always when in Configurable_Run_Time mode.
30294 * sem_prag.adb (Process_Convention): If entity is an inherited
30295 subprogram, apply convention to parent subprogram if in same scope.
30296 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30297 when in Configurable_Run_Time mode.
30299 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30301 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30302 class_wide type after component list has been inherited.
30304 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30306 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30307 Denotes_Previous_Actual, to handle properly the case of a private
30308 actual that is also the component type of a subsequent array actual.
30309 The visibility status of the first actual is not affected when the
30310 second is installed.
30311 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30312 make fully recursive the treatment of formals of packages declared
30314 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30315 the above on exit from an instantiation.
30316 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30317 current instantiation which is now complete.
30318 (Analyze_Package_Instantiation): No instantiated body is needed if the
30319 main unit is generic. Efficient, and avoid anomalies when a instance
30320 appears in a package accessed through rtsfind.
30322 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30324 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30325 do not generate a declaration for a temporary if the call is part of a
30326 library-level instantiation.
30328 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30330 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30331 searching for a limited component to flag.
30333 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30334 expansion of Input, to account for the fact that the implicit call
30335 generated by the attribute reference must freeze the user-defined
30336 stream subprogram. This is only relevant to 'Input, because it can
30337 appear in an object declaration, prior to the body of the subprogram.
30339 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30340 expansion can proceed and further errors uncovered.
30341 (Minor clean up): Fix cases of using | instead of \ for continuation
30344 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30346 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30348 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30349 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30350 Use gcc_assert and gcc_unreachable.
30352 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30353 specified alignment before validating size.
30354 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30355 stripped-down declaration for the type of the inner field when making
30358 * utils.c (finish_record_type): Do not compute the size in units
30359 incrementally. Instead compute it once for the rep clause case.
30360 Use gcc_assert and gcc_unreachable.
30362 2004-10-04 Vincent Celier <celier@gnat.com>
30364 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30366 (Is_Valid_Path_Name): Take '/' as a directory separator.
30368 2004-10-04 Vincent Celier <celier@gnat.com>
30370 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30371 (Extended_Project) only if Extended_Project is defined, to avoid
30373 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30375 (Parse_Single_Project): Ditto.
30377 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30378 Add_To_Project_Path for virtual projects.
30380 2004-10-04 Vincent Celier <celier@gnat.com>
30382 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30383 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30384 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30385 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30386 parameter Options_2.
30388 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30389 Build_Dynamic_Library with an empty Options_2.
30391 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30394 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30395 directory separator, if any.
30396 (Gprmake): Do not allow mains on the command line for library projects.
30397 Do not attempt to link when the project is a library project.
30398 (Library_Opts): New table to store Library_Options.
30399 (Build_Library): If Library_Options is specified, pass these options
30400 when building a shared library.
30402 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30404 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30405 the end of this procedure now that the unlock operation was inserted
30408 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30410 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30411 corresponding to the Preallocated_Stacks flags in System.
30412 (Get_Target_Parameters): Including the processing for
30413 Preallocated_Stacks.
30415 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30416 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30417 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30418 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30419 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30420 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30421 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30422 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30423 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30424 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30425 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30426 used to signal whether the compiler creates the required stacks and
30427 descriptors for the different tasks (when True) or it is done by the
30428 underlying operating system at run time (when False).
30429 It is initially set to False in all targets.
30431 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30432 if it is supported by the target.
30433 (Make_Task_Create_Call): Pass the stack address if it has been
30434 previously created. Otherwise pass a Null_Address.
30436 * snames.adb: Add _stack.
30438 * snames.ads: Add Name_uStack. Required to allow the expander to
30439 statically allocated task stacks.
30441 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30442 Stack_Address argument.
30443 Check that its value is equal to Null_Address because this target does
30444 not support the static stack allocation.
30446 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30448 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30451 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30453 * exp_dist.adb: Split declaration of asynchronous flag out of
30454 Add_RACW_Read_Attribute.
30455 Minor reformatting for better alignment with PolyORB version.
30456 Store the entity for the asynchronous flag of an RACW, rather than the
30457 expression, in the asynchronous flags table. This will allow this flag
30458 to be used in other subprograms beside Add_RACW_Read_Attribute.
30460 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30462 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30463 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30464 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30465 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30466 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30467 sockets constant MSG_NOSIGNAL (Linux-specific).
30468 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30469 all Send operations.
30470 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30471 from trigerring SIGPIPE.
30472 Rename components to avoid clash with Ada 2005 possible reserved
30474 (Check_Selector): When the select system call returns with an error
30475 condition, propagate Socket_Error to the caller.
30477 2004-10-01 Jan Hubicka <jh@suse.cz>
30479 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30481 2004-09-23 Robert Dewar <dewar@gnat.com>
30484 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30485 instead do this at freeze time (we won't do it if there is an address
30487 Change "pragma inline" to "pragma Inline" in information and error
30489 Minor reformatting.
30491 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30492 right way of doing things after all.
30493 (Freeze_Entity): For object, set Is_Public for imported entities
30494 unless there is an address clause present.
30496 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30498 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30499 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30500 ensures proper handling of types with rep clauses, which might have
30501 their TYPE_SIZE set already.
30503 2004-09-21 Robert Dewar <dewar@gnat.com>
30505 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30506 packed array types in both little- and big-endian cases. This change
30507 ensures that we no longer count on the unused bits being initialized
30508 for such types (and in particular ensures that equality testing will
30509 only read the relevant bits).
30510 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30511 These changes mean that we no longer need to initialize small packed
30513 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30514 optimization to an LJM field as to its parent field.
30516 * ada-tree.h, trans.c, utils.c, utils2.c:
30517 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30519 2004-09-20 Jan Hubicka <jh@suse.cz>
30521 * utils.c (gnat_finalize): Remove.
30522 (end_subprog_body): Directly call cgraph_finalize_function;
30523 do not lower the nested functions.
30525 2004-09-20 Robert Dewar <dewar@gnat.com>
30528 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30529 if an address clause is present, since that means that the Import
30532 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30534 * 5tsystem.ads: Removed, no longer used.
30536 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30537 Zack Weinberg <zack@codesourcery.com>
30539 * ada-tree.def: Use tree_code_class enumeration constants
30540 instead of code letters.
30541 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30542 Update for new tree-class enumeration constants.
30544 2004-09-17 Vincent Celier <celier@gnat.com>
30546 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30547 capabilities of the general project manager.
30549 2004-09-09 Vincent Celier <celier@gnat.com>
30551 * a-direct.ads: Add pragma Ada_05
30552 (Directory_Entry_Type): Give default value to component Kind to avoid
30553 not initialized warnings.
30555 * a-direct.adb (Current_Directory): Remove directory separator at the
30557 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30558 an existing directory.
30559 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30560 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30561 Convert the result to File_Size.
30563 * prj.ads: (Project_Error): New exception
30565 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30566 Prj.Com, not from Osint.
30567 (Attrs, Package_Attributes): Tables moved to private part of spec
30568 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30570 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30571 Prj.Project_Error after call to Fail.
30572 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30573 Fail. Check that package name is not already in use.
30575 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30576 used by tools, not only by the project manager, and to indicate that
30577 exception Prj.Prj_Error may be raised in case of problem.
30578 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30580 (Attrs, Package_Attributes): Table instantiations moved from the body to
30581 the private part to be accessible from Prj.Attr.PM body.
30583 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30584 from new package Prj.Attr.PM.
30585 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30588 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30590 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30591 instead of Elaboration_Checks).
30593 * a-calend.adb: Minor reformatting
30595 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30597 * gigi.h (maybe_pad_type): New declaration.
30598 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30600 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30602 * cuintp.c: Convert to use buildN.
30604 * decl.c (maybe_pad_type): No longer static.
30605 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30607 Convert to use buildN.
30609 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30610 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30611 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30613 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30614 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30615 Convert to use buildN.
30617 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30618 TREE_READONLY for const.
30619 Convert to use buildN.
30621 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30622 (create_var_decl): Refine when TREE_STATIC is set.
30623 Convert to use buildN.
30625 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30627 * gnat_ugn.texi: Delete text relating to checking of ali and object
30630 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30633 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30635 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30636 pragmas recognized by GNAT.
30638 * gnat_rm.texi: Document pragma Detect_Blocking.
30640 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30641 raise Program_Error if called from a protected operation.
30643 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30644 the protected action nesting level.
30645 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30646 protected action nesting level.
30647 (Unlock): When pragma Detect_Blocking is active decrease the protected
30648 action nesting level.
30650 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30651 Protected_Action_Nesting.
30653 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30654 Common_ATCB record. It contains the dynamic level of protected action
30655 nesting for each task. It is needed for checking whether potentially
30656 blocking operations are called from protected operations.
30657 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30658 Detect_Blocking is active or not in the partition.
30660 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30661 raise Program_Error if called from a protected operation.
30662 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30663 Program_Error if called from a protected operation.
30664 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30665 Program_Error if called from a protected operation.
30667 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30668 raise Program_Error if called from a protected operation.
30670 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30671 raise Program_Error if called from a protected operation, and increase
30672 the protected action nesting level.
30673 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30674 Program_Error if called from a protected operation, and increase the
30675 protected action nesting level.
30676 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30677 protected action nesting level.
30679 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30680 raise Program_Error if called from a protected operation, and increase
30681 the protected action nesting level.
30682 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30683 Program_Error if called from a protected operation, and increase the
30684 protected action nesting level.
30685 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30686 raise Program_Error if called from a protected operation.
30687 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30688 active, raise Program_Error if called from a protected operation.
30689 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30690 protected action nesting level.
30692 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30693 insertion of the statement raising Program_Error. The run time
30694 contains the required machinery for handling that.
30696 * sem_util.ads: Change comment associated to procedure
30697 Check_Potentially_Blocking_Operation.
30698 This procedure does not insert a call for raising the exception because
30699 that is currently done by the run time.
30701 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30703 * init.c: Add the global variable __gl_detect_blocking that indicates
30704 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30705 making the pragma available at run time.
30706 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30708 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30709 pragma Detect_Blocking is active.
30711 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30713 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30714 DB is found in the ali file. Any unit compiled with pragma
30715 Detect_Blocking active forces its effect in the whole partition.
30717 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30718 Detect_Blocking is active and delay is called from a protected
30721 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30722 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30723 Detect_Blocking is active (0 otherwise).
30724 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30725 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30728 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30730 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30731 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30734 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30735 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30736 Update API in placeholder implemetation of s-parint to reflect changes
30737 in distribution runtime library.
30739 * sem_ch3.adb (Expand_Derived_Record): Rename to
30740 Expand_Record_Extension.
30742 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30743 primitive operations of potentially distributed object types that have
30744 non-controlling anonymous access formals.
30746 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30748 New implementation of expansion for remote access-to-subprogram types,
30749 based on the RACW infrastructure.
30750 This version of sem_dist is compatible with PolyORB/DSA as well as
30753 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30754 Asynchrronous that applies to a remote access-to-subprogram type, mark
30755 the underlying RACW type as asynchronous.
30757 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30758 __gnat_using_gnu_linker to 1.
30760 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30761 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30762 GNAT.Perfect_Hash_Generators, and remove the empty
30763 GNAT.Perfect_Hash package.
30765 * atree.adb: Minor reformatting
30767 * exp_ch3.adb (Expand_Derived_Record): Rename to
30768 Expand_Record_Extension.
30769 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30770 a component declaration must remain attached at that point in the
30771 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30772 It is therefore necessary to take a copy of the expression when building
30773 the corresponding assignment statement in the init proc.
30774 As a side effect, in the case of a derived record type, we now see the
30775 original expression, without any rewriting that could have occurred
30776 during expansion of the ancestor type's init proc, and we do not need
30777 to go back to Original_Node.
30779 * exp_ch3.ads (Expand_Derived_Record): Rename to
30780 Expand_Record_Extension.
30782 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30783 Returns the RACW type used to implement a remote access-to-subprogram
30785 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30786 New subprograms. Used to create a proxy tagged object for a remote
30787 subprogram. The proxy object is used as the designated object
30788 for RAS values on the same partition (unless All_Calls_Remote applies).
30789 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30790 System.Partition_Interface.Get_Unique_Remote_Pointer.
30791 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30792 Renamed from Add_RAS_*_Attribute.
30793 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30795 New implementation of expansion for remote access-to-subprogram types,
30796 based on the RACW infrastructure.
30798 * exp_dist.ads (Copy_Specification): Update comment to note that this
30799 function can copy the specification from either a subprogram
30800 specification or an access-to-subprogram type definition.
30802 2004-09-09 Ed Schonberg <schonberg@gnat.com>
30804 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30805 in an instance, between an explicit subprogram an one inherited from a
30806 type derived from an actual.
30808 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30809 add a polling call if the subprogram is to be inlined by the back-end,
30810 to avoid repeated calls with multiple inlinings.
30812 * checks.adb (Apply_Alignment_Check): If the expression in the address
30813 clause is a call whose name is not a static entity (e.g. a dispatching
30814 call), treat as dynamic.
30816 2004-09-09 Robert Dewar <dewar@gnat.com>
30818 * g-trasym.ads: Minor reformatting
30820 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30821 packed arrays, since unused bits are expected to be zero for a
30824 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
30826 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30829 2004-09-09 Pascal Obry <obry@gnat.com>
30831 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30832 enable map file generation. Add the right option to generate the map
30833 file if Map_File is set to True.
30835 * gnatdll.adb (Gen_Map_File): New variable.
30836 (Syntax): Add info about new -m (Map_File) option.
30837 (Parse_Command_Line): Add support for -m option.
30838 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30839 Minor reformatting.
30841 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
30843 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30844 new gnatdist implementation.
30845 Define a subpackage isolating the output routines specific to this
30848 2004-09-09 Joel Brobecker <brobecker@gnat.com>
30850 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30852 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30854 2004-09-09 Cyrille Comar <comar@act-europe.fr>
30856 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30859 * opt.ads: Add Ada_Version_Runtime constant used to decide which
30860 version of the language is used to compile the run time.
30862 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
30864 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30865 of variable length temporaries for function return now that the
30866 back-end and gigi support it.
30868 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30870 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30872 * trans.c (struct stmt_group): Delete field GLOBAL.
30873 (gnat_init_stmt_group): Do not initialize it.
30874 (call_to_gnu): Use save_expr, not protect_multiple_eval.
30875 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30876 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30877 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30878 (start_stmt_group): Likewise.
30879 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30881 * utils2.c (ggc.h): Include.
30882 (build_call_raise): Call build_int_cst, not build_int_2.
30884 * utils.c (gnat_init_decl_processing): Fix arg to
30885 build_common_tree_nodes.
30886 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30887 (gnat_define_builtin): Set built_in_decls.
30888 (init_gigi_decls): Call build_int_cst, not build_int_2.
30890 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30891 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30892 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30893 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30894 SET_TYPE_MODULE): Use them.
30895 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30896 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30897 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30898 SET_TYPE_ADA_SIZE): Likewise.
30899 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30900 (DECL_CONST_CORRESPONDING_VAR,
30901 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30902 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30903 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30904 (TYPE_RM_SIZE_NUM): New macro.
30905 (TYPE_RM_SIZE): Modified to use above.
30907 * cuintp.c: (build_cst_from_int): New function.
30908 (UI_To_gnu): Use it.
30910 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30911 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30912 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30913 MIN_EXPR for the size, copy it into new.
30915 2004-09-01 Robert Dewar <dewar@gnat.com>
30917 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30918 packed indexed component where array is an IN OUT formal. This
30919 generated garbage code previously.
30921 * gnat_ugn.texi: Document -fverbose-asm
30923 * gnat-style.texi: Minor updates (note that boolean constants and
30924 variables are joined with AND/OR rather than short circuit forms).
30926 2004-09-01 Ed Schonberg <schonberg@gnat.com>
30928 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30929 it is an upward conversion of an untagged type with no representation
30932 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
30934 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30935 System.Partition_Interface.
30937 * checks.adb (Apply_Access_Checks): Do not generate checks when
30938 expander is not active (but check for unset reference to prefix of
30941 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30942 pragma Debug as an if statement with a constant condition, for
30943 consistent treatment of entity references contained within the
30944 enclosed procedure call.
30946 2004-09-01 Vincent Celier <celier@gnat.com>
30948 * bindgen.adb: (Set_EA_Last): New procedure
30949 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30951 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30952 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30953 linked without errors.
30954 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30956 (Gen_Exception_Table_C): Correct same bugs
30958 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30960 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30961 on Windows, make sure that the drive letter is in upper case.
30963 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30964 Windows, when the drive letter is added and Case_Sensitive is True, the
30965 drive letter is forced to upper case.
30967 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30968 to Options_2 for the call to MLib.Utl.Gcc.
30970 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30971 directory separator when defining BASE_DIR.
30973 2004-09-01 Pascal Obry <obry@gnat.com>
30975 * gprcmd.adb (Extend): Do not output trailing directory separator. This
30976 is not needed and it confuses Windows GNU/make which does not report
30977 directory terminated by a slash as a directory.
30978 (gprcmd): Idem for "pwd" internal command.
30980 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30981 target names rewrite to fix regressions with recent version of
30982 GNU/make. Starting with GNU/make 3.80 the pipe character was not
30983 handled properly anymore.
30985 2004-09-01 Andreas Schwab <schwab@suse.de>
30987 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30988 * raise.c [!IN_RTS]: Undef abort.
30990 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
30992 * utils2.c (build_allocator): Use ssize_int.
30994 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30996 2004-08-27 Andreas Schwab <schwab@suse.de>
30998 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31000 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31003 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31005 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31007 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31008 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31009 * utils.c (init_gigi_decls): Likewise.
31010 * utils2.c (build_call_raise, build_allocator): Likewise.
31012 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31014 * utils.c (gnat_init_decl_processing): Adjust
31015 build_common_tree_nodes call.
31017 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31019 * utils2.c (build_allocator): Use build_int_cst for negative
31022 2004-08-18 Richard Henderson <rth@redhat.com>
31024 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31026 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31028 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31030 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31031 (gnat_to_gnu): Likewise.
31033 2004-08-16 Pascal Obry <obry@gnat.com>
31035 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31036 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31037 option and not mdll anymore. Update comment.
31039 2004-08-16 Pascal Obry <obry@gnat.com>
31041 * bld.adb (Put_Include_Project): Properly handle directory separators
31044 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31046 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31047 decreasing the number of allocated junk nodes while searching for the
31048 appropriate subprogram.
31050 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31052 * cuintp.c (UI_To_gnu): Use build_int_cst..
31053 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31054 * utils.c (init_gigi_decls): Likewise.
31055 * utils2.c (build_call_raise): Likewise.
31057 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31059 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31060 for a global aliased object with a variable size and an unconstrained
31061 nominal subtype, pretend there is no initializer if the one we have is
31062 incomplete, and avoid referencing an inexistant component in there. The
31063 part we have will be rebuilt anyway and the reference may confuse
31064 further operations.
31066 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31068 * einfo.ads: Minor reformatting
31070 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31071 restrictions in the ALI if we only want to warn about violations.
31073 2004-08-13 Vincent Celier <celier@gnat.com>
31075 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31076 when creating a new Unit_Record in table Units.
31078 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31079 that are violated, if any.
31081 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31082 add directory separator if path already ends with a directory separator.
31084 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31086 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31087 unit, this is an attempt to inline a construct that is not available in
31088 the current restricted mode, so abort rather than trying to continue.
31090 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31091 discriminants that rename those of the parent, recover names of
31092 original discriminants for the constraint on the full view of the
31094 (Complete_Private_Subtype): Do not create a subtype declaration if the
31095 subtype is an itype.
31097 * gnat_rm.texi: Added section on implementation of discriminated
31098 records with default values for discriminants.
31100 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31103 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31104 the second operand is overloaded.
31106 2004-08-10 Richard Henderson <rth@redhat.com>
31108 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31109 add __builtin_alloca.
31111 2004-08-10 Richard Henderson <rth@redhat.com>
31113 * config-lang.in (boot_language): Yes.
31115 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31117 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31118 from complaining on potential uninitialized reference.
31119 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31120 new specification and test explicitly for non-zero return value.
31122 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31123 returning C.int, to avoid using a derived boolean type.
31125 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31126 Duplicate_Subexpr_No_Checks in preference to direct use of
31127 Remove_Side_Effects and New_Copy_Tree.
31128 Clear Comes_From_Source on prefix of 'Size attribute reference.
31130 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31131 g-socthi-vxworks.adb: Change calls to
31132 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31133 and test explicitly for non-zero return value.
31135 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31136 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31137 avoid using a derived boolean type.
31139 2004-08-09 Albert Lee <lee@gnat.com>
31141 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31143 2004-08-09 Pascal Obry <obry@gnat.com>
31145 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31146 GCC's -shared option.
31148 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31149 Options_2 parameter (options put after object files).
31151 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31153 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31154 ignore overflows on low and high bounds of an index to also account for
31155 differences in signedness between sizetype and gnu_index_subtype.
31156 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31159 2004-08-09 Robert Dewar <dewar@gnat.com>
31161 * s-solita.ads, s-solita.adb: Minor reformatting
31163 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31164 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31165 obsolescent section
31166 Add note that No_Implicit_Conditionals does not suppress
31167 run time constraint checks.
31169 * vms_conv.ads: Minor reformatting
31171 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31172 and necessary for following change).
31173 (Mark): Return new format Mark_Id containing sec stack address
31174 (Release): Use sec stack address from Mark_Id avoiding Self call
31176 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31177 pointer (cleanup and necessary for following change).
31178 Define Mark_Id as record containing address of secondary stack, that way
31179 Release does not need to find the stack again, decreasing the number of
31180 calls to Self and improving efficiency.
31182 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31184 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31185 case variable into the individual case branches when possible.
31187 * sem_ch11.adb: Minor reformatting
31189 * prj.ads: Correct spelling of suffixs
31191 * prj-nmsc.adb: Minor reformatting
31192 Correct spelling suffixs throughout (also in identifiers)
31194 * freeze.adb: Minor spelling correction
31196 * exp_ch2.adb: Cleanups to handling of Current_Value
31197 (no functional effect).
31199 * bld.adb: Correct spelling of suffixs
31201 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31203 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31206 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31207 package or of a child, private entities are both immediately_visible
31210 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31212 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31213 there are no range checks on the value of the literal.
31215 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31216 wrapped is the triggering alternative of an asynchronous select, action
31217 statements mustbe inserted before the select itself.
31219 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31220 case where the prefix is a protected function call.
31221 (Resolve_Attribute, case 'Access): The attribute reference on a
31222 subprogram is legal in a generic body if the subprogram is declared
31225 2004-08-09 Vincent Celier <celier@gnat.com>
31227 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31228 languages, otherwise building the library may fail with unresolved
31230 (Compile_Sources): Do not build libraries if -c switch is used
31232 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31233 (Write_Usage): If map file creation is supported, output new switches
31235 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31236 gcc call, when supported.
31238 * Makefile.in: Added indepsw.o to the object list for gnatlink
31239 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31241 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31242 indepsw.adb, indepsw.ads: New files.
31244 2004-08-09 Bernard Banner <banner@gnat.com>
31246 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31248 * Makefile.in: add section for vxworks x86
31250 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31252 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31253 per-object constrained components where the discriminant is of an
31255 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31256 the parent initialization procedure for derived Unchecked_Unions.
31257 Instead, derived Unchecked_Unions build their own initialization
31259 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31260 Check the body of the subprogram for details.
31261 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31262 functions for derived Unchecked_Union types by introducing a condition.
31263 Allow the creation of TSS equality functions for Unchecked_Unions.
31264 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31265 Add formal parameter Discr to function signature. Discr is used to
31266 control the generated case statement for Unchecked_Union types.
31267 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31269 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31271 Check the body of the subprogram for details.
31272 (Expand_Composite_Equality): Augment composite type equality to include
31273 correct handling of Unchecked_Union components.
31274 (Expand_N_In): Add condition to detect illegal membership tests when the
31275 subtype mark is a constrained Unchecked_Union and the expression lacks
31276 inferable discriminants, and build a Raise_Program_Error node.
31277 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31278 to detect types that contain components of unconstrained Unchecked_Union
31279 subtype. Add condition to detect equality between types that have an
31280 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31281 node. Add condition to detect equality between Unchecked_Union types
31282 that lack inferable discriminants, and build a Raise_Program_Error node.
31283 Otherwise build a TSS equality function call.
31284 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31285 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31286 with the operand lacking inferable discriminants, and build a Raise_
31287 Program_Error node.
31288 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31289 composite equality.
31290 (Has_Inferable_Discriminants): Implement new predicate for objects and
31291 expressions of Unchecked_Union type. Check the body of subprogram for
31293 (Has_Unconstrained_UU_Components): Add function
31294 Component_Is_Unconstrained_UU. It is used to detect whether a single
31295 component is of an unconstrained Unchecked_Union subtype. Add function
31296 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31297 component inside a variant is of an unconstrained Unchecked_Union type.
31299 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31300 inferred discriminant values. Add condition to generate a case
31301 statement with an inferred discriminant as the switch.
31302 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31303 the behaviour of the subprogram in the presence of an Unchecked_Union.
31304 Add condition to trigger the usage of the inferred discriminant value
31305 as the generated case statement switch.
31306 (Make_Field_Assign): Introduce a Boolean flag that determines the
31307 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31308 condition to trigger the usage of the inferred discriminant value as
31309 the right-hand side of the generated assignment.
31311 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31312 parameter generation when dealing with Unchecked_Unions.
31314 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31315 checks for Unchecked_Unions.
31317 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31319 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31320 Raise_Program_Error nodes for the execution of Read and Write
31321 attributes of Unchecked_Union types and the execution of Input and
31322 Output attributes of Unchecked_Union types that lack default
31323 discriminant values.
31325 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31326 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31327 per-object constrained components of Unchecked_Unions for being
31328 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31329 check individual components withing a variant.
31331 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31332 comparison of Unchecked_Unions.
31333 (Resolve_Equality_OP): Remove guard that prevents equality between
31336 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31337 of component subtypes for Unchecked_Union components.
31338 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31339 since it is the actual subtype.
31341 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31342 pass of Unchecked_Union subtypes as generic actuals to formal types
31343 that lack known_discriminant_parts or that are derived Unchecked_Union
31344 types, and do nothing. In any other case, produce an error message.
31346 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31347 Contains_POC. It determines whether a constraint uses the discriminant
31348 of an enclosing record type.
31349 Add condition to detect per-object constrained component and set the
31351 (Derived_Type_Declaration): Remove guard that prevents derivation from
31352 Unchecked_Union types.
31353 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31356 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31357 references to Unchecked_Union discriminants.
31359 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31360 formal generation when dealing with Unchecked_Unions.
31361 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31362 subtypes for Unchecked_Unions.
31364 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31365 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31366 completions of discriminated partial views by Unchecked_Unions and
31367 produce an error message.
31369 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31371 * trans.c (struct stmt_group): New field, GLOBAL.
31372 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31373 (struct elab_info): New struct.
31374 (elab_info_list, gnu_elab_proc_stack): New variables.
31375 (Compilation_Unit_to_gnu): New procedure.
31376 (gigi): Call it and also handle elaboration procs we've saved.
31377 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31378 global field from parent.
31379 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31380 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31381 (start_stmt_group): Initialize global field from parent.
31382 (add_decl_expr): Set to global for current statement group.
31383 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31386 * utils.c (global_bindings_p): True when no current_function_decl; no
31387 longer check current_binding_level.
31389 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31391 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31394 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31396 2004-08-06 Andreas Schwab <schwab@suse.de>
31398 * utils.c (gnat_define_builtin): Remove second parameter of
31400 (begin_subprog_body): Likewise.
31402 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31404 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31405 optimization, not supported by the tree-ssa back-end.
31407 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31409 * s-mastop-irix.adb: Update comments.
31411 * a-except.adb (Exception_Information): Raise Constraint_Error if
31412 exception Id is Null_Id.
31413 This is required behavior, which is more reliably and clearly checked
31414 at the top level interface level.
31416 2004-07-26 Javier Miranda <miranda@gnat.com>
31418 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31419 call if a component has no default_expression and the box is used.
31421 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31422 default_expression and you use box, it behaves as if you had declared a
31423 stand-alone object.
31424 (Resolve_Record_Aggregate): If a component has no default_expression and
31425 you use box, it behaves as if you had declared a stand-alone object.
31427 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31428 entities of private-with siblings.
31430 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31432 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31433 for a component of an itype, set the parent pointer for analysis,
31434 there is no list in which to insert it.
31436 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31437 bona-fide renamings, not for inherited operations.
31439 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31440 actual for a formal that is an access parameter, create local
31441 finalization list even if the expression is not an aggregate.
31443 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31446 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31447 Diagnose properly illegal subprogram renamings that are library units.
31449 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31452 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31453 conversion rewritten as an unchecked conversion, check that original
31454 expression is a variable.
31456 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31457 unchecked_conversion, create new node rather than rewriting in place,
31458 to preserve original construct.
31460 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31462 * gigi.h (gnat_expand_body): Deleted.
31464 * Make-lang.in: (trans.o): Depends on function.h.
31466 * misc.c: (gnat_expand_body): Moved to here.
31468 * trans.c (gnat_expand_body_1): Deleted.
31469 (gnat_expand_body): Moved from here.
31470 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31471 (add_stmt): Check for marked visited with global_bindings_p.
31472 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31473 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31475 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31476 VIEW_CONVERT_EXPR if not operation type.
31478 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31481 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31482 changes: reformatting of negation operators, removing unneeded
31483 inequality comparison with zero, converting equality comparisons with
31484 zero to negations, changing int/0/1 to bool/false/true, replace calls
31485 to gigi_abort with abort, and various other similar changes.
31487 2004-07-26 Vincent Celier <celier@gnat.com>
31489 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31492 * make.adb (Gnatmake): Fail when a library is not present and there is
31493 no object directory.
31495 * mlib-prj.adb (Check_Library): No need to check if the library needs
31496 to be rebuilt if there is no object directory, hence no object files
31497 to build the library.
31499 * opt.ads (Setup_Projects): New Boolean flag.
31501 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31503 Create directory when Kind /= "" and in "gnat setup". Report error if
31504 directory cannot be created.
31505 (Ada_Check): Create library interface copy dir if it does not exist
31506 and we are in "gnat setup".
31507 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31509 (Language_Independent_Check): Create object directory, exec directory
31510 and/or library directory if they do not exist and we are in
31513 * vms_conv.ads: (Command_Type): New command Setup.
31515 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31517 * vms_data.ads: Add qualifiers/switches for new built-in command
31520 2004-07-25 Richard Henderson <rth@redhat.com>
31522 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31523 DECL_IGNORED_P on RESULT_DECL.
31525 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31527 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31528 allocation and potentially overflowing update with
31529 Tailored_Exception_Information. Use the sec-stack free procedural
31530 interface to output Exception_Information instead.
31532 * a-except.adb (To_Stderr): New subprogram for character, and string
31533 version moved from a-exextr to be visible from other separate units.
31534 (Tailored_Exception_Information): Remove the procedural version,
31535 previously used by the default Last_Chance_Handler and not any more.
31536 Adjust various comments.
31538 * a-exexda.adb: Generalize the exception information procedural
31539 interface, to minimize the use of secondary stack and the need for
31540 local buffers when the info is to be output to stderr:
31541 (Address_Image): Removed.
31542 (Append_Info_Character): New subprogram, checking for overflows and
31543 outputing to stderr if buffer to fill is of length 0.
31544 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31545 (Append_Info_Address, Append_Info_Exception_Name,
31546 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31547 Append_Info_Basic_Exception_Traceback,
31548 Append_Info_Exception_Information): New subprograms.
31549 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31550 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31551 Exception_Info_Maxlength, Exception_Name_Length,
31552 Exception_Message_Length): New subprograms.
31553 (Exception_Information): Use Append_Info_Exception_Information.
31554 (Tailored_Exception_Information): Use
31555 Append_Info_Basic_Exception_Information.
31556 Export services for the default Last_Chance_Handler.
31558 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31559 other separate units.
31561 2004-07-20 Vincent Celier <celier@gnat.com>
31563 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31565 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31567 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31568 emit itype references for the designated types of component types that
31569 are declared outside of the full record declaration, and that may
31570 denote a partial view of that record type.
31572 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31575 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31576 which is the designated type in an access component declaration, to the
31577 list of incomplete dependents of the parent type, to avoid elaboration
31578 issues with out-of-scope subtypes.
31579 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31580 full view of the parent.
31582 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31585 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31586 entities that are hidden, such as references to generic actuals
31587 outside an instance.
31589 2004-07-20 Javier Miranda <miranda@gnat.com>
31591 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31592 support to the new notation.
31593 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31595 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31597 * s-taprob.adb: Adding the elaboration code required for initializing
31598 the tasking soft links that are common to the full and the restricted
31601 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31602 restricted run time has been moved to the package
31603 System.Soft_Links.Tasking.
31605 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31606 restricted run time has been moved to the package
31607 System.Soft_Links.Tasking.
31609 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31611 * s-solita.ads, s-solita.adb: New files.
31613 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31615 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31616 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31617 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31618 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31619 Exception_Handler_to_gnu_zcx): Likewise.
31621 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31623 * gigi.h (builtin_function): Declare.
31625 2004-07-15 Robert Dewar <dewar@gnat.com>
31627 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31630 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31631 access values as an example of a warning.
31633 * gnat_rm.texi: Document new attribute Has_Access_Values
31635 * gnat-style.texi: Document that box comments belong on nested
31638 * sem_util.ads (Has_Access_Values): Improved documentation
31640 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31642 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31643 (Process_Interface_Name): Call to this new procedure
31644 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31646 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31648 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31650 * einfo.ads: Minor comment typo fixed
31652 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31654 * snames.adb: Add _atcb.
31656 * snames.ads: Add Name_uATCB.
31658 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31659 (in the expanded code) when using the restricted run time.
31661 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31662 a in parameter in order to allow ATCBs to be preallocated (in the
31665 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31666 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31667 deallocated in System.Tasking.Stages.
31669 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31670 order to allow ATCBs to be preallocated.
31672 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31673 here. It was previously done in Initialize_ATCB.
31675 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31677 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31678 Restricted run time.
31680 * exp_ch3.adb: When using the Restricted run time, pass the
31681 preallocated Ada_Task_Control_Block when creating a task.
31683 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31685 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31686 function call that is itself an actual in an enclosing call, diagnose
31687 problem here rather than assuming that resolution will catch it.
31689 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31690 the local copy of a generic unit for a formal package, and the generic
31691 is a child unit, install private part of ancestors before compiling
31692 private part of spec.
31694 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31695 use scope entities rather than tree structures, to handle properly
31696 parent units that are instances rewritten as bodies for inlining
31699 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31700 Remove_Parents): Handle properly a parent unit that is an
31701 instantiation, when the unit has been rewritten as a body for inlining
31704 * par.adb (Goto_List): Global variable to collect goto statements in a
31705 given unit, for use in detecting natural loops.
31707 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31708 use in detecting natural loops.
31710 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31711 backwards goto's, and rewrite as a infinite loop, to improve locality
31714 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31715 subcomponent that includes an indexed reference, to prevent the
31716 generation of copies that would miscompile the desired assignment
31718 (Build_Task_Image_Decls): Add a numeric suffix to
31719 generated name for string variable, to avoid spurious conflicts with
31720 the name of the type of a single protected object.
31722 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31723 loop with an explicit exit statement, to avoid generating an
31724 out-of-range value with 'Succ leading to spurious constraint_errors
31725 when compiling with -gnatVo.
31727 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31729 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31730 might not be analyzed yet, even if its Etype is already set (case of an
31731 unchecked conversion built using Unchecked_Convert_To, for example).
31732 If the prefix has already been analyzed, this will be a nop anyway.
31734 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31735 controller type, or an assignment of a record type with controlled
31736 components, copy only user data, and leave the finalization chain
31737 pointers untouched.
31739 2004-07-15 Vincent Celier <celier@gnat.com>
31741 * make.adb (Collect_Arguments): Improve error message when attempting
31742 to compile a source not part of any project, when -x is not used.
31744 * prj.ads: (Defined_Variable_Kind): New subtype
31746 * prj-attr.adb (Register_New_Package): Two new procedures to register
31747 a package with or without its attributes.
31748 (Register_New_Attribute): Mew procedure to register a new attribute in a
31750 New attribute oriented subprograms: Attribute_Node_Id_Of,
31751 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31752 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31754 New package oriented subprograms: Package_Node_Id_Of,
31755 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31757 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31759 (Package_Node_Id): Now a private, self initialized type
31760 (Register_New_Package): New procedure to register a package with its
31762 New attribute oriented subprograms: Attribute_Node_Id_Of,
31763 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31764 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31766 New package oriented subprograms: Package_Node_Id_Of,
31767 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31769 * prj-dect.adb (Parse_Attribute_Declaration,
31770 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31772 * prj-makr.adb (Make): Parse existing project file before creating
31773 other files. Fail if there was an error during parsing.
31775 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31776 new spec of Prj.Attr.
31778 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31779 to new spec of Prj.Attr.
31781 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31783 * utils2.c: Fix typo in comment.
31785 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31787 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31788 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31790 2004-07-14 Andreas Schwab <schwab@suse.de>
31792 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31794 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31796 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31798 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31801 * misc.c (gnat_types_compatible_p): New function.
31802 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31803 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31805 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31806 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31807 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31808 (mark_visited): Don't mark dummy type.
31809 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31810 parameter, we must remove any LJM building from GNU_NAME.
31811 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31812 (pos_to_constructor): Use int_const_binop.
31813 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31816 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31817 (gnat_pushlevel): Set TREE_USE on BLOCK node.
31818 (gnat_install_builtins): Add __builtin_memset.
31820 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
31822 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31823 for a renaming, stabilize the initialization expression if we are at a
31824 local level. At the local level, uses of the renaming may be performed
31825 by a direct dereference of the initializing expression, and we don't
31826 want possible variables there to be evaluated for every use.
31828 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31829 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31830 them on the way. Account for the fact that we may introduce side
31831 effects in the process.
31833 2004-07-13 Richard Henderson <rth@redhat.com>
31835 * misc.c (default_pass_by_ref): Use pass_by_reference.
31837 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
31839 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31840 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31842 2004-07-08 Richard Henderson <rth@redhat.com>
31844 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31847 2004-07-06 Vincent Celier <celier@gnat.com>
31849 * vms_conv.ads: Minor reformatting.
31850 Alphabetical order for enumerated values of type Command_Type, to have
31851 the command in alphabetical order for the usage.
31853 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31854 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31856 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31858 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31859 (Add_Archive_Path): Only add the global archive if there is one.
31860 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31861 or not any object file to put in the global archive, and don't build
31862 a global archive if there is none.
31863 (X_Switches): New table
31864 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31865 in the X_Switches table, if any.
31866 (Initialize): Make sure the X_Switches table is empty
31867 (Scan_Arg): Record -X switches in table X_Switches
31869 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31871 * make.adb: Minor comment fix
31873 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31874 invoked with directory information, add the directory in front of the
31877 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31878 invoked with directory information, add the directory in front of the
31881 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31882 when Keep_Temporary_Files is False.
31883 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31884 directory information, add the directory in front of the path.
31885 When not on VMS, handle new switch -dn before the command to set
31886 Keep_Temporary_Files to True.
31887 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31890 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31891 invoked with directory information, add the directory in front of the
31894 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
31896 * snames.ads, snames.adb (Name_Stub): New name for the distributed
31899 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31900 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31902 * g-socket.adb (To_Timeval): Fix incorrect conversion of
31903 Selector_Duration to Timeval for the case of 0.0.
31905 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31906 documentation from Evolve_And_Then.
31908 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
31910 * s-taprop-tru64.adb, s-taprop-os2.adb,
31911 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31913 2004-07-06 Robert Dewar <dewar@gnat.com>
31915 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31916 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31917 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31918 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31919 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31920 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31921 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31922 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31923 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31924 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31925 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31926 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31927 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31928 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31929 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31930 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31931 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31932 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31933 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31934 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31935 vms_data.ads: Minor reformatting,
31936 Fix bad box comment format.
31938 * gnat_rm.texi: Fix minor grammatical error
31940 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31942 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31943 more cases of discriminated records to be recognized as not needing a
31945 (Has_Access_Values): New function.
31947 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31949 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31950 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31951 with LRM terminology).
31952 Change terminology in comments primitive type => elementary type.
31954 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31957 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31958 parameters do not impose any requirements on the presence of a body.
31960 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31963 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31964 compilation unit and is in an open scope at the point of instantiation,
31965 assume that a body may be present later.
31967 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31969 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31970 Improve error message when specified size is not supported.
31972 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31973 is never a primitive operation.
31975 2004-07-05 Andreas Schwab <schwab@suse.de>
31977 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31978 RECORD_OR_UNION_CHECK.
31979 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31981 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
31983 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31984 dependency on xgnatugn, instead build it via a submake.
31985 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31987 2004-07-04 Richard Henderson <rth@redhat.com>
31989 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31991 2004-07-01 Richard Henderson <rth@redhat.com>
31993 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31994 * utils.c (max_size): Likewise.
31996 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31998 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31999 and rest_of_type_compilation; add arg to create_*_decl.
32000 (annotate_decl_with_node): Deleted.
32001 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32002 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32003 (get_current_block_context, gnat_pushdecl): New declarations.
32004 (gnat_init_stmt_group): Likewise.
32005 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32006 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32007 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32008 (gnat_init): Call gnat_init_stmt_group.
32009 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32010 (gnu_pending_elaboration_list): Deleted.
32011 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32012 (gigi): Rearrange initialization calls and move some to last above.
32013 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32014 Delete calls to add_decl_expr; add arg to create_*_decl.
32015 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32016 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32017 begin_subprog_body and call it.
32018 Don't push and pop ggc context.
32019 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32020 (add_stmt): Remove handling of DECL_EXPR from here.
32021 If not in function, mark visited.
32022 (add_decl_expr): Put global at top level.
32023 Check for cases of DECL_INITIAL we have to handle here.
32024 (process_type): Add extra arg to create_type_decl.
32025 (build_unit_elab): Rework to just gimplify.
32026 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32027 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32028 (get_pending_elaborations, pending_elaborations_p): Likewise.
32029 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32030 (get_elaboration_location, insert_elaboration_list): Likewise.
32031 (gnat_binding_level): Renamed from ada_binding_level.
32032 (init_gnat_to_gnu): Don't clear pending_elaborations.
32033 (global_bindings_p): Treat as global if no current_binding_level.
32034 (set_current_block_context): New function.
32035 (gnat_pushdecl): Renamed from pushdecl; major rework.
32036 All callers changed.
32037 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32038 (finish_record_type): Call call pushdecl for stub decl.
32039 (function_nesting_depth): Deleted.
32040 (begin_subprog_body): Delete obsolete code.
32041 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32043 2004-06-28 Robert Dewar <dewar@gnat.com>
32045 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32046 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32047 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32048 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32049 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32051 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32052 deal with problem of inefficient slices on machines with strict
32053 alignment, when the slice is a component of a composite.
32055 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32056 machines, we need the check there as well.
32058 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32060 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32061 determine safe copying direction for overlapping slice assignments
32062 when component is controlled.
32064 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32065 formal derived type in the actual for a formal package are visible in
32066 the enclosing instance.
32068 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32071 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32072 circularity involving a private type whose completion includes a
32073 self-referential component.
32074 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32075 renaming or an instantiation from an implicit derived operation.
32077 2004-06-28 Pascal Obry <obry@gnat.com>
32079 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32081 (Library_File_Name_For): Idem.
32083 2004-06-28 Matthew Gingell <gingell@gnat.com>
32085 * g-traceb.ads: Add explanatory note on the format of addresses
32086 expected by addr2line.
32088 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32090 * Makefile.in: Force debugging information on s-tasdeb.adb,
32091 a-except.adb and s-assert.adb needed by the debugger.
32093 2004-06-28 Vincent Celier <celier@gnat.com>
32095 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32099 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32101 * prj.adb: Minor reformatting
32102 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32104 * prj.ads: Comment updates
32106 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32107 Remove Flag2: not used.
32109 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32112 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32114 * gnat_rm.texi: Document Empty declarations "null;".
32116 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32117 front of the linker options.
32118 (Link_Foreign): Put the global archives and the libraries in front of
32119 the linker options.
32121 2004-06-28 Javier Miranda <miranda@gnat.com>
32123 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32124 (RTU_Loaded): Code cleanup
32125 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32126 withed predefined units.
32128 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32129 explicitly withed predefined units.
32130 Fix typo in comment
32132 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32133 explicitly withed predefined units.
32135 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32137 * ada-tree.def (DECL_STMT): Deleted.
32138 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32139 (DECL_STMT_VAR): Deleted.
32140 * decl.c: add_decl_stmt now add_decl_expr.
32141 * gigi.h: Likewise.
32142 * trans.c: Likewise.
32143 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32144 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32145 (add_stmt): Only handle padded type here.
32146 (add_stmt_with_node): Allow gnat_node to not be present.
32147 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32148 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32149 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32150 make a SAVE_EXPR for the entire fat pointer.
32151 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32152 (create_index_type): Make a DECL_EXPR.
32153 (end_subprog_body): Don't call allocate_struct_function here but
32156 2004-06-25 Pascal Obry <obry@gnat.com>
32158 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32159 Relocatable from Build_Dynamic_Library call.
32161 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32162 Relocatable are now synonym.
32164 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32166 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32167 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32170 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32171 Lib_Address and Relocatable.
32172 (Default_DLL_Address): Removed.
32174 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32175 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32176 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32177 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32178 (Default_DLL_Address): Removed.
32180 * mlib-tgt-mingw.adb: Ditto.
32181 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32183 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32184 the initial thread stack size.
32186 * a-strmap.ads: Move package L to private part as it is not used in
32187 the spec. Found while reading code.
32189 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32191 * tracebak.c: Introduce support for a GCC infrastructure based
32192 implementation of __gnat_backtrace.
32194 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32195 any more. Use accessors instead. This eases maintenance and relaxes
32196 some alignment constraints.
32197 (_GNAT_Exception structure): Remove the Ada specific fields
32198 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32200 (is_handled_by, __gnat_eh_personality): Replace component references to
32201 exception structure by use of the new accessors.
32203 * init.c (__gnat_initialize): Adjust comments to match the just
32204 reverted meaning of the -static link-time option.
32206 * adaint.c (convert_addresses): Arrange not to define a stub for
32207 mips-irix any more, as we now want to rely on a real version from a
32208 recent libaddr2line.
32210 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32211 the personality routine can use them and not have to rely on a C
32212 counterpart of the record anymore. This simplifies maintenance and
32213 relaxes the constraint of having Standard'Maximum_Alignment match
32215 Update comments, and add a section on the common header alignment issue.
32217 2004-06-25 Geert Bosch <bosch@gnat.com>
32219 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32220 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32222 2004-06-25 Robert Dewar <dewar@gnat.com>
32224 * gnat_rm.texi: Fix section on component clauses to indicate that the
32225 restriction on byte boundary placement still applies for bit packed
32227 Add comment on stack usage from Initialize_Scalars
32229 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32231 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32232 limiting nesting level.
32234 * usage.adb: Add line for -gnatyLnnn switch
32236 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32237 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32239 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32240 type as well as on the subtype. This corrects a problem in freeze in
32241 setting alignments of atomic types.
32243 * sem_eval.ads: Minor comment typo fixed
32245 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32246 level. Minor reformatting.
32248 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32249 minus sign. This means that file names like a--b.adb will not be
32250 considered predefined.
32252 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32253 record Test new flag and give diagnostic for bad component clause.
32254 (Freeze_Entity): Set alignment of array from component alignment in
32255 cases where this is safe to do.
32257 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32260 * cstand.adb: (Create_Standard): Set alignment of String to 1
32262 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32264 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32265 code in the common constrained array cases.
32267 * a-storio.adb: Change implementation to avoid possible alignment
32268 problems on machines requiring strict alignment (data should be moved
32269 as type Buffer, not type Elmt).
32271 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32272 killing the overflow checks which we really do not need (64-bits is
32275 2004-06-25 Vincent Celier <celier@gnat.com>
32277 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32278 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32279 inconditionally for the main project.
32280 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32281 (Link_Executables.Check_Time_Stamps): New procedure
32282 (Link_Executables.Link_Foreign): New procedure
32283 Changes made to reduce nesting level of this package
32284 (Check): New procedure
32285 (Add_Switches): When not in quiet output, check that a switch is not
32286 the concatenation of several valid switches. If it is, issue a warning.
32287 (Build_Global_Archive): If the global archive is rebuilt, linking need
32289 (Compile_Sources): Rebuilding a library archive does not imply
32290 rebuilding the global archive.
32291 (Build_Global_Archive): New procedure
32292 (Build_Library): New name for Build_Archive, now only for library
32294 (Check_Archive_Builder): New procedure
32295 (Create_Global_Archive_Dependency_File): New procedure
32296 (Gprmake): Call Build_Global_Archive before linking
32297 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32299 (Scan_Arg): Display the Copyright notice when -v is used
32301 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32304 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32306 Add new GNAT LIST qualifier /FILES=
32307 Added qualifier /DIRECTORY= to GNAT METRIC
32308 Added qualifier /FILES= to GNAT METRIC
32309 Added qualifier /FILES to GNAT PRETTY
32311 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32312 to take into account both versions of the switch.
32314 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32315 always be the last switch to the gcc driver. Disable switch storing so
32316 that switches automatically added by the gcc driver are not put in the
32319 * prj.adb (Project_Empty): Take into account changes in components of
32322 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32324 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32325 used. Split Boolean component Ada_Sources_Present in two Boolean
32326 components Ada_Sources_Present and Other_Sources_Present.
32329 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32330 instead of Sources_Present.
32331 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32333 * prj-nmsc.adb: Minor reformatting
32334 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32335 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32336 Check_Ada_Naming_Scheme.
32337 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32340 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32342 Make sure that all cycles where there is at least one "limited with"
32344 (Parse_Single_Project): New Boolean parameter In_Limited
32346 * prj-proc.adb (Recursive_Check): When Process_Languages is
32347 All_Languages, call first Prj.Nmsc.Ada_Check, then
32348 Prj.Nmsc.Other_Languages_Check.
32350 * prj-proc.adb (Process): Use Ada_Sources_Present or
32351 Other_Sources_Present (instead of Sources_Present) depending on
32354 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32357 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32358 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32360 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32363 * lib.ads (Disable_Switch_Storing): New procedure.
32365 * make.adb: Modifications to reduce nesting level of this package.
32366 (Check_Standard_Library): New procedure
32367 (Gnatmake.Check_Mains): New procedure
32368 (Gnatmake.Create_Binder_Mapping_File): New procedure
32369 (Compile_Sources.Compile): Add switch -gnatez as the last option
32370 (Display): Never display -gnatez
32372 * Makefile.generic:
32373 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32375 * gnatcmd.adb (Check_Project): New function
32376 (Process_Link): New procedure to reduce nesting depth
32377 (Check_Files): New procedure to reduce the nesting depth.
32378 For GNAT METRIC, include the inherited sources in extending projects.
32379 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32380 add the list of files from the sources of the project file. If this list
32381 is too long, put it in a temp text files and use switch -files=
32382 (Delete_Temp_Config_Files): Delete the temp text file that contains
32383 a list of source for gnatpp or gnatmetric, if one has been created.
32384 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32385 in the project file is too large, create a temporary text file that
32386 list them and pass it to the tool with "-files=<temp text file>".
32387 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32389 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32390 generated file is in not in Ada.
32392 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32393 (Scan_Ls_Arg): Add processing for -files=
32394 (Usage): Add line for -files=
32396 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32397 (Normalize_Pathname): When on Windows and the path starts with a
32398 directory separator, make sure that the resulting path will start with
32401 * clean.adb (Clean_Archive): New procedure
32402 (Clean_Project): When there is non-Ada code, delete the global archive,
32403 the archive dependency files, the object files and their dependency
32404 files, if they exist.
32405 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32407 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32409 * sinfo.ads: Fix typo in comment.
32411 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32412 the TSS for remote access-to-subprogram types, since these TSS are
32413 always present once the type has been analyzed.
32414 (RAS_E_Dereference): Same.
32416 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32417 reference raises Bad_Attribute, mark the reference as analyzed so the
32418 node (and any children resulting from rewrites that could have occurred
32419 during the analysis that ultimately failed) is not analyzed again.
32421 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32423 * exp_dist.adb: Minor comment fix.
32425 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32426 type is an anonymous access type, no unchecked deallocation of the
32427 allocated object can occur. If the object is controlled, attach it with
32428 a count of 1. This allows attachment to the Global_Final_List, if
32429 no other relevant list is available.
32430 (Get_Allocator_Final_List): For an anonymous access type that is
32431 the type of a discriminant or record component, the corresponding
32432 finalisation list is the one of the scope of the type.
32434 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32436 * sem_ch3.adb (Replace_Type): When computing the signature of an
32437 inherited subprogram, use the first subtype if the derived type
32438 declaration has no constraint.
32440 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32441 before applying previous optimization. Minor code cleanup.
32443 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32444 placed at the beginning of an unpacked record without explicit
32445 alignment, a slice of it will be aligned and does not need a copy when
32448 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32452 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32453 reference is written with expressions mimicking parameters.
32455 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32458 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32459 STEP 2a. The constraints of a full type declaration of a derived record
32460 type are checked for conformance with those declared in the
32461 corresponding private extension declaration. The message
32462 "not conformant with previous declaration" is emitted if an error is
32465 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32467 * g-traceb.ads: Document the need for -E binder switch in the spec.
32469 * g-trasym.ads: Document the need for -E binder switch in the spec.
32471 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32473 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32475 * snames.h, snames.ads, snames.adb: Add entry for pragma
32478 * s-rident.ads: Change reference to pragma Detect_Blocking.
32480 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32483 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32484 to indicate whether pragma Detect_Blocking is active.
32486 * par-prag.adb: Add entry for pragma Detect_Blocking.
32488 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32489 of not handling WITH.
32490 Note that this replaces the previous update which was incorrect.
32492 2004-06-25 Javier Miranda <miranda@gnat.com>
32494 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32495 use-clauses to have a clean environment.
32497 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32498 the installation of the use-clauses to stablish a clean environment in
32499 case of compilation of a separate unit; otherwise the call to
32500 use_one_package is protected by the barrier Applicable_Use.
32502 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32503 the installation of the use-clauses to stablish a clean environment in
32504 case of compilation of a separate unit.
32505 (End_Use_Clauses): Minor comment cleanup.
32507 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32509 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32511 2004-06-23 Richard Henderson <rth@redhat.com>
32513 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32515 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32517 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32518 now bool instead of int.
32519 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32520 * trans.c (gnu_switch_label_stack): New function.
32521 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32522 elaboration of renamed entity returns.
32523 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32524 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32525 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32526 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32527 DECL_SIZE_UNIT and simplify variable-sized case.
32528 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32529 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32530 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32531 (build_unit_elab): Disable for now.
32532 * utils.c (mark_visited): New function.
32533 (pushdecl): Walk tree to call it for global decl.
32534 (update_pointer_to): Update all variants of pointer and ref types.
32535 Add arg to COMPONENT_REF.
32536 (convert): Likewise.
32537 Move check for converting between variants lower down.
32538 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32539 (build_allocator): Don't force type of MODIFY_EXPR.
32540 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32541 put_var_into_stack.
32543 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32545 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32546 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32547 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32549 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32550 all callers changed.
32551 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32552 the way that EXIT_STMT finds the loop label.
32553 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32554 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32555 (add_stmt): Use annotate_with_locus insted of setting directly.
32556 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32557 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32558 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32559 (build_vms_descriptor): Add extra args to ARRAY_REF.
32560 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32561 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32563 (build_binary_op): Don't make explicit CONVERT_EXPR.
32564 Add extra rgs to ARRAY_REF.
32566 2004-06-14 Pascal Obry <obry@gnat.com>
32568 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32569 Windows. Fix minor typo.
32571 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32572 which is now supported on Windows. With this implementation using the
32573 Library Project feature is no different on Windows than on UNIX.
32575 2004-06-14 Vincent Celier <celier@gnat.com>
32577 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32580 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32582 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32583 found, show the project name and the path of the previously parsed
32586 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32588 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32589 array, avoid copying the actual before the call.
32591 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32593 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32594 Instead, allocate memory on worst-case alignment assumptions, and then
32595 return an aligned address within the allocated zone.
32597 2004-06-14 Robert Dewar <dewar@gnat.com>
32599 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32600 elab entities in predefined units in No_Run_Time_Mode.
32601 (Gen_Adainit_C): Same fix
32602 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32603 units in No_Run_Time_Mode
32604 (Gen_Elab_Calls_C): Same fix
32606 * symbols-vms-alpha.adb: Minor reformatting
32608 * g-debpoo.ads: Minor reformatting
32610 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32612 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32614 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32617 * make.adb: Minor reformatting
32619 * par-ch12.adb: Minor reformatting
32621 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32623 * prj-strt.adb: Minor reformatting
32625 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32628 * sem_attr.adb: Minor reformatting
32630 * sem_ch7.adb: Minor reformatting
32632 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32633 for type in the same unit as the object declaration.
32635 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32636 static string expressions and not just string literals.
32638 (Set_Warning): Reset restriction warning flag for restriction pragma
32639 Implement pragma Profile_Warnings
32640 Implement pragma Profile (Restricted)
32641 Give obolescent messages for old restrictions and pragmas
32643 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32646 * s-rident.ads: Add declarations for restrictions required by profile
32647 Restricted and profile Ravenscar.
32649 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32651 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32652 configuration pragmas.
32654 2004-06-11 Vincent Celier <celier@gnat.com>
32656 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32657 gnatsym, when symbol policy is Restricted.
32659 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32660 gnatsym, when symbol policy is Restricted.
32662 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32663 read the symbol file.
32664 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32665 symbol file is not in the object files. Do not create a new symbol file
32666 when symbol policy is Restricted.
32668 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32671 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32673 (Usage): Line for new switch -R
32675 * make.adb (Initialize): When the platform is not VMS, add the
32676 directory where gnatmake is invoked in the front of the path, if
32677 gnatmake is invoked with directory information. Change the Scan_Args
32678 while loop to a for loop.
32679 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32680 if Depth is equal or greater than the proposed depth, there is nothing
32682 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32685 * prj.ads: Add new symbol policy Restricted.
32687 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32688 with the new parameters Check_All_Labels and Case_Location.
32690 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32691 (Library_Symbol_File needs to be defined).
32693 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32694 and Case_Location If Check_All_Labels is True, check that all values of
32695 the string type are used, and output warning(s) if they are not.
32697 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32700 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32702 * gnat_ugn.texi: Update documentation about the library directory in
32705 * makegpr.adb (Display_Command): In verbose mode, also display the
32706 value of the CPATH env var, when the compiler is gcc.
32707 (Initialize): Change the Scan_Args while loop to a for loop
32708 (Compile_Individual_Sources): Change directory to object directory
32709 before compilations.
32711 * symbols.ads: New symbol policy Restricted.
32713 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32715 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32716 is now taken care of internally in the Exception_Propagation package
32717 and does not require clients assistance any more.
32719 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32720 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32721 functions. Helpers to maintain a predicate required in the handling of
32722 occurrence transfer between tasks.
32723 This is now handled internally and does not require clients assistance
32724 for the setup/propagate separation anymore.
32725 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32726 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32729 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32730 raise_after_setup, now that everything is handled internally within the
32731 setup/propagation engine.
32733 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32735 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32736 Add additional conditions for the case of an actual being a simple
32737 name or literal. Improve inlining by preventing the generation
32738 of temporaries with a short lifetime (one use).
32740 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32743 * einfo.ads: Minor comment updates for Has_Completion and
32744 E_Constant list of flags.
32746 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32747 and constant redeclarations now set the Has_Completion flag of their
32748 defining identifiers.
32750 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32751 Inspect_Deferred_Constant_Completion.
32752 Used to detect private deferred constants that have not been completed
32753 either by a constant redeclaration or pragma Import. Emits error message
32754 "constant declaration requires initialization expression".
32756 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32757 completes a deferred constant.
32759 2004-06-11 Geert Bosch <bosch@gnat.com>
32761 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32763 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32764 calculating exponent for scaling denormal numbers.
32765 (Leading_Part): Properly raise Constraint_Error for zero or negative
32767 (Remainder): Properly raise Constraint_Error for zero divisor.
32769 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32771 * sem_util.adb: Minor reformatting.
32773 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32774 dereference when accessing the entry parameter record.
32775 (Check_Array_Type): Always check for possible implicit dereference.
32776 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32777 Abort if a pointer is still present (denoting that an implicit
32778 dereference was left in the tree by the front-end).
32780 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32781 dereference when accessing the entry parameter record.
32782 (Check_Array_Type): Always check for possible implicit dereference.
32783 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32784 Abort if a pointer is still present (denoting that an implicit
32785 dereference was left in the tree by the front-end).
32787 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
32789 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32790 message, like the compiler itself does. Easier to parse the output.
32792 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32794 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32795 be base names, and not includes directories.
32797 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32799 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32800 so that dependencies are properly taken into account by make.
32802 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32805 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32806 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32808 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
32810 * Makefile.in (install-gnatlib): install target-specific run-time files.
32812 * Make-lang.in: Remove obsolete targets.
32814 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32816 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32817 specification, to catch misuses of program unit names.
32819 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32820 superfluous conversions in an instance.
32822 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32825 * sem_ch12.adb (Save_References): If operator node has been folded to
32826 enumeration literal, associated_node must be discarded.
32828 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
32830 * s-stchop-vxworks.adb: Add required pragma Convention to
32831 Task_Descriptor because it is updated by a C function.
32833 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
32836 * Makefile.in: Remove target specific SO_OPT on IRIX
32838 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32840 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32841 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32842 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32843 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32844 (STMT_STMT, USE_STMT): New statement codes.
32845 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32846 * ada-tree.h: Reflect above changes.
32847 (struct tree_loop_id): Deleted.
32848 (union lang_tree_node, struct lang_decl, struct lang_type):
32849 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32850 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32851 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32852 (IS_ADA_STMT): New macro.
32853 * decl.c (annotate_decl_with_node): New function.
32854 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32855 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32856 Call add_stmt_with_node to do needed assignments.
32857 Add call to update setjmp buffer directly, not via EXPR_STMT.
32858 (maybe_variable): Argment GNAT_NODE deleted.
32859 * gigi.h (maybe_variable): Likewise.
32860 (make_transform, add_stmt_with_node, set_block_for_group): New.
32861 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32862 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32863 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32864 (set_lineno, set_lineno_from_sloc): Likewise.
32865 (record_code_position, insert_code_for): Likewise.
32866 (gnat_poplevel): Now returns void.
32867 (end_subprog_body): Now takes argument.
32868 * misc.c (cgraph.h, tree-inline.h): New includes.
32869 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32870 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32871 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32872 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32873 (gnat_parse_file): Don't set immediate_size_expand.
32874 Call cgraph functions.
32875 (gnat_expand_expr): Remove most cases.
32876 (record_code_position, insert_code_for): Remove from here.
32877 * trans.c (toplev.h, tree-gimple.h): Now included.
32878 (discard_file_names): Deleted.
32879 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32880 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32881 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32882 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32883 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32884 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32885 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32886 (set_block_for_group, add_stmt_list): Likewise.
32887 (start_stmt_group): Renamed from start_block_stmt.
32888 (end_stmt_group): Likewise, from end_block_stmt.
32889 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32890 (gigi): Don't set discard_file_names or call set_lineno.
32891 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32892 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32893 Numerous changes throughout to reflect new names and complete
32894 function-at-a-time implementation.
32895 (gnat_expand_stmt): Delete or comment out all cases.
32896 (process_inlined_subprograms): Use add_stmt.
32897 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32898 call set_lineno; also remove unneeded block handling.
32899 (process_type): Remove unneeded block handling.
32900 (build_unit_elab): Remove calls to deleted functions.
32901 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32902 (tree-dump.h): Likewise.
32903 (struct ada_binding_level): Add field jmpbuf_decl.
32904 (gnat_define_builtin, gnat_install_builtins): New.
32905 (gnat_gimplify_function, gnat_finalize): Likewise.
32906 (gnat_poplevel): No longer return BLOCK, set it instead.
32907 Remove code dealing with nested functions.
32908 (gnat_init_decl_processing): Also set size_type_node.
32909 Call gnat_install_builtins.
32910 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32911 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32912 Remove special-case for "main".
32913 (end_subprog_body): Add arg and rework for tree-ssa.
32914 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32915 Add case for BOOLEAN_TYPE.
32916 * utils2.c (rtl.h): Now include.
32917 (build_call_raise): Test Debug_Flag_NN directly.
32918 (build_call_alloc_dealloc): Don't use local stack allocation for now.
32919 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32920 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32922 2004-06-07 Robert Dewar <dewar@gnat.com>
32924 * a-direct.ads, einfo.ads: Minor comment updates
32926 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32927 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32928 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32929 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32930 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32932 * s-interr-sigaction.adb: Remove unreferenced variable
32933 (Attached_Interrupts). Minor reformatting.
32934 Avoid use of variable I (replace by J).
32936 * par-ch10.adb: Fix text of one error message
32938 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32939 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32940 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32941 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32942 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32943 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32944 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32945 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32946 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32947 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32948 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32951 2004-06-07 Doug Rupp <rupp@gnat.com>
32953 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32955 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32957 * mlib-tgt-vms-ia64.adb: New file.
32959 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32960 Add mlib-tgt-vms-ia64.adb
32961 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32962 Move to alpha specific ifeq section.
32963 Add VMS specific versions of symbols.adb
32964 Renaming of 5q vms files.
32966 * 5qsystem.ads renamed to system-vms_64.ads.
32968 2004-06-07 Vincent Celier <celier@gnat.com>
32970 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32971 explain that when a time of day corresponding to the non existing hour
32972 on the day switching to DST is specified, Split may return a different
32975 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32978 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32979 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32981 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32983 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32984 the linking options.
32985 (Build_Library.Check_Libs): On VMS, if there is a dependency on
32986 g-trasym.ads, set Gtrasymobj_Needed to True.
32988 * prj-attr.adb: Add new package Metrics for gnatmetric
32990 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32991 canonical case to take into account files with upper case characters on
32993 (Ada_Check): Load the reference symbol file name in the name buffer to
32994 check it, not the symbol file name.
32996 * snames.ads, snames.adb: Add standard name Metrics (name of project
32997 file package for gnatmetric).
32999 * vms_conv.ads: Add Metric to Comment_Type
33001 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33003 * vms_data.ads: Add qualifiers for GNAT METRIC
33005 * makegpr.adb (Link_Executables): Take into account the switches
33006 specified in package Linker of the main project.
33008 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33010 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33011 the index of the last element is Units.Last, not Units.Table'Last
33012 (which is usually not a valid index within the actually allocated
33013 storage for the table).
33015 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33016 determines whether to generate a call to a checked storage pool
33017 Dereference action.
33018 Generate such a call only for a dereference that either comes from
33019 source, or is the result of rewriting a dereference that comes from
33022 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33024 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33026 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33028 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33029 file level, elaborate the stride for inner dimensions in alignment
33032 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33035 2004-06-07 Javier Miranda <miranda@gnat.com>
33037 * exp_ch6.adb: Correct wrong modification in previous patch
33039 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33041 * g-trasym.ads: Corrected comment to properly reflect level of support
33044 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33046 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33047 includes case of a variable referenced on the left hand side of an
33048 assignment, therefore remove redundant code. Variables and prefixes of
33049 indexed or selected components are now marked as referenced on left
33050 hand side. Warnings are now properly emitted when variables or prefixes
33051 are assigned but not read.
33053 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33054 left hand side referenced variables. Private access types do not
33055 produce the warning "variable ... is assigned but never read".
33056 Add also additional checks to left hand side referenced variables.
33057 Aliased, renamed objects and access types do not produce the warning
33058 "variable ... is assigned but never read" since other entities may read
33059 the memory location.
33061 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33063 * Makefile.in: In the powerpc/vxworks-specific section, restore
33064 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33067 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33069 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33070 predefined operators.
33071 Removes spurious type errors from g-trasym-vms.adb.
33073 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33074 distinct from the operator appearing in the source, call appropriate
33075 routine to insert conversions when needed, and complete resolution of
33077 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33078 interpretations for rewritten right operand.
33079 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33080 the other operand is overloaded and the context is a type conversion.
33082 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33084 * ada-tree.def (BLOCK_STMT): Now has two operands.
33087 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33089 * gigi.h: (gnat_poplevel): Now returns a tree.
33091 * trans.c (end_block_stmt): Add arg; all callers changed.
33092 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33093 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33094 (add_stmt): Set TREE_TYPE.
33095 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33096 (gnat_expand_stmt, case BREAK_STMT): New case.
33098 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33100 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33102 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33103 procedure Set_Stack_Size that is not needed.
33105 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33107 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33108 used for gnatpp input file and for the files upon which it depends
33110 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33112 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33114 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33116 * gnatvsn.ads: Bump version numbers appropriately.
33117 Add new build type.
33119 2004-06-07 Pascal Obry <obry@gnat.com>
33121 * gnat_ugn.texi: Improve comments about imported names and link names
33122 on Windows. Add a note about the requirement to use -k gnatdll's option
33123 when working with a DLL which has stripped stdcall symbols (no @nn
33126 2004-05-27 Vincent Celier <celier@gnat.com>
33128 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33129 COMMENTS_LAYOUT=UNTOUCHED
33131 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33132 symbols-vms-alpha.adb
33134 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33136 * sem.ads: Clarify documentation on checks suppression.
33138 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33140 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33142 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33143 the case of multiple derivations.
33144 (Is_Object_Reference): For a selected component, verify that the prefix
33145 is itself an object and not a value.
33147 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33148 Same_Instantiated_Entity.
33149 (Same_Instantiated_Variable): Subsidiary to
33150 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33151 formals that are obtained from a previous formal package.
33152 (Instantiate_Subprogram_Body): Emit proper error when
33153 generating code and the proper body of a stub is missing.
33155 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33156 has a universal interpretation, do the disambiguation here.
33158 * exp_ch4.adb (Expand_N_Type_Conversion,
33159 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33160 is Address, to avoid typing anomalies when Address is a visible integer
33163 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33164 to determine whether a subprogram should not be marked Pure, even when
33165 declared in a pure package.
33167 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33169 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33171 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33172 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33173 Update the documentation about the Ravenscar profile, following the
33174 definition found in AI-249.
33176 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33177 setting the Profile (Ravenscar). This must be done in addition to
33178 setting the required restrictions.
33180 * rtsfind.ads: Add the set of operations defined in package
33183 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33186 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33188 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33189 if -gnatc or -gnats is passed.
33191 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33193 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33194 a significant reference. Warnings are now properly emitted when a
33195 discriminated type is not referenced.
33197 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33198 record representation clause or record type discriminant does not
33199 produce a reference to its corresponding entity. Warnings are now
33200 properly emitted when deferred constants and record types are not
33203 2004-05-27 Geert Bosch <bosch@gnat.com>
33205 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33206 Fixes ACATS Annex G tests.
33208 2004-05-27 Robert Dewar <dewar@gnat.com>
33210 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33213 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33215 * s-interr.adb (Server_Task): Take into account case of early return
33216 from sigwait under e.g. linux.
33218 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33220 * gnat_ugn.texi: Add description for the new gnatpp options:
33221 -rnb - replace the original source without creating its backup copy
33222 -c0 - do not format comments
33224 2004-05-24 Geert Bosch <bosch@gnat.com>
33226 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33227 with 192 bits of precision, sufficient to reduce a double-extended
33228 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33229 in -2.0**32 .. 2.0**32.
33230 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33231 reduction by the processor, which only uses a 68-bit approximation of
33233 (Tan): Always reduce arguments and compute function either using
33234 the processor's fptan instruction, or by dividing sin and cos as needed.
33236 2004-05-24 Doug Rupp <rupp@gnat.com>
33238 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33239 gcc error on 32/64 bit VMS.
33241 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33243 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33244 since this is what we get for stack overflows although not documented
33246 Document the issues which may require adjustments to our signal
33249 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33251 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33252 enclosing dynamic scope if the instantiation is within a generic unit.
33254 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33256 * exp_dbug.ads: Fix typo.
33258 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33259 Rename it to its proper name: system-linux-ia64.ads
33260 (stamp-gnatlib1): Remove extra target specific run time files when
33261 setting up the rts directory.
33263 2004-05-24 Javier Miranda <miranda@gnat.com>
33265 * einfo.ads, einfo.adb (Limited_Views): Removed.
33266 (Limited_View): New attribute that replaces the previous one. It is
33267 now a bona fide package with the limited-view list through the
33268 first_entity and first_private attributes.
33270 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33271 limited-private-with clause.
33272 (Install_Limited_Withed_Unit): Install the private declarations of a
33273 limited-private-withed package. Update the installation of the shadow
33274 entities according to the new structure (see Build_Limited_Views)
33275 (Build_Limited_Views): Replace the previous implementation of the
33276 limited view by a package entity that references the first shadow
33277 entity plus the first shadow private entity (required for limited-
33278 private-with clause)
33279 (New_Internal_Shadow_Entity): Code cleanup.
33280 (Remove_Limited_With_Clause): Update the implementation to undo the
33281 new work carried out by Build_Limited_Views.
33282 (Build_Chain): Complete documentation.
33283 Replace Ada0Y by Ada 0Y in comments
33286 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33287 types the level of accessibility depends on the enclosing type
33290 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33291 entities. Complete documentation of previous change.
33293 2004-05-24 Robert Dewar <dewar@gnat.com>
33295 * namet.adb: Minor reformatting
33296 Avoid use of name I (replace by J)
33297 Minor code restructuring
33299 * sem_ch6.adb: Minor reformatting
33301 * lib-writ.adb: Do not set restriction as active if this is a
33302 Restriction_Warning case.
33304 * sem_prag.adb: Reset restriction warning flag if real pragma
33305 restriction encountered.
33307 * s-htable.adb: Minor reformatting
33308 Change rotate count to 3 in Hash (improves hash for small strings)
33310 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33312 * gnat_ugn.texi: Add new section of documentation "Code Generation
33313 Control", which describes the use of -m switches.
33315 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33317 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33318 through the DECL_INITIAL for renamed variables.
33320 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33322 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33324 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33326 * exp_dbug.ads: Correct comments concerning handling of overloading,
33327 since we no longer use $ anymore.
33329 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33331 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33332 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33333 with illegal subunits.
33335 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33337 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33338 body with front-end inlining enabled, check whether an inline pragma
33339 appears immediately after the body and applies to it.
33341 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33342 enabled and the pragma appears after the body of the subprogram.
33344 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33346 Part of function-at-a-time conversion
33348 * misc.c (adjust_decl_rtl): Deleted.
33349 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33352 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33353 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33354 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33356 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33357 when making a decl.
33358 (gnat_to_gnu_entity): Likewise.
33359 Use add_stmt to update setjmp buffer.
33360 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33362 No longer call adjust_decl_rtl.
33363 (DECL_INIT_BY_ASSIGN_P): New macro.
33364 (DECL_STMT_VAR): Likewise.
33366 * trans.c (gigi): Call start_block_stmt to make the outermost
33368 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33369 Call start_block_stmt and end_block_stmt temporarily.
33370 Use gnat_expand_stmt instead of expand_expr_stmt.
33371 (add_decl_stmt): New function.
33372 (tree_transform): Call it.
33373 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33374 (end_block_stmt): Set type and NULL_STMT.
33375 (gnat_expand_stmt): Make recursize call instead of calling
33377 (gnat_expand_stmt, case DECL_STMT): New case.
33378 (set_lineno_from_sloc): Do nothing if global.
33379 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33380 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33381 (build_block_stmt): Call them.
33382 (gnat_to_code): Don't expand NULL_STMT.
33383 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33385 (tree_transform): Likewise.
33386 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33387 (gnat_expand_stmt, case NULL_STMT): New case.
33388 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33391 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33394 * utils.c (create_var_decl): Do not call expand_decl or
33396 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33397 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33399 (struct e_stack): Add chain_next to GTY.
33400 (struct binding_level): Deleted.
33401 (struct ada_binding_level): New struct.
33402 (free_block_chain): New.
33403 (global_binding_level, clear_binding_level): Deleted.
33404 (global_bindings_p): Rework to see if no chain.
33405 (kept_level_p, set_block): Deleted.
33406 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33407 new data structure and work directly on BLOCK node.
33408 (gnat_poplevel): Similarly.
33409 (get_decls): Look at BLOCK_VARS.
33410 (insert_block): Work directly on BLOCK node.
33411 (block_has_var): New function.
33412 (pushdecl): Rework for new binding structures.
33413 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33415 (build_subprog_body): Likewise.
33416 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33418 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33420 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33421 (DECL_STMT_VAR): Likewise.
33423 2004-05-17 Robert Dewar <dewar@gnat.com>
33425 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33428 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33429 of restriction synonyums by using
33430 Restrict.Process_Restriction_Synonyms.
33432 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33434 * s-restri.ads (Tasking_Allowed): Correct missing comment
33436 * s-rident.ads: Add entries for restriction synonyms
33438 * ali.adb: Fix some problems with badly formatted ALI files that can
33439 result in infinite loops.
33441 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33442 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33443 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33444 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33445 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33446 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33447 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33448 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33449 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33450 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33451 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33452 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33453 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33454 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33455 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33456 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33457 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33458 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33459 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33460 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33461 to Task_Id (minor cleanup).
33463 2004-05-17 Vincent Celier <celier@gnat.com>
33465 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33466 directory separator.
33468 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33469 project being extended, if Languages is not declared in extending
33472 2004-05-17 Javier Miranda <miranda@gnat.com>
33474 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33475 limited view of a visible sibling.
33477 2004-05-14 Robert Dewar <dewar@gnat.com>
33479 * gnat_ugn.texi: Minor change to -gnatS documentation
33481 * sprint.adb: Remove some instances of Assert (False) and for this
33482 purpose replace them by output of a ??? string.
33484 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33487 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33488 flag processing. This was suppressing required dependencies in
33489 No_Run_Time mode and is not needed since the binder does not generate
33490 references for things in libgnat anyway.
33492 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33495 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33497 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33500 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33501 action for the case of an actual parameter in an init proc call.
33503 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33505 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33506 subtype, check visible entities in base type.
33508 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33509 actions if the object is a renaming.
33511 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33512 Check_Formal_Package_Instance, to determine more precisely when the
33513 formal and the actual denote the same entity.
33515 2004-05-14 Javier Miranda <miranda@gnat.com>
33517 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33519 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33520 corresponding to a private_with must be removed from visibility; it
33521 will be made visible later, just before we analyze the private part of
33523 (Check_Private_Child_Unit): Allow private_with clauses in public
33525 (Install_Siblings): Make visible the private entities of private-withed
33527 (Install_Withed_Unit): Do not install the private withed unit if we
33528 are compiling a package declaration and the Private_With_OK flag was
33529 not set by the caller. These declarations will be installed later,
33530 just before we analyze the private part of the package.
33532 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33533 during the evaluation of the expression that initializes the object,
33534 decorate it with the expected type to avoid cascade errors.
33537 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33538 subprogram we have to install the private_with clauses after its
33539 specification has been analyzed (as documented in AI-262.TXT).
33541 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33542 current compilation unit has a private with on a given entity.
33543 (Find_Direct_Name): Detect the Beaujolais problem described in
33546 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33547 provides the functionality of the function Is_Ancestor that was
33548 previously available in sem_ch10. It has been renamed to avoid
33551 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33553 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33555 * utils.c (build_vms_descriptor): Use SImode pointers.
33557 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33559 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33561 2004-05-14 GNAT Script <nobody@gnat.com>
33563 * Make-lang.in: Makefile automatically updated
33565 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33567 Renaming of target specific files for clarity
33569 * Makefile.in: Rename GNAT target specific files.
33571 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33572 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33573 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33574 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33575 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33576 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33577 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33578 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33579 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33580 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33581 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33582 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33583 51osinte.adb, 51osinte.ads, 51system.ads,
33584 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33585 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33586 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33587 56tpopsp.adb, 57system.ads, 58system.ads,
33588 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33589 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33590 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33591 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33592 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33593 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33594 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33595 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33596 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33597 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33598 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33599 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33600 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33601 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33602 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33603 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33604 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33605 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33606 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33607 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33608 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33609 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33610 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33611 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33612 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33613 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33614 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33615 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33616 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33617 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33618 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33619 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33620 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33621 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33622 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33623 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33624 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33625 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33626 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33627 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33629 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33630 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33631 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33632 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33633 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33634 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33635 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33636 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33637 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33638 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33639 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33640 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33641 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33642 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33643 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33644 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33645 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33646 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33647 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33648 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33649 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33650 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33651 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33652 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33653 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33654 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33655 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33656 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33657 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33658 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33659 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33660 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33661 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33662 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33663 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33664 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33665 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33666 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33667 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33668 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33669 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33670 s-osinte-vms.ads, s-osinte-vxworks.adb,
33671 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33672 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33673 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33674 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33675 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33676 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33677 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33678 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33679 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33680 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33681 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33682 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33683 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33684 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33685 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33686 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33687 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33688 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33689 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33690 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33691 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33692 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33693 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33694 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33695 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33696 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33697 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33698 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33699 system-irix-o32.ads, system-linux-x86_64.ads,
33700 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33701 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33702 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33703 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33704 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33705 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33706 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33709 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33711 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33713 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33715 Merge from tree-ssa-20020619-branch.
33717 * config-lang.in (boot_language, build_by_default): Set
33719 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33720 (max_size): Add static chain op for call_expr.
33722 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33725 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33727 2004-05-11 Roger Sayle <roger@eyesopen.com>
33729 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33732 2004-05-10 Doug Rupp <rupp@gnat.com>
33734 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33737 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33739 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33741 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33742 Fixes undefined symbols in IA64 gnatlib.
33744 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33746 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33747 Short_Address). This will be moved to system.auxdec.
33749 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33751 * sem_util.adb: Replace test for presence of a node that is always
33752 present with a call to Discard_Node.
33754 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33755 Analyze on the library unit node after generation of distribution stub
33756 constructs. The call was a no-op because Unit_Node has already been
33757 Analyzed, and the tree fragments for the distribution stubs are
33758 analyzed as they are inserted in Exp_Dist.
33759 Update comment regarding to distribution stubs to reflect that we
33760 do not generate stub in separate files anymore.
33762 * einfo.ads: Clarify the fact that a tagged private type has the
33763 E_Record_Type_With_Private Ekind.
33765 * erroutc.adb: Minor reformatting
33767 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33768 values if line length is increased using -gnatyM (noticed during code
33771 * eval_fat.adb: Minor reformatting
33772 Put spaces around exponentiation operator
33774 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33777 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33778 has been rewritten as an explicit dereference, retrieve type of
33779 original node to check for possibly unconstrained record type.
33781 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33783 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33784 overriding, use the operation of the parent unconditionally.
33786 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33787 operation when either operand is a literal, to avoid further
33790 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33791 overridden by a previous explicit declaration, mark the previous entity
33794 * sem_disp.adb (Check_Dispatching_Operation): New predicate
33795 Is_Visibly_Controlled, to determine whether a declaration of a
33796 primitive control operation for a derived type overrides an inherited
33797 one. Add warning if the explicit declaration does not override.
33799 2004-05-10 Vincent Celier <celier@gnat.com>
33801 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33802 some cases when the sources are no longer present.
33804 * make.adb (Collect_Arguments): Fail if an external source, not part
33805 of any project need to be compiled, when switch -x has not been
33808 * makeusg.adb: Document new switch -x
33810 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33811 defaulted to False.
33813 * switch-m.adb (Scan_Make_Switches): New switch -x
33815 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33816 gnatmake switch -x.
33818 * gnat_ugn.texi: Document new gnatmake switch -x
33820 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
33822 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33824 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33825 (process_attributes): Likewise.
33827 2004-05-10 Joel Brobecker <brobecker@gnat.com>
33829 * s-inmaop.ads: Fix spelling mistake in one of the comments.
33831 2004-05-10 Robert Dewar <dewar@gnat.com>
33833 * gnat_ugn.texi: Document that for config pragma files, the maximum
33834 line length is always 32767.
33836 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33837 literals is now allowed.
33839 * gnat-style.texi: Remove statement about splitting long lines before
33840 an operator rather than after, since we do not follow this rule at all.
33841 Clarify rule (really lack of rule) for spaces around exponentiation
33843 * sem_elim.adb: Allow concatenation of string literals as well as a
33844 single string literal for pragma arguments.
33846 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33848 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33849 written for append case.
33851 * frontend.adb: Changes to avoid checking max line length in config
33854 * g-os_lib.ads: Minor reformatting
33856 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33857 wrong in any case. Instead use standard value. Noticed during code
33860 * opt.ads (Max_Line_Length): New field, used to implement removal of
33861 limitation on length of lines when scanning config pragma files.
33863 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33864 makeutl.ads, makeutl.adb: Minor reformatting
33866 * scn.adb: Do not check line length while scanning config pragma files
33867 Do not check line length while scanning out license information
33869 * scng.adb: Changes to avoid line length checks while parsing config
33872 2004-05-10 GNAT Script <nobody@gnat.com>
33874 * Make-lang.in: Makefile automatically updated
33876 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
33878 * osint.adb (Find_Program_Name): Fix handling of VMS version
33881 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
33883 * g-os_lib.ads (Invalid_Time): New constant
33885 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33886 return OS_Time instead of time_t to match what is imported by Ada.
33887 Now return -1 if the file doesn't exist, instead of a random value
33889 2004-05-05 Robert Dewar <dewar@gnat.com>
33891 * usage.adb: Add line for -gnatR?s switch
33893 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33895 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33896 and for Match (Data_First, Data_last)
33898 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33899 written when we are dealing with multi-unit files.
33901 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
33903 * Makefile.in: Remove unused targets and variables.
33905 2004-05-05 Vincent Celier <celier@gnat.com>
33907 * switch-m.adb: New gnatmake switch -eI
33909 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33910 of new gnatmake switch -eInnn.
33912 * makegpr.adb: Take into account new parameters Index and Src_Index in
33915 * clean.adb: Implement support for multi-unit sources, including new
33918 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33921 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33922 (Extract_From_Q): New out parameter Index
33923 (Mark, Is_Marked): Subprograms moved to Makeutl
33924 (Switches_Of): New parameter Source_Index
33925 (Add_Switch): New parameter Index
33926 (Check): New parameter Source_Index
33927 (Collect_Arguments): New parameter Source_Index
33928 (Collect_Arguments_And_Compile): New parameter Source_Index
33929 (Compile): New parameter Source_Index
33930 Put subprograms in alphabetical order
33931 Add support for multi-source sources, including in project files.
33933 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33934 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33937 * makeusg.adb: New gnatmake switch -eInnn
33939 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33942 * opt.ads (Main_Index): New variable, defaulted to 0.
33944 * osint.ads, osinte.adb (Add_File): New parameter Index
33945 (Current_Source_Index): New function
33947 * prj.adb: Take into account new components Index and Src_Index
33949 * prj.ads (String_Element): New component Index
33950 (Variable_Value): New component Index
33951 (Array_Element): New component Src_Index
33953 * prj-attr.adb: Indicate that optional index may be specified for
33954 attributes Main, Executable, Spec, Body and some of Switches.
33956 * prj-attr.ads (Attribute_Kind): New values for optional indexes
33957 (Attribute_Record): New component Optional_Index
33959 * prj-com.ads (File_Name_Data): New component Index
33961 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33963 * prj-env.adb (Put): Output optional index
33965 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33966 attributes Spec and Body.
33968 * prj-nmsc.adb: Process optional indexes
33970 * prj-pp.adb: Ouput "at" for optional indexes
33972 * prj-proc.adb: Take into account optional indexes
33974 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33975 Optional_Index. For string literal,
33976 process optional index when Optional_Index is True.
33977 (Parse_Expresion): New Boolean parameter Optional_Index
33979 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33980 (Set_Source_Index_Of): New procedure
33982 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33985 * prj-util.ads (Executable_Of): New parameter Index
33986 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33987 New parameter Src_Index, defaulted to 0.
33989 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33992 * sem_ch3.adb (Access_Definition): If this is an access parameter
33993 whose designated type is imported through a limited_with clause, do
33994 not add the enclosing subprogram to the list of private dependents of
33997 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34000 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34001 a limited_with clause, and the other is its non-limited view.
34003 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
34005 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34007 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34008 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34009 Stand.Boolean_Literals to produce references to entities
34010 Standard_False and Standard_True from compile-time computed boolean
34013 * stand.ads (Boolean_Literals): New variable, provides the entity
34014 values for False and True, for use by the expander.
34016 2004-05-05 Doug Rupp <rupp@gnat.com>
34018 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34019 5vinmaop.adb: Unchecked convert Short_Address vice Address
34021 * adaint.c, raise.c: Caste CRTL function return value
34022 to avoid gcc error on 32/64 bit IVMS.
34024 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34027 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34029 * 5qsystem.ads (Address): Declare as Long_Integer
34030 (Short_Address): Declare as 32 bit subtype of Address
34031 Declare abstract address operations to avoid gratuitous ambiguities.
34033 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34035 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34036 instead of the old Boolean_Entry_Barriers.
34037 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34039 2004-05-05 GNAT Script <nobody@gnat.com>
34041 * Make-lang.in: Makefile automatically updated
34043 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34045 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34047 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34050 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34051 alone. Replacing object references by literals is inappropriate in a
34052 so low level context.
34054 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34056 * a-exexpr.adb: Add comments
34058 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34060 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34061 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34062 without risking a bounds check error when accessing one of its
34064 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34065 This prevents us from hitting a limitation during the debug info
34066 generation when using stabs.
34068 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34070 This prevents us from hitting a limitation during the debug info
34071 generation when using stabs.
34073 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34075 lang-specs.h: Remove -gnatz* from specs.
34077 2004-05-03 Vincent Celier <celier@gnat.com>
34079 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34081 * Make-lang.in, Makefile.in: Add gprmake
34083 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34085 * sem_aggr.adb: Fix typo in comment.
34087 2004-05-03 Robert Dewar <dewar@gnat.com>
34089 * make.adb: Minor reformatting
34091 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34093 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34094 so that it works when address is not a private type.
34096 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34097 properly with rewritten unchecked conversions. This prevents
34098 order-of-elaboration issues that can otherwise arise.
34099 (Minimum_Size): Don't check size of access types under VMS
34101 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34102 interpretations of integer literals as type System.Address.
34104 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34105 (Is_Descendent_Of): New function
34107 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34109 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34110 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34111 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34113 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34114 of the old Max_Entry_Queue_Depth.
34116 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34117 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34118 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34120 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34121 New entry for proper handling of Max_Entry_Queue_Depth.
34122 New entry for proper handling of No_Dynamic_Interrupts.
34124 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34125 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34126 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34127 the GNAT specific restriction Max_Entry_Queue_Depth.
34128 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34129 the GNAT specific restriction No_Dynamic_Interrupts.
34131 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34132 instead of the old Boolean_Entry_Barriers.
34133 Use the new restriction No_Dynamic_Attachment instead of the old
34134 No_Dynamic_Interrupts.
34136 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34137 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34139 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34140 of the old Max_Entry_Queue_Depth.
34142 2004-05-03 GNAT Script <nobody@gnat.com>
34144 * Make-lang.in: Makefile automatically updated
34146 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34148 * checks.adb (Enable_Range_Check): If the prefix of an index component
34149 is an access to an unconstrained array, perform check unconditionally.
34151 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34153 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34156 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34158 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34159 alternate stack setting. There was no support for the tasking cases
34160 and the changes eventually caused a number of side-effect failures in
34161 the non-tasking case too.
34163 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34165 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34168 2004-04-29 Vincent Celier <celier@gnat.com>
34170 * make.adb (Gnatmake): Increase max size of argument array for
34171 gnatbind for the potential addition of -F.
34172 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34173 be sure that elaboration flags will be checked.
34175 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34177 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34179 * sem_warn.adb (Check_References): Move '<access-variable> may be
34180 null' warning out of under Warn_On_No_Value_Assigned.
34182 2004-04-29 Ed Falis <falis@gnat.com>
34184 * gnat_ugn.texi: Fixed texi error
34186 2004-04-29 Robert Dewar <dewar@gnat.com>
34188 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34189 abstract operations if they come from predefined files.
34191 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34194 * s-addope.adb: Correct obvious error in mod function
34196 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34198 * Makefile.in: Add target pairs for powerpc darwin*
34201 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34202 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34204 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34206 * Makefile.in: Add target macro definitions for s390*-linux*.
34207 * system-linux-s390.ads: New file.
34208 * system-linux-s390x.ads: New file.
34210 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34212 * gnat_ugn.texi: Correct argument to @setfilename.
34214 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34216 * a-exexpr.adb (Unwind_Word): New data type.
34217 (Unwind_Exception): Use it as type of Private1 and Private2.
34219 * raise.c (db_action_for): Fix debug printf.
34221 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34223 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34226 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34228 * decl.c (gnat_to_gnu_entity, case object): Call
34229 __builtin_update_setjmp_buf.
34231 * gigi.h (update_setjmp_buf): Deleted.
34232 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34234 * misc.c: (update_setjmp_buf): Deleted.
34236 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34237 around block of RTL.
34239 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34241 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34243 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34244 subprogram for which no pragma All_Calls_Remote applies, store the
34245 address of the real subprogram in the underlying record type, so local
34246 dereferences do not go through the PCS.
34248 2004-04-26 Robert Dewar <dewar@gnat.com>
34250 * i-c.ads: Add some type qualifications to avoid ambiguities when
34251 compiling with s-auxdec.ads and a non-private address type.
34253 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34255 * Makefile.rtl: Fix error in previous check-in:
34256 Add s-addope.o to non tasking object list (rather than tasking object
34259 2004-04-26 Javier Miranda <miranda@gnat.com>
34261 * sem_aggr.adb: Fix typo in comments
34262 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34263 Required to check the null-exclusion attribute.
34265 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34266 case of anonymous access types in record and array components. For a
34267 component definition the level is the same of the enclosing composite
34270 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34271 that are anonymous access types the level of accessibility depends on
34272 the enclosing type declaration. In order to have this information, set
34273 the scope of the anonymous access type to the enclosing record type
34275 (Array_Type_Declaration): In case of components that are anonymous
34276 access types the level of accessibility depends on the enclosing type
34277 declaration. In order to have this information, set the scope of the
34278 anonymous access type to the enclosing array type declaration.
34280 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34283 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34284 renaming of anonymous access-to-constant types allowed if and only if
34285 the renamed object is access-to-constant.
34287 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34288 that are component_definition or discriminants of a nonlimited type,
34289 the level is the same as that of the enclosing component type.
34291 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34293 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34294 misprint in the function name (File_Name_Match).
34296 2004-04-23 Laurent Guerby <laurent@guerby.net>
34298 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34301 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34303 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34305 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34307 * adaint.c (__gnat_try_lock): No longer requires that the parent
34308 directory be writable, the directory itself is enough.
34309 (gnat_is_absolute_path): Change profile, so that the call from
34310 GNAT.OS_Lib can be made more efficient.
34312 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34313 from GNAT.OS_Lib can be made more efficient.
34315 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34316 one copy of the file name. Found by code reading.
34318 2004-04-23 Vincent Celier <celier@gnat.com>
34320 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34321 Correct documentation on gnatmake switches transmitted to the compiler
34323 * ali.ads: Minor comment fix
34325 2004-04-23 Javier Miranda <miranda@gnat.com>
34327 * sem_ch6.adb: (Confirming Types): Code cleanup
34329 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34330 subprogram types: E_Anonymous_Access_Subprogram_Type and
34331 E_Anonymous_Access_Protected_Subprogram_Type.
34333 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34335 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34336 whether a pragma All_Calls_Remote applies to the subprogram on which
34338 No functional change is introduced by this revision; the new parameter
34339 will be used to allow calls to local RCI subprograms to be optimized
34340 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34341 as is already done in the PolyORB implementation of the DSA.
34343 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34344 whether a pragma All_Calls_Remote applies to the subprogram on which
34346 No functional change is introduced by this revision; the new parameter
34347 will be used to allow calls to local RCI subprograms to be optimized
34348 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34349 as is already done in the PolyORB implementation of the DSA.
34351 2004-04-23 Robert Dewar <dewar@gnat.com>
34353 * Makefile.rtl: Add entry for s-addope.o in run time library list
34354 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34355 * s-addope.ads, s-addope.adb: New files.
34357 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34358 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34359 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34360 System.Address to be non-private and signed.
34362 * sem_elim.adb: Minor reformatting (fairly extensive)
34363 Some minor code reorganization from code reading
34364 Add a couple of ??? comments
34366 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34368 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34369 (tree_transform, case N_If_Statement): Remove non-determinism.
34371 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34373 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34375 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34376 Eliminate' section.
34378 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34379 no longer used as a parameter name for Eliminate pragma).
34381 2004-04-22 Laurent Guerby <laurent@guerby.net>
34383 PR optimization/14984
34384 PR optimization/14985
34385 * trans.c (gigi): Fix non determinism leading to bootstrap
34386 comparison failures.
34388 2004-04-21 Pascal Obry <obry@gnat.com>
34390 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34391 passed to spawnvp() to properly handle program pathname with spaces on
34394 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34396 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34397 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34398 unlocked in case of exceptions.
34400 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34402 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34403 This function does not exist anymore.
34405 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34407 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34409 * link.c: Move variables to the __gnat name space.
34411 * Makefile.in: list link.o explicitly when needed.
34413 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34415 2004-04-21 Javier Miranda <miranda@gnat.com>
34417 * einfo.adb (Original_Access_Type): New subprogram
34418 (Set_Original_Access_Type): New subprogram
34419 (Write_Field21_Name): Write the name of the new field
34421 * einfo.ads (Original_Access_Type): New field present in access to
34423 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34424 E_Anonymous_Access_Protected_Subprogram_Type.
34426 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34429 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34430 to anonymous access to subprogram types.
34432 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34433 to subprogram types.
34435 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34436 corresponding to anonymous access to subprogram types.
34437 (Analyze_Component_Declaration): Add new actual to the call to
34438 subprogram replace_anonymous_access_to_protected_subprogram.
34439 (Array_Type_Declaration): Add new actual to the call to subprogram
34440 replace_anonymous_access_to_protected_subprogram.
34441 (Process_Discriminants): Add new actual to the call to subprogram
34442 replace_anonymous_access_to_protected_subprogram.
34443 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34445 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34448 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34449 access to subprogram types.
34451 * sem_util.adb (Has_Declarations): Addition of package_specification
34454 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34456 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34457 inlined flags to renamed entity only if in current unit.
34459 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34461 * s-parint.ads: Add DSA implementation marker.
34463 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34464 value of System.Partition_Interface.DSA_Implementation to determine
34465 what version of the distributed systems annex is available (no
34466 implementation, GLADE, or PolyORB).
34468 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34470 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34472 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34474 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34475 with new type if alias sets differ.
34476 Fixes ACATS c41103b.
34478 2004-04-21 Vincent Celier <celier@gnat.com>
34480 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34481 Add array Lang_Args for the language specific compiling argument
34484 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34486 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34488 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34489 according to the recent changes in the format of the parameters of the
34490 pragma (replacing Homonym_Number with Source_Location).
34492 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34494 * 5isystem.ads: Removed, unused.
34496 * gnat_rm.texi: Redo 1.13 change.
34498 2004-04-19 Robert Dewar <dewar@gnat.com>
34500 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34501 definition is cleaner, avoids the kludge of explicit Standard operator
34502 references, and also is consistent with a visible System.Address with
34503 no visible operations.
34505 * s-geveop.adb: Add declarations to avoid assumption of visible
34506 operations on type System.Address (since these might not be available
34507 if Address is a non-private type for which the operations
34508 are made abstract).
34510 * sem_eval.adb: Minor reformatting
34512 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34513 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34514 reformatting (new function spec format).
34516 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34517 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34518 s-caun64.adb: Add declarations to avoid assumption of visible
34519 operations on type System.Address (since these might not be available
34520 if Address is a non-private type for which the operations are made
34523 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34525 * exp_intr.adb: Minor comment update
34527 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34529 * 5omastop.adb: Add declarations to avoid assumption of visible
34530 operations on type System.Address (since these might not be available
34531 if Address is a non-private type for which the operations
34532 are made abstract).
34534 2004-04-19 Vincent Celier <celier@gnat.com>
34536 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34538 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34541 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34543 Call Check with Process_Languages.
34544 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34545 with Process_Languages.
34546 (Recursive_Check): New Boolean parameter Process_Languages. Call
34547 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34550 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34552 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34553 parameter Ada_Main, defaulted to True.
34554 Check for Ada specific characteristics only when Ada_Main is True.
34556 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34558 * prj.adb: (Project_Empty): Add new Project_Data components.
34560 * prj.ads: New types and tables for non Ada languages.
34561 (Project_Data): New components Languages, Impl_Suffixes,
34562 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34563 Include_Path, Include_Data_Set.
34565 * prj-env.ads, prj-env.adb: Minor reformatting
34567 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34568 Put subprograms in alphabetical order
34570 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34571 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34574 * mlib-prj.adb: Back out modification in last version, as they are
34576 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34578 * make.adb: (Mains): Moved to package Makeutl
34579 (Linker_Opts): Moved to package Makeutl
34580 (Is_External_Assignment): Moved to package Makeutl
34581 (Test_If_Relative_Path): Moved to package Makeutl
34582 (Gnatmake): Move sorting of linker options to function
34583 Makeutl.Linker_Options_Switches.
34585 * makeutl.ads, makeutl.adb: New files.
34587 * Makefile.in: Add makeutl.o to the object files for gnatmake
34589 * makeusg.adb: Add line for new switch -eL.
34591 * gnatls.adb (Image): New function.
34592 (Output_Unit): If in verbose mode, output the list of restrictions
34593 specified by pragmas Restrictions.
34595 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34598 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34599 needed, to put it in the range 1970 (included) - 2026 (excluded).
34600 (Time_Of): Do not shift Unix_Min_Year (1970).
34601 Shift the date by multiple of 56 years, if needed, to put it in the
34602 range 1970 (included) - 2026 (excluded).
34604 * adaint.h, adaint.c (__gnat_set_executable): New function.
34606 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34608 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34609 and pop GC context.
34610 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34611 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34612 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34613 (tree_transform, case N_Code_Statement): Likewise.
34614 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34615 LABEL_STMT_FIRST_IN_EH.
34616 (gnat_expand_stmt, case ASM_STMT): New case.
34618 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34619 UNCONSTRAINED_ARRAY_REF.
34621 * utils.c (poplevel): Temporarily push/pop GC context around inline
34622 function expansion.
34624 * decl.c (maybe_variable): Properly set TREE_READONLY of
34625 UNCONSTRAINED_ARRAY_REF.
34626 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34628 * ada-tree.def: (ASM_STMT): New.
34630 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34631 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34632 ASM_STMT_INPUT): New.
34633 (ASM_STMT_CLOBBER): Likewise.
34635 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34637 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34638 general rcheck mechanism to raise Program_Error for E.4(18), instead
34639 of a custom raiser in System.Partition_Interface.
34640 Part of general cleanup work before PolyORB integration.
34642 * snames.ads, snames.adb: Add new runtime library entities and names
34645 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34647 (Build_Subprogram_Id): New subprogram provided by exp_dist
34648 Code reorganisation in preparation for PolyORB integration.
34650 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34652 (Build_Subprogram_Id): New subprogram provided by exp_dist
34654 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34655 actual parameter types for call to dereference of an
34656 access-to-subprogram type.
34658 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34661 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34662 instead, which has the same behaviour here since we never pass it a
34665 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34668 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34669 to account for new dependency upon Interfaces.C.Strings + link.o
34670 For x86 FreeBSD, use 86numaux.
34672 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34673 from Mlib.Tgt to Mlib.
34675 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34676 target-independent.
34678 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34679 target-specific versions of this subprogram, now implemented as a
34680 target-independent function in Mlib.
34682 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34683 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34684 (Linker_Library_Path_Option): Remove target-specific versions of this
34685 subprogram, now implemented as a target-independent function in Mlib.
34687 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34688 Factors out node table slots allocation.
34689 (Fix_Parents): New subprogram.
34690 Encapsulate the pattern of fixing up parent pointers for syntactic
34691 children of a rewritten node.
34692 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34693 (Rewrite): Use New_Copy when creating saved copy of original node.
34694 (Replace): Use Copy_Node to copy nodes.
34696 2004-04-19 Javier Miranda <miranda@gnat.com>
34698 * sprint.adb (Sprint_Node_Actual): Give support to the new
34699 Access_To_Subprogram node available in Access_Definition nodes. In
34700 addition, give support to the AI-231 node fields: null-exclusion,
34701 all-present, constant-present.
34703 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34705 * sinfo.ads, sinfo.adb:
34706 New field Access_To_Subprogram_Definition in Access_Definition nodes
34708 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34709 decorates internal subtype declaration corresponding to the
34710 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34711 In addition, carry out some code cleanup on this code. In case of
34712 access to protected subprogram call
34713 Replace_Anonymous_Access_To_Protected_Subprogram.
34714 (Set_Actual_Subtypes): Code cleanup.
34716 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34717 Find_Type in case of anonymous access renamings. Add warning in case of
34718 null-excluding attribute used in anonymous access renaming.
34720 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34723 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34725 (Access_Definition): In case of anonymous access to subprograms call
34726 the corresponding semantic routine to decorate the node.
34727 (Access_Subprogram_Declaration): Addition of some comments indicating
34728 some code that probably should be added here. Detected by comparison
34729 with the access_definition subprogram.
34730 (Analyze_Component_Declaration): In case of access to protected
34731 subprogram call Replace_Anonymous_Access_To_Protected.
34732 (Array_Type_Declaration): In case of access to protected subprogram call
34733 Replace_Anonymous_Access_To_Protected_Subprogram.
34734 (Process_Discriminants): In case of access to protected subprogram call
34735 Replace_Anonymous_Access_To_Protected_Subprogram.
34737 * par.adb (P_Access_Definition): New formal that indicates if the
34738 null-exclusion part was present.
34739 (P_Access_Type_Definition): New formal that indicates if the caller has
34740 already parsed the null-excluding part.
34742 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34743 (P_Identifier_Declarations): Code cleanup and give support to renamings
34744 of anonymous access to subprogram types.
34745 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34746 (P_Array_Type_Definition): Give support to AI-254.
34747 (P_Component_Items): Give support to AI-254.
34748 (P_Access_Definition): New formal that indicates if the header was
34749 already parsed by the caller.
34750 (P_Access_Type_Definition): New formal that indicates if the caller has
34751 already parsed the null-excluding part.
34753 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34754 call to P_Access_Definition.
34756 2004-04-19 Geert Bosch <bosch@gnat.com>
34758 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34759 the delicate semantics of floating-point to integer conversion.
34760 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34762 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34763 (Machine_Radix): New function.
34765 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34767 (Machine_Radix): New function also for use in conversion checks.
34769 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34771 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34773 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34774 to decorate the access-to-protected subprogram and the equivalent type.
34776 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34777 to anonymous access to subprogram types.
34779 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34780 constant-folding, for legality checks in contexts that require an RM
34783 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34784 temporary but stack checking is not enabled, increment serial number
34785 to so that symbol generation is consistent with and without stack
34788 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34789 independent on whether stack checking is enabled, caller must check
34790 the corresponding flag.
34792 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34794 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34795 parent if it has discriminants.
34796 (Build_Derived_Private_Type): Constructed full view does
34797 not come from source.
34798 (Process_Discriminants): Default discriminants on a tagged type are
34799 legal if this is the internal completion of a private untagged
34802 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34803 no constraint checks, because it corresponds to an existing object.
34805 * sem_prag.adb (Process_Convention): Pragma applies
34806 only to subprograms in the same declarative part, i.e. the same unit,
34807 not the same scope.
34809 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34810 ignore type mismatch on a numeric conversion if expression comes from
34813 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
34815 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34816 Homonym_Number parameter, add processing for Source_Location parameter
34818 (Check_Eliminated): Remove the check for homonym numbers, add the check
34819 for source location traces.
34821 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34822 with Arg_Source_Location corresponding to the changes in the format of
34825 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34826 Eliminate pragma corresponding to the changes in the format of the
34827 pragma: Homonym_Number is replaced with Source_Location, two ways of
34828 distinguishing homonyms are mutially-exclusive.
34830 2004-04-19 Joel Brobecker <brobecker@gnat.com>
34832 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34834 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34835 No_Dollar_In_Label, no longer necessary, as it is always True.
34836 (Strip_Suffixes): Likewise.
34838 2004-04-19 Gary Dismukes <dismukes@gnat.com>
34840 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34841 modulus for compatibility with size clause on targets with 16-bit
34844 * layout.adb (Discrimify): In the case of private types, set Vtyp to
34845 full type to fix type mismatches on calls to size functions for
34846 discriminant-dependent array components.
34848 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
34850 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34853 2004-04-19 Pascal Obry <obry@gnat.com>
34855 * mdll-utl.adb (Locate): New version is idempotent.
34857 2004-04-17 Laurent Guerby <laurent@guerby.net>
34859 PR ada/14988 (partial)
34860 * impunit.adb: Fix typo.
34862 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
34864 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34865 and install-rts-cert targets. Remove all gnatlib and gnattools
34866 targets and all other rts-* targets (moved to libada). Remove (now)
34867 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34868 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34870 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34872 * trans.c (tree_transform): Shortcut returning error_mark_node for
34873 statements in annotate_only_mode.
34874 (tree_transform, case N_Label, case N_Return_Statement,
34875 N_Goto_Statement): Make statement tree instead of generating code.
34876 (tree_transform, case N_Assignment_Statement): No longer check
34877 type_annotate_only.
34878 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34880 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34882 (gnat_to_gnu): Collect any RTL generated and deal with it.
34883 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34884 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34885 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34887 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34889 * ada-tree.def (EXPR_STMT): Fix typo in name.
34890 (BLOCK_STMT, IF_STMT): New nodes.
34892 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34893 LABEL_STMT_FIRST_IN_EH): New macros.
34894 (RETURN_STMT_EXPR): Likewise.
34896 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34897 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34899 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34901 * atree.ads: Correct documentation on extended nodes.
34903 * link.c: Set run_path_option for FreeBSD.
34905 2004-04-08 Vincent Celier <celier@gnat.com>
34907 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34908 one of the ALI file, do not link with DEC lib.
34910 * par.adb Remove the last two characters ("%s" or "%b") when checking
34911 if a language defined unit may be recompiled.
34913 2004-04-08 Ed Schonberg <schonberg@gnat.com>
34915 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34916 removal of abstract operation leaves no possible interpretation for
34919 * sem_eval.adb (Eval_Qualified_Expression): Use
34920 Set_Raises_Constraint_Error on node when needed, so that it does not
34921 get optimized away by subsequent optimizations.
34923 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34924 operands even when they are not wrapped in a type conversion.
34926 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
34928 * sem_prag.adb (Set_Exported): Warn about making static as result of
34929 export only when the export is coming from source. This may be not
34930 be true e.g. on VMS where we expand export pragmas for exception codes
34931 together with imported or exported exceptions, and we don't want the
34932 user to be warned about something he didn't write.
34934 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34936 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34937 duplication between normal entities and those declared as renamings.
34938 No functional change.
34940 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34941 inline functions returning an unconstrained result.
34943 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
34945 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34946 conform to what other front-ends do.
34948 2004-04-08 Doug Rupp <rupp@gnat.com>
34950 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34953 2004-04-06 Pascal Obry <obry@gnat.com>
34955 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34957 * osint.adb (Program_Name): Do not look past a directory separator.
34959 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
34961 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34963 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34964 requirement for preserving a copy of the original assignment node.
34966 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34968 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
34970 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34973 2004-04-06 Ed Schonberg <schonberg@gnat.com>
34975 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34976 operator calls in functional notation, and apply
34977 Universal_Interpretation to operands, not to their type.
34979 2004-04-06 Robert Dewar <dewar@gnat.com>
34981 * 5wdirval.adb: Minor reformatting
34983 2004-04-06 Ed Falis <falis@gnat.com>
34985 * gnat_rm.texi: Improve a reference to the GCC manual
34987 2004-04-05 Vincent Celier <celier@gnat.com>
34989 * adaint.h, adaint.c: Add function __gnat_named_file_length
34991 * impunit.adb: Add Ada.Directories to the list
34993 * Makefile.in: Add VMS and Windows versions of
34994 Ada.Directories.Validity package body.
34996 * Makefile.rtl: Add a-direct and a-dirval
34998 * mlib-tgt.ads: Minor comment update.
35000 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35001 a-direct.ads, a-direct.adb: New files.
35003 2004-04-05 Vincent Celier <celier@gnat.com>
35006 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35007 just to the compiler.
35009 2004-04-05 Robert Dewar <dewar@gnat.com>
35011 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35012 returned string is 1.
35014 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35016 * eval_fat.ads: Minor reformatting
35018 * g-curexc.ads: Document that lower bound of returned string values
35021 * gnatlink.adb: Add ??? comment for previous change
35022 (need to document why this is VMS specific)
35024 * s-stoele.ads: Minor reformatting
35026 * tbuild.ads: Minor reformatting throughout (new function specs)
35028 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35031 * scng.adb: Minor reformatting
35033 2004-04-05 Geert Bosch <bosch@gnat.com>
35035 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35036 (Leading_Part): Still perform truncation to machine number if the
35037 specified radix_digits is greater or equal to machine_mantissa.
35039 2004-04-05 Javier Miranda <miranda@gnat.com>
35041 * par-ch3.adb: Complete documentation of previous change
35042 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35043 (aliased must appear before constant).
35045 * par-ch4.adb: Complete documentation of previous change.
35047 * par-ch6.adb: Complete documentation of previous change.
35049 * sinfo.ads: Fix typo in commment.
35051 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35053 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35054 stored discriminants, use its discriminants to constrain parent type,
35055 as is done for non-private derived record types.
35057 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35058 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35059 candidate interpretation in an overloaded call.
35061 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35062 expression is Null and target type is not an access type (e.g. a
35063 non-private address type).
35065 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35067 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35068 statement whose right-hand side is an inlined call, save a copy of the
35069 original assignment subtree to preserve enough consistency for
35070 Analyze_Assignment to proceed.
35072 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35073 complete assignment subtree which is now unnecessary, as the expansion
35074 of inlined call has been improved to preserve a consistent assignment
35075 tree. Note_Possible_Modification must be called only
35076 after checks have been applied, or else unnecessary checks will
35079 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35080 of explicit dereferences that do not Come_From_Source:
35081 - be selective on cases where we must go back to the dereferenced
35082 pointer (an assignment to an implicit dereference must not be
35083 recorded as modifying the pointer);
35084 - do not rely on Original_Node being present (Analyze_Assignment
35085 calls Note_Possible_Modification on a copied tree).
35087 * sem_warn.adb (Check_References): When an unset reference to a pointer
35088 that is never assigned is encountered, prefer '<pointer> may be null'
35089 warning over '<pointer> is never assigned a value'.
35091 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35093 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35096 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35098 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35099 libexc. We currently don't reference anything in this library and
35100 linking it in triggers linker warnings we don't want to see.
35102 * init.c: Update comments.
35104 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35106 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35107 * utils.c (create_field_decl): Likewise.
35108 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35110 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35112 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35113 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35114 Add info directory entry and category.
35116 2004-04-02 Jan Hubicka <jh@suse.cz>
35118 * utils.c: Include function.h
35119 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35121 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35124 * Make-lang.in: Clean up generation of documentation
35126 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35128 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35130 * xgnatugn.adb: Replaces xgnatug.adb
35132 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35134 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35136 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35137 gnat_ug_wnt.texi: Removed.
35139 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35141 * utils2.c: Update copyright notice.
35143 2004-04-01 Robert Dewar <dewar@gnat.com>
35145 * checks.adb: Minor reformatting throughout
35146 Note that prev checkin added RM reference to alignment warning
35148 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35150 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35151 non-static when building aggregate for bit-packed array.
35153 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35154 function call that is itself the actual in a procedure call, build
35157 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35158 a string literal, create a temporary for it, constant folding only
35159 handles scalars here.
35161 2004-04-01 Vincent Celier <celier@gnat.com>
35163 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35164 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35165 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35167 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35168 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35169 and get the checksum.
35171 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35173 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35174 instead of at the beginning.
35176 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35178 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35181 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35183 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35186 * par.adb: Remove test on file name to detect language defined units.
35187 Add test on unit name, after parsing, to detect language defined units
35188 that are not compiled with -gnatg (except System.RPC and its children)
35190 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35191 following units without style checking.
35193 * switch-c.adb: Change -gnatC to -gnateI
35195 * usage.adb: Document new switch -gnateInnn
35197 * scng.adb (Accumulate_Token_Checksum): New procedure
35198 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35199 word or literal number.
35200 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35203 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35206 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35207 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35208 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35209 5vtpopde.adb: Add missing 'constant' keywords.
35211 2004-04-01 Javier Miranda <miranda@gnat.com>
35213 * par-ch4.adb: (P_Allocator): Code cleanup
35215 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35218 * sinfo.ads: Complete documentation of previous change
35220 2004-04-01 Pascal Obry <obry@gnat.com>
35222 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35223 only on VMS. This special handling was done because an old GNU/ld bug
35224 on Windows which has been fixed.
35226 2004-04-01 GNAT Script <nobody@gnat.com>
35228 * Make-lang.in: Makefile automatically updated
35230 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35232 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35233 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35234 * trans.c (tree_transform, convert_with_check): Likewise.
35235 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35236 (build_vms_descriptor, unchecked_convert): Likewise.
35237 * utils2.c (nonbinary_modular_operation): Likewise.
35239 2004-03-29 Javier Miranda <miranda@gnat.com>
35241 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35242 (Install_Null_Excluding_Check): Local subprogram that determines whether
35243 an access node requires a runtime access check and if so inserts the
35244 appropriate run-time check.
35245 (Apply_Access_Check): Call Install_Null_Excluding check if required
35246 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35248 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35250 * einfo.ads: Fix typo in comment
35252 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35253 null-excluding type to force the corresponding run-time check.
35254 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35255 type to force the corresponding run-time check.
35257 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35258 the null-excluding type to force the corresponding run-time check.
35260 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35261 case of access types unless they have the null-excluding attribute.
35263 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35266 * exp_util.ads: Fix typo in comment
35268 * par.adb (P_Null_Exclusion): New subprogram
35269 (P_Subtype_Indication): New formal that indicates if the null-excluding
35270 part has been scanned-out and it was present
35272 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35274 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35275 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35276 type to force the corresponding run-time check
35277 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35279 (Resolve_Array_Aggregate): Carry out some static checks
35280 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35282 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35283 attribute must be set only if specified by means of the null-excluding
35284 part. In addition, we must also propagate the access-constant attribute
35286 (Access_Subprogram_Declaration, Access_Type_Declaration,
35287 Analyze_Component_Declaration, Analyze_Object_Declaration,
35288 Array_Type_Declaration, Process_Discriminants,
35289 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35290 and carry out some static checks.
35291 (Build_Derived_Access_Type): Set the null-excluding attribute
35292 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35295 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35297 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35299 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35300 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35301 null-excluding part was present; it is not required to be done here in
35302 case of anonymous access types.
35303 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35306 * sem_res.adb (Resolve_Actuals): Carry out some static check
35307 (Resolve_Null): Allow null in anonymous access
35309 * sinfo.adb: New subprogram Null_Exclusion_Present
35310 All_Present and Constant_Present available on access_definition nodes
35312 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35313 object_declaration, derived_type_definition, component_definition,
35314 discriminant_specification, access_to_object_definition,
35315 access_function_definition, allocator, access_procedure_definition,
35316 access_definition, parameter_specification, All_Present and
35317 Constant_Present flags available on access_definition nodes.
35319 2004-03-29 Robert Dewar <dewar@gnat.com>
35321 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35322 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35323 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35324 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35325 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35326 sem_prag.adb: Updates to handle multiple units/file
35328 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35330 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35331 sem_util.adb: Minor reformatting
35333 * sem_ch12.adb: Add comment for previous change
35335 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35337 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35338 executable name when not initialized. Otherwise, use its current value.
35340 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35341 initialize it to another executable name than the current one. This
35342 allows to configure paths for an executable name (gnatmake) different
35343 from the current one (gnatdist).
35345 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35347 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35348 current unit cannot be inlined if it appears in the body of a withed
35349 unit, to avoid order of elaboration problems in gigi.
35351 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35352 information for protected (wrapper) operation as well, to simplify gdb
35355 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35356 protected body, indicate that the entity for the generated spec comes
35357 from source, to ensure that references are properly generated for it.
35358 (Build_Body_To_Inline): Do not inline a function that returns a
35361 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35362 apply convention to homonyms that are declared explicitly.
35364 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35365 that renames an equality operator and the operands are overloaded,
35366 resolve them with the declared formal types, before rewriting as an
35369 2004-03-29 GNAT Script <nobody@gnat.com>
35371 * Make-lang.in: Makefile automatically updated
35373 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35375 * memtrack.adb: Log realloc calls, which are treated as free followed
35378 2004-03-25 Vincent Celier <celier@gnat.com>
35380 * prj-makr.adb (Process_Directories): Detect when a file contains
35381 several units. Do not include such files in the config pragmas or
35382 in the naming scheme.
35384 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35385 Resolve links only when not in Trusted_Mode.
35386 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35387 Do not resolve links for the display names.
35389 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35390 resolve links when computing the display names.
35392 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35394 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35395 attribute reference does not denote a subtype, it can be any
35396 expression that has a classwide type, potentially after an implicit
35397 dereference. In particular, the prefix can be a view conversion for
35398 a classwide type (for which Is_Object_Reference holds), but it can
35399 also be a value conversion for an access-to-classwide type. In the
35400 latter case, there is an implicit dereference, and the original node
35401 for the prefix does not verify Is_Object_Reference.
35403 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35404 conversion of a discriminant-dependent component of a mutable object
35407 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35409 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35410 inherited, has convention C, and has unconstrained array parameters,
35411 place the corresponding warning on the derived type declaration rather
35412 than the original subprogram.
35414 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35415 indication on renaming declaration, if formal has a box and actual
35418 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35419 determine whether to generate an implicit or explicit reference to
35420 the renamed entity.
35422 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35423 subprogram renaming comes from a defaulted formal subprogram in an
35426 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35428 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35429 value expressions to ensure that calls within a component definition
35430 will be checked (since those are evaluated during the record type's
35433 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35435 * s-tpobop.adb: Code clean up:
35436 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35438 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35440 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35442 * Makefile.in: Clean up in the ravenscar run time.
35444 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35446 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35447 of No_Strict_Aliasing to build_pointer_type_for_mode.
35448 * utils.c (update_pointer_to): Walk pointer and ref chains.
35450 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35452 * ali.ads: Fix Comment about Dynamic_Elab.
35454 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35455 Has_RACW, Is_Generic, etc.)
35456 (Output_Object, Gnatls): Take into account ALI files not attached to
35459 2004-03-22 Vincent Celier <celier@gnat.com>
35461 * gprep.adb: Change all String_Access to Name_Id
35462 (Is_ASCII_Letter): new function
35463 (Double_File_Name_Buffer): New procedure
35464 (Preprocess_Infile_Name): New procedure
35465 (Process_Files): New procedure
35466 (Gnatprep): Check if output and input are existing directories.
35467 Call Process_Files to do the real job.
35469 2004-03-22 Robert Dewar <dewar@gnat.com>
35471 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35472 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35474 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35476 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35477 case when the source contains only comments.
35479 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35481 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35482 declaration for a child subprogram body that acts as a spec, indicate
35483 that the entity in the declaration needs debugging information.
35485 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35486 full view if the subtype is created for a constrained record component;
35487 gigi has enough information to construct the record, and there is no
35488 place in the tree for the declaration.
35490 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35491 serial number for the dummy body that is built for analysis, to avoid
35492 inconsistencies in the generation of internal names when compiling
35495 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35497 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35500 2004-03-22 GNAT Script <nobody@gnat.com>
35502 * Make-lang.in: Makefile automatically updated
35504 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35506 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35507 * trans.c (tree_transform, emit_index_check): Likewise.
35508 * utils.c (build_template): Likewise.
35509 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35510 (maybe_unconstrained_array, unchecked_convert): Likewise.
35511 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35512 (build_unary_op): Likewise.
35513 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35514 (fill_vms_descriptor): Likewise.
35515 (build_call_alloc_dealloc): Likewise.
35517 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35519 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35522 * gnat_ug.texi: Add info directory category and entry.
35523 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35524 gnat_ug_wnt.texi: Regenerate.
35526 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35528 * ada-tree.h: Update copyright notice.
35529 Minor reformatting.
35531 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35533 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35534 as regular exception objects and not as mere integers representing the
35535 condition code. The latter approach required some dynamics to mask off
35536 severity bits, which did not fit well into the GCC table based model.
35537 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35538 exception data objects. We don't it and it would conflict with the other
35539 external symbol we have to generate for such exceptions.
35541 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35542 the special code for VMS exceptions, since these are now represented
35543 as regular exceptions objects.
35545 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35547 * decl.c (debug_no_type_hash): Remove.
35548 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35549 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35551 2004-03-19 Laurent Guerby <laurent@guerby.net>
35553 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35554 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35556 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35558 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35559 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35560 (TYPE_RM_SIZE_INT): Directly use type.values.
35561 (TREE_LOOP_ID): Clean up check.
35562 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35563 TYPE_VALUES, not TYPE_FIELDS.
35564 * trans.c (convert_with_check): Delay access of bounds of basetype
35565 until sure is numeric.
35567 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35569 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35572 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35573 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35574 Specific.Set instead of direct call to e.g pthread_setspecific.
35576 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35578 * adaint.c: Update comments.
35580 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35581 GNATLIB_SHARED for FreeBSD.
35583 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35585 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35586 When needed (stack checking) the stack size is retrieved
35587 from the VxWorks kernel.
35589 * Makefile.in: Flag -nostdinc is required when building the run time
35590 for avoiding looking for files in the base compiler.
35591 Add the VxWorks specific version of the package body for
35592 System.Stack_checking.Operations (5zstchop.adb).
35594 * Make-lang.in: Add the object file for
35595 System.Stack_Checking.Operations.
35597 * Makefile.rtl: Add object file for the package
35598 System.Stack_Checking.Operations.
35600 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35602 * s-stache.ads, s-stache.adb: Move the operations related to stack
35603 checking from this package to package System.Stack_Checking.Operations.
35604 This way, stack checking operations are only linked in the final
35605 executable when using the -fstack-check flag.
35607 2004-03-18 Doug Rupp <rupp@gnat.com>
35609 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35612 * 5qsystem.ads, 5xcrtl.ads: New files.
35614 2004-03-18 Vincent Celier <celier@gnat.com>
35616 * prj.adb (Reset): Reset hash table Files_Htable
35618 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35619 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35620 the procedures Add_To_Path_File.
35621 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35622 making sure that each directory is present only once and, for object
35623 dirs, when a directory already present is added, the duplicate is
35624 removed and the directory is always put as the last in the table.
35625 Write the path files at the end of these accumulations.
35627 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35628 Files_Htable for all sources.
35630 * prj-proc.adb (Process): Remove restrictions between not directly
35631 related extending projects.
35633 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35635 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35636 (Find_Sources): Minor speed optimization.
35638 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35639 parameter Trusted_Mode.
35641 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35643 * scn.adb (Determine_License): Take into account a degenerated case
35644 when the source contains only comments.
35646 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35648 * sem_warn.adb (Check_References): For a warning on a selected
35649 component that does not come from source, locate an uninitialized
35650 component of the record type to produce a more precise error message.
35652 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35654 * 3zsoccon.ads: Fix multicast options.
35656 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35659 2004-03-15 Robert Dewar <dewar@gnat.com>
35661 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35662 pragma used for a private type.
35664 * lib-xref.adb (Generate_Reference): Do not generate warning if
35665 reference is in a different unit from the pragma Unreferenced.
35667 * 5vtpopde.adb: Minor reformatting
35668 Fix casing of To_Task_ID
35670 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35671 flag if we have an unchecked conversion to an access type in the same
35674 2004-03-15 Geert Bosch <bosch@gnat.com>
35676 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35677 imaginary parts, use Double precision throughout.
35679 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35680 we want to be able to compile run-time with -gnata for testing, but
35681 this may also be instantiated in user code that is compiled with -gnata.
35683 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35685 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35686 codes. Having a separate type for this is useful to enforce consistency
35687 throughout the various run-time units.
35688 (Exception_Data): Use Exception_Code for Import_Code.
35690 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35691 Natural and Integer in various places.
35692 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35693 with the severity bits masked off.
35694 (Register_VMS_Exception): Handle the additional exception data pointer
35697 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35698 component, now reflected by an exported accessor.
35699 (is_handled_by): New routine to compute whether the propagated
35700 occurrence matches some handler choice specification. Extracted out of
35701 get_action_description_for, and expanded to take care of the VMS
35703 (get_action_description_for): Use is_handled_by instead of an explicit
35704 complex condition to decide if the current choice at hand catches the
35705 propagated occurrence.
35707 * raise.h (Exception_Code): New type for C.
35709 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35710 System.Standard_Library.Exception_Code, to allow references from the
35711 pragma import/export expander.
35713 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35714 New accessors to allow easy access to GNAT exception data
35716 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35717 redundant Handled_By_Others component, helper for the personality
35718 routine which will now be able to call the appropriate exception data
35721 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35722 component of Standard_Exception_Type to be the closest possible to
35723 Exception_Code in System.Standard_Library, that we cannot get at this
35724 point. Expand a ??? comment to notify that this type node should
35725 probably be rewritten later on.
35727 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35728 registration call to include a pointer to the exception object in the
35731 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35732 instead of int and explicit bitmasks.
35734 2004-03-15 Vincent Celier <celier@gnat.com>
35736 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35737 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35739 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35740 longer needed now that it is in the spec of
35741 System.Tasking.Task_Attributes.
35743 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35745 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35747 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35749 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35750 taken care of in Scan_Make_Arg.
35751 (Scan_Make_Arg): Add the executable suffix only if the argument
35752 following -o, in canonical case, does not end with the executable
35753 suffix. When in verbose mode and executable file name does not end
35754 with executable suffix, output the executable name, in canonical case.
35756 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35757 to avoid warnings when instantiating Ada.Task_Attributes.
35760 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35761 in the correct order.
35763 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35764 redirect standard output and error to a file for the invocation of the
35765 compiler, then read the file.
35767 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35768 directory, instead of the Value.
35769 (Find_Source_Dirs): Remove useless code & comments.
35771 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35773 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35774 tagged type is inherited, and the parent operation is not frozen yet,
35775 force generation of a freeze node for the inherited operation, so the
35776 corresponding dispatch entry is properly initialized.
35777 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35778 when looking for user-defined equality operation.
35780 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35781 boolean when locating primitive equality of tagged component.
35783 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35784 bit-aligned field and the right-hand side a string literal, introduce
35785 a temporary before expanding assignment into a loop.
35787 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35788 priority in full, to ensure that any expanded subepxressions of it are
35789 elaborated in the scope of the init_proc.
35791 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35792 after object declaration, skipping over code that may have been
35793 generated for validity checks.
35795 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35796 discriminants, ignore the known discriminants of its full view, if
35797 any, to check legality.
35799 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35800 component if type has unknown discriminants.
35801 (Analyze_Private_Extension_Declaration): Discriminant constraint is
35802 null if type has unknown discriminants.
35804 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35805 for end label when present.
35807 * s-fileio.adb (Open): When called with a C_Stream, use given name for
35808 temporary file, rather than an empty string.
35810 2004-03-15 Ed Falis <falis@gnat.com>
35812 * s-thread.adb: Removed, no longer used.
35814 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35816 * decl.c (target.h): Now include.
35817 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35818 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35819 (validate_size): For POINTER_TYPE, get smallest size permitted on
35822 * fe.h: Sort Einfo decls and add Set_Mechanism.
35824 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35825 (ada/decl.o): Depends on target.h.
35827 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35828 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35830 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
35832 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35834 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35835 Insert_Dereference_Action when rewriting an implicit dereference into
35836 an explicit one, this will be taken care of during expansion of the
35837 explicit dereference.
35838 (Expand_N_Slice): Same. Always do the rewriting, even for the case
35839 of non-packed slices, since the dereference action generated by
35840 expansion of the explicit dereference is needed in any case.
35841 (Expand_N_Selected_Component): When rewriting an implicit dereference,
35842 analyze and resolve the rewritten explicit dereference so it is seen
35844 (Insert_Dereference_Action): This procedure is now called only for the
35845 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35846 dereferences that do not come from source (including explicit
35847 dereferences resulting from rewriting implicit ones), but do not
35848 recursively insert a check for the dereference nodes contained within
35850 (Insert_Dereference_Action): Clarify and correct comment.
35852 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
35855 Move language detection to the top level.
35856 * config-lang.in: Build by default.
35858 2004-03-05 Robert Dewar <dewar@gnat.com>
35860 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35862 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35863 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35864 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35865 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35866 unchecked conversion to spec to avoid warnings.
35868 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35871 * 7stpopsp.adb: Correct casing in To_Task_ID call
35873 * a-strsea.ads, a-strsea.adb: Minor reformatting
35875 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35877 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35878 Adjust Max_Msg_Length to be clearly large enough.
35880 * fe.h: Define In_Same_Source_Unit
35882 * osint.adb: Add pragma Warnings Off to suppress warnings
35883 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35886 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35888 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35890 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35892 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35894 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35896 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35897 node. We now do generate them for gcc back end.
35899 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35902 * sinput-c.adb: Fix bad name in header.
35903 Add pragma Warnings Off to suppress aliasing warning.
35905 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35907 * snames.h, snames.ads, snames.adb: Add entry for pragma
35908 No_Strict_Aliasing.
35910 2004-03-05 Vincent Celier <celier@gnat.com>
35912 * prj-com.ads: Add hash table Files_Htable to check when a file name
35913 is already a source of another project.
35915 * prj-nmsc.adb (Record_Source): Before recording a new source, check
35916 if its file name is not already a source of another project. Report an
35919 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35920 source file name, call gnatpp with all the sources of the main project.
35922 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35925 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35926 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35927 /RUNTIME_SYSTEM=, converted to --RTS=
35928 /NOTABS, converted to -notabs
35930 2004-03-05 Pascal Obry <obry@gnat.com>
35932 * make.adb: Minor reformatting.
35934 2004-03-05 Ed Schonberg <schonberg@gnat.com>
35936 Part of implemention of AI-262.
35937 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35939 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35942 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35943 when component type is a partially constrained class-wide subtype.
35944 (Constrain_Discriminated_Type): If parent type has unknown
35945 discriminants, a constraint is illegal, even if full view has
35947 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35948 with unknown discriminants whose full view is a discriminated record.
35950 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35951 flag, to handle properly derivations of tagged types with unknown
35953 (Analyze_Package_Spec, Analyze_Package_Body): Install
35954 Private_With_Clauses before analyzing private part or body.
35956 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35957 Has_Discriminants can be true for a given type (documentation).
35959 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
35961 * s-restri.ads: Fix license (GPL->GMGPL).
35963 * s-tassta.adb: Minor reformatting.
35965 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35966 by calls to Exit_One_ATC_Level, since additional clean up is performed
35969 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35970 by calls to Exit_One_ATC_Level, since additional clean up is performed
35973 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35975 * trans.c: Reflect GCC changes to fix bootstrap problem.
35976 Add warning for suspicious aliasing unchecked conversion.
35978 2004-03-05 GNAT Script <nobody@gnat.com>
35980 * Make-lang.in: Makefile automatically updated
35982 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
35984 * ali.adb (Read_Instantiation_Instance): Do not modify the
35985 current_file_num when reading information about instantiations, since
35986 this corrupts files in later references.
35988 2004-03-02 Vincent Celier <celier@gnat.com>
35990 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35991 before checking if it is read-only.
35993 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35994 of SRC_DIRS and eliminate duplicates.
35996 * gprcmd.adb: Replace command "path" with command "path_sep" to return
35997 the path separator.
35998 (Usage): Document path_sep
36000 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36001 C++ compiler. No need for a script.
36002 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36003 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36006 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36007 where there are Ada sources.
36008 (Set_Ada_Paths): Only add to the include path the source dirs of project
36010 (Add_To_Path): Add the Display_Values of the directories, not their
36013 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36016 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36018 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36019 Value is canonicalized.
36020 (Language_Independent_Check): Do not copy Value to Display_Value when
36021 canonicalizing Value.
36023 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36024 path to find limited with cycles.
36025 (Parse_Single_Project): Use canonical cased path to find the end of a
36028 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36030 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36031 and not a child unit.
36033 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36034 appear in a with_clause.
36036 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36037 only happen in type_annotate mode, do not try to elaborate it.
36039 * exp_util.adb (Force_Evaluation): If expression is a selected
36040 component on the left of an assignment, use a renaming rather than a
36041 temporary to remove side effects.
36043 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36044 inlined instance body, which is analyzed before the end of the
36047 2004-03-02 Robert Dewar <dewar@gnat.com>
36049 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36050 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36052 * errout.ads, errout.adb: Implement new circuit for substitution of
36055 * sem_case.adb (Analyze_Choices): Place message properly when case is
36056 a subtype reference rather than an explicit range.
36058 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36060 2004-03-02 Doug Rupp <rupp@gnat.com>
36062 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36064 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36066 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36068 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36070 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36073 2004-02-25 Robert Dewar <dewar@gnat.com>
36075 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36076 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36077 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36078 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36079 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36080 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36081 the defining instance of the type to avoid aliasing problems.
36082 Fix copyright header. Fix bad comments in package header.
36084 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36086 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36088 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36089 rewritten as references when aliased through an address clause.
36091 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36092 whether call can be interpreted as an indirect call to the result of a
36093 parameterless function call returning an access subprogram.
36095 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36098 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36099 Unlock[_Entries], since this is now done by Service_Entries directly.
36101 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36103 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36104 Requeue_Call for better code readability. Change spec and update calls:
36105 PO_Service_Entries now unlock the PO on exit.
36106 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36107 PO_Service_Entries.
36109 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36111 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36113 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36115 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36116 protected subprogram call and analyzing the result of such expanding
36117 in case when the called protected subprogram is eliminated.
36119 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36122 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36124 * Makefile.in: Clean ups.
36126 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36128 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36129 protected operations if original subprogram is flagged as eliminated.
36130 (Expand_N_Subprogram_Body): For a protected operation, create
36131 discriminals for next operation before checking whether the operation
36134 * exp_ch9.adb (Expand_N_Protected_Body,
36135 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36136 for internal protected operations if the original subprogram is
36139 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36140 declared in a single protected object.
36142 2004-02-23 Vincent Celier <celier@gnat.com>
36144 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36145 case insensitive if file names are case insensitive, instead of a
36146 standard associative array.
36148 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36149 them as case insensitive on platforms where the file names are case
36152 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36153 project file has already been parsed that canonical path are compared.
36155 2004-02-23 Robert Dewar <dewar@gnat.com>
36157 * sinput-c.ads: Correct bad unit title in header
36159 * freeze.adb: Minor reformatting
36161 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36163 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36164 nonaddressable COMPONENT_REF that is removing padding that we are
36165 taking the address of, take the address of the padded record instead
36166 if item is variable size.
36168 2004-02-20 Robert Dewar <dewar@gnat.com>
36170 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36172 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36174 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36175 itype references for the constrained designated type of a component
36176 whose base type is already frozen.
36178 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36180 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36181 avoid GCC warnings.
36183 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36185 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36186 identifier for a phantom package that rewrites the formal package
36187 declaration with a box. The Add semantic decorations for the defining
36188 identifier from the original node (that represents the formal package).
36190 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36192 * Make-lang.in (ada/stamp-sdefault): Use the top level
36195 2004-02-19 Richard Henderson <rth@redhat.com>
36197 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36199 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36201 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36202 Scan_ALI can be used for multiple ALI files without reinitializing
36205 2004-02-18 Robert Dewar <dewar@gnat.com>
36207 * debug.adb: Minor reformatting.
36209 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36211 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36212 to zero if there is an address clause.
36214 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36216 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36218 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36220 * layout.adb (Layout_Component_List): Revise generation of call to
36221 discriminant-checking function to pass selections of all of the type's
36222 discriminants rather than just the variant-controlling discriminant.
36224 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36226 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36227 fail in the current setup and triggers spurious system error messages.
36228 Pretend it occurred and failed instead.
36230 2004-02-18 Vincent Celier <celier@gnat.com>
36232 * bld.adb: Mark FLDFLAGS as saved
36233 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36234 it is not the root project. Put each directory to be
36235 extended between double quotes to prevent it to be expanded on Windows.
36236 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36237 the project file. Set them back to their initial values if they have not
36238 been set in the project file.
36240 * gprcmd.adb: (Gprdebug, Debug): New global variables
36241 (Display_Command): New procedure
36242 (Usage): Document new command "linkopts"
36243 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36244 Implement new command "linkopts"
36245 Remove quotes that may be around arguments for "extend"
36246 Always call Normalize_Pathname with arguments formatted for the platform
36248 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36249 Change @echo to @$(display) in target clean to be able to clean silently
36251 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36253 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36256 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36257 = Extending_All when current project is an extending all project.
36259 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36260 set to True only for LINK command, after Unix switch -o.
36261 (Process_Arguments): Set Output_File_Expected to True for LINK command
36262 after Unix switch -o. When Output_File_Expected is True, never add an
36263 extension to a file name.
36265 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36266 option file name, only to the --for-linker= switch.
36267 (Option_File_Name): If option file name do not end with ".opt", append
36270 2004-02-18 GNAT Script <nobody@gnat.com>
36272 * Make-lang.in: Makefile automatically updated
36274 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36276 * Make-lang.in (stamp-sdefault): Do not depend on
36279 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36281 * config-lang.in: Disable Ada by default until probe logic for
36282 a bootstrap Ada compiler can be moved to the top level configure
36285 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36287 * decl.c (components_to_record): Don't claim that the internal fields
36288 we make to hold the variant parts are semantically addressable, because
36291 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36292 adjust the comment describing the modular type form when we can use it.
36293 (Install_PAT): Account for the Esiz renaming.
36295 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36296 sc_onstack context indication before raising the exception to which
36297 the signal is mapped. Allows better handling of later signals possibly
36298 triggered by the resumed user code if the exception is handled.
36300 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36302 * 5zinit.adb: Removed, no longer used.
36304 2004-02-12 Robert Dewar <dewar@gnat.com>
36306 * ali.adb: Remove separating space between parameters on R line. Makes
36307 format consistent with format used by the binder for Set_Globals call.
36309 * atree.ads, atree.adb: Minor reformatting (new function header format)
36311 * bindgen.adb: Add Run-Time Globals documentation section containing
36312 detailed documentation of the globals passed from the binder file to
36315 * gnatls.adb: Minor reformatting
36317 * init.c (__gnat_set_globals): Add note pointing to documentation in
36320 * lib-writ.ads, lib-writ.adb: Remove separating space between
36321 parameters on R line.
36322 Makes format consistent with format used by the binder for Set_Globals
36325 * osint.ads: Add 2004 to copyright notice
36328 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36329 Noticed during code reading, documentation issue only
36331 * usage.adb: Remove junk line for obsolete C switch
36332 Noticed during code reading
36334 2004-02-12 Vincent Celier <celier@gnat.com>
36336 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36337 extend for each directory, so that multiple /** directories are
36338 extended individually.
36339 (Recursive_Process): Set the default for LANGUAGES to ada
36341 * gprcmd.adb: Define new command "ignore", to do nothing.
36342 Implement new comment "path".
36344 * Makefile.generic: Suppress output when SILENT is set
36345 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36346 used, so that the correct compiler is invoked.
36347 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36348 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36350 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36352 * Makefile.in: Clean ups and remove obsolete targets.
36354 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36356 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36357 predicate declared in exp_util.
36359 * exp_util.adb: Add comments.
36361 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36362 visibility before compiling context of the subunit.
36364 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36365 value but the name is a procedure, do not attempt to analyze as a call,
36366 in order to obtain more telling diagnostics.
36368 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36369 'Access on parameterless function calls.
36370 (Normalize_Actuals): For a parameterless function call with missing
36371 actuals, defer diagnostic until resolution of enclosing call.
36373 * sem_util.adb (Wrong_Type): If the context type is an access to
36374 subprogram and the expression is a procedure name, suggest a missing
36377 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36378 Nathanael Nerode <neroden@gcc.gnu.org>
36382 Merge with libada-branch:
36383 * config-lang.in: Build libada only when ada is built.
36385 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36387 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36388 for a tagged type, verify that both formals have the same type.
36390 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36391 temporary when the formal is an in-parameter and the actual a possibly
36394 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36395 when expansion is disabled, to ensure proper name capture with
36396 overloaded literals. Condition can be of any boolean type, resolve
36399 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36400 renaming is for a formal subprogram with a default operator name, and
36401 there is a usable operator that is visible at the point of
36404 2004-02-09 Robert Dewar <dewar@gnat.com>
36406 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36407 rewrite to ignore errors in ali files, intended to allow tools downward
36408 compatibility with new versions of ali files.
36410 * ali.ads: Add new parameter Ignore_Errors
36412 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36413 duplicating the error message giving the file with restrictions.
36415 * debug.adb: Add debug flag I for gnatbind
36417 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36418 operators for the case where the operator is a defining operator.
36420 * exp_ch3.adb: Minor reformatting (new function spec format).
36422 * exp_ch4.adb: Add comment for previous change, and make minor
36423 adjustment to loop to always check for improper loop termination.
36424 Minor reformatting throughout (new function spec format).
36426 * gnatbind.adb: Implement -di debug flag for gnatbind
36428 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36430 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36432 * lib-load.adb: Fix bad assertion.
36433 Found by testing and code reading.
36434 Minor reformatting.
36436 * lib-load.ads: Minor reformatting.
36438 * lib-writ.adb: There is only one R line now.
36440 * lib-writ.ads: Add documentation on making downward compatible changes
36441 to ali files so old tools work with new ali files.
36442 There is only one R line now.
36443 Add documentation on format incompatibilities (with special GPS note)
36445 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36447 * par-load.adb: Minor reformatting
36449 * sem_ch8.adb: Fix to error message from last update
36450 Minor reformatting and restructuring of code from last update
36452 * par-prag.adb, snames.adb, snames.ads, snames.h,
36453 sem_prag.adb: Implement pragma Profile.
36455 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36458 * usage.adb: Add line for -gnatyN switch
36460 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36462 2004-02-09 Albert Lee <lee@gnat.com>
36464 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36466 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36468 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36471 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36472 is nested in an instance that is not frozen yet, to avoid
36473 order-of-elaboration problems in gigi.
36475 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36476 body the attribute is legal.
36478 2004-02-09 Robert Dewar <dewar@gnat.com>
36480 * s-rident.ads: Minor comment correction
36482 * targparm.adb: Remove dependence on uintp completely. There was
36483 always a bug in Make in that it called Targparm before initializing
36484 the Uint package. The old code appeared to get away with this, but
36485 the new code did not! This caused an assertion error in gnatmake.
36487 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36488 are indeed fully supported.
36490 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36492 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36494 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36496 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36497 with targetm.calls.promote_prototypes.
36499 2004-02-04 Robert Dewar <dewar@gnat.com>
36501 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36502 ali.ads, gprcmd.adb: Minor reformatting
36504 * bindgen.adb: Output restrictions string for new style restrictions
36507 * impunit.adb: Add s-rident.ads (System.Rident) and
36508 s-restri (System.Restrictions)
36510 * lib-writ.adb: Fix bug in writing restrictions string (last few
36513 * s-restri.ads, s-restri.adb: Change name Restrictions to
36514 Run_Time_Restrictions to avoid conflict with package name.
36515 Add circuit to read and acquire run time restrictions.
36517 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36519 * restrict.ads, restrict.adb: Use the new restriction
36520 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36522 * sem_prag.adb: No_Task_Attributes is a synonym of
36523 No_Task_Attributes_Package.
36525 * snames.ads, snames.adb: New entry for proper handling of
36526 No_Task_Attributes.
36528 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36529 (AI-00249) that supersedes the GNAT specific restriction
36530 No_Task_Attributes.
36532 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36535 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36536 body, an identifier may be wrapped in an unchecked conversion.
36538 2004-02-04 Vincent Celier <celier@gnat.com>
36540 * lib-writ.ads: Comment update for the W lines
36542 * bld.adb: (Expression): An empty string list is static
36544 * fname-uf.adb: Minor comment update
36546 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36548 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36549 restrictions on the target.
36551 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36553 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36556 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36558 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36560 2004-02-02 Vincent Celier <celier@gnat.com>
36562 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36563 comment before the usage.
36564 Gprcmd: Fail when command is not recognized.
36565 (Usage): Document command "prefix"
36567 * g-md5.adb (Digest): Process last block.
36568 (Update): Do not process last block. Store remaining characters and
36571 * g-md5.ads (Update): Document that several call to update are
36572 equivalent to one call with the concatenated string.
36573 (Context): Add fields to allow new Update behaviour.
36575 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36576 defaulted to False.
36577 When May_Fail is True and no existing file can be found, return No_File.
36579 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36582 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36583 spec file name instead on the W line.
36585 2004-02-02 Robert Dewar <dewar@gnat.com>
36587 * ali.adb: Read and acquire info from new format restrictions lines
36589 * bcheck.adb: Add circuits for checking restrictions with parameters
36591 * bindgen.adb: Output dummy restrictions data
36592 To be changed later
36594 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36595 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36596 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36597 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36598 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36600 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36601 the warning message on access to possibly uninitialized variable S)
36602 Minor changes for new restrictions handling.
36604 * gnatbind.adb: Minor reformatting
36605 Minor changes for new restrictions handling
36606 Move circuit for -r processing here from bcheck (cleaner)
36608 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36610 * lib-writ.adb: Output new format restrictions lines
36612 * lib-writ.ads: Document new R format lines for new restrictions
36615 * s-restri.ads/adb: New files
36617 * Makefile.rtl: Add entry for s-restri.ads/adb
36619 * par-ch3.adb: Fix bad error messages starting with upper case letter
36622 * restrict.adb: Major rewrite throughout for new restrictions handling
36623 Major point is to handle restrictions with parameters
36625 * restrict.ads: Major changes in interface to handle restrictions with
36626 parameters. Also generally simplifies setting of restrictions.
36628 * snames.ads/adb: New entry for proper handling of No_Requeue
36630 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36631 restriction counting.
36632 Other minor changes for new restrictions handling
36634 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36635 Restriction_Warnings now allows full parameter notation
36636 Major rewrite of Restrictions for new restrictions handling
36638 2004-02-02 Javier Miranda <miranda@gnat.com>
36640 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36641 syntax rule for object renaming declarations.
36642 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36643 component definitions.
36645 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36647 (Array_Type_Declaration): Give support to access components. In addition
36648 it was also modified to reflect the name of the object in anonymous
36649 array types. The old code did not take into account that it is possible
36650 to have an unconstrained anonymous array with an initial value.
36651 (Check_Or_Process_Discriminants): Allow access discriminant in
36653 (Process_Discriminants): Allow access discriminant in non-limited types
36654 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36655 node. Change Ada0Y to Ada 0Y in comments
36657 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36658 equality operators.
36659 Change Ada0Y to Ada 0Y in comments
36661 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36662 renamings Change Ada0Y to Ada 0Y in comments
36664 * sem_type.adb (Find_Unique_Type): Give support to the equality
36665 operators for universal access types
36666 Change Ada0Y to Ada 0Y in comments
36668 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36670 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36672 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36673 Change Ada0Y to Ada 0Y in comments
36675 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36676 component definition and object renaming nodes
36677 Change Ada0Y to Ada 0Y in comments
36679 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36681 * restrict.adb: Use the new restriction identifier
36682 No_Requeue_Statements instead of the old No_Requeue for defining the
36683 restricted profile.
36685 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36686 No_Requeue_Statements.
36688 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36689 that supersedes the GNAT specific restriction No_Requeue. The later is
36690 kept for backward compatibility.
36692 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36694 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36695 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36696 pragma and fix incorrect ones.
36698 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36699 warning if the pragma is redundant.
36701 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36703 * 5staprop.adb: Add missing 'constant' keywords.
36705 * Makefile.in: use consistent value for SYMLIB on
36706 platforms where libaddr2line is supported.
36708 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36710 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36713 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36715 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36716 handlers in the environment thread. This allows proper propagation of
36717 an exception on stack overflows in this thread even when the builtin
36718 ABI stack-checking scheme is used without support for a stack reserve
36721 * utils.c (create_field_decl): Augment the head comment about bitfield
36722 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36723 here, because the former is not accurate enough at this point.
36724 Let finish_record_type decide instead.
36725 Don't make a bitfield if the field is to be addressable.
36726 Always set a size for the field if the record is packed, to ensure the
36727 checks for bitfield creation are triggered.
36728 (finish_record_type): During last pass over the fields, clear
36729 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36730 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36731 from DECL_BIT_FIELD.
36733 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36735 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36736 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36737 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36739 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36741 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36743 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36744 (ZCX_By_Default): Likewise.
36745 (Front_End_ZCX_Support): Likewise.
36747 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36748 (Initialize_Lock): Mark Level unreferenced.
36749 (Sleep): Mark Reason unreferenced.
36750 (Timed_Sleep): Likewise.
36751 (Wakeup): Likewise.
36752 (Exit_Task): Use Result.
36753 (Check_No_Locks): Mark Self_ID unreferenced.
36755 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36756 (Bound_Thread_Attributes): Make Sproc constant.
36757 (New_Bound_Thread_Attributes): Likewise.
36759 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36761 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36762 one-dimensional array an slice assignments, when component type is
36765 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36766 component type is controlled, and control_actions are in effect, use
36767 TSS procedure rather than generating inline code.
36769 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36770 arrays with controlled components.
36772 2004-01-26 Vincent Celier <celier@gnat.com>
36774 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36775 command line for the non VMS case.
36777 * gnatlink.adb (Process_Binder_File): When building object file, if
36778 GNU linker is used, put all object paths between quotes, to prevent ld
36779 error when there are unusual characters (such as '!') in the paths.
36781 * Makefile.generic: When there are sources in Ada and the main is in
36782 C/C++, invoke gnatmake with -B, instead of -z.
36784 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36785 from VMS_Conversion.
36786 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36787 specification of argument file on the command line.
36789 2004-01-26 Bernard Banner <banner@gnat.com>
36791 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36793 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36795 * snames.adb: Update copyright notice.
36796 Add info on slice assignment for controlled arrays.
36798 2004-01-23 Robert Dewar <dewar@gnat.com>
36800 * exp_aggr.adb: Minor reformatting
36802 * exp_ch9.adb: Minor code clean up
36804 Fix bad character in comment
36807 * targparm.adb (Get_Target_Parameters): Give clean abort error on
36808 unexpected end of file, along with more detailed message.
36810 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36812 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36815 * decl.c (copy_alias_set): New function.
36816 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36818 2004-01-23 Doug Rupp <rupp@gnat.com>
36820 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36821 lib$${file} in case subsequent character is not a separator.
36823 2004-01-23 Vincent Celier <celier@gnat.com>
36825 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36826 when the GCC version is at least 3.
36828 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36829 Remove all "Opt.", to prepare for opt split
36831 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36832 Extends_All. Set to True when the project parsed is an extending all
36833 project. Fails for importing an extending all project only when the
36834 imported project is an extending all project.
36835 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36836 depending on the value of Extends_All returned.
36838 * prj-proc.adb (Process): Check that no project shares its object
36839 directory with a project that extends it, directly or indirectly,
36840 including a virtual project.
36841 Check that no project extended by another project shares its object
36842 directory with another also extended project.
36844 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36845 Kind = N_With_Clause
36847 * prj-tree.ads: Minor reformatting
36848 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36850 2004-01-23 Ed Schonberg <schonberg@gnat.com>
36852 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36853 applies to a type with an incomplete view, use full view in Name of
36854 clause, for consistency with uses of Get_Attribute_Definition_Clause.
36856 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
36858 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36859 SCHED_RR, since other values are not supported by this policy.
36860 (Initialize): Move initialization of mutex attribute to package
36861 elaboration, to prevent early access to this variable.
36863 * Makefile.in: Remove mention of Makefile.adalib, unused.
36865 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36866 1ssecsta.ads: Removed, unused.
36868 2004-01-21 Javier Miranda <miranda@gnat.com>
36870 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36871 entity if already built in the current scope.
36873 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36874 reminder in internal scopes. Required for nested limited aggregates.
36876 2004-01-21 Doug Rupp <rupp@gnat.com>
36878 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36879 VMS. Replace all occurences of libgnat- and libgnarl- with
36880 libgnat$(hyphen) and libgnarl$(hyphen).
36881 Fixed shared library build problem on VMS.
36883 2004-01-21 Robert Dewar <dewar@gnat.com>
36885 * mlib-prj.adb: Minor reformatting
36887 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
36889 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36890 'constant' keywords for declaration of pointers that are not modified.
36892 * exp_pakd.adb: Fix English in comment.
36894 2004-01-21 Ed Schonberg <schonberg@gnat.com>
36897 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36898 copy all attributes of the parent, including the foreign language
36901 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
36904 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36905 for 'delay until' statement.
36907 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
36909 * Make-lang.in: Replace $(docdir) with doc.
36910 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36911 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36912 to use consistent MAKEINFO rule.
36913 (ada.man, ada.srcman): Dummy entry.
36914 (ADA_INFOFILES): Define.
36915 (ada.info, ada.srcinfo): New rules.
36917 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
36919 * utils.c: Update copyright notice, missed in previous change.
36921 2004-01-19 Vincent Celier <celier@gnat.com>
36923 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36924 args if Bind is True. Set First_ALI, if not already done.
36925 (Build_Library): For Stand Alone Libraries, extract from one ALI file
36926 an eventual --RTS switch, for gnatbind, and all backend switches +
36927 --RTS, for linking.
36929 2004-01-19 Robert Dewar <dewar@gnat.com>
36931 * sem_attr.adb, memtrack.adb: Minor reformatting
36933 2004-01-19 Ed Schonberg <schonberg@gnat.com>
36935 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36936 that rename enumeration literals. This is properly done in sem_eval.
36938 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36939 to functions that rename enumeration literals.
36941 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36942 functions that rename enumeration literals.
36944 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
36946 * Make-lang.in (utils.o): Depend on target.h.
36947 * utils.c: Include target.h.
36948 (process_attributes): Use targetm.have_named_sections instead
36949 of ASM_OUTPUT_SECTION_NAME.
36951 2004-01-16 Andreas Jaeger <aj@suse.de>
36953 * Makefile.in: Add $(DESTDIR).
36955 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
36957 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36958 also when not defining if a Size clause applies. That information is
36961 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
36963 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36964 symbolic links for the shared gnat run time when needed.
36966 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
36968 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36969 for writing, and terminate with an error message if not.
36971 2004-01-15 Ed Schonberg <schonberg@gnat.com>
36973 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36974 warning on an access to subprogram in an instance, when the target
36975 type is declared in the same generic unit.
36976 (Eval_Attribute): If 'access is known to fail accessibility check,
36977 rewrite as a raise statement.
36979 2004-01-15 GNAT Script <nobody@gnat.com>
36981 * Make-lang.in: Makefile automatically updated
36983 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
36985 * Make-lang.in (ada.srcextra): Dummy entry.
36987 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
36989 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36991 2004-01-13 Ed Schonberg <schonberg@gnat.com>
36993 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36994 components that are initialized with aggregates.
36996 2004-01-13 Vincent Celier <celier@gnat.com>
36998 * gnatlink.adb (Process_Binder_File): To find directory of shared
36999 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37000 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37002 * make.adb (Gnatmake): If GCC version is at least 3, link with
37003 -shared-libgcc, when there is at least one shared library project.
37005 * opt.ads (GCC_Version): New integer constant.
37007 * adaint.c (get_gcc_version): New function.
37009 2004-01-13 Robert Dewar <dewar@gnat.com>
37011 * sem_dist.adb, sem_res.adb, sem_util.adb,
37012 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37013 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37015 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37017 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37018 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37021 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37023 * misc.c: Remove trailing spaces.
37024 Update copyright notice missed in previous change.
37027 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37030 * Makefile.generic: Update copyright.
37031 Add license notice.
37033 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37034 of prefix/share/make.
37036 * Makefile.prolog: Update copyright.
37037 Add license notice.
37039 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37041 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37042 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37043 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37046 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37049 2004-01-12 Javier Miranda <miranda@gnat.com>
37051 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37052 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37053 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37054 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37055 Component_Definition node.
37057 2004-01-12 Ed Falis <falis@gnat.com>
37059 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37061 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37063 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37065 2004-01-12 Bernard Banner <banner@gnat.com>
37067 * Makefile.in: map 86numaux to a-numaux for x86_64
37069 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37071 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37072 generated to rename a generic actual, go to the actual itself, the
37073 subtype is not a user-visible entity.
37075 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37076 part is a private subtype, reset the visibility of its full view, if
37077 any, to be consistent.
37080 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37081 to use a generic package G as a formal package for another generic
37084 2004-01-12 Robert Dewar <dewar@gnat.com>
37086 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37088 * usage.adb: Remove mention of obsolete -gnatwb switch
37089 Noticed during code reading
37091 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37093 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37095 2004-01-12 GNAT Script <nobody@gnat.com>
37097 * Make-lang.in: Makefile automatically updated
37099 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37101 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37103 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37105 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37107 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37109 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37110 Update comment and copyright date.
37111 * stamp-xgnatug: Delete.
37113 2004-01-05 Robert Dewar <dewar@gnat.com>
37115 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37116 be modified by the binder generated main program if the -D switch is
37119 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37120 imported functions (since now we expect this to be done for imported
37123 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37124 Minor reformatting throughout
37126 * 5zinit.adb: Minor reformatting
37127 Add 2004 to copyright date
37128 Minor changes to avoid -gnatwa warnings
37129 Correct some instances of using OR instead of OR ELSE (noted while
37130 doing reformatting)
37132 * sprint.adb: Minor updates to avoid -gnatwa warnings
37134 * s-secsta.ads, s-secsta.adb:
37135 (SS_Get_Max): New function to obtain high water mark for ss stack
37136 Default_Secondary_Stack is not a constant since it may be modified by
37137 the binder generated main program if the -D switch is used.
37139 * switch-b.adb: New -Dnnn switch for binder
37142 Make -gnatg imply all warnings currently in -gnatwa
37144 * vms_conv.adb: Minor reformatting
37145 Add 2004 to copyright notice
37146 Add 2004 to printed copyright notice
37148 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37149 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37150 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37151 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37152 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37153 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37154 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37155 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37156 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37157 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37158 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37159 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37160 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37161 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37162 checks.adb, clean.adb, cstand.adb, einfo.ads,
37163 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37164 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37165 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37166 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37167 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37168 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37169 Minor reformatting and code clean ups.
37170 Minor changes to prevent -gnatwa warnings
37172 * ali.adb: Minor reformatting and cleanup of code
37173 Acquire new SS indication of secondary stack use from ali files
37175 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37176 (since now we expect this to be done for imported functions)
37178 * bindgen.adb: Generate call to modify default secondary stack size if
37181 * bindusg.adb: Add line for new -D switch
37183 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37184 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37185 Add circuitry for both records and arrays to avoid gigi
37186 processing if the type involved has non-bit-aligned components
37188 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37189 N_String_Literal node always references an E_String_Literal_Subtype
37190 entity. This may not be true in the future.
37191 (Possible_Bit_Aligned_Component): Move processing of
37192 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37194 * exp_ch6.adb (Expand_Thread_Body): Pick up
37195 Default_Secondary_Stack_Size as variable so that we get value modified
37196 by possible -Dnnn binder parameter.
37198 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37199 (Type_May_Have_Bit_Aligned_Components): New function.
37201 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37202 (Type_May_Have_Bit_Aligned_Components): New function.
37204 * fe.h: (Set_Identifier_Casing): Fix prototype.
37205 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37206 Minor reformatting.
37208 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37209 importing constant atomic/volatile objects.
37210 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37211 unless explicit Pure_Function pragma given, to avoid insidious bug of
37212 call to non-pure imported function getting eliminated.
37214 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37215 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37216 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37217 Add 2004 to printed copyright notice
37219 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37222 * Makefile.rtl: Add entry for g-sestin.o
37223 g-sestin.ads: New file.
37225 * mdll.adb: Minor changes to avoid -gnatwa warnings
37227 * mlib-tgt.adb: Minor reformatting
37229 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37230 New switch Sec_Stack_Used (GNAT, GNATBIND)
37231 Make Default_Secondary_Stack_Size a variable instead of a constant,
37232 so that it can be modified by the new -Dnnn bind switch.
37234 * rtsfind.adb (Load_Fail): Give full error message in configurable
37235 run-time mode if all_errors mode is set. This was not done in the case
37236 of a file not found, which was an oversight.
37237 Note if secondary stack unit is used by compiler.
37239 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37240 ineffective elaborate all pragmas on non-visible packages (this
37241 happened when a renamed subprogram was called). Now the elaborate all
37242 always goes on the package containing the renaming rather than the one
37243 containing the renamed subprogram.
37245 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37246 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37248 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37249 has an Etype that references an E_String_Literal.
37250 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37251 always references an E_String_Literal_Subtype entity. This may not
37252 be true in the future.
37254 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37257 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37260 2004-01-05 Ed Falis <falis@gnat.com>
37262 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37265 2004-01-05 Vincent Celier <celier@gnat.com>
37267 * bld.adb: Minor comment updates
37268 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37271 * make.adb (Gnatmake): Special process for files to compile/check when
37272 -B is specified. Fail when there are only foreign mains in attribute
37273 Main of the project file and -B is not specified. Do not skip bind/link
37274 steps when -B is specified.
37276 * makeusg.adb: Document new switch -B
37278 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37280 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37282 * vms_data.ads: Add new GNAT PRETTY qualifier
37283 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37285 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37287 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37290 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37291 Set_Identifier_Casing.
37293 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37294 has size that overflows.
37296 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37298 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37299 -gnatwa warning on static condition.
37301 2004-01-05 Doug Rupp <rupp@gnat.com>
37303 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37305 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37307 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37308 all attributes, including read-only attribute.
37310 2004-01-05 Pascal Obry <obry@gnat.com>
37312 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37313 library naming scheme.
37315 * mlib-prj.adb (Build_Library): Generate different names for the static
37316 or dynamic version of the GNAT runtime. This is needed to support the
37317 new shared library naming scheme.
37318 (Process_Binder_File): Add detection of shared library in binder file
37319 based on the new naming scheme.
37321 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37322 scheme for the shared runtime libraries.
37325 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37327 (install-gnatlib): Do not create symlinks for shared libraries.
37328 (gnatlib-shared-default): Idem.
37329 (gnatlib-shared-dual-win32): New target. Not used for now as the
37330 auto-import feature does not support arrays/records.
37331 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37332 (gnatlib-shared-vms): Fix shared runtime libraries names.
37334 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37335 dependent runtime shared library name.
37337 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37339 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37342 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37344 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37345 protected objects when allocator has a subtype indication, not a
37346 qualified expression. Note that qualified expressions may have to be
37347 checked when limited aggregates are implemented.
37349 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37350 pure, emit warning.
37351 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37352 subprogram is imported, remove warning.
37354 2004-01-05 Geert Bosch <bosch@gnat.com>
37356 * s-poosiz.adb: Update copyright notice.
37357 (Allocate): Use Task_Lock to protect against concurrent access.
37358 (Deallocate): Likewise.
37360 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37362 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37365 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37367 * gnat_ug.texi: Force a CVS commit by updating copyright.
37368 * gnat_ug_vxw.texi: Regenerate.
37369 * gnat_ug_wnt.texi: Regenerate.
37370 * gnat_ug_vms.texi: Regenerate.
37371 * gnat_ug_unx.texi: Regenerate.
37373 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37375 * trans.c: Remove uses of "register" specifier in
37376 declarations of local variables.
37378 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37380 * stamp-xgnatug: New stamp file.
37381 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37382 (ada/doctools/xgnatug): Add $(build_exeext).
37383 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37384 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37386 2003-12-17 Ed Falis <falis@gnat.com>
37388 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37391 * a-exextr.adb: Add context clause for
37392 Ada.Exceptions.Last_Chance_Handler.
37394 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37396 * cstand.adb (Create_Standard): Change the way how the declaration of
37397 the Duration type is created (making it the same way as it is for all
37398 the other standard types).
37400 2003-12-17 Robert Dewar <dewar@gnat.com>
37402 * s-crtl.ads: Fix header format
37403 Change Pure to Preelaborate
37405 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37407 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37408 the expression type only if it is declared in the current unit.
37410 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37411 are universal and already analyzed, as can occur in constrained
37412 subcomponents that depend on discriminants, when one constraint is a
37415 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37416 type Any_Fixed is legal as the argument of a conversion, if only one
37417 fixed-point type is in context.
37419 2003-12-17 GNAT Script <nobody@gnat.com>
37421 * Make-lang.in: Makefile automatically updated
37423 2003-12-15 Robert Dewar <dewar@gnat.com>
37425 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37428 2003-12-15 Vincent Celier <celier@gnat.com>
37430 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37431 (Gnatchop): Do not set failure status when reporting the number of
37434 2003-12-15 Doug Rupp <rupp@gnat.com>
37436 * s-ctrl.ads: New file.
37438 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37440 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37441 (GNATBIND_OBJS): Add ada/s-crtl.o.
37443 * Makefile.in [VMS]: Clean up ifeq rules.
37445 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37446 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37447 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37448 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37449 s-tasdeb.adb: Update copyright.
37450 Import System.CRTL.
37451 Make minor modifications to use System.CRTL declared functions instead
37452 of importing locally.
37454 2003-12-15 GNAT Script <nobody@gnat.com>
37456 * Make-lang.in: Makefile automatically updated
37458 2003-12-11 Ed Falis <falis@gnat.com>
37460 * 5zinit.adb: Clean up.
37462 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37463 to __gnat_map_signal, imported from init.c to support
37464 signal -> exception mappings that depend on the vxWorks version.
37467 Created and exported __gnat_map_signal to support signal -> exception
37468 mapping that is dependent on the VxWorks version.
37469 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37471 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37473 * 5wosinte.ads: Link with -mthreads switch.
37475 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37477 * init.c (__gnat_install_handler [NetBSD]): Set
37478 __gnat_handler_installed, as done on all other platforms.
37479 Remove duplicated code.
37481 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37483 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37485 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37487 * sinfo.ads: Fix inconsistent example code in comment.
37489 2003-12-11 Robert Dewar <dewar@gnat.com>
37491 * a-tiinau.adb: Add a couple of comments
37493 * sem_ch3.adb: Minor reformatting
37496 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37497 Minor reformatting throughout
37499 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37501 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37502 bounds of a loop, create a separate block in order to generate proper
37503 cleanup actions to prevent memory leaks.
37505 * sem_res.adb (Resolve_Call): After a call to
37506 Establish_Transient_Scope, the call may be rewritten and relocated, in
37507 which case no further processing is needed.
37509 * sem_util.adb: (Wrong_Type): Refine previous fix.
37510 Fixes ACATS regressions.
37513 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37516 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37518 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37519 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37522 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37525 2003-12-08 Robert Dewar <dewar@gnat.com>
37527 * 7sintman.adb: Minor reformatting
37529 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37530 standard linker options to get standard libraries linked. We now plan
37531 to provide dummy versions of these libraries to match the appropriate
37532 configurable run-time (e.g. if a library is not needed at all, provide
37533 a dummy empty library).
37535 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37536 options (-L parameters and standard libraries). What we plan to do is
37537 to provide dummy libraries where the libraries are not required.
37539 * gnatbind.adb: Minor comment improvement
37541 2003-12-08 Javier Miranda <miranda@gnat.com>
37543 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37544 aggregate in the parent. Otherwise constants with limited aggregates
37545 are not supported. Add new formal to pass the component type (Ctype).
37546 It is required to call the corresponding IP subprogram in case of
37547 default initialized components.
37548 (Gen_Assign): In case of default-initialized component, generate a
37549 call to the IP subprogram associated with the component.
37550 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37551 of aggregate with default initialized components.
37552 (Has_Default_Init_Comps): Improve implementation to recursively check
37553 all the present expressions.
37555 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37556 to indicate that the initialization call corresponds to a
37557 default-initialized component of an aggregate.
37558 In case of default initialized aggregate with tasks this parameter is
37559 used to generate a null string (this is just a workaround that must be
37560 improved later). In case of discriminants, this parameter is used to
37561 generate a selected component node that gives access to the discriminant
37564 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37565 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37566 allocated aggregates with default-initialized components.
37568 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37569 the box notation is used in positional aggregates.
37571 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37573 * lib.ads: Fix typo in comment
37575 2003-12-08 Vincent Celier <celier@gnat.com>
37577 * prj.adb (Project_Empty): New component Unkept_Comments
37578 (Scan): Remove procedure; moved to Prj.Err.
37580 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37581 (Scan): Remove procedure; moved to Prj.Err.
37583 * prj-dect.adb: Manage comments for the different declarations.
37585 * prj-part.adb (With_Record): New component Node
37586 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37587 Set the scanner to return ends of line and comments as tokens, if
37588 Store_Comments is True.
37589 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37590 comments are associated with these nodes. Store the node IDs in the
37592 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37594 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37595 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37596 current project. Call Tree.Restore afterwards. Set the various nodes
37597 for comment storage (Next_End, End_Of_Line, Previous_Line,
37600 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37601 defaulted to False.
37603 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37604 to False. When Truncated is True, truncate the string, never go to the
37606 (Write_End_Of_Line_Comment): New procedure
37607 (Print): Process comments for nodes N_With_Clause,
37608 N_Package_Declaration, N_String_Type_Declaration,
37609 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37610 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37611 Process nodes N_Comment.
37613 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37614 without comments and there are some comments, set the flag
37615 Unkept_Comments to True.
37616 (Scan): If there are comments, set the flag Unkept_Comments to True and
37617 clear the comments.
37618 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37619 (Next_End_Nodes: New table
37620 (Comment_Zones_Of): New function
37621 (Scan): New procedure; moved from Prj. Accumulate comments in the
37622 Comments table and set end of line comments, comments after, after end
37624 (Add_Comments): New procedure
37625 (Save, Restore, Seset_State): New procedures
37626 (There_Are_Unkept_Comments): New function
37627 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37628 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37630 (First_Comment_After, First_Comment_After_End): New functions
37631 (First_Comment_Before, First_Comment_Before_End): New functions
37632 (Next_Comment): New function
37633 (End_Of_Line_Comment, Follows_Empty_Line,
37634 Is_Followed_By_Empty_Line): New functions
37635 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37636 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37637 (Set_Next_Comment): New procedure
37638 (Default_Project_Node): Associate comment before if the node can store
37641 * scans.ads (Token_Type): New enumeration value Tok_Comment
37642 (Comment_Id): New global variable
37644 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37645 defaulted to False.
37646 (Scan): Store position of start of comment. If comments are tokens, set
37647 Comment_Id and set Token to Tok_Comment when scanning a comment.
37648 (Set_Comment_As_Token): New procedure
37650 * sinput-p.adb: Update Copyright notice
37651 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37652 that no longer exists.
37654 2003-12-08 Javier Miranda <miranda@gnat.com>
37656 * sem_aggr.adb: Add dependence on Exp_Tss package
37657 Correct typo in comment
37658 (Resolve_Aggregate): In case of array aggregates set the estimated
37659 type of the aggregate before calling resolve. This is needed to know
37660 the name of the corresponding IP in case of limited array aggregates.
37661 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37662 in case of default initialized array components.
37664 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37665 types. Required to give support to limited aggregates in generic
37668 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37670 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37671 inlined body functions like an instantiation.
37672 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37673 until bounds are analyzed, to diagnose premature use of type.
37675 * sem_util.adb (Wrong_Type): Improve error message when the type of
37676 the expression is used prematurely.
37678 2003-12-08 GNAT Script <nobody@gnat.com>
37680 * Make-lang.in: Makefile automatically updated
37682 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37684 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37685 they are automatically generated by Make-lang.in and cause nothing but
37686 maintenance troubles.
37688 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37690 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37691 version of this unit).
37693 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37695 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37696 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37697 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37698 the body of System.Interrupt_Management common to several targets.
37699 Update copyright notice when appropriate.
37701 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37704 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37705 to ensure that the kernel fills in the interrupted context structure
37706 before calling a signal handler, which is necessary to be able to
37707 unwind past it. Update the copyright notice.
37709 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37711 * a-elchha.ads: New file.
37713 * a-elchha.adb: New default last chance handler. Contents taken from
37714 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37716 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37717 is moved to a-elchha.adb to provide a target-independent default last
37720 * Makefile.rtl: Add a-elchha.o
37722 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37724 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37726 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37727 declared in an instance, do not inline the call if the instance is not
37728 frozen yet, to prevent order of elaboration problems.
37730 * sem_prag.adb: Add comments for previous fix.
37732 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37734 * g-table.adb: Use the right variable in Set_Item.
37735 Update copyright notice.
37737 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37739 * Makefile.in: Remove unused rules.
37741 2003-12-05 Vincent Celier <celier@gnat.com>
37743 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37744 -nostdlib. Not needed here after all.
37746 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37749 * adaint.h, adaint.c, g-os_lib.ads:
37750 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37751 on some platforms (including FreeBSD), it is a 64 bit value.
37752 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37754 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37756 * gnatvsn.ads (Library_Version): Now contain only the relevant
37758 (Verbose_Library_Version): New constant.
37760 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37761 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37762 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37764 * gnatlbr.adb: Clean up: replace Library_Version by
37765 Verbose_Library_Version.
37767 * make.adb, lib-writ.adb, exp_attr.adb:
37768 Clean up: replace Library_Version by Verbose_Library_Version.
37770 * 5lintman.adb: Removed.
37773 Update and simplify computation of LIBRARY_VERSION.
37774 Fix computation of GSMATCH_VERSION.
37775 5lintman.adb is no longer used: replaced by 7sintman.adb.
37777 2003-12-03 Robert Dewar <dewar@gnat.com>
37780 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37781 name. Modified to consider small non-bit-packed arrays as troublesome
37782 and in need of component-by-component assigment expansion.
37784 2003-12-03 Vincent Celier <celier@gnat.com>
37786 * lang-specs.h: Process nostdlib as nostdinc
37788 * back_end.adb: Update Copyright notice
37789 (Scan_Compiler_Arguments): Process -nostdlib directly.
37791 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
37794 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37795 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37796 included in HIE_NONE_TARGET_PAIRS.
37798 2003-12-03 Ed Schonberg <schonberg@gnat.com>
37801 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37802 is legal in an instance, because legality is cheched in the template.
37805 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37806 appplied to an unchecked conversion of a formal parameter.
37809 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37812 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
37814 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37815 routines. The second one is new functionality to deal with backtracing
37816 through signal handlers.
37817 (unwind): Split into the two separate subroutines above.
37818 Update the documentation, and deal properly with sizeof (REG) different
37819 from sizeof (void*).
37821 2003-12-01 Nicolas Setton <setton@act-europe.fr>
37823 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37824 so that the debugger can reliably access the value of the parameter,
37825 and therefore is able to display the exception name when an exception
37826 breakpoint is reached.
37828 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
37830 * fmap.adb: Fix typo in warning message.
37832 * g-socket.ads, g-socket.adb: Make Free a visible instance of
37833 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37835 2003-12-01 Vincent Celier <celier@gnat.com>
37837 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37839 (Build_Library): Get the switches only if Default_Switches is declared
37842 2003-12-01 Ed Schonberg <schonberg@gnat.com>
37844 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37845 actuals that are indexed components, reanalyze actual to ensure that
37846 packed array references are properly expanded.
37848 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37849 attempted assignment to a discriminant.
37851 2003-12-01 Robert Dewar <dewar@gnat.com>
37853 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37856 * switch-c.adb: Minor reformatting of comments
37858 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37860 * Makefile.in: Clean ups.
37862 2003-12-01 GNAT Script <nobody@gnat.com>
37864 * Make-lang.in: Makefile automatically updated
37866 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37868 * 5wsystem.ads: Disable zero cost exception, not ready yet.
37870 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
37872 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37873 to force serialization.
37875 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
37877 * g-socket.ads, g-socket.adb:
37878 Clarify documentation of function Stream. Introduce a Free procedure
37879 to release the returned Stream once it becomes unused.
37881 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37883 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
37885 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37886 since NT 4 cannot handle timeout values that are too large,
37887 e.g. DWORD'Last - 1.
37889 2003-11-26 Ed Schonberg <schonberg@gnat.com>
37892 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37893 in procedure calls and whose expansion must be deferred.
37895 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37899 (Build_Derived_Array_Type): Create operator for unconstrained type
37900 if ancestor is unconstrained.
37902 2003-11-26 Vincent Celier <celier@gnat.com>
37904 * make.adb (Project_Object_Directory): New global variable
37905 (Change_To_Object_Directory): New procedure
37906 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37907 of Change_Dir directly. Do not change working directory to object
37908 directory of main project after each compilation.
37909 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37911 Change to object directory of main project before binding step.
37912 (Initialize): Initialize Project_Object_Directory to No_Project
37915 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37916 binding a Stand-Alone Library.
37918 * output.adb: Update Copyright notice
37919 (Write_Char): Output buffer when full
37921 2003-11-26 Robert Dewar <dewar@gnat.com>
37923 * sem_ch13.adb: (Check_Size): Reset size if size is too small
37926 (Check_Size): Fix documentation to include bit-packed array case
37928 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37930 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37932 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37934 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
37937 * utils.c (init_gigi_decls): Change name of built-in setjmp to
37938 __builtin_setjmp, since this is apparently needed by recent
37941 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37943 * adadecode.c: Only include ctype.h if not IN_GCC.
37944 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37946 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
37949 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37950 signals and interrupts.
37952 * 5zintman.ads: New File.
37954 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37955 add exception signals to the set of unmasked signals.
37958 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37959 between signals and interrupts.
37960 Add to Unblocked_Signal_Mask the set of signals that are in
37964 Adding a check to see whether the Interrupt_ID we want to unmask is in
37965 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37966 reason is that the index type of the Keep_Unmasked array is not always
37967 Interrupt_ID; it may be a subtype of Interrupt_ID.
37969 2003-11-24 Gary Dismukes <dismukes@gnat.com>
37972 (Remove_Side_Effects): Condition constantness of object created for a
37973 an unchecked type conversion on the constantness of the expression
37974 to ensure the correct value for 'Constrained when passing components
37975 of view-converted class-wide objects.
37977 2003-11-24 Robert Dewar <dewar@gnat.com>
37979 * par-load.adb (Load): Improve handling of misspelled and missing units
37980 Removes several cases of compilation abandoned messages
37982 * lib.adb: (Remove_Unit): New procedure
37984 * lib.ads: (Remove_Unit): New procedure
37986 * lib-load.adb: Minor reformatting
37988 2003-11-24 Vincent Celier <celier@gnat.com>
37991 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37992 (Marking_Label): Label to mark processed source files. Incremented for
37994 (Gnatmake): Increase Marking_Labet for each executable
37995 (Is_Marked): Compare against marking label
37996 (Mark): Mark with marking label
37998 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
38001 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38004 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38005 (rts-cert): build a single relocatable object for the run-time lib.
38008 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38011 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38014 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38016 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38017 can not use it as before (that is, as a variable) when dumping it into
38018 the tree file. Add a local variable to store the result of this
38019 function and to be used as the string to be written into the tree.
38021 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38024 * sinput.adb (Source_First, Source_Last): In case of
38025 Internal_Source_File, replace returning attributes of
38026 Internal_Source_Ptr (which is wrong) with returning attributes of
38029 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38032 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38033 used for implicit concatenation operators.
38037 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38038 task bodies that are in the scope of a Suppress pragma.
38039 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38041 * sinfo.ads, sinfo.adb:
38042 New flag No_Elaboration_Check on function/procedure calls, to properly
38043 suppress checks on calls in task bodies that are within a local suppress
38047 (Expand_Concatenate_Other): Use the proper integer type for the
38048 expression for the upper bound, to avoid universal_integer computations
38051 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38053 * .cvsignore: Delete.
38055 2003-11-21 Andreas Schwab <schwab@suse.de>
38057 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38059 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38061 * 5wsystem.ads: Enable zero cost exception.
38063 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38065 * 5ztiitho.adb: Remove an unreferenced variable.
38067 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38069 * adaint.c: For FreeBSD, use mkstemp.
38071 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38073 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38075 2003-11-21 Robert Dewar <dewar@gnat.com>
38077 * bld.adb: Remove useless USE of gnatvsn
38079 * gnatchop.adb: Minor reformatting
38080 Clean up version handling to be more consistent
38082 * gnatxref.adb: Minor reformatting
38084 * gprcmd.adb: Minor reformatting
38085 Fix output of copyright to be more consistent with other tools
38087 2003-11-21 Vincent Celier <celier@gnat.com>
38089 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38091 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38093 * atree.adb (Initialize): Add initializations for global variables
38094 used in New_Copy_Tree.
38096 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38097 Internal_Source_File as the actual).
38098 Put the set of statements creating Any_Character before the set of
38099 statements creating Any_Array to have Any_Character fully initialized
38100 when it is used in creating Any_Array.
38102 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38103 not call Scan in case if the actual is Internal_Source_File
38104 Add 2003 to copyright note.
38106 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38107 processing Internal_Source_File.
38109 * types.ads: Add the constant Internal_Source_File representing the
38110 source buffer for artificial source-code-like strings created within
38111 the compiler (the definition of Source_File_Index is changed).
38113 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38115 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38116 56system.ads: New file, FreeBSD version.
38118 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38120 * Make-lang.in (ada.extraclean): Delete.
38122 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38124 * gnatmem.adb: Clean up verbose output.
38126 * gprcmd.adb: Change copyright to FSF.
38128 2003-11-19 Vincent Celier <celier@gnat.com>
38130 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38131 and Version (ignored).
38133 * symbols.ads: (Policy): New type
38134 (Initialize): New parameter Reference, Symbol_Policy and
38136 Remove parameter Force.
38137 Minor reformatting.
38139 * snames.ads, snames.adbadb: New standard names
38140 Library_Reference_Symbol_File and Library_Symbol_Policy
38143 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38147 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38149 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38151 * prj.adb: (Project_Empty): New component Symbol_Data
38153 * prj.ads: (Policy, Symbol_Record): New types
38154 (Project_Data): New component Symbol_Data
38157 New attributes Library_Symbol_File, Library_Symbol_Policy and
38158 Library_Reference_Symbol_File.
38161 (Ada_Check): When project is a Stand-Alone library project, process
38162 attribute Library_Symbol_File, Library_Symbol_Policy and
38163 Library_Reference_Symbol_File.
38165 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38166 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38167 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38168 Symbol_Data (ignored).
38170 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38171 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38172 functions Option_File_Name and Version_String. Set new options of
38173 gnatsym related to symbol file, symbol policy and reference symbol
38177 Extensive modifications to take into account the reference symbol file,
38178 the symbol policy, the library version and to put in the symbol file the
38179 minor and major IDs.
38181 * bld.adb (Process_Declarative_Items): Put second argument of
38182 gprcmd to_absolute between single quotes, to avoid problems with
38185 * bld-io.adb: Update Copyright notice.
38186 (Flush): Remove last character of a line, if it is a back slash, to
38187 avoid make problems.
38190 Implement new scheme with reference symbol file and symbol policy.
38192 * g-os_lib.ads: (Is_Directory): Clarify comment
38194 2003-11-19 Robert Dewar <dewar@gnat.com>
38196 * atree.adb: Move New_Copy_Tree global variables to head of package
38198 * errout.adb: Minor reformatting
38200 2003-11-19 Javier Miranda <miranda@gnat.com>
38202 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38203 Add reference to Ada0Y (AI-50217)
38205 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38206 sem_util.adb: Add reference to AI-50217
38208 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38210 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38212 * sem_aggr.adb: Complete documentation of AI-287 changes
38214 * par-ch4.adb: Document previous changes.
38216 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38217 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38220 * exp_aggr.adb: Add references to AI-287 in previous changes
38222 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38225 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38226 in the rewriting is the result of an inlined call.
38228 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38229 parameter is a type conversion, use original node to construct the
38230 post-call assignment, because expression may have been rewritten, e.g.
38231 if it is a packed array.
38234 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38235 body, just as it is in an instance.
38236 Categorization routines
38238 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38239 Instantiate_Object): Set proper sloc reference for message on missing
38242 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38244 * Makefile.in: Add FreeBSD libgnat pairs.
38246 * usage.adb: Fix typo in usage message.
38248 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38250 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38251 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38252 pragma Thread_Body.
38253 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38255 * s-thread.adb: This file is now a dummy implementation of
38258 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38260 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38262 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38264 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38265 instanciation references in the parent type description.
38267 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38269 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38271 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38272 TYPE_PRECISION directly from esize.
38274 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38277 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38279 * init.c: Initialization routines for FreeBSD
38281 * link.c: Link info for FreeBSD
38283 * sysdep.c: Add the case of FreeBSD
38285 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38287 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38288 already called in System.Threads.
38290 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38291 environment task, as it has been moved to System.Threads.Initialization.
38293 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38295 * adaint.c (__gnatlib_install_locks): Only reference
38296 __gnat_install_locks on VMS, since other platforms can avoid using
38297 --enable-threads=gnat
38299 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38301 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38303 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38304 TYPE_PACKED_ARRAY_TYPE_P.
38305 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38307 Part of PR ada/12806
38308 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38309 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38311 2003-11-17 Vincent Celier <celier@gnat.com>
38313 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38315 Do not set exit status to Failure when Warning is True.
38316 (Gnatchop): Make errors "no compilation units found" and
38317 "no source files written" warnings only.
38319 * make.adb (Gnatmake): When using a project file, set
38320 Look_In_Primary_Dir to False.
38321 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38322 and Local_Configuration_Pragmas in the project where they are declared
38323 not an extending project which might have inherited them.
38325 * osint.adb (Locate_File): If Name is already an absolute path, do not
38326 look for a directory.
38328 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38329 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38331 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38332 in objects of type Variable_Value.
38334 * prj.ads: (Variable_Value): New component Project
38336 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38337 is in a project extended by Project.
38339 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38340 Project of Variable_Values to this new parameter value.
38341 (Expression): Set component Project of Variable_Values.
38342 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38343 Set the component Project in array elements.
38345 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38347 * errout.adb: (Initialize): Add initialization for error nodes.
38349 * sem_ch12.adb (Initialize): Add missing initializations for
38350 Exchanged_Views and Hidden_Entities.
38352 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38354 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38355 already instantiated tree for use in subsequent inlining.
38356 (Analyze_Associations, Instantiate_Formal_Subprogram,
38357 Instantiate_Object): improve error message for mismatch in
38360 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38361 instantiations of subprograms declared in instances.
38363 2003-11-17 Javier Miranda <miranda@gnat.com>
38365 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38366 executed only under the Extensions_Allowed flag.
38368 2003-11-17 Robert Dewar <dewar@gnat.com>
38370 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38372 (Address_Image): Fix bug of returning 0x instead of 0x0
38373 Minor reformatting (function specs).
38375 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38376 (missed case of 33-63)
38378 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38380 * s-thread.adb: Add comments for pragma Restriction
38382 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38383 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38385 2003-11-17 Ed Falis <falis@gnat.com>
38387 * s-thread.adb: Added No_Tasking restriction for this implementation.
38389 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38391 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38392 instanciation references in the parent type description.
38394 2003-11-17 GNAT Script <nobody@gnat.com>
38396 * Make-lang.in: Makefile automatically updated
38398 2003-11-16 Jason Merrill <jason@redhat.com>
38400 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38401 and TAGS files that include them for each front end.
38403 2003-11-14 Andreas Jaeger <aj@suse.de>
38405 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38406 is the canonical version.
38407 * misc.c (gnat_handle_option): Likewise.
38409 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38411 * 5nsystem.ads: New file for x86_64-linux-gnu.
38413 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38415 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38417 * comperr.adb: Fix logic in previous change.
38419 2003-11-13 Vincent Celier <celier@gnat.com>
38421 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38422 Osint.Include_Dir_Default_Prefix instead of
38423 Sdefault.Include_Dir_Default_Name.
38425 * gnatlbr.adb: Update Copyright notice
38426 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38427 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38428 instead of Sdefault.Object_Dir_Default_Name
38431 (Process_Binder_File): Never suppress the option following -Xlinker
38434 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38435 Sdefault.Object_Dir_Default_Name.
38437 * osint.ads, osint.adb:
38438 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38439 Minor reformatting.
38441 * vms_conv.ads: Minor reformating
38442 Remove GNAT STANDARD and GNAT PSTA
38445 Allow GNAT MAKE to have several files on the command line.
38446 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38447 Sdefault.Object_Dir_Default_Name.
38449 Remove data for GNAT STANDARD
38452 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38453 Remove data for GNAT STANDARD
38454 Remove options and documentation for -gnatwb/-gnatwB: these warning
38455 options no longer exist.
38457 2003-11-13 Ed Falis <falis@gnat.com>
38459 * 5zthrini.adb: (Init_RTS): Made visible
38462 (Register): Removed unnecessary call to taskVarGet that checked whether
38463 an ATSD was already set as a task var for the argument thread.
38466 Updated comment to reflect that this is a VxWorks version
38467 Added context clause for System.Threads.Initialization
38468 Added call to System.Threads.Initialization.Init_RTS
38470 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38473 (Init_RTS): New procedure, for the initialization of the run-time lib.
38476 Remove dependancy on System.Init, so that this file can be used in the
38477 AE653 sequential run-time lib.
38479 2003-11-13 Robert Dewar <dewar@gnat.com>
38481 * bindgen.adb: Minor reformatting
38483 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38486 (Apply_Discriminant_Check): Do no apply check if target type is derived
38487 from source type with no applicable constraint.
38490 (Ensure_System_Dependency): Do not apply the style checks that may have
38491 been specified for the main unit.
38494 (Find_Selected_Component): Further improvement in error message, with
38498 (Resolve): Handle properly the case of an illegal overloaded protected
38501 2003-11-13 Javier Miranda <miranda@gnat.com>
38504 (Has_Default_Init_Comps): New function to check the presence of
38505 default initialization in an aggregate.
38506 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38507 extension aggregate of a limited record. In addition, a new formal
38508 was added to do not initialize the record controller (if any) during
38509 this recursive expansion of ancestors.
38510 (Init_Controller): Add support for limited record components.
38511 (Expand_Record_Aggregate): In case of default initialized components
38512 convert the aggregate into a set of assignments.
38514 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38515 describing the new syntax.
38516 Nothing else needed to be done because this subprogram delegates part of
38517 its work to P_Precord_Or_Array_Component_Association.
38518 (P_Record_Or_Array_Component_Association): Give support to the new
38519 syntax for default initialization of components.
38522 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38523 limited aggregates.
38524 (Resolve_Record_Aggregate): Give support to default initialized
38526 (Get_Value): In case of default initialized components, duplicate
38527 the corresponding default expression (from the record type
38528 declaration). In case of default initialization in the *others*
38529 choice, do not check that all components have the same type.
38530 (Resolve_Extension_Aggregate): Give support to limited extension
38534 (Check_Initialization): Relax the strictness of the front-end in case
38535 of aggregate and extension aggregates. This test is now done in
38536 Get_Value in a per-component manner.
38538 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38539 expression corresponds to a limited aggregate. This test is now done
38542 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38545 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38546 present in an N_Component_Association node
38548 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38550 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38551 type-conformant entry only if they are homographs.
38553 2003-11-13 GNAT Script <nobody@gnat.com>
38555 * Make-lang.in: Makefile automatically updated
38557 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38559 * adadecode.c: Use <> form of include for ctype.h.
38560 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38562 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38564 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38565 Works around PR middle-end/6552.
38567 2003-11-10 Ed Falis <falis@gnat.com>
38569 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38571 * 5zinit.adb: (Install_Handler): Moved back to spec
38572 (Install_Signal_Handlers): Deleted
38574 * 5zthrini.adb: Added context clause for System.Storage_Elements
38575 (Register): Only handles creation of taskVar; initialization moved to
38577 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38578 Added declaration of environment task secondary stack and
38581 * s-thread.adb: Implement bodies for thread body processing
38584 Added comment identifying supported targets for pragma Thread_Body.
38586 2003-11-10 Pascal Obry <obry@gnat.com>
38588 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38592 (Open): Properly check for string length before copying into the buffer.
38593 Raises Name_Error if buffer is too small. Note that this was a potential
38596 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38598 * bindgen.adb, comperr.adb: Code clean ups.
38599 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38601 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38603 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38605 2003-11-10 Vincent Celier <celier@gnat.com>
38608 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38611 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38613 * prj.adb: (Project_Empty): Add new boolean component Virtual
38615 * prj.ads: (Virtual_Prefix): New constant string
38616 (Project_Data): New boolean component Virtual
38618 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38619 a library project is extended by a virtual extending project.
38622 Modifications throughout to implement extending-all project, including:
38623 (Virtual_Hash, Processed_Hash): New hash tables
38624 (Create_Virtual_Extending_Project): New procedure
38625 (Look_For_Virtual_Projects_For): New procedure
38628 (Process): After checking the projects, if main project is an
38629 extending-all project, set the object directory of all virtual extending
38630 project to the object directory of the main project.
38631 Adjust error message when a virtual extending project has the same
38632 object directory as an project being extended.
38633 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38634 to True in the project data.
38637 (Default_Project_Node): Add new boolean component Extending_All
38638 (Is_Extending_All): New function
38639 (Set_Is_Extending_All): New procedure
38641 * prj-tree.ads: (Is_Extending_All): New function
38642 (Set_Is_Extending_All): New procedure
38643 (Project_Node_Record): New boolean component Extending_All
38645 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38648 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38650 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38651 "gprcmd prefix" to define it.
38653 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38655 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38658 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38659 created dummy package to Standard_Standard, not to itself, to
38660 defend other parts of the front-end against encoutering a cycle in
38664 (Analyze_With_Clause): When setting the entities for the successive
38665 N_Expanded_Names that constitute the name of a child unit, do not
38666 attempt to go further than Standard_Standard in the chain of scopes.
38667 This case arises from the placeholder units created by
38668 Create_Dummy_Package_Unit in the case of a with_clause for a
38669 nonexistent child unit.
38671 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38674 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38675 declarations are given the proper scope.
38678 (Check_Expr_Constants): Reject an expression that contains a constant
38679 created during expansion, and that appears after the object to which
38680 the address clause applies.
38682 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38683 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38684 that uses 'Range of a function call with controlled components, so
38685 that the function result can be finalized before starting the loop.
38688 (Find_Selected_Component): Improve error message when prefix is
38689 an implicit dereference of an incomplete type.
38691 2003-11-10 Robert Dewar <dewar@gnat.com>
38693 * opt.ads: New Print_Standard flag for -gnatS switch
38695 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38697 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38700 * debug.adb: Update doc for -gnatds to discuss relationship with new
38703 * sinfo.adb: Add new field Entity_Or_Associated_Node
38705 * sinfo.ads: Add new field Entity_Or_Associated_Node
38706 Update documentation for Associated_Node and Entity fields to clarify
38707 relationship and usage.
38710 (Write_Id): Properly process Associated_Node field in generic template
38713 Recognize new -gnatS switch for printing package Standard
38714 This replaces gnatpsta
38717 Add line for new -gnatS switch for printing package Standard
38718 This replaces gnatpsta
38720 2003-11-10 Andreas Jaeger <aj@suse.de>
38722 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38725 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38727 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38730 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38732 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38735 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38737 * sysdep.c: Add handling of cygwin.
38739 2003-11-10 GNAT Script <nobody@gnat.com>
38741 * Make-lang.in: Makefile automatically updated
38743 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38746 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38747 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38748 Replace GNAT_ROOT by GCC_ROOT.
38750 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38752 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38754 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38755 and update for changed meaning of GET_MODE_BITSIZE.
38757 2003-11-04 Doug Rupp <rupp@gnat.com>
38759 * sysdep.c: Problem discovered during IA64 VMS port.
38760 [VMS] #include <unixio.h> to get proper prototypes.
38763 Issues discovered/problems fixed during IA64 VMS port.
38764 [VMS] #define _POSIX_EXIT for proper semantics.
38765 [VMS] #include <unixio.h> for proper prototypes.
38766 [VMS] (fork): #define IA64 version.
38767 (__gnat_os_exit): Remove unnecessary VMS specific code.
38769 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38771 Part of PR ada/12806
38772 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38776 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38779 * targtyps.c, decl.c, misc.c,
38780 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38781 routines to work around change in FP sizing semantics in GCC.
38784 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38786 * gigi.h: (enumerate_modes): New function.
38788 * Make-lang.in: (ada/misc.o): Add real.h.
38790 * misc.c: (enumerate_modes): New function.
38792 2003-11-04 Robert Dewar <dewar@gnat.com>
38794 * 3vtrasym.adb: Minor reformatting
38795 Use terminology encoded/decoded name, rather than C++ specific notion
38796 of mangling (this is the terminology used throughout GNAT).
38798 * einfo.h: Regenerated
38800 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38803 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38805 * par-prag.adb: Add dummy entry for Thread_Body pragma
38808 Add entries for System.Threads entities for thread body processing
38811 (Analyze_Pragma, Access attributes): Check these are not applied to a
38812 thread body, since this is not permitted
38814 * sem_prag.adb: Add processing for Thread_Body pragma.
38818 (Resolve_Call): Check for incorrect attempt to call a thread body
38819 procedure with a direct call.
38821 * snames.ads, snames.adb: Add entry for Thread_Body pragma
38822 Add names associated with thread body expansion
38824 * snames.h: Add entry for Thread_Body pragma
38826 * s-thread.adb: Add entries for thread body processing
38827 These are dummy bodies so far
38829 * s-thread.ads: Add documentation on thread body handling.
38830 Add entries for thread body processing.
38832 2003-11-04 Javier Miranda <miranda@gnat.com>
38835 (Build_Limited_Views): Return after posting an error in case of limited
38836 with_clause on subprograms, generics, instances or generic renamings
38837 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38838 on subprograms, generics, instances or generic renamings
38840 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
38842 * raise.c (setup_to_install): Correct mistake in last revision; two
38843 arguments out of order.
38845 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38846 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38847 notice, missed in previous change.
38848 Remove trailing blanks and other style errors introduced in previous
38851 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
38853 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38854 rid of the wrapper for a LJM type, ensuring we don't do that if the
38855 field is addressable. This avoids potential low level type view
38856 mismatches later on, for instance in a by-reference argument passing
38859 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38861 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38862 aligned at byte boundary.
38864 2003-11-04 Joel Brobecker <brobecker@gnat.com>
38866 * decl.c (components_to_record): Do not delete the empty variants from
38867 the end of the union type.
38869 2003-11-04 Ed Schonberg <schonberg@gnat.com>
38871 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38872 operation for a derived type, an explicit declaration may use a local
38873 subtype of Boolean.
38875 2003-11-04 Vincent Celier <celier@gnat.com>
38877 * make.adb (Gnatmake): Allow main sources on the command line with a
38878 library project when it is only for compilation (no binding or
38881 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38883 * Makefile.in: Remove many duplicate variables.
38885 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
38887 * Make-lang.in (dvi): Move targets to $(docobjdir).
38888 (gnat_ug_vms.dvi): Simplify rule and adjust target.
38889 (gnat_ug_wnt.dvi): Likewise.
38890 (gnat_ug_unx.dvi): Likewise.
38891 (gnat_ug_vxw.dvi): Likewise.
38892 (gnat_rm.dvi): Likewise.
38893 (gnat-style.dvi): Likewise.
38895 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38897 * gigi.h: Missed commit from update for C90.
38899 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38901 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38903 2003-10-31 Andreas Schwab <schwab@suse.de>
38905 * raise.c (get_action_description_for): Fix typo in last change.
38907 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
38910 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38911 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38913 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
38915 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38916 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38917 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38918 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38919 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38921 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
38924 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38925 numbers when symbol name is too long.
38927 2003-10-30 Ed Falis <falis@gnat.com>
38929 * g-signal.ads, g-signal.adb: New files
38931 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38933 * Makefile.rtl: Introduce GNAT.Signals
38935 2003-10-30 Robert Dewar <dewar@gnat.com>
38937 * freeze.adb: Minor reformatting
38939 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38941 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38942 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38943 New handling of Id_Check parameter to improve recognition of keywords
38944 used as identifiers.
38945 Update copyright notice to include 2003
38947 2003-10-29 Robert Dewar <dewar@gnat.com>
38949 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38950 sem_ch10.adb: Minor reformatting
38952 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38953 (Expand_Assign_Record): Test right hand side for bit unaligned as well
38955 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
38957 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38958 Support for TBK$SYMBOLIZE-based symbolic traceback.
38960 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
38963 Revert previous change, that did not work well when pragma No_Run_Time
38964 was used in conjunction with a run-time other than ZFP.
38966 2003-10-29 Vincent Celier <celier@gnat.com>
38969 (Gnatmake): When there are no Ada mains in attribute Main, disable the
38970 bind and link steps only is switch -z is not used.
38972 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
38974 * Makefile.generic: Remove duplicated setting of CC.
38976 * Makefile.prolog: Set CC to gcc by default, to override make's
38979 * einfo.h: Regenerated.
38981 2003-10-29 Ed Schonberg <schonberg@gnat.com>
38983 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38984 current body, after compiling subunit.
38986 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38987 when in deleted code, because gigi needs properly ordered freeze
38988 actions to annotate types.
38990 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38991 prevent the premature freezing of record type that contains
38992 subcomponents with a private type that does not yet have a completion.
38994 2003-10-29 Javier Miranda <miranda@gnat.com>
38997 (Analyze_Package_Instantiation): Check that instances can not be used in
38998 limited with_clauses.
39001 (Analyze_Package_Renaming): Check that limited withed packages cannot
39002 be renamed. Improve text on error messages related to limited
39005 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39007 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39008 Update copyright notice.
39010 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39011 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39012 checks required for limited context_clauses and installs the limited
39014 (Install_Limited_Withed_Unit): Complete its documentation.
39015 (Analyze_Context): Check that limited with_clauses are only allowed in
39017 (Install_Context): Call Install_Limited_Context_Clauses after the
39018 parents have been installed.
39019 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39020 package as 'From_With_Type'; this mark indicates that the limited view
39021 is installed. Used to check bad usages of limited with_clauses.
39022 (Build_Limited_Views): Do not add shadow entities to the scope's list
39023 of entities. Do not add real entities to the Non_Limited_Views chain.
39024 Improve error notification.
39025 (Remove_Context_Clauses): Remove context clauses in two phases:
39026 limited views first and regular views later (to maintain the
39028 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39029 its visible entities.
39031 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39033 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39034 with any type that Is_Fixed_Point_Type.
39036 * sinfo.ads: Fix documentation for Associated_Node attribute.
39038 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39040 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39041 both '-gnatc' and '-gnatt' are specified.
39043 * atree.adb (Initialize): Add initialization for Node_Count (set to
39046 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39048 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39049 do not consider as Pure.
39051 Part of implementation of function-at-a-time:
39053 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39054 (tree_transform): Add new argument to build_component_ref.
39055 (tree_transform, case N_Assignment_Statement): Make and return an
39057 (tree_transform): If result IS_STMT, set flags and return it.
39058 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39060 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39062 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39063 (build_allocator): Likewise.
39065 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39066 Add new arg to build_component_ref.
39067 (maybe_unconstrained_array, unchecked_convert): Likewise.
39069 * ada-tree.def (EXPR_STMT): New code.
39071 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39073 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39074 build_component_ref calls.
39076 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39078 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39079 (build_component_ref): Add new argument, NO_FOLD_P.
39081 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39083 * Makefile.generic: Add missing substitution on object_deps handling.
39086 * Make-lang.in (check-ada): Enable ACATS test suite.
39088 2003-10-27 Robert Dewar <dewar@gnat.com>
39091 (Freeze_Array_Type): We do not need an initialization routine for types
39092 derived from String or Wide_String. They should be treated the same
39093 as String and Wide_String themselves. This caused problems with the
39094 use of Initialize_Scalars.
39097 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39098 composites. This allows use of component clauses that are not byte
39102 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39103 is an attempt to pack an array of atomic objects.
39105 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39107 2003-10-27 Pascal Obry <obry@gnat.com>
39110 (Basename): Check for drive letters in a pathname only on DOS based OS.
39112 2003-10-27 Vincent Celier <celier@gnat.com>
39115 (Gnatmake): When unable to change dir to the object dir, display the
39116 content of the parent dir of the obj dir, to try to understand why this
39119 2003-10-27 GNAT Script <nobody@gnat.com>
39121 * Make-lang.in: Makefile automatically updated
39123 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39126 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39127 should not be done in Save/Restore_Scope_Stack, because it is performed
39131 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39132 whether use clauses should be removed/restored.
39135 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39136 whether use clauses should be removed/restored.
39138 2003-10-26 Andreas Jaeger <aj@suse.de>
39140 * Makefile.in: Remove duplicated lines.
39142 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39144 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39145 minimize the differences with ACT tree.
39147 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39148 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39149 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39152 2003-10-24 Pascal Obry <obry@gnat.com>
39155 * adadecode.c (ostrcpy): New function.
39156 (__gnat_decode): Use ostrcpy of strcpy.
39157 (has_prefix): Set first parameter a const.
39158 (has_suffix): Set first parameter a const.
39159 Update copyright notice. Fix source name in header.
39160 Removes a trailing space.
39162 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39165 Remove the test against being in No_Run_Time_Mode before generating a
39166 call to Register_Tag. It is redundant with the test against the
39167 availability of the function Register_Tag.
39169 2003-10-24 Vincent Celier <celier@gnat.com>
39171 * g-catiio.adb: (Month_Name): Correct spelling of February
39173 * make.adb: (Mains): New package
39174 (Initialize): Call Mains.Delete
39175 (Gnatmake): Check that each main on the command line is a source of a
39176 project file and, if there are several mains, each of them is a source
39177 of the same project file.
39178 (Gnatmake): When a foreign language is specified in attribute Languages,
39179 no main is specified on the command line and attribute Mains is not
39180 empty, only build the Ada main. If there is no Ada main, just compile
39181 the Ada sources and their closure.
39182 (Gnatmake): If a main is specified on the command line with directory
39183 information, check that the source exists and, if it does, that the path
39184 is the actual path of a source of a project.
39187 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39188 Full_Path is True, return the full path instead of the simple file name.
39189 (Project_Of): New function
39192 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39193 defaulted to False.
39194 (Project_Of): New function
39196 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39198 * Makefile.generic:
39199 Ensure objects of main project are always checked and rebuilt if needed.
39200 Set CC to gcc by default.
39201 Prepare new handling of link by creating a global archive (not activated
39204 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39205 stringt.h: Update copyright notice. Remove trailing blanks.
39206 Fix source name in header.
39208 2003-10-24 Robert Dewar <dewar@gnat.com>
39210 * sem_ch12.adb: Minor reformatting
39213 Minor reformatting (including new function return style throughout)
39216 Minor reformatting (including new function return style throughout)
39218 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39220 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39221 stringt.h: Update copyright notice. Remove trailing blanks.
39222 Fix source name in header.
39224 2003-10-24 GNAT Script <nobody@gnat.com>
39226 * Make-lang.in: Makefile automatically updated
39228 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39230 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39231 stringt.h: Convert to ISO C90 declarations and definitions.
39233 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39236 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39237 External_Tag attribute definition clauses.
39239 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39242 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39243 child unit, generate a fully qualified name to avoid spurious errors
39244 when the context contains renamings of different child units with
39245 the same simple name.
39247 * exp_dbug.ads: Add documentation on name qualification for renamings
39250 2003-10-23 Robert Dewar <dewar@gnat.com>
39252 * g-regpat.ads, g-regpat.adb: Minor reformatting
39254 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39256 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39258 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39260 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39263 * urealp.h: (Machine): Update to proper definition.
39265 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39267 * init.c, adaint.c: Minor reformatting.
39269 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39271 * adaint.c (w32_epoch_offset): Define static const at file level.
39272 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39273 rather than t_create, t_access in call to GetFileTime. Use union
39274 to convert between FILETIME and unsigned long long.
39275 (__gnat_file_time_name): Test for invalid file handle.
39276 (__gnat_set_filetime_name): Support win32 targets using
39277 w32api SetFileTime.
39279 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39281 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39283 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39285 * decl.c (creat_concat_name): Const-ify prefix.
39287 * adaint.c: Include ctype.h if __MINGW32__.
39288 (__gnat_readlink): Mark arguments as possibly unused.
39289 (__gnat_symlink): Likewise.
39290 (__gnat_is_symbolic_link): Likewise.
39291 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39293 (__gnat_file_time_name): Don't declare struct stat statbuf when
39295 (__gnat_is_absolute_path): Add parenthesis around condition of
39296 'if' statement to avoid warning.
39297 (__gnat_plist_init): Specify void as parameter.
39298 (plist_enter): Likewise.
39299 (plist_leave): Likewise.
39300 (remove_handle): Make static. Initialize prev.
39302 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39305 * Makefile.in: Disable build of gnatpsta.
39306 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39307 of previous change.
39309 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39311 * tracebak.c (MAX): Avoid redefinition warning.
39313 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39314 Change msg to const char *.
39315 (__gnat_install_handler): Remove ss, unused.
39316 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39318 * cstreams.c (__gnat_full_name): Declare p only when used.
39319 (__gnat_full_name) [sgi] Return buffer.
39321 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39323 * mingw32.h: New file.
39324 * gnat_wrapper.adb: New file.
39326 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39328 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39329 string match a pre compiled regular expression (the corresponding
39330 version of the function working on a raw regular expression)
39331 Fix typos in various comments
39332 Update copyright notice in spec
39334 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39337 (Component_Needs_Simple_Initialization): Return False when the type is a
39338 packed bit array. Revise spec comments to document this case.
39341 (Expand_Pragma_Import): Set any expression on the imported object to
39342 empty to avoid initializing imported objects (in particular this
39343 covers the case of zero-initialization of bit arrays).
39344 Update copyright notice.
39346 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39349 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39350 a subunit is missing.
39351 (Instantiate_Subprogram_Body): If body of function is missing, set type
39352 of return expression explicitly in dummy body, to prevent cascaded
39353 errors when a subunit is missing.
39357 (Access_Subprogram_Declaration): Verify that return type is valid.
39361 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39366 (Corresponding_Discriminant): If the scope of the discriminant is a
39367 private type without discriminant, use its full view.
39370 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39372 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39373 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39374 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39375 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39376 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39377 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39378 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39379 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39380 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39381 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39382 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39383 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39384 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39385 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39386 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39387 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39388 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39389 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39390 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39391 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39392 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39393 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39394 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39395 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39396 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39397 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39398 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39399 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39400 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39401 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39402 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39403 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39404 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39405 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39406 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39407 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39408 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39409 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39410 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39411 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39412 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39413 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39414 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39415 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39416 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39417 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39418 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39419 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39420 vms_conv.ads, vms_conv.adb, vms_data.ads,
39421 vxaddr2line.adb: Files added. Merge with ACT tree.
39423 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39424 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39425 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39426 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39427 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39428 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39429 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39430 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39431 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39432 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39434 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39435 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39436 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39437 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39438 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39439 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39440 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39441 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39442 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39443 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39444 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39445 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39446 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39447 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39448 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39449 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39450 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39451 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39452 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39453 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39454 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39455 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39456 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39457 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39458 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39459 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39460 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39461 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39462 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39463 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39464 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39465 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39466 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39467 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39468 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39469 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39470 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39471 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39472 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39473 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39474 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39475 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39476 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39477 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39478 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39479 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39480 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39481 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39482 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39483 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39484 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39485 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39486 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39487 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39488 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39489 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39490 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39491 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39492 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39493 checks.adb, checks.ads, cio.c, comperr.adb,
39494 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39495 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39496 einfo.adb, einfo.ads, errout.adb, errout.ads,
39497 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39498 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39499 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39500 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39501 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39502 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39503 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39504 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39505 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39506 fe.h, fmap.adb, fmap.ads, fname.adb,
39507 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39508 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39509 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39510 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39511 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39512 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39513 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39514 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39515 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39516 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39517 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39518 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39519 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39520 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39521 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39522 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39523 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39524 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39525 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39526 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39527 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39528 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39529 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39530 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39531 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39532 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39533 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39534 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39535 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39536 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39537 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39538 layout.adb, lib.adb, lib.ads, lib-list.adb,
39539 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39540 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39541 link.c, live.adb, make.adb, make.ads,
39542 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39543 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39544 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39545 misc.c, mkdir.c, mlib.adb, mlib.ads,
39546 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39547 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39548 namet.adb, namet.ads, namet.h, nlists.ads,
39549 nlists.h, nmake.adt, opt.adb, opt.ads,
39550 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39551 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39552 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39553 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39554 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39555 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39556 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39557 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39558 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39559 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39560 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39561 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39562 prj-util.adb, prj-util.ads, raise.c, raise.h,
39563 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39564 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39565 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39566 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39567 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39568 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39569 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39570 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39571 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39572 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39573 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39574 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39575 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39576 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39577 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39578 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39579 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39580 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39581 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39582 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39583 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39584 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39585 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39586 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39587 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39588 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39589 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39590 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39591 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39592 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39593 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39594 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39595 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39596 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39597 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39598 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39599 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39600 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39601 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39602 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39603 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39604 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39605 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39606 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39607 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39608 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39609 stringt.adb, stringt.ads, stringt.h, style.ads,
39610 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39611 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39612 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39613 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39614 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39615 table.adb, table.ads, targparm.adb, targparm.ads,
39616 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39617 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39618 ttypes.ads, types.ads, types.h, uintp.adb,
39619 uintp.ads, uintp.h, uname.adb, urealp.adb,
39620 urealp.ads, urealp.h, usage.adb, utils2.c,
39621 utils.c, validsw.adb, validsw.ads, widechar.adb,
39622 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39623 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39624 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39625 gnatvsn.ads: Merge with ACT tree.
39627 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39629 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39631 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39632 (gnat_ug_vmx.info): Likewise.
39633 (gnat_ug_vxw.info): Likewise.
39634 (gnat_ug_wnt.info): Likewise.
39635 (gnat_rm.info): Likewise.
39636 (gnat-style.info): Likewise.
39638 * Make-lang.in (ada.install-info): Remove target.
39639 (info): New target.
39640 (install-info): Likewise.
39641 (gnat_ug_unx.info): Simplify rule.
39642 (gnat_ug_vmx.info): Likewise.
39643 (gnat_ug_vxw.info): Likewise.
39644 (gnat_ug_wnt.info): Likewise.
39645 (gnat_rm.info): Likewise.
39646 (gnat-style.info): Likewise.
39648 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39650 * Make-lang.in: Replace uses of $(target_alias) with
39651 $(target_noncanonical).
39652 * ada/Makefile.in: Remove unused mention of $(target_alias).
39654 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39656 * Make-lang.in (ada.info): Replace with ...
39658 (ada.dvi): Replace with ...
39661 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39663 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39664 initialize dconstp5 and dconstmp5.
39666 2003-09-28 Richard Henderson <rth@redhat.com>
39668 * trans.c (tree_transform): Update call to expand_asm_operands.
39670 2003-09-21 Richard Henderson <rth@redhat.com>
39672 * trans.c, utils.c: Revert.
39674 2003-09-21 Richard Henderson <rth@redhat.com>
39676 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39679 2003-09-04 Michael Matz <matz@suse.de>
39681 * misc.c: Include "target.h".
39682 * Make-lang.in (misc.o): Add dependency on target.h.
39684 2003-09-03 DJ Delorie <dj@redhat.com>
39686 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39689 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39691 * Makefile.in: Update substitutions to match changes to
39692 configure. Use include directives instead of @-insertions
39693 to read in host and target fragments. Add a rule to
39694 regenerate ada/Makefile.
39696 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39698 * lang-options.h: Remove.
39699 * lang.opt: Add help text.
39701 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39703 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39706 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39708 * misc.c (gnat_handle_option): Don't handle filenames.
39710 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39712 * Make-lang.in: Replace PWD with PWD_COMMAND.
39713 * Makefile.adalib: Likewise.
39714 * Makefile.in: Likewise.
39716 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39718 * misc.c (gnat_argv): Revert last change.
39719 (gnat_handle_option, gnat_init_options): Copy arguments.
39721 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39723 * misc.c (gnat_argv): Make const.
39725 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39727 * misc.c (save_argc, save_argv): Keep non-static!
39729 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39731 * misc.c (save_argc, save_argv): Make static.
39732 (gnat_init_options): New prototype.
39733 (gnat_init_options): Update.
39735 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39737 * gnat_ug.texi: Remove unlikely characters from @vars.
39738 * gnat_ug_vms.texi: Regenerate.
39740 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39742 * misc.c (record_code_position): Adjust emit_note call.
39744 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39746 * misc.c (gnat_handle_option): Don't check for missing arguments.
39748 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39750 * utils.c (end_subprog_body): Adjust expand_function_end call.
39752 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39754 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39757 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39759 * lang.opt: Declare Ada.
39760 * misc.c (gnat_init_options): Update.
39762 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39764 * utils.c (begin_subprog_body): Adjust init_function_start call.
39766 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39768 * Make-lang.in: Update to use options.c and options.h.
39769 * misc.c: Include options.h not aoptions.h.
39770 (gnat_handle_option): Abort on unrecognized switch.
39771 (gnat_init_options): Request Ada switches.
39773 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39775 * lang.opt: Add -Wall.
39776 * misc.c (gnat_handle_option): Handle it.
39778 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
39780 * misc.c (gnat_handle_option): Fix warnings.
39782 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
39784 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39786 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
39788 * Make-lang.in: Update to handle command-line options.
39789 * lang.opt: New file.
39790 * misc.c: Include aoptions.h.
39791 (cl_options_count, cl_options): Remove.
39792 (gnat_handle_option): New.
39793 (gnat_decode_option): Remove.
39794 (LANG_HOOKS_DECODE_OPTION): Remove.
39795 (LANG_HOOKS_HANDLE_OPTION): Override.
39797 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
39799 * init.c, misc.c, trans.c, utils.c: Remove dead code.
39801 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
39803 * Makefile.in: Replace "host_canonical" with "host" for autoconf
39806 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
39808 * Make-lang.in: Update.
39809 * misc.c: Include opts.h. Define cl_options_count and cl_options.
39811 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
39813 * misc.c (gnat_init_options): Update.
39815 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39817 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39818 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39819 __attribute__ ((__unused__)).
39821 2003-06-05 Jan Hubicka <jh@suse.cz>
39823 * Make-lang.in: Add support for stageprofile and stagefeedback
39825 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39827 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39828 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39830 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
39832 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39833 Remove non-VMS directive.
39834 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39836 (Examples of gnatls Usage): Remove VMS alternative.
39838 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
39841 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39842 and turn ZCX_By_Default back to False since the underlying support
39843 is not quite there yet.
39845 2003-06-01 Andreas Jaeger <aj@suse.de>
39847 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39848 and ROUND_TYPE_SIZE_UNIT.
39850 2003-05-22 Geert Bosch <bosch@gnat.com>
39852 * gnat_rm.texi : Remove reference to Ada Core Technologies.
39854 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
39856 * trans.c (tree_transform): Use location_t and input_location
39858 (build_unit_elab): Likewise.
39859 * utils.c (create_label_decl): Likewise.
39861 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
39863 * trans.c (tree_transform, build_unit_elab,
39864 set_lineno): Rename lineno to input_line.
39865 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39866 end_subprog_body): Likewise.
39867 * utils2.c (build_call_raise): Likewise.
39869 2003-05-01 Laurent Guerby <guerby@acm.org>
39872 * 5iosinte.ads: Increase pthread_cond_t size to match recent
39873 LinuxThread and NPTL version, merge from ACT.
39875 2003-04-28 Zack Weinberg <zack@codesourcery.com>
39877 * utils.c (convert): No need to clear TREE_CST_RTL.
39879 2003-04-23 Geert Bosch <bosch@gnat.com>
39881 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39882 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39883 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39884 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39885 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39886 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39887 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39888 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39889 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39890 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39891 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39892 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39893 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39894 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39895 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39896 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39897 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39898 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39899 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39900 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39901 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39902 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39903 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39904 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39905 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39906 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39907 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39908 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39909 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39910 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39911 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39912 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39913 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39914 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39915 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39916 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39917 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39918 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39919 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39920 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39921 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39922 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39923 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39924 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39925 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39926 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39927 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39928 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39929 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39930 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39931 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39932 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39933 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39934 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39935 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39936 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39937 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39938 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39939 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39940 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39941 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39942 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39943 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39944 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39945 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39946 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39947 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39948 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39949 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39950 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39951 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39952 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39953 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39954 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39955 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39956 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39957 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39958 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39959 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39960 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39961 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39962 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39963 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39964 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39965 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39966 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39967 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39968 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39969 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39970 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39971 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39972 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39973 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39974 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39975 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39976 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39977 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39978 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39979 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39980 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39981 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39982 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39983 ali.adb, ali.ads, alloc.ads, argv.c,
39984 atree.adb, atree.ads, atree.h, aux-io.c,
39985 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39986 binde.adb, binde.ads, binderr.adb, binderr.ads,
39987 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39988 butil.adb, butil.ads, cal.c, calendar.ads,
39989 casing.adb, casing.ads, ceinfo.adb, checks.adb,
39990 checks.ads, cio.c, comperr.adb, comperr.ads,
39991 config-lang.in, csets.adb, csets.ads, csinfo.adb,
39992 cstand.adb, cstand.ads, cuintp.c, debug.adb,
39993 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39994 dec-io.ads, dec.ads, deftarg.c, directio.ads,
39995 einfo.adb, einfo.ads, elists.adb, elists.ads,
39996 elists.h, errno.c, errout.adb, errout.ads,
39997 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39998 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39999 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40000 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40001 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40002 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40003 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40004 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40005 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40006 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40007 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40008 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40009 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40010 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40011 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40012 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40013 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40014 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40015 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40016 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40017 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40018 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40019 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40020 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40021 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40022 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40023 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40024 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40025 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40026 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40027 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40028 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40029 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40030 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40031 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40032 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40033 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40034 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40035 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40036 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40037 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40038 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40039 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40040 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40041 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40042 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40043 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40044 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40045 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40046 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40047 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40048 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40049 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40050 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40051 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40052 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40053 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40054 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40055 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40056 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40057 lib.adb, lib.ads, live.adb, live.ads,
40058 machcode.ads, make.adb, make.ads, makeusg.adb,
40059 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40060 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40061 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40062 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40063 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40064 mlib.ads, namet.adb, namet.ads, nlists.adb,
40065 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40066 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40067 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40068 osint.ads, output.adb, output.ads, par-ch10.adb,
40069 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40070 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40071 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40072 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40073 par-tchk.adb, par-util.adb, par.adb, par.ads,
40074 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40075 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40076 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40077 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40078 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40079 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40080 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40081 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40082 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40083 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40084 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40085 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40086 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40087 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40088 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40089 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40090 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40091 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40092 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40093 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40094 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40095 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40096 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40097 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40098 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40099 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40100 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40101 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40102 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40103 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40104 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40105 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40106 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40107 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40108 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40109 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40110 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40111 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40112 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40113 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40114 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40115 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40116 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40117 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40118 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40119 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40120 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40121 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40122 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40123 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40124 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40125 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40126 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40127 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40128 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40129 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40130 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40131 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40132 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40133 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40134 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40135 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40136 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40137 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40138 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40139 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40140 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40141 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40142 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40143 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40144 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40145 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40146 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40147 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40148 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40149 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40150 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40151 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40152 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40153 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40154 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40155 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40156 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40157 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40158 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40159 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40160 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40161 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40162 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40163 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40164 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40165 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40166 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40167 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40168 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40169 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40170 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40171 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40172 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40173 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40174 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40175 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40176 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40177 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40178 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40179 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40180 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40181 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40182 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40183 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40184 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40185 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40186 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40187 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40188 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40189 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40190 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40191 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40192 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40193 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40194 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40195 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40196 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40197 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40198 snames.ads, sprint.adb, sprint.ads, stand.adb,
40199 stand.ads, stringt.adb, stringt.ads, style.adb,
40200 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40201 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40202 switch-m.ads, switch.adb, switch.ads, system.ads,
40203 table.adb, table.ads, targparm.adb, targparm.ads,
40204 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40205 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40206 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40207 ttypef.ads, ttypes.ads, types.adb, types.ads,
40208 uintp.adb, uintp.ads, uname.adb, uname.ads,
40209 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40210 usage.adb, usage.ads, validsw.adb, validsw.ads,
40211 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40212 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40213 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40214 formatting and other trivial changes from ACT.
40216 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40218 * gigi.h, utils2.c (build_constructor):
40219 Rename gnat_build_constructor. Use build_constructor.
40220 * decl.c (gnat_to_gnu_entity)
40221 * trans.c (tree_transform, pos_to_constructor, extract_values)
40222 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40223 (unchecked_convert)
40224 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40225 (fill_vms_descriptor):
40228 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40230 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40231 * misc.c (gnat_tree_size): New function.
40232 (LANG_HOOKS_TREE_SIZE): Override.
40234 2003-04-03 Jason Merrill <jason@redhat.com>
40236 * misc.c (gnat_adjust_rli): #if 0.
40238 2003-03-31 Geert Bosch <bosch@gnat.com>
40241 * link.c : Fix misspelled "const" keyword
40243 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40246 * utils2.c: Adjust calls to put_var_into_stack.
40248 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40250 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40252 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40254 * misc.c (gnat_init): Update for new prototype.
40256 2003-03-05 Olivier Hainque <hainque@gnat.com>
40259 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40260 warning, and fix return type for the IN_RTS && !SJLJ case.
40262 2003-03-04 Tom Tromey <tromey@redhat.com>
40264 * Make-lang.in (ada.tags): New target.
40266 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40269 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40270 wrapper, which name remains constant whatever underlying GCC
40273 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40274 the stable interface needed for a-except.
40276 2003-03-02 Andreas Jaeger <aj@suse.de>
40278 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40279 gnat_ug_wnt.texi: Regenerate.
40281 2003-03-02 Laurent Guerby <guerby@acm.org>
40283 * Makefile.in (install-gnatlib): Match previous change there
40286 2003-02-28 Andreas Schwab <schwab@suse.de>
40288 * Make-lang.in (install-gnatlib): Change to ada directory before
40289 running make instead of using ada/Makefile directly.
40291 2003-02-18 Ben Elliston <bje@redhat.com>
40293 Part of PR ada/9406
40294 * gnat_ug.texi (Binder output file): Grammar fix.
40296 2003-02-18 Ben Elliston <bje@redhat.com>
40299 * 5qtaprop.adb (Sleep): Fix typo in comment.
40301 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40303 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40304 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40305 gnat_ug_wnt.texi: Regenerate.
40307 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40309 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40310 be created if necessary.
40311 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40312 if necessary. Remove erroneous and redundant gnatchop
40313 installation commands. Test for gnatdll before attempting
40315 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40316 and gnatdll from all plausible locations.
40318 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40320 * utils2.c (build_unary_op): Don't check flag_volatile.
40321 * gnat_ug.texi: Remove -fvolatile from example.
40322 * gnat_ug_vxw.texi: Likewise.
40324 2003-01-29 Laurent Guerby <guerby@acm.org>
40327 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40328 * Makefile.in: match previous change.
40329 * Make-lang.in: match previous change.
40331 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40333 * 5rosinte.ads: Add SIGXCPU.
40334 * 5rtpopsp.adb: New file.
40335 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40336 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40337 specific file 5rtpopsp.adb.
40338 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40339 is likely needed for all newlib targets.
40340 * init.c: Add RTEMS specific version of __gnat_initialize().
40342 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40344 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40346 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40348 * init.c (__gnat_error_handler): Make msg const.
40350 * gmem.c (convert_addresses): Move declaration ...
40351 * adaint.h: ... here.
40352 * adaint.c (convert_addresses): Adapt addrs type to match
40355 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40357 2003-01-24 Andreas Schwab <schwab@suse.de>
40359 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40360 size_t to avoid warning.
40362 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40364 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40366 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40368 * gnat_rm.texi: Remove RCS version number.
40370 * ada-tree.h (union lang_tree_node): Add chain_next option.
40372 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40374 * Make-lang.in (ada.install-info, ada.install-common,
40375 ada.uninstall): Prepend $(DESTDIR) to the destination
40376 directory in all (un)installation commands.
40377 * Makefile.in (install-gnatlib, install-rts): Ditto.
40379 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40381 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40382 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40383 gnat_ug_wnt.texi: Regenerate.
40385 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40387 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40389 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40390 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40391 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40392 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40393 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40394 $(srcdir)/doc/include/gcc-common.texi.
40396 2002-12-15 Geert Bosch <bosch@gnat.com>
40398 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40400 2002-12-14 Geert Bosch <bosch@gnat.com>
40403 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40404 case of a body created for a Renaming_As_Body, on which
40405 conformance checks are not performed.
40407 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40409 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40410 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40411 not already included.
40412 * Make-lang.in: Update dependencies.
40414 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40415 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40416 solution to buffer overflow bug on GNU/Linux.
40418 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40422 * bindgen.adb: Remove all references to Public_Version.
40423 * comperr.adb: Remove all references to Public_Version and
40424 GNATPRO_Version; correct bug reporting instructions.
40425 * comperr.ads: Change to match bug box.
40426 * gnatvsn.ads: Remove all references to Public version and
40429 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40432 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40436 * config-lang.in: Remove diff_excludes.
40438 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40441 * trans.c (gnu_pending_elaboration_lists): New GC root.
40442 (build_unit_elab): Use..
40444 2002-10-30 Geert Bosch <bosch@gnat.com>
40447 * misc.c : Include optabs.h
40449 * Make-lang.in (misc.o): Add dependency on optabs.h
40451 2002-10-29 Geert Bosch <bosch@gnat.com>
40454 * Make-lang.in (gnatbind): Depend on CONFIG_H
40456 2002-10-29 Geert bosch <bosch@gnat.com>
40459 * misc.c: Unrevert misc.c (1.13)
40461 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40463 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40464 maintainership comments.
40466 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40469 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40470 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40471 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40472 7staprop.adb: Correct statements in comments about
40473 maintainership of GNAT.
40476 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40477 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40478 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40479 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40480 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40481 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40482 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40483 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40484 comments about maintainership of GNAT.
40486 PR ada/6919 (forward port of patch for PR ada/5904)
40487 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40488 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40489 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40490 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40491 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40492 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40493 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40494 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40495 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40496 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40497 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40498 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40499 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40500 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40501 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40502 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40503 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40504 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40505 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40506 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40507 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40508 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40509 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40510 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40511 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40512 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40513 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40514 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40515 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40516 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40517 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40518 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40519 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40520 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40521 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40522 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40523 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40524 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40525 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40526 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40527 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40528 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40529 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40530 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40531 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40532 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40533 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40534 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40535 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40536 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40537 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40538 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40539 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40540 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40541 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40542 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40543 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40544 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40545 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40546 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40547 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40548 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40549 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40550 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40551 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40552 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40553 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40554 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40555 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40556 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40557 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40558 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40559 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40560 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40561 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40562 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40563 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40564 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40565 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40566 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40567 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40568 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40569 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40570 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40571 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40572 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40573 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40574 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40575 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40576 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40577 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40578 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40579 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40580 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40581 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40582 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40583 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40584 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40585 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40586 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40587 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40588 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40589 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40590 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40591 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40592 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40593 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40594 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40595 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40596 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40597 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40598 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40599 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40600 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40601 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40602 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40603 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40604 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40605 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40606 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40607 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40608 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40609 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40610 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40611 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40612 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40613 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40614 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40615 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40616 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40617 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40618 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40619 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40620 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40621 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40622 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40623 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40624 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40625 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40626 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40627 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40628 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40629 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40630 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40631 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40632 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40633 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40634 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40635 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40636 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40637 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40638 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40639 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40640 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40641 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40642 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40643 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40644 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40645 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40646 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40647 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40648 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40649 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40650 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40651 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40652 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40653 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40654 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40655 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40656 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40657 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40658 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40659 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40660 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40661 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40662 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40663 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40664 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40665 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40666 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40667 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40668 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40669 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40670 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40671 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40672 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40673 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40674 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40675 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40676 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40677 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40678 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40679 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40680 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40681 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40682 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40683 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40684 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40685 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40686 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40687 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40688 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40689 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40690 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40691 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40692 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40693 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40694 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40695 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40696 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40697 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40698 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40699 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40700 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40701 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40702 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40703 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40704 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40705 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40706 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40707 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40708 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40709 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40710 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40711 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40712 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40713 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40714 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40715 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40716 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40717 stringt.ads stringt.h style.adb style.ads stylesw.adb
40718 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40719 table.adb table.ads targparm.adb targparm.ads targtyps.c
40720 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40721 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40722 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40723 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40724 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40725 usage.ads utils.c utils2.c validsw.adb validsw.ads
40726 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40727 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40728 xtreeprs.adb: Correct statements in comments about maintainership
40731 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40733 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40734 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40735 * gnatvsn.ads: Gnat_Version_String is now a function.
40736 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40737 copy the C version_string into a String and return it.
40738 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40739 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40740 Remove pragma Ident (Gnat_Version_String). If this was the
40741 sole use of package Gnatvsn, remove the with statement too.
40742 * gnat1drv.adb: Tweak -gnatv output.
40744 2002-09-17 Richard Henderson <rth@redhat.com>
40746 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40747 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40748 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40749 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40750 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40751 and real_2expN instead of a loop.
40752 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40753 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40755 2002-08-25 Andre Leis <a.leis@gmx.net>
40756 David Billinghurst <David.Billinghurst@riotinto.com>
40758 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40760 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40762 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40763 Remove $(CONFIG_H) dependency.
40765 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40767 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40769 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40771 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40773 * misc.c (gnat_decode_option): Likewise.
40775 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
40777 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40778 function approach did not work well because of a side effect (the
40779 function call could reallocate the table which was being indexed
40780 using its result). Fixes ada/4851. [RESURRECTED]
40782 2002-07-01 Roger Sayle <roger@eyesopen.com>
40784 * ada/utils.c (builtin_function): Accept an additional parameter.
40786 2002-06-28 Andreas Jaeger <aj@suse.de>
40789 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40792 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40794 * Makefile.in (SHELL): Set to @SHELL@.
40796 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40798 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40799 array size calculation.
40801 2002-06-04 Andreas Jaeger <aj@suse.de>
40803 * Make-lang.in (gnatbind): Readd rule that has been lost in last
40806 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
40808 Merge from pch-branch:
40810 * config-lang.in (gtfiles): Add ada-tree.h.
40811 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40812 (SET_TYPE_MODULUS): New.
40813 (SET_TYPE_INDEX): New.
40814 (SET_TYPE_DIGITS_VALUE): New.
40815 (SET_TYPE_RM_SIZE): New.
40816 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40817 (SET_TYPE_ADA_SIZE): New.
40818 (SET_TYPE_ACTUAL_BOUNDS): New.
40819 (SET_DECL_CONST_CORRESPONDING_VAR): New.
40820 (SET_DECL_ORIGINAL_FIELD): New.
40821 (TREE_LOOP_ID): Correct typo.
40822 * decl.c: Use new macros.
40823 * utils.c: Include debug.h, use new macros.
40824 * utils2.c: Use new macros.
40826 * ada-tree.h: Update all macros for new tree description.
40827 (struct tree_loop_id): New.
40828 (union lang_tree_node): New.
40829 (struct lang_decl): New.
40830 (struct lang_type): New.
40831 * misc.c (gnat_mark_tree): Delete.
40832 (LANG_HOOKS_MARK_TREE): Delete.
40833 * trans.c (tree_transform): No longer any need to cast
40836 * utils.c (struct language_function): New dummy structure.
40838 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40839 (misc.o): Likewise.
40840 (utils.o): Likewise; also gtype-ada.h.
40841 * Make-lang.in (gnat1): Add dependency on s-gtype.
40842 (gnatbind): Add dependency on $(CONFIG_H).
40843 * utils.c: Correct last #include.
40844 (stuct e_stack): Remove unnecessary 'static'.
40845 (mark_e_stack): Remove unused prototype.
40847 * scn-nlit.adb: Remove whitespace after version number to
40848 keep lines under 80 chars.
40849 * snames.adb: Likewise.
40850 * treepr.ads: Likewise.
40852 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40853 (misc.o): Likewise.
40854 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40855 * config-lang.in (gtfiles): New.
40856 * decl.c: Use gengtype for roots.
40857 * gigi.h: Use gengtype for roots.
40858 * trans.c: Use gengtype for roots.
40859 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
40861 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
40863 * misc.c (gnat_init): Adjust setting of internal_error_function.
40865 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
40867 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40868 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40869 gnat_ug_wnt.texi: Regenerate.
40871 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
40873 * 5ntaprop.adb (with System.OS_Primitives): Remove.
40875 * cstreams.c (max_path_len): Move from here ...
40876 * adaint.c (__gnat_max_path_len): ... to here.
40877 * adaint.c (__gnat_max_path_len): Declare.
40878 * g-dirope.adb (Max_Path): Adjust.
40879 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40880 * i-cstrea.ads (max_path_len): Adjust.
40881 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40882 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40884 * Makefile.in, Make-lang.in: Documentation is now built in
40885 Make-lang.in. Store Info and generated Texinfo files in the
40887 * gnat_ug.texi: Remove CVS keywords, correct version number.
40888 Set file name correctly.
40890 * gnat_ug_*.texi: Add.
40891 * .cvsignore: Ignore generated Texinfo files.
40893 2002-05-30 Zack Weinberg <zack@codesourcery.com>
40895 * ada.h: Add MI guard macro.
40896 (SUBTYPE): Define constants with an anonymous enum, not static
40898 (IN): Cast constants to appropriate type before use.
40900 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
40902 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40905 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40907 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40908 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40909 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40910 (ALL_ADA_CFLAGS): Likewise.
40911 (ADA_INCLUDES): Likewise.
40912 Adapt for new working dir.
40913 (GNATBIND): Use Makefile.in version.
40914 (.SUFFIXES): Copy from Makefile.in.
40915 (ada-warn): Define.
40916 (.adb.o, .ads.o): Copy from Makefile.in.
40917 Added $(OUTPUT_OPTION).
40918 (GNAT1_C_OBJS): Moved from Makefile.in.
40919 Prefix with ada subdir.
40920 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40921 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40922 Adapt for new working dir.
40923 (EXTRA_GNATBIND_OBJS): Likewise.
40924 (ADA_BACKEND): Moved from Makefile.in.
40925 Renamed to avoid conflict with global BACKEND.
40927 (TARGET_ADA_SRCS): Moved from Makefile.in.
40928 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40930 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40931 (ada_extra_files): Moved from Makefile.in.
40932 Prefix with ada subdir.
40933 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40934 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40935 (ada/nmake.ads): Likewise.
40936 (update-sources): Moved from Makefile.in.
40937 Prefix with ada subdir.
40938 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40939 (ADA_TREE_H): Likewise.
40940 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40941 (ada/memtrack.o): Likewise.
40942 (ada/adadecode.o): Likewise.
40943 Update dependencies.
40944 (ada/adaint.o): New.
40945 (ada/argv.o): Moved from Makefile.in.
40946 Prefix with ada subdir.
40947 Update dependencies.
40948 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40949 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40950 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40951 Prefix with ada subdir.
40952 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40953 (GNAT DEPENDENCIES): Regenerate.
40954 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40955 toplevel Makefile.in.
40956 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40957 (TARGET_ADA_SRCS): Removed.
40958 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40959 (GNATBIND_OBJS): Likewise.
40960 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40961 (BACKEND): Removed.
40962 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40963 (TREE_H): Likewise.
40964 (ada_extra_files): Likewise.
40965 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40966 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40967 (update-sources): Likewise.
40968 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40969 (ADA_TREE_H): Likewise.
40970 (adadecoce.o): Likewise.
40971 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40972 (GNAT DEPENDENCIES): Likewise.
40974 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40976 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40977 * Makefile.in: Likewise.
40979 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40981 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40982 Restore $(CONFIG_H) and prefix.o dependencies.
40983 (ada.stage[1-4]): Depend on stage?-start.
40985 * Makefile.in (b_gnatb.c): Depend on interfac.o.
40987 2002-05-02 Jim Wilson <wilson@redhat.com>
40989 * utils.c (finish_record_type): Change record_size to record_type.
40991 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
40993 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40994 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40995 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40997 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
40999 * misc.c (gnat_parse_file): Update.
41001 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41003 * misc.c (gnat_init): Don't set lang_attribute_common.
41005 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41007 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41009 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41011 * gnat_ug.texi: New file.
41013 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41014 instead of gfdl.texi
41016 * xgnatug.adb, ug_words: New files.
41018 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41019 gnat_rm and gnat-style manuals.
41021 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41023 * gigi.h (incomplete_type_error): Remove.
41024 * utils.c (incomplete_type_error): Remove.
41026 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41028 * trans.c (tree_transform): Add has_scope argument to
41029 expand_start_stmt_expr.
41031 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41033 * gigi.h (truthvalue_conversion): Rename.
41034 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41035 * trans.c (tree_transform): Update.
41036 * utils2.c (truthvalue_conversion): Rename, update.
41037 (build_binary_op, build_unary_op): Update.
41039 2002-04-04 Laurent Guerby <guerby@acm.org>
41041 * make.adb: Implement -margs, remove restriction about file name placement.
41042 * makeusg.adb: Documentation update.
41043 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41044 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41046 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41048 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41049 (builtin_function): Similarly.
41051 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41053 * decl.c (gnat_to_gnu_entity): Update.
41054 * gigi.h (mark_addressable): Rename.
41055 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41056 * trans.c (tree_transform): Update.
41057 * utils.c (create_var_decl): Update.
41058 * util2.c (build_binary_op, build_unary_op,
41059 fill_vms_descriptor): Update.
41060 (mark_addressable): Rename, update.
41062 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41064 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41066 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41067 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41068 * trans.c (tree_transform, convert_with_check): Update.
41069 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41072 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41074 * gigi.h (finish_incomplete_decl): Rename.
41075 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41076 * utils.c (gnat_init_decl_processing): Don't set hook.
41077 (finish_incomplete_decl): Rename.
41079 2002-03-29 Andreas Schwab <schwab@suse.de>
41081 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41084 2001-03-28 Robert Dewar <dewar@gnat.com>
41087 (Remove_Checks): New procedure
41090 (Remove_Checks): New procedure
41093 Use new Duplicate_Subexpr functions
41094 (Duplicate_Subexpr_No_Checks): New procedure
41095 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41096 (Duplicate_Subexpr): Restore original form (checks duplicated)
41097 (Duplicate_Subexpr): Call Remove_Checks
41100 (Duplicate_Subexpr_No_Checks): New procedure
41101 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41102 Add 2002 to copyright notice
41104 * sem_util.adb: Use new Duplicate_Subexpr functions
41107 (Eval_Indexed_Component): This is the place to call
41108 Constant_Array_Ref and to replace the value. We simply merge
41109 the code of this function in here, since it is now no longer
41110 used elsewhere. This fixes the problem of the back end not
41111 realizing we were clever enough to see that this was
41113 (Expr_Val): Remove call to Constant_Array_Ref
41114 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41116 (Constant_Array_Ref): Deal with string literals (patch
41117 suggested by Zack Weinberg on the gcc list)
41119 2001-03-28 Ed Schonberg <schonber@gnat.com>
41121 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41122 Duplicate_Subexpr_Move_Checks.
41124 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41125 Duplicate_Subexpr_Move_Checks.
41127 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41128 value of array exists before retrieving it (it may a private
41129 protected component in a function).
41131 2002-03-28 Geert Bosch <bosch@gnat.com>
41133 * prj-pp.adb : New file.
41135 * prj-pp.ads : New file.
41137 2002-03-28 Andreas Jaeger <aj@suse.de>
41139 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41141 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41143 * misc.c (gnat_expand_expr): Move prototype.
41145 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41147 * misc.c (insert_default_attributes): Remove.
41149 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41151 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41152 (gnat_init): Don't set hook.
41153 (gnat_expand_expr): Fix prototype.
41155 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41157 * misc.c (ggc_p): Remove.
41159 2002-03-27 Geert Bosch <bosch@gnat.com>
41161 * prj-makr.ads, prj-makr.adb : New files.
41163 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41165 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41166 (lang_mark_tree): Make static, rename.
41168 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41170 * misc.c (maybe_build_cleanup): Remove.
41172 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41174 * gigi.h (yyparse): Remove.
41176 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41178 From Ben Brosgol <brosgol@gnat.com>
41179 * gnat_rm.texi: Sync with ACT version.
41181 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41183 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41184 (gnat_init): Remove old hook.
41186 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41188 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41189 (yyparse): Rename gnat_parse_file.
41191 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41193 Delete all lines containing "$Revision:".
41194 * xeinfo.adb: Don't look for revision numbers.
41195 * xnmake.adb: Likewise.
41196 * xsinfo.adb: Likewise.
41197 * xsnames.adb: Likewise.
41198 * xtreeprs.adb: Likewise.
41200 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41202 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41203 gnat_tree_code_name): Delete.
41204 (tree_code_type, tree_code_length, tree_code_name): Define.
41205 (gnat_init): Don't try to copy into the various tree_code
41208 2002-03-11 Richard Henderson <rth@redhat.com>
41210 * Makefile.in (.NOTPARALLEL): Add fake tag.
41212 2002-03-07 Geert Bosch <bosch@gnat.com>
41214 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41215 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41216 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41217 switch-m.adb, switch-m.ads : New files.
41219 2002-03-07 Geert Bosch <bosch@gnat.com>
41221 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41222 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41223 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41224 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41225 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41226 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41227 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41228 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41229 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41230 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41231 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41232 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41233 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41234 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41235 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41236 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41237 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41238 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41239 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41240 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41241 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41242 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41243 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41244 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41245 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41246 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41247 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41248 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41249 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41250 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41251 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41252 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41253 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41254 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41255 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41256 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41257 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41258 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41259 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41260 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41261 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41262 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41263 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41264 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41265 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41266 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41267 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41268 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41269 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41270 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41271 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41272 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41273 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41274 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41275 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41276 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41277 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41278 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41279 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41280 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41281 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41282 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41283 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41284 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41285 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41286 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41287 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41288 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41289 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41290 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41291 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41292 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41293 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41294 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41295 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41296 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41297 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41298 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41299 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41300 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41301 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41302 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41303 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41304 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41305 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41306 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41307 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41308 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41309 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41310 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41311 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41312 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41313 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41314 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41315 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41316 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41317 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41319 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41320 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41321 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41322 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41324 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41325 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41327 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41328 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41330 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41331 from mdllfile.ad[bs] and mdlltool.ad[bs]
41333 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41335 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41336 lieu of explicit sizeof/sizeof.
41338 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41340 * misc.c (copy_lang_decl): Remove.
41342 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41344 * misc.c: Delete traditional-mode-related code copied from the
41345 C front end but not used, or used only to permit the compiler
41348 2002-02-07 Richard Henderson <rth@redhat.com>
41350 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41351 * adaint.h (__gnat_to_gm_time): Update prototype.
41353 2002-01-30 Richard Henderson <rth@redhat.com>
41355 * trans.c (tree_transform) [N_Loop_Statement]: Use
41356 expand_exit_loop_top_cond.
41358 2001-12-23 Richard Henderson <rth@redhat.com>
41360 * utils.c (end_subprog_body): Push GC context around
41361 rest_of_compilation for nested functions.
41363 2001-12-23 Richard Henderson <rth@redhat.com>
41365 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41367 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41369 * gnat-style.texi (Declarations and Types): Remove ancient style
41370 rule which was mandated by code generation issues.
41372 * gnat-style.texi (header): Add @dircategory, @direntry.
41373 (title page): Remove date.
41374 (general) Add @./@: where approriate, and two spaces after the
41375 full stop at the end of a sentence. Use @samp markup when
41376 referring concrete lexical entities (keywords, attribute names
41377 etc.), and @syntax for ARM grammar elements. Use @r for English
41378 text in comments. Use @emph for emphasis. Change "if-statements"
41379 etc. to "if statements" (without @samp). Break long lines. Make
41380 casing of section names consistent.
41381 (Identifiers): Use @samp markup for variable names.
41382 (Comments): Use @samp markup for comment characters. Line-end
41383 comments may follow any Ada code, not just statements. Fix
41384 misspelling of "Integer" as "integer".
41385 (Loop statements): Do not use variable name "I", use "J".
41386 (Subprogram Declarations): Document alignment.
41387 (Subprogram Bodies, Block statements): Document empty line before
41390 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41392 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41393 function approach did not work well because of a side effect (the
41394 function call could reallocate the table which was being indexed
41395 using its result). Fixes ada/4851.
41397 2001-12-19 Robert Dewar <dewar@gnat.com>
41399 * bindgen.adb: Minor reformatting
41401 * cstand.adb: Minor reformatting
41403 * fmap.adb: Minor reformatting
41404 Change name from Add for Add_To_File_Map (Add is much too generic)
41405 Change Path_Name_Of to Mapped_Path_Name
41406 Change File_Name_Of to Mapped_File_Name
41407 Fix copyright dates in header
41410 Change name from Add for Add_To_File_Map (Add is much too generic)
41411 Change Path_Name_Of to Mapped_Path_Name
41412 Change File_Name_Of to Mapped_File_Name
41413 Fix copyright dates in header
41415 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41416 Add use clause for Fmap.
41418 * make.adb: Minor reformatting
41420 * osint.adb: Minor reformatting. Change of names in Fmap.
41421 Add use clause for Fmap.
41423 * prj-env.adb: Minor reformatting
41425 * prj-env.ads: Minor reformatting
41427 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41428 error found (there were odd exceptions to this general rule in
41429 -gnatec/-gnatem processing)
41431 2001-12-19 Olivier Hainque <hainque@gnat.com>
41433 * raise.c (__gnat_eh_personality): Exception handling personality
41434 routine for Ada. Still in rough state, inspired from the C++ version
41435 and still containing a bunch of debugging artifacts.
41436 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41437 inspired from the C++ library.
41439 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41440 exception handling integration.
41442 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41444 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41445 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41446 (HIE_OBJS): Add s-fat*.o
41447 (RAVEN_SOURCES): Remove files that are no longer required. Add
41448 interrupt handling files.
41449 (RAVEN_MOD): Removed, no longer needed.
41451 2001-12-19 Robert Dewar <dewar@gnat.com>
41453 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41454 Add 2001 to copyright date
41456 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41457 need to force universal inlining for these cases.
41459 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41461 * s-taprob.adb: Minor clean ups so that this unit can be used in
41464 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41465 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41467 2001-12-19 Vincent Celier <celier@gnat.com>
41469 * prj-tree.ads (Project_Node_Record): Add comments for components
41470 Pkg_Id and Case_Insensitive.
41472 2001-12-19 Pascal Obry <obry@gnat.com>
41474 * g-socket.adb: Minor reformatting. Found while reading code.
41476 2001-12-19 Robert Dewar <dewar@gnat.com>
41478 * prj-tree.ads: Minor reformatting
41480 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41482 * config-lang.in (diff_excludes): Remove.
41484 2001-12-17 Ed Schonberg <schonber@gnat.com>
41486 * sem_res.adb (Resolve_Selected_Component): do not generate a
41487 discriminant check if the selected component is a component of
41488 the argument of an initialization procedure.
41490 * trans.c (tree_transform, case of arithmetic operators): If result
41491 type is private, the gnu_type is the base type of the full view,
41492 given that the full view itself may be a subtype.
41494 2001-12-17 Robert Dewar <dewar@gnat.com>
41496 * sem_res.adb: Minor reformatting
41498 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41499 parameter in call to Machine (unknown horrible effects from this
41502 * urealp.h: Add definition of Round_Even for call to Machine
41503 Add third parameter for Machine
41505 2001-12-17 Ed Schonberg <schonber@gnat.com>
41507 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41508 predefined units in No_Run_Time mode.
41510 2001-12-17 Richard Kenner <kenner@gnat.com>
41512 * misc.c (insn-codes.h): Now include.
41514 2001-12-17 Olivier Hainque <hainque@gnat.com>
41516 * a-except.adb: Preparation work for future integration of the GCC 3
41517 exception handling mechanism
41518 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41519 to factorize previous code sequences and make them externally callable,
41520 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41521 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41522 Use the new notification routines.
41524 2001-12-17 Emmanuel Briot <briot@gnat.com>
41526 * prj-tree.ads (First_Choice_Of): Document the when others case
41528 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41530 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41531 HI-E mode, in order to support Ravenscar profile properly.
41533 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41534 mode on 32 bits targets.
41536 2001-12-17 Vincent Celier <celier@gnat.com>
41538 * fmap.adb: Initial version.
41540 * fmap.ads: Initial version.
41542 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41543 If search is successfully done, add to mapping.
41545 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41548 (Gnatmake): Add new local variable Mapping_File_Name.
41549 Create mapping file when using project file(s).
41550 Delete mapping file before exiting.
41552 * opt.ads (Mapping_File_Name): New variable
41554 * osint.adb (Find_File): Use path name found in mapping, if any.
41556 * prj-env.adb (Create_Mapping_File): New procedure
41558 * prj-env.ads (Create_Mapping_File): New procedure.
41560 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41563 * usage.adb: Add entry for new switch -gnatem.
41565 * Makefile.in: Add dependencies for fmap.o.
41567 2001-12-17 Ed Schonberg <schonber@gnat.com>
41569 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41570 is a package instantiation rewritten as a package body.
41571 (Install_Withed_Unit): Undo previous change, now redundant.
41573 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41576 (Compute_Length): Move conversion to Unsigned to callers.
41577 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41578 Compute_Length and Determine_Range.
41579 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41580 Compute_Length and Determine_Range.
41581 Above changes fix problem with length computation for supernull arrays
41582 where Max (Len, 0) wasn't getting applied due to the Unsigned
41583 conversion used by Compute_Length.
41585 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41588 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41589 System.Secondary_Stack.
41590 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41592 Remove unused entity RE_Exception_Data.
41594 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41596 * rident.ads (No_Secondary_Stack): New restriction.
41598 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41600 * gnat_rm.texi: Fix minor typos. Found while reading the section
41601 regarding "Bit_Order Clauses" that was sent to a customer.
41602 Very interesting documentation!
41604 2001-12-17 Robert Dewar <dewar@gnat.com>
41606 * sem_case.adb (Choice_Image): Avoid creating improper character
41607 literal names by using the routine Set_Character_Literal_Name. This
41608 fixes bombs in certain error message cases.
41610 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41612 * a-reatim.adb: Minor reformatting.
41614 2001-12-17 Ed Schonberg <schonber@gnat.com>
41616 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41617 case where the formal is an extension of another formal in the current
41618 unit or in a parent generic unit.
41620 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41622 * s-tposen.adb: Update comments. Minor reformatting.
41623 Minor code clean up.
41625 * s-tarest.adb: Update comments. Minor code reorganization.
41627 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41629 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41632 2001-12-17 Robert Dewa <dewar@gnat.com>
41634 * exp_attr.adb: Minor reformatting
41636 2001-12-17 Ed Schonberg <schonber@gnat.com>
41638 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41639 derivations nested within a child unit: verify that the parent
41640 type is declared in an outer scope.
41642 2001-12-17 Robert Dewar <dewar@gnat.com>
41644 * sem_ch12.adb: Minor reformatting
41646 2001-12-17 Ed Schonberg <schonber@gnat.com>
41648 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41649 warning if current unit is a predefined one, from which bodies may
41652 2001-12-17 Robert Dewar <dewar@gnat.com>
41654 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41655 Fix header format. Add 2001 to copyright date.
41657 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41658 which caused CE during compilation if checks were enabled.
41660 2001-12-17 Vincent Celier <celier@gnat.com>
41663 (Switches_Of): New function
41664 (Test_If_Relative_Path): New procedure
41665 (Add_Switches): Use new function Switches_Of
41666 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41667 When using a project file, test if there are any relative
41668 search path. Fail if there are any.
41669 (Gnatmake): Only add switches for the primary directory when not using
41670 a project file. When using a project file, change directory to the
41671 object directory of the main project file. When using a project file,
41672 test if there are any relative search path. Fail if there are any.
41673 When using a project file, fail if specified executable is relative
41674 path with directory information, and prepend executable, if not
41675 specified as an absolute path, with the exec directory. Make sure
41676 that only one -o switch is transmitted to the linker.
41678 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41681 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41682 when using a non standard naming scheme.
41683 (Check_Ada_Naming_Scheme): Make sure that error messages
41684 do not raise exceptions.
41685 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41686 (Language_Independent_Check): Check the exec directory.
41688 * prj.adb (Project_Empty): Add new component Exec_Directory
41691 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41692 (Project_Data): Add component Exec_Directory
41694 * snames.adb: Updated to match snames.ads revision 1.215
41696 * snames.ads: Added Exec_Dir
41698 2001-12-17 Robert Dewar <dewar@gnat.com>
41700 * make.adb: Minor reformatting
41702 * prj-nmsc.adb: Minor reformatting
41704 * snames.adb: Updated to match snames.ads
41706 * snames.ads: Alphebetize entries for project file
41708 2001-12-17 Ed Schonberg <schonber@gnat.com>
41710 * trans.c (process_freeze_entity): Do nothing if the entity is a
41711 subprogram that was already elaborated.
41713 2001-12-17 Richard Kenner <kenner@gnat.com>
41715 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41716 and Esize if object is referenced via pointer.
41718 2001-12-17 Ed Schonberg <schonber@gnat.com>
41720 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41721 is discrete before analyzing choices.
41723 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41725 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41726 containing the name of the Ada Main Program. This string is mainly
41727 intended for the debugger.
41728 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41730 2001-12-17 Robert Dewar <dewar@gnat.com>
41732 * ali.adb: Set new Dummy_Entry field in dependency entry
41734 * ali.ads: Add Dummy_Entry field to source dependency table
41736 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41738 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41740 * lib-writ.ads: Document dummy D lines for missing files.
41742 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41744 2001-12-17 Robert Dewar <dewar@gnat.com>
41746 * ali.adb: Type reference does not reset current file.
41748 * ali.adb: Recognize and scan renaming reference
41750 * ali.ads: Add spec for storing renaming references.
41752 * lib-xref.ads: Add documentation for handling of renaming references
41754 * lib-xref.adb: Implement output of renaming reference.
41757 (Determine_Range): Document local variables
41758 (Determine_Range): Make sure Hbound is initialized. It looks as though
41759 there could be a real problem here with an uninitialized reference
41760 to Hbound, but no actual example of failure has been found.
41762 2001-12-17 Laurent Pautet <pautet@gnat.com>
41765 Fix comment of Shutdown_Socket and Close_Socket. These functions
41766 should not fail silently because if they are called twice, this
41767 probably means that there is a race condition in the user program.
41768 Anyway, this behaviour is consistent with the rest of this unit.
41769 When an error occurs, an exception is raised with the error message
41770 as exception message.
41772 2001-12-17 Robert Dewar <dewar@gnat.com>
41774 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41775 that it happens before modification of Sloc values for -gnatD.
41777 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41778 so that it happens before modification of Sloc values for -gnatD.
41780 * switch.adb: Minor reformatting
41782 2001-12-15 Richard Henderson <rth@redhat.com>
41784 * sem_ch7.adb: Wrap comment.
41786 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41788 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41789 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41790 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41791 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41792 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41793 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41794 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41795 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41796 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41797 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41798 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41799 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41800 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41801 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41802 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41803 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41804 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41805 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41806 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41807 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41808 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41809 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41810 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41811 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41814 2001-12-14 Vincent Celier <celier@gnat.com>
41816 * osint.adb(Create_Debug_File): When an object file is specified,
41817 put the .dg file in the same directory as the object file.
41819 2001-12-14 Robert Dewar <dewar@gnat.com>
41821 * osint.adb: Minor reformatting
41823 * lib-xref.adb (Output_Instantiation): New procedure to generate
41824 instantiation references.
41826 * lib-xref.ads: Add documentation of handling of generic references.
41828 * ali.adb (Read_Instantiation_Ref): New procedure to read
41829 instantiation references
41831 * ali.ads: Add spec for storing instantiation references
41833 * bindusg.adb: Minor reformatting
41835 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41837 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41839 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41841 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41845 Add 2001 to copyright date
41846 Add entry for Latin-5 (Cyrillic ISO-8859-5)
41848 2001-12-14 Matt Gingell <gingell@gnat.com>
41850 * adaint.c: mktemp is a macro on Lynx and can not be used as an
41853 2001-12-14 Richard Kenner <kenner@gnat.com>
41855 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41856 if operand is CONSTRUCTOR.
41858 2001-12-14 Ed Schonberg <schonber@gnat.com>
41860 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41861 before emiting check on right-hand side, so that exception information
41864 2001-12-14 Richard Kenner <kenner@gnat.com>
41866 * utils.c (create_var_decl): Throw away initializing expression
41867 if just annotating types and non-constant.
41869 2001-12-14 Vincent Celier <celier@gnat.com>
41871 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41874 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41876 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41878 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41880 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41882 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41884 * ChangeLog: Remove piece of diff output.
41886 2001-12-14 Geert Bosch <bosch@gnat.com>
41888 * config-lang.in: Update copyright notice
41890 * layout.adb: Remove commented out code.
41892 * mdllfile.ads: Update copyright notice. Fix header format.
41894 * sem_case.ads: Likewise.
41896 * sem_ch3.adb: Minor reformatting.
41898 2001-12-12 Geert Bosch <bosch@gnat.com>
41900 * freeze.ads: Update copyright date.
41902 * g-comlin.ads: Minor reformatting.
41904 * gnat-style.texi: Fix typo.
41906 2001-12-12 Geert Bosch <bosch@gnat.com>
41908 * einfo.h: Regenerate.
41910 2001-12-12 Ed Schonberg <schonber@gnat.com>
41912 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41913 on known node types, rather than untyped fields. Further cleanups.
41915 2001-12-12 Robert Dewar <dewar@gnat.com>
41918 (Save_Entity_Descendant): Minor comment update.
41919 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41920 of an N_Attribute_Reference node. As per note below, this does not
41921 eliminate need for Associated_Node in attribute ref nodes.
41922 (Associated_Node): Documentation explicitly mentions attribute
41923 reference nodes, since this field is used in such nodes.
41925 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41927 2001-12-12 Robert Dewar <dewar@gnat.com>
41929 * s-stalib.adb: Add more comments on with statements being needed
41931 * par-ch12.adb: Minor reformatting
41933 * prj-dect.ads: Fix copyright header
41935 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41936 inputs fit in 32 bits, but the result still overflows.
41938 * s-fatgen.ads: Minor comment improvement
41940 2001-12-12 Ed Schonberg <schonber@gnat.com>
41942 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41943 formal derived type, look for an inherited component from the full
41944 view of the parent, if any.
41946 2001-12-12 Robert Dewar <dewar@gnat.com>
41948 * checks.ads (Apply_Alignment_Check): New procedure.
41950 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41951 ensure that the alignment of objects with address clauses is
41952 appropriate, and raise PE if not.
41954 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41955 Exp_Pakd.Known_Aligned_Enough
41957 * mdllfile.ads: Minor reformatting
41959 * mlib-fil.ads: Minor reformatting
41961 2001-12-12 Ed Schonberg <schonber@gnat.com>
41963 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41964 fix to any component reference if enclosing record has non-standard
41967 2001-12-12 Vincent Celier <celier@gnat.com>
41969 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41972 2001-12-12 Ed Schonberg <schonber@gnat.com>
41974 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41977 2001-12-12 Robert Dewar <dewar@gnat.com>
41979 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41981 2001-12-12 Emmanuel Briot <briot@gnat.com>
41983 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41984 and it adds dependencies to system.io.
41986 2001-12-12 Pascal Obry <obry@gnat.com>
41988 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41991 2001-12-11 Ed Schonberg <schonber@gnat.com>
41993 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41994 that is the parent of other generics, the instance body replaces the
41995 instance node. Retrieve the instance of the spec, which is the one
41996 that is visible in clients and within the body.
41998 2001-12-11 Vincent Celier <celier@gnat.com>
42000 * gnatmain.adb: Initial version.
42002 * gnatmain.ads: Initial version.
42004 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42006 * snames.adb: Updated to match snames.ads.
42008 * snames.ads: Added Gnatstub.
42010 2001-12-11 Vincent Celier <celier@gnat.com>
42012 * prj-attr.adb (Initialization_Data): Change name from
42013 Initialisation_Data.
42015 2001-12-11 Emmanuel Briot <briot@gnat.com>
42017 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42018 + and * applied to backslashed expressions like \r.
42020 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42022 * g-os_lib.ads: String_List type added, Argument_List type is now
42023 subtype of String_List.
42025 2001-12-11 Robert Dewar <dewar@gnat.com>
42027 * g-os_lib.ads: Change copyright to FSF
42028 Add comments for String_List type
42030 2001-12-11 Vincent Celier <celier@gnat.com>
42032 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42033 string to the buffer).
42035 2001-12-11 Ed Schonberg <schonber@gnat.com>
42037 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42040 * sem_attr.adb: Simplify previous fix for Address.
42041 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42042 to avoid anomalies where the bound of the type appears to raise
42045 2001-12-11 Robert Dewar <dewar@gnat.com>
42047 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42050 2001-12-11 Ed Schonber <schonber@gnat.com>
42052 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42053 renamed unit before checking for recursive instantiations.
42055 2001-12-11 Emmanuel Briot <briot@gnat.com>
42057 * prj.ads: Add comments for some of the fields.
42059 2001-12-11 Robert Dewar <dewar@gnat.com>
42061 * lib-xref.adb (Output_Refs): Don't output type references outside
42062 the main unit if they are not otherwise referenced.
42064 2001-12-11 Ed Schonberg <schonber@gnat.com>
42066 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42067 code and diagnose additional illegal uses
42069 * sem_util.adb (Is_Object_Reference): An indexed component is an
42070 object only if the prefix is.
42072 2001-12-11 Vincent Celier <celier@gnat.com>
42074 * g-diopit.adb: Initial version.
42076 * g-diopit.ads: Initial version.
42079 (Expand_Path): Avoid use of Unbounded_String
42080 (Find, Wildcard_Iterator): Moved to child package Iteration
42082 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42084 2001-12-11 Robert Dewar <dewar@gnat.com>
42086 * sem_attr.adb: Minor reformatting
42088 2001-12-11 Ed Schonberg <schonber@gnat.com>
42090 * sem_ch3.adb: Clarify some ???.
42092 2001-12-11 Robert Dewar <dewar@gnat.com>
42094 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42095 Exp_Pakd.Known_Aligned_Enough
42097 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42098 version is moved to Exp_Ch13.
42100 2001-12-11 Robert Dewar <dewar@gnat.com>
42102 * einfo.ads: Minor reformatting
42104 * exp_ch5.adb: Add comment for previous.change
42106 * ali.adb: New interface for extended typeref stuff.
42108 * ali.ads: New interface for typeref stuff.
42110 * checks.adb (Apply_Alignment_Check): New procedure.
42112 * debug.adb: Add -gnatdM for modified ALI output
42114 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42116 * lib-xref.adb: Extend generation of <..> notation to cover
42117 subtype/object types. Note that this is a complete rewrite,
42118 getting rid of the very nasty quadratic algorithm previously
42119 used for derived type output.
42121 * lib-xref.ads: Extend description of <..> notation to cover
42122 subtype/object types. Uses {..} for these other cases.
42123 Also use (..) for pointer types.
42125 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42127 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42128 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42130 2001-12-11 Vincent Celier <celier@gnat.com>
42133 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42134 Changed /BIND_ONLY to /ACTIONS=BIND
42135 Changed /LINK_ONLY to /ACTIONS=LINK
42137 2001-12-11 Ed Schonberg <schonber@gnat.com>
42139 * sem_ch8.adb (Find_Selected_Component): improved search for a
42140 candidate package in case of error.
42142 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42143 chain back on scope stack before reinstalling use clauses.
42145 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42146 is enabled, do not kill the code for the condition, to preserve
42149 2001-12-11 Robert Dewar <dewar@gnat.com>
42151 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42152 of conversion, not to result of conversion.
42154 2001-12-11 Ed Schonberg <schonber@gnat.com>
42156 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42157 before freezing parent. If the declarations are mutually recursive,
42158 an access to the current record type may be frozen before the
42159 derivation is complete.
42161 2001-12-05 Vincent Celier <celier@gnat.com>
42163 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42164 -c /COMPILE_ONLY, -l /LINK_ONLY
42167 (Bind_Only): New Flag
42168 (Link_Only): New flag
42170 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42173 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42176 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42177 (Gnatmake): Set the step flags. Only perform a step if the
42178 corresponding step flag is True.
42179 (Scan_Make_Arg): Reset the bind and link step flags when -u
42180 or -gnatc has been specified.
42182 2001-12-05 Ed Schonberg <schonber@gnat.com>
42184 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42185 get bounds from right operand.
42187 * sem_eval.adb: Minor reformatting
42189 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42190 than Index'First, its lower bound may be different from 1.
42192 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42195 2001-12-05 Vincent Celier <celier@gnat.com>
42197 * prj-nmsc.adb Minor reformatting
42199 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42200 set and libraries are not supported.
42202 2001-12-05 Ed Schonberg <schonber@gnat.com>
42204 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42205 private view explicitly, so the back-end can treat as a global
42208 2001-12-05 Ed Schonberg <schonber@gnat.com>
42210 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42211 unit, always replace instance node with new body, for ASIS use.
42213 2001-12-05 Vincent Celier <celier@gnat.com>
42215 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42216 libraries are not supported and both attributes Library_Name and
42217 Library_Dir are specified.
42219 * prj-proc.adb (Expression): Set location of Result to location of
42222 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42223 (prj-nmsc is now importing MLib.Tgt)
42225 * prj-proc.adb: Put the change indicated above that was forgotten.
42227 2001-12-05 Robert Dewar <dewar@gnat.com>
42229 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42231 2001-12-05 Ed Schonberg <schonber@gnat.com>
42233 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42234 constraint, introduce explicit subtype declaration and derive from it.
42236 * sem_ch3.adb: Minor reformatting
42238 2001-12-05 Robert Dewar <dewar@gnat.com>
42240 * checks.adb (Determine_Range): Increase cache size for checks.
42243 * exp_ch6.adb: Minor reformatting
42244 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42245 a parameter whose root type is System.Address, since treating such
42246 subprograms as pure in the code generator is almost surely a mistake
42247 that will lead to unexpected results.
42249 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42250 change handling of conversions.
42252 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42254 2001-12-05 Ed Schonberg <schonber@gnat.com>
42256 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42257 aggregate with static wrong size, attach generated Raise node to
42260 2001-12-05 Robert Dewar <dewar@gnat.com>
42262 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42263 Fixes compilation abandoned bomb in B24009B.
42265 2001-12-05 Ed Schonberg <schonber@gnat.com>
42268 Document use of Associated_Node on Selected_Components.
42269 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42270 to clarify use of untyped descendant fields.
42272 2001-12-05 Robert Dewar <dewar@gnat.com>
42274 * prj-dect.ads: Add ??? comment
42275 Add 2001 to copyright notice (was not done in after all)
42277 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42279 * prj.ads: Minor reformatting throughout, and add some ??? comments
42281 * snames.ads: Minor reformatting
42283 2001-12-05 Geert Bosch <bosch@gnat.com>
42285 * snames.adb: Autoupdate
42287 2001-12-05 Vincent Celier <celier@gnat.com>
42289 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42291 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42293 * prj-env.adb: Minor comment changes (modifying -> extends).
42295 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42297 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42300 * prj.adb (Initialize): Change Modifying to Extends.
42302 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42304 * prj.ads: Minor comment change (Modifying -> extending).
42306 * snames.ads: Change modifying to extends.
42308 2001-12-05 Robert Dewar <dewar@gnat.com>
42310 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42313 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42314 do this after all. Add 2001 to copyright notice
42316 2001-12-04 Geert Bosch <bosch@gnat.com>
42318 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42320 2001-12-04 Robert Dewar <dewar@gnat.com>
42322 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42323 location if we already have errors. Stops some cases of cascaded
42326 * errout.adb: Improve comment.
42328 2001-12-04 Robert Dewar <dewar@gnat.com>
42331 (Analyze_Formal_Type_Definition): Defend against Error.
42332 (Analyze_Formal_Subprogram): Defend against Error.
42334 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42335 remove following semicolon if present. Removes cascaded error.
42337 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42340 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42341 exceptions equals 0.
42342 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42343 Fixes PIWG E tests (which have to be run with -gnatL).
42345 2001-12-04 Robert Dewar <dewar@gnat.com>
42347 * einfo.ads: Minor reformatting
42349 2001-12-04 Ed Schonberg <schonber@gnat.com>
42351 * einfo.ads: Block_Node points to the identifier of the block, not to
42352 the block node itself, to preserve the link when the block is
42353 rewritten, e.g. within an if-statement with a static condition.
42355 * inline.adb (Cleanup_Scopes): recover block statement from block
42356 entity using new meaning of Block_Node.
42358 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42359 identifier of block node, rather than to node itself.
42361 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42364 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42365 (Discrimify): Go back to setting the Etypes of the selected component
42366 because the Vname component does not exist at this point and will
42367 fail name resolution. Also set Analyzed.
42368 Remove with and use of Sem_Res.
42370 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42372 * Makefile.in: (HIE_SOURCES): add s-fat*.
42374 2001-12-04 Robert Dewar <dewar@gnat.com>
42377 (Compile_Time_Known_Attribute): New procedure.
42378 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42379 proper range check.
42381 2001-12-04 Ed Schonberg <schonber@gnat.com>
42383 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42384 processing discriminants to diagnose illegal default values.
42386 2001-12-04 Ed Schonberg <schonber@gnat.com>
42388 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42389 access discriminant within a type extension that constrains its
42390 parent discriminants.
42392 2001-12-04 Ed Schonberg <schonber@gnat.com>
42394 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42395 is malformed, use instance of Any_Id to allow analysis to proceed.
42397 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42398 type definition is illegal.
42399 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42402 2001-12-04 Ed Schonberg <schonber@gnat.com>
42404 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42407 2001-12-04 Robert Dewar <dewar@gnat.com>
42409 * errout.adb: Minor reformatting
42411 2001-12-04 Robert Dewar <dewar@gnat.com>
42413 * exp_util.adb: Minor reformatting from last change
42415 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42416 which is a rewriting of an expression, traverse the original
42417 expression to remove warnings that may have been posted on it.
42419 2001-12-04 Ed Schonberg <schonber@gnat.com>
42421 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42422 record that has other packed components.
42424 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42426 * adaint.c: Minor cleanups.
42428 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42430 * adaint.c: Do not use utime.h on vxworks.
42432 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42434 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42435 more confusion than it solves.
42437 2001-12-04 Geert bosch <bosch@gnat.com>
42439 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42441 2001-12-04 Geert Bosch <bosch@gnat.com>
42443 * Makefile.in (update-sources): New target.
42444 For use by gcc_release script.
42446 2001-12-04 Ed Schonberg <schonber@gnat.com>
42448 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42449 a configuration pragma, it is now legal wherever a pragma can appear.
42451 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42453 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42454 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42455 is now @CROSS@ -DIN_GCC; update comment.
42457 2001-12-04 Robert Dewar <dewar@gnat.com>
42459 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42460 Fix problem that stopped ceinfo from working
42462 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42464 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42466 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42469 (File_Time_Stamp): New procedure.
42470 (Preserve_Mode): New boolean.
42471 (Write_Unit): Pass time stamp.
42472 Implement -p switch (preserve time stamps).
42474 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42476 * gnatchop.adb: Do usage info for -p switch
42478 * adaint.h (__gnat_set_file_time_name): New function
42480 * adaint.c (__gnat_set_file_time_name): Implement
42482 * adaint.h: Fix typo
42484 2001-12-03 Robert Dewar <dewar@gnat.com>
42486 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42487 have Associated_Node.
42489 2001-12-03 Robert Dewar <dewar@gnat.com>
42491 * prj-proc.adb: Minor reformatting
42493 * make.adb: Minor reformatting
42495 2001-12-03 Geert Bosch <bosch@gnat.com>
42497 * make.adb: Minor reformatting.
42499 2001-12-03 Robert Dewar <dewar@gnat.com>
42501 * sem_ch12.adb: Minor reformatting
42503 2001-12-03 Ed Schonberg <schonber@gnat.com>
42505 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42506 push Standard on the stack before analyzing the instance body,
42507 in order to have a clean visibility environment.
42509 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42511 2001-12-03 Ed Schonberg <schonber@gnat.com>
42513 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42514 instantiation of a body that contains an inlined body.
42516 2001-12-03 Ed Schonberg <schonber@gnat.com>
42519 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42520 to prevent freezing within formal packages.
42521 (Freeze_Subprogram_Body): If body comes from another instance that
42522 appeared before its own body, place freeze node at end of current
42523 declarative part, to prevent a back-end crash.
42524 (Inline_Instance_Body): Handle properly a package instance within
42525 a subprogram instance that is a child unit.
42527 2001-12-01 Graham Stott <grahams@redhat.com>
42529 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42530 and add optabs.h dependency.
42532 * misc.c: Include optabs.h
42533 (gnat_tree_code_type): Make static and const.
42534 (gnat_tree_code_length): Likewise.
42535 (gnat_tree_code_name): Likewise.
42536 (update_setjmp_buf): Obtain operands mode from insn_data.
42538 2001-11-29 Richard Henderson <rth@redhat.com>
42540 * init.c: Remove obsolete dwarf2 frame.h section.
42542 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42544 * Make-lang.in (ada.generated-manpages): New dummy target.
42546 2001-11-29 Ed Schonberg <schonber@gnat.com>
42548 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42549 into Command, an array conversion is illegal here. Uncovered by
42552 2001-11-28 Geert Bosch <bosch@gnat.com>
42554 * init.c: Minor whitespace changes.
42556 2001-11-28 Doug Rupp <rupp@gnat.com>
42558 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42561 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42563 * misc.c (gnat_expand_constant): Move declaration above
42564 definition of lang_hooks.
42565 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42566 (gnat_init): lang_expand_constant no longer exists.
42568 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42569 always have vprintf.
42570 (gnat_init): Always call set_internal_error_function.
42572 2001-11-27 Andreas Jaeger <aj@suse.de>
42574 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42576 2001-11-27 Laurent Guerby <guerby@acm.org>
42578 * Makefile.in: Regenerate Ada dependencies.
42580 2001-11-26 Richard Henderson <rth@redhat.com>
42582 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42583 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42584 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42586 2001-11-25 Laurent Guerby <guerby@acm.org>
42588 * sysdep.c (rts_get_*): Fix style.
42590 2001-11-19 Laurent Guerby <guerby@acm.org>
42592 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42593 since it is of no apparent use and cause warnings.
42595 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42597 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42599 (gnat_init): Don't return NULL.
42600 (finish_parse): Remove.
42602 2001-11-17 Laurent Guerby <guerby@acm.org>
42604 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42605 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42606 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42607 * lang-spec.h: Add missing struct field to silence warnings.
42608 * sysdep.c (rts_get_*): Provide K&R prototype.
42609 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42610 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42611 * tracebak.c (__gnat_backtrace): Remove unused variable.
42612 * utils.c (end_subprog_body): Move to K&R style.
42614 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42616 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42618 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42620 * misc.c (gnat_init): Change prototype. Include the
42621 functionality of the old init_parse and init_decl_processing.
42622 (gnat_init_decl_processing): New prototype.
42623 (init_parse): Remove.
42624 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42626 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42628 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42629 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42630 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42631 set_yydebug): Remove.
42633 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42635 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42636 (struct lang_hooks): Constify.
42637 (language_string, lang_identify): Remove.
42638 * utils.c (init_decl_processing): Update.
42640 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42642 * misc.c: Include langhooks-def.h.
42643 * Makefile.in: Update.
42645 2001-10-30 Robert Dewar <dewar@gnat.com>
42648 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42649 in the upper half of ASCII.
42650 (Check_Identifier): Minor reformatting
42652 2001-10-30 Geert Bosch <bosch@gnat.com>
42654 * (Associated_Node, Set_Associated_Node): Do not check for
42657 2001-10-30 Robert Dewar <dewar@gnat.com>
42659 * a-reatim.ads: Minor reformatting
42661 2001-10-30 Robert Dewar <dewar@gnat.com>
42663 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42664 undocumented declarations.
42666 2001-10-30 Pascal Obry <obry@gnat.com>
42668 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42669 to the binder and linker.
42672 * mdll.ads: Fix layout. Update copyright notice.
42674 * mdll.adb: Fix layout. Update copyright notice.
42676 2001-10-30 Robert Dewar <dewar@gnat.com>
42678 * usage.adb: Minor fix to output for -gnaty.
42680 2001-10-30 Ed Schonberg <schonber@gnat.com>
42682 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42683 to accommodate all its possible values.
42685 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42686 and of small absolute values of T.
42688 2001-10-30 Richard Kenner <kenner@gnat.com>
42690 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42691 set_mem_attributes since not needed and wrong if RESULT if a REG;
42692 fixes ACATS failures.
42694 2001-10-30 Geert Bosch <bosch@gnat.com>
42696 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42697 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42699 2001-10-30 Robert Dewar <dewar@gnat.com>
42701 * bindusg.adb: Undocument -f switch.
42703 * gnatcmd.adb: Remove /FULL_ELABORATION.
42705 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42708 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42710 * gnatbind.adb: Minor update of warning msg.
42712 2001-10-30 Vincent Celier <celier@gnat.com>
42714 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42715 for project file switches (-P (/PROJECT_FILE=),
42716 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42719 2001-10-30 Geert Bosch <bosch@gnat.com>
42721 * decl.c: Minor whitespace fixes.
42723 2001-10-30 Richard Kenner <kenner@gnat.com>
42725 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42727 2001-10-30 Geert Bosch <bosch@gnat.com>
42729 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42730 Found due to GCC 3.0 warning of using uninitialized value.
42733 (Get_Max_Size): Use variant record for tracking value/expression.
42734 Makes logic clearer and prevents warnings for uninitialized variables.
42735 (Layout_Array_Type): Use variant record for tracking value/expression.
42736 Makes logic clearer and prevents warnings for uninitialized variables.
42738 2001-10-30 Robert Dewar <dewar@gnat.com>
42740 * lib.adb: Minor reformatting
42742 * s-taprop.ads: Minor reformatting
42744 2001-10-29 Laurent Guerby <guerby@acm.org>
42747 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42749 (_gnat_error_handler): Make MSG const.
42751 2001-10-29 Richard Kenner <kenner@gnat.com>
42753 * sysdep.c: Fix localtime_r problem on LynxOS.
42754 Also remove #elif to avoid warnings.
42756 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42759 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42761 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42763 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42764 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42765 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42766 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42767 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42768 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42769 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42770 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42771 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42772 types.ads, urealp.adb: Fix spelling errors.
42774 2001-10-27 Laurent Guerby <guerby@acm.org>
42776 * trans.c (gigi): Fix non determinism leading to bootstrap
42777 comparison failures for debugging information.
42779 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
42781 * gnat_rm.texi: Use @./@: where appropriate.
42783 2001-10-26 Robert Dewar <dewar@gnat.com>
42785 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42787 2001-10-26 Richard Kenner <kenner@gnat.com>
42789 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42791 2001-10-26 Richard Kenner <kenner@gnat.com>
42793 * decl.c (validate_size): Modify message for bad size to avoid
42794 implication that compiler is modifying the size.
42796 2001-10-26 Robert Dewar <dewar@gnat.com>
42798 * prj-util.adb: Minor reformatting. Fix bad header format.
42800 2001-10-26 Robert Dewar <dewar@gnat.com>
42802 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42804 * sinfo.ads: Clarify use of Associated_Node (documentation only).
42806 * sem_ch12.adb: Change Node4 to Associated_Node. Change
42807 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42808 much more narrowly in places where needed. These are cleanups.
42810 2001-10-26 Joel Brobecker <brobecke@gnat.com>
42812 * 5zosinte.ads (null_pthread): new constant.
42815 (Initialize_TCB): Initialize thread ID to null, to be able to verify
42816 later that this field has been set.
42817 (Finalize_TCB): ditto.
42818 (Suspend_Task): Verify that the thread ID is not null before using it.
42819 (Resume_Task): ditto.
42822 (Resume_All_Tasks): Lock the tasks list before using it.
42823 (Suspend_All_Tasks): ditto.
42825 2001-10-26 Richard Kenner <kenner@gnat.com>
42827 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42828 Make constant variant of designated type for Is_Access_Constant.
42829 Call update_pointer_to with main variant.
42831 * trans.c (process_freeze_entity, process_type):
42832 Call update_pointer_to on main variant.
42834 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42835 If main variant, update all other variants.
42837 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42840 2001-10-26 Robert Dewar <dewar@gnat.com>
42842 * prj-util.adb: Minor reformatting
42844 2001-10-26 Robert Dewar <dewar@gnat.com>
42846 * prj-util.adb: Minor reformatting
42848 2001-10-26 Robert Dewar <dewar@gnat.com>
42850 * prj-attr.adb: Minor reformatting throughout
42852 2001-10-26 Robert Dewar <dewar@gnat.com>
42854 * prj-attr.ads: Minor reformatting
42855 Add ??? comment (this whole spec has almost no comments)
42857 2001-10-26 Vincent Celier <celier@gnat.com>
42859 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42860 ("//") that precede the drive letter on Interix.
42862 2001-10-26 Geert Bosch <bosch@gnat.com>
42864 * gnat_rm.texi: Add GNAT Reference Manual.
42866 2001-10-25 Robert Dewar <dewar@gnat.com>
42868 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42869 is Error. Similar change for other renaming cases.
42871 2001-10-25 Robert Dewar <dewar@gnat.com>
42873 * s-atacco.ads: Add pragma Inline_Always for functions.
42874 Fix header format. Add copyright 2001
42876 2001-10-25 Ed Schonberg <schonber@gnat.com>
42878 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42879 return Error rather than Empty so that analysis can proceed.
42881 2001-10-25 Ed Schonberg <schonber@gnat.com>
42883 * sem_util.adb (Enter_Name): better handling of cascaded error
42884 messages when a unit appears in its own context.
42886 2001-10-25 Ed Schonberg <schonber@gnat.com>
42888 * sem_util.adb (Defining_Entity): in case of error, attach created
42889 entity to specification, so that semantic analysis can proceed.
42891 2001-10-25 Robert Dewar <dewar@gnat.com>
42894 (Defining_Entity): Deal with Error.
42895 (Process_End_Label): Deal with bad end label for.
42897 2001-10-25 Ed Schonberg <schonber@gnat.com>
42899 * sem_elab.adb (Check_A_Call): refine message when call is in an
42900 instance but callee is not declared in the generic unit.
42902 2001-10-25 Ed Schonberg <schonber@gnat.com>
42904 * sem_elab.adb (Check_A_Call): check for renaming before finding the
42905 enclosing unit, which may already be different from the calling unit.
42907 2001-10-25 Geert Bosch <bosch@gnat.com>
42909 * 4gintnam.ads: fix header format.
42911 2001-10-25 Ed Schonberg <schonber@gnat.com>
42913 * sem_res.adb (Resolve_Call): if the call is actually an indexing
42914 operation on the result of a parameterless call, perform elaboration
42915 check after the node has been properly rewritten.
42917 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42918 inlined within the generic tree, the defining identifier is not a
42921 2001-10-25 Ed Schonberg <schonber@gnat.com>
42923 * sem_res.adb (Resolve): special-case resolution of Null in an
42924 instance or an inlined body to avoid view conflicts.
42926 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42927 compatibility by retrieving the access type of the generic copy.
42929 2001-10-25 Robert Dewar <dewar@gnat.com>
42932 (Analyze_Number_Declaration): Handle error expression.
42933 (Signed_Integer_Type_Declaration): Handle error bound.
42934 (Analyze_Subtype_Indication): Handle error range.
42936 * sem_util.adb (Get_Index_Bounds): Check for Error.
42938 2001-10-25 Robert Dewar <dewar@gnat.com>
42940 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42941 in no run time mode.
42943 2001-10-25 Pascal Obry <obry@gnat.com>
42945 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42946 mode case for ALLOC case.
42948 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42949 all platforms. Improvement of last change.
42951 2001-10-25 Robert Dewar <dewar@gnat.com>
42953 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42955 2001-10-25 Geert Bosch <bosch@gnat.com>
42957 * osint.adb (Is_Relative): Remove duplicate.
42959 2001-10-25 Pascal Obry <obry@gnat.com>
42961 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42962 pathnames in UNIX and DOS style with drive letter.
42963 (Is_Relative): new routine.
42965 * osint.adb: Minor reformatting
42967 * osint.adb (Is_Relative): implementation using
42968 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42970 2001-10-25 Pascal Obry <obry@gnat.com>
42972 * g-dirope.adb (Basename): correctly compute offset between the
42973 original Path and the translated one.
42975 * g-dirope.adb: (Base_Name): add some comments.
42977 2001-10-25 Robert Dewar <dewar@gnat.com>
42979 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42980 in HIE mode, avoids compilation abandoned message
42982 * exp_imgv.adb: Correct typo in previous change
42984 * exp_imgv.adb: Correct typo in previous change (not my day!)
42986 2001-10-25 Robert Dewar <dewar@gnat.com>
42988 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42990 2001-10-25 Pascal Obry <obry@gnat.com>
42992 * g-awk.ads: Move all pragma inlines next to the routine
42993 declarations. This is more uniform with other GNAT spec.
42995 2001-10-22 Geert Bosch <bosch@gnat.com>
42997 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42999 2001-10-19 Geert Bosch <bosch@gnat.com>
43001 * Makefile.in (tools, gnattools): Remove gnatmem.
43003 2001-10-17 Richard Henderson <rth@redhat.com>
43005 * Makefile.in (misc.o): Depend on langhooks.h.
43006 * misc.c: Include it.
43007 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43008 (LANG_HOOKS_DECODE_OPTION): New.
43009 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43011 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43013 * trans.c (tree_transform): Adjust to recent change in
43014 expand_asm_operands to implement named asm operands.
43016 2001-10-11 Ed Schonberg <schonber@gnat.com>
43018 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43019 renaming of discriminant for mutable record type.
43021 2001-10-11 Robert Dewar <dewar@gnat.com>
43023 * validsw.adb: Properly save -gnatVn status.
43025 2001-10-11 Robert Dewar <dewar@gnat.com>
43027 * usage.adb: Add lines for V switch.
43029 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43030 (/VALIDITY_CHECKING).
43032 2001-10-11 Ed Schonberg <schonber@gnat.com>
43034 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43035 an extension of System is known to be visible.
43037 2001-10-11 Ed Schonberg <schonber@gnat.com>
43039 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43040 properly. Fixes regression on ACATS C34005G.
43042 2001-10-11 Robert Dewar <dewar@gnat.com>
43044 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43045 loop in generic instance, since this is likely not very useful.
43047 2001-10-11 Robert Dewar <dewar@gnat.com>
43049 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43050 the error message for high integrity mode.
43052 * rtsfind.adb (RTE): Give message if we try to find an entity that
43053 is not available in high integrity mode.
43056 (OK_To_Use_In_HIE_Mode): New array.
43057 (RTE): May return Empty in high integrity mode.
43059 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43060 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43062 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43063 unit if not inlined always and in no runtime mode. Fixes problem
43064 caused by new Rtsfind changes.
43066 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43069 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43070 giving message for entity not available in high integrity mode.
43072 2001-10-11 Pascal Obry <obry@gnat.com>
43074 * impunit.adb: Add GNAT.CRC32.
43076 2001-10-11 Ed Schonberg <schonber@gnat.com>
43078 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43079 properly the case where one universal operand in a non-static
43080 exponentiation of a real literal.
43082 2001-10-11 Ed Schonberg <schonber@gnat.com>
43084 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43085 clause, return the gobal finalization list, for lack of anthing else.
43087 2001-10-11 Ed Schonberg <schonber@gnat.com>
43089 * exp_ch7.adb (Make_Transient_Block): if statement is within
43090 exception handler, always use new transient scope to place Clean
43093 2001-10-11 Pascal Obry <obry@gnat.com>
43096 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43097 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43098 (GNATLS_RTL_OBJS): add g-crc32.o
43099 (GNATMAKE_RTL_OBJS): add g-crc32.o
43102 (CRC_Match): new function.
43103 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43104 instead of the previous simple checksum algorithm.
43105 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43106 (Set_Source_Table): idem.
43109 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43110 instead of simple checksum.
43111 (CRC_Match): new function.
43112 (CRC_Error): new constant.
43114 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43115 a CRC now and not a simple checksum. A CRC uses lower-case hex
43116 letters, fixes ambiguity in parsing.
43118 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43119 is what this variable will store.
43121 * bcheck.adb: Change reference to chechsum in comments by CRC.
43122 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43123 rename All_Checksum_Match to All_CRC_Match. Change due to API
43124 renaming since now GNAT does not use a simple checksum but a
43125 CRC using GNAT.CRC32.
43127 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43128 now and not anymore a simple checksum.
43130 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43133 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43136 (Restore_Scan_State): rename Checksum to CRC.
43137 (Save_Scan_State): idem.
43141 (Checksum): rename to CRC.
43142 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43144 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43145 GNAT.CRC32). Update copyright notice.
43147 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43148 GNAT.CRC32). Update copyright notice.
43151 (Accumulate_Checksum): removed.
43152 (Update): new procedure. Add a wide-character into the CRC.
43155 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43156 (Load_File): fix initialization of S (change Source_Checksum to
43159 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43160 Source_CRC in S initialization.
43162 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43164 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43165 Update comments for the CRC.
43167 * types.adb (Hex): Use lowercase for the letter part.
43169 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43170 for a word. This is currently used only for CRC. In previous version,
43171 the checksum was using a representation with all letter being
43172 upper-case. With the new implementation (using CRC) we do not remove
43173 the 32th bit of the CRC, so we can have an upper-case starting letter
43174 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43175 It is ambigous since the CRC was optional and could be followed by
43176 options like EB, EE. So now this routines uses lower-case letter for
43177 the hexadecimal representation. Strange enough only lower case letters
43178 where checked in Scan_ALI (even if this was not a possible case).
43180 * gnatvsn.ads (Library_Version): changed to 3.15a.
43182 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43185 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43188 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43189 Add 2001 to copyright notice
43190 (Accumulate_Checksum): Modify to use System.CRC32.
43192 * ali-util.ads: Redo changes of previous revision to continue to use
43193 the word Checksum. Add 2001 to copyright notice.
43195 * ali.adb: Undo some of previous changes, not needed.
43196 Keep the change for lower case letters in the checksum.
43198 * ali.ads: Undo previous change not needed.
43200 * bcheck.adb: Undo most of previous change, not needed.
43201 But do use Checksums_Match for checksum comparison.
43203 * gnatls.adb: Undo most of previous change, not needed.
43204 But do use Checksums_Match for comparing checksums.
43206 * lib-load.adb: Undo previous change, not needed.
43208 * lib-writ.adb: Undo previous change, not needed.
43210 * lib-writ.ads: Document that checksums use lower case,
43211 not upper case letters.
43213 * scans.adb: Undo previous change, not needed
43215 * scans.ads: Undo previous change, not needed.
43217 * scn-nlit.adb: Undo previous changes, not needed.
43219 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43222 (Accumulate_Checksum): Use System.CRC32.
43223 (Initialize_Checksum): New procedure.
43224 Remove other changes of previous revision.
43226 * sinput-p.adb: Undo previous change, not needed.
43228 * sinput.adb: Undo previous change, not needed.
43230 * sinput-l.adb: Undo previous change, not needed.
43232 * sinput.ads: Undo previous change, not needed. Keep only comment
43233 on new checksum algorithm
43235 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43236 Also remove a-tags and a-stream from GNAT sources.
43238 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43240 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43242 2001-10-11 Geert Bosch <bosch@gnat.com>
43244 * einfo.h: Regenerate.
43246 * nmake.ads: Regenerate.
43248 * nmake.adb: Regenerate.
43250 * sinfo.h: Regenerate.
43252 * treeprs.adb: Regenerate.
43254 2001-10-10 Geert Bosch <bosch@gnat.com>
43256 * gnat-style.texi: New file describing coding guidelines for Ada.
43258 2001-10-10 Ed Schonberg <schonber@gnat.com>
43260 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43263 2001-10-10 Geert Bosch <bosch@gnat.com>
43265 * snames.ads: Add new names for project facility.
43267 * snames.adb: Update to reflect snames.ads changes.
43269 * snames.h: Update to reflect snames.ads changes.
43271 2001-10-10 Vincent Celier <celier@gnat.com>
43274 (Add_Switches): reflect the changes for the switches attributes
43275 Default_Switches indexed by the programming language,
43276 Switches indexed by the file name.
43277 (Collect_Arguments_And_Compile): Idem.
43278 Reflect the attribute name changes.
43281 (Initialisation_Data): Change the names of some packages and
43283 (Initialize): process case insensitive associative arrays.
43286 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43289 (Parse_Attribute_Declaration): For case insensitive associative
43290 arrays, set the index string to lower case.
43293 Reflect the changes of the project attributes.
43296 Replace Check_Naming_Scheme by Ada_Check and
43297 Language_Independent_Check.
43300 Replaced Check_Naming_Scheme by 2 procedures:
43301 Ada_Check and Language_Independent_Check.
43304 (Process_Declarative_Items): For case-insensitive associative
43305 arrays, set the index string to lower case.
43306 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43307 Prj.Nmsc.Check_Naming_Scheme.
43310 (Case_Insensitive): New function
43311 (Set_Case_Insensitive): New procedure
43314 (Case_Insensitive): New function
43315 (Set_Case_Insensitive): New procedure
43316 (Project_Node_Record): New flag Case_Insensitive.
43319 (Value_Of): new function to get the string value of a single
43320 string variable or attribute.
43323 (Value_Of): new function to get the string value of a single
43324 string variable or attribute.
43327 (Ada_Default_Spec_Suffix): New function
43328 (Ada_Default_Impl_Suffix): New function
43329 Change definitions of several constants to reflect
43330 new components of record types.
43333 (Naming_Data): Change several components to reflect new
43334 elements of naming schemes.
43335 (Project_Data): New flags Sources_Present and
43336 Language_Independent_Checked.
43337 (Ada_Default_Spec_Suffix): New function.
43338 (Ada_Default_Impl_Suffix): New function.
43341 Modification of predefined names for project manager: added
43342 Implementation, Specification_Exceptions, Implementation_Exceptions,
43343 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43344 Default_Switches, _Languages, Builder, Cross_Reference,
43345 Finder. Removed Body_Part, Specification_Append, Body_Append,
43346 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43349 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43352 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43353 not that it is Nil_Variable_Value.
43355 * prj.ads: Add ??? for uncommented declarations
43357 2001-10-10 Ed Schonberg <schonber@gnat.com>
43359 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43360 constant, do not indicate possible modification, so that gigi can
43361 treat it as a bona fide constant.
43363 2001-10-10 Robert Dewar <dewar@gnat.com>
43365 * sem_prag.adb: Add processing for pragma External.
43367 * snames.ads: Add entry for pragma External.
43369 * par-prag.adb: Add pragma External.
43371 * snames.adb: Updated to match snames.ads.
43373 2001-10-10 Ed Schonberg <schonber@gnat.com>
43375 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43376 a dynamic task if the allocator appears in an indexed assignment
43377 or selected component assignment.
43379 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43380 For a dynamic task in an assignment statement, use target of
43381 assignment to generate meaningful name.
43383 2001-10-10 Ed Schonberg <schonber@gnat.com>
43385 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43388 * einfo.ads: Body_Entity is also defined for generic package.
43389 Documentation change only
43391 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43392 others_choice for a discriminated component initialization,
43393 convert discriminant references into the corresponding discriminals.
43395 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43396 only if original type is private and expression has to be wrapped
43400 (Apply_Constraint_Check): Do not perform length check
43401 if expression is an aggregate with only an others_choice.
43402 (Length_N_Cond): two references to the same in_parameter
43403 (typically the discriminal in an init_proc) denote the same value.
43404 Two useful optimization uncovered by bugfixes above.
43406 2001-10-10 Robert Dewar <dewar@gnat.com>
43408 * xeinfo.adb: Change int to char in translation of enumeration types.
43409 This fixes a problem in the C representation of component alignment.
43410 Add 2001 to copyright notice
43412 2001-10-10 Richard Kenner <kenner@gnat.com>
43414 * decl.c: (validate_size): Do check size of object of integral type
43415 if it is a packed array type.
43417 2001-10-10 Richard Kenner <kenner@gnat.com>
43419 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43420 VAR_DECL for constant if not Is_Public but -O0.
43422 2001-10-10 Richard Kenner <kenner@gnat.com>
43424 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43426 2001-10-10 Geert Bosch <bosch@gnat.com>
43428 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43429 use '/' as switch character, allowing for absolute file names.
43431 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43433 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43436 2001-10-08 Geert Bosch <bosch@gnat.com>
43438 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43439 Automatically build utilities when files need to be regenerated.
43441 2001-10-08 Geert Bosch <bosch@gnat.com>
43443 * xsnames.adb: New utility for updating snames.ads and snames.adb
43445 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43447 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43448 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43449 (gnat1): Also depend on attribs.o.
43450 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43451 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43452 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43453 (ADAFLAGS): Add -W -Wall.
43454 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43457 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43458 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43459 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43460 Use $(ADAC), not $(CC), as compilation command.
43462 (gnattools): Depend directly on tools to build, don't use
43464 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43466 * einfo.h, sinfo.h: New files (autogenerated).
43468 2001-10-08 Richard Henderson <rth@redhat.com>
43470 * comperr.adb (Abort_In_Progress): New.
43471 (Compiler_Abort): Use it to prevent recursion.
43473 2001-10-08 Robert Dewar <dewar@gnat.com>
43475 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43477 * par-endh.adb (Output_End_Expected): We should also not test
43478 Error_Posted on the Error node, since now it is always set.
43480 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43481 to help error recovery. Part of general work on 9407-004.
43483 * par.adb: Add ??? for misuse of error
43486 (Resolve): Defend against Error, fixes 9407-003.
43487 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43489 * sinfo.ads (N_Error): Now has Etype field (which will be set
43490 to Any_Type to help error recovery).
43492 2001-10-08 Richard Kenner <kenner@gnat.com>
43494 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43495 Consistently set MEM attributes from expression; fixes
43496 bootstrap failure on x86.
43498 2001-10-08 Geert Bosch <bosch@gnat.com>
43500 * 5oosinte.adb: Add 2001 to copyright notice.
43502 2001-10-08 Geert Bosch <bosch@gnat.com>
43504 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43506 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43508 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43510 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43512 2001-10-05 Geert Bosch <bosch@gnat.com>
43514 * adaint.h: Small formatting fix.
43516 2001-10-04 Geert Bosch <bosch@gnat.com>
43518 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43519 Arg is int, not FILE *, in dummy version of functions.
43521 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43522 Arg is int, not FILE *.
43524 2001-10-04 Geert Bosch <bosch@gnat.com>
43526 * 3lsoccon.ads: Added file, missed with initial check ins.
43528 * 4lintnam.ads: Fix header format.
43529 Change Linux to GNU/Linux.
43531 * 5iosinte.adb: Change Linux to GNU/Linux.
43533 * 5iosinte.ads: Change Linux to GNU/Linux.
43535 * 5itaprop.adb: Change Linux to GNU/Linux.
43537 * 5itaspri.ads: Change Linux to GNU/Linux.
43538 Update copyright notice.
43540 * 5lintman.adb: Change Linux to GNU/Linux.
43542 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43544 * 5losinte.ads: Change Linux to GNU/Linux.
43546 * 5lsystem.ads: Change Linux to GNU/Linux.
43548 * 5qosinte.adb: Change Linux to GNU/Linux.
43550 * 5qosinte.ads: Change Linux to GNU/Linux.
43552 * 5qparame.ads: Change Linux to GNU/Linux.
43554 * 5qtaprop.adb: Change Linux to GNU/Linux.
43556 * 5qtaspri.ads: Change Linux to GNU/Linux.
43557 Add 2001 to copyright notice.
43559 * 5vintman.ads: Change Linux to GNU/Linux.
43560 Fix header format. Add 2001 to copyright notice.
43562 * g-soccon.ads: Change Linux to GNU/Linux.
43564 * g-trasym.ads: Change Linux to GNU/Linux.
43565 Add 2001 to copyright notice.
43567 * memtrack.adb: Change Linux to GNU/Linux.
43569 * s-intman.ads: Change Linux to GNU/Linux.
43570 Add 2001 to copyright notice. Fix header format.
43572 * s-stache.adb: Change Linux to GNU/Linux.
43574 * adaint.c: Change Linux to GNU/Linux.
43576 * cio.c: Change Linux to GNU/Linux.
43578 * cstreams.c: Change Linux to GNU/Linux.
43580 * init.c: Change Linux to GNU/Linux.
43582 * gmem.c: Change Linux to GNU/Linux.
43584 * tracebak.c: Change Linux to GNU/Linux.
43587 2001-10-02 Geert Bosch <bosch@gnat.com>
43589 * misc.c (insert_default_attributes): Add dummy version.