1 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
3 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
4 generate an assignment loop in case of overlap.
6 2009-04-16 Olivier Hainque <hainque@adacore.com>
8 * gnat_ugn.texi (gnatmem description): Make it explicit that
9 gnatmem is designed to work in association with static runtime
12 2009-04-16 Thomas Quinot <quinot@adacore.com>
14 * sem_type.adb: Minor reformatting
16 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
18 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
19 concerning return codes of gettimeofday and return value check.
21 2009-04-16 Ed Falis <falis@adacore.com>
23 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
24 body can be renaming of imported routines.
26 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
28 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
31 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
33 * exp_ch9.adb: Comment improvements.
34 (Build_Entry_Family_Name): Add parentheses around the index of a entry
37 2009-04-15 Bob Duff <duff@adacore.com>
39 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
40 "while X /= null loop" where X is unchanged inside the loop. We were
41 not warning in this case, because of the pointers -- we feared that the
42 loop variable could be updated via a pointer, if there are any pointers
43 around the place. But that is impossible in this case.
45 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
46 the case of dereferences. In X.all, X cannot be an l-value. We now
47 catch that case (and implicit dereferences, too).
49 2009-04-15 Vincent Celier <celier@adacore.com>
51 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
53 2009-04-15 Ed Schonberg <schonberg@adacore.com>
55 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
57 (Analyze_Package_Instantiation): If generic unit in child instance is
58 the same as generic unit in parent instance, look for an outer homonym
59 to locate the desired generic.
61 2009-04-15 Bob Duff <duff@adacore.com>
63 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
64 warnings unless the loop comes from source, because checking generated
65 loops is a waste of time, and makes it harder to debug
66 Check_Infinite_Loop_Warning.
68 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
69 tested in the while loop is a renaming, do not warn. Otherwise, we get
70 false alarms, because it's usually renaming something that we can't
71 deal with (an indexed component, a global variable, ...).
73 * gnat_rm.texi: Fix typo
75 2009-04-15 Thomas Quinot <quinot@adacore.com>
77 * sem_ch6.adb: Minor reformatting
79 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
81 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
82 immediate parent of the controlled function call is a component
85 2009-04-15 Ed Schonberg <schonberg@adacore.com>
87 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
88 corresponding class-wide type is also in use.
90 2009-04-15 Thomas Quinot <quinot@adacore.com>
92 * frontend.adb: Minor comment fix
94 2009-04-15 Robert Dewar <dewar@adacore.com>
96 * gnatchop.adb (BOM_Length): New global variable
97 (Write_Unit): Add new parameter Write_BOM
98 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
101 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
103 2009-04-15 Geert Bosch <bosch@adacore.com>
105 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
106 (Backend_Overflow_Checks): Set to True.
108 2009-04-15 Gary Dismukes <dismukes@adacore.com>
110 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
111 keyword is given in a record extension.
113 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
115 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
116 of a controlled function call in the context of a record aggregate.
117 This does not apply to array aggregates since the call will be expanded
120 2009-04-15 Ed Falis <falis@adacore.com>
122 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
123 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
124 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
125 s-osinte-vxworks* and s-vxwext*.
127 2009-04-15 Arnaud Charlet <charlet@adacore.com>
129 * gcc-interface/Make-lang.in: Update dependencies.
131 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
134 2009-04-15 Robert Dewar <dewar@adacore.com>
136 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
137 of node for location for warning messages.
139 * gnatchop.adb: Minor reformatting
141 2009-04-15 Ed Schonberg <schonberg@adacore.com>
143 * exp_ch6.adb: additional guard for renaming declarations for in
144 parameters of an array type.
146 2009-04-15 Robert Dewar <dewar@adacore.com>
148 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
149 in case they were rewritten by expander (Force_Evaluation).
151 * targparm.adb (Get_Target_Parameters): Correct check for
152 Suppress_Exception_Locations.
154 2009-04-15 Ed Schonberg <schonberg@adacore.com>
156 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
157 inlined is of an array type that is not bit-packed, use a renaming
158 declaration to capture its value, rather than a constant declaration.
160 2009-04-15 Robert Dewar <dewar@adacore.com>
162 * rtsfind.adb: Minor reformatting.
164 2009-04-15 Emmanuel Briot <briot@adacore.com>
166 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
167 Restore, and free the saved context.
169 2009-04-15 Gary Dismukes <dismukes@adacore.com>
171 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
172 for illegal private extension from a synchronized interface parent in
173 front of check for illegal limited extension so that limited extension
174 from a synchronized interface will be rejected.
175 (Check_Ifaces): Check that a private extension that has a synchronized
176 interface as a progenitor must be explicitly declared synchronized.
177 Also check that a record extension cannot derive from a synchronized
180 2009-04-15 Pascal Obry <obry@adacore.com>
182 * adaint.h (__gnat_unlink): Add spec.
183 (__gnat_rename): Likewise.
185 2009-04-15 Vincent Celier <celier@adacore.com>
187 * prj-nmsc.adb: Minor spelling error corrections in error messages
189 2009-04-15 Robert Dewar <dewar@adacore.com>
191 * sinfo.ads: Minor comment update
193 * opt.ads: Minor comment updates
195 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
198 2009-04-15 Ed Schonberg <schonberg@adacore.com>
200 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
201 that generates the code needed to update a dispatch table when a
202 primitive operation is declared with a subprogram body without previous
203 spec. Insertion of the generated code is responsibility of the caller.
204 (Make_DT): When building static tables, append the code created by
205 Register_Primitive to update a secondary table after it has been
208 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
210 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
211 on an overriding operation that implements an interface operation only
212 if not building static dispatch tables.
214 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
216 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
217 does not cause overflow when converted to Duration. Use the safe value
218 as the maximum allowable time delay..
220 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
222 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
223 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
224 translated to "-j 2".
226 2009-04-15 Bob Duff <duff@adacore.com>
228 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
229 with_clauses, to avoid code duplication. Change this processing so we
230 always add a with_clause on the main unit if needed.
232 2009-04-15 Pascal Obry <obry@adacore.com>
234 Add support for Win32 native encoding for delete/rename routines.
236 * adaint.c (__gnat_unlink): New routine.
237 (__gnat_rename): New routine.
238 Simple wrapper routines used to convert to proper encoding on
241 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
242 call to the C library.
244 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
246 2009-04-15 Robert Dewar <dewar@adacore.com>
248 * s-tassta.adb: Minor reformatting
250 2009-04-15 Robert Dewar <dewar@adacore.com>
252 * frontend.adb (Frontend): Set proper default for
253 Warn_On_Non_Local_Exception.
255 * opt.ads (Exception_Handler_Encountered): New flag
256 (No_Warn_On_Non_Local_Exception): New flag
258 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
260 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
261 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
263 2009-04-15 Cyrille Comar <comar@adacore.com>
265 * s-tassta.adb, a-exextr.adb, a-elchha.adb
266 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
267 message when exception traces are active since it would generate
268 redundant information.
269 (Exception_Traces.Notify_Exception): put message output by a critical
270 section to avoid unsynchronized output.
271 (Trace_Unhandled_Exception_In_Task): put message output by a critical
272 section to avoid unsynchronized output.
274 2009-04-15 Emmanuel Briot <briot@adacore.com>
276 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
277 (Free): New subprogram.
279 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
281 * a-calend.adb: Add new constant Nanos_In_Four_Years.
282 (Formatting_Operations.Time_Of): Change the way four year chunks of
283 nanoseconds are added to the intermediate result.
285 2009-04-15 Nicolas Setton <setton@adacore.com>
287 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
288 does not need to wait for a carriage return.
290 2009-04-15 Tristan Gingold <gingold@adacore.com>
292 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
295 2009-04-15 Ed Schonberg <schonberg@adacore.com>
297 * freeze.adb (Freeze_Entity): improve error message for improper use of
299 Diagnose additional illegal uses of incomplete types in formal parts.
300 appearing in formal parts.
302 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
304 2009-04-15 Robert Dewar <dewar@adacore.com>
306 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
308 2009-04-15 Nicolas Roche <roche@adacore.com>
310 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
313 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
315 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
317 2009-04-15 Ed Schonberg <schonberg@adacore.com>
319 * sem_ch4.adb: improve error message on exponentiation.
321 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
323 * a-calend.adb: Move constant Epoch_Offset from package
324 Conversion_Operations to top level.
325 (Delay_Operations.To_Duration): Define a constant which represents
326 "end of time" and use it as a guard against very distant delay dates.
327 Protect the code against overflow when performing the origin shift to
330 2009-04-15 Robert Dewar <dewar@adacore.com>
332 * sem_prag.adb: Minor reformatting.
334 * sem_type.adb: Minor reformatting
336 2009-04-15 Javier Miranda <miranda@adacore.com>
338 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
339 support to check eliminated subprograms.
341 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
343 * sem_elim.adb (Set_Eliminated): Add support for elimination of
344 dispatching subprograms.
346 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
347 operations. Initialize with "null" the slots of eliminated dispaching
349 (Write_DT): Add output for eliminated primitives.
351 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
353 2009-04-15 Ed Schonberg <schonberg@adacore.com>
355 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
356 the second is redundant, regardless of scopes.
358 2009-04-15 Vincent Celier <celier@adacore.com>
360 * prj-nmsc.adb (Get_Directories): Check for sources before checking
361 the object directory as when there are no sources, they may not be any
364 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
365 directory, when there are no exec directory.
367 2009-04-15 Ed Schonberg <schonberg@adacore.com>
369 * sem_type.adb (Remove_Conversions): In order to resolve spurious
370 ambiguities, refine removal of universal interpretations from complex
371 expressions with literal arguments, when some numeric operators have
372 been declared abstract.
374 2009-04-15 Ed Falis <falis@adacore.com>
376 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
377 and backward compatibility for targets using probing for stack overflow
379 2009-04-15 Ed Schonberg <schonberg@adacore.com>
381 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
382 after any declaration, including renaming declarations.
384 2009-04-15 Arnaud Charlet <charlet@adacore.com>
386 * gcc-interface/Make-lang.in: Update dependencies.
388 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
389 Update xenomai target pairs.
391 2009-04-15 Javier Miranda <miranda@adacore.com>
393 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
395 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
396 functions returning anonymous access to class-wide limited types. Mark
397 also the containing scope as a task master.
399 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
400 limited-withed packages. Required to restore their visibility after
401 processing packages associated with implicit with-clauses.
403 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
404 associated with return statements because this work is now done by
405 Check_Anonymous_Return.
406 (Build_Master): Code cleanup.
408 2009-04-15 Thomas Quinot <quinot@adacore.com>
410 * sem_warn.ads: Minor reformatting
412 2009-04-15 Ed Schonberg <schonberg@adacore.com>
414 * sem_ch3.adb: better error message for illegal interfaces
416 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
417 formal is an incomplete type from a limited_with clause.
419 2009-04-15 Vincent Celier <celier@adacore.com>
421 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
422 Externally_Built indicating if the project is externally built. If it
423 is, and --subdirs is specified, but the subdir does not exist, look
424 for the specified directory, without the subdir.
426 2009-04-15 Gary Dismukes <dismukes@adacore.com>
428 * a-tasatt.adb: Fix typo, plus minor reformatting
430 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
432 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
434 2009-04-15 Ed Schonberg <schonberg@adacore.com>
436 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
437 private extension whose parent is a synchronized interface carries an
438 explicit synchronized keyword.
440 2009-04-15 Thomas Quinot <quinot@adacore.com>
442 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
443 instantiate generic shared object package with the corresponding
446 2009-04-15 Arnaud Charlet <charlet@adacore.com>
448 * system-linux-sparc.ads: Remove obsolete entries.
450 2009-04-15 Thomas Quinot <quinot@adacore.com>
452 * s-tasuti.ads: Add ??? comment
454 2009-04-15 Ed Schonberg <schonberg@adacore.com>
456 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
457 type even if the designated type comes from a limited_with clause, to
458 ensure that the symbol for the finalization list of the access type is
461 2009-04-10 Robert Dewar <dewar@adacore.com>
463 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
464 for warning suppression.
466 2009-04-10 Ed Schonberg <schonberg@adacore.com>
468 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
469 identical, there is no redudancy to check.
471 2009-04-10 Gary Dismukes <dismukes@adacore.com>
473 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
474 calls initializing SS_Allocator (which is initialized in following
476 (Expand_Simple_Function_Return): Add comment about False value for
477 Comes_From_Source on secondary-stack allocator.
479 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
480 (Build_Entry_Name): Add comment.
482 2009-04-10 Robert Dewar <dewar@adacore.com>
484 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
486 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
487 bound tested, since this is now done more generally in Sem_Res.
489 * sem_res.adb (Resolve_Comparison_Op): Add call to
490 Check_Lower_Bound_Tested.
491 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
493 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
494 (Low_Bound_Tested): New name for Low_Bound_Known flag
496 * exp_ch5.adb: Minor reformatting
499 Add comments on copying the Comes_From_Source flag for allocators
502 Add comments on copying the Comes_From_Source flag for allocators
504 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
505 Comes_From_Source flag from old allocator to new one.
507 2009-04-10 Ed Schonberg <schonberg@adacore.com>
509 * sem_ch6.ads: Address missing documentation query
511 2009-04-10 Vincent Celier <celier@adacore.com>
514 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
515 and Response_File_Switches.
517 * prj-nmsc.adb (Process_Linker): Process new attributes
518 Max_Command_Line_Length, Response_File_Format and
519 Response_File_Switches.
521 * prj.ads (Response_File_Format): New enumeration type
522 (Project_Configuration): New componants Max_Command_Line_Length,
523 Resp_File_Format and Resp_File_Options.
525 * snames.ads-tmpl: Add new standard names for linking response files
526 for gprbuild: GNU, None, Object_List, Option_List,
527 Max_Command_Line_Length, Response_File_Format and
528 Response_File_Switches.
530 2009-04-10 Geert Bosch <bosch@adacore.com>
532 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
533 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
534 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
535 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
536 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
537 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
538 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
539 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
540 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
541 system-vxworks-arm.ads, system-vxworks-m68k.ads,
542 system-vxworks-mips.ads, system-vxworks-ppc.ads,
543 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
544 (Backend_Overflow_Checks): Set to True.
546 2009-04-10 Thomas Quinot <quinot@adacore.com>
548 * exp_attr.adb: Minor reformatting
550 2009-04-10 Ed Schonberg <schonberg@adacore.com>
552 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
553 analyze the expression for a postcondition, even if the compiler mode
556 2009-04-10 Robert Dewar <dewar@adacore.com>
558 * sem_aux.adb: Minor reformatting
560 2009-04-10 Ed Falis <falis@adacore.com>
562 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
564 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
566 2009-04-10 Thomas Quinot <quinot@adacore.com>
568 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
572 * a-direio.ads: Fix typo in comment
574 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
575 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
576 Use uniform phrasing for comment at start of subprogram body.
578 * xsnamest.adb: Add note to explain why we use specific names for the
579 newly generated files instead of generating snames.{ads,adb,h} directly
581 2009-04-10 Sergey Rybin <rybin@adacore.com>
584 Add qualifier for new gnatstub option '--no-exception'
587 Add the description of the new gnatstub option '--no-exception'
589 2009-04-10 Robert Dewar <dewar@adacore.com>
591 * rtsfind.adb: Minor reformatting
593 2009-04-10 Thomas Quinot <quinot@adacore.com>
595 * sem_disp.adb: Minor reformatting.
596 Add comment pointing to RM clause for the case of warning against a
597 (failed) attempt at declaring a primitive operation elsewhere than in a
600 2009-04-10 Ed Schonberg <schonberg@adacore.com>
602 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
603 an actual for a previous formal package of the current instance.
605 2009-04-10 Bob Duff <duff@adacore.com>
607 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
608 them first, rather than on the extended main unit.
610 2009-04-10 Ed Schonberg <schonberg@adacore.com>
612 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
613 specification of full view carries a null exclusion indicator, create
614 an itype for it, to check for conformance with partial view.
616 2009-04-10 Bob Duff <duff@adacore.com>
618 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
620 * rtsfind.adb: Minor comment changes, and remove useless code.
622 * sinfo.ads: Add ??? comment.
624 2009-04-10 Vincent Celier <celier@adacore.com>
626 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
628 2009-04-10 Ed Schonberg <schonberg@adacore.com>
630 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
631 type is a synchronized type, retrieve tag information from the
632 corresponding record, which has the dispatch table link.
634 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
636 * g-comlin.adb (Group_Analysis): Take care of switches that might be
637 decomposed afterwards, but are present as-is in the command line
638 configuration, and thus should be kept as-is.
640 2009-04-10 Robert Dewar <dewar@adacore.com>
642 * gnat_rm.texi: Document that postconditions are tested on implicit
645 * sem_aux.adb: Minor reformatting
647 2009-04-10 Gary Dismukes <dismukes@adacore.com>
649 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
652 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
653 Null_Exclusion_In_Return_Present when an access-to-function type has a
654 result type with an explicit not null.
656 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
657 given on the result type, then create a null-excluding itype for the
660 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
661 the case where a null exclusion is imposed on a named access type.
662 (Analyze_Subprogram_Specification): Push and pop the scope of the
663 function around the call to Analyze_Return_Type in the case of no
664 formals, for consistency with handling when formals are present
665 (Process_Formals does this). Ensures that any itype created for the
666 return type will be associated with the proper scope.
668 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
669 exclusion is given on a generic function's result type, then create a
670 null-excluding itype for the generic function.
671 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
672 for an actual for a formal in object according to the setting on the
673 formal. Ensures null exclusion checks are done when the association is
676 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
677 N_Access_Function_Definition.
679 * sinfo.adb: Add Get_ and Set_ operations for
680 Null_Exclusion_In_Return_Present.
682 2009-04-10 Bob Duff <duff@adacore.com>
684 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
685 call to the _Postconditions procedure in the case of implicit returns
686 from analysis to expansion. This eliminates some duplicated code. Use
687 the Postcondition_Proc to find the identity of this procedure during
690 2009-04-10 Robert Dewar <dewar@adacore.com>
692 * sem_ch6.adb: Minor code clean up.
694 * einfo.ads, sem_attr.adb: Minor comment fixes.
696 2009-04-10 Robert Dewar <dewar@adacore.com>
698 * sem_ch8.adb: Minor reformatting
700 2009-04-10 Robert Dewar <dewar@adacore.com>
702 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
705 * sem_ch6.adb: Minor code clean up.
707 2009-04-10 Robert Dewar <dewar@adacore.com>
709 * mlib-tgt-specific-xi.adb: Minor reformatting
711 2009-04-10 Bob Duff <duff@adacore.com>
713 * einfo.ads: Minor comment fixes
715 2009-04-10 Vincent Celier <celier@adacore.com>
717 * snames.ads-tmpl: Remove names that are no longer used in the
719 Mark specifically those that are used only in gprbuild
721 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
723 * init.c: Adjust EH support code on Alpha/Tru64.
725 2009-04-10 Bob Duff <duff@adacore.com>
727 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
728 procedure on every path that could return implicitly (not via a return
729 statement) from a procedure.
731 2009-04-10 Ed Schonberg <schonberg@adacore.com>
733 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
734 valid scope for a task declarations and therefore for a master id.
736 2009-04-10 Robert Dewar <dewar@adacore.com>
738 * sem_aux.adb: Minor reformatting
740 2009-04-10 Vincent Celier <celier@adacore.com>
742 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
744 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
745 (Set_Obsolescent_Check): New procedure to change the value of
746 Obsolescent_Check_Flag.
748 * scn.ads (Set_Obsolescent_Check): New procedure to control
751 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
752 obsolescent features while preprocessing.
754 2009-04-10 Thomas Quinot <quinot@adacore.com>
756 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
757 generated files on all platforms.
759 2009-04-10 Robert Dewar <dewar@adacore.com>
761 * sem_aux.adb: Minor reformatting
763 2009-04-10 Ed Schonberg <schonberg@adacore.com>
765 * sem_ch3.adb (Access_Definition): Handle properly the case of a
766 protected function with formals that returns an anonymous access type.
768 2009-04-10 Thomas Quinot <quinot@adacore.com>
770 * sem_disp.adb: Minor reformatting
772 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
774 * seh_init.c: Do not use the 32-bit specific implementation of
775 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
778 2009-04-10 Jose Ruiz <ruiz@adacore.com>
780 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
781 a '/' at the end so we better use the complete target name to determine
782 whether it is a PowerPC 55xx target.
784 2009-04-10 Thomas Quinot <quinot@adacore.com>
786 * sem_eval.adb: Minor reformatting
788 2009-04-10 Thomas Quinot <quinot@adacore.com>
790 * snames.h, snames.ads, snames.adb: Remove files, now generated from
793 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
796 * xsnamest.adb: New file.
798 * gcc-interface/Make-lang.in: New target for automated generation of
799 snames.ads, snames.adb and snames.h
801 2009-04-10 Tristan Gingold <gingold@adacore.com>
803 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
804 avoid compile time warnings.
805 Do not add gcc/config in include search list while compiling the RTS.
806 Pragma Thread_Local_Storage is available on any target.
808 2009-04-10 Bob Duff <duff@adacore.com>
810 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
812 2009-04-10 Tristan Gingold <gingold@adacore.com>
814 * init.c: Install signal handler on Darwin.
816 2009-04-10 Robert Dewar <dewar@adacore.com>
818 * sem_prag.adb: Minor reformatting
820 * exp_util.adb (Make_Non_Empty_Check): New function
821 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
822 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
824 2009-04-10 Arnaud Charlet <charlet@adacore.com>
826 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
828 2009-04-10 Jose Ruiz <ruiz@adacore.com>
830 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
831 tool prefix for AVR and PowerPC 55xx targets.
833 2009-04-10 Robert Dewar <dewar@adacore.com>
835 * sem_warn.adb (Within_Postcondition): New function
836 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
838 2009-04-10 Robert Dewar <dewar@adacore.com>
840 * sem_warn.adb: Minor reformatting
842 * make.adb: Minor reformatting.
844 2009-04-10 Gary Dismukes <dismukes@adacore.com>
846 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
847 entity and the scope is a subprogram, retrieve the Sloc of the
848 subprogram's body rather than using the sloc of the spec, for better
849 line-stepping behavior in gdb.
850 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
851 controller, use the Sloc of the first declaration of the containing list
852 rather than that of the node that triggered creation of the list
855 2009-04-10 Vincent Celier <celier@adacore.com>
857 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
858 to avoid gcc warning.
860 2009-04-10 Robert Dewar <dewar@adacore.com>
862 * g-comlin.adb: Add ??? comment
864 2009-04-10 Ed Schonberg <schonberg@adacore.com>
866 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
867 unreferenced entities for a package with no visible declarations.
869 2009-04-10 Robert Dewar <dewar@adacore.com>
871 * exp_ch9.adb: Minor reformatting
873 2009-04-10 Thomas Quinot <quinot@adacore.com>
875 * sem_prag.adb: Minor reformatting
877 2009-04-10 Vincent Celier <celier@adacore.com>
880 (Check_Library_Attributes): For a project qualified as a library project
881 that is not a library project, indicate in the error message which
882 attributes are missing (Library_Dir and/or Library_Name).
884 2009-04-10 Bob Duff <duff@adacore.com>
886 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
887 generated nodes, because it might confuse various circuits in the FE.
889 2009-04-10 Ed Schonberg <schonberg@adacore.com>
891 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
892 of pragma. It will be recopied and analyzed when used in call to
895 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
896 initialization operations and recognize use of it in procedure calls
899 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
900 argument, because it may have side-effects.
902 * exp_ch2.adb: Remove obsolete comments on default functions
904 2009-04-10 Jose Ruiz <ruiz@adacore.com>
906 * adaint.c (RTX section): Do for RTX the same thing as we do for
907 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
909 2009-04-10 Robert Dewar <dewar@adacore.com>
911 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
913 * sem_res.adb (Resolve_Call): Fix test for
914 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
915 a non-dynamic scope).
917 2009-04-10 Robert Dewar <dewar@adacore.com>
919 * make.adb: Add comment.
922 2009-04-10 Nicolas Setton <setton@adacore.com>
924 * s-osprim-darwin.adb: New file.
926 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
928 2009-04-10 Thomas Quinot <quinot@adacore.com>
930 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
932 2009-04-09 Nick Clifton <nickc@redhat.com>
934 * adadecode.h: Change copyright header to refer to version
935 3 of the GNU General Public License with version 3.1 of the
936 GCC Runtime Library Exception and to point readers at the
937 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
939 * 9drpc.adb: Likewise.
940 * a-assert.adb: Likewise.
941 * a-astaco.adb: Likewise.
942 * a-calari.adb: Likewise.
943 * a-calcon.adb: Likewise.
944 * a-calcon.ads: Likewise.
945 * a-caldel.ads: Likewise.
946 * a-calend-vms.adb: Likewise.
947 * a-calend-vms.ads: Likewise.
948 * a-calend.adb: Likewise.
949 * a-calend.ads: Likewise.
950 * a-calfor.adb: Likewise.
951 * a-catizo.adb: Likewise.
952 * a-cdlili.adb: Likewise.
953 * a-cdlili.ads: Likewise.
954 * a-cgaaso.adb: Likewise.
955 * a-cgaaso.ads: Likewise.
956 * a-cgarso.adb: Likewise.
957 * a-cgcaso.adb: Likewise.
958 * a-chacon.adb: Likewise.
959 * a-chacon.ads: Likewise.
960 * a-chahan.adb: Likewise.
961 * a-chahan.ads: Likewise.
962 * a-chlat9.ads: Likewise.
963 * a-chtgke.adb: Likewise.
964 * a-chtgke.ads: Likewise.
965 * a-chtgop.adb: Likewise.
966 * a-chtgop.ads: Likewise.
967 * a-chzla1.ads: Likewise.
968 * a-chzla9.ads: Likewise.
969 * a-cidlli.adb: Likewise.
970 * a-cidlli.ads: Likewise.
971 * a-cihama.adb: Likewise.
972 * a-cihama.ads: Likewise.
973 * a-cihase.adb: Likewise.
974 * a-cihase.ads: Likewise.
975 * a-ciorma.adb: Likewise.
976 * a-ciorma.ads: Likewise.
977 * a-ciormu.adb: Likewise.
978 * a-ciormu.ads: Likewise.
979 * a-ciorse.adb: Likewise.
980 * a-ciorse.ads: Likewise.
981 * a-clrefi.adb: Likewise.
982 * a-clrefi.ads: Likewise.
983 * a-cohama.adb: Likewise.
984 * a-cohama.ads: Likewise.
985 * a-cohase.adb: Likewise.
986 * a-cohase.ads: Likewise.
987 * a-cohata.ads: Likewise.
988 * a-coinve.adb: Likewise.
989 * a-coinve.ads: Likewise.
990 * a-colien.adb: Likewise.
991 * a-colien.ads: Likewise.
992 * a-colire.adb: Likewise.
993 * a-colire.ads: Likewise.
994 * a-comlin.adb: Likewise.
995 * a-comlin.ads: Likewise.
996 * a-convec.adb: Likewise.
997 * a-convec.ads: Likewise.
998 * a-coorma.adb: Likewise.
999 * a-coorma.ads: Likewise.
1000 * a-coormu.adb: Likewise.
1001 * a-coormu.ads: Likewise.
1002 * a-coorse.adb: Likewise.
1003 * a-coorse.ads: Likewise.
1004 * a-coprnu.adb: Likewise.
1005 * a-coprnu.ads: Likewise.
1006 * a-crbltr.ads: Likewise.
1007 * a-crbtgk.adb: Likewise.
1008 * a-crbtgk.ads: Likewise.
1009 * a-crbtgo.adb: Likewise.
1010 * a-crbtgo.ads: Likewise.
1011 * a-crdlli.adb: Likewise.
1012 * a-crdlli.ads: Likewise.
1013 * a-cwila1.ads: Likewise.
1014 * a-cwila9.ads: Likewise.
1015 * a-decima.adb: Likewise.
1016 * a-decima.ads: Likewise.
1017 * a-diocst.adb: Likewise.
1018 * a-diocst.ads: Likewise.
1019 * a-direct.adb: Likewise.
1020 * a-direct.ads: Likewise.
1021 * a-direio.adb: Likewise.
1022 * a-direio.ads: Likewise.
1023 * a-dirval-mingw.adb: Likewise.
1024 * a-dirval-vms.adb: Likewise.
1025 * a-dirval.adb: Likewise.
1026 * a-dirval.ads: Likewise.
1027 * a-dynpri.adb: Likewise.
1028 * a-einuoc.adb: Likewise.
1029 * a-einuoc.ads: Likewise.
1030 * a-elchha.adb: Likewise.
1031 * a-elchha.ads: Likewise.
1032 * a-envvar.adb: Likewise.
1033 * a-excach.adb: Likewise.
1034 * a-except-2005.adb: Likewise.
1035 * a-except-2005.ads: Likewise.
1036 * a-except.adb: Likewise.
1037 * a-except.ads: Likewise.
1038 * a-excpol-abort.adb: Likewise.
1039 * a-excpol.adb: Likewise.
1040 * a-exctra.adb: Likewise.
1041 * a-exctra.ads: Likewise.
1042 * a-exetim-mingw.adb: Likewise.
1043 * a-exetim-mingw.ads: Likewise.
1044 * a-exexda.adb: Likewise.
1045 * a-exexpr-gcc.adb: Likewise.
1046 * a-exexpr.adb: Likewise.
1047 * a-exextr.adb: Likewise.
1048 * a-exstat.adb: Likewise.
1049 * a-filico.adb: Likewise.
1050 * a-filico.ads: Likewise.
1051 * a-finali.adb: Likewise.
1052 * a-finali.ads: Likewise.
1053 * a-interr.ads: Likewise.
1054 * a-intnam-aix.ads: Likewise.
1055 * a-intnam-darwin.ads: Likewise.
1056 * a-intnam-dummy.ads: Likewise.
1057 * a-intnam-freebsd.ads: Likewise.
1058 * a-intnam-hpux.ads: Likewise.
1059 * a-intnam-irix.ads: Likewise.
1060 * a-intnam-linux.ads: Likewise.
1061 * a-intnam-lynxos.ads: Likewise.
1062 * a-intnam-mingw.ads: Likewise.
1063 * a-intnam-rtems.ads: Likewise.
1064 * a-intnam-solaris.ads: Likewise.
1065 * a-intnam-tru64.ads: Likewise.
1066 * a-intnam-vms.ads: Likewise.
1067 * a-intnam-vxworks.ads: Likewise.
1068 * a-intsig.adb: Likewise.
1069 * a-intsig.ads: Likewise.
1070 * a-ngcefu.adb: Likewise.
1071 * a-ngcoar.adb: Likewise.
1072 * a-ngcoty.adb: Likewise.
1073 * a-ngcoty.ads: Likewise.
1074 * a-ngelfu.adb: Likewise.
1075 * a-ngrear.adb: Likewise.
1076 * a-ngrear.ads: Likewise.
1077 * a-nudira.adb: Likewise.
1078 * a-nudira.ads: Likewise.
1079 * a-nuflra.adb: Likewise.
1080 * a-nuflra.ads: Likewise.
1081 * a-numaux-darwin.adb: Likewise.
1082 * a-numaux-darwin.ads: Likewise.
1083 * a-numaux-libc-x86.ads: Likewise.
1084 * a-numaux-vxworks.ads: Likewise.
1085 * a-numaux-x86.adb: Likewise.
1086 * a-numaux-x86.ads: Likewise.
1087 * a-numaux.ads: Likewise.
1088 * a-rbtgso.adb: Likewise.
1089 * a-rbtgso.ads: Likewise.
1090 * a-reatim.ads: Likewise.
1091 * a-retide.adb: Likewise.
1092 * a-retide.ads: Likewise.
1093 * a-rttiev.adb: Likewise.
1094 * a-rttiev.ads: Likewise.
1095 * a-secain.adb: Likewise.
1096 * a-secain.ads: Likewise.
1097 * a-sequio.adb: Likewise.
1098 * a-sequio.ads: Likewise.
1099 * a-shcain.adb: Likewise.
1100 * a-shcain.ads: Likewise.
1101 * a-siocst.adb: Likewise.
1102 * a-siocst.ads: Likewise.
1103 * a-slcain.adb: Likewise.
1104 * a-slcain.ads: Likewise.
1105 * a-ssicst.adb: Likewise.
1106 * a-ssicst.ads: Likewise.
1107 * a-stboha.adb: Likewise.
1108 * a-stmaco.ads: Likewise.
1109 * a-storio.adb: Likewise.
1110 * a-strbou.adb: Likewise.
1111 * a-strbou.ads: Likewise.
1112 * a-stream.ads: Likewise.
1113 * a-strfix.adb: Likewise.
1114 * a-strhas.adb: Likewise.
1115 * a-strmap.adb: Likewise.
1116 * a-strmap.ads: Likewise.
1117 * a-strsea.adb: Likewise.
1118 * a-strsea.ads: Likewise.
1119 * a-strsup.adb: Likewise.
1120 * a-strsup.ads: Likewise.
1121 * a-strunb.adb: Likewise.
1122 * a-strunb.ads: Likewise.
1123 * a-ststio.adb: Likewise.
1124 * a-ststio.ads: Likewise.
1125 * a-stunau.adb: Likewise.
1126 * a-stunau.ads: Likewise.
1127 * a-stunha.adb: Likewise.
1128 * a-stwibo.adb: Likewise.
1129 * a-stwibo.ads: Likewise.
1130 * a-stwifi.adb: Likewise.
1131 * a-stwiha.adb: Likewise.
1132 * a-stwima.adb: Likewise.
1133 * a-stwima.ads: Likewise.
1134 * a-stwise.adb: Likewise.
1135 * a-stwise.ads: Likewise.
1136 * a-stwisu.adb: Likewise.
1137 * a-stwisu.ads: Likewise.
1138 * a-stwiun.adb: Likewise.
1139 * a-stwiun.ads: Likewise.
1140 * a-stzbou.adb: Likewise.
1141 * a-stzbou.ads: Likewise.
1142 * a-stzfix.adb: Likewise.
1143 * a-stzhas.adb: Likewise.
1144 * a-stzmap.adb: Likewise.
1145 * a-stzmap.ads: Likewise.
1146 * a-stzsea.adb: Likewise.
1147 * a-stzsea.ads: Likewise.
1148 * a-stzsup.adb: Likewise.
1149 * a-stzsup.ads: Likewise.
1150 * a-stzunb.adb: Likewise.
1151 * a-stzunb.ads: Likewise.
1152 * a-suteio.adb: Likewise.
1153 * a-suteio.ads: Likewise.
1154 * a-swbwha.adb: Likewise.
1155 * a-swmwco.ads: Likewise.
1156 * a-swunau.adb: Likewise.
1157 * a-swunau.ads: Likewise.
1158 * a-swuwha.adb: Likewise.
1159 * a-swuwti.adb: Likewise.
1160 * a-swuwti.ads: Likewise.
1161 * a-sytaco.adb: Likewise.
1162 * a-sytaco.ads: Likewise.
1163 * a-szbzha.adb: Likewise.
1164 * a-szmzco.ads: Likewise.
1165 * a-szunau.adb: Likewise.
1166 * a-szunau.ads: Likewise.
1167 * a-szuzha.adb: Likewise.
1168 * a-szuzti.adb: Likewise.
1169 * a-szuzti.ads: Likewise.
1170 * a-tags.adb: Likewise.
1171 * a-tags.ads: Likewise.
1172 * a-tasatt.ads: Likewise.
1173 * a-taside.adb: Likewise.
1174 * a-taside.ads: Likewise.
1175 * a-taster.adb: Likewise.
1176 * a-teioed.adb: Likewise.
1177 * a-teioed.ads: Likewise.
1178 * a-textio.adb: Likewise.
1179 * a-textio.ads: Likewise.
1180 * a-tiboio.adb: Likewise.
1181 * a-ticoau.adb: Likewise.
1182 * a-ticoau.ads: Likewise.
1183 * a-ticoio.adb: Likewise.
1184 * a-ticoio.ads: Likewise.
1185 * a-tideau.adb: Likewise.
1186 * a-tideau.ads: Likewise.
1187 * a-tideio.adb: Likewise.
1188 * a-tideio.ads: Likewise.
1189 * a-tienau.adb: Likewise.
1190 * a-tienau.ads: Likewise.
1191 * a-tienio.adb: Likewise.
1192 * a-tienio.ads: Likewise.
1193 * a-tifiio.adb: Likewise.
1194 * a-tifiio.ads: Likewise.
1195 * a-tiflau.adb: Likewise.
1196 * a-tiflau.ads: Likewise.
1197 * a-tiflio.adb: Likewise.
1198 * a-tiflio.ads: Likewise.
1199 * a-tigeau.adb: Likewise.
1200 * a-tigeau.ads: Likewise.
1201 * a-tiinau.adb: Likewise.
1202 * a-tiinau.ads: Likewise.
1203 * a-tiinio.adb: Likewise.
1204 * a-tiinio.ads: Likewise.
1205 * a-timoau.adb: Likewise.
1206 * a-timoau.ads: Likewise.
1207 * a-timoio.adb: Likewise.
1208 * a-timoio.ads: Likewise.
1209 * a-tiocst.adb: Likewise.
1210 * a-tiocst.ads: Likewise.
1211 * a-titest.adb: Likewise.
1212 * a-wichun.adb: Likewise.
1213 * a-wichun.ads: Likewise.
1214 * a-witeio.adb: Likewise.
1215 * a-witeio.ads: Likewise.
1216 * a-wtcoau.adb: Likewise.
1217 * a-wtcoau.ads: Likewise.
1218 * a-wtcoio.adb: Likewise.
1219 * a-wtcstr.adb: Likewise.
1220 * a-wtcstr.ads: Likewise.
1221 * a-wtdeau.adb: Likewise.
1222 * a-wtdeau.ads: Likewise.
1223 * a-wtdeio.adb: Likewise.
1224 * a-wtdeio.ads: Likewise.
1225 * a-wtedit.adb: Likewise.
1226 * a-wtedit.ads: Likewise.
1227 * a-wtenau.adb: Likewise.
1228 * a-wtenau.ads: Likewise.
1229 * a-wtenio.adb: Likewise.
1230 * a-wtenio.ads: Likewise.
1231 * a-wtfiio.adb: Likewise.
1232 * a-wtfiio.ads: Likewise.
1233 * a-wtflau.adb: Likewise.
1234 * a-wtflau.ads: Likewise.
1235 * a-wtflio.adb: Likewise.
1236 * a-wtflio.ads: Likewise.
1237 * a-wtgeau.adb: Likewise.
1238 * a-wtgeau.ads: Likewise.
1239 * a-wtinau.adb: Likewise.
1240 * a-wtinau.ads: Likewise.
1241 * a-wtinio.adb: Likewise.
1242 * a-wtmoau.adb: Likewise.
1243 * a-wtmoau.ads: Likewise.
1244 * a-wtmoio.adb: Likewise.
1245 * a-wtmoio.ads: Likewise.
1246 * a-wttest.adb: Likewise.
1247 * a-wwboio.adb: Likewise.
1248 * a-zchuni.adb: Likewise.
1249 * a-zchuni.ads: Likewise.
1250 * a-ztcoau.adb: Likewise.
1251 * a-ztcoau.ads: Likewise.
1252 * a-ztcoio.adb: Likewise.
1253 * a-ztcstr.adb: Likewise.
1254 * a-ztcstr.ads: Likewise.
1255 * a-ztdeau.adb: Likewise.
1256 * a-ztdeau.ads: Likewise.
1257 * a-ztdeio.adb: Likewise.
1258 * a-ztdeio.ads: Likewise.
1259 * a-ztedit.adb: Likewise.
1260 * a-ztedit.ads: Likewise.
1261 * a-ztenau.adb: Likewise.
1262 * a-ztenau.ads: Likewise.
1263 * a-ztenio.adb: Likewise.
1264 * a-ztenio.ads: Likewise.
1265 * a-ztexio.adb: Likewise.
1266 * a-ztexio.ads: Likewise.
1267 * a-ztfiio.adb: Likewise.
1268 * a-ztfiio.ads: Likewise.
1269 * a-ztflau.adb: Likewise.
1270 * a-ztflau.ads: Likewise.
1271 * a-ztflio.adb: Likewise.
1272 * a-ztflio.ads: Likewise.
1273 * a-ztgeau.adb: Likewise.
1274 * a-ztgeau.ads: Likewise.
1275 * a-ztinau.adb: Likewise.
1276 * a-ztinau.ads: Likewise.
1277 * a-ztinio.adb: Likewise.
1278 * a-ztmoau.adb: Likewise.
1279 * a-ztmoau.ads: Likewise.
1280 * a-ztmoio.adb: Likewise.
1281 * a-ztmoio.ads: Likewise.
1282 * a-zttest.adb: Likewise.
1283 * a-zzboio.adb: Likewise.
1284 * adadecode.c: Likewise.
1285 * adaint.c: Likewise.
1286 * adaint.h: Likewise.
1287 * alloc.ads: Likewise.
1289 * arit64.c: Likewise.
1290 * atree.adb: Likewise.
1291 * atree.ads: Likewise.
1292 * aux-io.c: Likewise.
1294 * casing.adb: Likewise.
1295 * casing.ads: Likewise.
1297 * csets.adb: Likewise.
1298 * csets.ads: Likewise.
1299 * cstreams.c: Likewise.
1300 * ctrl_c.c: Likewise.
1301 * debug.adb: Likewise.
1302 * debug.ads: Likewise.
1303 * dec.ads: Likewise.
1304 * einfo.adb: Likewise.
1305 * einfo.ads: Likewise.
1306 * elists.adb: Likewise.
1307 * elists.ads: Likewise.
1310 * errno.c: Likewise.
1313 * final.c: Likewise.
1314 * fname.adb: Likewise.
1315 * fname.ads: Likewise.
1316 * g-allein.ads: Likewise.
1317 * g-alleve.adb: Likewise.
1318 * g-alleve.ads: Likewise.
1319 * g-altcon.adb: Likewise.
1320 * g-altcon.ads: Likewise.
1321 * g-altive.ads: Likewise.
1322 * g-alveop.adb: Likewise.
1323 * g-alveop.ads: Likewise.
1324 * g-alvety.ads: Likewise.
1325 * g-alvevi.ads: Likewise.
1326 * g-arrspl.adb: Likewise.
1327 * g-arrspl.ads: Likewise.
1328 * g-calend.ads: Likewise.
1329 * g-comlin.adb: Likewise.
1330 * g-debpoo.adb: Likewise.
1331 * g-debpoo.ads: Likewise.
1332 * g-eacodu-vms.adb: Likewise.
1333 * g-eacodu.adb: Likewise.
1334 * g-excact.adb: Likewise.
1335 * g-excact.ads: Likewise.
1336 * g-locfil.adb: Likewise.
1337 * g-os_lib.ads: Likewise.
1338 * g-rannum.adb: Likewise.
1339 * g-rannum.ads: Likewise.
1340 * g-regist.adb: Likewise.
1341 * g-regist.ads: Likewise.
1342 * g-signal.adb: Likewise.
1343 * g-signal.ads: Likewise.
1344 * g-soccon.ads: Likewise.
1345 * g-string.adb: Likewise.
1346 * g-string.ads: Likewise.
1347 * g-strspl.ads: Likewise.
1348 * g-timsta.adb: Likewise.
1349 * g-timsta.ads: Likewise.
1350 * g-trasym-vms-alpha.adb: Likewise.
1351 * g-trasym-vms-ia64.adb: Likewise.
1352 * g-utf_32.adb: Likewise.
1353 * g-utf_32.ads: Likewise.
1354 * g-wistsp.ads: Likewise.
1355 * g-zstspl.ads: Likewise.
1357 * gnatvsn.adb: Likewise.
1358 * gnatvsn.ads: Likewise.
1359 * gsocket.h: Likewise.
1360 * hostparm.ads: Likewise.
1361 * i-c.adb: Likewise.
1362 * i-cexten.ads: Likewise.
1363 * i-cobol.adb: Likewise.
1364 * i-cobol.ads: Likewise.
1365 * i-cpoint.adb: Likewise.
1366 * i-cpoint.ads: Likewise.
1367 * i-cpp.adb: Likewise.
1368 * i-cpp.ads: Likewise.
1369 * i-cstrea-vms.adb: Likewise.
1370 * i-cstrea.adb: Likewise.
1371 * i-cstrea.ads: Likewise.
1372 * i-cstrin.adb: Likewise.
1373 * i-cstrin.ads: Likewise.
1374 * i-forbla-darwin.adb: Likewise.
1375 * i-forbla-unimplemented.ads: Likewise.
1376 * i-forbla.adb: Likewise.
1377 * i-forbla.ads: Likewise.
1378 * i-forlap.ads: Likewise.
1379 * i-fortra.adb: Likewise.
1380 * i-pacdec.adb: Likewise.
1381 * i-pacdec.ads: Likewise.
1382 * i-vxwoio.adb: Likewise.
1383 * i-vxwoio.ads: Likewise.
1384 * indepsw-aix.adb: Likewise.
1385 * indepsw-gnu.adb: Likewise.
1386 * indepsw-mingw.adb: Likewise.
1387 * indepsw.adb: Likewise.
1388 * indepsw.ads: Likewise.
1390 * initialize.c: Likewise.
1391 * interfac.ads: Likewise.
1392 * krunch.adb: Likewise.
1393 * krunch.ads: Likewise.
1394 * lib-list.adb: Likewise.
1395 * lib-sort.adb: Likewise.
1396 * lib.adb: Likewise.
1397 * lib.ads: Likewise.
1399 * math_lib.adb: Likewise.
1400 * memtrack.adb: Likewise.
1401 * mingw32.h: Likewise.
1402 * mkdir.c: Likewise.
1403 * namet-sp.adb: Likewise.
1404 * namet-sp.ads: Likewise.
1405 * namet.adb: Likewise.
1406 * namet.ads: Likewise.
1407 * nlists.adb: Likewise.
1408 * nlists.ads: Likewise.
1409 * opt.adb: Likewise.
1410 * opt.ads: Likewise.
1411 * output.adb: Likewise.
1412 * output.ads: Likewise.
1413 * raise-gcc.c: Likewise.
1414 * raise.c: Likewise.
1415 * raise.h: Likewise.
1416 * repinfo.adb: Likewise.
1417 * repinfo.ads: Likewise.
1418 * repinfo.h: Likewise.
1419 * rident.ads: Likewise.
1420 * s-addima.adb: Likewise.
1421 * s-addima.ads: Likewise.
1422 * s-addope.adb: Likewise.
1423 * s-addope.ads: Likewise.
1424 * s-arit64.adb: Likewise.
1425 * s-arit64.ads: Likewise.
1426 * s-assert.adb: Likewise.
1427 * s-assert.ads: Likewise.
1428 * s-asthan-vms-alpha.adb: Likewise.
1429 * s-asthan.adb: Likewise.
1430 * s-asthan.ads: Likewise.
1431 * s-atacco.adb: Likewise.
1432 * s-atacco.ads: Likewise.
1433 * s-auxdec-empty.adb: Likewise.
1434 * s-auxdec-empty.ads: Likewise.
1435 * s-auxdec-vms_64.ads: Likewise.
1436 * s-auxdec.adb: Likewise.
1437 * s-auxdec.ads: Likewise.
1438 * s-bitops.adb: Likewise.
1439 * s-bitops.ads: Likewise.
1440 * s-boarop.ads: Likewise.
1441 * s-carsi8.adb: Likewise.
1442 * s-carsi8.ads: Likewise.
1443 * s-carun8.adb: Likewise.
1444 * s-carun8.ads: Likewise.
1445 * s-casi16.adb: Likewise.
1446 * s-casi16.ads: Likewise.
1447 * s-casi32.adb: Likewise.
1448 * s-casi32.ads: Likewise.
1449 * s-casi64.adb: Likewise.
1450 * s-casi64.ads: Likewise.
1451 * s-casuti.ads: Likewise.
1452 * s-caun16.adb: Likewise.
1453 * s-caun16.ads: Likewise.
1454 * s-caun32.adb: Likewise.
1455 * s-caun32.ads: Likewise.
1456 * s-caun64.adb: Likewise.
1457 * s-caun64.ads: Likewise.
1458 * s-chepoo.ads: Likewise.
1459 * s-crc32.adb: Likewise.
1460 * s-crc32.ads: Likewise.
1461 * s-crtl.ads: Likewise.
1462 * s-direio.adb: Likewise.
1463 * s-direio.ads: Likewise.
1464 * s-dsaser.ads: Likewise.
1465 * s-except.adb: Likewise.
1466 * s-except.ads: Likewise.
1467 * s-exctab.adb: Likewise.
1468 * s-exctab.ads: Likewise.
1469 * s-exnint.adb: Likewise.
1470 * s-exnint.ads: Likewise.
1471 * s-exnllf.adb: Likewise.
1472 * s-exnllf.ads: Likewise.
1473 * s-exnlli.adb: Likewise.
1474 * s-exnlli.ads: Likewise.
1475 * s-expint.adb: Likewise.
1476 * s-expint.ads: Likewise.
1477 * s-explli.adb: Likewise.
1478 * s-explli.ads: Likewise.
1479 * s-expllu.adb: Likewise.
1480 * s-expllu.ads: Likewise.
1481 * s-expmod.adb: Likewise.
1482 * s-expmod.ads: Likewise.
1483 * s-expuns.adb: Likewise.
1484 * s-expuns.ads: Likewise.
1485 * s-fatflt.ads: Likewise.
1486 * s-fatgen.adb: Likewise.
1487 * s-fatgen.ads: Likewise.
1488 * s-fatlfl.ads: Likewise.
1489 * s-fatllf.ads: Likewise.
1490 * s-fatsfl.ads: Likewise.
1491 * s-ficobl.ads: Likewise.
1492 * s-fileio.adb: Likewise.
1493 * s-fileio.ads: Likewise.
1494 * s-filofl.ads: Likewise.
1495 * s-finimp.adb: Likewise.
1496 * s-finimp.ads: Likewise.
1497 * s-finroo.adb: Likewise.
1498 * s-finroo.ads: Likewise.
1499 * s-fishfl.ads: Likewise.
1500 * s-fore.adb: Likewise.
1501 * s-fore.ads: Likewise.
1502 * s-fvadfl.ads: Likewise.
1503 * s-fvaffl.ads: Likewise.
1504 * s-fvagfl.ads: Likewise.
1505 * s-gearop.adb: Likewise.
1506 * s-gearop.ads: Likewise.
1507 * s-gecobl.adb: Likewise.
1508 * s-gecobl.ads: Likewise.
1509 * s-gecola.adb: Likewise.
1510 * s-gecola.ads: Likewise.
1511 * s-gerebl.adb: Likewise.
1512 * s-gerebl.ads: Likewise.
1513 * s-gerela.adb: Likewise.
1514 * s-gerela.ads: Likewise.
1515 * s-geveop.adb: Likewise.
1516 * s-geveop.ads: Likewise.
1517 * s-gloloc.adb: Likewise.
1518 * s-gloloc.ads: Likewise.
1519 * s-hibaen.ads: Likewise.
1520 * s-imenne.adb: Likewise.
1521 * s-imenne.ads: Likewise.
1522 * s-imgbiu.adb: Likewise.
1523 * s-imgbiu.ads: Likewise.
1524 * s-imgboo.adb: Likewise.
1525 * s-imgboo.ads: Likewise.
1526 * s-imgcha.adb: Likewise.
1527 * s-imgcha.ads: Likewise.
1528 * s-imgdec.adb: Likewise.
1529 * s-imgdec.ads: Likewise.
1530 * s-imgenu.adb: Likewise.
1531 * s-imgenu.ads: Likewise.
1532 * s-imgint.adb: Likewise.
1533 * s-imgint.ads: Likewise.
1534 * s-imgllb.adb: Likewise.
1535 * s-imgllb.ads: Likewise.
1536 * s-imglld.adb: Likewise.
1537 * s-imglld.ads: Likewise.
1538 * s-imglli.adb: Likewise.
1539 * s-imglli.ads: Likewise.
1540 * s-imgllu.adb: Likewise.
1541 * s-imgllu.ads: Likewise.
1542 * s-imgllw.adb: Likewise.
1543 * s-imgllw.ads: Likewise.
1544 * s-imgrea.adb: Likewise.
1545 * s-imgrea.ads: Likewise.
1546 * s-imguns.adb: Likewise.
1547 * s-imguns.ads: Likewise.
1548 * s-imgwch.adb: Likewise.
1549 * s-imgwch.ads: Likewise.
1550 * s-imgwiu.adb: Likewise.
1551 * s-imgwiu.ads: Likewise.
1552 * s-inmaop-dummy.adb: Likewise.
1553 * s-inmaop-vms.adb: Likewise.
1554 * s-inmaop.ads: Likewise.
1555 * s-interr-hwint.adb: Likewise.
1556 * s-interr-sigaction.adb: Likewise.
1557 * s-interr-vms.adb: Likewise.
1558 * s-interr.adb: Likewise.
1559 * s-interr.ads: Likewise.
1560 * s-intman-dummy.adb: Likewise.
1561 * s-intman-mingw.adb: Likewise.
1562 * s-intman-posix.adb: Likewise.
1563 * s-intman-solaris.adb: Likewise.
1564 * s-intman-vms.adb: Likewise.
1565 * s-intman-vms.ads: Likewise.
1566 * s-intman-vxworks.adb: Likewise.
1567 * s-intman-vxworks.ads: Likewise.
1568 * s-intman.ads: Likewise.
1569 * s-io.adb: Likewise.
1570 * s-io.ads: Likewise.
1571 * s-linux-alpha.ads: Likewise.
1572 * s-linux-hppa.ads: Likewise.
1573 * s-linux.ads: Likewise.
1574 * s-maccod.ads: Likewise.
1575 * s-mantis.adb: Likewise.
1576 * s-mantis.ads: Likewise.
1577 * s-mastop-irix.adb: Likewise.
1578 * s-mastop.adb: Likewise.
1579 * s-mastop.ads: Likewise.
1580 * s-memcop.ads: Likewise.
1581 * s-memory-mingw.adb: Likewise.
1582 * s-memory.adb: Likewise.
1583 * s-memory.ads: Likewise.
1584 * s-os_lib.ads: Likewise.
1585 * s-oscons-tmplt.c: Likewise.
1586 * s-osinte-aix.adb: Likewise.
1587 * s-osinte-darwin.adb: Likewise.
1588 * s-osinte-freebsd.adb: Likewise.
1589 * s-osinte-irix.adb: Likewise.
1590 * s-osinte-lynxos-3.adb: Likewise.
1591 * s-osinte-rtems.ads: Likewise.
1592 * s-osinte-tru64.adb: Likewise.
1593 * s-osinte-vxworks-kernel.adb: Likewise.
1594 * s-osinte-vxworks.adb: Likewise.
1595 * s-osprim-mingw.adb: Likewise.
1596 * s-osprim-posix.adb: Likewise.
1597 * s-osprim-solaris.adb: Likewise.
1598 * s-osprim-unix.adb: Likewise.
1599 * s-osprim-vms.adb: Likewise.
1600 * s-osprim-vms.ads: Likewise.
1601 * s-osprim-vxworks.adb: Likewise.
1602 * s-osprim.ads: Likewise.
1603 * s-pack03.adb: Likewise.
1604 * s-pack03.ads: Likewise.
1605 * s-pack05.adb: Likewise.
1606 * s-pack05.ads: Likewise.
1607 * s-pack06.adb: Likewise.
1608 * s-pack06.ads: Likewise.
1609 * s-pack07.adb: Likewise.
1610 * s-pack07.ads: Likewise.
1611 * s-pack09.adb: Likewise.
1612 * s-pack09.ads: Likewise.
1613 * s-pack10.adb: Likewise.
1614 * s-pack10.ads: Likewise.
1615 * s-pack11.adb: Likewise.
1616 * s-pack11.ads: Likewise.
1617 * s-pack12.adb: Likewise.
1618 * s-pack12.ads: Likewise.
1619 * s-pack13.adb: Likewise.
1620 * s-pack13.ads: Likewise.
1621 * s-pack14.adb: Likewise.
1622 * s-pack14.ads: Likewise.
1623 * s-pack15.adb: Likewise.
1624 * s-pack15.ads: Likewise.
1625 * s-pack17.adb: Likewise.
1626 * s-pack17.ads: Likewise.
1627 * s-pack18.adb: Likewise.
1628 * s-pack18.ads: Likewise.
1629 * s-pack19.adb: Likewise.
1630 * s-pack19.ads: Likewise.
1631 * s-pack20.adb: Likewise.
1632 * s-pack20.ads: Likewise.
1633 * s-pack21.adb: Likewise.
1634 * s-pack21.ads: Likewise.
1635 * s-pack22.adb: Likewise.
1636 * s-pack22.ads: Likewise.
1637 * s-pack23.adb: Likewise.
1638 * s-pack23.ads: Likewise.
1639 * s-pack24.adb: Likewise.
1640 * s-pack24.ads: Likewise.
1641 * s-pack25.adb: Likewise.
1642 * s-pack25.ads: Likewise.
1643 * s-pack26.adb: Likewise.
1644 * s-pack26.ads: Likewise.
1645 * s-pack27.adb: Likewise.
1646 * s-pack27.ads: Likewise.
1647 * s-pack28.adb: Likewise.
1648 * s-pack28.ads: Likewise.
1649 * s-pack29.adb: Likewise.
1650 * s-pack29.ads: Likewise.
1651 * s-pack30.adb: Likewise.
1652 * s-pack30.ads: Likewise.
1653 * s-pack31.adb: Likewise.
1654 * s-pack31.ads: Likewise.
1655 * s-pack33.adb: Likewise.
1656 * s-pack33.ads: Likewise.
1657 * s-pack34.adb: Likewise.
1658 * s-pack34.ads: Likewise.
1659 * s-pack35.adb: Likewise.
1660 * s-pack35.ads: Likewise.
1661 * s-pack36.adb: Likewise.
1662 * s-pack36.ads: Likewise.
1663 * s-pack37.adb: Likewise.
1664 * s-pack37.ads: Likewise.
1665 * s-pack38.adb: Likewise.
1666 * s-pack38.ads: Likewise.
1667 * s-pack39.adb: Likewise.
1668 * s-pack39.ads: Likewise.
1669 * s-pack40.adb: Likewise.
1670 * s-pack40.ads: Likewise.
1671 * s-pack41.adb: Likewise.
1672 * s-pack41.ads: Likewise.
1673 * s-pack42.adb: Likewise.
1674 * s-pack42.ads: Likewise.
1675 * s-pack43.adb: Likewise.
1676 * s-pack43.ads: Likewise.
1677 * s-pack44.adb: Likewise.
1678 * s-pack44.ads: Likewise.
1679 * s-pack45.adb: Likewise.
1680 * s-pack45.ads: Likewise.
1681 * s-pack46.adb: Likewise.
1682 * s-pack46.ads: Likewise.
1683 * s-pack47.adb: Likewise.
1684 * s-pack47.ads: Likewise.
1685 * s-pack48.adb: Likewise.
1686 * s-pack48.ads: Likewise.
1687 * s-pack49.adb: Likewise.
1688 * s-pack49.ads: Likewise.
1689 * s-pack50.adb: Likewise.
1690 * s-pack50.ads: Likewise.
1691 * s-pack51.adb: Likewise.
1692 * s-pack51.ads: Likewise.
1693 * s-pack52.adb: Likewise.
1694 * s-pack52.ads: Likewise.
1695 * s-pack53.adb: Likewise.
1696 * s-pack53.ads: Likewise.
1697 * s-pack54.adb: Likewise.
1698 * s-pack54.ads: Likewise.
1699 * s-pack55.adb: Likewise.
1700 * s-pack55.ads: Likewise.
1701 * s-pack56.adb: Likewise.
1702 * s-pack56.ads: Likewise.
1703 * s-pack57.adb: Likewise.
1704 * s-pack57.ads: Likewise.
1705 * s-pack58.adb: Likewise.
1706 * s-pack58.ads: Likewise.
1707 * s-pack59.adb: Likewise.
1708 * s-pack59.ads: Likewise.
1709 * s-pack60.adb: Likewise.
1710 * s-pack60.ads: Likewise.
1711 * s-pack61.adb: Likewise.
1712 * s-pack61.ads: Likewise.
1713 * s-pack62.adb: Likewise.
1714 * s-pack62.ads: Likewise.
1715 * s-pack63.adb: Likewise.
1716 * s-pack63.ads: Likewise.
1717 * s-parame-ae653.ads: Likewise.
1718 * s-parame-hpux.ads: Likewise.
1719 * s-parame-rtems.adb: Likewise.
1720 * s-parame-vms-alpha.ads: Likewise.
1721 * s-parame-vms-ia64.ads: Likewise.
1722 * s-parame-vms-restrict.ads: Likewise.
1723 * s-parame-vxworks.adb: Likewise.
1724 * s-parame-vxworks.ads: Likewise.
1725 * s-parame.adb: Likewise.
1726 * s-parame.ads: Likewise.
1727 * s-parint.adb: Likewise.
1728 * s-parint.ads: Likewise.
1729 * s-pooglo.adb: Likewise.
1730 * s-pooglo.ads: Likewise.
1731 * s-pooloc.adb: Likewise.
1732 * s-pooloc.ads: Likewise.
1733 * s-poosiz.adb: Likewise.
1734 * s-poosiz.ads: Likewise.
1735 * s-powtab.ads: Likewise.
1736 * s-proinf-irix-athread.adb: Likewise.
1737 * s-proinf-irix-athread.ads: Likewise.
1738 * s-proinf.adb: Likewise.
1739 * s-proinf.ads: Likewise.
1740 * s-purexc.ads: Likewise.
1741 * s-rannum.adb: Likewise.
1742 * s-rannum.ads: Likewise.
1743 * s-restri.adb: Likewise.
1744 * s-restri.ads: Likewise.
1745 * s-rident.ads: Likewise.
1746 * s-rpc.adb: Likewise.
1747 * s-rpc.ads: Likewise.
1748 * s-scaval.adb: Likewise.
1749 * s-scaval.ads: Likewise.
1750 * s-secsta.adb: Likewise.
1751 * s-secsta.ads: Likewise.
1752 * s-sequio.adb: Likewise.
1753 * s-sequio.ads: Likewise.
1754 * s-shasto.adb: Likewise.
1755 * s-shasto.ads: Likewise.
1756 * s-soflin.adb: Likewise.
1757 * s-soflin.ads: Likewise.
1758 * s-solita.adb: Likewise.
1759 * s-solita.ads: Likewise.
1760 * s-sopco3.adb: Likewise.
1761 * s-sopco3.ads: Likewise.
1762 * s-sopco4.adb: Likewise.
1763 * s-sopco4.ads: Likewise.
1764 * s-sopco5.adb: Likewise.
1765 * s-sopco5.ads: Likewise.
1766 * s-stache.adb: Likewise.
1767 * s-stache.ads: Likewise.
1768 * s-stalib.adb: Likewise.
1769 * s-stalib.ads: Likewise.
1770 * s-stausa.adb: Likewise.
1771 * s-stausa.ads: Likewise.
1772 * s-stchop-limit.ads: Likewise.
1773 * s-stchop-rtems.adb: Likewise.
1774 * s-stchop-vxworks.adb: Likewise.
1775 * s-stchop.adb: Likewise.
1776 * s-stchop.ads: Likewise.
1777 * s-stoele.adb: Likewise.
1778 * s-stoele.ads: Likewise.
1779 * s-stopoo.adb: Likewise.
1780 * s-stopoo.ads: Likewise.
1781 * s-stratt.adb: Likewise.
1782 * s-stratt.ads: Likewise.
1783 * s-strcom.adb: Likewise.
1784 * s-strcom.ads: Likewise.
1785 * s-string.adb: Likewise.
1786 * s-string.ads: Likewise.
1787 * s-strops.adb: Likewise.
1788 * s-strops.ads: Likewise.
1789 * s-strxdr.adb: Likewise.
1790 * s-ststop.adb: Likewise.
1791 * s-ststop.ads: Likewise.
1792 * s-taasde.adb: Likewise.
1793 * s-taasde.ads: Likewise.
1794 * s-tadeca.adb: Likewise.
1795 * s-tadeca.ads: Likewise.
1796 * s-tadert.adb: Likewise.
1797 * s-tadert.ads: Likewise.
1798 * s-taenca.adb: Likewise.
1799 * s-taenca.ads: Likewise.
1800 * s-taprob.ads: Likewise.
1801 * s-taprop-dummy.adb: Likewise.
1802 * s-taprop-hpux-dce.adb: Likewise.
1803 * s-taprop-irix.adb: Likewise.
1804 * s-taprop-linux.adb: Likewise.
1805 * s-taprop-lynxos.adb: Likewise.
1806 * s-taprop-mingw.adb: Likewise.
1807 * s-taprop-posix.adb: Likewise.
1808 * s-taprop-solaris.adb: Likewise.
1809 * s-taprop-tru64.adb: Likewise.
1810 * s-taprop-vms.adb: Likewise.
1811 * s-taprop-vxworks.adb: Likewise.
1812 * s-taprop.ads: Likewise.
1813 * s-tarest.adb: Likewise.
1814 * s-tarest.ads: Likewise.
1815 * s-tasdeb.adb: Likewise.
1816 * s-tasdeb.ads: Likewise.
1817 * s-tasinf-irix.ads: Likewise.
1818 * s-tasinf-linux.adb: Likewise.
1819 * s-tasinf-linux.ads: Likewise.
1820 * s-tasinf-mingw.adb: Likewise.
1821 * s-tasinf-mingw.ads: Likewise.
1822 * s-tasinf-solaris.adb: Likewise.
1823 * s-tasinf-solaris.ads: Likewise.
1824 * s-tasinf-tru64.ads: Likewise.
1825 * s-tasinf.adb: Likewise.
1826 * s-tasinf.ads: Likewise.
1827 * s-tasini.adb: Likewise.
1828 * s-tasini.ads: Likewise.
1829 * s-taskin.adb: Likewise.
1830 * s-taskin.ads: Likewise.
1831 * s-taspri-dummy.ads: Likewise.
1832 * s-taspri-hpux-dce.ads: Likewise.
1833 * s-taspri-mingw.ads: Likewise.
1834 * s-taspri-solaris.ads: Likewise.
1835 * s-taspri-tru64.ads: Likewise.
1836 * s-taspri-vms.ads: Likewise.
1837 * s-taspri-vxworks.ads: Likewise.
1838 * s-tasque.adb: Likewise.
1839 * s-tasque.ads: Likewise.
1840 * s-tasren.adb: Likewise.
1841 * s-tasren.ads: Likewise.
1842 * s-tasres.ads: Likewise.
1843 * s-tassta.adb: Likewise.
1844 * s-tassta.ads: Likewise.
1845 * s-tasuti.adb: Likewise.
1846 * s-tasuti.ads: Likewise.
1847 * s-tfsetr-default.adb: Likewise.
1848 * s-tfsetr-vxworks.adb: Likewise.
1849 * s-tpinop.adb: Likewise.
1850 * s-tpinop.ads: Likewise.
1851 * s-tpoben.adb: Likewise.
1852 * s-tpoben.ads: Likewise.
1853 * s-tpobop.adb: Likewise.
1854 * s-tpobop.ads: Likewise.
1855 * s-tpopde-vms.adb: Likewise.
1856 * s-tpopde-vms.ads: Likewise.
1857 * s-tpopsp-lynxos.adb: Likewise.
1858 * s-tpopsp-posix-foreign.adb: Likewise.
1859 * s-tpopsp-posix.adb: Likewise.
1860 * s-tpopsp-solaris.adb: Likewise.
1861 * s-tpopsp-vxworks.adb: Likewise.
1862 * s-tporft.adb: Likewise.
1863 * s-tposen.adb: Likewise.
1864 * s-tposen.ads: Likewise.
1865 * s-traceb.adb: Likewise.
1866 * s-traceb.ads: Likewise.
1867 * s-traces-default.adb: Likewise.
1868 * s-traces.adb: Likewise.
1869 * s-traces.ads: Likewise.
1870 * s-traent-vms.adb: Likewise.
1871 * s-traent-vms.ads: Likewise.
1872 * s-traent.adb: Likewise.
1873 * s-traent.ads: Likewise.
1874 * s-trafor-default.adb: Likewise.
1875 * s-trafor-default.ads: Likewise.
1876 * s-tratas-default.adb: Likewise.
1877 * s-tratas.adb: Likewise.
1878 * s-tratas.ads: Likewise.
1879 * s-unstyp.ads: Likewise.
1880 * s-utf_32.adb: Likewise.
1881 * s-utf_32.ads: Likewise.
1882 * s-vaflop-vms-alpha.adb: Likewise.
1883 * s-vaflop.adb: Likewise.
1884 * s-vaflop.ads: Likewise.
1885 * s-valboo.adb: Likewise.
1886 * s-valboo.ads: Likewise.
1887 * s-valcha.adb: Likewise.
1888 * s-valcha.ads: Likewise.
1889 * s-valdec.adb: Likewise.
1890 * s-valdec.ads: Likewise.
1891 * s-valenu.adb: Likewise.
1892 * s-valenu.ads: Likewise.
1893 * s-valint.adb: Likewise.
1894 * s-valint.ads: Likewise.
1895 * s-vallld.adb: Likewise.
1896 * s-vallld.ads: Likewise.
1897 * s-vallli.adb: Likewise.
1898 * s-vallli.ads: Likewise.
1899 * s-valllu.adb: Likewise.
1900 * s-valllu.ads: Likewise.
1901 * s-valrea.adb: Likewise.
1902 * s-valrea.ads: Likewise.
1903 * s-valuns.adb: Likewise.
1904 * s-valuns.ads: Likewise.
1905 * s-valuti.adb: Likewise.
1906 * s-valuti.ads: Likewise.
1907 * s-valwch.adb: Likewise.
1908 * s-valwch.ads: Likewise.
1909 * s-veboop.adb: Likewise.
1910 * s-veboop.ads: Likewise.
1911 * s-vector.ads: Likewise.
1912 * s-vercon.adb: Likewise.
1913 * s-vercon.ads: Likewise.
1914 * s-vmexta.adb: Likewise.
1915 * s-vmexta.ads: Likewise.
1916 * s-vxwext-kernel.ads: Likewise.
1917 * s-vxwext-rtp.adb: Likewise.
1918 * s-vxwext-rtp.ads: Likewise.
1919 * s-vxwext.ads: Likewise.
1920 * s-vxwork-arm.ads: Likewise.
1921 * s-vxwork-m68k.ads: Likewise.
1922 * s-vxwork-mips.ads: Likewise.
1923 * s-vxwork-ppc.ads: Likewise.
1924 * s-vxwork-sparcv9.ads: Likewise.
1925 * s-vxwork-x86.ads: Likewise.
1926 * s-wchcnv.adb: Likewise.
1927 * s-wchcnv.ads: Likewise.
1928 * s-wchcon.adb: Likewise.
1929 * s-wchcon.ads: Likewise.
1930 * s-wchjis.adb: Likewise.
1931 * s-wchjis.ads: Likewise.
1932 * s-wchstw.adb: Likewise.
1933 * s-wchstw.ads: Likewise.
1934 * s-wchwts.adb: Likewise.
1935 * s-wchwts.ads: Likewise.
1936 * s-widboo.adb: Likewise.
1937 * s-widboo.ads: Likewise.
1938 * s-widcha.adb: Likewise.
1939 * s-widcha.ads: Likewise.
1940 * s-widenu.adb: Likewise.
1941 * s-widenu.ads: Likewise.
1942 * s-widlli.adb: Likewise.
1943 * s-widlli.ads: Likewise.
1944 * s-widllu.adb: Likewise.
1945 * s-widllu.ads: Likewise.
1946 * s-widwch.adb: Likewise.
1947 * s-widwch.ads: Likewise.
1948 * s-win32.ads: Likewise.
1949 * s-winext.ads: Likewise.
1950 * s-wwdcha.adb: Likewise.
1951 * s-wwdcha.ads: Likewise.
1952 * s-wwdenu.adb: Likewise.
1953 * s-wwdenu.ads: Likewise.
1954 * s-wwdwch.adb: Likewise.
1955 * s-wwdwch.ads: Likewise.
1956 * scans.adb: Likewise.
1957 * scans.ads: Likewise.
1958 * seh_init.c: Likewise.
1959 * sfn_scan.adb: Likewise.
1960 * sinfo.adb: Likewise.
1961 * sinfo.ads: Likewise.
1962 * sinput.adb: Likewise.
1963 * sinput.ads: Likewise.
1964 * snames.adb: Likewise.
1965 * snames.ads: Likewise.
1966 * socket.c: Likewise.
1967 * stand.adb: Likewise.
1968 * stand.ads: Likewise.
1969 * stringt.adb: Likewise.
1970 * stringt.ads: Likewise.
1971 * sysdep.c: Likewise.
1972 * system-aix.ads: Likewise.
1973 * system-darwin-ppc.ads: Likewise.
1974 * system-darwin-x86.ads: Likewise.
1975 * system-darwin-x86_64.ads: Likewise.
1976 * system-freebsd-x86.ads: Likewise.
1977 * system-hpux-ia64.ads: Likewise.
1978 * system-hpux.ads: Likewise.
1979 * system-irix-n32.ads: Likewise.
1980 * system-irix-n64.ads: Likewise.
1981 * system-irix-o32.ads: Likewise.
1982 * system-linux-alpha.ads: Likewise.
1983 * system-linux-hppa.ads: Likewise.
1984 * system-linux-ia64.ads: Likewise.
1985 * system-linux-mips.ads: Likewise.
1986 * system-linux-mipsel.ads: Likewise.
1987 * system-linux-ppc.ads: Likewise.
1988 * system-linux-ppc64.ads: Likewise.
1989 * system-linux-s390.ads: Likewise.
1990 * system-linux-s390x.ads: Likewise.
1991 * system-linux-sh4.ads: Likewise.
1992 * system-linux-sparc.ads: Likewise.
1993 * system-linux-sparcv9.ads: Likewise.
1994 * system-linux-x86.ads: Likewise.
1995 * system-linux-x86_64.ads: Likewise.
1996 * system-lynxos-ppc.ads: Likewise.
1997 * system-lynxos-x86.ads: Likewise.
1998 * system-mingw-x86_64.ads: Likewise.
1999 * system-mingw.ads: Likewise.
2000 * system-rtems.ads: Likewise.
2001 * system-solaris-sparc.ads: Likewise.
2002 * system-solaris-sparcv9.ads: Likewise.
2003 * system-solaris-x86.ads: Likewise.
2004 * system-solaris-x86_64.ads: Likewise.
2005 * system-tru64.ads: Likewise.
2006 * system-vms-ia64.ads: Likewise.
2007 * system-vms-zcx.ads: Likewise.
2008 * system-vms.ads: Likewise.
2009 * system-vms_64.ads: Likewise.
2010 * system-vxworks-arm.ads: Likewise.
2011 * system-vxworks-m68k.ads: Likewise.
2012 * system-vxworks-mips.ads: Likewise.
2013 * system-vxworks-ppc.ads: Likewise.
2014 * system-vxworks-sparcv9.ads: Likewise.
2015 * system-vxworks-x86.ads: Likewise.
2016 * system.ads: Likewise.
2017 * table.adb: Likewise.
2018 * table.ads: Likewise.
2019 * targext.c: Likewise.
2020 * targparm.ads: Likewise.
2021 * tree_in.adb: Likewise.
2022 * tree_in.ads: Likewise.
2023 * tree_io.adb: Likewise.
2024 * tree_io.ads: Likewise.
2025 * types.adb: Likewise.
2026 * types.ads: Likewise.
2027 * uintp.adb: Likewise.
2028 * uintp.ads: Likewise.
2029 * uname.adb: Likewise.
2030 * uname.ads: Likewise.
2031 * urealp.adb: Likewise.
2032 * urealp.ads: Likewise.
2033 * vx_stack_info.c: Likewise.
2034 * widechar.adb: Likewise.
2035 * widechar.ads: Likewise.
2036 * exp_attr.adb: Change copyright header to refer to version
2037 3 of the GNU General Public License and to point readers at the
2038 COPYING3 file and the FSF's license web page.
2039 * sem.adb: Likewise.
2040 * sem_attr.ads: Likewise.
2041 * freeze.adb: Likewise.
2042 * freeze.ads: Likewise.
2043 * errout.ads: Likewise.
2044 * erroutc.adb: Likewise.
2045 * exp_ch11.ads: Likewise.
2047 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2049 * config-lang.in: Change copyright header to refer to version
2050 3 of the GNU General Public License and to point readers at the
2051 COPYING3 file and the FSF's license web page.
2052 * gcc-interface/trans.c: Likewise.
2053 * gnathtml.pl: Likewise.
2054 * gcc-interface/ada.h: Likewise. Remove runtime exception.
2055 * gcc-interface/gigi.h: Likewise.
2056 * gcc-interface/misc.c: Likewise.
2057 * gcc-interface/targtyps.c: Likewise.
2059 2009-04-09 Nicolas Setton <setton@adacore.com>
2061 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
2063 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
2066 2009-04-09 Bob Duff <duff@adacore.com>
2068 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
2069 internally-generated nodes related to select statements to avoid
2070 confusing the debugger.
2072 2009-04-09 Pascal Obry <obry@adacore.com>
2074 * make.adb: Ensure that all linker arguments are duplicated.
2076 2009-04-09 Robert Dewar <dewar@adacore.com>
2078 * sem_ch5.adb: Minor reformatting
2080 2009-04-09 Vincent Celier <celier@adacore.com>
2083 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
2084 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
2085 New qualifier /LXDEBUG=nnn for -gnatDnnn
2089 Update documentation for VMS qualifiers equivalent to -gnatGnn and
2092 2009-04-09 Nicolas Setton <setton@adacore.com>
2094 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
2095 to match layout of siginfo_t in sys/signal.h.
2097 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
2099 2009-04-09 Thomas Quinot <quinot@adacore.com>
2101 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
2103 2009-04-09 Nicolas Setton <setton@adacore.com>
2105 * s-oscons-tmplt.c: Allow long lines in the generated spec.
2106 Add generation of Darwin-specific constants needed when binding to the
2109 2009-04-09 Robert Dewar <dewar@adacore.com>
2112 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
2113 when no invalid values exist, Avoid duplicate read of atomic variable.
2115 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
2116 (Standard_Unsigned): Set Is_Known_Valid
2118 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
2119 subtype declaration if no constraint.
2120 (Set_Modular_Size): Set Is_Known_Valid if appropriate
2121 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
2123 2009-04-09 Robert Dewar <dewar@adacore.com>
2125 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
2126 switch.ads: for numeric switches, an optional equal sign is always
2129 2009-04-09 Vincent Celier <celier@adacore.com>
2131 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
2132 the case of file names is not significant.
2134 2009-04-09 Vincent Celier <celier@adacore.com>
2136 * errout.adb: Remove dependency on package Style
2138 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
2141 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
2144 * errutil.adb, par.adb: Import Stylesw
2146 2009-04-09 Arnaud Charlet <charlet@adacore.com>
2148 * opt.ads: Fix typos.
2150 2009-04-09 Robert Dewar <dewar@adacore.com>
2152 * einfo.adb: Minor reformatting
2154 2009-04-09 Robert Dewar <dewar@adacore.com>
2156 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
2159 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
2161 2009-04-09 Robert Dewar <dewar@adacore.com>
2163 * g-comver.adb: Minor reformatting.
2165 2009-04-09 Thomas Quinot <quinot@adacore.com>
2167 * lib-load.ads (Load_Unit): Update documentation.
2169 2009-04-09 Ed Schonberg <schonberg@adacore.com>
2171 * lib-load.adb (Load_Unit): When loading the parent of a child unit
2172 named in a with_clause, retain the with_clause to preserve a
2173 limited_with indication.
2175 2009-04-09 Robert Dewar <dewar@adacore.com>
2177 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
2178 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
2179 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
2180 possible to replace an OR of two separate tests.
2182 2009-04-09 Robert Dewar <dewar@adacore.com>
2184 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
2187 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
2188 warning status as well.
2190 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
2192 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
2195 * bindusg.adb, usage.adb: Update line for -gnatm switch
2197 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
2200 2009-04-09 Robert Dewar <dewar@adacore.com>
2202 * sem_ch10.adb: Minor reformatting.
2204 2009-04-09 Bob Duff <duff@adacore.com>
2206 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
2207 Set Sloc of generated nodes for calls to Undefer_Aborts and
2208 Save_Occurrence to No_Location, so the debugger ignores them and
2209 therefore does not jump back and forth when single stepping.
2211 2009-04-09 Robert Dewar <dewar@adacore.com>
2213 * switch-b.adb: Minor reformatting.
2215 2009-04-09 Robert Dewar <dewar@adacore.com>
2217 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
2218 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
2219 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
2220 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
2221 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
2222 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
2223 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
2224 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
2225 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
2226 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
2227 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
2229 2009-04-09 Robert Dewar <dewar@adacore.com>
2231 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
2233 * atree.h: Add Elist26
2235 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
2238 2009-04-09 Javier Miranda <miranda@adacore.com>
2240 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
2241 retrieve from the Dispatch_Table_Wrappers list the external name.
2242 Addition of documentation.
2243 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
2244 used to export secondary dispatch tables (in the previous version of
2245 the frontend only primary dispatch tables were exported). Addition of
2247 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
2248 dispatch table of a given tagged type.
2249 (Make_Tags): Modified to import secondary dispatch tables.
2251 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
2252 (Constant_Redeclaration): Code cleanup.
2254 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
2255 Dispatch_Table_Wrappers. Update documentation.
2257 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
2258 Renamed to Dispatch_Table_Wrappers.
2260 * sem_util.adb (Collect_Interface_Components): Improve handling of
2263 * atree.ads (Elist26, Set_Elist26): New subprograms
2265 * atree.adb (Elist26, Set_Elist26): New subprograms
2267 2009-04-09 Javier Miranda <miranda@adacore.com>
2269 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
2270 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
2273 2009-04-09 Robert Dewar <dewar@adacore.com>
2275 * s-direio.adb: Minor reformatting
2277 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
2279 2009-04-09 Robert Dewar <dewar@adacore.com>
2281 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
2283 2009-04-09 Pascal Obry <obry@adacore.com>
2285 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
2286 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
2287 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
2288 a-filico.ads: Add some missing overriding keywords.
2290 2009-04-09 Pascal Obry <obry@adacore.com>
2292 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
2293 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
2294 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
2297 2009-04-09 Ed Schonberg <schonberg@adacore.com>
2299 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
2300 missing overriding indicator if the new declaration is not seen as
2303 2009-04-09 Thomas Quinot <quinot@adacore.com>
2305 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
2306 overflows in computation of bounds.
2308 2009-04-09 Pascal Obry <obry@adacore.com>
2310 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
2313 2009-04-09 Robert Dewar <dewar@adacore.com>
2315 * sem_attr.adb (Check_Stream_Attribute): Check violation of
2316 restriction No_Streams
2318 * gnat_rm.texi: Clarify No_Streams restriction
2320 * g-socket.adb: Minor reformatting.
2322 2009-04-09 Thomas Quinot <quinot@adacore.com>
2324 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
2326 2009-04-09 Geert Bosch <bosch@adacore.com>
2328 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
2329 (Set_Result): Likewise.
2330 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
2331 conversion, as required by RM 4.6(31).
2333 2009-04-08 Robert Dewar <dewar@adacore.com>
2335 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
2338 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
2341 2009-04-08 Robert Dewar <dewar@adacore.com>
2343 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
2344 No_Local_Allocators restriction preventing local instantiation.
2346 2009-04-08 Thomas Quinot <quinot@adacore.com>
2348 * sem_eval.adb: Minor comment fix
2350 2009-04-08 Thomas Quinot <quinot@adacore.com>
2352 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
2353 New limited controlled type used to automate the initialization and
2354 finalization of the sockets implementation.
2355 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
2357 2009-04-08 Vincent Celier <celier@adacore.com>
2359 * prj-attr.adb: New read-only project-level attribute Project_Dir
2361 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
2362 read-only attribute of the same name.
2363 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
2364 (Recursive_Process): Ditto
2366 * snames.adb: Add new standard name Project_Dir
2368 * snames.ads: Add new standard name Project_Dir
2370 2009-04-08 Thomas Quinot <quinot@adacore.com>
2372 * checks.adb: Minor reformatting
2374 2009-04-08 Vincent Celier <celier@adacore.com>
2376 * vms_data.ads: Add documentation for new style keyword
2377 OVERRIDING_INDICATORS
2379 2009-04-08 Robert Dewar <dewar@adacore.com>
2381 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
2382 spec is in the current unit.
2384 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2386 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
2389 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
2391 2009-04-08 Vincent Celier <celier@adacore.com>
2393 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
2395 2009-04-08 Thomas Quinot <quinot@adacore.com>
2397 * checks.ads: Minor reformatting
2399 2009-04-08 Robert Dewar <dewar@adacore.com>
2401 * gnat_rm.texi: Update documentation of pragma Obsolescent
2403 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
2404 be omitted, and allow Entity parameter to be omitted.
2406 2009-04-08 Thomas Quinot <quinot@adacore.com>
2408 * exp_util.adb: Minor comment fix
2410 2009-04-08 Robert Dewar <dewar@adacore.com>
2412 * g-socket.ads: Fix bad syntax in pragma Obsolescent
2414 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
2415 argument with no identifier following one that has an identifier. Was
2416 missed in some cases.
2418 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
2420 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
2422 * snames.adb: Add Name_Policy
2424 * snames.ads: Add Name_Policy
2426 2009-04-08 Robert Dewar <dewar@adacore.com>
2428 * gnat_rm.texi: Minor reformatting
2430 * par-ch2.adb: Minor reformatting
2432 2009-04-08 Robert Dewar <dewar@adacore.com>
2434 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
2436 2009-04-08 Robert Dewar <dewar@adacore.com>
2438 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
2439 properly in the presence of Remote_Types or Remote_Call_Interface.
2441 * sem_util.adb: Add comment.
2443 2009-04-08 Robert Dewar <dewar@adacore.com>
2445 * ug_words: Add /ASSUME_VALID for -gnatB
2447 * vms_data.ads: Add /ASSUME_VALID for -gnatB
2449 * sem_cat.adb: Add clarifying commment
2451 * a-direio.ads (Bytes): Make sure value is non-zero
2453 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2455 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
2456 that does not come from source, check for a rewritten function call in
2457 prefixed notation before other forms of rewriting.
2459 2009-04-08 Robert Dewar <dewar@adacore.com>
2461 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
2462 these are now obsolescent units used only for bootrapping with an
2465 2009-04-08 Robert Dewar <dewar@adacore.com>
2467 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
2469 * sem_ch3.adb: Minor comment updates
2471 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2473 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
2474 that come from source.
2476 2009-04-08 Tristan Gingold <gingold@adacore.com>
2478 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
2479 * gcc-interface/decl.c (prepend_attributes): New case
2480 Pragma_Thread_Local_Storage.
2481 * gcc-interface/utils.c (process_attributes): New case
2482 ATTR_THREAD_LOCAL_STORAGE.
2484 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2486 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
2487 by the back-end if it contains a call to a subprogram without a
2488 previous spec that is declared in the same unit.
2490 * errout.ads: Update comments on uses of dirs
2492 2009-04-08 Robert Dewar <dewar@adacore.com>
2494 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
2496 2009-04-08 Tristan Gingold <gingold@adacore.com>
2498 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
2500 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
2502 2009-04-08 Vincent Celier <celier@adacore.com>
2505 (Add_Source): Add the mapping of the unit name to source file name in
2506 the Unit_Sources_HT hash table, if the unit name is not null.
2508 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
2510 * prj.ads (Unit_Sources_Htable): New hash table instantiation
2511 (Project_Tree_Data): New component Unit_Sources_HT
2513 2009-04-08 Thomas Quinot <quinot@adacore.com>
2515 * sem_ch8.adb: Minor reformatting.
2516 Minor code reorganization.
2518 2009-04-08 Robert Dewar <dewar@adacore.com>
2520 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
2521 snames.ads, freeze.adb, par-prag.adb: Add implementation of
2522 pragma Thread_Local_Storage, setting new flag
2523 Has_Pragma_Thread_Local_Storage in corresponding entities.
2525 2009-04-08 Emmanuel Briot <briot@adacore.com>
2527 * prj.ads: Update comment on switches file
2529 * prj-nmsc.adb: Code clean up. Use renaming clauses.
2531 2009-04-08 Robert Dewar <dewar@adacore.com>
2533 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
2535 2009-04-08 Thomas Quinot <quinot@adacore.com>
2537 * ali-util.adb: Minor comment fix
2539 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2541 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
2542 appears in a context clause, and the enclosing package is mentioned in
2543 a limited_with_clause.
2544 (Use_One_Type): Reject clause if type is still incomplete.
2546 2009-04-08 Emmanuel Briot <briot@adacore.com>
2548 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
2549 avoid copies of Source_Data variables when possible, since these
2550 involve calls to memcpy() which are done too many times.
2552 2009-04-08 Robert Dewar <dewar@adacore.com>
2554 * exp_ch4.adb (Expand_Concatenate): Clean up code
2556 2009-04-07 Thomas Quinot <quinot@adacore.com>
2558 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
2559 type for the case of concatenating a constrained array indexed by an
2562 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2564 * sem_ch6.adb (Check_Conformance): when checking conformance of an
2565 operation that overrides an abstract operation inherited from an
2566 interface, return False if only one of the controlling formals is an
2569 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2571 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
2572 mandated by AI05-105.
2574 2009-04-07 Vincent Celier <celier@adacore.com>
2576 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
2578 2009-04-07 Thomas Quinot <quinot@adacore.com>
2580 * usage.adb: Minor fix in usage message.
2582 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
2583 match declaration; the correct subtype is Node_Id, not Entity_Id,
2584 because the expected node kind is an identifier, not a defining
2587 * switch-c.adb: Minor reformatting.
2589 * uintp.adb: Minor reformatting.
2591 2009-04-07 Robert Dewar <dewar@adacore.com>
2593 * exp_ch13.adb: Minor reformatting
2595 2009-04-07 Robert Dewar <dewar@adacore.com>
2597 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
2598 against missing parent.
2600 2009-04-07 Thomas Quinot <quinot@adacore.com>
2602 * xoscons.adb: Minor reformatting
2604 2009-04-07 Robert Dewar <dewar@adacore.com>
2606 * rtsfind.ads: Remove obsolete string concatenation entries
2608 2009-04-07 Robert Dewar <dewar@adacore.com>
2610 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
2612 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2614 * sem_ch10.adb (Check_Body_Required): Handle properly imported
2617 2009-04-07 Gary Dismukes <dismukes@adacore.com>
2619 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
2620 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
2621 is of a scalar or string type then suppress the setting of the
2622 expression to Empty.
2624 * freeze.adb (Warn_Overlay): Also emit the warnings about default
2625 initialization for the cases of scalar and string objects when
2626 Init_Or_Norm_Scalars is True.
2628 2009-04-07 Bob Duff <duff@adacore.com>
2630 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
2632 2009-04-07 Bob Duff <duff@adacore.com>
2634 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
2635 Form parameter of Text_Translation=No allows binary mode for Text_IO
2638 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
2640 2009-04-07 Javier Miranda <miranda@adacore.com>
2642 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
2643 processing the bounds for bit packed arrays or VM target machines.
2645 2009-04-07 Thomas Quinot <quinot@adacore.com>
2647 * g-sothco.ads (Int_Access): Remove extraneous access type (use
2648 anonymous access instead).
2649 (Get_Socket_From_Set): Fix incorrectly reverted formals
2650 Last and Socket to match the underlying C routine.
2652 * g-socket.adb, g-socket.ads
2653 (Get): Use named parameter associations instead of positional ones in
2654 call go Get_Socket_From_Set, since this routine has two formals of the
2656 (Image): New procedure.
2658 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2659 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
2660 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
2661 for type of Arg formal.
2663 * sem_warn.adb: Minor reformatting
2665 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2667 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
2668 over record components.
2670 2009-04-07 Nicolas Roche <roche@adacore.com>
2673 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
2674 has disappeared between VxWorks 6.4 and VxWorks 6.5
2675 In RTP mode use time.h instead of times.h
2677 2009-04-07 Robert Dewar <dewar@adacore.com>
2679 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
2681 2009-04-07 Kevin Pouget <pouget@adacore.com>
2683 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
2684 expanded code for constrained types.
2686 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2688 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
2689 AI05-105: in an object renaming declaration, anonymousness is a name
2692 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2694 2009-04-07 Arnaud Charlet <charlet@adacore.com>
2696 * g-comlin.adb (Expansion): Fix old regression: also return directory
2697 names when matching.
2699 2009-04-07 Robert Dewar <dewar@adacore.com>
2702 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
2703 (Expand_Concatenate): New name for Expand_Concatenate_String which has
2704 been rewritten to handle all types.
2705 (Expand_Concatenate_Other): Remove
2707 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2709 * lib-xref.adb (Generate_Reference): A default subprogram in an
2710 instance appears within the tree for the instance, but generates an
2711 implicit reference in the ALI.
2713 2009-04-07 Javier Miranda <miranda@adacore.com>
2715 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
2716 derived type that has discriminants, propagate the list of interfaces
2717 to the corresponding new base type. In addition, propagate also
2718 attribute Limited_Present (found working in this patch).
2720 2009-04-07 Robert Dewar <dewar@adacore.com>
2722 * exp_ch4.adb: Rewrite concatenation expansion.
2724 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2726 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
2727 relevant to packages.
2729 2009-04-07 Robert Dewar <dewar@adacore.com>
2731 * sem_attr.adb: Minor reformatting
2733 * sem_ch6.adb: Minor reformatting
2735 2009-04-07 Tristan Gingold <gingold@adacore.com>
2737 * socket.c: Add more protections against S_resolvLib_ macros.
2739 2009-04-07 Thomas Quinot <quinot@adacore.com>
2741 * sem_attr.adb: Minor reformatting
2743 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2745 * sem_ch6.adb (New_Overloaded_Entity): New predicate
2746 Is_Overriding_Alias to handle properly types that inherit two homonym
2747 operations that have distinct dispatch table entries.
2749 2009-04-07 Emmanuel Briot <briot@adacore.com>
2751 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
2752 looking for the end of a parenthesis group
2754 2009-04-07 Tristan Gingold <gingold@adacore.com>
2756 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
2758 * socket.c Don't use resolvLib_ macros if not defined.
2760 2009-04-07 Robert Dewar <dewar@adacore.com>
2762 * g-socket.adb: Minor reformatting.
2764 * g-socthi-mingw.adb: Minor reformatting
2766 * g-sothco.ads: Minor reformatting
2769 (Expand_Concatenate_String): Complete rewrite to generate efficient code
2770 inline instead of relying on external library routines.
2772 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
2773 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
2776 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2779 (Eval_Attribute): for attributes of array objects that are not strings,
2780 attributes are not static if nominal subtype of object is unconstrained.
2782 2009-04-07 Ed Schonberg <schonberg@adacore.com>
2784 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
2785 operations for a type T in an instance do not override each other,
2786 when T is derived from a formal private type, the corresponding
2787 operations inherited by a type derived from T outside
2788 of the instance do not override each other either.
2790 2009-04-07 Robert Dewar <dewar@adacore.com>
2792 (Osint.Fail): Change calling sequence to have one string arg
2793 (Make.Make_Failed): Same change
2794 All callers are adjusted to use concatenation
2796 2009-04-07 Robert Dewar <dewar@adacore.com>
2798 * exp_ch4.adb: Fix documentation typo
2800 2009-04-07 Robert Dewar <dewar@adacore.com>
2802 * tbuild.ads: Minor reformatting
2804 2009-04-07 Javier Miranda <miranda@adacore.com>
2806 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
2807 when compiling under ZFP runtime.
2809 2009-04-07 Robert Dewar <dewar@adacore.com>
2811 * g-comlin.adb: Minor reformatting
2813 2009-04-07 Thomas Quinot <quinot@adacore.com>
2815 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2816 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2817 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
2818 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
2820 2009-04-07 Robert Dewar <dewar@adacore.com>
2822 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
2824 * opt.ads (Sprint_Line_Limit): New parameter
2826 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
2828 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
2830 * usage.adb: Output information for -gnatGnn -gnatDnn
2832 2009-04-07 Robert Dewar <dewar@adacore.com>
2834 * make.adb: Minor reformatting
2836 2009-04-07 Robert Dewar <dewar@adacore.com>
2838 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
2840 2009-04-07 Robert Dewar <dewar@adacore.com>
2842 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
2844 2009-04-07 Robert Dewar <dewar@adacore.com>
2847 Remove Assume_Valid parameter from In_Subrange_Of calls
2850 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2851 (Is_In_Range): Remove incorrect use of Assume_Valid
2852 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
2855 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2856 (Is_In_Range): Documentation cleanup
2857 (Is_Out_Of_Range): Documentation cleanup
2860 Add documentation for Assume_No_Invalid_Values pragma
2862 * sem_ch12.adb: Minor reformatting
2864 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
2866 * sem_prag.adb: Improve error message.
2868 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
2869 LF/CR no longer recognized as line terminator
2871 * switch.ads: Minor documentation improvement
2873 * vms_data.ads: Minor reformatting
2875 2009-04-07 Robert Dewar <dewar@adacore.com>
2877 * checks.adb (Determine_Range): Add Assume_Valid parameter
2879 * checks.ads (Determine_Range): Add Assume_Valid parameter
2881 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
2882 Is_Null_Loop to suppress warnings in a loop body.
2885 (Rewrite_Comparison): Major rewrite to accomodate invalid values
2888 (Expand_N_Loop_Statement): Delete loop known not to execute
2891 (Assume_No_Invalid_Values): Now set to False, and as documented, this
2892 fully enables the proper handling of invalid values.
2895 New calling sequence for Is_In_Range
2898 (Analyze_Iteration_Scheme): Accomodate possible invalid values
2899 in determining if a loop range is null.
2902 (Is_In_Range): Add Assume_Valid parameter
2903 (Is_Out_Of_Range): Add Assume_Valid_Parameter
2904 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
2905 also to do more accurate and complete range analysis, catching more
2909 (Is_In_Range): Add Assume_Valid parameter
2910 (Is_Out_Of_Range): Add Assume_Valid_Parameter
2913 New calling sequence for Is_In_Range
2916 (Suppress_Loop_Warnings): New flag
2919 (Is_Null_Loop): Update documentation
2920 (Suppress_Loop_Warnings): New flag
2922 * gnat_ugn.texi: Document -gnatB switch
2924 2009-04-07 Arnaud Charlet <charlet@adacore.com>
2926 * gnatvsn.ads: Bump version number.
2928 2009-04-07 Thomas Quinot <quinot@adacore.com>
2930 * exp_ch3.adb: Minor rewording (comments)
2932 2009-04-07 Robert Dewar <dewar@adacore.com>
2934 * exp_disp.adb: Minor reformatting
2936 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2938 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
2940 * gcc-interface/trans.c (lvalue_required_p): Likewise.
2942 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2944 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
2945 Do not convert the result. Remove obsolete comment.
2947 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2949 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
2951 (Subprogram_Body_to_gnu): Fix pasto.
2953 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2955 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
2956 (void_type_decl_node): Remove.
2957 (init_gigi_decls): Likewise.
2958 (gnat_install_builtins): Declare.
2959 (record_builtin_type): Likewise.
2960 (create_type_stub_decl): Likewise.
2961 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
2962 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
2964 <E_Array_Subtype>: Use the index types, not only their name, in the
2965 record giving the names of the bounds, if any.
2966 For a packed array type, make it artificial only if the base type
2967 was artificial as well. Remove redundant statement.
2968 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
2970 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
2971 (rest_of_type_decl_compilation_no_defer): Likewise.
2972 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
2973 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
2974 and use create_type_stub_decl to build it.
2975 (gnat_pushdecl): Rewrite condition.
2976 (gnat_install_builtins): Remove bogus declaration.
2977 (record_builtin_type): New function.
2978 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
2980 (create_type_stub_decl): New function.
2981 (create_type_decl): Assert that the type is not dummy. If the type
2982 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
2983 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
2984 (build_vms_descriptor): Likewise.
2985 (init_gigi_decls): Delete and move bulk of code to...
2986 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
2987 (emit_range_check): Add gnat_node parameter.
2988 (emit_index_check): Likewise.
2989 (emit_check): Likewise.
2990 (build_unary_op_trapv): Likewise.
2991 (build_binary_op_trapv): Likewise.
2992 (convert_with_check): Likewise.
2993 (Attribute_to_gnu): Adjust calls for above changes.
2994 (call_to_gnu): Likewise.
2995 (gnat_to_gnu): Likewise.
2996 (assoc_to_constructor): Likewise.
2997 (pos_to_constructor): Likewise.
2998 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
2999 (process_type): Do not create TYPE_DECL for dummy types.
3001 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3003 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
3004 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
3005 * gcc-interface/utils.c: Fix comments.
3007 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3009 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
3011 (gnat_to_gnu_type): Move around.
3012 (get_unpadded_type): Likewise.
3013 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
3016 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3018 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
3019 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
3020 (call_to_gnu): Invoke it instead of manually checking.
3022 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
3024 * gcc-interface/utils.c (finish_record_type): Force structural equality
3025 checks if the record type is discriminated.
3027 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
3029 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
3030 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
3031 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
3032 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
3033 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
3034 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
3035 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
3037 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3039 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
3040 of TREE_CONSTANT_OVERFLOW.
3042 2009-03-30 Joseph Myers <joseph@codesourcery.com>
3044 PR rtl-optimization/323
3045 * gcc-interface/misc.c (gnat_post_options): Set
3046 flag_excess_precision_cmdline. Give an error for
3047 -fexcess-precision=standard for processors where the option is
3050 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
3053 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
3056 2009-03-11 Olivier Hainque <hainque@adacore.com>
3058 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
3059 checks processing, remove unintended TREE_TYPE walk on index type.
3061 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
3064 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
3065 call make_packable_type on fat pointer types.
3066 <E_Array_Subtype>: Likewise.
3067 <E_Record_Subtype>: Call make_packable_type on all record types
3068 except for fat pointer types.
3069 (make_packable_type): Likewise.
3070 (gnat_to_gnu_field): Likewise.
3072 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
3074 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
3075 EH_MECHANISM change made on 2007-12-06.
3077 2009-02-26 Andreas Schwab <schwab@suse.de>
3080 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
3081 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
3082 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
3084 (target_cpu_default): Substitute.
3086 2009-02-25 Laurent GUERBY <laurent@guerby.net>
3089 * a-teioed.adb (Expand): Fix Result overflow.
3091 2009-02-25 Laurent GUERBY <laurent@guerby.net>
3093 * gcc-interface/Makefile.in: Fix multilib handling for
3096 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3098 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
3100 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
3102 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
3104 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
3106 * gcc-interface/deftarg.c: Remove.
3108 2009-02-10 Olivier Hainque <hainque@adacore.com>
3109 Eric Botcazou <ebotcazou@adacore.com>
3111 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
3112 (copy_alias_set): Rename into...
3113 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
3114 underlying array of unconstrained arrays for the new type as well.
3115 If the old and new alias sets don't conflict, make one a subset of
3116 the other as per the OP parameter.
3117 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
3118 <E_Record_Type>: Do not copy the alias set for derived types.
3119 For all types, make the alias set of derived types a superset of
3120 that of their parent type.
3121 (make_aligning_type): Adjust calls to copy_alias_set.
3122 (make_packable_type): Likewise.
3123 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
3124 Check for alias set conflict instead of strict equality to issue the
3127 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
3129 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3130 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
3131 (copy_alias_set): Assert that arrays have the same aliasing settings.
3132 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
3134 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
3136 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3137 Set TYPE_NONALIASED_COMPONENT on the array type.
3139 2009-01-31 Laurent GUERBY <laurent@guerby.net>
3141 * gcc-interface/Makefile.in: Fix mipsel linux handling.
3143 2009-01-16 Jakub Jelinek <jakub@redhat.com>
3145 * gcc-interface/Makefile.in: Fix multilib handling for
3148 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
3150 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
3151 only useless conversions around renamed objects.
3153 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
3155 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
3156 the _Tag field before any discriminants in the field list.
3157 (components_to_record): Remove obsolete comment.
3159 2008-12-09 Jakub Jelinek <jakub@redhat.com>
3162 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
3163 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
3166 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
3169 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
3171 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
3174 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
3176 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
3178 * gcc-interface/decl.c: Fix various nits.
3180 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
3182 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
3184 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
3187 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
3188 special-case boolean types. Propagate the name.
3189 * gcc-interface/targtyps.c: Tweak comment.
3191 2008-11-15 Geert Bosch <bosch@adacore.com>
3193 * gcc-interface/trans.c (emit_check): Put back a final save_expr
3194 to prevent exponential expansion during gimplification.
3196 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
3198 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
3200 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
3202 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
3203 initialized to a static constant to be statically allocated even if
3204 they are of a padding type, provided the original type also has
3207 2008-11-15 Laurent Guerby <laurent@guerby.net>
3210 * gcc-interface/Makefile.in: Add multilib handling for x86_64
3212 * system-darwin-x86_64.ads: New file.
3214 2008-11-13 Olivier Hainque <hainque@adacore.com>
3216 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
3217 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
3218 are explicit to the middle-end. Tidy.
3220 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
3222 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
3223 (MINUS_NOMOD_EXPR): Likewise.
3224 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
3226 <PLUS_NOMOD_EXPR>: New case.
3227 <MINUS_NOMOD_EXPR>: Likewise.
3228 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
3229 assignment statement instead of using an increment operator.
3231 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3233 * system-irix-n64.ads: New file.
3234 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
3237 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3240 * system-solaris-x86_64.ads: New file.
3241 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
3243 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
3244 Eric Botcazou <ebotcazou@adacore.com>
3247 * lib.ads: (Enable_Switch_Storing): Declare.
3248 * lib.adb: (Enable_Switch_Storing): New procedure.
3249 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
3250 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
3251 (Display): Never display -gnatea
3252 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
3254 2008-11-07 Thomas Quinot <quinot@adacore.com>
3256 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
3257 for empty range in original base type, not converted result type.
3259 2008-11-07 Geert Bosch <bosch@adacore.com>
3261 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
3262 and result for call to __gnat_mulv64.
3264 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
3266 * gcc-interface/trans.c: Fix formatting nits.
3268 2008-11-07 Geert Bosch <bosch@adacore.com>
3270 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
3271 overflow check for constant result.
3273 2008-11-07 Geert Bosch <bosch@adacore.com>
3275 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
3276 overflow check for addition/subtraction if neither operand is constant.
3278 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3280 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
3281 files for the target-dependent part of the runtime.
3282 (SPARC/Linux): Likewise.
3284 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3286 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
3287 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
3290 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3292 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
3295 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3298 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
3299 Generate a call to memmove for an assignment between overlapping
3302 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3305 * gcc-interface/Makefile.in: Add multilib handling for
3306 s390-linux and s390x-linux.
3308 2008-10-24 Jakub Jelinek <jakub@redhat.com>
3310 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
3311 check-acats-subtargets and check-gnat-subtargets.
3312 (check_acats_targets): New variable.
3313 (check-acats-subtargets, check-acats%): New targets.
3314 (check-acats): If -j is used and CHAPTERS is empty, run the testing
3315 in multiple make goals, possibly parallel, and afterwards run
3316 dg-extract-results.sh to merge the sum and log files.
3318 2008-10-17 Geert Bosch <bosch@adacore.com>
3320 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
3321 to use only a single check instead of three, and avoid unnecessary
3323 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
3324 creating more opportunities for optimizations.
3326 2008-10-13 Jakub Jelinek <jakub@redhat.com>
3329 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
3332 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
3334 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
3335 dealing with volatileness to after code dealing with renaming.
3337 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3339 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
3340 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
3342 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3344 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
3345 (unchecked_convert): Use it to disable problematic folding with
3346 VIEW_CONVERT_EXPR in the general case. Always disable it for the
3347 special VIEW_CONVERT_EXPR built for integral types and cope with
3348 its addressability issues by preserving the first conversion.
3350 2008-10-01 Andreas Schwab <schwab@suse.de>
3352 * system-linux-ppc64.ads: New file.
3353 * gcc-interface/Makefile.in: Add multilib handling for
3356 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3358 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
3359 to that of ptr_mode instead of word_mode.
3361 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3364 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
3366 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
3369 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
3370 instead of deprecated FILE_WRITE_PROPERTIES.
3372 2008-09-22 Olivier Hainque <hainque@adacore.com>
3374 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
3375 are never assigned, volatile entities are not constant for code
3376 generation purposes.
3378 2008-09-21 Laurent Guerby <laurent@guerby.net>
3381 * gcc-interface/Makefile.in: Add multilib handling for x86_64
3383 * system-linux-sparcv9.ads: New file.
3385 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3387 * exp_dbug.ads: Document new convention for the XVZ variable.
3388 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
3389 debug info if necessary for the type padding the component type.
3390 <E_Array_Subtype>: Likewise.
3391 (maybe_pad_type): Emit the XVZ variable in units.
3392 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
3393 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
3394 on statements generated to initialize the parameter attributes cache.
3395 Set the source line of the end label of the body on the special return
3396 statement built for a procedure with copy-in copy-out parameters.
3398 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3401 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
3402 inlined external functions if they contain a nested function not
3405 2008-09-18 Jan Hubicka <jh@suse.cz>
3407 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
3408 (end_subprog_body): Do not set DECL_INLINE.
3410 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
3413 * gnat_ugn.texi: Use proper format in direntry.
3415 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
3417 * gcc-interface/trans.c (gigi): Declare the name of the compilation
3418 unit as the first global name.
3420 2008-09-14 Jan Hubicka <jh@suse.cz>
3422 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
3424 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3426 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
3427 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
3428 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
3429 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
3430 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
3431 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
3432 gcc-interface/gigi.h, gcc-interface/trans.c,
3433 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
3434 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
3435 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
3436 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
3437 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
3438 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3439 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
3440 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
3442 * gnathtml.pl: Fix typos.
3444 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
3446 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
3447 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
3448 layer. RTEMS binds to OS provided adapter routines so there are
3449 no modifications to s-osinte-rtems.adb.
3451 2008-09-09 Arnaud Charlet <charlet@adacore.com>
3452 Joel Sherrill <joel.sherrill@oarcorp.com>
3454 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
3456 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
3458 * s-interr-hwint.adb: New file.
3460 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
3461 needed by s-interr-hwint.adb.
3463 * s-osinte-vxworks-kernel.adb: New file.
3465 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3467 * s-stchop-rtems.adb: Add file missed in early commit. Already
3468 referenced in gcc-interface/Makefile.in.
3470 2008-08-30 Thomas Quinot <quinot@adacore.com>
3472 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
3473 be built even without a separate libada directory.
3475 2008-08-22 Arnaud Charlet <charlet@adacore.com>
3477 * lib-xref.ads: Fix typo in subprogram reference definition.
3479 2008-08-22 Robert Dewar <dewar@adacore.com>
3481 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
3484 * g-trasym.adb: Ditto
3486 * s-utf_32.adb (Get_Category): Fix obvious typo
3488 * s-wwdcha.adb: Minor code reorganization
3491 2008-08-22 Robert Dewar <dewar@adacore.com>
3493 * checks.adb (Determine_Range): Deal with values that might be invalid
3495 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
3496 configuration switches.
3498 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
3500 * sem_prag.adb: Implement pragma Assume_No_Default_Values
3502 * snames.adb, snames.ads, snames.h:
3503 Add entries for pragma Assume_No_Invalid_Values
3505 * switch-c.adb: Add processing for -gnatB switch
3507 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
3509 2008-08-22 Javier Miranda <miranda@adacore.com>
3511 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
3512 init procedure all the expanded code associated with the spec of
3513 task types and protected types.
3515 2008-08-22 Gary Dismukes <dismukes@adacore.com>
3517 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
3518 component expression copies rather than directly setting Etype and
3519 Is_Static_Expression.
3521 2008-08-22 Gary Dismukes <dismukes@adacore.com>
3523 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
3524 private types to allow for types derived from a private type with
3525 preelaborable initialization, but return False for a private extension
3526 (unless it has the pragma).
3528 2008-08-22 Robert Dewar <dewar@adacore.com>
3530 * opt.ads: Minor code reorganization (put entries in alpha order)
3532 2008-08-22 Pascal Obry <obry@adacore.com>
3534 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
3537 2008-08-22 Geert Bosch <bosch@adacore.com>
3539 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
3540 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
3542 2008-08-22 Doug Rupp <rupp@adacore.com>
3544 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
3545 __gnat_set_features.
3548 (__gnat_set_features): New function.
3549 (__gnat_features_set): New tracking variable.
3550 (__gl_no_malloc_64): New feature global variable
3552 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3554 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
3555 use_type_clause in an instance.
3557 2008-08-22 Bob Duff <duff@adacore.com>
3559 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
3561 2008-08-22 Robert Dewar <dewar@adacore.com>
3563 * exp_ch6.adb: Minor reformatting
3565 * exp_ch7.adb: Minor reformatting
3567 * exp_ch7.ads: Put routines in proper alpha order
3569 * exp_dist.adb: Minor reformatting
3571 2008-08-22 Vincent Celier <celier@adacore.com>
3573 * prj.ads: Minor comment update
3575 2008-08-22 Robert Dewar <dewar@adacore.com>
3577 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
3579 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3582 (Base_Init_Proc): For a protected subtype, use the base type of the
3583 corresponding record to locate the propoer initialization procedure.
3585 2008-08-22 Robert Dewar <dewar@adacore.com>
3588 (In_Subrange_Of): New calling sequence
3589 (Determine_Range): Prepare for new processing using base type
3592 (Compile_Time_Compare): Use new calling sequence
3595 (Compile_Time_Compare): Use new calling sequence
3598 (Compile_Time_Compare): New calling sequence allows dealing with
3600 (In_Subrange_Of): Ditto
3603 (Compile_Time_Compare): New calling sequence allows dealing with
3605 (In_Subrange_Of): Ditto
3607 2008-08-22 Pascal Obry <obry@adacore.com>
3609 * adaint.c: Fix possible race condition on win32_wait().
3611 2008-08-22 Bob Duff <duff@adacore.com>
3613 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
3614 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
3615 exp_intr.adb, exp_ch3.adb: Rename:
3616 Exp_Ch7.Controlled_Type => Needs_Finalization
3617 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
3618 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
3619 Has_Controlled_Parts
3620 (Has_Some_Controlled_Component): Fix bug in array case.
3622 2008-08-22 Robert Dewar <dewar@adacore.com>
3624 * sem_ch8.adb: Minor reformatting
3626 2008-08-22 Kevin Pouget <pouget@adacore.com>
3628 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
3629 Shared_Var_Close procedure specifications from package spec to package body.
3631 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
3632 RE_Shared_Var_WOpen entries.
3634 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
3635 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
3637 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
3639 * init.c: adjust EH support code on Alpha/Tru64 as well.
3641 * raise-gcc.c: Add back a couple of comments.
3643 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3645 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
3646 involved and the return type is class-wide, use the type of the expression
3647 for the generated access type. Suppress useless discriminant checks on the
3650 2008-08-22 Bob Duff <duff@adacore.com>
3652 * exp_ch7.adb: Minor comment fix
3654 * exp_ch6.ads: Minor comment fix
3656 2008-08-22 Thomas Quinot <quinot@adacore.com>
3658 * sem_ch8.adb: Minor reformatting
3659 Minor code reorganization (introduce subprogram to factor duplicated
3662 2008-08-22 Sergey Rybin <rybin@adacore.com>
3664 * gnat_ugn.texi: Change the description of gnatcheck default rule
3667 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
3669 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
3670 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
3671 do not adjust the PC anymore.
3672 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
3673 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
3675 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
3676 instead of _Unwind_GetIP.
3678 2008-08-22 Gary Dismukes <dismukes@adacore.com>
3680 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
3681 with a range is transformed into a positional aggregate, any copied
3682 component literals should be marked Is_Static_Expression.
3684 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
3685 not being known at at compile time when Configurable_Run_Time_Mode is
3688 2008-08-22 Robert Dewar <dewar@adacore.com>
3691 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
3692 Read or Input attribute.
3694 2008-08-22 Ed Schonberg <schonberg@adacore.com>
3696 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
3697 clauses in related units is redundant, if one of the units is a package
3698 instantiation, use its instance_spec to determine which unit is the
3699 ancestor of the other.
3701 2008-08-22 Javier Miranda <miranda@adacore.com>
3703 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
3704 attributes add missing support to handle designated types that come
3705 from the limited view.
3707 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
3709 2008-08-22 Sergey Rybin <rybin@adacore.com>
3711 * vms_data.ads: Add entry for new gnatcheck -mNNN option
3713 * gnat_ugn.texi: Add description for gnatcheck option '-m'
3715 2008-08-22 Sergey Rybin <rybin@adacore.com>
3717 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
3718 acoording to the latest changes in the metric rule interface
3720 2008-08-22 Vincent Celier <celier@adacore.com>
3722 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
3723 (Check): Check if the file names registered in the ALI file for the
3724 spec, the body and each of the subunits are the ones expected.
3726 2008-08-22 Robert Dewar <dewar@adacore.com>
3728 * g-catiio.adb: Code cleanup.
3730 2008-08-20 Vincent Celier <celier@adacore.com>
3732 * make.adb (Gnatmake): Remove extra space in version line
3735 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
3736 as the name may already have been entered in the table by the Project
3739 2008-08-20 Jose Ruiz <ruiz@adacore.com>
3741 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
3742 weak symbols so we use the version provided by MaRTE when available.
3744 2008-08-20 Emmanuel Briot <briot@adacore.com>
3746 * g-catiio.ads, g-catiio.adb:
3747 (Value): Avoid an unnecessary system call to Clock in most cases.
3748 This call is only needed when only the time is provided in the string,
3749 and ignored in all other cases. This is more efficient.
3751 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
3753 * raise-gcc.c: Fix formatting nits.
3755 2008-08-20 Robert Dewar <dewar@adacore.com>
3758 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
3759 non-existing component clause.
3761 * exp_ch5.adb: Minor reformatting
3763 * g-comlin.adb: Minor reformatting
3765 * make.adb: Minor reformatting
3767 * prj-proc.adb: Minor reformatting
3769 * stylesw.ads: Minor reformatting
3771 2008-08-20 Vincent Celier <celier@adacore.com>
3773 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
3774 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
3775 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
3776 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
3777 and a switch is not recognized by gnatmake.
3778 (Gnatmake): Implement new scheme for gnatmake switches and global
3779 compilation switches.
3780 (Switches_Of): Try successively Switches (<file name>),
3781 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
3783 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3785 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
3786 implement style check that overriding operations are explicitly marked
3789 * style.ads (Missing_Overriding): new procedure that provides interface
3792 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
3793 that the declaration or body of overriding operations carries an
3794 explicit overriding indicator.
3797 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
3798 explicit indicator should be present.
3800 * sem_ch6.adb (Verify_Overriding_Indicator,
3801 Check_Overriding_Indicator): If operation is overriding, check whether
3802 declaration and/or body of subprogram should be present
3804 2008-08-20 Vincent Celier <celier@adacore.com>
3806 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
3807 gprbuild when casing is MixedCase, whatever the casing of the letters
3810 2008-08-20 Gary Dismukes <dismukes@adacore.com>
3812 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
3813 creating dummy init proc.
3814 (Requires_Init_Proc): Return False in the case No_Default_Initialization
3815 is in force and the type does not have associated default
3816 initialization. Move test of Is_Public (with tests of restrictions
3817 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
3818 for default initialization.
3820 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
3822 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
3823 of any alias or prefix but having attached parameters (as \"-O2\").
3825 2008-08-20 Robert Dewar <dewar@adacore.com>
3827 * s-fileio.adb: Minor reformatting
3829 2008-08-20 Thomas Quinot <quinot@adacore.com>
3831 * exp_strm.adb (Build_Elementary_Input_Call,
3832 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
3833 selects the stream attribute routines for long float types.
3835 2008-08-20 Vincent Celier <celier@adacore.com>
3837 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
3839 * prj.ads (Array_Data): Add a component Location
3841 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3844 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
3845 argument for ASIS and navigation use.
3847 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3849 * einfo.ads: Add comment.
3851 2008-08-20 Bob Duff <duff@adacore.com>
3853 * sem_eval.ads: Minor comment fix.
3855 2008-08-20 Bob Duff <duff@adacore.com>
3857 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
3858 folding. We were folding things like "False and then ...", but not
3859 "X and then ..." where X is a constant whose value is known at compile
3862 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
3864 * exp_ch5.adb (Controlled_Type): New routine.
3865 (Expand_N_Extended_Return_Statement): When generating a move of the
3866 final list in extended return statements, check the type of the
3867 function and in the case of double expanded return statements, the type
3868 of the returned object.
3869 (Expand_Simple_Function_Return): Perform an interface conversion when
3870 the type of the returned object is an interface and the context is an
3871 extended return statement.
3873 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3875 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
3876 and the full view is visible, set flag on full view as well.
3878 2008-08-20 Thomas Quinot <quinot@adacore.com>
3880 * g-comlin.adb: Minor reformatting
3881 Minor code reorganization.
3883 * freeze.adb: Minor reformatting
3885 2008-08-20 Vincent Celier <celier@adacore.com>
3887 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
3888 source of another project.
3890 2008-08-20 Pascal Obry <obry@adacore.com>
3892 * s-os_lib.ads: Minor reformatting.
3894 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3896 * gnatvsn.ads: Minor reformatting.
3898 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3900 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
3901 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
3902 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
3903 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
3904 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
3905 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
3906 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
3907 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
3908 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
3909 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
3910 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
3911 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
3912 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
3913 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
3914 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
3915 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
3916 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
3917 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
3918 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
3919 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
3920 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
3921 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
3922 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
3923 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
3924 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
3925 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
3926 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
3927 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
3928 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
3929 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
3930 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
3931 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
3932 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
3933 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
3934 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
3935 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
3936 s-poosiz.adb, link.c: Fix copyright notice.
3938 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3940 * g-comlin.ads: Update comments.
3942 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3944 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
3946 2008-08-20 Gary Dismukes <dismukes@adacore.com>
3949 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
3950 Make_Implicit_Exception_Handler when rewriting an exception handler with
3951 a choice parameter, and pass the handler's Sloc instead of that of the
3952 handled sequence of statements. Make_Implicit_Exception_Handler sets the
3953 Sloc to No_Location (unless debugging generated code), which we don't
3954 want for the case of a user handler.
3956 2008-08-20 Robert Dewar <dewar@adacore.com>
3958 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
3961 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
3962 now labeled as info msgs, not warnings.
3964 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
3966 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
3968 * a-textio.adb: Remove redundant test.
3970 * a-witeio.adb: Minor code reorganization
3971 Remove redundant test found working on another issue
3973 * a-ztexio.adb: Minor code reorganization
3974 Remove redundant test found working on another issue
3976 2008-08-20 Thomas Quinot <quinot@adacore.com>
3978 * s-fileio.adb (Open) Use C helper function to determine whether a
3979 given errno value corresponds to a "file not found" error.
3981 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
3983 2008-08-20 Jose Ruiz <ruiz@adacore.com>
3985 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
3986 to get access to the per-task errno variable.
3987 (__set_errno for MaRTE): Do not redefine this function here since it is
3988 already defined in MaRTE.
3990 2008-08-20 Tristan Gingold <gingold@adacore.com>
3992 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
3994 2008-08-20 Robert Dewar <dewar@adacore.com>
3996 * freeze.adb: Minor reformatting
3998 * g-comlin.adb: Minor reformatting
4000 * g-socket.adb: Minor reformatting
4002 * g-socthi-mingw.adb: Minor reformatting
4004 * g-stheme.adb: Minor reformatting
4006 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4008 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
4009 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
4010 confusion between partial and full views of an ancestor of the context
4011 type when the parent is a private extension declared in a parent unit,
4012 and full views are available for the context type.
4014 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4015 Robert Dewar <dewar@adacore.com>
4018 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
4020 Move comment in the right place.
4021 * g-comver.adb (Version): Look for a zero-termination in
4022 addition to a closing parenthesis.
4024 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4026 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
4027 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
4028 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
4029 Is_Package_Or_Generic_Package instead of hand-crafted tests.
4031 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4034 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
4037 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4039 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
4041 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4043 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
4044 for back-copy statements in lieu of that of the actual.
4046 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4049 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
4050 setjmp test consistently. Adjust for new behavior of flag_stack_check.
4051 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
4052 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
4054 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
4057 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
4058 * sem_attr.adb (Check_Type): The current instance of a protected
4059 object is not a type name.
4060 (Analyze_Access_Attribute): Accept instances of protected objects.
4061 (Analyze_Attribute, Attribute_Address clause): Ditto.
4062 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
4063 the prefix as being the current instance if needed.
4065 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
4067 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
4068 Remove duplicate s-win32.o. Add s-winext.o.
4070 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
4072 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
4073 with SOSC.SOCK__STREAM.
4074 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
4077 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4079 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
4080 * gsocket.h, socket.c: Update to support RTEMS.
4081 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
4083 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
4084 Robert Dewar <dewar@adacore.com>
4086 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
4087 left argument even when right argument is 0.
4088 (Expand_N_Op_Mod): Ditto when right argument is 1.
4089 (Expand_N_Op_Multiply): Ditto when any argument is 0.
4090 (Expand_N_Op_Rem): Ditto when right argument is 1.
4092 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4094 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
4097 2008-08-08 Ed Schonberg <schonberg@adacore.com>
4099 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
4100 from Freeze_Entity. Used to generate cross-reference information for
4101 types declared in generic packages.
4103 2008-08-08 Thomas Quinot <quinot@adacore.com>
4105 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
4108 2008-08-08 Thomas Quinot <quinot@adacore.com>
4111 On Windows, include <errno.h> and redefine only selected errno values
4112 from their <winsock2.h> definitions.
4114 * s-osinte-freebsd.ads: Minor reformatting
4116 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
4118 * g-soccon.ads: New file.
4120 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
4121 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
4122 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
4123 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
4124 unit, to allow building software that depends on this internal unit
4125 with both older and newer compilers.
4127 2008-08-08 Robert Dewar <dewar@adacore.com>
4129 * s-strxdr.adb: Minor reformatting
4131 2008-08-08 Bob Duff <duff@adacore.com>
4133 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
4134 checking for integer operations (including division by zero)", which
4135 is wrong -- divide by zero is not part of overflow checking.
4136 Also added misc clarification about what check-suppression means.
4138 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
4140 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
4142 * g-comlin.adb (Add_Switch): Handle addition of switches at the
4143 begining of the command line.
4144 (Append, Add): Renaming of Append to Add as this now allows addition
4145 at the begining of the list.
4147 * g-comlin.ads (Add_Switch): Handle addition of switches at the
4148 begining of the command line.
4150 2008-08-08 Thomas Quinot <quinot@adacore.com>
4153 (Name): Document application scope (only legacy PC serial ports on
4156 2008-08-08 Thomas Quinot <quinot@adacore.com>
4158 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
4159 previous change, not needed after all.
4161 2008-08-08 Ed Schonberg <schonberg@adacore.com>
4163 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
4164 exclusion indicator is present
4166 2008-08-08 Robert Dewar <dewar@adacore.com>
4168 * g-comlin.adb: Minor code reorganization
4171 * g-comlin.ads: Minor reformatting
4173 * s-fileio.adb: Minor reformatting
4175 * sem_attr.adb: Minor code reorganization (use Nkind_In)
4178 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
4180 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
4181 with s-oscons-tmplt.i.
4183 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
4185 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
4187 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4189 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
4192 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
4193 of a formal parameter of an incomplete type. Improve error message for
4194 other improper uses of incomplete types.
4196 2008-08-06 Robert Dewar <dewar@adacore.com>
4198 * gnat_ugn.texi: Clarify -gnato documentation
4200 2008-08-06 Thomas Quinot <quinot@adacore.com>
4202 * gcc-interface/Makefile.in,
4203 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
4204 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
4205 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
4206 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
4207 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
4208 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
4209 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
4210 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
4211 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
4212 Remove GNAT.Sockets.Constants. This internal package is replaced by
4213 System.OS_Constants.
4215 2008-08-06 Thomas Quinot <quinot@adacore.com>
4217 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
4218 Remove obsolete targets referencing gen-soccon
4219 When generating s-oscons.ads, use a file name that includes the
4220 THREAD_KIND, to ensure that the (potentially different) version from a
4221 previous build with a different threads flavour does not get reused.
4223 2008-08-06 Thomas Quinot <quinot@adacore.com>
4225 * sem_res.adb: Minor reformatting
4227 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
4228 only when the operating system reports a non-existing file or directory
4229 (ENOENT), otherwise raise Name_Error.
4231 * exp_ch11.adb: Minor reformatting
4233 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4235 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
4236 incomplete, add the access_to_subprogram type to the list of private
4237 dependents only if the incomplete type will be completed in the current
4239 (Build_Discriminant_Constraints): If the type of the discriminant is
4240 access_to_variable, reject a constraint that is access_to_constant.
4242 2008-08-06 Thomas Quinot <quinot@adacore.com>
4244 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
4245 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
4246 g-sttsne-dummy.ads: New files.
4248 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
4249 with pragma Unimplemented_Unit for sockets packages on Nucleus.
4251 2008-08-06 Pascal Obry <obry@adacore.com>
4253 * adaint.c: Another fix for ACL support on Windows.
4255 2008-08-06 Javier Miranda <miranda@adacore.com>
4257 * exp_disp (Expand_Interface_Actuals): Adds missing support for
4258 expansion of calls to subprograms using selected components.
4260 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4262 * sem_res.adb (Resolve_Call): Use base type to determine whether a
4263 dereference is needed because a subtype of an access_to_subprogram is
4264 simply an access-subtype
4266 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
4268 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
4269 parameters, always specify the expected separator.
4271 2008-08-06 Thomas Quinot <quinot@adacore.com>
4273 * xnmake.adb: Use new XUtil package for platform independent text
4276 2008-08-06 Vincent Celier <celier@adacore.com>
4278 * gnat_ugn.texi: Document compiler switch -gnateG
4280 2008-08-06 Quentin Ochem <ochem@adacore.com>
4282 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
4283 in the case of an empty pattern size.
4284 (Compute_Result): Do not do any computation in the case of an empty
4286 (Report_Result): Fixed computation of the overflow guard.
4288 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4290 * g-awk.adb (Finalize): Do not use directly objects of the type in the
4291 finalization routine to prevent elaboration order anomalies in new
4292 finalization scheme.
4294 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4296 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
4297 declaration for the same type.
4299 2008-08-06 Thomas Quinot <quinot@adacore.com>
4301 * sem.adb: Minor rewording (comment)
4303 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
4305 * g-comlin.adb (Define_Switch, Get_Switches): New.
4306 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
4307 ungrouping switches.
4308 (For_Each_Simple_Switch): Allow more control over parameters handling.
4309 This generic method now allows ungrouping of switches with parameters
4310 and switches with more than one letter after the prefix.
4311 (Set_Command_Line): Take care of switches that are prefixed with a
4312 switch handling parameters without delimiter (-gnatya and -gnaty3 for
4314 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
4315 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
4317 (Start, Alias_Switches, Group_Switches): Take care of parameters
4318 possibly present inside a group.
4320 * g-comlin.ads (Define_Switch): New method used to define a list of
4321 expected switches, that are necessary for correctly ungrouping switches
4322 with more that one character after the prefix.
4323 (Get_Switches): Method that builds a getopt string from the list of
4324 switches as set previously by Define_Switch.
4325 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
4326 status of the operation. Also allow the removal of switches with
4328 (Command_Line_Configuration_Record): Maintain a list of expected
4331 2008-08-06 Doug Rupp <rupp@adacore.com>
4333 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
4334 TARGET_MALLOC64 clear.
4336 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
4337 if TARGET_MALLOC64 clear.
4339 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
4340 (TARGET_MALLC64): New macro. Default to clear.
4342 2008-08-06 Doug Rupp <rupp@adacore.com>
4344 * gcc-interface/utils2.c (snames.h) Include
4345 (TARGET_ABI_OPEN_VMS): Initialize.
4346 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
4349 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4351 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
4352 null exclusion in a discriminant declaration
4354 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
4355 indicators when type is not an access type.
4357 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
4358 indicators when type is not an access type.
4360 2008-08-06 Javier Miranda <miranda@adacore.com>
4362 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
4363 with the target interface before expanding the code of the interface
4366 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4369 (Freeze_Entity): A deferred constant does not violate the restriction
4370 No_Default_Initialization,
4372 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
4373 can carry a null exclusion indicator, and on which an error may be
4374 posted if the indicator is redundant.
4376 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
4377 does not apply to a subtype mark that already excludes null.
4379 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
4380 exclusion does not apply to a subtype mark that already excludes null.
4382 2008-08-05 Thomas Quinot <quinot@adacore.com>
4384 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
4386 2008-08-05 Doug Rupp <rupp@adacore.com>
4388 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
4390 2008-08-05 Thomas Quinot <quinot@adacore.com>
4392 * gsocket.h: Make this file includable in a Nucleus environment, which
4393 does not support sockets.
4395 * socket.c: Remove Nucleus-specific hack.
4397 2008-08-05 Pascal Obry <obry@adacore.com>
4399 * adaint.c: Remove support for readable attribute on vxworks and nucleus
4401 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4404 (Analyze_Attribute, case 'Result): handle properly the case where some
4405 operand of the expression in a post-condition generates a transient
4408 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
4409 right-hand side when it is an anonymous access_to_subprogram, to force
4410 static accessibility check when needed.
4412 2008-08-05 Sergey Rybin <rybin@adacore.com>
4414 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
4415 rule according to the change in the rule option.
4416 Add documentation for -gnatw.b/-gnatw.B
4418 2008-08-05 Robert Dewar <dewar@adacore.com>
4420 * ug_words: Add entries for -gnatw.b/-gnatw.B
4422 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
4424 2008-08-05 Vincent Celier <celier@adacore.com>
4426 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
4429 * a-ztdeio.adb: Ditto.
4431 2008-08-05 Pascal Obry <obry@adacore.com>
4433 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
4436 2008-08-05 Vincent Celier <celier@adacore.com>
4439 (Wide_String_To_String): Returns a String with the same 'First as its
4441 (Wide_Wide_String_To_String): Ditto
4444 (Wide_String_To_String): Document that the lowest index of the returned
4445 String is equal to S'First.
4447 2008-08-05 Thomas Quinot <quinot@adacore.com>
4449 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
4451 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
4454 2008-08-05 Robert Dewar <dewar@adacore.com>
4456 * opt.ads (Warn_On_Biased_Representation): New flag
4459 (Analyze_Attribute_Definition_Clause): Issue warning when biased
4460 representation is required.
4461 (Minimum_Size): Don't allow biasing if enum rep clause case
4464 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
4465 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
4467 * usage.adb: Add lines for -gnatw.b/B switches
4469 2008-08-05 Pascal Obry <obry@adacore.com>
4471 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
4473 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
4475 2008-08-05 Thomas Quinot <quinot@adacore.com>
4477 * socket.c: Minor reformatting.
4479 2008-08-05 Robert Dewar <dewar@adacore.com>
4481 * sem_ch3.adb: Minor reformatting
4483 * prj-nmsc.adb: Minor reformatting
4485 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4487 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
4488 visibility check on the component type if the simple test fails.
4490 2008-08-05 Jose Ruiz <ruiz@adacore.com>
4492 * init.c (__gnat_install_handler for linux): If we are building the
4493 Xenomai run time then we need to do two additional things: avoid
4494 memory swapping and transform the Linux environment task into a native
4497 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
4498 time): Use interface to Xenomai native skin and avoid linux-specific
4499 way of setting CPU affinity.
4500 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
4502 2008-08-05 Bob Duff <duff@adacore.com>
4504 * checks.ads: Minor comment fix
4506 2008-08-05 Thomas Quinot <quinot@adacore.com>
4508 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
4509 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
4512 2008-08-05 Robert Dewar <dewar@adacore.com>
4514 * mlib.adb: Minor code reorganization
4517 * make.adb: Minor reformatting
4519 * prj-attr.ads: Minor reformatting
4521 * s-os_lib.adb: Minor reformatting
4523 * s-fileio.adb: Minor code reorganization
4526 * prj.ads: Minor reformatting
4528 2008-08-05 Bob Duff <duff@adacore.com>
4530 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
4531 unresolved initial value of "null", because it causes implicitly
4532 generated "=" operators to be ambiguous, and because this type should
4533 not be passed to gigi.
4535 2008-08-05 Vincent Celier <celier@adacore.com>
4537 * mlib.adb: Update comments.
4539 * make.adb (Switches_Of): Check for Switches (others), before checking
4540 for Default_Switches ("Ada").
4541 (Gnatmake): Use Builder'Switches (others) in preference to
4542 Builder'Default_Switches ("Ada") if there are several mains.
4545 (Add_Attribute): Add component Others_Allowed in Attribute_Record
4549 Add markers to indicates that attributes Switches allow others as index
4550 (Others_Allowed_For): New Boolean function, returning True for
4551 attributes with the mark.
4552 (Initialize): Recognize optional letter 'O' as the marker for
4553 associative array attributes where others is allowed as the index.
4556 (Others_Allowed_For): New Boolean function
4557 (Attribute_Record): New Boolean component Others_Allowed
4560 (Parse_Attribute_Declaration): For associative array attribute where
4561 others is allowed as the index, allow others as an index.
4564 (Process_Binder): Skip associative array attributes with index others
4565 (Process_Compiler): Ditto
4568 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
4569 index is All_Other_Names.
4572 (All_Other_Names): New constant
4575 (Process_Declarative_Items): Skip associative array attribute when index
4576 is reserved word "others".
4578 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
4580 * gen-oscons.c: Adapt for VMS where termios.h is not available.
4582 2008-08-05 Thomas Quinot <quinot@adacore.com>
4584 * a-rttiev.adb: Minor reformatting (comments)
4586 * gen-soccon.c: Rename to gen-oscons.c
4588 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
4589 GNAT.Sockets.Constants.
4590 Add new constants for GNAT.Serial_Communications and System.File_IO.
4592 2008-08-05 Javier Miranda <miranda@adacore.com>
4594 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
4595 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
4596 implementation of this routine has been simplified.
4598 2008-08-05 Pascal Obry <obry@adacore.com>
4600 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
4601 Set_Read_Only Win32 implementation.
4603 2008-08-05 Thomas Quinot <quinot@adacore.com>
4605 * exp_strm.adb: Minor reformatting (comments)
4607 * sem_ch12.adb: Minor reformatting.
4609 2008-08-05 Robert Dewar <dewar@adacore.com>
4611 * sem_ch3.adb: Minor reformatting
4613 * checks.adb: Minor reformatting
4615 2008-08-05 Thomas Quinot <quinot@adacore.com>
4617 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
4618 restriction on Prefix.
4620 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
4622 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
4623 methods needed to handle switch sections when building a command line.
4624 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
4625 Current_Section): New public methods or methods modified to handle
4626 building command lines with sections.
4627 (Set_Command_Line): Take into account sections when analysing a switch
4629 (Start): Sort the switches by sections before iterating the command line
4632 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
4633 Is_New_Section, Current_Section): New methods or methods modified to
4634 handle building command lines with sections.
4636 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4638 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
4639 discriminants, indicate that the corresponding object declaration has
4640 no initialization, to prevent spurious warnings when the access type is
4643 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4645 * sem_res.adb (Resolve_Call): If this is a call to the predefined
4646 Abort_Task, warn if the call appears within a protected operation.
4648 2008-08-04 Robert Dewar <dewar@adacore.com>
4650 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
4652 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4655 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
4656 anonymous access to protected subprogram that is the return type of the
4657 specification of a subprogram body.
4660 (Analyze_Subprogram_Body): if the return type is an anonymous access to
4661 subprogram, freeze it now to prevent access anomalies in the back-end.
4663 * exp_ch9.adb: Minor code cleanup.
4664 Make sure that new declarations are inserted into the tree before
4665 analysis (from code reading).
4667 2008-08-04 Robert Dewar <dewar@adacore.com>
4670 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
4673 2008-08-04 Thomas Quinot <quinot@adacore.com>
4675 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
4677 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
4679 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
4681 2008-08-04 Javier Miranda <miranda@adacore.com>
4683 * sem_prag.adb (Process_Convention): Add missing support for
4684 N_Private_Extension_Declaration nodes.
4686 2008-08-04 Robert Dewar <dewar@adacore.com>
4688 * exp_ch4.adb: Minor reformatting
4690 2008-08-04 Pascal Obry <obry@adacore.com>
4692 * adaint.h: Add missing prototype.
4694 * adaint.c: Refine support for Windows file attributes.
4696 2008-08-04 Robert Dewar <dewar@adacore.com>
4699 (Valid_Conversion): Catch case of designated types having different
4700 sizes, even though they statically match.
4702 2008-08-04 Javier Miranda <miranda@adacore.com>
4704 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
4705 added in previous patch to handle access to subprograms.
4707 2008-08-04 Robert Dewar <dewar@adacore.com>
4710 (Freeze_Entity): Only check No_Default_Initialization restriction for
4711 constructs that come from source
4713 2008-08-04 Thomas Quinot <quinot@adacore.com>
4715 * exp_ch6.adb: Minor comment fix.
4717 * sem_ch4.adb: Minor reformatting.
4719 2008-08-04 Robert Dewar <dewar@adacore.com>
4721 * sem_res.adb: (Large_Storage_Type): Improve previous change.
4723 2008-08-04 Pascal Obry <obry@adacore.com>
4725 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
4728 2008-08-04 Javier Miranda <miranda@adacore.com>
4730 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
4731 for N_Formal_Object_Declaration nodes. Adding kludge required by
4732 First_Formal to provide its functionality with access to functions.
4733 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
4734 for anonymous access types returned by functions.
4736 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
4737 conversion of null-excluding access types (required only once to force
4738 the generation of the required runtime check).
4740 * sem_type.adb (Covers): minor reformating
4742 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
4743 with internally generated nodes. Avoid generating the error inside init
4746 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
4747 (Resolve_Null): Generate the null-excluding check in case of assignment
4748 to a null-excluding object.
4749 (Valid_Conversion): Add missing support for anonymous access to
4752 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
4753 anonymous access types whose designated type is an itype. This case
4754 occurs with anonymous access to protected subprograms types.
4755 (Analyze_Return_Type): Add missing support for anonymous access to
4756 protected subprogram.
4758 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
4759 subprograms addition of missing check on matching convention. Required
4760 to properly handle access to protected subprogram types.
4762 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
4763 null excluding access types.
4765 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4767 * sem_ch12.adb: Add comments
4769 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
4770 access type and the allocator is not initialized, warn rather than
4773 2008-08-04 Robert Dewar <dewar@adacore.com>
4775 * exp_ch4.adb: Minor reformatting
4777 * exp_dist.adb: Minor reformatting
4779 * g-comlin.adb: Minor reformatting
4781 2008-08-04 Gary Dismukes <dismukes@adacore.com>
4783 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
4784 target to the type of the aggregate in the case where the target object
4787 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
4788 result type is class-wide and inherently limited, and the expression
4789 has a specific type, create a return object of the specific type, for
4790 more efficient handling of returns of build-in-place aggregates (avoids
4791 conversions of the class-wide return object to the specific type on
4792 component assignments).
4794 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
4795 about a type mismatch for a class-wide function with a return object
4796 having a specific type when the object declaration doesn't come from
4797 source. Such an object can result from the expansion of a simple return.
4799 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
4801 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
4803 * gcc-interface/Makefile.in: Use 64bit-specific system files when
4804 compiling for 64bit windows.
4806 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
4808 * g-comlin.adb (Group_Switches): Preserve the switch order when
4809 grouping and allow switch grouping of switches with more than one
4810 character extension (e.g. gnatw.x).
4811 (Args_From_Expanded): Remove this now obsolete method.
4813 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4815 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
4816 chain at once, to ensure that type is properly decorated for back-end,
4817 when allocator appears within a loop.
4819 2008-08-04 Kevin Pouget <pouget@adacore.com>
4821 * snames.h, snames.adb, snames.ads:
4822 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
4824 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
4825 Build_To_Any_Call and Build_TypeCode_Call procedures.
4827 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
4829 * rtsfind.ads: Add corresponding names.
4831 * tbuild.adb: Update prefix restrictions to allow '_' character.
4833 2008-08-04 Doug Rupp <rupp@adacore.com>
4835 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
4836 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
4837 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
4838 use it. Calculate pointer range overflow using 64bit types.
4840 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4842 * sem_ch3.adb (Access_Definition): A formal object declaration is a
4843 legal context for an anonymous access to subprogram.
4845 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
4846 indirect call, report success to the caller to include possible
4849 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
4851 of the extended return is an anonymous access_to_subprogram type.
4854 (Resolve_Call): Insert a dereference if the type of the subprogram is an
4855 access_to_subprogram and the context requires its return type, and a
4856 dereference has not been introduced previously.
4858 2008-08-04 Arnaud Charlet <charlet@adacore.com>
4860 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
4861 gnatcheck support in GPS.
4863 2008-08-04 Vincent Celier <celier@adacore.com>
4865 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
4868 2008-08-04 Vincent Celier <celier@adacore.com>
4870 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
4871 variable, but don't check the resulting value as it has no impact on
4875 (Generate_Processed_File): New Boolean flag, set to True in the compiler
4876 when switch -gnateG is used.
4879 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
4880 when the source is modified by the preprocessor and there is no
4881 preprocessing errors.
4883 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
4886 (Load_File): Output the result of preprocessing if the source text was
4889 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
4891 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
4893 * ug_words: Add VMS equivalent for -gnateG
4896 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
4898 2008-08-04 Doug Rupp <rupp@adacore.com>
4900 * gcc-interface/utils2.c:
4901 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
4902 in 32bit descriptor.
4904 2008-08-04 Robert Dewar <dewar@adacore.com>
4906 * par-ch10.adb: Minor reformatting
4908 * i-cobol.adb: Minor reformatting.
4910 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4912 * sem_ch3.adb (Access_Definition): Create an itype reference for an
4913 anonymous access return type of a regular function that is not a
4916 2008-08-04 Vincent Celier <celier@adacore.com>
4918 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
4920 * snames.adb: New standard name Global_Compilation_Switches
4922 * snames.ads: New standard name Global_Compilation_Switches
4924 * make.adb: Correct spelling error in comment
4926 2008-08-04 Arnaud Charlet <charlet@adacore.com>
4928 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
4931 2008-08-04 Thomas Quinot <quinot@adacore.com>
4933 * sem_ch10.adb: Minor comment fix.
4935 2008-08-04 Robert Dewar <dewar@adacore.com>
4937 * restrict.adb: Improved messages for restriction warnings
4939 * restrict.ads: Improved messages for restriction messages
4941 * s-rident.ads (Profile_Name): Add No_Profile
4943 2008-08-04 Robert Dewar <dewar@adacore.com>
4945 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
4947 2008-08-04 Robert Dewar <dewar@adacore.com>
4949 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
4951 2008-08-04 Vincent Celier <celier@adacore.com>
4954 (Copy_Package_Declarations): When inheriting package Naming from a
4955 project being extended, do not inherit source exception names.
4957 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4959 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
4960 list of declaration to find previous subprogram, do not go to the
4961 original node of a generic unit.
4963 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
4965 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
4966 New case. Convert BOOLEAN_TYPE operation to the default integer type.
4968 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
4970 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
4971 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
4972 and adjust for above renaming.
4973 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
4974 gnu_expr_alt_type parameter. Convert the expression to it instead
4975 of changing its type in place.
4976 (build_function_stub): Adjust call to above function.
4978 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
4980 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
4981 code. Do not get full definition of deferred constants with address
4982 clause for a use. Do not ignore deferred constant definitions with
4983 address clause. Ignore constant definitions already marked with the
4985 <object>: Remove obsolete comment. For a deferred constant with
4986 address clause, get the initializer from the full view.
4987 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
4988 Rework and remove obsolete comment.
4989 <N_Object_Declaration>: For a deferred constant with address clause,
4990 mark the full view with the error node.
4991 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
4994 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
4996 * rtsfind.ads: Add block IO versions of stream routines for Strings.
4998 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
4999 sem_prag.adb, snames.adb, snames.ads, snames.h,
5000 par-prag.adb: Undo previous stream related changes.
5002 * s-rident.ads: Add new restriction No_Stream_Optimizations.
5004 * s-ststop.ads, s-ststop.adb: Comment reformatting.
5005 Define enumeration type to designate different IO mechanisms.
5006 Enchance generic package Stream_Ops_Internal to include an
5007 implementation of Input and Output.
5009 * exp_attr.adb (Find_Stream_Subprogram): If restriction
5010 No_Stream_Optimization is active, choose the default byte IO
5011 implementations of stream attributes for Strings.
5012 Otherwise use the corresponding block IO version.
5014 2008-08-01 Olivier Hainque <hainque@adacore.com>
5016 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
5017 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
5019 2008-08-01 Robert Dewar <dewar@adacore.com>
5021 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
5022 convert plain identifier into defining identifier.
5024 2008-08-01 Robert Dewar <dewar@adacore.com>
5026 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
5029 * lib-xref.adb: Add error defense.
5031 2008-08-01 Bob Duff <duff@adacore.com>
5033 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
5035 2008-08-01 Gary Dismukes <dismukes@adacore.com>
5037 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
5038 correct accessibility levels. In the "when others" case, retrieve the
5039 access level of the Etype of Prev rather than Prev_Orig, because the
5040 original exression has not always been analyzed.
5042 2008-08-01 Robert Dewar <dewar@adacore.com>
5044 * prj-nmsc.adb: Minor reformatting
5046 * sem_ch4.adb: Minor reformatting
5047 Minor code reorganization
5049 * prj.ads: Minor reformatting
5051 * s-os_lib.adb: Minor reformatting
5053 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
5056 * scans.ads: Minor reformatting.
5058 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
5059 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
5062 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
5064 * sem_ch12.adb: Minor comment reformatting
5066 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
5069 2008-08-01 Robert Dewar <dewar@adacore.com>
5071 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
5074 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5076 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
5077 converted is a real literal and the target type has static bounds,
5078 perform the conversion exactly to prevent floating-point anomalies on
5081 2008-08-01 Vincent Celier <celier@adacore.com>
5083 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
5085 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
5087 * prj.adb (Object_Exist_For): Use Object_Generated, not
5088 Objects_Generated that is removed and was never modified anyway.
5091 (Path_Syntax_Kind): New enumeration type
5092 (Language_Config): New component Path_Syntax, defaulted to Host.
5093 Components PIC_Option and Objects_Generated removed, as they are not
5096 * snames.adb: New standard name Path_Syntax
5098 * snames.ads: New standard name Path_Syntax
5100 2008-08-01 Vincent Celier <celier@adacore.com>
5103 (Adalib_Path): New variable to store the path of the adalib directory
5104 when procedure Specify_Adalib_Dir is called.
5105 (Lib_Directory): If Adalib_Path is not null, return its value
5106 (Specify_Adalib_Dir): New procedure
5108 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
5110 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5113 (Check_Precondition_Postcondition): If not generating code, analyze the
5114 expression in a postcondition that appears in a subprogram body, so that
5115 it is properly decorated for ASIS use.
5117 2008-08-01 Gary Dismukes <dismukes@adacore.com>
5119 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
5120 Orig_Prev to Prev in the case where the actual is N_Function_Call or
5121 N_Identifier. This was interfering with other cases that are rewritten
5122 as N_Identifier, such as allocators, resulting in passing of the wrong
5123 accessibility level, and based on testing this code is apparently no
5124 longer needed at all.
5126 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5128 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
5129 procedure call whose prefix
5130 is a parameterless function call that returns an access_to_procedure.
5132 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5134 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
5135 for RTX. Adding a suffix that is incremented at each iteration.
5137 2008-08-01 Robert Dewar <dewar@adacore.com>
5139 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
5142 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
5144 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
5145 paths, which are authorized by Windows but can lead to errors when used
5148 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5150 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
5151 a pending instantiation for the body of a subprogram that is to be
5155 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
5157 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
5158 create a pending instance for its body, so that calls to the subprogram
5159 can be inlined by the back-end.
5161 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5163 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
5166 2008-08-01 Robert Dewar <dewar@adacore.com>
5168 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
5170 2008-08-01 Doug Rupp <rupp@adacore.com>
5172 * gnat_rm.texi: Document new mechanism Short_Descriptor.
5174 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
5177 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5178 mechanism and Short_Descriptor mechanism values.
5180 * snames.adb (preset_names): Add short_descriptor entry.
5182 * snames.ads: Add Name_Short_Descriptor.
5184 * types.h: Add new By_Short_Descriptor mechanism values.
5186 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5187 mechanism and Short_Descriptor mechanism values.
5189 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
5191 (Descriptor_Codes): Modify range for new mechanism values.
5193 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
5196 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
5197 (gnat_to_gnu_param): Handle By_Short_Descriptor.
5199 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
5200 (build_vms_descriptor32): New prototype.
5201 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
5203 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
5204 argument in call fill_vms_descriptor.
5206 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
5207 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
5208 (build_vms_descriptor): Renamed from build_vms_descriptor64.
5209 (convert_vms_descriptor32): New function.
5210 (convert_vms_descriptor64): New function.
5211 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
5214 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
5217 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5219 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
5220 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
5223 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5225 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
5226 current directory so only fully qualified names are allowed.
5228 2008-08-01 Robert Dewar <dewar@adacore.com>
5231 Minor editing, remove uncomfortable use of semicolon
5233 * s-ststop.adb: Add some ??? comments
5235 * sem_ch10.adb: Minor reformatting
5238 Minor comment fixes, some pragmas were not properly
5239 categorized in the comments, documentation change only
5241 * xref_lib.adb: Minor reformatting
5243 * sinput.adb: Minor reformatting
5245 * gnatchop.adb: Minor reformatting
5247 * sem_util.ads: Minor reformatting.
5249 * opt.ads: Minor documentation fix
5251 * scng.adb: Minor reformatting
5253 * prj-part.adb: Update comments
5255 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5257 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
5258 tagged synchronized type, use corresponding record type.
5260 2008-08-01 Doug Rupp <rupp@adacore.com>
5262 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
5263 dummy transfer address for debugging.
5265 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
5267 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
5269 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
5271 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
5272 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
5274 2008-07-31 Pascal Obry <obry@adacore.com>
5276 * prj-nmsc.adb: Keep Object and Exec directory casing.
5278 2008-07-31 Jose Ruiz <ruiz@adacore.com>
5280 * system-rtx-rtss.ads
5281 Change the default stack size. It is important to set the commit part.
5284 (Initialize): Get the clock resolution.
5285 (RT_Resolution): Return the clock resolution that is indicated by the
5288 * s-parame-vxworks.adb
5289 Document that this body is used for RTX in RTSS (kernel) mode.
5291 * gcc-interface/Makefile.in
5292 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
5293 s-parame-vxworks.adb body in order to have reasonable stack sizes in
5294 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
5295 cannot ask for too big values.
5297 2008-07-31 Robert Dewar <dewar@adacore.com>
5299 * exp_aggr.adb: Minor reformatting
5301 * makeutl.adb: Minor reformatting
5303 * prj-env.adb: Minor reformatting
5305 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5307 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
5308 tagged type is completed by a concurrent type.
5310 2008-07-31 Gary Dismukes <dismukes@adacore.com>
5313 (Resolve_Record_Aggregate): Bypass error that a type without
5314 components must have a "null record" aggregate when compiling for Ada
5315 2005, since it's legal to give an aggregate of form (others => <>)
5318 2008-07-31 Javier Miranda <miranda@adacore.com>
5320 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
5321 handle synchronized types. Required to handle well the object.operation
5322 notation applied to synchronized types.
5324 2008-07-31 Quentin Ochem <ochem@adacore.com>
5326 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
5327 anymore - just used internally.
5328 Added handling of very small tasks - when the theoretical size is
5329 already full at the point of the call.
5330 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
5331 not need to be added to the result.
5333 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5335 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
5336 corresponding spec is a primitive wrapper. Update comment.
5338 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5340 * bindgen.adb Comment reformatting. Update the list of run-time globals.
5341 (Gen_Adainit_Ada): Add the declaration, import and value set for
5342 configuration flag Canonical_Streams.
5343 (Gen_Adainit_C): Add the declaration and initial value of external
5344 symbol __gl_canonical_streams.
5346 * init.c: Update the list of global values computed by the binder.
5348 * opt.ads: Add flag Canonical_Streams.
5350 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
5351 semantically handled pragmas.
5353 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
5354 (Analyze_Pragma): Add case for pragma Canonical_Streams.
5356 * snames.adb: Add character value for name Canonical_Streams.
5359 Add Name_Canonical_Streams to the list of configuration pragmas.
5360 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
5362 * snames.h: Add a definition for Pragma_Canonical_Streams.
5365 Add a flag and import to seize the value of external symbol
5366 __gl_canonical_streams. Update comment and initial value of constant
5369 * gnat_rm.texi: Add section of pragma Canonical_Streams.
5372 Add pragma Canonical_Streams to the list of configuration pragmas.
5374 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5376 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
5377 has the form A.B.C and B is a unit renaming, analyze its compilation
5378 unit and add a with_clause on A.b to the context.
5380 2008-07-31 Vincent Celier <celier@adacore.com>
5382 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
5383 return the empty string, instead of raising Constraint_Error.
5385 2008-07-31 Gary Dismukes <dismukes@adacore.com>
5387 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
5389 * checks.adb (Apply_Accessibility_Check): Insert the check on
5393 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
5394 to new parameter Insert_Node on call to Apply_Accessibility_Check.
5395 Necessary to distinguish the insertion node because the dereferenced
5396 formal may come from a rename, but the check must be inserted in
5397 front of the attribute.
5400 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
5401 call to Apply_Accessibility_Check.
5402 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
5403 on call to Apply_Accessibility_Check.
5406 2008-07-31 Javier Miranda <miranda@adacore.com>
5408 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
5409 types when the candidate type is a synchronized type.
5411 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
5412 types, and complete management of synchronized types adding missing
5413 code to handle formal that is a synchronized type.
5415 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
5416 are not available and cause the compiler to blowup. Found compiling
5417 test with switch -gnatc
5419 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
5420 Has_Correct_Formal_Mode plus code cleanup.
5422 2008-07-31 Bob Duff <duff@adacore.com>
5424 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
5425 recognized as two end-of-lines, but it should be just one.
5427 2008-07-31 Thomas Quinot <quinot@adacore.com>
5429 * exp_ch9.adb: Minor reformatting
5431 * tbuild.ads: Fix several occurrences of incorrectly referring to
5432 Name_Find as Find_Name.
5434 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5436 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
5437 and the context is an object declaration with non-static bounds, treat
5438 the aggregate as non-static.
5440 2008-07-31 Vincent Celier <celier@adacore.com>
5442 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
5443 Move back spec of Parse_Single_Project to body, as it is not called
5444 outside of package Prj.Part.
5445 (Project_Data): Remove components Linker_Name, Linker_Path and
5446 Minimum_Linker_Options as they are no longer set.
5447 Remove function There_Are_Ada_Sources from package Prj and move code
5448 in the only place it was used, in Prj.Env.Set_Ada_Paths.
5450 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5452 * mlib-utl.ads: Fix typo.
5454 2008-07-31 Robert Dewar <dewar@adacore.com>
5456 * sem_ch12.adb: Minor reformatting
5458 2008-07-31 Sergey Rybin <rybin@adacore.com>
5460 * gnat_ugn.texi: Change the description of the
5461 Overly_Nested_Control_Structures: now the rule always requires a
5462 positive parameter for '+R' option
5464 2008-07-31 Thomas Quinot <quinot@adacore.com>
5466 * g-pehage.adb: Minor reformatting
5468 2008-07-31 Pascal Obry <obry@adacore.com>
5470 * s-finimp.ads: Minor reformatting.
5472 2008-07-31 Vincent Celier <celier@adacore.com>
5474 * s-regexp.ads: Minor comment fix
5476 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5478 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
5479 so that we can compile this file successfully with -gnatc.
5481 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5483 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
5484 of the type when looking for stream subprograms for type String,
5485 Wide_String and Wide_Wide_String.
5487 * s-ststop.adb: Change the initialization expression of constant
5490 2008-07-31 Geert Bosch <bosch@adacore.com>
5493 New file implementing __gnat_mulv64 signed integer multiplication with
5496 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
5498 * gcc-interface/gigi.h:
5499 (standard_types): Add ADT_mulv64_decl
5500 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
5502 * gcc-interface/utils.c:
5503 (init_gigi_decls): Add initialization of mulv64_decl
5505 * gcc-interface/trans.c:
5506 (build_unary_op_trapv): New function
5507 (build_binary_op_trapv): New function
5508 (gnat_to_gnu): Use the above functions instead of
5509 build_{unary,binary}_op
5511 * gcc-interface/Makefile.in
5512 (LIBGNAT_SRCS): Add arit64.c
5513 (LIBGNAT_OBJS): Add arit64.o
5515 2008-07-31 Vincent Celier <celier@adacore.com>
5517 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
5518 Linker'Default_Switches are declared. Warn if they are declared.
5520 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5522 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
5523 Insert_Actions to place the pointer declaration in the code, rather
5524 than Insert_Before_And_Analyze, so that insertions of temporaries are
5525 kept in the proper order when transient scopes are present.
5528 2008-07-31 Robert Dewar <dewar@adacore.com>
5530 * einfo.adb (Spec_PPC): Now defined for generic subprograms
5532 * einfo.ads (Spec_PPC): Now defined for generic subprograms
5534 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
5537 2008-07-31 Vincent Celier <celier@adacore.com>
5539 * s-os_lib.adb: Minor comment fix
5541 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5543 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
5544 transfer pre/postconditions from generic copy to original tree, so that
5545 they will appear in each instance.
5546 (Process_PPCs): Do not transform postconditions into a procedure in a
5547 generic context, to prevent double expansion of check pragmas.
5549 * sem_attr.adb: In an instance, the prefix of the 'result attribute
5550 can be the renaming of the
5551 current instance, so check validity of the name accordingly.
5553 2008-07-31 Robert Dewar <dewar@adacore.com>
5555 * mlib-utl.ads: Minor reformatting
5557 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5559 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
5560 from context. This attribute must be usable in Ada95 mode.
5561 The attribute can appear in the body of a function marked
5562 Inline_Always, but in this case the postocondition is not enforced.
5564 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
5565 of an inlined call pre- and postconditions are legal
5567 2008-07-31 Vincent Celier <celier@adacore.com>
5569 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
5570 were for gprmake only
5572 2008-07-31 Robert Dewar <dewar@adacore.com>
5574 * gnat_ugn.texi: Update -gnatN documentation.
5576 * gnat_rm.texi: Add note about pre/postcondition
5577 pragmas not checked in conjunction with front-end inlining.
5579 2008-07-31 Robert Dewar <dewar@adacore.com>
5581 * g-pehage.adb, g-pehage.ads: Minor reformatting
5583 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5585 * mlib-utl.ads, prj-makr.ads: Add comments.
5587 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5589 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
5590 [WINDOWS]: Add s-winext.o.
5592 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
5595 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
5596 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
5597 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
5598 Set precision to 1 for subtype of BOOLEAN_TYPE.
5599 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
5600 (make_type_from_size): Deal with BOOLEAN_TYPE.
5601 * gcc-interface/misc.c (gnat_print_type): Likewise.
5602 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
5603 Set boolean_type_node as its translation in the table, as well
5604 as boolean_false_node for False and boolean_true_node for True.
5605 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
5606 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
5607 (create_param_decl): Deal with BOOLEAN_TYPE.
5608 (build_vms_descriptor): Likewise.
5609 (build_vms_descriptor64): Likewise.
5610 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
5612 2008-07-30 Robert Dewar <dewar@adacore.com>
5614 * exp_ch9.adb: Minor reformatting
5616 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
5617 if no primitive operation is found.
5619 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
5621 * sem_ch8.adb: Minor reformatting
5623 2008-07-30 Laurent Pautet <pautet@adacore.com>
5626 Remove a limitation on the length of the words handled by the minimal
5627 perfect hash function generator.
5630 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
5633 2008-07-30 Robert Dewar <dewar@adacore.com>
5635 * gnatlink.adb: Minor reformatting
5637 2008-07-30 Thomas Quinot <quinot@adacore.com>
5639 * rtsfind.adb (Check_RPC): Check version consistency even when not
5640 generating RCI stubs. Provide more detailed error message in case of
5643 2008-07-30 Ed Schonberg <schonberg@adacore.com>
5645 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
5646 as a actual in an instance, check for a missing attribute to prevent
5647 program_error on an illegal program.
5649 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
5650 error if primitive is not found, so that exception can be handled
5651 elsewhere on illegal programs.
5653 2008-07-30 Robert Dewar <dewar@adacore.com>
5655 * uintp.adb (UI_GCD): Fix potential overflow
5657 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
5659 * einfo.adb: Flag245 is now used.
5660 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
5661 check to include functions.
5662 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5663 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
5665 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
5666 to the list of displayed flags.
5668 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
5669 Wrapped_Entity. These two flags are now present in functions.
5670 New flag Is_Private_Primitive.
5671 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5674 (Build_Wrapper_Bodies): New subprogram.
5675 (Build_Wrapper_Body): The spec and body have been moved to in
5676 Build_Wrapper_ Bodies. Code cleanup.
5677 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
5678 Wrappers are now generated for primitives declared between the private
5679 and full view of a concurrent type that implements an interface.
5680 (Build_Wrapper_Specs): New subprogram.
5681 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
5682 creation mechanism with a call to Build_Wrapper_Bodies.
5683 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
5684 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
5685 (Expand_N_Task_Body): Replace the wrapper body creation
5686 mechanism with a call to Build_Wrapper_Bodies.
5687 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
5688 creation mechanism with a call to Build_Wrapper_Specs.
5689 (Is_Private_Primitive_Subprogram): New subprogram.
5690 (Overriding_Possible): Code cleanup.
5691 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
5693 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
5695 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
5696 (Process_Full_View): Build wrapper specs for all primitives
5697 that belong to a private view completed by a concurrent type
5698 implementing an interface.
5700 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
5702 concurrent type with a private view that implements an interface, try to
5703 find the proper spec.
5704 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
5705 primitive if the type of its first parameter is a non-generic tagged
5707 (Analyze_Subprogram_Specification): Code reformatting.
5708 (Disambiguate_Spec): New routine.
5709 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
5710 (Is_Private_Concurrent_Primitive): New routine.
5713 (Find_Corresponding_Spec): Add a formal to control the output of errors.
5715 2008-07-30 Doug Rupp <rupp@adacore.com>
5717 * gigi.h (build_vms_descriptor64): New function prototype.
5718 (fill_vms_descriptor): Modified function prototype.
5720 * utils.c (build_vms_descriptor64): New function.
5722 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
5724 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
5727 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
5728 64bit and 32bit descriptor and save the 64bit version as an alternate
5729 TREE_TYPE in the parameter.
5730 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
5733 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
5735 2008-07-30 Robert Dewar <dewar@adacore.com>
5737 * make.adb: Minor reformatting
5739 * mlib-utl.adb: Minor reformatting
5741 * osint.ads: Minor reformatting
5743 2008-07-30 Jose Ruiz <ruiz@adacore.com>
5746 (__gnat_file_exists): Do not use __gnat_stat for RTX.
5747 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
5748 avoid the use of this symbol from libgcc.a in RTX kernel mode.
5751 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
5752 the function RtPrintf for console output.
5754 * argv.c Do not use the environ variable for RTX.
5756 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
5757 been moved before the call to Osint.Add_Default_Search_Dirs in order
5758 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
5759 from the appropriate run time.
5762 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
5763 target is a RTSS module for RTX.
5765 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
5766 RTX_RTSS_Kernel_Module
5767 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
5769 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
5770 exception handling mechanism for Windows and RTX in Win32 mode, but
5771 not for RTX in kernel mode (RTSS).
5772 (LIBGNAT_SRCS): Remove ada.h
5774 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
5776 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
5777 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5778 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
5779 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
5780 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
5781 ALL_ADA_CFLAGS): Remove.
5782 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
5783 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5784 (GCC_CFLAGS): Remove X_CFLAGS.
5785 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
5786 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
5787 (ADA_CFLAGS): Substitute.
5789 2008-07-30 Laurent Guerby <laurent@guerby.net>
5792 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
5793 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
5794 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
5795 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
5796 by stamp-gnatlib2-rts.
5798 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5800 PR documentation/15479
5801 * gnat-style.texi: Remove AdaCore copyright statement and GPL
5802 statement for GNAT. Add @copying stanza, use it. Update to
5803 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
5804 title as Front-Cover Text.
5805 * gnat_rm.texi: Likewise.
5806 * gnat_ugn.texi: Likewise.
5808 2008-07-29 Jan Hubicka <jh@suse.cz>
5810 * trans.c (process_inlined_subprograms): Remove tree_really_inline
5813 2008-07-29 Arnaud Charlet <charlet@adacore.com>
5815 * gcc-interface: New directory.
5817 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
5818 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
5819 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
5820 to gcc-interface subdirectory.
5822 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5824 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
5826 2008-07-28 Jan Hubicka <jh@suse.cz>
5828 * misc.c (gnat_post_options): Do not set flag_no_inline.
5830 2008-07-28 Richard Guenther <rguenther@suse.de>
5832 Merge from gimple-tuples-branch.
5834 2008-07-22 Olivier Hainque <hainque@adacore.com>
5836 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
5837 this is called for an elab proc to be discarded if empty.
5838 * utils.c (end_subprog_body): Honor ELAB_P.
5839 (build_function_stub): Adjust call to end_subprog_body.
5840 * trans.c (Subprogram_Body_to_gnu): Likewise.
5841 (gigi): Reorganize processing of elab procs to prevent
5842 gimplifying twice, using the new end_subprog_body argument.
5844 2008-07-19 Richard Guenther <rguenther@suse.de>
5846 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
5847 (utils.o): Likewise.
5848 * trans.c: Include tree-iterator.h.
5849 (gnat_gimplify_expr): Adjust prototype. Fix typo.
5850 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
5851 (set_expr_location_from_node): Likewise.
5853 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
5855 * utils.c: Include tree-iterator.h.
5856 * gigi.h (gnat_gimplify_expr): Adjust prototype.
5858 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
5860 * trans.c: Include gimple.h instead of tree-gimple.h.
5863 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
5865 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
5867 2008-07-25 Jan Hubicka <jh@suse.cz>
5869 * utils.c (end_subprog_body): Remove inline trees check.
5870 * misc.c (gnat_post_options): Do not set flag_inline_trees.
5872 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5874 * raise-gcc.c: Move tsystem.h before tm.h.
5876 2008-07-20 Arnaud Charlet <charlet@adacore.com>
5878 * gnathtml.pl: New file.
5880 2008-07-19 Olivier Hainque <hainque@adacore.com>
5882 * targtyps.c (get_target_default_allocator_alignment): Use
5883 MALLOC_ABI_ALIGNMENT.
5885 2008-07-17 Olivier Hainque <hainque@adacore.com>
5887 * adaint.c (__MINGW32__ section): Include ctype.h and define
5888 a fallback ISALPHA if IN_RTS.
5889 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
5891 2008-07-17 Olivier Hainque <hainque@adacore.com>
5893 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
5894 argument, to apply to references in addition to definitions. Prevent
5895 setting TREE_STATIC on externals.
5896 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
5898 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5900 PR documentation/15479
5901 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
5902 Replace backets around optional parameters with @ovar
5903 where possible, use @r{[}, @r{]} otherwise.
5904 Replace some @r, @i, and @emph with @var where appropriate.
5906 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
5908 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
5910 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5912 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
5913 -Wc++-compat warnings.
5914 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
5915 __gnat_locate_exec_on_path): Likewise.
5916 * decl.c (annotate_value): Likewise.
5917 * misc.c (gnat_handle_option): Likewise.
5918 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
5919 post_error_ne_tree): Likewise.
5921 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
5923 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
5924 version of its type, attempt to first convert its elements.
5926 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
5928 * Makefile.in: Fix *86 kfreebsd target specific pairs.
5930 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
5932 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
5934 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
5936 * utils2.c (known_alignment): Derive the alignment from pointed-to
5937 types only if it is otherwise unknown.
5938 <INTEGER_CST>: Tidy.
5939 <MULT_EXPR>: Likewise.
5940 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
5943 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5946 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
5948 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5950 * gnat_rm.texi (Implementation Defined Characteristics)
5951 (Standard Library Routines): Use @smallexample for indented
5952 text. Drop Indentation outside examples.
5953 * gnat_ugn.texi: Likewise.
5955 2008-06-13 Olivier Hainque <hainque@adacore.com>
5957 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
5959 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
5960 realignment with force_align_arg_pointer attribute on foreign
5961 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5963 2008-06-13 Olivier Hainque <hainque@adacore.com>
5965 * utils.c (rest_of_record_type_compilation): When computing
5966 encodings for the components of a variable size type, early
5967 strip conversions on the current position expression to make
5968 sure it's shape is visible. Use remove_conversions for this
5971 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5973 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
5974 constrained subtype of a discriminated type, discard the fields that
5975 are beyond its limits according to its size.
5977 2008-06-10 Olivier Hainque <hainque@adacore.com>
5979 * utils.c (create_subprog_decl): If this is for the 'main' entry
5980 point according to the asm name, redirect main_identifier_node.
5982 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
5984 * decl.c (components_to_record): Adjust the packedness for the
5985 qualified union as well.
5987 2008-06-09 Arnaud Charlet <charlet@adacore.com>
5989 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
5992 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
5994 * sem_res.adb (Large_Storage_Type): A type is large if it
5995 requires as many bits as Positive to store its values and its
5996 bounds are known at compile time.
5997 * sem_ch13.adb (Minimum_Size): Note that this function returns
5998 0 if the size is not known at compile time.
6000 2008-06-06 Nicolas Setton <setton@adacore.com>
6001 Olivier Hainque <hainque@adacore.com>
6003 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
6004 attribute, parallel descriptive type attached to another
6005 type for debug info generation purposes.
6006 * utils.c (add_parallel_type): New function, register
6007 parallel type to be attached to a type.
6008 (get_parallel_type): New function, fetch a registered
6009 parallel type, if any.
6010 (rest_of_record_type_compilation): Register the parallel
6011 type we make for variable size records.
6012 * gigi.h (add_parallel_type, get_parallel_type): Declare.
6013 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
6014 parallel debug types we make.
6015 * trans.c (extract_encoding, decode_name): New functions.
6016 (gigi): If the DWARF attribute extensions are available, setup
6018 * lang.opt: Register language specific processing request
6020 * misc.c (gnat_dwarf_extensions): New global variable. How much
6021 do we want of our DWARF extensions. 0 by default.
6022 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
6023 (gnat_post_options): Map gnat_dwarf_extensions to the
6024 commonuse_gnu_debug_info_extensions for later processing.
6026 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
6028 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
6030 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6032 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
6033 * gnat_ugn.texi (Style Checking)
6034 (Adding the Results of Compiler Checks to gnatcheck Output)
6035 (Example of Binder Output File): Fix typos.
6036 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
6037 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
6038 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
6039 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
6040 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
6041 sinfo.ads, utils.c: Fix typos in comments.
6042 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
6044 2008-05-29 Thomas Quinot <quinot@adacore.com>
6046 * sem_eval.adb: Minor reformatting
6048 2008-05-29 Ed Schonberg <schonberg@adacore.com>
6050 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
6051 is abstract, do not apply abstractness check on subprogram if this is
6052 a renaming declaration.
6054 2008-05-29 Arnaud Charlet <charlet@adacore.com>
6057 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
6058 allow recognition of program suffix in addition to prefix.
6060 * gnatchop.adb (Locate_Executable): Add support for prefix.
6062 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
6063 mlib-utl.adb: Adjust calls to Program_Name.
6065 2008-05-29 Robert Dewar <dewar@adacore.com>
6067 * sem_ch3.adb: Minor reformatting
6068 * sem_prag.adb: Minor reformatting
6069 * sem_res.adb: Minor reformatting
6070 * sinput-p.ads: Minor reformatting
6072 2008-05-29 Javier Miranda <miranda@adacore.com>
6075 (Abstract_Interface_List): Add missing support for full type-declaration
6076 associated with synchronized types.
6078 2008-05-29 Robert Dewar <dewar@adacore.com>
6080 * sem_eval.adb (Is_Same_Value): Take care of several more cases
6082 2008-05-28 Ed Schonberg <schonberg@adacore.com>
6084 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
6085 access type, wrap the expression in a conversion to force an
6086 accessibility check.
6088 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
6089 accessibility checks even when expansion is disabled in order to
6090 generate messages in the presence of previous errors or in
6091 semantics-only mode.
6093 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
6095 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
6096 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
6098 2008-05-28 Vincent Celier <celier@adacore.com>
6101 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
6102 preprocessing expressions
6104 2008-05-28 Vincent Celier <celier@adacore.com>
6106 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
6109 * sinput-p.ads: Minor comment update and reformatting
6111 2008-05-28 Ed Schonberg <schonberg@adacore.com>
6113 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
6114 type has a deeper level than any master only when it is the type of an
6117 2008-05-28 Javier Miranda <miranda@adacore.com>
6119 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
6121 2008-05-28 Javier Miranda <miranda@adacore.com>
6123 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
6124 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
6125 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
6126 Add code that was previously located in
6127 Find_Overridden_Synchronized_Primitive because it is only used here.
6129 2008-05-28 Sergey Rybin <rybin@adacore.com>
6131 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
6132 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
6134 2008-05-28 Robert Dewar <dewar@adacore.com>
6137 Add missing restrictions, and properly label all GNAT defined ones
6140 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
6141 Add entry for Ada.Task_Termination.Set_Specific_Handler
6142 Add entry for Ada.Task_Termination.Specific_Handler
6145 Add missing restrictions and properly mark all gnat defined ones
6148 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
6151 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
6153 * gnat_rm.texi: Add missing restrictions, and properly label all
6156 2008-05-28 Robert Dewar <dewar@adacore.com>
6159 (Check_Restriction): violation of restriction No_Finalization is
6160 treated as a serious error to stop expansion
6162 2008-05-28 Robert Dewar <dewar@adacore.com>
6164 * exp_util.adb: Minor reformatting
6165 * exp_util.ads: Minor reformatting.
6167 2008-05-28 Arnaud Charlet <charlet@adacore.com>
6169 * Make-lang.in: Remove gprmake.
6171 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
6173 2008-05-28 Ed Schonberg <schonberg@adacore.com>
6175 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
6176 improper progenitor names, and avoid cascaded errors.
6178 2008-05-28 Robert Dewar <dewar@adacore.com>
6180 * gnat_rm.texi: Add note on Old giving warning when applied to constant
6182 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
6185 2008-05-28 Robert Dewar <dewar@adacore.com>
6187 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
6190 2008-05-28 Robert Dewar <dewar@adacore.com>
6193 (Expand_Simple_Function_Return): Copy unaligned result into temporary
6195 2008-05-28 Javier Miranda <miranda@adacore.com>
6197 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
6198 for user-defined predefined primitives.
6200 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
6201 (Find_Overridden_Synchronized_Primitive): Ditto.
6203 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
6205 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6207 * a-ststio.adb, s-direio.adb:
6208 Further code clean up of previous change.
6211 2008-05-27 Vincent Celier <celier@adacore.com>
6213 * prj-nmsc.adb: Minor reformatting
6215 2008-05-27 Bob Duff <duff@adacore.com>
6217 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
6218 untagged private type with a tagged full type, where the full type has
6219 a self reference, create the corresponding class-wide type early, in
6220 case the self reference is "access T'Class".
6222 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6224 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
6225 tasks and context is an object declaration. create master entity before
6228 2008-05-27 Robert Dewar <dewar@adacore.com>
6230 * mlib-prj.adb: Minor reformatting
6232 * prj-part.adb: Minor reformatting
6234 * prj.ads: Minor reformatting
6236 * exp_ch3.adb: Minor reformatting.
6238 * sem_ch3.ads: Minor reformatting
6240 * sem_eval.adb: Minor reformatting
6242 2008-05-27 Vincent Celier <celier@adacore.com>
6245 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
6247 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6249 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
6250 tasks, create an activation chain now, before the expansion into
6251 assignments and build-in-place calls that require the presence of an
6253 (Backend_Processing_Possible): If the component type is inherently
6254 limited, the aggregate must be expanded into individual built-in-place
6257 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
6258 determine whether an allocation extra parameter must be built, to
6259 handle case of a private type whose full type is a discriminated type
6262 2008-05-27 Bob Duff <duff@adacore.com>
6265 Document the new behavior regarding trampolines.
6267 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6269 * a-direio.adb, a-sequio.adb: Replace address clause by
6270 unrestricted_access, simpler and compatible with .NET.
6272 2008-05-27 Vincent Celier <celier@adacore.com>
6275 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
6276 a project file, so that symbolic links are not resolved.
6278 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6280 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
6281 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
6282 portable across GNAT targets, since this kind of address clause is not
6283 supported by VM back-ends (.NET/JGNAT).
6285 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6287 * bindgen.adb: Update comments.
6289 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
6291 2008-05-27 Vincent Celier <celier@adacore.com>
6293 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
6294 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
6295 mlib-tgt.adb, prj-env.adb, prj-env.ads:
6296 (Path_Information): New record type
6297 Use component of type Path_Information when there are two paths, one in
6298 canonical format and one in display format.
6299 Update the project manager to these new components.
6301 2008-05-27 Robert Dewar <dewar@adacore.com>
6303 * makeutl.adb: Minor reformatting
6304 * prj-nmsc.adb: Minor reformatting
6305 * s-stausa.adb: Minor reformatting
6306 * s-stausa.ads: Minor reformatting
6307 * sem_ch6.adb: Minor reformatting
6309 2008-05-27 Thomas Quinot <quinot@adacore.com>
6311 * sem_res.adb: Minor comment fixes
6313 2008-05-27 Thomas Quinot <quinot@adacore.com>
6315 * makeutl.adb: Minor code reorganization
6317 * exp_aggr.adb: Add ??? comment
6320 * exp_ch6.adb: Minor reformatting
6322 2008-05-27 Quentin Ochem <ochem@adacore.com>
6324 * s-stausa.adb (Initialize): Updated result initialization, and
6325 initialization of environment stack.
6326 (Fill_Stack): Improved computation of the pattern zone, taking into
6327 account already filled at the calling point.
6328 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
6329 Measure and Overflow_Guard.
6330 (Report_Result): Fixed computation of the result using new fields of
6333 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
6334 params by more explicit Stack_Size / Max_Pattern_Size params.
6335 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
6336 Added Stack_Used_When_Filling field.
6337 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
6338 Min_Measure and Max_Measure fields.
6340 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
6342 2008-05-27 Vincent Celier <celier@adacore.com>
6345 (Check_File): Make sure that a unit that replaces the same unit in a
6346 project being extended is properly processed.
6348 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6351 (Get_Discr_Value): Remove obsolete code that failed to find the value
6352 of a discriminant for an inherited task component appearing in a type
6355 2008-05-27 Thomas Quinot <quinot@adacore.com>
6357 (System.File_IO.{Close, Delete, Reset}):
6358 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
6360 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
6361 Pass File parameter by reference.
6363 2008-05-27 Vincent Celier <celier@adacore.com>
6366 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
6367 sources of the same project that have the same object file name.
6368 (Find_Explicit_Sources): Always remove a source exception that was not
6371 2008-05-27 Thomas Quinot <quinot@adacore.com>
6373 * sem_ch3.adb: Minor reformatting
6375 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6378 (Is_Interface_Conformant): Handle properly a primitive operation that
6379 overrides an interface function with a controlling access result.
6380 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
6381 inherited and overriding operations, omit as well the conformance check
6382 on result types, to prevent spurious errors.
6384 2008-05-27 Vincent Celier <celier@adacore.com>
6386 * makeutl.ads, makeutl.adb:
6387 (Set_Location): New procedure
6388 (Get_Location): New function
6389 (Update_Main): New procedure
6391 2008-05-27 Vincent Celier <celier@adacore.com>
6394 (Check_Library): Allow standard project to be extended as a static
6396 (Get_Mains): Do not inherit attribute Main in an extending library
6399 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6401 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
6402 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
6403 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
6404 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
6405 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
6406 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
6407 * system-mingw.ads (Always_Compatible_Rep): Likewise.
6408 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
6409 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
6410 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
6412 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6414 * sem_attr.adb: add guard to previous patch.
6416 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6418 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
6419 a synchronized tagged type, do not attempt to build dispatch table for
6420 full view. The table is built for the corresponding record type, which
6421 has its own declaration.
6423 2008-05-27 Gary Dismukes <dismukes@adacore.com>
6425 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
6426 to the known type entity E, rather than setting it to Any_Type. Fixes
6427 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
6428 for objects whose type had an illegal constraint.
6430 2008-05-27 Vincent Celier <celier@adacore.com>
6433 Add succinct documentation for attribute Excluded_Source_List_File
6435 2008-05-27 Vincent Celier <celier@adacore.com>
6437 * prj-attr.adb: Add new project level attribute Map_File_Option
6439 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
6441 * prj.ads: Minor reformatting and comment update
6442 (Project_Configuration): New component Map_File_Option
6444 * snames.adb: New standard name Map_File_Option
6446 * snames.ads: New standard name Map_File_Option
6448 2008-05-27 Vincent Celier <celier@adacore.com>
6450 * xsnames.adb: Remove unused variable Oname
6452 2008-05-27 Doug Rupp <rupp@adacore.com>
6455 (Expand_N_Function_Call): Fix comments. Minor reformatting.
6458 (Expand_Vax_Foreign_Return): Fix comments.
6460 2008-05-27 Thomas Quinot <quinot@adacore.com>
6462 * exp_dist.adb: Minor reformating
6464 2008-05-26 Gary Dismukes <dismukes@adacore.com>
6466 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
6467 No_Default_Initialization, which is now delayed until the freeze point
6468 of the object. Add a comment about deferral of the check.
6470 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
6471 on objects is moved here.
6473 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6475 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
6476 (Compare_Array_S16): Adjust for above change.
6477 * s-casi32.adb (Uword): Likewise.
6478 (Compare_Array_S32): Likewise.
6479 * s-casi64.adb (Uword): Likewise.
6480 (Compare_Array_S64): Likewise.
6481 * s-caun16.adb (Uhalf): Likewise.
6482 (Compare_Array_U16): Likewise.
6483 * s-caun32.adb (Uword): Likewise.
6484 (Compare_Array_U32): Likewise.
6485 * s-caun64.adb (Uword): Likewise.
6486 (Compare_Array_U64): Likewise.
6488 2008-05-26 Robert Dewar <dewar@adacore.com>
6490 * exp_ch6.adb: Add ??? comment for previous change
6492 * exp_vfpt.adb: Minor reformatting
6494 * exp_vfpt.ads: Add ??? comment for last change
6496 * sem_attr.adb: Add some ??? comments for previous change
6498 * s-vaflop.ads: Add comments for previous change
6500 2008-05-26 Doug Rupp <rupp@adacore.com>
6502 * s-vaflop-vms-alpha.adb:
6503 Remove System.IO use clause, to prevent spurious ambiguities when
6504 package is access through rtsfind.
6506 2008-05-26 Sergey Rybin <rybin@adacore.com>
6508 * tree_io.ads (ASIS_Version_Number): Update because of the changes
6511 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6514 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
6515 converted to S (A)'address only if A .. B is known to be a non-null
6518 2008-05-26 Doug Rupp <rupp@adacore.com>
6521 (Return_D, Return_F, Return_G): New functions.
6524 (Return_D, Return_F, Return_G): New functions.
6527 (Expand_Vax_Foreign_Return): New procedure
6530 (Expand_Vax_Foreign_Return): New procedure
6533 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
6534 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
6538 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
6540 * s-vaflop-vms-alpha.adb:
6541 (Return_D, Return_F, Return_G): New functions.
6543 2008-05-26 Gary Dismukes <dismukes@adacore.com>
6545 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
6546 init proc entity when there is actual default initialization associated
6547 with the component type, to avoid spurious errors on objects of scalar
6548 array types that are marked Is_Public when No_Default_Initialization
6551 2008-05-26 Thomas Quinot <quinot@adacore.com>
6553 * rtsfind.ads, rtsfind.adb:
6554 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
6555 (Check_RPC): Support per-PCS-kind API versioning.
6557 exp_dist.ads, exp_dist.adb:
6558 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
6559 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
6560 library function Get_RACW.
6561 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
6562 library function Get_Reference.
6563 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
6564 through an intermediate Any.
6565 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
6566 going through an intermediate Any.
6568 * sem_dist.adb: Minor reformatting.
6570 2008-05-26 Javier Miranda <miranda@adacore.com>
6572 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
6573 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6574 (Is_Internal): Adding documentation on internal entities that have
6575 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
6577 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
6578 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6579 Added assertion to force entities with this attribute to have
6580 attribute Is_Internal set to True.
6581 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
6583 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
6584 renamed as Derive_Progenitor_Subprograms. In addition, its code is
6585 a new implementation.
6586 (Add_Interface_Tag_Components): Remove special management of
6587 synchronized interfaces.
6588 (Analyze_Interface_Declaration): Minor reformating
6589 (Build_Derived_Record_Type): Minor reformating
6590 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
6591 predefined primitive inherited from interface type because the body of
6592 internally generated predefined primitives of tagged types are generated
6593 later by Freeze_Type
6594 (Derive_Subprogram): Avoid generating an internal name if the parent
6595 subprogram overrides an interface primitive.
6596 (Derive_Subprograms): New implementation that keeps separate the
6597 management of tagged types not implementing interfaces, from tagged
6598 types that implement interfaces.
6599 (Is_Progenitor): New implementation.
6600 (Process_Full_View): Add documentation
6601 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
6602 by call to Derive_Progenitor_Subprograms.
6604 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
6605 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6606 Skip_Controlling_Formals.
6608 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
6609 (Check_Conventions): New implementation. Remove local subprogram
6610 Skip_Check. Remove formal Search_From of routine Check_Convention.
6611 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6612 Skip_Controlling_Formals.
6613 (New_Overloaded_Entity): Enable addition of predefined dispatching
6617 (Find_Primitive_Covering_Interface): New subprogram.
6619 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
6620 the task body procedure as a primitive of the corresponding tagged
6622 (Check_Operation_From_Private_Type): Avoid adding twice an entity
6623 to the list of primitives.
6624 (Find_Primitive_Covering_Interface): New subprogram.
6625 (Override_Dispatching_Operation): Add documentation.
6627 * sem_type.adb (Covers): Minor reformatings
6629 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
6632 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
6633 (Implements_Interface): New subprogram.
6634 (Is_Parent): Removed.
6635 (Primitive_Names_Match): New subprogram.
6636 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6637 (Ultimate_Alias): New subprogram.
6639 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
6641 Remove special management for synchronized types. Rename formal. Remove
6642 internal subprograms Interface_Present_In_Parent and Add_Interface.
6643 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
6644 on non-record types by code to return false in such case.
6645 (Implements_Interface): New subprogram.
6646 (Is_Parent): Removed. No special management is now required for
6647 synchronized types covering interfaces.
6648 (Primitive_Names_Match): New subprogram.
6649 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6650 (Ultimate_Alias): New subprogram.
6652 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
6653 Add internal entities associated with secondary dispatch tables to
6654 the list of tagged type primitives that are not interfaces.
6655 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
6656 (Make_Predefined_Primitive_Specs): Code reorganization to improve
6657 the management of predefined equality operator. In addition, if
6658 the type has an equality function corresponding with a primitive
6659 defined in an interface type, the inherited equality is abstract
6660 as well, and no body can be created for it.
6662 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
6663 exp_util to exp_disp.
6664 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
6665 an entity corresponds with one of the predefined primitives required
6666 to implement interfaces.
6667 Update copyright notice.
6669 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
6670 final check on abstract subprograms all the primitives associated with
6671 interface primitives because they must be visible in the public and
6673 (Write_DT): Use Find_Dispatching_Type to locate the name of the
6674 interface type. This allows the use of this routine, for debugging
6675 purposes, when the tagged type is not fully decorated.
6676 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
6677 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
6678 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
6679 entity corresponds with one of the predefined primitives required to
6680 implement interfaces.
6682 * exp_util.adb (Find_Interface_ADT): New implementation
6683 (Find_Interface): Removed.
6685 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
6686 list of interfaces associated with nodes
6687 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
6689 2008-05-26 Thomas Quinot <quinot@adacore.com>
6691 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
6692 condition for assignment to temporary.
6694 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6696 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
6697 checks on the upper bound if the index type is a modular type, to
6698 prevent wrap-around computations when size is close to upper bound of
6701 2008-05-26 Robert Dewar <dewar@adacore.com>
6703 * sem_ch3.adb: Minor reformatting
6705 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6707 * sem_ch12.adb (Remove_Parent): Use specification of instance
6708 to retrieve generic parent,
6709 to handle properly the case where the instance is a child unit.
6710 Add guard to handle properly wrapper packages.
6713 2008-05-26 Thomas Quinot <quinot@adacore.com>
6715 * sinfo.ads: Minor reformatting
6717 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
6719 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
6720 Generate a tag check when the result subtype of a function, defined by
6721 an access definition, designates a specific tagged type.
6722 (Make_Tag_Check): New routine.
6724 2008-05-26 Arnaud Charlet <charlet@adacore.com>
6726 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
6728 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6730 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
6731 (builtin_decl_for): Likewise.
6732 * trans.c (gigi): Likewise.
6733 * utils.c (def_builtin_1): Fix formatting.
6735 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
6737 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
6738 Create the statements which map a string name to protected or task
6741 * exp_ch9.adb: Add with and use clause for Stringt.
6742 Minor code reformatting.
6743 (Build_Entry_Names): New routine.
6744 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
6745 for flag Build_Entry_Names which controls the allocation of the data
6746 structure for the string names of entries.
6748 * exp_ch9.ads (Build_Entry_Names): New subprogram.
6750 * exp_util.adb (Entry_Names_OK): New function.
6752 * exp_util.ads (Entry_Names_OK): New function.
6754 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
6755 enumerations RE_Id and RE_Unit_Table.
6757 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
6758 (Free_Entry_Names_Array): New routine.
6760 * s-taskin.ads: Comment reformatting.
6761 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
6762 Add component Entry_Names to record Ada_Task_Control_Block.
6763 (Free_Entry_Names_Array): New routine.
6765 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
6766 dynamically allocate an array
6767 of string pointers. This structure holds string entry names.
6768 (Free_Entry_Names): New routine.
6769 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
6770 (Set_Entry_Names): New routine.
6773 (Create_Task): Add formal Build_Entry_Names. The flag is used to
6774 control the allocation of the data structure which stores entry names.
6775 (Set_Entry_Name): New routine.
6778 Add with and use clause for Ada.Unchecked_Conversion.
6779 (Finalize): Deallocate the entry names array.
6780 (Free_Entry_Names): New routine.
6781 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
6782 create an array of string pointers to hold the entry names.
6783 (Set_Entry_Name): New routine.
6786 Add field Entry_Names to record Protection_Entries.
6787 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
6788 (Set_Entry_Name): New routine.
6790 2008-05-26 Vincent Celier <celier@adacore.com>
6793 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
6796 (Project_Configuration): New component Shared_Lib_Driver
6798 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6801 (Cleanup_Scopes): For a protected operation, transfer finalization list
6802 to protected body subprogram, to force cleanup actions when needed.
6804 2008-05-26 Robert Dewar <dewar@adacore.com>
6806 * sem_cat.adb: Minor reformatting
6808 * gnatname.adb: Minor reformatting
6810 * osint.ads: Minor reformatting
6812 * s-carun8.ads: Minor reformatting
6814 * g-heasor.ads: Minor comment fix (unit is now pure)
6816 2008-05-26 Robert Dewar <dewar@adacore.com>
6819 (Expand_Current_Value): Properly type generated integer literal
6821 2008-05-26 Sergey Rybin <rybin@adacore.com>
6823 * gnat_ugn.texi: Add description for the new gnatcheck rule -
6824 Separate_Numeric_Error_Handlers.
6826 2008-05-26 Pascal Obry <obry@adacore.com>
6828 * sem_aggr.adb: Minor reformatting.
6830 2008-05-26 Jose Ruiz <ruiz@adacore.com>
6833 (To_Target_Priority): Setting the time slice value to 0 or greater sets
6834 the scheduling policy to FIFO within priorities or round-robin
6836 Hence, the priority must be set in this case to the one selected by the
6839 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6842 (Remove_Parent): If the enclosing scope is an instance whose generic
6843 parent is declared within some parent scope of the just completed
6844 instance, make full views of the entities in that parent visible, when
6847 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
6849 * mingw32.h (STD_MINGW): Set to true for target w64.
6851 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6853 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
6854 instead of TREE_STATIC on the ADDR_EXPR.
6856 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
6858 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
6859 (Sloc_to_locus): Do not overwrite known GCC locations when translating
6860 GNAT standard locations.
6862 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6864 * gigi.h (mark_visited): Declare.
6865 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
6866 only the topmost node of expressions.
6867 (elaborate_expression_1): Look deeper for read-only variables.
6868 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
6869 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
6870 (mark_visited_r): New function.
6872 2008-05-23 Vincent Celier <celier@adacore.com>
6874 * snames.adb: New standard name Excluded_Source_List_File.
6876 * snames.ads: New standard name Excluded_Source_List_File.
6878 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
6880 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
6881 Get excluded sources from
6882 file indicated by attribute Excluded_Source_List_File, when present and
6883 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
6885 2008-05-23 Robert Dewar <dewar@adacore.com>
6887 * exp_dist.adb: Minor reformatting
6889 2008-05-23 Ed Schonberg <schonberg@adacore.com>
6891 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
6892 slice, convert it to an indexed component, which is equivalent, more
6893 efficient, and usable even if the slice itself is not addressable.
6895 2008-05-23 Olivier Hainque <hainque@adacore.com>
6897 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
6898 convention also allows access to named compiler built-in subprograms
6899 such as the GCC __builtin family.
6901 2008-05-23 Vincent Celier <celier@adacore.com>
6903 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
6904 sep. If there are several possibilities, choose the one with the
6907 2008-05-23 Vincent Celier <celier@adacore.com>
6909 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
6910 back end switches when executable specified with --GCC= is same as
6911 default, even if there are additional options.
6914 Document when the back end switches from the ALI file are taken into
6915 account when gnatlink is invoked with --GCC=
6917 2008-05-23 Thomas Quinot <quinot@adacore.com>
6920 (copy_File): Do not open destination file if source file is unreadable.
6922 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6924 * utils.c (handle_type_generic_attribute): Adjust to accept
6925 fixed arguments before an elipsis.
6927 2008-05-21 Thomas Quinot <quinot@adacore.com>
6929 * g-sothco.ads, g-sothco.adb: New files.
6931 2008-05-20 Thomas Quinot <quinot@adacore.com>
6933 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
6935 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
6936 Add missing "with" of Ada.Unchecked_Conversion
6938 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
6939 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
6940 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6941 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6942 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
6943 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
6944 Move common code out of GNAT.Sockets.Thin implementations and into
6946 New constant SIZEOF_fd_set
6947 New flag Has_Sockaddr_Len
6948 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6950 * g-stsifd-sockets.adb
6951 (Create): Remove call to Set_Length; use Set_Family to set the family
6952 and (on appropriate platforms) length fields in struct sockaddr.
6954 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
6955 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
6956 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
6957 Move common code out of GNAT.Sockets.Thin implementations and into
6960 * g-socket.ads, g-socket.adb:
6961 Move common code out of GNAT.Sockets.Thin implementations and into
6963 (Connect_Socket, Accept_Socket): Provide new versions of these two
6964 routines that operate with a user specified timeout.
6965 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
6966 this is now handled automatically by Set_Family on platforms that
6970 Move common code out of GNAT.Sockets.Thin implementations and into
6972 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
6973 this constant to 0 (not -1) because we use it to initialize an
6974 unsigned_char value.
6975 Align values for numeric constants only.
6976 Handle the case of systems that do not support AF_INET6.
6977 New constant SIZEOF_fd_set
6978 New flag Has_Sockaddr_Len
6979 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6981 * gsocket.h: New flag Has_Sockaddr_Len
6982 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6984 2008-05-20 Santiago Uruena <uruena@adacore.com>
6986 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
6988 2008-05-20 Arnaud Charlet <charlet@adacore.com>
6990 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
6991 the underlying issue with malloc/free has been fixed. Remove associated
6994 Related to PR ada/24533
6996 2008-05-20 Robert Dewar <dewar@adacore.com>
6998 * ali.adb: Correct casing of ASCII.NUL
7000 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
7003 2008-05-20 Robert Dewar <dewar@adacore.com>
7004 Gary Dismukes <dismukes@adacore.com>
7006 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
7007 overflow if result converted to wider integer type.
7008 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
7009 discriminated types when discriminant checks are suppressed.
7011 2008-05-20 Vincent Celier <celier@adacore.com>
7013 * cstand.adb (Print_Standard): Issue the correct Size clause for type
7014 Wide_Wide_Character.
7016 2008-05-20 Tristan Gingold <gingold@adacore.com>
7018 * decl.c: Do not emit a variable for a object that has an address
7019 representation clause whose value is known at compile time.
7020 When a variable has an address clause whose value is known at compile
7021 time, refer to this variable by using directly the address instead of
7022 dereferencing a pointer.
7024 2008-05-20 Robert Dewar <dewar@adacore.com>
7027 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
7028 subtypes, always False for non-modular types.
7029 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
7030 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
7031 for Shared_Storage package.
7032 (Is_RACW_Stub_Type): New entity flag.
7035 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
7036 case where we have a modular type with a non-binary modules.
7037 Comments reformattings.
7039 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
7042 2008-05-20 Javier Miranda <miranda@adacore.com>
7045 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
7046 tests did not covered the case in which the type of the aggregate has
7047 no progenitors but some its parents has progenitors.
7049 2008-05-20 Gary Dismukes <dismukes@adacore.com>
7050 Hristian Kirtchev <kirtchev@adacore.com>
7053 (Expand_N_Object_Declaration): Correct the condition which triggers the
7054 generation of a call to Displace when initializing a class-wide object.
7055 (Build_Dcheck_Functions): Build discriminant-checking for null variants
7056 when Frontend_Layout_On_Target is true to ensure that they're available
7057 for calling when a record variant size function is built in Layout.
7059 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7061 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7062 procedure for a derived type retrieve the discriminant values from the
7063 parent using the corresponding discriminant.
7064 (Expand_N_Assignment_Statement): Skip generation of implicit
7065 if-statement associated with controlled types if we are
7066 compiling with restriction No_Finalization.
7068 2008-05-20 Vincent Celier <celier@adacore.com>
7070 * prj.adb (Hash (Project_Id)): New function
7071 (Project_Empty): Add new component Interfaces_Defined
7073 * prj.ads (Source_Data): New component Object_Linked
7074 (Language_Config): New components Object_Generated and Objects_Linked
7075 (Hash (Project_Id)): New function
7076 (Source_Data): New Boolean components In_Interfaces and
7077 Declared_In_Interfaces.
7078 (Project_Data): New Boolean component Interfaces_Defined
7081 New project level attribute Object_Generated and Objects_Linked
7082 Add new project level attribute Interfaces
7084 * prj-dect.adb: Use functions Present and No throughout
7085 (Parse_Variable_Declaration): If a string type is specified as a simple
7086 name and is not found in the current project, look for it also in the
7087 ancestors of the project.
7090 Replace procedure Make with procedures Initialize, Process and Finalize
7091 to implement H414-023: process different directories with different
7093 Use functions Present and No throughout
7096 Replace procedure Make with procedures Initialize, Process and Finalize
7099 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
7100 the language configuration.
7101 (Process_Project_Level_Array_Attributes): Process new attributes
7102 Object_Generated and Object_Linked.
7103 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
7104 False, to indicate that the erreor/warning is a continuation.
7105 (Check): Call Report_No_Sources with Contnuation = True after the first
7107 (Error_Msg): Process successively contnuation character and warning
7109 (Find_Explicit_Sources): Check that all declared sources have been found
7110 (Check_File): Indicate in hash table Source_Names when a declared source
7112 (Check_File): Set Other_Part when found
7113 (Find_Explicit_Sources): In multi language mode, check if all exceptions
7114 to the naming scheme have been found. For Ada, report an error if an
7115 exception has not been found. Otherwise, disregard the exception.
7116 (Check_Interfaces): New procedure
7117 (Add_Source): When Other_Part is defined, set mutual pointers in spec
7119 (Check): In multi-language mode, call Check_Interfaces
7120 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
7121 for an excluded source.
7122 (Remove_Source): A source replacing a source in the interfaces is also
7125 * prj-pars.adb: Use function Present
7127 * prj-part.adb: Use functions Present and No throughout
7128 (Parse_Single_Project): Set the parent project for child projects
7129 (Create_Virtual_Extending_Project): Register project with no qualifier
7130 (Parse_Single_Project): Allow an abstract project to be extend several
7131 times. Do not allow an abstract project to extend a non abstract
7134 * prj-pp.adb: Use functions Present and No throughout
7135 (Print): Take into account the full associative array attribute
7138 * prj-proc.adb: Use functions Present and No throughout
7139 (Expression): Call itself with the same From_Project_Node for the
7140 default value of an external reference.
7142 * prj-strt.adb: Use functions Present and No throughout
7143 (Parse_Variable_Reference): If a variable is specified as a simple name
7144 and is not found in the current project, look for it also in the
7145 ancestors of the project.
7147 * prj-tree.ads, prj-tree.adb (Present): New function
7149 Use functions Present and No throughout
7150 (Parent_Project_Of): New function
7151 (Set_Parent_Project_Of): New procedure
7153 * snames.ads, snames.adb:
7154 Add new standard names Object_Generated and Objects_Linked
7156 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7158 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
7159 and the derived type are of the same kind.
7160 (Expand_Call): Generate type conversions for actuals of
7161 record or array types when the parent and the derived types differ in
7162 size and/or packed status.
7164 2008-05-20 Javier Miranda <miranda@adacore.com>
7165 Ed Schonberg <schonberg@adacore.com>
7167 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
7168 generating dispatch tables of locally defined tagged types statically.
7169 Remove implicit if-statement that is no longer required.
7170 (Expand_Dispatching_Call): If this is a call to an instance of the
7171 generic dispatching constructor, the type of the first argument may be
7172 a subtype of Tag, so always use the base type to recognize this case.
7174 2008-05-20 Thomas Quinot <quinot@adacore.com>
7177 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
7178 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
7179 assigning NULL into the result, to avoid a spurious warning.
7180 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
7182 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
7184 (Build_From_Any_Function, Build_To_Any_Function,
7185 Build_TypeCode_Function): For a type that has user-specified stream
7186 attributes, use an opaque sequence of octets as the representation.
7188 2008-05-20 Kevin Pouget <pouget@adacore.com>
7190 * exp_smem.ads, exp_smem.adb: Construction of access and assign
7191 routines has been replaced by an instantiation of
7192 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
7193 shared variable declaration.
7194 Calls to access and assign routines have been replaced by calls to
7195 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
7196 instantiated package.
7198 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
7199 It identifies the new generic package added in s-shasto.
7201 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
7202 is instantiated for each shared passive variable. It provides
7203 supporting procedures called upon each read or write access by the
7207 For this runtime unit (always compiled in GNAT mode), we allow
7208 stream attributes references for limited types for the case where
7209 shared passive objects are implemented using stream attributes,
7210 which is the default in GNAT's persistent storage implementation.
7212 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7215 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
7216 convention from its base type, do not set the type to that of integer,
7217 because it may inherit a size clause.
7218 Warn on a size clause with a size different
7219 from that of Integer, if the type has convention C.
7221 2008-05-20 Vincent Celier <celier@adacore.com>
7224 (Scan_Args): Rewrite to take into account new switch --and to separate
7225 arguments into sections.
7226 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
7227 section, then Finalize.
7229 2008-05-20 Tristan Gingold <gingold@adacore.com>
7231 * init.c: Enable stack probing on ppc-linux.
7233 * tracebak.c: Add symbolic traceback for ppc-linux.
7235 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
7237 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7240 (common-tools): New rule, to avoid parallel build failure on gnat tools.
7241 Reenable parallel builds on this Makefile.
7243 * Make-lang.in: Update dependencies.
7245 2008-05-20 Robert Dewar <dewar@adacore.com>
7247 * opt.ads (Treat_Restrictions_As_Warnings): New switch
7249 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
7250 Treat_Restrictions_As_Warnings.
7252 * switch-c.adb: Recognize new switch -gnatr
7254 * usage.adb: Add line for -gnatr
7256 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7259 (P_Access_Definition): Change the error message when parsing "access
7260 all" in Ada 95 mode. The message no longer forces the user to recompile
7261 in 05 mode only to discover that anonymous access types are not allowed
7264 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7267 (P_Protected): Update the error message on missing "-gnat05" switch when
7268 using interfaces in conjunction with protected types. Remove the
7269 incorrect error message associated with the presence of "private" after
7272 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7274 * sem_aggr.adb: Update comments.
7275 Improve previous change for PR ada/17985
7277 2008-05-20 Thomas Quinot <quinot@adacore.com>
7280 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
7281 the visible part of the spec of a remote types unit.
7282 (Validate_Remote_Access_Object_Type_Declaration):
7283 New local subprogram Is_Valid_Remote_Object_Type, replaces
7284 Is_Recursively_Limited_Private.
7285 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
7286 non-controlling formals (and the return type, even though this is not
7287 explicit in the standard) must support external streaming.
7288 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
7289 as above for of RAS types and RCI subprograms. (The return type is not
7291 Update comments related to RACWs designating limited interfaces per
7292 ARG ruling on AI05-060.
7294 * sem_util.ads, sem_util.adb
7295 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
7296 Is_Remote_Call_Interface to identify RACW types in a stable and
7297 consistent way. We used to rely in this predicate on the privateness of
7298 the designated type and its ancestors, but depending on the currently
7299 visible private parts, this caused false negatives. We now uniformly
7300 rely on checks made at the point where the RACW type is declared.
7301 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
7303 2008-05-20 Javier Miranda <miranda@adacore.com>
7304 Ed Schonberg <schonberg@adacore.com>
7305 Hristian Kirtchev <kirtchev@adacore.com>
7308 (Analyze_Object_Declaration): Fix over-conservative condition
7309 restricting use of predefined assignment with tagged types that have
7311 (Analyze_Object_Declaration): Relax the check regarding deferred
7312 constants declared in scopes other than packages since they can be
7313 completed with pragma Import.
7314 Add missing escaping of all-caps word 'CPP' in error messages.
7315 (Build_Discriminated_Subtype): Do not inherit representation clauses
7316 from parent type if subtype already carries them, because they are
7317 inherited earlier during derivation and already include those that may
7318 come from a partial view.
7320 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
7321 Check the declarations of a subprogram body for proper deferred
7322 constant completion.
7324 * sem_ch7.ads, sem_ch7.adb
7325 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
7327 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7328 Thomas Quinot <quinot@adacore.com>
7331 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
7332 F is a parameterless function that returns an array, and S is a subtype
7334 (Analyze_Call): Insert dereference when the prefix is a parameterless
7335 function that returns an access to subprogram and the call has
7337 Reject a non-overloaded call whose name resolves to denote
7338 a primitive operation of the stub type generated to support a remote
7339 access-to-class-wide type.
7341 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7344 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
7345 when there is a use clause for the same entity in the context.
7346 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
7347 created for a stream attribute of an abstract type or interface type.
7349 2008-05-20 Thomas Quinot <quinot@adacore.com>
7351 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
7355 (Add_One_Interp): Ignore any interpretation that is a primitive
7356 operation of an RACW stub type (these primitives are only executed
7357 through dispatching, never through static calls).
7358 (Collect_Interps): When only one interpretation has been found, set N's
7359 Entity and Etype to that interpretation, otherwise Entity and Etype may
7360 still refer to an interpretation that was ignored by Add_One_Interp,
7361 in which case would end up with being marked as not overloaded but with
7362 an Entity attribute not pointing to its (unique) correct interpretation.
7364 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7367 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
7368 denotes the whole array of its prefix.
7370 2008-05-20 Robert Dewar <dewar@adacore.com>
7372 * sem_res.adb (Resolve_Op_Not): Warn on double negation
7374 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7377 (Print_Itype): Do not modify the sloc of the component type of a
7378 (packed) array itype, because it is an unrelated type whose source
7379 location is independent of the point of creation of the itype itself.
7381 2008-05-20 Thomas Quinot <quinot@adacore.com>
7383 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
7386 2008-05-20 Robert Dewar <dewar@adacore.com>
7387 Vincent Celier <celier@adacore.com>
7389 * vms_data.ads: Add entry for -gnatr
7390 Put GNAT SYNC section in proper alpha order
7391 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
7393 * gnat_ugn.texi: Add documentation for new gnatname switch --and
7394 Update the style checks section
7395 Add documentation of -gnatr
7396 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
7397 subsection the explanation how compiler checks should be disabled for
7399 Update the list of Ada 95 reserved words used by in the project language
7400 Add documentation for project qualifiers.
7401 Document that abstract projects may be extended by different projects in
7402 the same project tree.
7403 Add documentation for gnatmake switch -d
7405 * ug_words: Add -gnatyy VMS equivalence string.
7406 Add entry for -gnatr
7408 2008-05-20 Bob Duff <duff@adacore.com>
7411 (Set_Handler): Remove code from both of these that implements
7412 RM-D.15(15/2), because it causes a race condition and potential
7414 (Process_Queued_Events): Add comment explaining "exception when others
7415 => null". Add clarifying ".all", even though implicit .all is legal
7418 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7420 * s-winext.ads: Replace representation clause by pragma Pack. Gives
7421 equivalent representation, but has the advantage of allowing
7422 compilation of this file under 64 bits platforms.
7424 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
7426 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
7429 Don't define dummy implementation of convert_addresses on ppc-linux.
7431 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7434 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
7435 if expression is aggregate component.
7437 2008-05-20 Robert Dewar <dewar@adacore.com>
7439 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
7440 sem_ch12.adb: Update comments. Minor reformatting.
7444 * s-unstyp.ads: Fixed some typos in comments.
7446 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7448 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
7451 * g-socthi-vxworks.ads: Update to latest socket changes.
7453 * a-caldel-vms.adb: Resync with a-caldel spec.
7455 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
7458 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7460 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
7461 for dummy types pointed to by the converted pointer types.
7463 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
7465 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
7466 of records and unions.
7467 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
7469 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
7470 Robert Dewar <dewar@adacore.com>
7472 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
7473 restrictions to the prefix of 'Old.
7474 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
7475 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
7478 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
7482 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
7483 expression to an integral type with lower precision, use NOP_EXPR
7484 directly in a couple of special cases.
7486 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7487 Ed Schonberg <schonberg@adacore.com>
7489 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
7490 constraint expressions.
7492 2008-05-12 Tomas Bily <tbily@suse.cz>
7494 * utils2.c (known_alignment, contains_save_expr_p)
7495 (gnat_mark_addressable): Use CASE_CONVERT.
7496 * decl.c (annotate_value): Likewise.
7497 * trans.c (maybe_stabilize_reference): Likewise.
7498 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
7499 * utils.c (rest_of_record_type_compilation): Likewise.
7500 * trans.c (protect_multiple_eval, Attribute_to_gnu)
7501 (protect_multiple_eval): Likewise.
7503 2008-05-08 Andreas Schwab <schwab@suse.de>
7505 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
7506 DECL_IS_PURE to DECL_PURE_P.
7508 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
7510 * decl.c (maybe_pad_type): Add ??? comment.
7512 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
7514 * decl.c (components_to_record): Zero the alignment of the qualified
7515 union built for the variant part upon creating it.
7517 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
7519 * decl.c (maybe_pad_type): Try to get a form of the type with integral
7520 mode even if the alignment is not a factor of the original size. But
7521 make sure to create the inner field with the original size. Reorder.
7522 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
7523 record as always addressable.
7524 * utils.c (convert): Deal specially with conversions between original
7525 and packable versions of a record type.
7526 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
7527 recognizing an assignment between padded objects.
7529 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
7531 * decl.c (make_packable_type): Resize the last component to its RM size
7532 only if it is of an aggregate type.
7533 * trans.c (call_to_gnu): Fix nit in comment.
7534 (gnat_to_gnu): Likewise.
7536 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
7538 * Makefile.in: Adapt sh4-linux target.
7540 2008-04-29 Ed Schonberg <schonberg@adacore.com>
7543 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
7544 tagged type by an untagged protected or task type.
7546 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
7547 Tristan Gingold <gingold@adacore.com>
7550 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
7551 of aliased objects with an unconstrained nominal subtype.
7552 Cap the promotion to the effective alignment of the word mode.
7554 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7556 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
7557 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
7558 Use '&&' instead of ';'.
7560 2008-04-24 Olivier Hainque <hainque@adacore.com>
7562 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
7563 doesn't require signed arithmetic anymore.
7565 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
7567 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
7568 (call_to_gnu): Don't set TREE_INVARIANT.
7569 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
7571 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
7573 * s-osinte-rtems.adb: Add sigalstack function.
7574 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
7575 function. Add Alternate_Stack and Alternate_Stack_Size.
7576 Add missing process_shared field to pthread_condattr_t
7577 and change ss_low_priority to int from timespec.
7579 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
7581 * i-forbla.adb: Link against -llapack and -lblas by default
7582 instead of the private -lgnalasup.
7584 2008-04-21 Olivier Hainque <hainque@adacore.com>
7586 Access to most C builtins from Ada
7587 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
7588 (handle_pure_attribute, handle_novops_attribute,
7589 handle_nonnull_attribute, handle_sentinel_attribute,
7590 handle_noreturn_attribute, handle_malloc_attribute,
7591 handle_type_generic_attribute): New attribute handlers, from C fe.
7592 (gnat_internal_attribute_table): Map the new handlers.
7593 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
7594 (init_gigi_decls): ... here.
7595 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
7596 Move to a section dedicated to builtins processing.
7597 (build_void_list_node, builtin_type_for_size): New functions.
7598 (def_fn_type, get_nonnull_operand): Likewise.
7599 (install_builtin_elementary_type, install_builtin_function_types,
7600 install_builtin_attributes): Likewise.
7601 (fake_attribute_handler): Fake handler for attributes we don't
7603 (def_builtin_1): New function, worker for DEF_BUILTIN.
7604 (install_builtin_functions): New function.
7605 (gnat_install_builtins): Move to the builtins processing section.
7606 Now calling the newly introduced installers.
7608 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
7610 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
7611 constant objects, but not exceptions.
7612 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
7614 * utils.c (create_var_decl_1): Likewise.
7615 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
7616 the type when copying to padded object and the source is a constructor.
7618 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7620 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
7621 alignment, reset it to zero if it would end up not being greater
7622 than that of the type.
7624 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7626 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
7627 the padded type has a variable size.
7629 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7631 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
7632 target pointer mechanism as soon as the size is not constant.
7634 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7636 * gigi.h (create_var_decl_1): Declare.
7637 (create_var_decl): Turn into a macro invoking create_var_decl_1.
7638 (create_true_var_decl): Likewise.
7639 * utils.c (create_var_decl_1): Make global and reorder parameters.
7640 (create_var_decl): Delete.
7641 (create_true_var_decl): Likewise.
7643 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
7645 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
7647 * fe.h (Debug_Flag_Dot_A): Delete.
7648 * debug.adb (-gnatd.a): Update documentation.
7650 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
7652 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
7653 "not null" parameter.
7655 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
7657 * g-socket.adb: Add a message "IPv6 not supported" to the
7658 Socket_Error exception.
7660 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
7663 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
7664 the type is known instead of the underlying type.
7666 2008-04-15 Ed Schonberg <schonberg@adacore.com>
7669 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7670 procedure for a derived type retrieve the discriminant values from
7671 the parent using the corresponding discriminant.
7673 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
7674 Gary Dismukes <dismukes@adacore.com>
7677 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
7678 which is not an entity (and hence not a package).
7679 (End_Use_Package): Ditto.
7681 2008-04-15 Ed Schonberg <schonberg@adacore.com>
7684 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
7685 protected operation that matches the signature, not only an entry, a
7686 regular subprogram or a literal.
7688 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
7690 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
7691 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
7692 if a size or alignment is specified. Do not take into account
7693 alignment promotions for the computation of the object's size.
7694 <type>: Call maybe_pad_type only if a size or alignment is specified.
7695 (maybe_pad_type): Really reuse the RM_Size of the original type if
7697 * trans.c (Attribute_to_gnu): Fix a couple of nits.
7698 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
7699 statements. Use the padded view of the type when copying between
7700 padded objects of the same underlying type.
7702 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7704 * vms_data.ads: Fix typo in constant.
7705 * gen-soccon.c: Fix typo in error string.
7706 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
7708 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
7709 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
7710 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
7711 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
7712 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
7713 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
7714 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
7715 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
7716 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
7717 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
7718 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
7719 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
7720 sinfo.ads: Fix typos in comments.
7722 2008-04-14 Robert Dewar <dewar@adacore.com>
7724 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
7725 to every non-object and change error message.
7727 2008-04-14 Robert Dewar <dewar@adacore.com>
7729 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
7730 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
7733 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7736 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
7737 apply pragma Linker_Section on type.
7739 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7742 * sem_prag.adb (Error_Pragma_Ref): New.
7743 (Process_Convention): Specialized message for non-local
7744 subprogram renaming. Detect the problem in homonyms as well.
7746 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7749 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
7750 * sem_ch12.adb (Instantiate_Object): Use it.
7751 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
7752 storage pool denotes a variable as per RM 13.11(15).
7754 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7756 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
7757 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
7759 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
7762 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
7763 line endings even on non-Unix platforms.
7765 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
7768 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
7769 renaming information.
7771 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
7774 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
7777 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7779 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
7780 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
7781 snames.ads, sprint.adb, stand.ads, stringt.ads,
7782 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
7783 switch.ads, sysdep.c, table.adb, table.ads,
7784 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
7785 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
7786 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
7787 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
7788 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
7789 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
7792 * sem_ch10.adb, sem_ch10.ads,
7793 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
7794 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
7795 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7796 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
7797 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
7798 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
7799 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
7800 sem_warn.ads: Fix comment typos.
7802 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
7803 s-soflin.ads, s-stalib.ads, s-stausa.adb,
7804 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
7805 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7806 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
7807 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7808 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
7809 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
7810 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
7811 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
7812 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
7813 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
7814 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
7815 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
7816 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
7817 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
7818 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
7819 sem_cat.adb, sem_cat.ads: Fix comment typos.
7821 2008-04-12 Joel Sherrill <joel@oarcorp.com>
7824 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
7826 2008-04-12 Arnaud Charlet <charlet@adacore.com>
7828 * s-linux-hppa.ads: Fix syntax errors.
7830 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7832 * gnat_ugn.texi: Fix typos.
7833 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
7834 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
7835 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
7836 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
7837 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
7838 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
7839 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
7840 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
7841 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
7842 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
7843 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
7844 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
7845 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
7846 s-osinte-darwin.ads, s-osinte-freebsd.ads,
7847 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
7848 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
7849 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
7850 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
7851 s-parame-hpux.ads, s-parame-vms-alpha.ads,
7852 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
7853 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
7854 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
7855 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
7856 s-rident.ads: Fix comment typos.
7858 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
7861 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
7862 environment if generic instance is a top-level one.
7864 2008-04-09 Doug Rupp <rupp@adacore.com>
7866 * decl.c (validate_size): Set minimum size for fat pointers same as
7867 access types. Code clean ups.
7869 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
7870 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
7872 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
7874 * s-crtl.ads (malloc32) New function, alias for malloc
7875 (realloc32) New function, alias for realloc
7877 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
7879 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
7880 allocator size is 32 and default pointer size is 64.
7881 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
7882 lhs type if smaller, whatever the modes.
7884 * gigi.h (malloc32_decl): New macro definition
7886 * utils.c (init_gigi_decls): New malloc32_decl
7887 Various code clean ups.
7889 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7890 Task_Address vice System.Address.
7892 * s-taspri-vms.ads: Import System.Aux_DEC
7893 (Task_Address): New subtype of System.Aux_DEC.Short_Address
7894 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
7896 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7897 Task_Address vice System.Address.
7899 * s-inmaop-vms.adb: Import System.Task_Primitives
7900 (To_Address): Unchecked convert to Task_Address vice System.Address
7902 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
7904 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
7905 (To_Address) Unchecked convert to Task_Address vice System.Address
7907 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
7909 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
7911 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7913 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
7914 (fdesc_type_node): Define.
7915 (null_fdesc_node): Likewise.
7916 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
7917 uses descriptors for vtables and the type comes from a dispatch table,
7918 return the descriptor type.
7919 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
7920 uses descriptors for vtables and the type comes from a dispatch table,
7921 build a descriptor in the static case and copy the existing one in the
7923 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
7924 the type is a pointer-to-subprogram coming from a dispatch table,
7925 return the null descriptor.
7926 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
7927 vtables, the source type is the descriptor type and the target type
7928 is a pointer type, first build the pointer.
7929 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
7930 build the descriptor type and the null descriptor.
7932 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7934 * decl.c (prepend_attributes): Fix typo.
7935 * trans.c (Pragma_to_gnu): Likewise.
7936 * utils.c (gnat_genericize): Likewise.
7938 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7939 Richard Kenner <kenner@adacore.com>
7941 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
7942 * decl.c (gnat_to_gnu_entity): Adjust for above change.
7943 <E_Record_Type>: Try to get a better form of the component for
7944 packing, even if it has an integral mode.
7945 <E_Record_Subtype>: Likewise.
7946 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
7947 exception suppressing the final conversion between record types.
7949 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7951 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
7952 alignment for space, promote the alignment of non-scalar variables with
7953 no size and alignment.
7954 * gigi.h (gnat_types_compatible_p): Declare.
7955 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
7956 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
7957 * utils.c (gnat_types_compatible_p) : New predicate.
7958 (convert): Use it throughout to test for cases where a mere view
7959 conversion is sufficient.
7960 * utils2.c (build_binary_op): Minor tweaks.
7961 (build_unary_op): Likewise.
7963 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7965 * decl.c (adjust_packed): Expand comment.
7967 2008-04-08 Arnaud Charlet <charlet@adacore.com>
7969 * s-tasuti.ads: Use Task_Address instead of System.Address.
7971 * makeutl.adb (Path_Or_File_Name): New function
7973 * nlists.ads, itypes.ads: Update comments.
7975 * s-crtl.ads (malloc32, realloc32): New functions.
7977 * s-auxdec.ads (Short_Address_Size): New constant.
7979 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
7981 * s-ststop.ads, s-ststop.adb: New file.
7983 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
7986 2008-04-08 Pascal Obry <obry@adacore.com>
7988 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
7989 (Stop_Bits_Number): New type.
7990 (Parity_Check): Likewise.
7991 (Set): Add parameter to set the number of stop bits and
7992 the parity. Parameter timeout is now a duration instead
7995 * g-sercom-linux.adb:
7996 Implement the stop bits and parity support for GNU/Linux.
7997 Fix handling of timeout, it must be given in tenth of seconds.
7999 * g-sercom-mingw.adb:
8000 Implement the stop bits and parity support for Windows.
8001 Use new s-win32.ads unit instead of declaring Win32 services
8002 directly into this body.
8003 Update handling of timeout as now a duration.
8005 * s-win32.ads, s-winext.ads: New files.
8007 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8008 Arnaud Charlet <charlet@adacore.com>
8010 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
8012 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
8013 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
8015 * s-osinte-lynxos-3.ads,
8016 (Alternate_Stack): Remove when not needed. Simplify declaration
8018 (Alternate_Stack_Size): New constant.
8020 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
8021 'Unrestricted_Access.
8023 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
8024 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
8025 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
8026 s-osinte-solaris.ads, s-osinte-vms.ads
8027 (SA_ONSTACK): New constant.
8028 (stack_t): New record type.
8029 (sigaltstack): New imported function.
8030 (Alternate_Stack): New imported variable.
8031 (Alternate_Stack_Size): New constant.
8033 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
8035 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
8036 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
8037 s-taspri-vms.ads (Task_Address): New subtype of System.Address
8038 (Task_Address_Size): New constant size of System.Address
8039 (Alternate_Stack_Size): New constant.
8041 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
8042 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
8043 Establish the alternate stack if the platform makes use of n alternate
8044 signal stack for stack overflows.
8045 (Create_Task): Take into account the alternate stack in the stack size.
8046 (Initialize): Save the address of the alternate stack into the ATCB for
8047 the environment task.
8048 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
8050 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
8052 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
8054 * s-intman-posix.adb:
8055 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
8056 alternate signal stack for stack overflows.
8058 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
8059 x86-64, adjust the saved value of the stack pointer if the signal was
8060 raised by a stack checking probe.
8061 (HP-UX section): Use global __gnat_alternate_stack as signal handler
8062 stack and only for SIGSEGV.
8063 (Linux section): Likewise on x86 and x86-64.
8065 (__gnat_map_signal): Now static.
8066 (__gnat_error_handler): Not static any more.
8067 (__gnat_adjust_context_for_raise): New function. Signal context
8068 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
8069 propagation circuitry.
8070 (__gnat_error_handler): Second argument of a sigaction handler is a
8071 pointer, not an int, and is unused.
8072 Adjust signal context before mapping to exception.
8073 Install signal handlers for LynxOS case.
8075 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
8076 (Task_Id): Set size to Task_Address_Size
8077 (To_Task_id): Unchecked convert from Task_Address vice System.Address
8078 (To_Address): Unchecked convert to Task_Address vice System.Address
8080 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
8081 address into the ATCB if the platform makes use of an alternate signal
8082 stack for stack overflows.
8083 (Free_Task): Add call to Finalize_Attributes_Link.
8084 Add argument Relative_Deadline to pass the value specified for
8085 the task. This is not yet used for any target.
8087 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
8088 the value specified for the task.
8090 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8092 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
8093 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
8094 s-vxwext-rtp.adb): New files.
8096 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
8097 Minor updates to accomodate changes above.
8099 2008-04-08 Pascal Obry <obry@adacore.com>
8101 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
8102 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
8103 Use new s-win32.ads unit instead of declaration
8104 from s-osinte-mingw.ads.
8106 * s-osinte-mingw.ads:
8107 Move all non tasking based interface to s-win32.ads.
8109 * s-osprim-mingw.adb:
8110 Remove duplicated declarations and use s-win32.ads
8113 2008-04-08 Vincent Celier <celier@adacore.com>
8114 Arnaud Charlet <charlet@adacore.com>
8116 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
8117 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
8118 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
8119 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8120 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
8122 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
8123 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
8124 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
8125 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
8126 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
8127 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
8128 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
8129 mlib-tgt-specific-mingw.adb: New names.
8132 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
8134 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
8135 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
8136 Minor updates for VMS
8138 * gnatbl.c: Removed.
8140 2008-04-08 Thomas Quinot <quinot@adacore.com>
8142 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
8143 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
8144 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
8145 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
8146 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
8147 ASCII.NUL throughout.
8149 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8150 Matthew Heaney <heaney@adacore.com>
8152 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
8155 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
8156 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
8157 to convention for non-RM specs.
8158 Add descriptive header, and documented each operation
8159 document each operation
8161 2008-04-08 Robert Dewar <dewar@adacore.com>
8162 Bob Duff <duff@adacore.com>
8163 Gary Dismukes <dismukes@adacore.com>
8164 Ed Schonberg <schonberg@adacore.com>
8166 * alloc.ads: Add entries for Obsolescent_Warnings table
8168 * einfo.ads, einfo.adb: Minor reformatting.
8169 (Is_Discriminal): New subprogram.
8170 (Is_Prival): New subprogram.
8171 (Is_Protected_Component): New subprogram.
8172 (Is_Protected_Private): Removed.
8173 (Object_Ref, Set_Object_Ref): Removed.
8174 (Prival, Set_Prival): Change assertion.
8175 (Privals_Chain, Set_Privals_Chain): Removed.
8176 (Prival_Link, Set_Prival_Link): New subprogram.
8177 (Protected_Operation, Set_Protected_Operation): Removed.
8178 (Protection_Object, Set_Protection_Object): New subprogram.
8179 (Write_Field17_Name): Remove case for Object_Ref.
8180 (Write_Field20_Name): Add case for Prival_Link.
8181 (Write_Field22_Name): Remove case for Protected_Operation,
8183 Add case for Protection_Object.
8184 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
8186 (Overlays_Constant): New flag
8187 (Is_Constant_Object): New predicate
8188 (Is_Standard_Character_Type): New predicate
8189 (Optimize_Alignment_Space): New flag
8190 (Optimize_Alignment_Time): New flag
8191 (Has_Postconditions): New flag
8192 (Obsolescent_Warrning): Field removed
8193 (Spec_PPC_List): New field
8194 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
8195 subprograms to get and set the relative deadline associated to a task.
8197 * exp_attr.adb (May_Be_External_Call): Account for the case where the
8198 Access attribute is part of a named parameter association.
8199 (Expand_Access_To_Protected_Op): Test for the attribute occurring
8200 within an init proc and use that directly as the scope rather than
8201 traversing up to the protected operation's enclosing scope. Only apply
8202 assertion on Is_Open_Scopes in the case the scope traversal is done.
8203 For the init proc case use the address of the first formal (_init) as
8204 the protected object reference.
8205 Implement Invalid_Value attribute
8206 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
8207 contents of the dispatch table there is no need to duplicate the
8208 itypes associated with record types (i.e. the implicit full view
8210 Implement Enum_Val attribute
8211 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
8212 within _Postconditions procedure
8213 (Expand_N_Attribute_Reference, case Result): Implement new attribute
8215 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
8216 a return statement calls a function that is not available in
8217 configurable runtime.
8218 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
8219 (Expand_Non_Function_Return): Generate call to _Postconditions proc
8220 (Expand_Simple_Function_Return): Ditto
8222 * frontend.adb: Add call to Sem_Aux.Initialize
8224 * sem_aux.ads, sem_aux.adb: New file.
8226 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
8227 Add new Pragma_Relative_Deadline.
8228 Add support for pragmas Check and Check_Policy
8230 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
8231 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
8232 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
8233 missing check because they are not allowed in CPP tagged types.
8234 Add Sure parameter to Note_Possible_Modification calls
8235 Add implementation of Invalid_Value attribute
8236 Implement new attribute Has_Tagged_Values
8237 Implement Enum_Val attribute
8238 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
8239 generated attributes.
8240 (Analyze_Attribute, case Result): If prefix of the attribute is
8241 overloaded, it always resolves to the enclosing function.
8242 (Analyze_Attribute, case Result): Properly deal with analysis when
8243 Postconditions are not active.
8244 (Resolve_Attribute, case Result): Properly deal with appearence during
8245 preanalysis in spec.
8246 Add processing for attribute Result
8248 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
8250 (Analyze_Subprogram_Body): Install private_with_clauses when the body
8252 (Check_Inline_Pragma): recognize an inline pragma that appears within
8253 the subprogram body to which it applies.
8254 (Analyze_Function_Return): Check that type of the expression of a return
8255 statement in a function with a class-wide result is not declared at a
8256 deeper level than the function.
8257 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
8258 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
8259 user- defined operators.
8260 (Install_Formals): Moved to spec to allow use from Sem_Prag for
8261 analysis of precondition/postcondition pragmas.
8262 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
8263 Last_Formal, along with lots of comments on what this is about
8264 (Analyze_Subprogram_Body): Fix case where we move entities from the
8265 spec to the body when there are no body entities (now possible with
8266 precondition and postcondition pragmas).
8267 (Process_PPCs): New procedure
8268 (Analyze_Subprogram_Body): Add call to Process_PPCs
8270 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
8272 (Pop_Scope): Restore Check_Policy_List on scope exit
8273 (Push_Scope): Save Check_Policy_List on scope entry
8274 Change name In_Default_Expression => In_Spec_Expression
8275 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8276 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8277 (Analyze_Object_Renaming): Allow 'Reference as object
8278 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
8279 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
8280 of restriction identifier.
8281 Add Sure parameter to Note_Possible_Modication calls
8283 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
8284 Don't check for primitive operations when calling Rep_Item_Too_Late.
8285 (Process_Import_Or_Interface): Do not place flag on formal
8287 (Analyze_Pragma, case Export): If the entity is a deferred constant,
8288 propagate information to full view, which is the one elaborated by the
8290 (Make_Inline): the pragma is effective if it applies to an internally
8291 generated subprogram declaration for a body that carries the pragma.
8292 (Analyze_Pragma, case Optimize_Alignment): Set new flag
8293 Optimize_Alignment_Local.
8294 (Analyze_PPC_In_Decl_Part): New procedure
8295 (Get_Pragma_Arg): Moved to outer level
8296 (Check_Precondition_Postcondition): Change to allow new visibility
8297 rules for package spec
8298 (Analyze_Pragma, case Check_Policy): Change placement rules to be
8299 same as pragma Suppress/Unsuppress.
8300 Change name In_Default_Expression => In_Spec_Expression
8301 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8302 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8303 (Check_Precondition_Postcondition): Do proper visibility preanalysis
8304 for the case of these pragmas appearing in the spec.
8305 (Check_Enabled): New function
8306 (Initialize): New procedure
8307 (Tree_Read): New procedure
8308 (Tree_Write): New procedure
8309 (Check_Precondition_Postcondition): New procedure
8310 Implement pragmas Check and Check_Policy
8311 Merge Assert processing with Check
8313 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
8314 New warning flag -gnatw.e
8316 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
8317 returning whether a task (or main procedure) has a pragma
8319 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
8320 (or main procedure) has a pragma Relative_Deadline.
8321 Add Next_Pragma field to N_Pragma node
8322 (PPC_Enabled): New flag
8323 (Next_Pragma): Now used for Pre/Postcondition processing
8325 * snames.h, snames.ads, snames.adb: New standard name
8327 Add entry for 'Invalid_Value attribute
8328 Add entry for new attribute Has_Tagged_Values
8329 Add entry for Enum_Val attribute
8330 Add new standard names Aggregate, Configuration and Library.
8333 Add Pragma_Precondition
8334 Add Pragma_Postcondition
8335 Add Attribute_Result
8336 New standard name Archive_Builder_Append_Option
8337 (Preset_Names): Add _relative_deadline and relative_deadline definitions
8338 There was also a missing non_preemptive_within_priorities.
8339 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
8341 Add support for pragmas Check and Check_Policy
8343 * tree_gen.adb: Call Sem_Aux.Tree_Write
8345 * tree_in.adb: Call Sem_Aux.Tree_Read
8347 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
8350 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
8353 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
8354 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
8356 (Expand_Pragma_Check): New procedure
8358 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
8361 * sinfo.adb (PPC_Enabled): New flag
8363 2008-04-08 Robert Dewar <dewar@adacore.com>
8364 Gary Dismukes <dismukes@adacore.com>
8365 Javier Miranda <miranda@adacore.com>
8366 Ed Schonberg <schonberg@adacore.com>
8368 * fe.h: Remove global Optimize_Alignment flag, no longer used
8370 * layout.adb: Test Optimize_Alignment flags rather than global switch
8372 * lib.ads, lib.adb: New OA_Setting field in library record
8374 * lib-load.adb: New OA_Setting field in library record
8376 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
8377 units mentioned in limited_with_ clauses in the ali file, with an
8379 New Ox fields in U line
8381 * opt.adb: New flag Optimize_Alignment_Local
8382 (Check_Policy_List[_Config]): New flags
8384 * opt.ads (Invalid_Value_Used): New flag
8385 New switch Optimize_Alignment_Local
8386 (Warn_On_Parameter_Order): New flag
8387 (Check_Policy_List[_Config]): New flags
8389 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
8390 limited_with clauses.
8391 New data structures for Optimize_Alignment
8393 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
8395 (Check_Consistent_Optimize_Alignment): Rework for new structure
8396 (Check_Consistent_Restrictions): Fix incorrect error message
8398 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
8399 created class-wide type (to the Parent field of the specific type).
8400 (Install_Siblings): Handle properly private_with_clauses on subprogram
8401 bodies and on generic units.
8402 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
8403 illegal limited_with_clause that names a non-existent package.
8404 (Check_Body_Required): Determine whether a unit named a limited_with
8405 clause needs a body.
8406 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
8407 Capture Optimize_Alignment settings to set new OA_Setting field in
8409 (Build_Limited_Views): Include task and protected type declarations.
8411 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
8412 case of a possible constant redeclaration where the current object is
8413 an entry index constant.
8414 (Analyze_Object_Declaration): Generate an error in case of CPP
8415 class-wide object initialization.
8416 (Analyze_Object_Declaration): Add extra information on warnings for
8417 declaration of unconstrained objects.
8418 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
8419 conflicts with the setting of Stored_Constraint in the case where the
8420 access type entity has already been created as an E_Incomplete_Type due
8421 to a limited with clause.
8422 Use new Is_Standard_Character_Type predicate
8423 (Analyze_Object_Declaration): Apply access_constant check only after
8424 expression has been resolved, given that it may be overloaded with
8425 several access types.
8426 (Constant_Redeclaration): Additional legality checks for deferred
8427 constant declarations tha involve anonymous access types and/or null
8428 exclusion indicators.
8429 (Analyze_Type_Declaration): Set Optimize_Alignment flags
8430 (Analyze_Subtype_Declaration): Ditto
8431 (Analyze_Object_Declaration): Ditto
8432 (Analyze_Object_Declaration): Don't count tasks in generics
8433 Change name In_Default_Expression => In_Spec_Expression
8434 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8435 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8436 (Process_Discriminants): Additional check for illegal use of default
8437 expressions in access discriminant specifications in a type that is not
8439 (Check_Abstract_Overriding): If an inherited function dispaches on an
8440 access result, it must be overridden, even if the type is a null
8442 (Derive_Subprogram): The formals of the derived subprogram have the
8443 names and defaults of the parent subprogram, even if the type is
8444 obtained from the actual subprogram.
8445 (Derive_Subprogram): In the presence of interfaces, a formal of an
8446 inherited operation has the derived type not only if it descends from
8447 the type of the formal of the parent operation, but also if it
8448 implements it. This is relevant for the renamings created for the
8449 primitive operations of the actual for a formal derived type.
8450 (Is_Progenitor): New predicate, to determine whether the type of a
8451 formal in the parent operation must be replaced by the derived type.
8453 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
8454 predicate recursive to handle components that have a user-defined
8455 Initialize procedure. Handle controlled derived types whose ancestor
8456 has a user-defined Initialize procedured.
8457 (Note_Possible_Modification): Add Sure parameter, generate warning if
8458 sure modification of constant
8459 Use new Is_Standard_Character_Type predicate
8460 (Find_Parameter_Type): when determining whether a protected operation
8461 implements an interface operation, retrieve the type of the formal from
8462 the entity when the formal is an access parameter or an
8463 anonymous-access-to-subprogram.
8464 Move Copy_Parameter_List to sem_util, for use when building stubbed
8466 (Has_Access_Values): Tagged types now return False
8467 (Within_HSS_Or_If): New procedure
8468 (Set_Optimize_Alignment_Flags): New procedure
8469 Change name In_Default_Expression => In_Spec_Expression
8470 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8471 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8473 2008-04-08 Tristan Gingold <gingold@adacore.com>
8475 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
8477 2008-04-08 Tristan Gingold <gingold@adacore.com>
8481 * cuintp.c: Fix 16 bits issue for AVR.
8482 On AVR, integer is 16 bits, so it can't be used to do math with
8484 So use long_integer instead.
8486 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8488 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
8489 System.OS_Primitives.
8490 Change type of various constants, parameters and local variables from
8491 Time to representation type OS_Time.
8492 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
8493 Remove the declaration of constant Mili_F from several routines. New
8494 body for internal package Conversions_Operations.
8495 (Time_Of): Add default parameters for several formals.
8497 * a-caldel.adb: Minor reformatting
8499 * a-calend.ads, a-calend.adb: New body for internal package
8500 Conversions_Operations.
8501 (Time_Of): Add default parameters for several formals.
8503 * Makefile.rtl: Add a-ststop
8504 Add Ada.Calendar.Conversions to the list of runtime files.
8507 * a-calcon.adb, a-calcon.ads: New files.
8509 2008-04-08 Jose Ruiz <ruiz@adacore.com>
8510 Tristan Gingold <gingold@adacore.com>
8512 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
8513 (Install_Restricted_Handlers): New procedure
8514 which is a simplified version of Install_Handlers that does not store
8515 previously installed.
8517 * s-interr-vxworks.adb: Fix ACATS cxc3001
8518 On VxWorks interrupts can't be detached.
8519 (Install_Restricted_Handlers): New procedure.
8521 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
8524 2008-04-08 Olivier Hainque <hainque@adacore.com>
8526 * s-intman-vxworks.ads, s-intman-vxworks.adb
8527 (Map_And_Raise_Exception): Remove. Was an import of only part of the
8528 required services already implemented elsewhere.
8529 (Notify_Exception): Delete body, import __gnat_error_handler instead.
8530 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
8531 argument passed to the handler, which we need for ZCX propagation
8534 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8536 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
8538 * g-timsta.adb, g-timsta.ads: New files.
8540 2008-04-08 Robert Dewar <dewar@adacore.com>
8542 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
8543 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
8544 (Raise_Exception_Always): Fix documentation accordingly
8546 2008-04-08 Robert Dewar <dewar@adacore.com>
8548 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
8551 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
8554 2008-04-08 Javier Miranda <miranda@adacore.com>
8555 Robert Dewar <dewar@adacore.com>
8556 Ed Schonberg <schonberg@adacore.com>
8558 * a-tags.adb (Register_Interface_Offset): New subprogram.
8559 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
8560 (To_Predef_Prims_Table_Ptr): Removed.
8561 (Acc_Size): Removed.
8562 (To_Acc_Size): Removed.
8563 (Parent_Size): Modified to the call the subprogram returning the size of
8564 the parent by means of the new TSD component Size_Func.
8566 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
8567 (DT_Offset_To_Top_Offset): New constant value that is used to generate
8568 code referencing the Offset_To_Top component of the dispatch table's
8570 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
8571 use of 'address to initialize dispatch table slots.
8572 (Size_Func): New component of the TSD. Used by the run-time to call the
8573 size primitive of the tagged type.
8575 * checks.adb (Apply_Access_Check): Avoid check when accessing the
8576 Offset_To_Top component of a dispatch table.
8577 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
8578 deferred constant declaration. do not add a null expression, to prevent
8579 spurious errors when full declaration is analyzed.
8580 (Apply_Discriminant_Check): If both discriminant constraints share a
8581 node which is not static but has no side effects, do not generate a
8582 check for that discriminant.
8583 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
8584 subexpr, since the prefix of an attribute is a name.
8586 * checks.ads: Fix nit in comment.
8588 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
8589 and body of predefined primitives in case of CPP tagged type
8591 (Freeze_Type): Deal properly with no storage pool case
8592 (Make_Predefined_Primitive_Specs): Generate specification of abstract
8593 primitive Deep_Adjust if a nonlimited interface is derived from a
8595 (Build_Dcheck_Functions): Create discriminant-checking functions only
8596 for variants that have some component(s).
8597 (Build_Slice_Assignment): In expanded code for slice assignment, handle
8598 properly the case where the slice bounds extend to the last value of the
8599 underlying representation.
8600 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
8601 (Is_Variable_Size_Record): An array component has a static size if
8602 index bounds are enumeration literals.
8604 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
8605 an external tag has been specified for the type.
8606 (Building_Static_DT): Add missing support for private types.
8607 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
8608 to the entity associated with the parent of Typ. This is done to
8609 avoid wrong access when the parent is a private type.
8610 (Expand_Interface_Conversion): Improve error message when the
8611 configurable runtime has no support for dynamic interface conversion.
8612 (Expand_Interface_Thunk): Add missing support to interface types in
8613 configurable runtime.
8614 (Expand_Dispatching_Call): remove obsolete code.
8615 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
8616 ensure that all subtypes and aggregates associated with dispatch
8617 tables have the attribute Is_Dispatch_Table_Entity set to true.
8618 (Register_Primitive): Rename one variable to improve code reading.
8619 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
8620 of the pointer to the 'size primitive in the TSD.
8622 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
8623 (RE_Offset_To_Top_Ptr): New entity.
8624 (RE_Register_Interface_Offset): New entity.
8625 (RE_Set_Dynamic_Offset_To_Top): New entity.
8626 (RE_Set_Offset_To_Top): Removed entity.
8627 (RE_Prim_Ptr): New entity
8628 (RE_Size_Func): New entity
8629 (RE_Size_Ptr): New entity
8630 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
8631 (Ada_Dispatching_Child): Define this new subrange.
8632 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
8633 RE_Time_Span, and RE_Time_Span_Zero).
8634 (RE_Unit_Table): Add new required run-time calls
8636 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
8639 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
8640 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
8641 initializes the Offset_To_Top component of a dispatch table.
8642 (Build_Predef_Prims): Removed.
8643 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
8645 (Build_Set_Size_Function): New subprogram.
8647 * exp_ch13.adb: Do not generate storage variable for storage_size zero
8648 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
8650 2008-04-08 Robert Dewar <dewar@adacore.com>
8652 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
8653 computing Fore when Exp > 0
8655 2008-04-08 Robert Dewar <dewar@adacore.com>
8657 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
8659 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
8660 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
8662 * fmap.adb: Remove Big_String declarations (now in Types)
8663 (No_Mapping_File): New Boolean global variable
8664 (Initialize): When mapping file cannot be read, set No_Mapping_File to
8666 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
8667 tables were empty before adding entries, open the mapping file
8668 with Truncate = True, instead of delete/re-create.
8670 * fname-sf.adb: Remove Big_String declarations (now in Types)
8672 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
8673 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
8676 * table.ads: Add for Table_Ptr'Storage_Size use 0
8678 * types.ads: Add Big_String declarations
8679 Add Size_Clause of zero for big pointer types
8681 2008-04-08 Vincent Celier <celier@adacore.com>
8683 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
8684 (Usage): Add line for switch --subdirs=
8685 Add new switch -eL, to follow symbolic links when processing project
8688 * gnatcmd.adb: Process switches -eL and --subdirs=
8689 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
8690 Program_Name to get proper tool names when AAMP_On_Target is set.
8691 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
8692 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
8693 Osint.Program_Name).
8695 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
8696 (Usage): Add lines for switches -eL and --subdirs=
8698 * makeusg.adb: Add line for switch --subdirs=
8701 (Source_Data): New Boolean component Compiled, defaulted to True
8702 (Empty_File_Name: New global variable in private part, initialized in
8703 procedure Initialize.
8704 (Subdirs_Option): New constant string
8705 (Subdirs): New String_Ptr global variable
8706 (Language_Config): New component Include_Compatible_Languages
8707 (Project_Qualifier): New type for project qualifiers
8708 (Project_Data): New component Qualifier
8709 (Project_Configuration): New component Archive_Builder_Append_Option
8711 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
8712 another imported project indicate the name of this imported project.
8713 (Check_File): When a unit is in two project files, indicate the project
8714 names and the paths of the source files for each project.
8715 (Add_Source): Set Compiled to False if compiler driver is empty. Only
8716 set object, dependency and switches file names if Compiled is True.
8717 (Process_Compiler): Allow the empty string for value of attribute Driver
8718 (Get_Directories): When Subdirs is not null and Object_Dir is not
8719 specified, locate and create if necessary the actual object dir.
8720 (Locate_Directory): When Subdirs is not empty and Create is not the
8721 empty string, locate and create if necessary the actual directory
8722 as a subdirectory of directory Name.
8723 (Check_Library_Attributes.Check_Library): Allow a project where the only
8724 "sources" are header files of file based languages to be imported by
8725 library projects, in multi-language mode (gprbuild).
8726 (Check_Library_Attributes.Check_Library): In multi-language mode
8727 (gprbuild), allow a library project to import a project with no
8728 sources, even when this is not declared explicitly.
8729 (Check_If_Externally_Built): A virtual project extending an externally
8730 built project is also externally built.
8731 (Check_Library_Attributes): For a virtual project extending a library
8732 project, inherit the library directory.
8733 (Process_Project_Level_Array_Attributes): Process new attribute
8734 Inherit_Source_Path.
8735 For projects with specified qualifiers "standard", "library" or
8736 "abstract", check that the project conforms to the qualifier.
8737 (Process_Project_Level_Simple_Attributes): Process new attribute
8738 Archive_Builder_Append_Option.
8740 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
8741 (Normalize_Compiler_Switches): Only keep compiler switches that are
8742 passed to gnat1 by the gcc driver and that are stored in the ALI file
8744 Do not take into account switc -save-temps
8746 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
8747 gprmake is called with -eL.
8748 (Scan_Arg): Recognize switch -eL
8749 (Usage): Add line for switch -eL
8751 * prj.adb (Initialize): Initialize Empty_File_Name
8752 (Project_Empty): New component Qualifier
8754 * prj-attr.ads, prj-attr.adb: New project level attribute
8755 Inherit_Source_Path.
8756 New project level attribute Archive_Builder_Append_Option
8758 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
8760 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
8761 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
8762 upward compatibility.
8764 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
8765 each Trying ..." on different lines.
8766 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
8767 is "configuration" when not in configuration. Fail when in configuration
8768 when a specified qualifier is other than "configuration".
8770 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
8771 full associative array together.
8772 (Recursive_Process): Put the project qualifier in the project data
8774 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
8775 (Set_Project_Qualifier_Of): New procedure
8777 2008-04-08 Robert Dewar <dewar@adacore.com>
8779 * errout.ads: Update comments for new handling of info: messages
8781 * erroutc.adb (Matches): New procedure
8782 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
8783 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
8784 info messages as well as style messages.
8786 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
8788 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
8790 (Check_A_Call): Special "info: " warnings now have ? in the text
8791 (Elab_Warning): Use info message in static case
8793 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8795 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
8796 whether an array aggregate with static bounds and scalar components
8797 should be expanded into a static constant.
8799 2008-04-08 Gary Dismukes <dismukes@adacore.com>
8800 Ed Schonberg <schonberg@adacore.com>
8801 Robert Dewar <dewar@adacore.com>
8803 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
8804 Has_Stream_Attribute_ Definition when checking for available stream
8805 attributes on parameters of a limited type in Ada 2005. Necessary for
8806 proper recognition of visible stream attribute clauses.
8807 (Has_Stream_Attribute_Definition): If the type is derived from a
8808 private type, then use the derived type's underlying type for checking
8809 whether it has stream attributes.
8810 (Validate_Object_Declaration): The check for a user-defined Initialize
8811 procedure applies also to types with controlled components or a
8812 controlled ancestor.
8813 Reject an object declaration in a preelaborated unit if the type is a
8814 controlled type with an overriding Initialize procedure.
8815 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
8816 checking when the parent of a dereference is a selected component and
8817 the name has not been analyzed.
8819 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
8820 prefixes that are invalid explicit dereferences of remote
8821 access-to-class-wide values, first checking whether the selected
8822 component is a prefixed form of call to a tagged operation.
8823 (Analyze_Call): Remove code that issues an error for limited function
8824 calls in illegal contexts, as we now support all of the contexts that
8825 were forbidden here.
8826 Allow a function call that returns a task.and appears as the
8827 prefix of a selected component.
8828 (Analyze_Reference): Give error message if we try to make a 'Reference
8829 for an object that is atomic/aliased without its type having the
8830 corresponding attribute.
8831 (Analyze_Call): Remove condition checking for attributes to allow
8832 calls to functions with inherently limited results as prefixes of
8833 attributes. Remove related comment about Class attributes.
8834 (Analyze_Selected_Component): If the prefix is a remote type, check
8835 whether this is a prefixed call before reporting an error.
8836 (Complete_Object_Operation): If the controlling formal is an access to
8837 variable reject an actual that is a constant or an access to one.
8838 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8839 primitive operations from base type.
8841 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
8843 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8844 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
8845 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8846 (Expand_N_Slice): Test for prefix that is a build-in-place function call
8847 and call Make_Build_In_Place_Call_In_Anonymous_Context.
8848 (Analyze_Call): Remove code that issues an error for limited function
8849 calls in illegal contexts, as we now support all of the contexts that
8850 were forbidden here.
8851 New calling sequence for Get_Simple_Init_Val
8852 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
8853 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
8855 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8856 Ed Schonberg <schonberg@adacore.com>
8857 Robert Dewar <dewar@adacore.com>
8859 * exp_ch2.adb: Minor reformatting.
8860 (Expand_Entry_Index_Parameter): Set the type of the identifier.
8861 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
8862 (Expand_Protected_Component): New routine.
8863 (Expand_Protected_Private): Removed.
8864 Add Sure parameter to Note_Possible_Modification calls
8866 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
8867 generated subprogram declaration must inherit the overriding indicator
8868 from the instantiation node.
8869 (Validate_Access_Type_Instance): If the designated type of the actual is
8870 a limited view, use the available view in all cases, not only if the
8871 type is an incomplete type.
8872 (Instantiate_Object): Actual is illegal if the formal is null-excluding
8873 and the actual subtype does not exclude null.
8874 (Process_Default): Handle properly abstract formal subprograms.
8875 (Check_Formal_Package_Instance): Handle properly defaulted formal
8876 subprograms in a partially parameterized formal package.
8877 Add Sure parameter to Note_Possible_Modification calls
8878 (Validate_Derived_Type_Instance): if the formal is non-limited, the
8879 actual cannot be limited.
8880 (Collect_Previous_Instances): Generate instance bodies for subprograms
8883 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
8885 Add Sure parameter to Note_Possible_Modification calls
8886 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
8887 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
8888 constant overlaid by variable and issue warning.
8889 Use new Is_Standard_Character_Type predicate
8890 (Analyze_Record_Representation_Clause): Check that the specified
8891 Last_Bit is not less than First_Bit - 1.
8892 (Analyze_Attribute_Definition_Clause, case Address): Check for
8893 self-referential address clause
8895 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
8896 detection mechanism when the lhs is a prival.
8897 (Analyze_Assignment): Call Check_Unprotected_Access to detect
8898 assignment of a pointer to protected data, to an object declared
8899 outside of the protected object.
8900 (Analyze_Loop_Statement): Check for unreachable code after loop
8901 Add Sure parameter to Note_Possible_Modication calls
8902 Protect analysis from previous syntax error such as a scope mismatch
8904 (Analyze_Assignment_Statement): The assignment is illegal if the
8905 left-hand is an interface.
8907 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
8908 violation of restriction No_Implicit_Conditionals
8909 Add Sure parameter to Note_Possible_Modication calls
8910 Use new Is_Standard_Character_Type predicate
8911 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
8912 call as operator. Fixes problems (e.g. validity checking) which
8913 come from the result looking as though it does not come from source).
8914 (Resolve_Call): Check case of name in named parameter if style checks
8916 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
8917 from the checking that such calls should not occur from an entry body.
8918 (Resolve_Call): If the return type of an Inline_Always function
8919 requires the secondary stack, create a transient scope for the call
8920 if the body of the function is not available for inlining.
8921 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
8922 that are actuals for in-out formals.
8923 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8924 primitive operations from base type.
8925 (Analyze_Selected_Component): If the context is a call to a protected
8926 operation the parent may be an indexed component prior to expansion.
8927 (Resolve_Actuals): If an actual is of a protected subtype, use its
8928 base type to determine whether a conversion to the corresponding record
8930 (Resolve_Short_Circuit): Handle pragma Check
8932 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
8933 Use new Is_Standard_Character_Type predicate
8934 (Eval_Relational_Op): Catch more cases of string comparison
8936 2008-04-08 Robert Dewar <dewar@adacore.com>
8937 Gary Dismukes <dismukes@adacore.com>
8939 * s-rident.ads: Add No_Default_Initialization restriction
8942 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
8943 (Set_TSS): Handle No_Default_Initialization case
8945 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
8946 No_Default_Initialization
8947 (Expand_N_Subprogram_Body): Remove redundant initialization of out
8948 parameters when Normalize_Scalars is active.
8949 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
8950 Fix casing error in formal parameter name in call
8951 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
8952 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8953 dispatching call on VM targets.
8955 2008-04-08 Gary Dismukes <dismukes@adacore.com>
8956 Thomas Quinot <quinot@adacore.com>
8958 * exp_ch7.adb (Find_Final_List): Change the test for generating a
8959 selected component from an access type's Associated_Final_Chain to
8960 check for the presence of that field, rather than assuming it exists
8961 for all named access types.
8962 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
8963 procedure to call at the end of the generated cleanup procedure.
8964 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
8965 and an At_End_Proc already exists in the handled sequence of statements
8966 for which cleanup actions are being expanded, the original cleanup
8967 action must be preserved.
8969 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8970 Ed Schonberg <schonberg@adacore.com>
8971 Robert Dewar <dewar@adacore.com>
8972 Gary Dismukes <dismukes@adacore.com>
8974 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
8975 Build_Unprotected_Subprogram_Body): Generate debug info for
8976 declarations related to the handling of private data in task and
8978 (Debug_Private_Data_Declarations): New subprogram.
8979 (Install_Private_Data_Declarations): Remove all debug info flagging.
8980 This is now done by Debug_Private_Data_Declarations at the correct
8982 (Build_Simple_Entry_Call): If the task name is a function call, expand
8983 the prefix into an object declaration, and make the surrounding block a
8985 (Build_Master_Entity): An internal block is a master if it wraps a call.
8986 Code reformatting, update comments. Code clean up.
8987 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
8988 (Replicate_Entry_Formals): If the formal is an access parameter or
8989 anonymous access to subprogram, copy the original tree to create new
8990 entities for the formals of the subprogram.
8991 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
8992 for tasks to store the value passed using pragma Relative_Deadline.
8993 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
8994 run-time call to create a task.
8995 (Build_Wrapper_Spec): If the controlling argument of the interface
8996 operation is an access parameter with a non-null indicator, use the
8997 non-null indicator on the wrapper.
8999 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
9000 present, which it may not be in the case where the type entity is an
9001 incomplete view brought in by a limited with.
9002 (Analyze_Task_Type): Only retrieve the full view when present, which it
9003 may not be in the case where the type entity is an incomplete view brought
9004 in by a limited with.
9005 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
9006 private components of a protected type, to prevent the generation of freeze
9007 nodes for which there is no proper scope of elaboration.
9009 * exp_util.ads, exp_util.adb
9010 (Remove_Side_Effects): If the expression is a function call that returns a
9011 task, expand into a declaration to invoke the build_in_place machinery.
9012 (Find_Protection_Object): New routine.
9013 (Remove_Side_Effects): Also make a copy of the value
9014 for attributes whose result is of an elementary type.
9015 (Silly_Boolean_Array_Not_Test): New procedure
9016 (Silly_Boolean_Array_Xor_Test): New procedure
9017 (Is_Volatile_Reference): New function
9018 (Remove_Side_Effects): Use Is_Volatile_Reference
9019 (Possible_Bit_Aligned_Component): Handle slice case properly
9021 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
9022 case test to Exp_Util
9023 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
9025 2008-04-08 Thomas Quinot <quinot@adacore.com>
9027 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
9029 (Add_RACW_Features): When processing an RACW in another unit than the
9030 main unit, set Body_Decls to No_List to indicate that the bodies of
9031 the type's TSS must not be generated.
9032 (GARLIC_Support.Add_RACW_Read_Attribute,
9033 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
9034 Body_Decls is No_List.
9035 (PolyORB_Support.Add_RACW_Read_Attribute,
9036 PolyORB_Support.Add_RACW_Write_Attribute,
9037 PolyORB_Support.Add_RACW_From_Any,
9038 PolyORB_Support.Add_RACW_To_Any,
9039 PolyORB_Support.Add_RACW_TypeCode): Same.
9040 (Transmit_As_Unconstrained): New function.
9041 (Build_Ordered_Parameters_List): Use the above to order parameters.
9042 (GARLIC_Support.Build_General_Calling_Stubs):
9043 Use the above to determine which parameters to unmarshall using 'Input
9044 at the point where their temporary is declared (as opposed to later on
9046 (PolyORB_Support.Build_General_Calling_Stubs):
9047 Use the above to determine which parameters to unmarshall using From_Any
9048 at the point where their temporary is declared (as opposed to later on
9049 with an assignment).
9051 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9053 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
9054 an Input function for an access type, do not perform default
9055 initialization on the local variable that receives the value, to
9056 prevent spurious warnings when the type is null-excluding.
9058 2008-04-08 Robert Dewar <dewar@adacore.com>
9059 Ed Schonberg <schonberg@adacore.com>
9061 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
9063 (Size_Known): Generic formal scalar types have known at compile
9064 time size, so remove check.
9065 Fix casing error in formal parameter name in call
9066 (Freeze_Subprogram): If the subprogram is a user-defined operator,
9067 recheck its overriding indication.
9069 2008-04-08 Vincent Celier <celier@adacore.com>
9071 * gnat1drv.adb: Send all messages indicating an error to standard error
9073 2008-04-08 Robert Dewar <dewar@adacore.com>
9075 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
9076 (List_Applicable_Restrictions): Do not list existing restrictions
9078 2008-04-08 Thomas Quinot <quinot@adacore.com>
9080 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
9081 add a pointer to generic sockets literature
9082 do not mention that the given example is "typical" usage.
9083 Remove obsolete comment about multicast not being supported on Windows.
9084 (Connect_Socket): Make Server mode IN rather than IN OUT
9085 since this formal is never modified.
9087 2008-04-08 Robert Dewar <dewar@adacore.com>
9089 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
9090 the declaration for some different entity.
9091 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
9092 list is precent (following the parent subtype indication), display
9093 appropriate "and" keyword.
9095 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
9096 Remove unnecessary calls to Init_Size_Align and Init_Esize.
9097 Add notes on use of Parent field of an Itype
9099 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9100 Robert Dewar <dewar@adacore.com>
9101 Gary Dismukes <dismukes@adacore.com>
9103 * lib-xref.adb (Is_On_LHS): Remove dead code
9104 (Output_Overriden_Op): If the overridden operation is itself inherited,
9105 list the ancestor operation, which is the one whose body or absstract
9106 specification is actually being overridden. For source navigation
9109 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
9110 operation is primitive for the type.
9111 (Declare_Inherited_Private_Subprograms): If the new operation overrides
9112 an inherited private subprogram, set properly the Overridden_Operation
9113 attribute, for better cross-reference information.
9114 (Analyze_Package_Specification): Do late analysis of spec PPCs
9115 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
9116 properly the full view and underlying full views of a private type in a
9117 child unit, whose full view is derived from a private type in a parent
9118 unit, and whose own full view becomes visible in the child body.
9120 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
9121 primitive operation after the type has been frozen, add an explicit
9122 reference to the type and the operation, because other primitive
9123 references have been emitted already.
9124 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
9125 dispatching call on VM targets.
9127 2008-04-08 Vincent Celier <celier@adacore.com>
9128 Thomas Quinot <quinot@adacore.com>
9130 * make.adb: (Gnatmake_Called): Remove, no longer necessary
9131 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
9132 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
9133 (Insert_Project_Sources): Take into account index in multi-unit source
9135 After building a library project, delete all temporary files.
9136 (Initialize): Reset current output after parsing project file.
9137 (Collect_Arguments_And_Compile): Never insert in the queue the sources
9138 of library projects that are externally built.
9139 Put file name in error and inform messages if -df is used
9140 (Display): If invoked with -d7, do not display path names, but only
9143 * makeutl.ads (Path_Or_File_Name): New function
9144 (Path_Or_File_Name): New function
9146 2008-04-08 Arnaud Charlet <charlet@adacore.com>
9148 * Make-lang.in: Disable warnings during first stage of bootstrap
9150 Update dependencies.
9152 2008-04-08 Vincent Celier <celier@adacore.com>
9154 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
9155 case to decide if ALI object file is included in library.
9156 (Build_Library): Never attempt to build a library if the project is
9159 2008-04-08 Thomas Quinot <quinot@adacore.com>
9161 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
9162 (No_List) is defined to return Empty.
9164 2008-04-08 Jose Ruiz <ruiz@adacore.com>
9166 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
9169 (Read_Default_Search_Dirs): Do not consider spaces as path separators
9170 because spaces may be part of legal paths.
9172 2008-04-08 Robert Dewar <dewar@adacore.com>
9174 * par-ch11.adb (P_Exception_Handler): Check indentation level for
9177 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9179 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
9180 in a type declaration, if this is not an interface declaration or
9181 private type extension.
9183 2008-04-08 Vincent Celier <celier@adacore.com>
9185 * prj-util.adb (Executable_Of): New String parameter Language. When
9186 Ada_Main is False and Language is not empty, attempt to remove the body
9187 suffix or the spec suffix of the language to get the base of the
9188 executable file name.
9189 (Put): New Boolean parameter Lower_Case, defauilted to False. When
9190 Lower_Case is True, put the value in lower case in the name list.
9191 (Executable_Of): If there is no executable suffix in the configuration,
9192 then do not modify Executable_Extension_On_Target.
9194 * prj-util.ads (Executable_Of): New String parameter Language,
9195 defaulted to the empty string.
9196 (Put): New Boolean parameter Lower_Case, defauilted to False
9198 2008-04-08 Robert Dewar <dewar@adacore.com>
9200 * scng.adb (Scan_Identifier): Handle case of identifier starting with
9201 wide character using UTF-8 encoding.
9203 2008-04-08 Javier Miranda <miranda@adacore.com>
9205 * sem.adb (Analyze): Consider case in which we analyze an empty node
9206 that was generated by a call to a runtime function that is not
9207 available under the configurable runtime.
9209 * sem.ads (Inside_Freezing_Actions): New flag.
9210 (Save_Check_Policy_List): New field in scope stack entry
9212 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9213 Robert Dewar <dewar@adacore.com>
9215 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
9216 the ancestor part of an extension aggregate for a limited type.
9217 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
9218 enumeration index bounds.
9219 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
9220 when array is too short.
9221 (Check_Expr_OK_In_Limited_Aggregate): Move function
9222 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
9224 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
9225 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
9226 component associations.
9227 (Check_Non_Limited_Type): Moved to outer level and renamed.
9228 (Resolve_Record_Aggregate): In an extension aggregate, an association
9229 with a box initialization can only designate a component of the
9230 extension, not a component inherited from the given ancestor
9232 * sem_case.adb: Use new Is_Standard_Character_Type predicate
9234 2008-04-08 Robert Dewar <dewar@adacore.com>
9236 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
9238 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
9239 Properly handle case where Aft > Scale and input number is less than
9242 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9244 * s-stoele.ads, s-soflin.ads: Move the location of
9245 Dummy_Communication_Block from System.Storage_Elements to
9248 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
9249 emulate Communication_Block in certain scenarios.
9251 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9253 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
9255 Add new subtype S_WWC, unchecked conversion routines From_WWC and
9257 (I_WWC, O_WWC): New routines for input and output of
9258 Wide_Wide_Character.
9260 2008-04-08 Robert Dewar <dewar@adacore.com>
9262 * stringt.adb (Write_String_Table_Entry): Handle wide characters
9265 2008-04-08 Robert Dewar <dewar@adacore.com>
9267 * styleg.adb (Check_Comment): Allow special char after -- in
9268 non-end-of-line case
9270 2008-04-08 Robert Dewar <dewar@adacore.com>
9272 * stylesw.adb: Implement -gnaty + - y options
9273 (Set_GNAT_Style_Check_Options): Includ I in style check string
9275 * stylesw.ads: Add comments for new style switch options
9277 2008-04-08 Sergey Rybin <rybin@adacore.com>
9279 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
9280 to the set of the GNAT components needed by ASIS.
9282 2008-04-08 Bob Duff <duff@adacore.com>
9284 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
9286 2008-04-08 Tristan Gingold <gingold@adacore.com>
9288 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
9289 Improve error message generation.
9291 2008-04-08 Vincent Celier <celier@adacore.com>
9293 * a-direct.adb (Start_Search): Check for Name_Error before checking for
9294 Use_Error, as specified in the RM. Check if directory is open and raise
9295 Use_Error if it is not.
9297 2008-04-08 Vincent Celier <celier@adacore.com>
9298 Robert Dewar <dewar@adacore.com>
9300 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
9301 AAMP_On_Target is set.
9303 * vms_data.ads: Add NOxxx to style check switch list
9304 Add entry COMPONENTS for -gnatVe
9305 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
9307 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
9308 Add qualifiers for gnatmetric coupling options
9309 Add note that -gnata enables all checks
9310 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
9311 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
9312 New warning flag -gnatw.e
9314 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
9315 Add entry for -gnatyN (forgotten before)
9316 Line for new warning switch -gnatw.p
9317 New warning flag -gnatw.e
9319 * gnat_ugn.texi: Add documentation fpr project file switch -aP
9320 Document -gnaty - + y
9321 Replace occurences of "package specification" with "package spec"
9322 Define preprocessing symbols in documentation of gnatprep
9323 Clarify reason for distinguishing overflow checking
9324 Add documentation for project-aware tool switches -eL and --subdirs=
9325 Complete list of configuration pragmas
9326 Specify that, even when gnatmake switch -x is used, mains on the command
9327 line need to be sources of project files.
9328 Editing of gnatcheck/gnatmetric doc.
9329 Add documentation for -gnatw.p/-gnatw.P
9330 Add missing documentation for -fno-inline-functions.
9331 Add documentation for -gnatw.e
9333 * gnat_rm.texi: Add documentation for No_Default_Initialization
9334 Replace occurences of "package specification" with "package spec"
9335 Document use of * in Warnings Off string
9336 Update documentation of alignment/component clauses.
9337 Add documentation for Invalid_Value
9338 Document new consistency rule for Optimize_Alignment
9339 Add documentation for Precondition and Postcondition pragmas
9340 Add documentation for Check and Check_Policy pragmas
9341 Document new Enum_Val attribute
9342 Remove requirement for static string in pragma Assert
9343 Add documentation on GNAT.Time_Stamp
9345 * ug_words: add entry for -gnatVe
9346 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
9347 Add entry for -gnatw.e
9349 * debug.adb: Add missing documentation for d.a flag
9350 Document new -gnatd.a switch.
9351 Add documentation for new gnatmake debug switch -df
9353 2008-04-08 Thomas Quinot <quinot@adacore.com>
9355 * gen-soccon.c: Bump year in copyright notices.
9357 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
9359 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9361 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
9364 2008-04-08 Robert Dewar <dewar@adacore.com>
9365 Bob Duff <duff@adacore.com>
9367 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
9368 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
9370 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
9372 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
9374 * g-trasym.ads: Minor comment improvements
9376 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
9378 * a-sequio.ads, a-direio.ads: improve message for tagged type
9380 * a-strunb.ads: Minor reformatting
9382 * a-tifiio.adb: Minor reformatting
9384 * atree.adb (Fix_Parents): Use clearer names for formals
9385 Cleanup and simplify code
9386 Use named notation in calls
9388 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
9391 * uintp.adb: Used named notation for some confusing calls
9393 * bindusg.adb: Minor change in one line of output
9395 * cstand.adb: Minor reformatting of src representation of Standard
9397 * a-assert.ads: Add comment.
9399 * g-decstr.adb: Fix bad indentation
9401 * expander.ads, expander.adb: Code clean up.
9403 * sem_dist.ads: Minor comment improvement
9405 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
9406 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
9408 * i-cstrin.adb: Fix casing error in formal parameter name in call
9410 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9412 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
9413 mentioned in limited_with_clauses to do create semantic dependencies
9414 even though they appear in the ali file.
9416 2008-04-08 Emmanuel Briot <briot@adacore.com>
9418 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
9420 (Get_Configuration): New subprogram.
9422 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
9423 These optional parameters help preserve the casing of the project's name
9424 when pretty-printing.
9426 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
9427 Arnaud Charlet <charlet@adacore.com>
9429 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
9430 then use __gnat_set_exit_status to report the returned status code.
9432 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
9433 messages on .NET, since some constructs of the language are not
9436 * gnatlink.adb (Gnatlink): In case the command line is too long for the
9437 .NET linker, gnatlink now concatenate all .il files and pass this to
9440 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9441 Xavier Grave <grave@ipno.in2p3.fr>
9443 * Makefile.in: Add make ifeq define for mips/mipsel support.
9444 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
9445 system-linux-mips.ads: New files.
9447 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9449 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
9450 detect systems using GNU libc.
9456 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9458 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
9459 constant constant for sysconf call.
9460 (bit_field): New packed boolean type used by cpu_set_t.
9461 (cpu_set_t): New type corresponding to the C type with
9462 the same name. Note that on the Ada side we use a bit
9463 field array for the affinity mask. There is not need
9464 for the C macro for setting individual bit.
9465 (pthread_setaffinity_np): New imported routine.
9466 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
9469 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9471 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
9473 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9475 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
9476 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
9477 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
9478 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
9479 Return by Depressed Stack Pointer.
9481 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
9483 * decl.c (is_variable_size): Do not unconditionally return false
9484 on non-strict alignment platforms.
9486 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
9488 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
9489 used to process all the variants of the specified type.
9490 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
9491 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
9492 (rest_of_type_decl_compilation): Likewise.
9493 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
9495 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9497 * gigi.h (insert_block): Kill.
9498 * utils.c (insert_block): Kill.
9500 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
9502 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
9503 type has self-referential size, get the size from the initializing
9504 expression directly if it is also a constant whose nominal type
9505 has self-referential size.
9507 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9510 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
9513 * env.c: Always include crt_externs.h if __APPLE__ is defined.
9514 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
9516 2008-04-01 Andreas Jaeger <aj@suse.de>
9518 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
9521 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9523 * g-table.adb, g-tasloc.adb, g-traceb.ads,
9524 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
9525 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
9526 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
9527 gnatlink.adb, gnatmem.adb, gprep.adb,
9528 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
9529 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
9530 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
9531 lib-xref.ads, lib.adb, link.c, live.ads,
9532 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
9533 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
9534 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
9535 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
9536 namet.adb, namet.h, nlists.adb, nlists.ads,
9537 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
9538 osint-c.ads, osint.adb, osint.ads, output.ads,
9539 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
9540 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
9541 par-endh.adb, par-labl.adb, par-prag.adb,
9542 par-sync.adb, par-tchk.adb, par-util.adb,
9543 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
9544 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
9545 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
9546 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
9548 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
9550 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
9551 size if it has overflowed.
9553 2008-03-31 Olivier Hainque <hainque@adacore.com>
9554 Eric Botcazou <ebotcazou@adacore.com>
9556 * utils2.c (find_common_type): Document assumption on t1/t2 vs
9557 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
9559 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9561 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
9562 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
9563 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9564 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
9565 exp_tss.ads, exp_util.adb, exp_util.ads,
9566 exp_vfpt.adb, freeze.adb, freeze.ads,
9567 frontend.adb, g-alleve.adb, g-altcon.adb,
9568 g-altive.ads, g-alveop.ads, g-alvevi.ads,
9569 g-arrspl.adb, g-busorg.ads, g-calend.adb,
9570 g-calend.ads, g-casuti.ads, g-cgideb.adb,
9571 g-comlin.adb, g-comlin.ads, g-curexc.ads,
9572 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
9573 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
9574 g-dyntab.adb, g-encstr.ads, g-excact.ads,
9575 g-except.ads, g-expect.ads, g-heasor.adb,
9576 g-hesora.adb, g-hesorg.adb, g-htable.ads,
9577 g-locfil.ads, g-md5.adb, g-md5.ads,
9578 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
9579 g-pehage.adb, g-pehage.ads, g-regexp.adb,
9580 g-regexp.ads, g-regpat.adb, g-regpat.ads,
9581 g-soccon-aix.ads, g-soccon-darwin.ads,
9582 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
9583 g-soccon-hpux.ads, g-soccon-irix.ads,
9584 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
9585 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
9586 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
9587 g-soccon-solaris.ads, g-soccon-tru64.ads,
9588 g-soccon-vms.ads, g-soccon-vxworks.ads,
9589 g-soccon.ads, g-socket.adb, g-socket.ads,
9590 g-socthi-mingw.adb, g-socthi-vms.adb,
9591 g-socthi-vxworks.adb, g-soliop-mingw.ads,
9592 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
9593 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
9596 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
9598 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
9599 if the procedure is imported.
9601 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9603 * adaint.c: Fix warnings.
9605 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9607 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
9609 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9611 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
9612 Fix problem of status check for null file
9614 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9616 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
9617 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
9618 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
9619 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
9620 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
9623 2008-03-26 Thomas Quinot <quinot@adacore.com>
9626 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
9627 Get_Socket_Option): Add support for Receive_Packet_Info.
9629 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
9630 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
9631 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
9632 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
9633 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
9634 new constants SO_REUSEPORT and IP_PKTINFO
9636 2008-03-26 Robert Dewar <dewar@adacore.com>
9638 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
9639 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
9640 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
9641 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
9642 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
9643 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
9644 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
9645 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9646 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
9647 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
9648 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9649 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
9650 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
9651 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
9652 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
9653 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
9654 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
9655 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
9656 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
9657 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
9658 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
9659 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
9660 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
9661 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
9662 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
9663 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
9664 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
9665 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
9666 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
9667 s-tasloc.adb: Minor reformatting.
9669 Remove "used for" sections from comments.
9671 2008-03-26 Robert Dewar <dewar@adacore.com>
9673 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9674 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9675 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9676 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9677 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9678 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9679 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9680 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9681 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9682 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9683 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9684 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9685 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9686 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9687 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
9688 double spaced if it fits on one line and otherwise single spaced.
9690 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9692 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
9693 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
9694 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
9695 or task info if the thread could not be created.
9697 2008-03-26 Arnaud Charlet <charlet@adacore.com>
9699 * gnatvsn.ads (Library_Version): Bump to 4.4.
9700 (Current_Year): Bump to 2008.
9702 2008-03-26 Robert Dewar <dewar@adacore.com>
9704 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
9706 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
9708 * debug.adb: Add debug flags d.r and d.v
9709 Add debug flag .T (Optimize_Alignment (Time))
9710 Add debug flag .S (Optimize_Alignment (Space))
9712 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
9713 depending on setting of relevant debug flags.
9714 Replace use of Warnings_Off by Has_Warnings_Off
9715 (Freeze_Entity): In circuit for warning on suspicious convention
9716 actuals, do not give warning if subprogram has same entity as formal
9717 type, or if subprogram does not come from source.
9718 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
9719 if Optimize_Alignment set to Space.
9721 * frontend.adb: Add call to Sem_Warn.Initialize
9722 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
9723 Reset Optimize_Alignment mode from debug switches .S and .T
9725 * layout.adb (Layout_Composite_Object): Rewritten for
9726 Optimize_Aligment pragma.
9728 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
9731 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
9733 * par-prag.adb (N_Pragma): Chars field removed, use Chars
9734 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
9735 this change. Add entry for pragma Optimize_Alignment
9737 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
9738 (Pragma_Identifier (..
9739 instead, adjustments throughout to accomodate this change.
9740 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
9741 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
9742 Add implementation of pragma Optimize_Alignment
9744 2008-03-26 Vincent Celier <celier@adacore.com>
9746 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
9747 Improve memory usage to avoid use of stack.
9749 2008-03-26 Robert Dewar <dewar@adacore.com>
9751 * a-teioed.ads: Correct value of Default_Fill
9753 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
9755 2008-03-26 Robert Dewar <dewar@adacore.com>
9757 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
9758 with Current_Output (introduce Self).
9760 2008-03-26 Robert Dewar <dewar@adacore.com>
9762 * checks.adb (Ensure_Valid): Capture valid status if possible
9765 2008-03-26 Robert Dewar <dewar@adacore.com>
9767 * stand.ads: Deal with reordering of package standard declarations
9769 * cstand.adb: Put package Standard declarations in proper order
9771 2008-03-26 Robert Dewar <dewar@adacore.com>
9773 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
9774 (Pragma_Identifier (.. instead.
9775 (OK_To_Reorder_Components): New flag
9776 (Has_Entries): Code cleanup.
9777 (Warnings_Off_Used): New flag
9778 (Warnings_Off_Used_Unmodified): New flag
9779 (Warnings_Off_Used_Unreferenced): New flag
9780 (Has_Warnings_Off): New function
9781 (Has_Unmodified): New function
9782 (Has_Unreferenced): New function
9783 (Is_Trivial_Subprogram): New flag
9784 (Is_Static_Dispatch_Table_Entity): New attribute.
9785 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
9786 (more consistent with other similar names)
9787 (Access_Subprogram_Type): New classification function
9789 2008-03-26 Robert Dewar <dewar@adacore.com>
9791 * errout.ads: Document new !! insertion sequence
9793 * errout.adb (N_Pragma): Chars field removed, use Chars
9794 (Pragma_Identifier (.. instead.
9795 Replace use of Warnings_Off by Has_Warnings_Off
9796 (Error_Msg_Internal): Don't delete warning ending in !!
9798 2008-03-26 Robert Dewar <dewar@adacore.com>
9800 * par.adb (Check_No_Right_Paren): Removed no longer used
9802 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
9803 (Pragma_Identifier (.. instead.
9805 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
9807 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
9808 par-ch4.adb: Minor improvements in error recovery and messages.
9810 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
9813 * par-ch9.adb: Minor improvements in error recovery and messages
9814 (P_Protected): Better error recovery for "protected type x;"
9816 * par-util.adb: Minor improvements in error recovery and messages
9817 (Check_No_Right_Paren): Removed no longer used
9819 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9821 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
9822 that the prefix of an attribute is the type of the aggregate being
9825 2008-03-26 Javier Miranda <miranda@adacore.com>
9826 Robert Dewar <dewar@adacore.com>
9828 * exp_attr.adb (N_Pragma): Chars field removed.
9829 (Expand_N_Attribute_Reference): If the designated type associated with
9830 attribute 'Unrestricted_Access is a subprogram entity then replace it
9831 by an E_Subprogram_Type itype.
9832 Implement attribute Old
9834 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
9836 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
9838 New_Internal_Entity by call to Create_Itype to centralize calls
9839 building itypes, ad propagate the convention of the designated
9840 subprogram. In addition, disable the machinery cleaning constant
9841 indications from all entities in current scope when 'Unrestricted_Access
9842 corresponds with a node initializing a dispatch table slot.
9843 (Analyze_Attribute): Parameterless attributes returning a string or a
9844 type will not be called with improper arguments, so we can remove junk
9845 code that was dealing with this case.
9846 Implement attribute Old
9848 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
9849 Add entry for pragma Optimize_Alignment
9850 New standard names Sync and Synchronize
9852 2008-03-26 Robert Dewar <dewar@adacore.com>
9853 Arnaud Charlet <charlet@adacore.com>
9855 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
9857 (No_Exception_Propagation_Active): New function.
9858 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9859 Update comments, and review all uses of No_Exception_Propagation, which
9860 are now correct and in sync with what gigi expects.
9862 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
9864 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9865 Update comments, and review all uses of No_Exception_Propagation, which
9866 are now correct and in sync with what gigi expects.
9868 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9870 * sem_ch3.adb (Access_Definition): If the access type is the return
9871 result of a protected function, create an itype reference for it
9872 because usage will be in an inner scope from the point of declaration.
9873 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
9874 OK_To_Reorder_Components.
9875 (Make_Index): If an overloaded range includes a universal integer
9876 interpretation, resolve to Standard.Integer.
9877 (Analyze_Subtype_Indication): Copy Convention to subtype
9878 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
9879 limited an synchronized progenitors in type declaration and private
9880 extension declarations.
9882 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
9883 protected subprogram body, determine proper scope from subprogram
9886 2008-03-26 Robert Dewar <dewar@adacore.com>
9888 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
9891 2008-03-26 Gary Dismukes <dismukes@adacore.com>
9893 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
9894 of a heap allocator for a limited unconstrained function return when
9895 resstriction No_Allocators is active.
9896 (Analyze_Allocator): The restriction No_Allocators is now only checked
9897 on allocators that have Comes_From_Source set, as per RM-H.4(7).
9899 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
9900 of a heap allocator for a limited unconstrained function return when
9901 resstriction No_Allocators is active.
9902 (Analyze_Allocator): The restriction No_Allocators is now only checked
9903 on allocators that have Comes_From_Source set, as per RM-H.4(7).
9904 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
9905 operands are fixed-point types, the universal_fixed predefined operation
9906 is used, regardless of whether the operand type (s) have a primitive
9907 operation of the same name.
9909 2008-03-26 Javier Miranda <miranda@adacore.com>
9911 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
9912 Is_Static_Dispatch_Table
9913 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
9914 to Exchange_Declarations to exchange the private and full-view. Bug
9915 found working in this issue.
9916 (Expand_Dispatching_Call): Propagate the convention of the subprogram
9917 to the subprogram pointer type.
9918 (Make_Secondary_DT): Replace generation of Prim'Address by
9919 Address (Prim'Unrestricted_Access)
9920 (Make_DT): Replace generation of Prim'Address by
9921 Address (Prim'Unrestricted_Access)
9922 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
9923 simple call form for single entry.
9924 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
9925 tables of predefined primitives).
9926 (Make_Secondary_DT): Add support to handle access to dispatch tables of
9927 predefined primitives.
9928 (Make_Tags): Add entities to Access_Dispatch_Table associated with
9929 access to dispatch tables containing predefined primitives.
9931 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
9932 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
9934 (Register_Predefined_DT_Entry): Updated to handle the new contents
9935 of attribute Access_Disp_Table (pointers to dispatch tables containing
9936 predefined primitives).
9938 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
9940 (Find_Interface_ADT): Updated to skip the new contents of attribute
9941 Access_Dispatch_Table (pointers to dispatch tables containing predefined
9944 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
9946 (Set_Convention): Use new function Is_Access_Subprogram_Type
9947 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
9948 Access_Dispatch_Table (pointers to dispatch tables containing predefined
9951 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
9952 expanded code avoiding calls to Build_Predef_Prims.
9953 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
9954 call to Build_Get_Predefined_Prim_Op_Address.
9956 2008-03-26 Javier Miranda <miranda@adacore.com>
9958 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
9959 subprogram Corresponding_Runtime_Package to know the runtime package
9960 that will provide support to a given protected type.
9962 * exp_ch9.adb (Add_Private_Declarations,
9963 Build_Protected_Subprogram_Call,
9964 Build_Protected_Entry, Build_Simple_Entry_Call,
9965 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9966 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
9967 cleanup using the new centralized subprogram Corresponding_Runtime
9968 Package to know the runtime package that provides support to
9969 a given protected type.
9971 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9973 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
9974 assignment is within the initialization procedure for a packed array,
9975 and Initialize_Scalars is enabled, compile right-hand side with checks
9976 off, because the value is purposely out of range.
9978 2008-03-26 Vincent Celier <celier@adacore.com>
9980 * gnatcmd.adb: Add processing for GNAT SYNC
9982 * vms_conv.ads: (Command_Type): Add command Sync
9984 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
9986 * vms_data.ads: Add entries for -gnatw.w
9987 Add qualifier for gnatstub --header-file option
9988 Add switches for GNAT SYNC
9990 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
9991 (Add_Package_Name): New procedure
9992 (Package_Name_List): New function
9993 (Initialize): Add known package names to the list
9994 (Register_New_Package): Add the new package name to the list
9996 2008-03-26 Robert Dewar <dewar@adacore.com>
9998 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
9999 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
10000 Raise_Exception by "raise with" construct.
10002 2008-03-26 Pascal Obry <obry@adacore.com>
10004 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
10005 supported platforms.
10007 * Makefile.rtl: Add g-sercom.o.
10009 * impunit.adb: Add g-sercom.adb.
10011 * s-crtl.ads (open): New routine.
10015 * s-osinte-mingw.ads (BYTE): New type.
10017 (OVERLAPPED): Likewise.
10018 (GENERIC_READ): New constant.
10019 (GENERIC_WRITE): Likewise.
10020 (OPEN_EXISTING): Likewise.
10021 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
10023 (CreateFile): New routine.
10024 (WriteFile): Likewise.
10025 (ReadFile): Likewise.
10026 (CloseHandle): Move next to the other file oriented routines.
10028 * g-sercom.ads: New unit.
10030 * g-sercom.adb: Default implementation, calls to this unit will raise
10031 a program error exception.
10033 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
10034 GNU/Linux implementations.
10036 2008-03-26 Robert Dewar <dewar@adacore.com>
10038 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
10040 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
10041 unchecked conversion for different conventions only for subprogram
10042 pointers or on VMS.
10044 2008-03-26 Vincent Celier <celier@adacore.com>
10046 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
10047 to check if the specified object file is correct.
10049 2008-03-26 Thomas Quinot <quinot@adacore.com>
10051 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
10052 Comes_From_Source to exclude primitives from being checked. We want to
10053 exclude predefined primitives only, so use the appropriate specific
10054 predicate. Also, flag a formal parameter of an anonymous
10055 access-to-subprogram type as illegal for a primitive operation of a
10056 remote access to class-wide type.
10058 2008-03-26 Vincent Celier <celier@adacore.com>
10060 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
10061 known, check if it may be a missspelling of a known package name. In
10062 not verbose, not mode, issue warnings only if the package name is a
10063 possible misspelling.
10064 In verbose mode, always issue a warning for a not known package name,
10065 plus a warning if the name is a misspelling of a known package name.
10067 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
10068 limited withs or limited withs are parse during one call.
10069 (Parse_Single_Project): Post parse context clause in two passes: non
10070 limited withs before current project and limited withs after current
10073 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
10074 project with the name With_Name, even if it is only extended indirectly.
10075 (Recursive_Process): Process projects in order: first single withs, then
10076 current project, then limited withs.
10078 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
10079 project with the name With_Name, even if it is only extended indirectly.
10081 2008-03-26 Robert Dewar <dewar@adacore.com>
10083 * scn.adb (Initialize_Scanner): Format messages belong on standard error
10085 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10087 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
10088 a generic subprogram that is imported, do not attempt to compile
10091 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
10092 imported, do not generate a raise_program_error for the non-existent
10094 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
10095 perform minimal name resolution on the generic to avoid spurious
10097 (Find_Actual_Type): the designated type of the actual in a child unit
10098 may be declared in a parent unit without being an actual.
10100 2008-03-26 Robert Dewar <dewar@adacore.com>
10102 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
10103 * sinfo.ads, sinfo.adb (From_At_End): New flag
10105 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10107 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
10108 operations that have an interface parameter.
10109 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
10110 Don't treat No_Return call as raise.
10112 * sem_disp.adb (Check_Dispatching_Operations): apply check for
10113 non-primitive interface primitives to access parameters, not to all
10114 parameters of an access type.
10116 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10118 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
10119 declarations of a parent unit are made visible when compiling a child
10120 instance, the parent is not a hidden open scope, even though it may
10121 contain other pending instance.
10123 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
10124 hidden open scope for some child instance, it does affect the
10125 visibility status of other stach entries.
10126 (Analyze_Object_Renaming): Check that a class-wide object cannot be
10127 renamed as an object of a specific type.
10129 2008-03-26 Robert Dewar <dewar@adacore.com>
10131 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
10132 recursion and raise SE directly.
10133 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
10134 set for formal type for IN mode parameter.
10136 2008-03-26 Robert Dewar <dewar@adacore.com>
10138 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
10139 (Initialize): New procedure
10140 (Output_Warnings_Off_Warnings): New procedure
10141 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
10142 (Output_Non_Modifed_In_Out_Warnings): Ditto
10143 (Warn_On_Unreferenced_Entity): Ditto
10145 2008-03-26 Vincent Celier <celier@adacore.com>
10147 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
10150 2008-03-26 Matthew Heaney <heaney@adacore.com>
10152 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
10153 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
10154 Marked with clauses as private, and controlled operations as overriding
10156 2008-03-26 Robert Dewar <dewar@adacore.com>
10158 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
10160 2008-03-26 Robert Dewar <dewar@adacore.com>
10162 * back_end.adb, back_end.ads: Minor reformatting
10164 * bindgen.adb: Minor clarification of comments
10166 * fname.ads: Minor comment fixes
10168 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
10169 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
10171 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
10172 xsnames.adb: Remove warnings off pragma no longer needed
10174 * a-catizo.ads, a-calari.ads, a-calfor.adb,
10175 a-calfor.ads: Fix header.
10177 2008-03-26 Tristan Gingold <gingold@adacore.com>
10179 * init.c: Do not adjust pc for HPARITH on alpha/vms.
10181 2008-03-26 Robert Dewar <dewar@adacore.com>
10183 * lib-xref.adb: (OK_To_Set_Reference): New function
10184 (Generate_Reference): Don't set referenced from occurrence in Warnings,
10185 Unmodified, or Unreferenced pragma
10187 2008-03-26 Robert Dewar <dewar@adacore.com>
10189 * alloc.ads: Add entries for Warnings_Off_Pragmas table
10191 2008-03-26 GNAT Script <nobody@adacore.com>
10193 * Make-lang.in: Makefile automatically updated
10195 2008-03-26 Robert Dewar <dewar@adacore.com>
10197 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
10198 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
10199 removed, use Chars (Pragma_Identifier (.. instead, adjustments
10200 throughout to accomodate this change.
10202 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
10204 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
10205 Einfo.Set_Needs_Debug_Info)
10207 2008-03-26 Robert Dewar <dewar@adacore.com>
10209 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
10210 Add description for the new gnatstub option '--header-file'
10211 clarification of -gnatwz/-gnatwZ
10212 Add a "Irix-Specific Considerations" section to document the need to
10213 set LD_LIBRARY_PATH when using the default shared runtime library.
10214 Added documentation for both gcov and gprof.
10216 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
10217 messages that are not suppressed when clients are compiled.
10218 Add documentation of s-pooglo s-pooloc
10219 Document the new GNAT.Serial_Communications API.
10220 Add documentation for 'Old attribute
10221 Add description of pragma Optimize_Alignment
10223 * ug_words: Add entries for -gnatw.w -gnatw.W
10225 * usage.adb: Add line for -gnatw.w (warn on warnings off)
10227 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
10230 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
10232 * decl.c (maybe_pad_type): Avoid padding an integral type when
10233 bumping its alignment is sufficient.
10235 2008-03-25 Arnaud Charlet <charlet@adacore.com>
10237 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
10238 Fix wrong formatting (lines too long)
10240 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10242 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
10243 a-calend-vms.adb, a-calend.adb, a-calend.ads,
10244 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
10245 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
10246 a-cohama.ads, a-comlin.ads, a-coorse.adb,
10247 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
10248 a-except-2005.ads, a-except.adb, a-except.ads,
10249 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
10250 a-exextr.adb, a-filico.ads, a-finali.ads,
10251 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
10252 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
10253 a-sequio.ads, a-strbou.ads, a-strfix.adb,
10254 checks.adb, exp_ch3.adb, exp_ch4.adb,
10255 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
10256 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
10257 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
10258 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
10259 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
10261 2008-03-24 Robert Dewar <dewar@adacore.com>
10263 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
10264 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
10265 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
10266 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
10267 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
10268 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
10269 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10270 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
10271 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
10272 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
10273 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
10274 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
10275 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
10276 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
10277 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
10278 double spaced if it fits on one line and otherwise single spaced.
10280 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10282 PR documentation/15479
10283 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
10284 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
10285 (doc/gnat_ugn.info): Renamed from ...
10286 (doc/gnat_ugn_unw.info): ... this.
10287 (doc/gnat_ugn.dvi): Renamed from ...
10288 (doc/gnat_ugn_unw.dvi): ... this.
10289 (doc/gnat_ugn.pdf): Renamed from ...
10290 (doc/gnat_ugn_unw.pdf): ... this.
10291 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
10293 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
10294 unconditionally to gnat_ugn.info. Fix cross references to the
10295 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
10296 and GNU make manuals to be proper texinfo links.
10297 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
10299 2008-03-21 Olivier Hainque <hainque@adacore.com>
10301 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
10302 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
10304 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
10306 * trans.c (addressable_p): Add notes on addressability issues.
10308 2008-03-21 Olivier Hainque <hainque@adacore.com>
10309 Ed Schonberg <schonberg@adacore.com>
10311 * trans.c (addressable_p): Accept COND_EXPR when both arms
10313 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
10314 (call_to_gnu): Do not use name reference in the error message
10315 for a misaligned by_reference_parameter. The actual may be a
10316 general expression.
10318 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
10320 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10322 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10324 * gnat_rm.texi (Implementation Defined Characteristics)
10325 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
10327 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
10328 (Switches for gnatchop, Installing a library): Likewise.
10330 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
10332 * trans.c (emit_range_check): Do not emit the check if the base type
10333 of the expression is the type against which its range must be checked.
10335 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10337 * decl.c (maybe_pad_type): Use value_factor_p.
10339 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10341 * lang.opt (nostdlib): Move around.
10342 * misc.c (gnat_handle_option): Fix formatting.
10343 (gnat_dwarf_name): Move around.
10344 * trans.c (Case_Statement_to_gnu): Fix formatting.
10345 (gnat_to_gnu): Likewise.
10346 * utils.c (aggregate_type_contains_array_p): Likewise.
10347 (create_subprog_decl): Likewise.
10349 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10351 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
10352 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
10354 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10356 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
10357 BIGGEST_ALIGNMENT when capping the alignment of records with
10358 strict alignment and size clause.
10360 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10362 * lang-specs.h: Pass -gnatwa if -Wall is passed.
10363 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
10364 and -Wuninitialized.
10365 (gnat_post_options): Clear warn_unused_parameter.
10367 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10369 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
10370 aligned bit-fields, bumping the alignment of the record type if deemed
10372 (value_factor_p): Return false instead of 0.
10374 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10376 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
10377 for scalar types with small alignment.
10379 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10381 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
10382 from that of the front-end's end label.
10383 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
10384 from that of the loop label.
10386 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10388 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
10389 comment for the packed array type case.
10390 * utils.c (build_template): Use a loop to strip padding or
10391 containing records for justified modular types.
10393 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10395 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
10396 large alignments specified for types.
10397 (validate_alignment): Minor cleanup.
10399 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10401 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
10402 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
10403 the component for packing, if possible, as well as if a component
10404 size clause is specified.
10405 <E_Record_Subtype>: For an array type used to implement a packed
10406 array, get the component type from the original array type.
10407 Try to get a smaller form of the component for packing, if possible,
10408 as well as if a component size clause is specified.
10409 (round_up_to_align): New function.
10410 (make_packable_type): Add in_record parameter.
10411 For a padding record, preserve the size. If not in_record and the
10412 size is too large for an integral mode, attempt to shrink the size
10413 by lowering the alignment.
10414 Ditch the padding bits of the last component.
10415 Compute sizes and mode manually, and propagate the RM size.
10416 Return a BLKmode record type if its size has shrunk.
10417 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
10418 Use Original_Array_Type to retrieve the type in case of an error.
10419 Adjust call to make_packable_type.
10420 (gnat_to_gnu_field): Likewise.
10421 (concat_id_with_name): Minor tweak.
10422 * trans.c (larger_record_type_p): New predicate.
10423 (call_to_gnu): Compute the nominal type of the object only if the
10424 parameter is by-reference. Do the conversion actual type -> nominal
10425 type if the nominal type is a larger record.
10426 (gnat_to_gnu): Do not require integral modes on the source type to
10427 avoid the conversion for types with identical names.
10428 (addressable_p): Add gnu_type parameter. If it is specified, do not
10429 return true if the expression is not addressable in gnu_type.
10430 Adjust recursive calls.
10431 * utils.c (finish_record_type): Remove dead code.
10433 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
10436 * decl.c (maybe_pad_type): Avoid padding an integral type when
10437 bumping its alignment is sufficient.
10439 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10441 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
10442 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
10444 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
10445 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
10446 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
10447 code output strings.
10448 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
10449 system-vms_64.ads: Fix typos in ada source code comments.
10450 * sinfo-cn.adb: Remove incomplete sentence.
10452 PR documentation/15479
10453 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
10455 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
10458 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
10460 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
10463 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
10464 that underlying type is present.
10466 2008-02-26 Tom Tromey <tromey@redhat.com>
10468 * misc.c (internal_error_function): Remove test of
10469 USE_MAPPED_LOCATION.
10470 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
10471 (Sloc_to_locus): Remove old location code.
10473 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10475 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
10476 `i.e.' by adding comma or `@:' as appropriate.
10477 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
10478 plain characters `C', use `@samp{C}'.
10479 * gnat_ugn.texi (File Naming Rules, About gnatkr)
10480 (Krunching Method): Likewise.
10482 * gnat_ugn.texi (Conventions): List environment variables and
10483 metasyntactic variables.
10484 (Compiling Programs): Fix notation of metasyntactic variables.
10485 Add @file where appropriate. Use @file for file extensions,
10487 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
10488 instead of @file, @env instead of @code.
10490 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10492 PR documentation/15479
10493 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
10494 and `...' with `@dots{}' or `@enddots{}'.
10496 PR documentation/15479
10497 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
10498 use @command instead of @code, @option instead of @samp or @code,
10499 @code instead of @var, @samp instead of @file.
10501 PR documentation/15479
10502 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
10503 in Makefile rules, by using `&&' rather than `;'.
10505 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10507 PR documentation/15479
10508 * gnat_ugn.texi: In non-code, avoid space before colon.
10509 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
10510 (Examples of gnatxref Usage): Use @command{vi} instead of
10512 (Character Set Control): Do not use @code for UTF-8.
10513 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
10514 use @code for IEEE.
10515 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
10517 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
10519 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
10522 * env.c: Add __rtems__ to if defined.
10523 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
10524 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
10525 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
10526 pragma Convention as required.
10527 * gsocket.h: Make compile in and out of RTS.
10528 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
10529 Use g-soccon-rtems.ads.
10530 * g-soccon-rtems.ads, system-rtems.ads: New files.
10532 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10535 * Make-lang.in (gnat1): Add $(GMPLIBS).
10537 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
10539 * decl.c (components_to_record): Improve comment.
10541 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
10543 * decl.c (components_to_record): Do not reuse the empty union type
10544 if there is a representation clause on the record.
10545 * trans.c (addressable_p): Return true for INTEGER_CST.
10547 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
10549 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
10550 in pointer arithmetics.
10551 * utils2.c (build_allocator): Likewise.
10553 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
10555 * utils.c (build_function_stub): Properly build the call expression.
10557 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
10559 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
10560 before converting the expression to the type of the object.
10561 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
10562 Stabilize constructors for special wrapping types.
10564 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
10566 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
10567 when necessary. Merge some conditional statements. Update comments.
10568 Rename unchecked_convert_p local variable to suppress_type_conversion.
10569 Do not suppress conversions in the In case.
10570 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
10571 into account on non strict-alignment platforms.
10573 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
10575 * utils.c (aggregate_type_contains_array_p): New predicate.
10576 (create_field_decl): In a packed record, force byte alignment
10577 for fields without specified position that contain an array.
10579 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
10581 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
10583 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
10586 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
10588 (bit_field): New packed boolean type used by cpu_set_t.
10589 (cpu_set_t): New type corresponding to the C type with
10590 the same name. Note that on the Ada side we use a bit
10591 field array for the affinity mask. There is not need
10592 for the C macro for setting individual bit.
10593 (pthread_setaffinity_np): New imported routine.
10595 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
10598 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10599 on OpenBSD as is done on other BSD systems.
10602 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
10603 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
10607 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
10611 * init.c (__gnat_error_handler, __gnat_install_handler,
10612 __gnat_init_float): Define for OpenBSD.
10614 * initialize.c (__gnat_initialize): Define for OpenBSD.
10616 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
10619 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10620 instead of mktemp() or tmpnam() on NetBSD.
10622 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
10624 * trans.c (call_to_gnu): Make the temporary for non-addressable
10625 In parameters passed by reference.
10626 (addressable_p): Return true for STRING_CST and CALL_EXPR.
10628 2007-12-19 Robert Dewar <dewar@adacore.com>
10630 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
10631 Add pragma Warnings (Off) for unassigned IN OUT arguments
10633 * sem_warn.adb (Output_Reference): Suppress messages for internal names
10634 (Check_References): Extensive changes to tune up warnings
10635 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
10636 (Has_Pragma_Unmodifed_Check_Spec): New function
10637 (Check_References): Implement pragma Unmodified
10638 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
10640 * par-prag.adb: Dummy entry for pragma Unmodified
10642 * sem_prag.adb: Implement pragma Unmodified
10644 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
10645 (Proc_Next_Component_Or_Discriminant): Fix typo.
10648 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
10650 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
10651 because the former already takes care of discarding the result.
10652 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
10655 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
10657 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
10659 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
10660 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10661 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
10662 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
10663 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10664 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10665 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10666 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10667 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10668 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
10669 (Dynamic_Trampolines_Used): Delete.
10671 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
10672 Turn on stack probing mechanism on LynxOS.
10674 2007-12-19 Bob Duff <duff@adacore.com>
10676 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
10677 the resulting tail recursion by hand. This prevents running out of
10678 memory on deeply nested concatenations, since Field2 is where the left
10679 operand of concatenations is stored.
10680 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
10681 clarify that it can only return OK or Abandon.
10683 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
10684 operand by iteration, in order to avoid running out of memory on
10685 deeply-nested concatenations. Use the Parent pointer to get back up the
10687 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
10688 Resolve_Op_Concat_Rest): New procedures split out of
10689 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
10692 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
10693 Traverse_Func, because the former already takes care of discarding the
10696 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
10697 because the former already takes care of discarding the result.
10698 (Remove_Warning_Messages): Use appropriate subtype for Status and
10701 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10703 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
10704 discriminants forces expansion of the aggregate into assignments.
10705 (Init_Record_Controller): If the type of the aggregate is untagged and
10706 is not inherently limited, the record controller is not limited either.
10708 2007-12-19 Robert Dewar <dewar@adacore.com>
10710 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
10711 handling compile time known size of record or array (case of front end
10712 layout active, e.g. in GNAAMP).
10714 2007-12-19 Javier Miranda <miranda@adacore.com>
10716 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
10717 that forces the construction of static dispatch tables in case of
10720 2007-12-19 Robert Dewar <dewar@adacore.com>
10722 * exp_ch9.adb (Null_Statements): Moved to library level
10723 (Trivial_Accept_OK): New function
10724 (Expand_Accept_Declaration): Use Trivial_Accept_OK
10725 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
10727 2007-12-19 Robert Dewar <dewar@adacore.com>
10729 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
10730 in complex case where array is Volatile.
10732 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10734 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
10735 properly the Ada2005 rules concerning when the current instance of a
10736 record type is aliased.
10738 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10740 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
10741 mangled declaration
10742 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
10744 (P_Variant_Part): Cleaner patch for parenthesized discriminant
10746 2007-12-19 Vincent Celier <celier@adacore.com>
10748 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
10749 package is not known
10751 * prj-attr.ads (Unknown_Package): New constant
10752 Do not crash when an unknown package is in several projects
10754 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
10757 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
10758 existing package Language_Processing.
10760 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10761 Gary Dismukes <dismukes@adacore.com>
10762 Samuel Tardieu <sam@rfc1149.net>
10764 PR ada/15803, ada/15805
10765 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
10766 illegal access subtypes when there is a constrained partial view.
10767 (Check_For_Premature_Usage): New procedure inside
10768 Access_Subprogram_Declaration for checking that an access-to-subprogram
10769 type doesn't reference its own name within any formal parameters or
10770 result type (including within nested anonymous access types).
10771 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
10772 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
10773 context is an access_to_variable, the expression cannot be an
10774 access_to_constant.
10776 2007-12-19 Bob Duff <duff@adacore.com>
10778 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
10779 (Analyze_Concatenation): Use iteration instead of recursion in order
10780 to avoid running out of stack space for deeply nested concatenations.
10782 2007-12-19 Ed Schonberg <schonberg@adacore.com>
10783 Gary Dismukes <dismukes@adacore.com>
10785 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
10786 whose renamed entity is a subprogram that requires overriding.
10787 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
10788 issuing an error for premature usage and issue a message that says
10789 'type' rather than 'object'.
10791 2007-12-19 Gary Dismukes <dismukes@adacore.com>
10794 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
10795 presence of a statically tagged operand (Present (Static_Tag)) with
10796 test for Indeterm_Ancestor_Call when determining whether to propagate
10797 the static tag to tag-indeterminate operands (which forces dispatching
10799 (Check_Controlling_Formals): Ada2005, access parameters can have
10801 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
10802 not insert subprogram in list of primitive operations if already there.
10804 2007-12-19 Tristan Gingold <gingold@adacore.com>
10806 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
10809 2007-12-19 Thomas Quinot <quinot@adacore.com>
10811 Part of PR ada/33688
10812 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
10813 datagram info on Linux.
10815 2007-12-19 Vincent Celier <celier@adacore.com>
10817 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
10818 that the source path name is always found in the dependencies.
10820 2007-12-19 Robert Dewar <dewar@adacore.com>
10822 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
10823 Fix name of Wide_Wide_Latin_1/9 file names
10824 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
10825 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
10826 Add missing documentation for Ada.Command_Line.Response_File
10827 Update list of warning letters for Warnings pragma
10828 Add documentation for pragma Unmodified
10830 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
10832 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
10834 2007-12-17 Arnaud Charlet <charlet@adacore.com>
10836 * s-vxwork-alpha.ads: Removed, no longer used.
10838 2007-12-15 Jakub Jelinek <jakub@redhat.com>
10840 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
10842 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
10845 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
10846 mlib-tgt-specific.adb.
10848 2007-12-13 Bob Duff <duff@adacore.com>
10850 * trans.c (Attribute_to_gnu): Check for violations of the
10851 No_Implicit_Dynamic_Code restriction. This checking used to be done in
10852 the front end, but is moved here so we can make it more accurate.
10854 2007-12-13 Pascal Obry <obry@adacore.com>
10856 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
10857 version is provided for older GNU/Linux distribution not
10858 supporting thread affinity sets.
10860 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
10862 (bit_field): New packed boolean type used by cpu_set_t.
10863 (cpu_set_t): New type corresponding to the C type with
10864 the same name. Note that on the Ada side we use a bit
10865 field array for the affinity mask. There is not need
10866 for the C macro for setting individual bit.
10867 (pthread_setaffinity_np): New imported routine.
10869 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
10871 (Create_Task): Set the processor affinity mask if information
10874 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
10876 2007-12-13 Robert Dewar <dewar@adacore.com>
10878 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10879 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
10880 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
10881 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
10882 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
10883 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
10884 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
10885 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
10886 for subprogram pointers.
10888 * g-ctrl_c.adb: New file.
10890 * g-ctrl_c.ads (Install_Handler): New body.
10892 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
10893 instead of obsolete function Is_Always_Inlined.
10894 (Freeze_Entity): check for tagged type in imported C subprogram
10895 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
10896 (Freeze_Entity): check for convention Ada subprogram pointer in
10897 imported C subprogram.
10898 (Freeze_Fixed_Point_Type): In the case of a base type where the low
10899 bound would be chopped off and go from negative to zero, force
10900 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
10901 bound) so that the size computation for the base type will take
10902 negative values into account.
10904 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
10905 Bob Duff <duff@adacore.com>
10906 Tristan Gingold <gingold@adacore.com>
10908 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10909 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10910 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10911 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10912 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10913 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10914 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10915 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
10916 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10917 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
10918 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
10919 (Always_Compatible_Rep): New flag to control trampolines globally.
10920 (Dynamic_Trampolines_Used): New flag for implementing the
10921 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
10922 and not yet set correctly for some targets).
10924 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
10925 Simply indirectly call s-stchop when a task is created.
10928 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
10929 appears as an argument (entries A) in an ALI file.
10931 * fe.h (Stack_Check_Limits): Declare new target parameter.
10932 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
10934 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
10935 This variable is declared in C to be sure not subject to elaboration
10937 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
10940 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
10941 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
10943 * s-stchop.ads: Add comments.
10945 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
10946 limit method of stack checking.
10948 * s-stchop-limit.ads: New file.
10950 2007-12-13 Robert Dewar <dewar@adacore.com>
10952 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
10953 a-cihama.adb, g-awk.adb,
10954 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
10957 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
10959 * sem.adb: Update handling of assigned value/unreferenced warnings
10961 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
10963 * lib-xref.ads: Improve documentation for k xref type
10966 Update handling of assigned value/unreferenced warnings
10967 (Generate_Reference): Warning for reference to entity for which a
10968 pragma Unreferenced has been given should be unconditional.
10969 If the entity is a discriminal, mark the original
10970 discriminant as referenced.
10972 * sem_warn.ads, sem_warn.adb
10973 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
10974 no entities referenced in package
10975 (Check_One_Unit): Don't give message about no entities referenced in
10976 a package if a pragma Unreferenced has appeared.
10977 Handle new warning flag -gnatw.a/-gnatw.A
10978 Update handling of assigned value/unreferenced warnings
10980 * atree.h: Add flags up to Flag247
10981 (Flag231): New macro.
10983 2007-12-13 Jose Ruiz <ruiz@adacore.com>
10985 * adaint.h: (__gnat_plist_init): Not defined for RTX.
10987 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
10990 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
10991 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
10992 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
10993 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
10996 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
10998 * sysdep.c (winflush_function for RTX): Procedure that does nothing
10999 since we only have problems with Windows 95/98, which are not
11001 (__gnat_ttyname): Return the empty string on Nucleus, just as
11004 2007-12-13 Robert Dewar <dewar@adacore.com>
11006 * a-textio.adb, a-textio.ads:
11007 Extensive changes to private part for wide character encoding
11009 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
11010 (Look_Ahead): Fix mishandling of encoded sequences
11011 Move declaration of Wch_Con to private part (should not be visible)
11013 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
11014 UTF-8. Probably this is never used, but if it is, brackets is
11017 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
11018 setting wide character encoding for no main program case and when
11019 encoding is specified using -W?
11020 Initialize stack limit of environment task if stack limit method of
11021 stack checking is enabled.
11022 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
11023 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
11024 (Get_Main_Unit_Name): New function.
11025 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
11026 (Gen_Output_File): Set Bind_Main_Program to True for .NET
11028 * bindusg.adb: Add line for -Wx switch
11030 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
11032 Add new useful constant WC_Longest_Sequences
11034 * switch-b.adb: Clean up handling of -Wx switch
11035 For -gnatWx, set Wide_Character_Encoding_Method_Specified
11037 * switch-c.adb: -gnatg activates warning on assertion errors
11038 For -gnatWx, set Wide_Character_Encoding_Method_Specified
11040 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
11042 2007-12-13 Robert Dewar <dewar@adacore.com>
11043 Ed Schonberg <schonberg@adacore.com>
11045 * a-ngcoty.adb: New pragma Fast_Math
11047 * opt.adb: New pragma Fast_Math
11050 Add Implemented_By_Entry to the list of pragmas which do not require any
11051 special processing.
11052 (Favor_Top_Level): New pragma.
11053 New pragma Fast_Math
11055 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
11056 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11057 Expand_Allocator_Expression): Take into account VM_Target
11058 (Expand_Attribute, case 'Identity): Handle properly the case where
11059 the prefix is a task interface.
11060 New pragma Fast_Math
11062 * par.adb (Next_Token_Is): New function
11063 (P_Pragma): Add Skipping parameter
11064 (U_Left_Paren): New procedure
11065 (U_Right_Paren): New procedure
11066 New pragma Fast_Math
11068 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
11070 New pragma Fast_Math
11072 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
11073 Implemented_By_Entry.
11074 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
11075 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
11076 items, since it can apply to more than one overloadable entity. Set
11077 new flag Has_Pragma_Inline_Always for Inline_Always case.
11078 (Analyze_Pragma, case Complex_Representation): Improve error message.
11079 (Analyze_Pragma, case Assert): When assertions are disabled build the
11080 rewritten code with Sloc of expression rather than pragma, so new
11081 warning about failing is not deleted.
11082 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
11083 protected types and update error message to reflect that. Test whether
11084 the protected type is allowed for the pragma (an error is issued if the
11085 type has any entries, or components that do not have preelaborable
11087 New pragma Fast_Math
11088 (Analyze_Pragma, case No_Return): Handle generic instance
11090 * snames.h, snames.ads, snames.adb:
11091 Add new predefined name for interface primitive _Disp_Requeue.
11092 New pragma Fast_Math
11094 * a-tags.ads, a-tags.adb: New calling sequence for
11095 String_To_Wide_[Wide_]String
11096 (Secondary_Tag): New subprogram.
11098 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
11100 New calling sequence for String_To_Wide_[Wide_]String
11101 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
11102 the use of the secondary stack for image routines.
11104 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
11105 calling sequence for String_To_Wide_[Wide_]String
11107 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
11109 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
11110 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11112 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
11113 (P_Formal_Part): Use Skipping parameter in P_Pragma call
11114 to improve error recovery
11116 * par-util.adb (Next_Token_Is): New function
11117 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
11119 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
11120 semicolon if missing
11121 (P_Pragma): Implement new Skipping parameter
11122 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11123 Fix location of flag for unrecognized pragma message
11125 * par-tchk.adb (U_Left_Paren): New procedure
11126 (U_Right_Paren): New procedure
11128 2007-12-13 Geert Bosch <bosch@adacore.com>
11131 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
11132 the second or later Scaled_Divide would omit leading zeroes,
11133 resulting in too few digits produced and a Layout_Error as result.
11134 (Put): Initialize Pos.
11136 2007-12-13 Robert Dewar <dewar@adacore.com>
11138 atree.ads, atree.adb (Flag231..Flag247): New functions
11139 (Set_Flag231..Set_Flag247): New procedures
11140 (Basic_Set_Convention): Rename Set_Convention to be
11141 Basic_Set_Convention
11142 (Nkind_In): New functions
11143 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11145 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
11147 of obsolete function Is_Always_Inlined
11148 (Register_Predefined_DT_Entry): Initialize slots of the second
11149 secondary dispatch table.
11150 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11151 (Expand_N_Function_Call): Remove special provision for stack checking.
11153 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
11154 Include _Disp_Requeue in the list of predefined operations.
11155 (Find_Interface_ADT): Modified to fulfill the new specification.
11156 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11158 * par-ch4.adb, nlists.ads, nlists.adb:
11159 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11161 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
11162 Fix location of flag for unrecognized pragma message
11164 * sem_ch7.adb: Use Nkind_In
11166 2007-12-13 Vincent Celier <celier@adacore.com>
11169 Indicate what flags are used by the Project Manager, gprbuild and
11171 (Opt.Follow_Links_For_Dirs): New flag
11172 (Warn_On_Assertion_Failure): New flag
11173 (Wide_Character_Encoding_Method_Specified): New flag
11174 (Suppress_All_Inlining): New switch set by -fno-inline
11175 (Real_VMS_Target): New flag
11176 New pragma Fast_Math
11178 2007-12-13 Robert Dewar <dewar@adacore.com>
11180 * back_end.adb: Recognize -fno-inline
11182 2007-12-13 Robert Dewar <dewar@adacore.com>
11184 * checks.adb: Fix optimization problem with short-circuited form
11186 2007-12-13 Bob Duff <duff@adacore.com>
11188 * clean.adb (Usage): Add line for -aP
11189 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
11190 with a parameter "procedure Usage", instead of passing a pointer to a
11191 procedure. This is to eliminate trampolines (since the Usage procedure
11192 is often nested in a main procedure, and it would be inconvenient to
11195 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
11196 to be generic, with a parameter "procedure Callback (...)", instead of
11197 passing a pointer to a procedure. This is to eliminate trampolines
11198 (since the Callback procedure is usually nested).
11200 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
11201 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
11202 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
11204 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
11205 Use the generic Heap_Sort_G instead of Heap_Sort_A.
11207 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11209 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
11210 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
11211 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
11212 (Renamed_In_Spec): New flag
11213 (Has_Pragma_Inline_Always): New flag
11214 Add missing doc for pragma Obsolescent_Warning
11215 Add missing doc for 17 additional unused flags (230-247)
11216 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
11217 Alphabetize with clauses.
11218 Separate Is_Thunk and Has_Thunks flags
11219 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
11220 (Related_Interface): Renamed to Related_Type.
11221 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
11222 (Set_Is_Flag): Restrict the assertion.
11224 2007-12-13 Vincent Celier <celier@adacore.com>
11226 * errout.adb (Output_Source_Line): Do not keep a trailing space after
11227 the source line number if the source line is empty.
11229 2007-12-13 Geert Bosch <bosch@adacore.com>
11231 * eval_fat.adb (Decompose_Int): Handle argument of zero.
11232 (Compose): Remove special casing of zero.
11233 (Exponent): Likewise.
11234 (Fraction): Likewise.
11235 (Machine): Likewise.
11236 (Decompose): Update comment.
11238 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11240 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
11241 limited ancestor part, initialize controllers of enclosing record
11242 before expanding ancestor aggregate.
11243 (Gen_Assign): If a component of the aggregate is box-initialized, add
11244 code to call Initialize if the component is controlled, and explicit
11245 assignment of null if the component is an access type.
11247 Handle properly aggregates for limited types that appear in object
11248 declarations when the aggregate contains controlled values such as
11250 When expanding limited aggregates into individual components, do not
11251 call Adjust on controlled components that are limited.
11253 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11255 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
11257 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11259 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
11260 predefined primitive _Disp_Requeue.
11261 (Make_Predefined_Primitive_Specs): Create the spec for predefined
11262 primitive _Disp_Requeue.
11263 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
11264 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
11265 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
11266 an interface type. In case of limited interfaces we now declare all the
11267 predefined primitives associated with synchronized interfaces as
11269 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
11271 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
11272 tagged type is an interface type and there is no user-defined equality
11274 Add also bodies of predefined primitives associated with synchronized
11276 (Freeze_Record_Type): Do not build bodies of predefined primitives of
11277 interface types because they are now defined abstract.
11278 Add missing documentation.
11279 (Expand_Record_Controller): Update occurrence of Related_Interface
11281 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
11282 (Expand_N_Object_Declaration): Take into account VM_Target when handling
11283 class wide interface object declaration.
11284 (Expand_Previous_Access_Type): Do not create a duplicate master entity
11285 if the access type already has one.
11286 (Expand_N_Object_Declaration): Defend against attempt to validity check
11287 generic types. Noticed for -gnatVcf specified with previous errors.
11289 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11291 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11292 Expand_Allocator_Expression): Take into account VM_Target
11294 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
11295 secondary stack when VM_Target /= No_VM
11297 2007-12-13 Javier Miranda <miranda@adacore.com>
11298 Ed Schonberg <schonberg@adacore.com>
11300 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
11301 Is_Complation_Unit by Is_Library_Level_Entity in the code
11302 that decides if the static dispatch tables need to be built.
11303 (Wrap_Transient_Declaration): Do not generate a finalization call if
11304 this is a renaming declaration and the renamed object is a component
11305 of a controlled type.
11307 2007-12-13 Gary Dismukes <dismukes@adacore.com>
11309 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
11310 In the case where the renamed subprogram is a dereference, call
11311 Force_Evaluation on the prefix.
11313 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11314 Ed Schonberg <schonberg@adacore.com>
11316 * exp_ch9.adb (Expand_N_Asynchronous_Select,
11317 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
11318 comment reformatting.
11319 (Set_Privals): Inherit aliased flag from formal. From code reading.
11320 (Build_Simple_Entry_Call): Out parameters of an access type are passed
11321 by copy and initialized from the actual. This includes entry parameters.
11322 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
11323 and Ada 2005 models of requeue.
11324 (Null_Statements): Still connsider do-end block null if it contains
11325 Unreferenced and Warnings pragmas.
11326 (Expand_N_Accept_Statement): Do not optimize away null do end if
11327 dispatching policy is other than defaulted.
11328 (Expand_N_Timed_Entry_Call): When the triggering statement is a
11329 dispatching call, manually analyze the delay statement.
11330 (Find_Parameter_Type): Move subprogram to Sem_Util.
11332 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11333 Javier Miranda <miranda@adacore.com>
11335 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
11336 _Disp_Requeue occupies dispatch table slot number 15. Move
11337 _Disp_Timed_Select to slot 16.
11338 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
11339 generate the spec and body of _Disp_Reqeueue.
11340 (Make_DT): Build and initialize the second dispatch table.
11341 Handle initialization of RC_Offset when the parent
11342 is a private type with variable size components.
11343 (Make_Secondary_DT): Complete documentation. Add support to
11344 initialize the second dispatch table.
11345 (Make_Tags): Generate the tag of the second dispatch table.
11346 (Register_Primitive): Add support to register primitives in the
11347 second dispatch table.
11349 2007-12-13 Pascal Obry <obry@adacore.com>
11351 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
11352 Windows. This signal is used by gnatmake to kill child processes for
11355 2007-12-13 Javier Miranda <miranda@adacore.com>
11357 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11358 support for generic dispatching constructor calls in which we need to
11359 locate the tag of a secondary dispatch table associated with an
11360 interface type to properly dispatch the call.
11361 (Expand_N_Attribute_Reference [case Address],
11362 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
11363 handling of VM targets.
11365 2007-12-13 Robert Dewar <dewar@adacore.com>
11366 Ed Schonberg <schonberg@adacore.com>
11368 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
11371 * ug_words: Add entries for -gnatw.a -gnatw.A
11373 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
11374 literal is a subtype with non-static constraints, use the base type of
11375 the context as the base of the string subtype, to prevent type
11376 mismatches in gigi.
11377 (Resolve_Actuals): If the actual is an entity name, generate a
11378 reference before the actual is resolved and expanded, to prevent
11379 spurious warnings on formals of enclosing protected operations.
11380 (Analyze_Overloaded_Selected_Component): If type of prefix if
11381 class-wide, use visible components of base type.
11382 (Resolve_Selected_Component): Ditto.
11383 (Resolve_Short_Circuit): Detect case of pragma Assert argument
11384 evaluating to False, and issue warning message.
11386 * usage.adb: Add lines for -gnatw.a and -gnatw.A
11388 2007-12-13 Emmanuel Briot <briot@adacore.com>
11390 * g-calend.ads (No_Time): New constant, to represent an uninitialized
11393 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
11395 (Month_Name_To_Number): New subprogram
11397 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
11398 letter to upper-case.
11400 2007-12-13 Robert Dewar <dewar@adacore.com>
11401 Ed Schonberg <schonberg@adacore.com>
11403 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
11405 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
11406 context is a limited view, use non-limited view when available. If the
11407 non-limited view is an unconstrained array, this enforces consistency
11408 requirements in 3.10.2 (27).
11409 (Layout_Type): For an access type whose designated type is a limited
11410 view, examine its declaration to determine if it is an unconstrained
11411 array, and size the access type accordingly.
11412 (Layout_Type): Do not force 32-bits for convention c subprogram
11413 pointers in -gnatdm mode, only if real vms target.
11415 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
11416 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11417 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
11418 violations of the No_Implicit_Dynamic_Code restriction.
11419 (Resolve_Attribute, case 'Access): If designated type of context is a
11420 limited view, use non-limited view when available. If the non-limited
11421 view is an unconstrained array, this enforces consistency requirements
11423 (Layout_Type): For an access type whose designated type is a limited
11424 view, examine its declaration to determine if it is an unconstrained
11425 array, and size the access type accordingly.
11427 2007-12-13 Vincent Celier <celier@adacore.com>
11429 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
11430 object directory of main project does not exist.
11431 On VMS, correctly set then environment variable for the source
11434 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
11436 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
11437 set to True this procedure will create the value of type REG_EXPAND_SZ.
11438 It was only possible to create REG_SZ values before.
11440 2007-12-13 Robert Dewar <dewar@adacore.com>
11442 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
11443 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
11444 namet-sp.adb, namet-sp.ads: New files.
11446 * g-speche.adb: Use generic routine in g-spchge
11448 * s-wchcnv.ads, s-wchcnv.adb:
11449 Minor code cleanup (make formal type consistent with spec)
11451 * namet.adb: Update comments.
11453 * par-endh.adb (Evaluate_End_Entry): Use new
11454 Namet.Sp.Is_Bad_Spelling_Of function
11456 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
11458 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
11459 ancestor is an access type initialized with a box, set its type
11460 explicitly, for use in subsequent expansion.
11461 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
11464 2007-12-13 Robert Dewar <dewar@adacore.com>
11466 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
11469 2007-12-13 Robert Dewar <dewar@adacore.com>
11471 * inline.adb (Back_End_Cannot_Inline): Use new flag
11472 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11474 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
11475 Has_Pragma_Inline_Always instead.
11476 of obsolete function Is_Always_Inlined
11477 (Build_Body_To_Inline): Same change
11478 (Cannot_Inline): Same change
11479 Do not give warning on exception raise in No_Return function
11481 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
11482 component has two inconsistent component clauses in the same record
11483 representation clause, favor the message that complains about
11484 duplication rather than inconsistency.
11486 (Record_Representation_Clause): Do not warn on missing component
11487 clauses for inherited components of a type extension.
11488 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
11489 an overloadable item if it is a pragma that can apply to multiple
11490 overloadable entities (e.g. Inline) because a pragma cannot be on
11491 more than one chain at a time.
11492 (Validate_Unchecked_Conversion): Add code to warn on unchecked
11493 conversion where one of the operands is Ada.Calendar.Time.
11494 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
11495 For now, ignore Component_Size clause on VM targets, as done for
11498 2007-12-13 Emmanuel Briot <briot@adacore.com>
11499 Vincent Celier <celier@adacore.com>
11501 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
11503 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
11505 (Hash): Move instantiation of System.HTable.Hash from spec to body
11506 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
11507 systems, since we do not need to recompute the Name_Id for the canonical
11509 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11510 as a parameter. This parameter is in fact always "ada" in all calls, and
11511 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
11512 while loading a project with 40000 files
11514 * prj-attr.adb: Fix name of attribute Dependency_Driver
11515 Change the kind of indexing for attribute Root
11517 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
11518 variables already declared, in case constructions.
11520 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
11521 Current_Object_Path_File to No_Path.
11523 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
11524 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
11526 * prj-makr.adb: new parameter Current_Dir
11528 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
11529 Ada sources when language is not Ada.
11530 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11531 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
11532 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
11533 (Locate_Directory): Always resolve links when computing Canonical_Path
11534 (Look_For_Sources): Make sure that Name_Buffer contains the file name
11535 in Source_Files before checking for the presence of a directory
11537 Optimize calls to Name_Find when on case sensitive systems.
11538 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11540 (Prj.Nmsc.Check): new parameter Current_Dir
11541 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
11542 cannot be empty and the spec suffix cannot be the same as the body or
11544 (Get_Unit): When a file name can be of several unit kinds (spec, body or
11545 subunit), always consider the longest suffix.
11546 (Check_Configuration): Do not issue an error if there is no compiler
11547 for a language. Just issue a warning and ignore the sources for the
11549 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
11551 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
11552 (Unit_Exceptions): New hash table
11553 (Check_Naming_Schemes): Check if a file that could be a unit because of
11554 the naming scheme is not in fact a source because there is an exception
11556 (Look_For_Sources): Put the unit exceptions in hash table
11558 (Get_Unit_Exceptions): Give initial value No_Source to local variable
11559 Other_Part to avoid exception when code is compiled with validity
11561 (Get_Sources_From_File): Check that there is no directory information
11563 (Look_For_Sources): Check that there is no directory information in the
11564 list of file names in Source_Files.
11565 (Look_For_Sources): In multi-language mode, do not allow exception file
11566 names that are excluded.
11567 (Excluded_Sources_Htable): New hash table
11568 (Search_Directories.Check_File): New procedure to simplify
11569 Search_Directories.
11570 (Search_Directories): Do not consider excluded sources
11571 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
11572 Search_Directories.
11573 (Get_Exceptions): Set component Lang_Kind of Source_Data
11574 (Get_Unit_Exceptions): Ditto
11575 (Search_Directories): Ditto
11577 * prj-pars.adb: new parameter Current_Dir
11579 * prj-part.ads, prj-part.adb:
11580 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11581 (Opt.Follow_Links_For_Dirs): New flag
11582 (Project_Path_Name_Of): Cache information returned by this routine as
11583 Locate_Regular_File is a costly routine. The code to output a log
11584 information and the effective call to Locate_Regular_File is now
11585 factorized into a routine (code clean-up).
11586 (Parse, Parse_Single_Project): new parameter Current_Dir
11587 When main project file cannot be found, indicate in the error
11588 message the project path that was used to do the search.
11590 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
11591 (Prj.Proc.Process*): new parameter Current_Dir
11593 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
11595 2007-12-13 Bob Duff <duff@adacore.com>
11597 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
11598 procedure to be called from the back end to check the
11599 No_Implicit_Dynamic_Code restriction.
11601 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11603 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
11604 Fixes another case where RTE_Available_Call was ignored instead of being
11605 taken into account.
11606 (Load_Fail): Ditto.
11608 * rtsfind.ads: Add new entries.
11610 2007-12-13 Robert Dewar <dewar@adacore.com>
11612 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
11613 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
11615 * scn.adb: Implement BOM recognition
11617 2007-12-13 Thomas Quinot <quinot@adacore.com>
11618 Ed Schonberg <schonberg@adacore.com>
11620 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
11621 subprogram body that acts as its own spec may not have a non-private
11622 WITH clause on a private sibling.
11623 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
11624 child unit is a renaming, create an implicit with_clause on that
11625 parent, and not on the unit it renames, to prevent visibility errors
11626 in the current unit.
11628 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11630 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
11631 renaming declaration, use the Slocs of the formal parameters from the
11632 declaration of the formal subprogram when creating the formal parameter
11633 entities in the renaming declaration.
11634 (Analyze_Formal_Type_Declaration): Change the placement of the error
11635 message concerning illegal known discriminants. It is now posted on the
11636 type rather than on the first discriminant. This change ensures early
11638 (Freeze_Subprogram_Body): If the generic subprogram is nested within
11639 the package body that contains the instance, do not generate an
11640 out-of-place freeze node for the enclosing package.
11641 (Collect_Previous_Instantiations): Ignore internal instantiations
11642 generated for formal packages.
11643 (Validate_Derived_Type_Instance): Add a check that when a formal
11644 derived type is Known_To_Have_Preelab_Init then the actual type must
11645 have preelaborable initialization, and issue an error when this
11646 condition is violated.
11648 2007-12-13 Robert Dewar <dewar@adacore.com>
11650 * s-imenne.adb, s-imenne.ads: New files.
11652 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
11653 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
11654 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
11655 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
11656 s-imgwch.ads: New calling sequence for Image routines to avoid sec
11659 2007-12-13 Javier Miranda <miranda@adacore.com>
11660 Ed Schonberg <schonberg@adacore.com>
11662 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
11663 generation of spurious error if parent is an interface type; caused
11664 because predefined primitive bodies will be generated later by
11665 Freeze_Record_Type.
11666 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
11668 (Derive_Subprograms): Handle derivations of predefined primitives
11669 after all the user-defined primitives to ensure that they are
11670 found in proper order in instantiations.
11671 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
11672 of Related_Interface to Related_Type.
11673 (Record_Type_Declaration): Minor reordering of calls to decorate the
11674 Tag component because the entity must have set its Ekind attribute
11675 before setting its Is_Tag attribute.
11676 (Analyze_Subtype_Declaration): In the case of subtypes with
11677 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
11679 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11680 Ed Schonberg <schonberg@adacore.com>
11682 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
11683 statement to the list of contexts where a selected component with a
11684 concurrent tagged type prefix should yield a primitive operation.
11685 (Find_Primitive_Operation): Handle case of class-wide types.
11686 (Analyze_Overloaded_Selected_Component): If type of prefix is
11687 class-wide, use visible components of base type.
11688 (Resolve_Selected_Component): Ditto.
11689 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
11690 formal of a generic subprogram. find candidate interpretations by
11691 scanning the list of generic formal declarations.:
11692 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
11693 type from a limited_with_clause, and the full view is available, use it
11694 for subsequent semantic checks.
11695 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
11696 (Find_Primitive_Operation): New function.
11697 (Analyze_Overloaded_Selected_Component): insert explicit dereference
11698 only once if several interpretations of the prefix yield an access type.
11699 (Try_Object_Operation): Code and comment cleanup.
11700 (Analyze_Selected_Component): Reorder local variables. Minot comment and
11701 code reformatting. When the type of the prefix is tagged concurrent, a
11702 correct interpretation might be available in the primitive and
11703 class-wide operations of the type.
11705 2007-12-13 Robert Dewar <dewar@adacore.com>
11706 Ed Schonberg <schonberg@adacore.com>
11708 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
11709 renaming entry as subprogram using rename-as-body if subprogram spec
11711 (Use_One_Type): The clause is legal on an access type whose designated
11712 type has a limited view.
11713 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11714 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11715 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
11716 operation denoted by a selected component.
11717 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
11718 it can be an expression, possibly overloaded, that returns a task or
11721 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11722 Gary Dismukes <dismukes@adacore.com>
11724 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
11725 requeue statement is dispatching. Do not emit an error when the name is
11726 not an entry and the context is a dispatching select. Add code to
11727 perform subtype conformance between the formals of the current entry
11728 and those of the target interface primitive.
11729 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
11730 Timed_Entry_Call): Analyze the triggering statement as the first step of
11731 the processing. If this is a dispatching select, postpone the analysis
11732 of all select statements until the Expander transforms the select. This
11733 approach avoids generating duplicate identifiers after the Expander has
11734 replicated some of the select statements. In case the Expander is
11735 disabled, perform regular analysis.
11736 (Check_Triggering_Statement): New routine.
11737 (Analyze_Requeue): Exclude any interpretations that are not entries when
11738 checking overloaded names in a requeue. Also test type conformance for
11739 matching interpretations rather than requiring subtype conformance at
11740 that point to conform with the RM's resolution rule for requeues.
11742 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11744 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
11745 inherited operation is a defaulted tag-indeterminate call, and there is
11746 a statically tagged actual, use the static tag as a controlling actual
11747 for the defaulted actual.
11749 2007-12-13 Geert Bosch <bosch@adacore.com>
11751 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
11752 context, so do not call Check_Non_Static_Context.
11754 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11756 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
11757 whether formal E is an entity which may have parameters.
11759 2007-12-13 Bob Duff <duff@adacore.com>
11760 Javier Miranda <miranda@adacore.com>
11761 Robert Dewar <dewar@adacore.com>
11763 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
11764 (Set_Convention): New procedure to set the Convention flag, and in
11765 addition make sure the Favor_Top_Level flag is kept in sync (all
11766 foreign-language conventions require Favor_Top_Level = True).
11767 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
11769 (Collect_Interfaces_Info): Minor update to handle the two secondary
11770 dispatch tables. Update occurrence of Related_Interface to Related_Type.
11771 (Generate_Parent_Ref): Add parameter to specify entity to check
11772 (Is_Preelaborable_Expression): Allow the name of a discriminant to
11773 initialize a component of a type with preelaborable initialization.
11774 This includes the case of a discriminal used in such a context.
11775 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
11776 latest Ada 2005 rules about renaming and 'Access of
11777 discriminant-dependent components.
11778 (Check_Nested_Access): Add handling when there are no enclosing
11779 subprograms (e.g. case of a package body).
11780 (Find_Parameter_Type): Factor routine from several other compiler files.
11781 Remove routine from Find_Overridden_Synchronized_Primitive.
11783 2007-12-13 Thomas Quinot <quinot@adacore.com>
11785 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
11786 an invalid access to an uninitialized slot in the
11787 Source_File_Index_Table.
11789 2007-12-13 Thomas Quinot <quinot@adacore.com>
11791 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
11793 2007-12-13 Bob Duff <duff@adacore.com>
11795 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
11796 access-to-subprogram types in this package.
11798 2007-12-13 Olivier Hainque <hainque@adacore.com>
11800 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
11801 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
11802 Stack_Overlay_Address and document that we are using an internal
11804 (Byte_Size, Unsigned_32_Size): Remove, now useless.
11805 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
11806 consistently throughout the various implementation pieces.
11808 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
11809 overlay we are using to fill the stack area with patterns.
11810 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
11811 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
11812 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
11814 2007-12-13 Robert Dewar <dewar@adacore.com>
11816 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
11818 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11821 (Create_Task): Take into account tasks created by foreign threads.
11822 Code clean up: use constants instead of hard coded values.
11824 2007-12-13 Robert Dewar <dewar@adacore.com>
11826 * styleg.adb (Check_Comment): More liberal rules for comment placement
11828 2007-12-13 Olivier Hainque <hainque@adacore.com>
11830 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
11831 of Procedure Value instead of Frame Pointer as the invocation
11832 identifier associated with the instruction pointer in each traceback
11835 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
11836 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
11837 Pointer as the invocation identifier passed to tbk$symbolize.
11839 * s-traent-vms.ads, s-traent-vms.adb
11840 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
11841 Procedure Value instead of Frame Pointer as the invocation identifier
11842 passed to tbk$symbolize.
11844 2007-12-13 Robert Dewar <dewar@adacore.com>
11846 * tbuild.ads, tbuild.adb:
11847 Fix location of flag for unrecognized pragma message
11849 2007-12-13 Robert Dewar <dewar@adacore.com>
11851 * treepr.ads, treepr.adb: (pl): implement use of positive value
11854 2007-12-13 Robert Dewar <dewar@adacore.com>
11856 * xeinfo.adb: Remove warnings
11857 * xnmake.adb: Remove warnings
11858 * xsinfo.adb: Remove warnings
11859 * xtreeprs.adb: Remove warnings
11860 * xsnames.adb: Remove warnings
11862 * a-ngcoar.adb: Fix typo.
11863 * s-interr.adb: Minor reformatting
11864 * env.c: Minor reformatting.
11865 * g-bytswa.adb: Minor reformatting.
11866 * g-rannum.ads: Minor documentation improvements
11867 * s-tasinf-mingw.adb: Minor header fix
11868 * a-clrefi.adb: Minor reformatting
11869 * g-sttsne.ads: Minor documentation improvement
11870 * g-sttsne-locking.ads: Minor documentation improvement
11871 * g-soliop-solaris.ads: Minor documentation improvement
11872 * g-soliop-mingw.ads: Minor documentation improvement
11873 * g-soliop.ads: Minor documentation improvement
11874 * exp_aggr.ads: Minor reformatting
11875 * debug.adb: Add documentation for the gprbuild debug flags
11876 * exp_ch2.adb: Use Nkind_In to simplify code throughout
11877 * exp_pakd.adb: Minor reformatting
11879 * g-altive.ads, g-alleve.adb: Remove assertions.
11880 Add comment about minor differences between targets regarding
11881 floating-point operations.
11883 * g-thread.adb: Remove pragma unreferenced.
11884 * lib.ads: Minor reformatting
11885 * par-ch9.adb: Minor reformatting of error messages
11886 * sem_case.adb: Minor reformatting
11887 * s-fileio.adb: Minor reformattinng
11888 * s-vmexta.ads: Minor typo
11890 Take into account 'Success' value as per new GNAT warning.
11892 2007-12-13 Vincent Celier <celier@adacore.com>
11894 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
11897 2007-12-13 Robert Dewar <dewar@adacore.com>
11898 Bob Duff <duff@adacore.com>
11900 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
11901 Document that suffixes may be terminations of each others
11902 Add doc for -gnatw.a and -gnatw.A
11903 Document gnatbind -Wx switch
11904 Document BOM recognition
11905 Document pragma Implemented_By_Entry.
11906 Document new units.
11908 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
11909 Add doc for pragma Unreferenced suppressing no entities referenced msg
11910 Add documentation of GNAT.Directory_Operations.Iteration
11911 Add documentation of GNAT.Random_Numbers
11912 Add documentation for pragma Shared.
11913 Correct documentation for Bit_Order
11914 Add documentation for the Pool_Address attribute.
11915 Fix and improve documentation of pragma machine_attribute.
11916 New pragma Fast_Math
11917 Document BOM recognition
11919 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
11920 Add /Wide_Character_Encoding for binder
11921 Add qualifier for the new gnatpp option --no-separate-loop-then
11923 2007-12-13 Matthew Heaney <heaney@adacore.com>
11925 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
11926 which generic formal operations are called for each operation.
11928 2007-12-13 Olivier Hainque <hainque@adacore.com>
11930 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
11931 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
11933 2007-12-13 Emmanuel Briot <briot@adacore.com>
11935 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
11936 Reference_Dir unless we actually need it.
11938 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
11939 Tristan Gingold <gingold@adacore.com>
11941 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
11943 * s-osprim-vms.adb,
11944 a-calend-vms.adb: Remove pragma warning off and add pragma
11947 2007-12-13 Robert Dewar <dewar@adacore.com>
11949 * impunit.adb: Add entries for missing units
11951 * Makefile.rtl: Add new run-time units.
11953 * Make-lang.in: Update dependencies.
11955 2007-12-13 Bob Duff <duff@adacore.com>
11957 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
11958 types, set Can_Use_Internal_Rep appropriately, based on
11959 Always_Compatible_Rep_On_Target.
11961 2007-12-13 Gary Dismukes <dismukes@adacore.com>
11962 Arnaud Charlet <charlet@adacore.com>
11964 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
11965 it to the front end and setting the aamp_target environment variable
11966 to the switch's argument to ensure that gnaampbind and gnaamplink will
11967 take the specified library into account.
11968 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
11969 target, since the CIL compiler supports an "object" file (.il files).
11971 2007-12-13 Vincent Celier <celier@adacore.com>
11973 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
11974 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
11976 2007-12-13 Geert Bosch <bosch@adacore.com>
11978 * s-parame-vxworks.adb:
11979 Update comments to reflect usage of this package by Nucleus.
11981 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11983 * i-vxwork.ads: Kill new warning on Convention C, since changing the
11984 spec would break code.
11986 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
11988 * system-vxworks-alpha.ads: Removed.
11990 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
11992 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
11994 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
11997 * sem_ch3.adb (Designates_T): New function.
11998 (Mentions_T): Factor reusable part of the logic into Designates_T.
11999 Consider non-access parameters and access and non-access result.
12000 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
12001 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
12003 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
12005 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
12008 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
12009 the new implementation of target-specific calls.
12011 2007-12-07 Olivier Hainque <hainque@adacore.com>
12013 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
12014 the designated full view, only follow a second level Full_View link
12015 for Non_Limited_Views of from_limited_with references.
12017 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
12020 * sem_ch6.adb (Process_Formals): Prevent an access type formal
12021 to be initialized with an access to constant object.
12023 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
12024 when an access to constant is used to initialize an access
12028 * a-direct.adb (Compose): Containing_Directory can be an empty string.
12030 2007-12-07 Olivier Hainque <hainque@adacore.com>
12033 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
12034 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
12035 this is from an alignment clause on the GNAT entity.
12036 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
12037 to distinguish the case where we set it from the type's alignment.
12038 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
12039 whether this alignment was set from an explicit alignment clause.
12041 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
12043 * decl.c (make_packable_type): Revert last change.
12044 (gnat_to_gnu_field): Avoid setting size and position multiple times.
12045 * utils.c (finish_record_type): Retrieve the real name of the type.
12047 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
12049 * trans.c (lvalue_required_p): Take base node directly instead
12050 of its parent. Rename second parameter to 'gnu_type'.
12051 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
12052 <N_Slice>: Likewise.
12053 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
12054 Adjust calls to lvalue_required_p.
12056 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
12059 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
12060 parameters of an entry call.
12062 2007-12-03 Robert Dewar <dewar@adacore.com>
12063 Samuel Tardieu <sam@rfc1149.net>
12066 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
12067 of variables declared in a library-level package.
12069 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
12071 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
12072 of Empty_String'Unchecked_Access.
12074 * Makefile.in: Add support for sh4-linux.
12076 * system-linux-sh4.ads: New file.
12078 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
12081 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
12082 and its argument must not be free()ed.
12084 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
12086 * decl.c (make_packable_type): Retrieve the real name of the type.
12087 (maybe_pad_type): Simplify similar code.
12089 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
12092 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
12093 than an identifier is used after "case" in a variant_part.
12096 * par-ch4.adb (Is_Parameterless_Attribute): New map.
12097 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
12098 attribute name or not depending on the new map.
12100 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
12101 returning a string or a type will not be called with improper
12104 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
12106 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
12109 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
12110 Signal an error when attribute argument is a fixed-point value of
12114 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
12115 a derived ordinary fixed point type.
12117 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
12118 RM_Size when a Small clause is found.
12120 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
12123 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
12124 Pass 'false' for the new allocate_struct_function parameter.
12125 * utils.c (build_function_stub): Likewise.
12127 2007-11-25 Richard Guenther <rguenther@suse.de>
12129 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
12130 (gnat_poplevel): Likewise.
12132 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
12134 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
12135 strict alignment, no alignment clause and a known static size, cap
12136 the type alignment to the greatest power of 2 factor of the size.
12137 (gnat_to_gnu_field): If the field has a component clause, is aliased
12138 or of a type with strict alignment, require that its size be equal to
12140 (validate_size): Use the type size as the minimum size for a type with
12143 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
12145 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
12146 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
12147 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
12148 Use 'Access instead of 'Unchecked_Access in second and third
12149 arguments of pthread_sigmask.
12151 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
12153 * decl.c (ceil_alignment): New function.
12154 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
12155 (make_packable_type): Likewise.
12157 2007-11-22 Olivier Hainque <hainque@adacore.com>
12159 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
12160 to fit in 80 columns.
12162 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
12164 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
12165 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
12167 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
12170 * misc.c (gnat_adjust_rli): Delete.
12171 (gnat_init): Do not initialize the translation code here.
12172 Do not call set_lang_adjust_rli.
12173 * trans.c (init_code_table): Make static.
12174 (gnat_init_stmt_group): Delete.
12175 (gigi): Initialize the translation code entirely here.
12176 Emit debug info for the common types here instead of...
12177 * utils.c (gnat_init_decl_processing): ...here.
12178 * gigi.h (init_code_table): Delete.
12179 (gnat_init_stmt_group): Likewise.
12181 2007-11-16 Olivier Hainque <hainque@adacore.com>
12183 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
12184 retrieving an allocator return value from a super-aligned address from
12186 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
12187 expect a super-aligned address for a fat or thin pointer.
12189 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
12191 * trans.c (call_to_gnu): Always set the source location on the call
12192 expression. If the function returns-by-target, also set it on the
12193 address expression.
12195 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
12197 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
12198 sections of non-supported Interix target.
12200 * s-osinte-interix.ads: Removed.
12202 * i-cstrin.ads (chars_ptr): Make it a C convention type.
12204 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
12206 * a-tasatt.adb: Add a comment at the beginning of the package
12207 explaining why in general 'Unchecked_Access must be used instead
12210 * sem_prag.adb (Process_Convention): Move the test for the
12211 entity on which the Convention pragma applies down to also
12212 forbid pragma Convention on enumeration literals reached
12215 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
12217 * a-tasatt.adb: Revert previous change for this file as it will
12218 generate an error when this package is instantiated from a
12221 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
12223 * a-tasatt.adb: Type Wrapper should be declared in comment instead
12224 of already declared type Node_Access.
12225 Use 'Access instead of 'Unchecked_Access when applicable. Local
12226 lifetime is the one of the package.
12227 (Set_Value): W is allocated on the heap.
12229 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
12231 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
12233 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
12236 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
12238 (elaboration code): Timer_Queue lifetime is the one of the
12241 * tracebak.c (i386 alternative): Remove useless comparaison
12242 which is always false; LOWEST_ADDRESS is 0 and is never greater
12243 than an unsigned integer.
12245 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
12246 embedded check for "Ada_Version >= Ada_05".
12248 2007-11-07 Olivier Hainque <hainque@adacore.com>
12250 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
12251 craft and expand comment.
12253 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
12255 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
12257 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
12259 * misc.c (gnat_handle_option): Replace call to abort with
12260 call to gcc_unreachable.
12261 (gnat_init): Likewise.
12262 (gnat_expand_expr): Likewise.
12263 (fp_prec_to_size): Likewise.
12264 (fp_size_to_prec): Likewise.
12266 2007-10-23 Richard Guenther <rguenther@suse.de>
12269 * tracebak.c: #undef abort after including system.h.
12271 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
12273 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
12274 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
12276 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
12278 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
12280 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
12281 Set the protection status of the guard page based on the value of On.
12283 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
12285 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
12286 (Exit_Task): Pass False to Hide_Yellow_Zone.
12288 2007-10-15 Robert Dewar <dewar@adacore.com>
12290 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12291 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
12292 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
12293 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
12294 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
12295 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
12296 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
12297 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
12298 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
12299 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
12300 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
12301 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
12302 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
12303 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
12304 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
12305 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
12306 Minor reformatting.
12307 Add Unreferenced and Warnings (Off) pragmas for cases of
12308 variables modified calls where they are IN OUT or OUT parameters and
12309 the resulting values are not subsequently referenced. In a few cases,
12310 we also remove redundant code found by the new warnings.
12312 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
12313 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
12314 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
12315 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
12316 warning controlled by -gnatw.o that warns on cases of out parameter
12317 values being ignored.
12319 2007-10-15 Geert Bosch <bosch@adacore.com>
12321 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
12323 * expect.c: Initial port to arm-mentor-nucleus.
12324 Use kill for __gnat_kill() on VMS.
12326 2007-10-15 Emmanuel Briot <briot@adacore.com>
12328 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
12330 (Xref_Record): Change type for Line, since in the case of a reference to
12331 a predefined entity (as happens for array index types), the line is set
12333 Add support for parsing multiple array index types info, or
12334 multiple inherited interfaces info. This information cannot be stored
12335 in Xref_Entity_Record, which only supports a single instance of Tref_*,
12336 and is therefore stored in the list of references instead. It has a
12337 special treatement later on in tools that use this information.
12339 2007-10-15 Tristan Gingold <gingold@adacore.com>
12341 * debug.adb: Document use of -gnatd.a and -gnatd.I
12343 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
12345 2007-10-15 Javier Miranda <miranda@adacore.com>
12347 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
12348 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
12349 care of access to class-wide interface types plus removal of bizarre
12350 conversion of tagged object to access type (reported by Gary
12351 Dismukes). After this patch there is no need to perform any
12352 additional management on these nodes in Expand_Interface_Actuals.
12354 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
12355 that handles use of 'Access and 'Unchecked_Access applied to
12356 actuals covering interface types. Such code is now
12357 centralized in Expand_N_Attribute_Reference.
12359 2007-10-15 Ed Schonberg <schonberg@adacore.com>
12361 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
12362 of tagged types whose ultimate ancestor is a CPP type.
12363 (Freeze_Array_Type): For a packed array type, generate an initialization
12364 procedure if the type is public, to handle properly a client that
12365 specifies Normalize_Scalars.
12367 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12369 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
12370 inside a generic body, retrieve the full view of the entry family
12371 discrete subtype if available.
12373 2007-10-15 Thomas Quinot <quinot@adacore.com>
12375 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
12376 attempt to generate stubs for hidden primitive operations.
12378 2007-10-15 Vincent Celier <celier@adacore.com>
12380 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
12381 returning None, used when there is no platform specific body for
12384 2007-10-15 Bob Duff <duff@adacore.com>
12386 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
12387 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
12388 the generic Heap_Sort_G, in order to avoid trampolines.
12390 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
12391 Jose Ruiz <ruiz@adacore.com>
12393 * vx_stack_info.c: New file.
12395 * i-forbla-unimplemented.ads: New file.
12397 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
12398 for unsupported configurations; use it on VMS targets instead of the
12400 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
12401 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
12402 used by VxWorks targets to have access to task-specific data and be
12403 able to extract the stack boundaries for stack checking.
12404 Use system-vms-ia64.ads on ivms.
12406 * Make-lang.in: Update dependencies.
12408 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
12411 2007-10-15 Vincent Celier <celier@adacore.com>
12413 * snames.adb, snames.ads: Add new standard name runtime_library_dir
12415 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
12417 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
12419 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
12420 the source is unknown.
12422 * prj-ext.adb: Spelling error fix
12424 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
12425 95 reserved word in its name.
12426 (Process_Project_Level_Array_Attributes): Process new attribute
12427 Runtime_Library_Dir.
12429 * prj-part.adb (Parse_Single_Project): Do not check the name of the
12430 config project against the user project names.
12432 * prj-proc.adb (Expression): In multi-language mode, indexes that do
12433 not include a dot are always case insensitive.
12434 (Process_Declarative_Items): Ditto
12435 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
12438 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
12439 True, compare both indexes in lower case.
12441 2007-10-15 Robert Dewar <dewar@adacore.com>
12443 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
12445 2007-10-15 Gary Dismukes <dismukes@adacore.com>
12447 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
12448 association for an access component, add an association with null as
12449 the expression. Remove testing for array subtypes and the setting in
12450 that case of Ctyp to the array component type, which prevented proper
12451 inclusion of an association for null-initialized arrays. Collapse
12452 condition that tests for array subtypes into just a test of
12453 Is_Partially_Initialized_Type (which already covers arrays anyway).
12455 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12457 * sem_ch12.adb: Minor code reformatting.
12458 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
12459 find the parent package which may have been hidden by local
12462 2007-10-15 Gary Dismukes <dismukes@adacore.com>
12464 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
12465 flag of derived concurrent types, taking into account the flag setting
12466 on the parent subtype and any new set of discriminants.
12468 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12470 * sem_ch4.adb: Minor code and comment reformatting.
12471 (Analyze_Allocator): When the designated type of an unconstrained
12472 allocator is a record with unknown discriminants or an array with
12473 unknown range bounds, emit a detailed error message depending on the
12474 compilation mode and whether the designated type is limited.
12476 2007-10-15 Tristan Gingold <gingold@adacore.com>
12478 * system-vms-ia64.ads: New file.
12480 * system-vms_64.ads: Minor comment fix.
12482 2007-10-15 Ed Schonberg <schonberg@adacore.com>
12484 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
12485 body generated for a function with a controlling result that is a null
12486 extension, discard the generated body in favor of the current explicit
12489 2007-10-15 Ed Schonberg <schonberg@adacore.com>
12491 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
12492 examining its original form, to handle properly operator calls that
12493 have been rewritten.
12495 2007-10-15 Olivier Hainque <hainque@adacore.com>
12497 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
12498 instead of a procedure value in each traceback entry.
12500 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
12501 instead of procedure value to TBK$SYMBOLIZE.
12503 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
12505 (TB_Entry_For): Account for the PV/FP renaming.
12507 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
12509 (Null_TB_Entry): Account for change of component name.
12510 (PV_For): Rename as FP_For.
12512 2007-10-15 Tristan Gingold <gingold@adacore.com>
12514 * trans.c (gnat_to_gnu): Remove the padding structure more often.
12515 This optimize assignment to over-aligned record.
12517 2007-10-15 Emmanuel Briot <briot@adacore.com>
12519 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
12522 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
12523 type, for dispatching calls.
12525 2007-10-15 Vincent Celier <celier@adacore.com>
12526 Robert Dewar <dewar@adacore.com>
12528 * gnat_ugn.texi: Add documentation for switches --version and --help
12529 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
12530 gnatxref, gnatfind, gnatls, and gnatclean.
12532 Mention attribute Excluded_Source_Dirs
12533 Replace obsolescent attribute Locally_Removed_Files with attribute
12534 Excluded_Source_Files.
12535 Improve documentation of -u (gnatbind)
12536 Document how to do reliable stack checking for the environmental task
12539 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
12540 Document attribute Excluded_Source_Files and indicate that attribute
12541 Locally_Removed_Files is obsolescent.
12543 2007-10-15 Thomas Quinot <quinot@adacore.com>
12545 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
12548 Update documentation to note that OpenVMS 8.3 or later must be used
12549 to generate g-soccon-vms.ads.
12551 * atree.adb: Add ??? comment
12553 * exp_util.adb: Minor reformatting.
12554 Add ??? comment in Kill_Dead_Code.
12556 2007-10-15 Robert Dewar <dewar@adacore.com>
12558 * errout.ads: Comment clarification
12560 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
12561 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
12563 * lib.ads: Comment update
12565 * init.c: Minor reformatting.
12567 * sem_attr.adb: Minor formatting
12569 * osint-b.ads: Minor reformatting
12571 * sem_ch9.adb: Implement -gnatd.I switch
12573 * g-comlin.adb: (Start): Fix handling of empty command line.
12575 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
12576 even when -rules follows the -cargs section.
12578 2007-10-08 Ollie Wild <aaw@google.com>
12580 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
12582 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
12584 (gnat_eh_runtime_type): Removed.
12585 (gnat_return_tree): New function.
12587 2007-10-08 Ben Elliston <bje@au.ibm.com>
12591 2007-08-31 Ben Elliston <bje@au.ibm.com>
12593 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
12594 when compiling for powerpc64-*-linux.
12595 * system-linux-ppc64.ads: New file.
12597 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
12599 Mapped location support
12600 * back_end.adb (Call_Back_End): Pass information about source
12601 files instead of units to gigi.
12602 * gigi.h (struct File_Info_Type): New.
12603 (gigi): Rename and change type of number_units parameter, change
12604 type of file_info_ptr parameter.
12605 * trans.c (number_files): New global variable.
12606 (gigi): Rename and change type of number_units parameter, change
12607 type of file_info_ptr parameter.
12608 If mapped location support is enabled, create the isomorphic mapping
12609 between source files and line maps.
12610 (Sloc_to_locus): If mapped location support is enabled, translate
12611 source location into mapped location.
12612 (annotate_with_node): Rename into set_expr_location_from_node.
12613 Call set_expr_location instead of annotate_with_locus.
12614 (Pragma_to_gnu): Adjust for above change.
12615 (Loop_Statement_to_gnu): Likewise.
12616 (call_to_gnu): Likewise.
12617 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
12618 (gnat_to_gnu): Likewise.
12619 (add_stmt_with_node): Likewise.
12620 (add_cleanup): Likewise.
12621 * utils.c (gnat_init_decl_processing): Do not set input_line.
12623 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12625 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
12626 (Applicable_Use): Emit a warning when a package tries to use itself.
12627 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
12628 is already in use or the package where it is declared is in use or is
12629 declared in the current package.
12630 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
12632 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
12633 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
12634 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
12636 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12638 * a-calend-vms.adb, a-calend.adb:
12639 Add a section on leap seconds control along with two entities used to
12640 enable and disable leap seconds support. The array Leap_Second_Times is
12641 now constant and contains hard time values pre-generated. Remove
12642 all elaboration code used to populate the table of leap seconds.
12645 Add entity Leap_Seconds_Support to the list of global run-time variables
12646 along with a comment on its usage and values.
12647 (Gen_Adainit_Ada): Add code to generate the declaration and import of
12648 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
12649 or one (enabled) depending on the presence of binder switch "-y".
12650 (Gen_Adainit_C): Add code to generate the declaration of external int
12651 __gl_leap_seconds_support. Set is value to zero (disabled) or one
12652 (enabled) depending on the presence of binder switch "-y".
12654 * init.c: Add __gl_leap_seconds_support to the list of global values
12655 computed by the binder.
12657 2007-09-26 Jerome Guitton <guitton@adacore.com>
12659 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
12660 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
12661 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12662 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
12664 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
12666 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
12667 function which can be called by the debugger to interrupt the tasks of
12668 an Ada application asynchronously, as needed on VxWorks.
12669 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
12671 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
12672 renamed from Stop_All_Tasks. Update comments.
12673 (Stop_All_tasks): New function declaration.
12675 2007-09-26 Olivier Hainque <hainque@adacore.com>
12677 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
12678 #include <utime.h> and #define GCC_RESOURCE_H before
12679 #include <sys/wait.h>.
12680 Add more protections in __gnat_translate_vms.
12682 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
12683 #include <sys/wait.h>.
12685 2007-09-26 Thomas Quinot <quinot@adacore.com>
12686 Sergey Rybin <rybin@adacore.com>
12688 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
12690 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12693 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12695 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12698 * sem_dist.ads: Minor comment fix
12700 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12702 2007-09-26 Javier Miranda <miranda@adacore.com>
12703 Eric Botcazou <ebotcazou@adacore.com>
12706 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
12707 indirection added to the HT_Link component of the TSD. This is required
12708 to statically allocate the TSD.
12711 Minor reordering of the declarations in the private part. Required to
12712 add a level of indirection to the contents of the TSD component HT_Link.
12713 This is required to statically allocate the TSD.
12715 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
12716 Is_Statically_Allocated set from constant objects.
12717 Do not make exported constants created by the compiler volatile.
12718 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
12721 * trans.c (Identifier_to_gnu): For constants, unshare initializers
12722 before returning them.
12724 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
12725 public part of the package.
12726 (Make_DT): Move HT_Link component out of the TSD record. For this
12727 purpose Make_DT now declares a separate object that stores the
12728 HT_Link value, and initializes the TSD component with the address
12729 of this new object. The addition of this level of indirection is
12730 required to statically allocate the TSD because the TSD cannot
12731 have variable components.
12732 (Expand_Interface_Conversion): Improve the expanded code.
12733 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
12735 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
12736 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
12737 if we are building static dispatch tables then we must not generate
12738 extra code to register the primitive because the dispatch table will
12739 be built at the end of the library package; otherwise we notify that
12740 we cannot build the static dispatch table.
12742 2007-09-26 Robert Dewar <dewar@adacore.com>
12744 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
12747 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
12748 (Analyze_Record_Representation_Clause): Suppress junk warning for
12749 missing component clause.
12750 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
12751 tests for controlled type overlay to composites with controlled
12753 (Analyze_Record_Representation_Clause): Add reference for component name
12755 2007-09-26 Javier Miranda <miranda@adacore.com>
12756 Gary Dismukes <dismukes@adacore.com>
12758 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
12759 for thunks associated with interface types.
12761 * einfo.ads: Improve documentatation of Is_Internal
12762 (Is_Thunk): New attribute applicable to subprograms. True for thunks
12763 associated with interface types.
12764 Extensive comment fixes regarding flags that appear in all entities. The
12765 documentation is now consistent for all such flags (there were a number
12766 of errors in the documentation in this regard).
12768 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
12770 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
12771 of these procedures are passed a function call that already has
12772 build-in-place actuals (testing new flag
12773 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
12774 the case where processing continues.
12775 (Expand_Call): If the call is generated from a thunk body then we
12776 propagate the extra actuals associated with the accessibility
12777 level of the access type actuals.
12779 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
12780 of each extra formal of a protected operation to reference the
12781 corresponding extra formal of the subprogram denoted by the
12782 operation's Protected_Body_Subprogram.
12784 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
12785 N_Function_Call nodes.
12787 2007-09-26 Robert Dewar <dewar@adacore.com>
12789 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
12791 * debug.adb: Add d.s flag.
12793 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12795 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
12796 debug variable so that it won't be initialized when pragma
12797 Initialize_Scalars is in effect.
12799 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12801 * freeze.adb (Freeze_Entity): Remove check for preelaborable
12802 initialization of a full view. This is moved to
12803 Analyze_Package_Specification.
12805 * sem_ch7.adb (Analyze_Package_Specification): Add check for
12806 preelaborable initialization of a full view in entity loop.
12807 (Uninstall_Declarations): If entity is a use-visible compilation unit,
12808 its child units are use-visible only if they are visible child units.
12810 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
12811 whether an expression can be used within a type declaration that
12812 requires preelaborable init.
12813 (Check_Components): Replace inline code that does partial checking for
12814 preelaborable default expressions with call to
12815 Is_Preelaborable_Expression.
12816 (Has_Preelaborable_Initialization): In the case of a generic actual
12817 subtype, (that is, Is_Generic_Actual is True), return the result of
12818 applying Has_Preelaborable_Initialization to the generic actual's base
12821 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12823 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
12824 call to Jan_1_Day _Of_Week to optimize its performance.
12825 (Is_Leap): Move the routine to the scope of Week_In_Year.
12826 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
12827 weekday on which January 1 falls of Year - 1 and Year + 1. This function
12828 avoids calling Time_Of and Split, thus making it more efficent.
12829 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
12831 * g-calend.ads (Week_In_Year): Change comment to reflect new
12834 2007-09-26 Emmanuel Briot <briot@adacore.com>
12836 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
12837 Command_Line): New types
12838 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
12839 support for defining how switches can be grouped on a command line (as
12840 is the case for -gnatw... for GNAT), and how simple switches can be
12841 used as aliases for more complex switches (-gnatwa is same as
12843 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
12844 (Start, Current_*): New subprograms
12845 Added support for parsing an array of strings in addition to the real
12847 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
12848 be moved from the body to the private part of the spec.
12849 (*): All subprograms now have an extra parameter with default value to
12850 specify which parser should be used. For backward compatibility, it
12851 defaults to parsing the command line of the application. They were also
12852 modified to properly handle cases where each of the argument does not
12853 start at index 1 (which is always true for Ada.Command_Line, but not
12854 when processing any Argument_List).
12855 (Free): New subprogram
12856 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
12857 Argument): New subprograms
12858 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
12859 special characters like ':', '=',... are now handled in a single place,
12860 which makes the code more extensible eventually.
12861 (Getopt, Full_Switch): When the switch was returned as part of the
12862 special character '*', make sure it is prepended by the switch character
12863 ('-' in general), so that the application knows whether "foo" or "-foo"
12864 was specified on the command line.
12866 2007-09-26 Florian Villoing <villoing@adacore.com>
12868 * g-dirope.adb (Remove_Dir): In case we are removing directories
12869 recursively, make sure that if an exception is raised during the
12870 processing, the current working directory is reset to its initial
12871 value before propagating the exception.
12873 2007-09-26 Vincent Celier <celier@adacore.com>
12875 * gnatbind.adb: If there are several ALI files specified and there is
12876 a main program to bind, the first ALI is expected to contain the main
12877 subprogram and the names of the binder generated files will be derived
12878 from the first ALI file name.
12879 (Gnatbind): Fix insertion character in invocation of Error_Msg
12881 2007-09-26 Vincent Celier <celier@adacore.com>
12883 * gnatcmd.adb (Check_Files): Do not include sources that have been
12884 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
12886 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12888 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
12889 information about each of its index types, following the type
12890 reference for its component type.
12892 2007-09-26 Vincent Celier <celier@adacore.com>
12894 * make.adb: (Kill): New procedure (__gnat_kill imported)
12895 (Running_Compile, Outstanding_Compiles): Global variables that
12896 were previously local to procedure Compile_Sources.
12897 (Sigint_Intercepted): Send signal SIGINT to all outstanding
12898 compilation processes.
12900 (Gnatmake): If project files are used, create the mapping of all the
12901 sources, so that the correct paths will be found.
12903 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
12905 2007-09-26 Vincent Celier <celier@adacore.com>
12907 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
12909 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
12910 Replace components Compiler_Min_Options and Binder_Min_Options with
12911 Compiler_Required_Switches and Binder_Required_Switches in record
12913 Remove components Default_Language and Config in Project_Tree_Data,
12916 * prj-attr.adb: New attributes Required_Switches (<language>) in
12917 packages Compiler and Binder.
12919 * prj-nmsc.adb: Major rewrite of the processing of configuration
12920 attributes for gprbuild. No impact on GNAT tools.
12922 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
12923 process configuration attributes: this is done in Prj.Nmsc.Check.
12924 (Recursive_Process): Make a full copy of packages inherited from project
12925 being extended, instead of a shallow copy.
12926 (Process_Project_Tree_Phase_1): New procedure
12927 (Process_Project_Tree_Phase_1): New procedure
12928 (Process): Implementation now uses the two new procedures
12930 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
12931 from the project config, not the tree config that no longer exists.
12933 2007-09-26 Vincent Celier <celier@adacore.com>
12935 * Make-lang.in: Update dependencies..
12937 2007-09-26 Vincent Celier <celier@adacore.com>
12939 * osint.adb, osint.ads: Minor reformatting
12941 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
12943 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12945 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
12946 message to cite use of <> in aggregate component associations rather
12947 than wrongly indicating use of limited aggregates.
12949 2007-09-26 Robert Dewar <dewar@adacore.com>
12951 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
12954 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12956 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
12957 ancestor of the derived type, the operations are inherited from the
12958 primary dispatch table of the parent.
12959 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
12960 when the context is an explicit type conversion.
12962 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12964 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
12965 rule for qualified expressions properly, to detect improper conversions
12966 and resolve some cases of overloading.
12968 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12970 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
12971 proper kind of reference to the primitive operation, for better source
12973 (Valid_Conversion): A tagged conversion is legal if both operands are
12976 2007-09-26 Robert Dewar <dewar@adacore.com>
12978 * sem_warn.adb (Check_References): Catch more cases of unreferenced
12981 2007-09-26 Vincent Celier <celier@adacore.com>
12983 * snames.adb, snames.ads: Change Include_Option to Include_Switches
12985 2007-09-26 Robert Dewar <dewar@adacore.com>
12987 * s-wchstw.adb: provide messages for run time unit exceptions
12989 * a-witeio.adb: Minor reformatting
12991 * exp_ch13.adb: Minor reformatting
12993 2007-09-26 Sergey Rybin <rybin@adacore.com>
12995 * vms_data.ads: Revise gnatmetric qualifiers.
12996 Add qualified for the new gnatbind option '-y'
12998 * gnat_ugn.texi: Revise the gnatmetric section.
12999 Add entry for new gnatbind option '-y'.
13001 * gnat_rm.texi: Minor spelling correction.
13002 Document restriction on overlaying controlled types
13004 2007-09-26 Vincent Celier <celier@adacore.com>
13006 * makegpr.adb (Link_Executables): Do not fail when the root project has
13007 no sources, but is an extending project.
13009 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
13011 * trans.c: Fix misplaced #define.
13013 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
13015 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
13016 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
13018 2007-09-21 Olivier Hainque <hainque@adacore.com>
13020 * utils.c (type_for_nonaliased_component_p): Return false for
13021 all AGGREGATE_TYPEs.
13023 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
13025 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
13026 object covered by 13.3(19) volatile.
13028 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
13032 * utils.c (unchecked_convert): Use a subtype as the intermediate type
13033 in the special VIEW_CONVERT_EXPR case.
13035 2007-09-12 Robert Dewar <dewar@adacore.com>
13037 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
13039 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
13040 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
13041 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
13042 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
13043 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
13044 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
13045 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
13046 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
13047 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
13048 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
13049 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
13050 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
13051 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
13052 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
13053 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
13054 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
13055 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
13056 pragma Compiler_Unit and adds it to relevant library units.
13058 2007-09-12 Ed Schonberg <schonberg@adacore.com>
13060 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
13061 a box need not correspond to any component.
13063 2007-09-12 Robert Dewar <dewar@adacore.com>
13065 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
13066 the tasking version of the Ada run time when foreign threads are
13067 present and there are no explicit Ada tasks or tasking constructs.
13069 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
13071 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
13073 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
13074 the usage of switch -y.
13076 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
13077 when switch -y is present.
13079 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
13080 leap seconds in Ada.Calendar and its children.
13082 2007-09-12 Jose Ruiz <ruiz@adacore.com>
13084 * a-extiti.ads (Timer): The discriminant is a "not null access
13085 constant" in the Reference Manual.
13086 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
13088 2007-09-12 Robert Dewar <dewar@adacore.com>
13090 * a-swuwha.adb: Remove junk RM header
13092 2007-09-12 Vincent Celier <celier@adacore.com>
13094 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
13097 * g-bytswa.ads: Minor reformatting
13099 2007-09-12 Thomas Quinot <quinot@adacore.com>
13101 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
13102 Add new constant Thread_Blocking_IO, always True by default, set False
13103 on a per-runtime basis.
13104 (Need_Netdb_Buffer): New constant.
13106 2007-09-12 Arnaud Charlet <charlet@adacore.com>
13108 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
13109 Added renames for corresponding functions in System.Partition_Interface.
13111 2007-09-12 Doug Rupp <rupp@adacore.com>
13113 * Makefile.in: Remove VMS specific System.CRTL packages which are no
13116 * s-crtl-vms64.ads: Removed.
13118 2007-09-12 Olivier Hainque <hainque@adacore.com>
13120 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
13121 with discriminant constraints, generalize the code for BIT_FIELDs
13122 to PACKED fields of constant size and propagate DECL_PACKED.
13124 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
13126 * decl.c (array_type_has_nonaliased_component): New predicate.
13127 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
13128 set the TYPE_NONALIASED_COMPONENT flag on the type.
13129 <E_Array_Subtype>: Likewise.
13130 * gigi.h (type_for_nonaliased_component_p): Declare.
13131 * utils.c (type_for_nonaliased_component_p): New predicate.
13132 (create_field_decl): Invoke the above predicate to set the
13133 DECL_NONADDRESSABLE_P flag on the field.
13135 2007-09-11 Javier Miranda <miranda@adacore.com>
13137 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
13138 in library level record type entities if we are generating statically
13139 allocated dispatch tables.
13141 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
13142 importing/exporting the _tag declaration by new code
13143 importing/exporting the dispatch table wrapper. This change allows us
13144 to statically allocate of the TSD.
13145 (Make_DT.Export_DT): New procedure.
13146 (Build_Static_DT): New function.
13147 (Has_DT): New function.
13149 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
13150 True_Constant and Current_Value. Required to statically
13151 allocate the dispatch tables.
13152 (Check_Allocator): Make function iterative instead of recursive.
13153 Also return inner allocator node, when present, so that we do not have
13154 to look for that node again in the caller.
13156 2007-09-11 Jan Hubicka <jh@suse.cz>
13158 * misc.c (gnat_expand_body): Kill.
13159 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
13161 2007-09-10 Robert Dewar <dewar@adacore.com>
13163 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
13164 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13165 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13166 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
13167 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
13168 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
13169 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
13170 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
13171 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
13172 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
13173 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
13174 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
13175 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
13176 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
13177 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
13178 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
13179 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
13180 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
13181 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
13182 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
13183 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
13184 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
13185 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
13186 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
13187 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
13188 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
13189 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
13190 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
13191 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
13192 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
13193 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
13194 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
13195 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
13196 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
13197 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
13198 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
13199 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
13200 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
13201 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
13202 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
13203 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
13204 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
13205 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
13206 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
13207 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
13208 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
13209 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
13210 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
13211 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
13212 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
13213 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
13214 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
13215 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
13216 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
13217 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
13218 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
13219 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
13220 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13221 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
13222 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
13223 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
13224 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13225 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
13226 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
13227 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
13228 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
13229 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
13230 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
13231 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
13232 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
13233 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
13234 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
13235 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
13236 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
13237 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
13238 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
13239 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
13240 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
13241 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
13242 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
13243 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
13244 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
13245 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
13247 2007-09-10 Emmanuel Briot <briot@adacore.com>
13249 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
13252 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
13254 * adaint.c (__gnat_translate_vms): new function.
13256 2007-09-10 Gary Dismukes <dismukes@adacore.com>
13257 Thomas Quinot <quinot@adacore.com>
13259 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
13260 create an abstract subprogram in the case of 'Input. For 'Output we now
13261 create a real spec/body when the type is abstract, since it can
13262 potentially be called.
13263 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
13264 body for 'Output when the type is abstract (only the creation of the
13265 body for 'Input is excluded when the type is abstract).
13266 (Stream_Operation_OK): Add an additional condition in the return
13267 statement, so that False will be returned for TTS_Stream_Input if the
13268 associated tagged type is an abstract extension. Add comments for
13270 (Expand_N_Object_Declaration): For the case of a shared passive
13271 variable, insert init proc call only after the shared variable
13272 procedures have been processed, because the IP call needs to undergo
13273 shared passive variable reference expansion, which requires these
13274 procedures to be available (and elaborated).
13276 2007-09-10 Vincent Celier <celier@adacore.com>
13278 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
13279 parameter Runtime_Project.
13281 2007-09-10 Ed Schonberg <schonberg@adacore.com>
13283 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
13284 given a box association, the type of the component is discriminated,
13285 and the value of the discriminant is the discriminant of the enclosing
13286 type, retrieve its value from the aggregate itself, where it must have
13289 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
13290 to remove other spurious ambiguities on arithmetic operations involving
13291 literals and addresses, on systems where Address is a visible integer
13292 type, when the operator is called in functional notation.
13293 (Try_Primitive_Operation): Within an instance, a call in prefixed form
13294 is legal when the types match, even if the operation is currently
13297 2007-09-10 Ed Schonberg <schonberg@adacore.com>
13299 * sem_ch12.adb (Build_Local_Package): A formal package with no
13300 associations is legal if all formals have defaults. It is not
13301 equivalent to a formal declared with a box.
13303 2007-09-10 Sergey Rybin <rybin@adacore.com>
13305 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
13307 2007-09-10 Sergey Rybin <rybin@adacore.com>
13309 * gnat_ugn.texi: Add description of the new '-lratio' option
13310 Update 7.3.1 section about availability of the feature.
13312 2007-09-10 Thomas Quinot <quinot@adacore.com>
13314 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
13317 2007-09-10 Olivier Hainque <hainque@adacore.com>
13319 * Makefile.in: (mips-irix section): Activate build of libgmem.
13321 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13323 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
13326 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13328 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
13329 a debug renaming declaration specially.
13331 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13333 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
13334 which a constant renaming is treated as a normal object declaration.
13335 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
13336 the N_Indexed_Component case.
13337 <N_Indexed_Component>: Fall through to above case.
13338 <N_Object_Renaming_Declaration>: Return true for all composite types.
13340 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13342 * decl.c (make_packable_type): If the new type has been given BLKmode,
13343 try again to get an integral mode for it.
13345 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
13347 Re-apply accidentally reverted change:
13349 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13351 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13352 get_action_description_for): Replace _Unwind_Word with _uleb128_t
13353 and _Unwind_SWord with _sleb128_t.
13355 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
13357 * trans.c (convert_with_check): Update call to real_2expN.
13359 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
13361 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
13362 * utils.c (end_subprog_body): Likewise.
13364 2007-09-03 Nick Clifton <nickc@redhat.com>
13366 * Make-lang.in: Change copyright header to refer to version 3 of
13367 the GNU General Public License and to point readers at the
13368 COPYING3 file and the FSF's license web page.
13369 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
13370 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
13371 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
13372 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
13375 2007-08-31 Vincent Celier <celier@adacore.com>
13379 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
13380 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
13381 (Check_Version_And_Help): New procedure in package Switch to process
13382 switches --version and --help.
13383 Use Check_Version_And_Help in GNAT tools
13386 (Compile_Sources): Make sure that sources that are "excluded" are not
13388 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
13389 project file is used.
13390 (Version_Switch): Remove, moved to Switch
13391 (Help_Switch): Remove, moved to Switch
13392 (Display_Version): Remove, moved to Switch
13394 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
13395 package Switch to process switches --version and --help.
13396 (Display_Version): New procedure
13398 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
13400 2007-08-31 Javier Miranda <miranda@adacore.com>
13402 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
13405 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13407 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
13408 (Mark_Non_Null): If the node for which we just generated an access check
13409 is a reference to an *in* parameter and the reference appears in the
13410 declarative part of a subprogram body, mark the node as known non null.
13412 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13414 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
13415 structure of E_Exception to reflect the new flag.
13416 (Is_Raised, Set_Is_Raised): New inlined routines.
13417 Update the usage of available flag to reflect the addition of Is_Raised.
13418 (Is_Raised, Set_Is_Raised): Bodies of new routines.
13419 (Write_Entity_Flags): Write the status of flag Is_Raised.
13420 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
13421 spurious ambiguities when integer literals appear in the context of an
13422 address type that is a visible integer type.
13424 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
13425 exceptions never being raised.
13426 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
13429 2007-08-31 Javier Miranda <miranda@adacore.com>
13431 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
13432 statement when compiling under restriction No_Exceptions_Proparation.
13434 2007-08-31 Ed Schonberg <schonberg@adacore.com>
13436 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
13437 initialization aggregate for the type, generate itype references for
13438 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
13440 2007-08-31 Gary Dismukes <dismukes@adacore.com>
13442 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
13443 library-level package renaming, pass the declaration associated with
13444 the renaming's special debug variable to Qualify_Entity_Names to ensure
13445 that its encoded name is properly qualified.
13447 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
13448 occurring in the list of entities to qualify, and do not attempt to
13449 traverse an entity list in that case. Variables associated with
13450 ` library-level package renamings can now occur in the table.
13452 * exp_dbug.ads: Revise documentation of the encoding for renaming
13455 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13457 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
13458 access type points to an unconstrained array.
13460 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13462 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
13465 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
13466 simple redundant qualifications. The check is performed whenever the
13467 expression is a non-overloaded identifier.
13468 (Resolve_Type_Conversion): Enchance the redundant type conversion check
13469 to include loop parameters.
13470 (Valid_Conversion): Avoid generation of spurious error message.
13472 2007-08-31 Bob Duff <duff@adacore.com>
13474 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
13475 concatenations of string literals into a single literal, in order to
13476 avoid very deep recursion in the front end, which was causing stack
13479 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
13480 string, and the right operand is a string literal (the case of "" &
13481 "..."), optimize by avoiding copying the right operand -- just use the
13482 value of the right operand directly.
13484 * stringt.adb (Store_String_Chars): Optimize by growing the
13485 String_Chars table all at once, rather than appending characters one by
13487 (Write_String_Table_Entry): If the string to be printed is very long,
13488 just print the first few characters, followed by the length. Otherwise,
13489 doing "pn(n)" in the debugger can take an extremely long time.
13491 * sem_prag.adb (Process_Interface_Name): Replace loop doing
13492 Store_String_Char with Store_String_Chars.
13494 2007-08-31 Vincent Celier <celier@adacore.com>
13496 * prj-attr.adb: Add new attribute Excluded_Source_Files
13498 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
13499 Locally_Removed_Files.
13501 * snames.ads, snames.adb: New standard name Excluded_Source_Files
13503 2007-08-31 Ed Schonberg <schonberg@adacore.com>
13505 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
13506 clauses of subunits, ignore limited_with_clauses that are illegal and
13507 have not been fully analyzed.
13509 2007-08-31 Ed Schonberg <schonberg@adacore.com>
13511 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
13512 flag, for effiency. It is called when analyzing arithmetic operators
13513 and also for actuals in calls that are universal_integers. The flag is
13514 set for the predefined type address, and for any type or subtype
13517 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
13518 Universal_Integer, when the formal is a descendent of address and the
13519 call appears in user code.
13520 (Analyze_Selected_Component): if the prefix is a private extension, the
13521 tag component is visible.
13523 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
13526 2007-08-31 Robert Dewar <dewar@adacore.com>
13528 * s-fileio.adb (Open): Normalize file name to lower case in non-case
13529 sensitive file name systems to avoid unexpected mismatch in Vista.
13531 2007-08-31 Vincent Celier <celier@adacore.com>
13533 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
13535 2007-08-31 Vincent Celier <celier@adacore.com>
13537 * symbols-vms.adb (Initialize): Read symbol files with continuation
13539 (Finalize): If symbol is long, split the line
13541 2007-08-31 Vincent Celier <celier@adacore.com>
13543 * fmap.ads: Minor comment updates
13545 2007-08-31 GNAT Script <nobody@adacore.com>
13547 * Make-lang.in: Makefile automatically updated
13549 2007-08-31 Bob Duff <duff@adacore.com>
13551 * sinfo.ads: Minor comment fix.
13553 2007-08-31 Thomas Quinot <quinot@adacore.com>
13555 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
13556 with implementation.
13557 Documentation cleanup only.
13559 2007-08-31 Sergey Rybin <rybin@adacore.com>
13561 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
13562 gnatpp '--separate-stmt-name' option.
13563 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
13566 * gnat_ugn.texi: Add description for the new gnatpp
13567 '--separate-stmt-name' and '--use-on-new-line' options.
13569 2007-08-31 Ben Elliston <bje@au.ibm.com>
13571 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
13572 when compiling for powerpc64-*-linux.
13573 * system-linux-ppc64.ads: New file.
13575 2007-08-22 Krister Walfridsson <cato@df.lth.se>
13577 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
13580 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13582 * misc.c (gnat_type_max_size): Constify.
13584 2007-08-16 Gary Dismukes <dismukes@adacore.com>
13586 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
13587 associated with Standard_Debug_Renaming_Type, to be used as the type of
13588 the special variables whose names provide debugger encodings for
13589 renaming declarations.
13591 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
13592 (Set_Debug_Renaming_Link): Change to set Node25.
13593 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
13594 (Write_Field25_Name): Add case for E_Variable to output
13595 "Debug_Renaming_Link".
13596 (Write_Field23_Name): Correct the output string for "Limited_View".
13598 * exp_dbug.adb: Add with and use of Tbuild.
13599 (Debug_Renaming_Declaration): Replace creation of an enumeration type
13600 and literal with creation of a variable of type
13601 Standard_Debug_Renaming_Type whose name encodes both the renamed object
13602 and the entity of the renaming declaration.
13603 (Qualify_Entity_Name): Add the delayed qualification of the entity name
13604 part of the name of a variable that has a Debug_Renaming_Link.
13606 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
13607 special type to be associated with variables that provide debugger
13608 encodings for renaming declarations.
13610 2007-08-16 Gary Dismukes <dismukes@adacore.com>
13611 Ed Schonberg <schonberg@adacore.com>
13612 Javier Miranda <miranda@adacore.com>
13614 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
13615 ancestor part given by an aggregate to test for an unchecked conversion,
13616 since this can occur in some cases when the ancestor part is a function
13617 call, and we don't want to fall into the recursive call to this
13618 procedure in that case.
13620 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
13621 stream attributes on limited types to account for user-specified
13622 attributes as well as whether Input (resp. Output) becomes available
13623 due to Read (resp. Write) being available for the type. Change Boolean
13624 variable to the more accurate name
13625 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
13626 double-"not" predicate at beginning of return statement to more
13627 understandable form.
13629 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
13630 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
13631 in a block statement and use that as the first statement of the
13632 expanded return rather than incorrectly using the handled sequence as
13633 the first statement.
13635 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
13636 operation, generate an explicit freeze node for it rather than
13637 generating extra formals, to ensure that gigi has the proper order of
13638 elaboration for anonymous subtypes in the signature of the subprograms.
13639 (Build_In_Place_Formal): Move assertion to beginning of loop.
13640 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
13641 applied to a function call (occurs for some cases of 'Input).
13642 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
13643 applied to a function call (occurs for some cases of 'Input).
13645 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
13646 2005, generate an extended return statement enclosing the result object
13649 * freeze.adb (Freeze_Record_Type): Extend the current management of
13650 components that are access type with an allocator as default value: add
13651 missing support to the use of qualified expressions of the
13652 allocator (which also cause freezing of the designated type!)
13653 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
13654 dispatching operation, since extra formals may be needed by calls to
13655 build-in-place functions (such as stream 'Input).
13657 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
13658 formals for 'Constrained and accessibility level in the case of a
13659 predefined dispatching operation.
13661 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
13662 point, no need to find the parent node.
13664 2007-08-16 Javier Miranda <miranda@adacore.com>
13666 * exp_attr.adb (Attribute_Priority): Add missing support for entries
13667 and entry barriers.
13669 2007-08-16 Javier Miranda <miranda@adacore.com>
13671 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
13672 is not really required and can introduce regression with the debugger.
13673 The original problem is fixed with the patch written for checks.adb.
13675 2007-08-16 Thomas Quinot <quinot@adacore.com>
13677 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
13678 Range_Check on Allocated_Table.
13680 2007-08-16 Vincent Celier <celier@adacore.com>
13682 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
13683 Including_Non_Switch set to False.
13684 (Gnatmake): For the compiler, call Test_If_Relative_Path with
13685 Including_Non_Switch set to False.
13687 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
13688 parameter Including_Non_Switch, defaulted to True. When
13689 Including_Non_Switch is False, options that are not switches and
13690 appear as relative path are not converted to absolute paths.
13692 2007-08-16 Nicolas Roche <roche@adacore.com>
13694 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
13697 * Make-lang.in: Update dependencies
13699 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
13701 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
13702 currently inspected is a selected component, retrieve the entity of
13704 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
13705 from the immediate ancestor of Main_Unit_Entity.
13706 (Install_Limited_Withed_Unit): Do not install the limited view of
13707 package P if P is reachable through an ancestor chain from package C
13708 and C also has a with clause for P in its body.
13709 (Has_Limited_With_Clause): New routine.
13710 (Has_With_Clause): New routine.
13712 2007-08-16 Ed Schonberg <schonberg@adacore.com>
13714 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
13715 generic for an enclosing instance is a global reference, even though
13716 its scope is the enclosing instance.
13718 2007-08-16 Gary Dismukes <dismukes@adacore.com>
13719 Javier Miranda <miranda@adacore.com>
13721 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
13722 initialize a limited object.
13723 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
13725 Make sure Has_Complex_Representation is inherited by derived type.
13727 2007-08-16 Robert Dewar <dewar@adacore.com>
13729 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
13732 2007-08-16 Ed Schonberg <schonberg@adacore.com>
13734 * sem_disp.adb (Check_Dispatching_Operation): If the operation
13735 implements an operation inherited from a progenitor interface, verify
13736 that they are subtype-conformant.
13738 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
13739 Bob Duff <duff@adacore.com>
13740 Nicolas Setton <setton@adacore.com>
13742 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
13743 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
13744 the statement which is being resolved comes from a predefined library
13745 unit, all non-predefined library interpretations are skipped.
13746 (Resolve_Op_Concat): If string concatenation was folded in the parser,
13747 but the "&" is user defined, give an error, because the folding would
13750 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
13751 the parser has folded a long sequence of concatenations of string
13754 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
13755 and "JMP_BUF" variables as artificial.
13756 (N_String_Literal): Do not use alloca for very long string literals. Use
13757 xmalloc/free instead. Otherwise the stack might overflow.
13759 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
13762 2007-08-16 Vincent Celier <celier@adacore.com>
13764 * vms_conv.adb (Process_Argument): Ensure that project related options
13765 are not put in the -cargs section when using GNAT COMPILE.
13767 2007-08-16 Robert Dewar <dewar@adacore.com>
13769 * gnat_ugn.texi: Add note on preprocessing (output file not written)
13771 2007-08-16 Thomas Quinot <quinot@adacore.com>
13773 * a-tags.adb: Minor reformatting.
13775 2007-08-16 Bob Duff <duff@adacore.com>
13777 * sem_type.ads, sem_ch4.adb: Minor reformatting.
13779 2007-08-14 Thomas Quinot <quinot@adacore.com>
13781 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
13782 s-osinte-interix.ads, system-interix.ads: Removed.
13784 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
13786 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
13787 calls to Check_Within_Time_Bounds.
13788 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
13789 (Difference): Account for possible rounding of the resulting difference
13791 2007-08-14 Robert Dewar <dewar@adacore.com>
13793 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
13794 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
13795 s-osinte-solaris.adb, s-osinte-solaris.ads,
13796 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
13798 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
13799 switch -gnatyS. Enable -gnatyS in GNAT style check mode
13801 2007-08-14 Robert Dewar <dewar@adacore.com>
13802 Ed Schonberg <schonberg@adacore.com>
13804 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
13805 Suppress unmodified in-out parameter warning in some cases
13806 This patch is a also fairly significant change to the way suppressible
13807 checks are handled.
13809 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
13810 needed for access to concurrent record types generated by the expander.
13811 (Generate_Range_Check): When generating a temporary to capture the
13812 value of a conversion that requires a range check, set the type of the
13813 temporary before rewriting the node, so that the type is always
13814 properly placed for back-end use.
13815 (Apply_Float_Conversion_Check): Handle case where the conversion is
13817 (Get_Discriminal): Code reformatting. Climb the scope stack looking
13818 for a protected type in order to examine its discriminants.
13820 2007-08-14 Robert Dewar <dewar@adacore.com>
13821 Gary Dismukes <dismukes@adacore.com>
13822 Ed Schonberg <schonberg@adacore.com>
13823 Thomas Quinot <quinot@adacore.com>
13825 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
13826 a-stwisu.adb, a-strsup.adb: Fix warnings for range
13827 tests optimized out.
13829 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
13830 (Get_Allocator_Final_List): For the case of an anonymous access type
13831 that has a specified Associated_Final_Chain, do not go up to the
13833 (Expand_N_Type_Conversion): Test for the case of renamings of access
13834 parameters when deciding whether to apply a run-time accessibility
13836 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
13837 aggregate code before allocator, and ahead of declaration for
13838 temporary, to prevent access before elaboration when the allocator is
13839 an actual for an access parameter.
13840 (Expand_N_Type_Conversion): On an access type conversion involving an
13841 access parameter, do not apply an accessibility check when the
13842 operand's original node was an attribute other than 'Access. We now
13843 create access conversions for the expansion of 'Unchecked_Access and
13844 'Unrestricted_Access in certain cases and clearly accessibility should
13845 not be checked for those.
13847 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
13848 includes a type conversion of a packed component that has been expanded,
13849 recover the original expression for the object, and use this expression
13850 in the post-call assignment statement, so that the assignment is made
13851 to the object and not to a back-end temporary.
13852 (Freeze_Subprogram): In case of primitives of tagged types not defined
13853 at the library level force generation of code to register the primitive
13854 in the dispatch table. In addition some code reorganization has been
13855 done to leave the implementation clear.
13856 (Expand_Call): When expanding an inherited implicit conversion,
13857 preserve the type of the inherited function after the intrinsic
13858 operation has been expanded.
13860 * exp_ch2.ads, exp_ch2.adb
13861 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
13862 of an entry formal appearing in an assignment statement does not assign
13864 (Expand_Current_Value): Instead of calling a routine to determine
13865 whether the prefix of an attribute reference should be optimized or
13866 not, prevent the optimization of such prefixes all together.
13868 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
13869 component whose prefix is known to be of an access type is an implicit
13870 dereference and does not assign to the prefix.
13872 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13873 Robert Dewar <dewar@adacore.com>
13875 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
13876 itype is visited, make an entry into table to link associated node and
13878 Add comments and correct harmless error in Build_NCT_Hash_Tables
13879 (Array_Aggr_Subtype): Associate each itype created for an index type to
13880 the corresponding range construct, and not to the aggregate itself. to
13881 maintain a one-to-one correspondence between itype and its associated
13882 node, to prevent errors when complex expression is copied.
13883 Fix mishandling of multiple levels of parens
13885 * sem_aggr.adb: Create a limited view of an incomplete type, to make
13886 treatment of limited views uniform for all visible declarations in a
13887 limited_withed package.
13888 (New_Copy_Tree): If hash table is being used and itype is visited,
13889 make an entry into table to link associated node and new itype.
13890 (Resolve_Record_Aggregate): Do not add an others box association for a
13891 discriminated record component that has only discriminants, when there
13892 is a box association for the component itself.
13894 * par-ch4.adb: Fix mishandling of multiple levels of parens
13896 2007-08-14 Robert Dewar <dewar@adacore.com>
13898 * comperr.adb: Fix problem with suppressing warning messages from gigi
13900 * erroutc.ads, erroutc.adb, errout.ads,
13901 errout.adb (Write_Eol): Remove trailing spaces before writing the line
13902 (Write_Eol_Keep_Blanks): New procedure to write a line, including
13903 possible trailing spaces.
13904 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
13905 Fix problem with suppressing warning messages from back end
13906 Improve handling of deleted warnings
13909 Fix problem with suppressing warning messages from back end
13910 Handle setting of Static_Dispatch_Tables flag.
13913 Fix problem with suppressing warning messages from back end
13915 * exp_intr.adb: Improve handling of deleted warnings
13917 2007-08-14 Robert Dewar <dewar@adacore.com>
13919 * debug.adb: Improve -gnatdI to cover all cases of serialization
13920 Add documentation of dZ, d.t
13922 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
13924 (Sprint_Node_Actual): Generate new output associated with implicit
13925 importation and implicit exportation of object declarations.
13927 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13928 Robert Dewar <dewar@adacore.com>
13929 Javier Miranda <miranda@adacore.com>
13930 Gary Dismukes <dismukes@adacore.com>
13932 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
13933 to make treatment of limited views uniform for all visible declarations
13934 in a limited_withed package.
13935 Improve warnings for in out parameters
13936 (Set_Related_Interaface/Related_Interface): Allow the use of this
13937 attribute with constants.
13938 (Write_Field26_Name): Handle attribute Related_Interface in constants.
13939 Warn on duplicate pragma Preelaborable_Initialialization
13941 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
13942 generation of a freezing node to ensure proper management of null
13943 excluding access types in the backend.
13944 (Create_Extra_Formals): Test base type of the formal when checking for
13945 the need to add an extra accessibility-level formal. Pass the entity E
13946 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
13947 originally being done in a couple of cases), to ensure that the
13948 Extra_Formals list gets set on the entity E when the first entity is
13950 (Conforming_Types): Add missing calls to Base_Type to the code that
13951 handles anonymous access types. This is required to handle the
13952 general case because Process_Formals builds internal subtype entities
13953 to handle null-excluding access types.
13954 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13955 functions that need it, even when not marked Requires_Overriding.
13956 Improve warnings for in out parameters
13957 (Analyze_Function_Return): Warn for disallowed null return
13958 Warn on return from procedure with unset out parameter
13959 Ensure consistent use of # in error messages
13960 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
13961 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
13962 the implicit conversion of the expression done for anonymous access
13963 types. This is required to generate the code of the null excluding
13964 check (if required).
13966 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
13967 A formal parameter is never publicly referenceable outside of its body.
13968 (Check_References): For an unreferenced formal parameter in an accept
13969 statement, use the same warning circuitry as for subprogram formal
13971 (Warn_On_Unreferenced_Entity): New subprogram, taken from
13972 Output_Unreferenced_Messages, containing the part of that routine that
13973 is now reused for entry formals as described above.
13974 (Goto_Spec_Entity): New function
13975 (Check_References): Do not give IN OUT warning for dispatching operation
13976 Improve warnings for in out parameters
13977 (Test_Ref): Check that the entity is not undefinite before calling
13978 Scope_Within, in order to avoid infinite loops.
13979 Warn on return from procedure with unset out parameter
13980 Improved warnings for unused variables
13982 2007-08-14 Robert Dewar <dewar@adacore.com>
13983 Javier Miranda <miranda@adacore.com>
13984 Gary Dismukes <dismukes@adacore.com>
13986 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
13987 (Expand_N_Attribute_Reference): Further unify the handling of the
13988 three forms of access attributes, using common code now for all three
13989 cases. Add a test for the case of applying an access attribute to
13990 an explicit dereference when the context is an access-to-interface
13991 type. In that case we need to apply the conversion to the prefix
13992 of the explicit dereference rather than the prefix of the attribute.
13993 (Attribute_Version, UET_Address): Set entity as internal to ensure
13994 proper dg output of implicit importation.
13995 (Expand_Access_To_Type): Removed.
13996 (Expand_N_Attribute_Reference): Merge the code from the three cases
13997 of access attributes, since the processing is largely identical for
13998 these cases. The substantive fix here is to process the case of a
13999 type name prefix (current instance case) before handling the case
14000 of interface prefixes.
14002 2007-08-14 Thomas Quinot <quinot@adacore.com>
14003 Ed Schonberg <schonberg@adacore.com>
14004 Javier Miranda <miranda@adacore.com>
14005 Robert Dewar <dewar@adacore.com>
14007 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
14008 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
14009 type that is an anonymous access to controlled object, establish
14010 an associated finalization chain to avoid corrupting the global
14011 finalization list when a dynamically allocated object designated
14012 by such a component is deallocated.
14013 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14014 functions that need it, even when not marked Requires_Overriding.
14015 (Initialize_Tag): Replace call to has_discriminants by call to
14016 Is_Variable_Size_Record in the circuitry that handles the
14017 initialization of secondary tags.
14018 (Is_Variable_Size_Record): New implementation.
14019 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
14020 Suppress_Initialization pragma for a derived type.
14021 (Is_Variable_Size_Record): New subprogram.
14022 (Build_Offset_To_Top_Functions): New implementation that simplifies the
14023 initial version of this routine and also fixes problems causing
14024 incomplete initialization of the table of interfaces.
14025 (Build_Init_Procedure): Improve the generation of code to initialize the
14026 the tag components of secondary dispatch tables.
14027 (Init_Secondary_Tags): New implementation that simplifies the previous
14028 version of this routine.
14029 (Make_DT): Add parameter to indicate when type has been frozen by an
14030 object declaration, for diagnostic purposes.
14031 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
14032 diagnose attemps to freeze a subprogram when some untagged type of its
14033 profile is a private type whose full view has not been analyzed yet.
14034 (Freeze_Array_Type): Generate init proc for packed array if either
14035 Initialize or Normalize_Scalars is set.
14036 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
14037 constructing the new profile, copy the null_exclusion indicator for each
14038 parameter, to ensure full conformance of the new body with the spec.
14040 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
14041 Create wrappers for constructor functions that need it, even when not
14042 marked Requires_Overriding.
14043 (Covers): Handle properly designated types of anonymous access types,
14044 whose non-limited views are themselves incomplete types.
14045 (Add_Entry): Use an entity to store the abstract operation which hides
14047 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
14048 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
14049 initialization aggregate.
14050 (Function_Interp_May_Be_Hidden): Rename to
14051 Function_Interp_Has_Abstract_Op.
14052 (Has_Compatible_Type): Remove machinery that skips interpretations if
14053 they are labeled as potentially hidden by an abstract operator.
14054 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
14055 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
14056 (Write_Overloads): Output the abstract operator if present.
14057 (Add_Entry): Before inserting a new entry into the interpretation table
14058 for a node, determine whether the entry will be disabled by an abstract
14060 (Binary_Op_Interp_May_Be_Hidden): New routine.
14061 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
14063 (Function_Interp_May_Be_Hidden): New routine.
14064 (Has_Compatible_Type): Do not consider interpretations hidden by
14065 abstract operators when trying to determine whether two types are
14067 (Has_Hidden_Interp): New routine.
14068 (Set_May_Be_Hidden_Interp): New routine.
14069 (Write_Overloads): Write the status of flag May_Be_Hidden.
14071 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14072 Javier Miranda <miranda@adacore.com>
14074 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
14075 types declared in the declarative part of a nested package body or in
14076 the proper body of a stub.
14077 (Set_All_DT_Position): Add missing check to avoid wrong assignation
14078 of the same dispatch table slot to renamed primitives.
14079 (Make_Select_Specific_Data_Table): Handle private types.
14080 (Tagged_Kind): Handle private types.
14081 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
14082 output of implicit importation and exportation.
14083 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
14084 first formal of the thunk is always associated with the controlling
14085 type. In addition perform the following code cleanup: remove formal
14086 Thunk_Alias which is no longer required, cleanup evaluation of the
14087 the controlling type, and update the documentation.
14088 Replace occurrence of Default_Prim_Op_Count by
14089 Max_Predef_Prims. Addition of compile-time check to verify
14090 that the value of Max_Predef_Prims is correct.
14091 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
14092 (Make_DT): Add parameter to indicate when type has been frozen by an
14093 object declaration, for diagnostic purposes.
14094 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
14095 construction of statically allocated dispatch tables.
14096 (Make_DT): In case of library-level tagged types export the declaration
14097 of the primary tag. Remove generation of tags (now done by Make_Tags).
14098 Additional modifications to handle non-static generation of dispatch
14099 tables. Take care of building tables for asynchronous interface types
14100 (Make_Tags): New subprogram that generates the entities associated with
14101 the primary and secondary tags of Typ and fills the contents of Access_
14102 Disp_Table. In case of library-level tagged types imports the forward
14103 declaration of the primary tag that will be declared later by Make_DT.
14104 (Expand_Interface_Conversion): In case of access types to interfaces
14105 replace an itype declaration by an explicit type declaration to avoid
14106 problems associated with the scope of such itype in transient blocks.
14108 2007-08-14 Robert Dewar <dewar@adacore.com>
14109 Ed Schonberg <schonberg@adacore.com>
14110 Javier Miranda <miranda@adacore.com>
14112 * exp_util.ads, exp_util.adb:
14113 This patch replaces a number of occurrences of explicit tests for N_Null
14114 with calls to Known_Null. This improves tracking of null values, since
14115 Known_Null also catches null constants, and variables currently known to
14116 be null, so we get better tracking.
14117 (Ensure_Defined): create an itype reference only in the scope of the
14119 (Side_Effect_Free): A selected component of an access type that
14120 denotes a component with a rep clause must be treated as not
14121 side-effect free, because if it is part of a linked structure its
14122 value may be affected by a renaming.
14123 (Expand_Subtype_From_Expr): For limited objects initialized with build
14124 in place function calls, do nothing; otherwise we prematurely introduce
14125 an N_Reference node in the expression initializing the object, which
14126 breaks the circuitry that detects and adds the additional arguments to
14127 the called function. Bug found working in the new patch for statically
14128 allocated dispatch tables.
14129 (Is_Library_Level_Tagged_Type): New subprogram.
14130 (Remove_Side_Effects): If the expression of an elementary type is an
14131 operator treat as a function call.
14132 (Make_Literal_Range): If the index type of the array is not integer, use
14133 attributes properly to compute the constraint on the resulting aggregate
14136 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
14137 class-wide type whose base type is an incomplete private type, leave
14138 class-wide type unfrozen so that freeze nodes can be generated
14139 properly at a later point.
14140 (Freeze_Entity, array case): Handle case of pragma Pack and component
14141 size attributre clause for same array.
14143 2007-08-14 Vincent Celier <celier@adacore.com>
14145 * prj.ads, prj.adb: Update Project Manager to new attribute names for
14147 Allow all valid declarations in configuration project files
14148 (Reset): Initialize all tables and hash tables in the project tree data
14149 Major update of the Project Manager and of the project aware tools,
14150 including gprmake, so that the same sources in the GNAT repository
14151 can be used by gprbuild.
14152 (Slash_Id): Change type to be Path_Name_Type
14153 (Slash): Return a Path_Name_Type instead of a File_Name_Type
14155 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
14157 Update Project Manager to new attribute names for ghprbuild
14158 Allow all valid declarations in configuration project files
14159 Major update of the Project Manager and of the project aware tools,
14160 including gprmake, so that the same sources in the GNAT repository
14161 can be used by gprbuild.
14164 Major update of the Project Manager and of the project aware tools,
14165 including gprmake, so that the same sources in the GNAT repository
14166 can be used by gprbuild.
14168 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14169 insensitive flag for attributes with optional index.
14170 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14171 array attribute, put the index in lower case.
14172 Update Project Manager to new attribute names for ghprbuild
14173 Allow all valid declarations in configuration project files
14174 Major update of the Project Manager and of the project aware tools,
14175 including gprmake, so that the same sources in the GNAT repository
14176 can be used by gprbuild.
14178 * prj-env.ads, prj-env.adb:
14179 Major update of the Project Manager and of the project aware tools,
14180 including gprmake, so that the same sources in the GNAT repository
14181 can be used by gprbuild.
14182 (Get_Reference): Change type of parameter Path to Path_Name_Type
14184 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
14185 removing '-' from the path to start with the first character of the
14187 Major update of the Project Manager and of the project aware tools,
14188 including gprmake, so that the same sources in the GNAT repository
14189 can be used by gprbuild.
14190 Major update of the Project Manager and of the project aware tools,
14191 including gprmake, so that the same sources in the GNAT repository
14192 can be used by gprbuild.
14194 * prj-nmsc.ads, prj-nmsc.adb:
14195 Update Project Manager to new attribute names for ghprbuild
14196 Allow all valid declarations in configuration project files
14197 (Search_Directories): Detect subunits that are specified with an
14198 attribute Body in package Naming. Do not replace a source/unit in the
14199 same project when the order of the source dirs are known. Detect
14200 duplicate sources/units in the same project when the order of the
14201 source dirs are not known.
14202 (Check_Ada_Name): Allow all identifiers that are not reserved words
14204 Major update of the Project Manager and of the project aware tools,
14205 including gprmake, so that the same sources in the GNAT repository
14206 can be used by gprbuild.
14207 (Look_For_Sources): If the list of sources is empty, set the object
14208 directory of non extending project to nil.
14209 Change type of path name variables to be Path_Name_Type
14210 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
14211 otherwise creating missing directories will fail.
14213 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
14214 prj-part.ads, prj-part.adb:
14215 Major update of the Project Manager and of the project aware tools,
14216 including gprmake, so that the same sources in the GNAT repository
14217 can be used by gprbuild.
14219 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14220 insensitive flag for attributes with optional index.
14221 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14222 array attribute, put the index in lower case.
14223 (Parse_Variable_Reference): Allow the current project name to be used in
14224 the prefix of an attribute reference.
14226 * prj-util.ads, prj-util.adb
14227 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
14228 defaulted to False. When True, always check against indexes in lower
14231 * snames.ads, snames.h, snames.adb:
14232 Update Project Manager to new attribute names for gprbuild
14233 Allow all valid declarations in configuration project files
14235 2007-08-14 Robert Dewar <dewar@adacore.com>
14236 Ed Schonberg <schonberg@adacore.com>
14238 * opt.ads: Warning for non-local exception propagation now off by
14240 New switch -gnatI to disable representation clauses
14241 Implement new pragma Implicit_Packing
14244 Warning for non-local exception propagation now off by default
14245 Add warning for unchecked conversion of pointers wi different
14247 New switch -gnatI to disable representation clauses
14249 * usage.adb: new switch -gnatyS
14251 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
14252 note that aggregates of anonymous array types are not flagged.
14253 -gnatwc now includes membership tests optimized away
14254 -gnatw.x warnings are now off by default
14255 Added conditional compilation Appendix
14256 Add documentation of -gnatI
14257 Add documentation for new -gnatyS style check
14258 Update documentation about SAL and auto-init on Windows.
14261 Add documentation for pragma Check_Name and 'Enabled attribute
14262 Document that Eliminate on dispatching operation is ignored
14263 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
14264 Document pragma Main
14265 Document pragma Implicit_Packing
14267 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
14268 different conventions
14269 New switch -gnatI to disable representation clauses
14271 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
14272 recognized, report the invalid characters including "-gnat" instead of
14273 just the first character in the switch.
14274 New switch -gnatI to disable representation clauses
14275 Set Warn_On_Object_Renames_Function true for -gnatg
14277 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
14278 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
14279 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
14280 to switch -aP (add directory to project search dir).
14282 * par-prag.adb: Implement new pragma Implicit_Packing
14284 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
14285 type as having a non-standard representation, to force expansion on
14286 conversion to related types.
14287 (Analyze_Pragma): Warn on misspelled pragma
14288 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
14289 Ensure consistent use of # in error messages
14290 Implement pragma Implicit_Packing
14292 2007-08-14 Olivier Hainque <hainque@adacore.com>
14293 Eric Botcazou <ebotcazou@adacore.com>
14295 * targtyps.c (get_target_maximum_default_alignment): New function.
14297 that the compiler might choose by default for a type or object.
14298 (get_target_default_allocator_alignment): New function. Alignment known
14299 to be honored by the target default allocator.
14300 (get_target_maximum_allowed_alignment): New function. Maximum alignment
14301 we might accept for any type or object on the target.
14302 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
14304 * gigi.h (get_target_maximum_default_alignment): Declare new function.
14305 (get_target_default_allocator_alignment): Likewise.
14306 (get_target_maximum_allowed_alignment): Likewise.
14309 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
14310 result of a function call, first try to use a stabilized reference for
14311 a constant renaming too.
14312 (validate_alignment): Use target_maximum_allowed_alignment instead of
14313 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
14314 (gnat_to_gnu_entity): Use common nodes directly.
14315 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
14316 alignment and size for the object.
14317 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
14318 and N_Procedure_Call_Statement.
14319 (takes_address): Rename to lvalue_required_p, add third parameter
14320 'aliased' and adjust recursive calls.
14321 <N_Indexed_Component>: Update 'aliased' from the array type.
14322 <N_Selected_Component>: New case.
14323 <N_Object_Renaming_Declaration>: New Likewise.
14324 (Identifier_to_gnu): Adjust for above changes.
14325 (maybe_stabilize_reference) <CONST_DECL>: New case.
14327 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
14328 between type variants.
14329 (build_simple_component_ref): Likewise.
14330 (build_call_alloc_dealloc): Use target_default_allocator_alignment
14331 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
14332 aligning type circuitry for allocations from the default storage pool.
14333 (build_allocator): Likewise.
14334 (build_simple_component_ref): Manually fold the reference for a
14335 constructor if the record type contains a template.
14337 * utils.c (value_zerop): Delete.
14338 (gnat_init_decl_processing): Emit debug info for common types.
14339 (rest_of_record_type_compilation): If a union contains a field
14340 with a non-constant qualifier, treat it as variable-sized.
14341 (finish_record_type): Give the stub TYPE_DECL a name.
14342 (rest_of_record_type_compilation): Likewise.
14343 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
14344 types are equivalent array types.
14345 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
14346 even if the type is not passed by reference.
14347 (static_ctors, static_dtors): Delete.
14348 (end_subprog_body): Do not record constructors and destructors.
14349 (build_global_cdtor): Delete.
14350 (gnat_write_global_declarations): Do not call build_global_cdtor.
14352 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
14353 -fRTS=rtp is specified.
14354 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
14357 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
14358 of the personality function with SJLJ exceptions.
14360 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
14361 the name of the personality function with SJLJ exceptions.
14363 2007-08-14 Robert Dewar <dewar@adacore.com>
14364 Ed Schonberg <schonberg@adacore.com>
14366 * par.ads, par.adb: Improve handling of extra right parens.
14367 (Par): Remove flag From_Limited_With_Clause.
14369 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
14370 Improve handling of extra right parens.
14372 2007-08-14 Robert Dewar <dewar@adacore.com>
14374 * par-tchk.adb (TF_Semicolon): Improve error recovery
14376 2007-08-14 Robert Dewar <dewar@adacore.com>
14377 Ed Schonberg <schonberg@adacore.com>
14379 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
14380 enumeration type, mark all literals as referenced.
14381 (Eval_Attribute, case 'Image): If the argument is an enumeration
14382 literal and names are available, constant-fold but mark nevertheless as
14384 Clean up function names.
14385 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
14387 (Requires_Simple_Name_Prefix): Removed.
14389 2007-08-14 Robert Dewar <dewar@adacore.com>
14390 Ed Schonberg <schonberg@adacore.com>
14392 * sem_ch11.adb: Improved warnings for unused variables
14394 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
14395 is a synchronized interface, the derived type is limited.
14396 (Analyze_Object_Declaration): Mark the potential coextensions in the
14397 definition and expression of an object declaration node.
14398 (Build_Derived_Type): For the completion of a private type declaration
14399 with a derived type declaration, chain the parent type's representation
14400 items to the last representation item of the derived type (not the
14401 first one) if they are not present already.
14402 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
14403 object declaration of forward references to tags.
14404 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
14405 subprogram types can appear as access discriminants of synchronized
14407 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
14408 given in prefixed form as a selected component.
14409 (Process_Discriminants): If not all discriminants have defaults, place
14410 error message on a default that is present.
14411 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
14412 extend a synchronized tagged type.
14413 Improved warnings for unused variables
14414 (Is_Visible_Component): Fix a visibility hole on a component inherited
14415 by a private extension when parent is itself declared as a private
14416 extension, and the derivation is in a child unit.
14417 (Find_Hidden_Interface): Move spec from the package body.
14419 2007-08-14 Robert Dewar <dewar@adacore.com>
14420 Ed Schonberg <schonberg@adacore.com>
14422 * sem_ch5.adb: Improve warnings on redundant assignments
14424 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
14426 (Is_Synchronized_Tagged_Type): New subprogram that returns true
14427 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
14428 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
14429 is set to False. Improves handling of Known_[Not_]Null.
14430 (Wrong_Type): Special case address arithmetic attempt
14431 (Collect_Abstract_Interfaces): Add new formal to allow collecting
14432 abstract interfaces just using the partial view of private types.
14433 (Has_Abstract_Interfaces): Add new formal to allow checking types
14434 covering interfaces using the partial view of private types.
14435 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
14436 component still needs to be defined in this case, but is never
14437 initialized as VMs are using other dispatching mechanisms.
14438 (Abstract_Interface_List): For a protected type, use base type to get
14439 proper declaration.
14440 Improve warnings on redundant assignments
14441 (Is_Variable): Handle properly an implicit dereference of a prefixed
14443 (Build_Actual_Subtype): If this is an actual subtype for an
14444 unconstrained formal parameter, use the sloc of the body for the new
14445 declaration, to prevent anomalises in the debugger.
14447 2007-08-14 Robert Dewar <dewar@adacore.com>
14449 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
14450 dispatching operation
14452 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14453 Gary Dismukes <dismukes@adacore.com>
14456 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
14457 expanded aggregate code before allocator, and ahead of declaration for
14458 temporary, to prevent access before elaboration when the allocator is
14459 an actual for an access parameter.
14460 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
14461 the TSD and the table of interfaces.
14462 (Convert_To_Assignments): Augment the test for delaying aggregate
14463 expansion for limited return statements to include the case of extended
14464 returns, to prevent creation of an unwanted transient scope.
14465 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
14466 (Expand_Array_Aggregate): Handle aggregates associated with
14467 statically allocated dispatch tables.
14468 (Expand_Record_Aggregate): Handle aggregates associated with
14469 statically allocated dispatch tables.
14470 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
14471 of anonymous access type.
14473 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14475 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
14476 is a variable that renames a slice, use the variable itself in the
14477 expannsion when the renamed expression itself may be modified between
14478 the declaration of the renaming and the array assignment.
14480 2007-08-14 Jerome Guitton <guitton@adacore.com>
14482 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
14483 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
14484 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
14485 New functions; dummy implementations.
14487 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
14488 functions, used to implement the multi-tasks mode routines on VxWorks.
14490 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
14491 New functions, thin
14492 binding to the VxWorks routines which have changed between VxWorks 5
14494 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
14495 which are not callable from a RTP.
14497 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
14498 implemented for the multi-tasks mode on VxWorks 5 and 6.
14500 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
14502 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
14505 2007-08-14 Vincent Celier <celier@adacore.com>
14507 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
14508 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
14509 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
14510 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14511 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
14512 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
14513 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
14515 (Major_Id_Name): New function.
14516 mlib-tgt.ads/mlib.tgt.adb:
14517 (Library_Major_Minor_Id_Supported): New function, default returns True
14518 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
14519 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
14520 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
14521 Implementation of Library_Major_Minor_Id_Supported returns False
14523 (Clean_Library_Directory): If major/minor ids are supported, clean all
14525 Major update of the Project Manager and of the project aware tools,
14526 including gprmake, so that the same sources in the GNAT repository
14527 can be used by gprbuild.
14529 2007-08-14 Olivier Hainque <hainque@adacore.com>
14531 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
14532 (GCC_ZCX_Support): Switch to True.
14534 * s-intman-solaris.adb (Notify_Exception): Call
14535 Adjust_Context_For_Raise before raising, as expected for signal
14536 handlers in general.
14538 * s-intman-posix.adb (Notify_Exception): Remove declaration of
14539 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
14540 to other implementation bodies.
14542 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
14543 be visible by multiple implementation bodies.
14545 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
14546 only for conditions coming from hardware.
14547 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
14548 adjustments to signal context prior to exception raise from signal
14550 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
14552 Solaris section: (__gnat_adjust_context_for_raise): New function.
14553 Implementation of the machine context adjustments to perform prior to
14554 raise from a signal handler. Version for both sparc and x86.
14555 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
14556 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
14557 prior to raising as expected for any handler, before possible nested
14558 faults to make sure all the contexts in a chain have been adjusted by
14559 the time we propagate.
14561 2007-08-14 Pascal Obry <obry@adacore.com>
14563 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
14564 (SYSTEM_INFO): New record.
14565 (SetThreadIdealProcessor): New imported routine needed for supporting
14566 task_info pragma on Windows.
14568 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
14569 info can be applied to the current host.
14570 (Create_Task): Set the ideal processor if information is present.
14572 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
14573 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
14575 2007-08-14 Olivier Hainque <hainque@adacore.com>
14577 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
14578 stack size and initial stack pointer value for a given task.
14579 (Enter_Task): Get the stack attributes of the task we are entering and
14580 let the stack checking engine know about them.
14582 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
14583 Let the stack-checking engine know about the initial sp value and stack
14584 size associated with the current task.
14585 (Set_Stack_Info): If a stack base has been notified for the current
14586 task, honor it. Fallback to the previous less accurate method otherwise.
14588 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
14590 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14592 * sem_ch10.adb: Create a limited view of an incomplete type, to make
14593 treatment of limited views uniform for all visible declarations in a
14594 limited_withed package.
14595 Set flag indicating that a subprogram body for a child unit has a
14597 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
14598 separate declaration, remove the unit name from visibility after
14599 compilation, so that environment is clean for subsequent compilations.
14600 (Install_Limited_Context_Clauses): Do not install a
14601 limited_private_with_clause unless the current unit is a body or a
14602 private child unit.
14603 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
14604 in the same fashion.
14605 (Install_Limited_Withed_Unit): Do not install a limited with clause if
14606 it applies to the declaration of the current package body.
14607 (Remove_Private_With_Clauses): If there is a regular with_clause for
14608 the unit, delete Private_With_Clause from context, to prevent improper
14609 hiding when processing subsequent nested packages and instantiations.
14611 2007-08-14 Jose Ruiz <ruiz@adacore.com>
14613 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
14614 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
14615 representing absolute path names.
14616 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
14618 * cstreams.c (__gnat_full_name for VxWorks): Use
14619 __gnat_is_absolute_path to detect whether we need to add the current
14620 directory to normalize the path.
14622 2007-08-14 Javier Miranda <miranda@adacore.com>
14625 a-tags.adb (Displace): Associate a message with the raised CE
14627 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
14628 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
14629 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
14631 (Default_Prim_Op_Count): Removed.
14632 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
14633 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
14634 Remove pragma Inline_Always.
14636 * rtsfind.ads (Default_Prim_Op_Count): Removed
14637 (Max_Predef_Prims): New entity
14638 (RE_Expanded_Name): Removed
14639 (RE_HT_Link): Removed
14640 (RE_Iface_Tag): Remmoved
14641 (RE_Ifaces_Table): Removed
14642 (RE_Interfaces_Array): Removed
14643 (RE_Interface_Data_Element): Removed
14644 (RE_Nb_Ifaces): Removed
14645 (RE_RC_Offset): Removed
14646 (RE_Static_Offset_To_Top): Removed
14648 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
14650 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
14651 Prim_Op_Count by Max_Predef_Prims.
14653 2007-08-14 Thomas Quinot <quinot@adacore.com>
14654 Vincent Celier <celier@adacore.com>
14656 * binde.adb (Elab_All_Links): Remove unnecessary call to
14657 Generic_Separately_Compiled (if a unit satisfies this predicate, there
14658 won't be an associated Afile).
14659 (Elab_All_Links): Fail if a referenced unit cannot be found
14662 Fix comments in bindgen regarding consistency checks done in Bcheck:
14663 the checks are made across units within a partition, not across several
14665 Fix generation of C binder file for VxWorks.
14667 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
14668 Generic_May_Lack_ALI, more descriptive of the current use of the
14669 predicate, and update documentation.
14671 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
14672 reorganization and documentation update for the case of predefined
14673 library generics (for which we do not reference an Afile).
14675 2007-08-14 Robert Dewar <dewar@adacore.com>
14677 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
14678 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
14679 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
14680 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
14681 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
14682 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
14683 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
14684 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
14685 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
14686 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
14687 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
14688 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
14689 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
14690 g-altcon.adb: Minor reformatting
14692 ada-tree.h: Delete empty line.
14694 ali.ads: Minor reformatting
14695 Clarification of comments.
14696 Minor spelling correction
14698 * exp_dbug.adb: Add Warnings Off to suppress new warning
14700 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14703 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
14706 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
14708 * a-textio.ads: Reorder the standard input/output/error declarations
14711 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
14713 * par-ch2.adb: Recognize RM specially in errout
14714 Change 'R'M to RM in all error messages
14716 * scng.adb: Recognize RM specially in errout
14718 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
14719 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
14721 * s-direio.adb: Add missing routine header box.
14723 * sem_attr.ads: Add ??? comments
14725 * sem_eval.adb: Recognize RM specially in errout
14726 Change 'R'M to RM in all error messages
14728 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
14730 * s-tasinf.ads: Fix minor comment typo.
14732 * a-cihama.adb: Minor comment addition
14734 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14737 * s-tasinf-tru64.ads: Fix minor comment typo.
14739 * itypes.ads: Comment update.
14741 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
14744 * argv.c: Added protection against null gnat_argv and gnat_envp.
14746 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
14747 warning message when Tolerate_Consistency_Errors is True.
14749 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
14750 Any_Id, as this subprogram is only applicable to *type* entities (it
14751 sets RM_Size). Instead initialize just Esize and Alignment.
14753 2007-08-14 Bob Duff <duff@adacore.com>
14755 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
14756 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
14757 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
14758 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
14759 a-coorse.ads (Next): Applied pragma Inline.
14760 Make all Containers packages Remote_Types (unless they are already
14762 (Previous): applied pragma Inline
14763 (Elements_Type): is now a record instead of an array
14765 2007-08-14 Thomas Quinot <quinot@adacore.com>
14767 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
14769 (Set_Item): When the new item is an element of the currently allocated
14770 table passed by reference, save a copy on the stack if we're going
14771 to reallocate. Also, in Table.Set_Item, make sure we test the proper
14772 variable to determine whether to call Set_Last.
14774 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
14775 symbols-vms.adb, symbols-processing-vms-alpha.adb,
14776 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
14777 some occurrences of the pattern
14779 T.Table (T.Last) := Value;
14780 with a cleaner call to
14783 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14784 Gary Dismukes <dismukes@adacore.com>
14785 Thomas Quinot <quinot@adacore.com>
14787 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
14788 derived type with interface progenitors use the analyzed formal as the
14789 parent of the actual, to create renamings for all the inherited
14790 operations in Derive_Subprograms.
14791 (Collect_Previous_Instances): new procedure within of
14792 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
14793 unit being loaded, to ensure that the generation of global symbols is
14794 consistent in different compilation modes.
14795 (Is_Tagged_Ancestor): New function testing the ancestor relation that
14796 takes progenitor types into account.
14797 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
14798 traversing over the primitives of the formal and actual types to locate
14799 any abstract subprograms of the actual type that correspond to a
14800 nonabstract subprogram of the formal type's ancestor type(s), and issue
14801 an error if such is found.
14802 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
14803 Instantiate_Package_Body, Instantiate_Subprogram_Body):
14804 Remove bogus guard around calls to Inherit_Context.
14805 (Reset_Entity): If the entity is the selector of a selected component
14806 that denotes a named number, propagate constant-folding to the generic
14807 template only if the named number is global to the generic unit.
14808 (Set_Instance_Env): Only reset the compilation switches when compiling
14809 a predefined or internal unit.
14811 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14813 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
14814 parameter to determine whether operation applies to the prefix.
14815 (Complete_Object_Operation): If actual has an access type and
14816 controlling formal is not an in_parameter, reject the actual if it is
14817 an access_to_constant type.
14818 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
14819 type, the candidate operations are found in the scope of declaration of
14820 the type, because the type has no primitive subprograms.
14821 (Analyze_Selected_Component): If prefix is class-wide, and root type is
14822 a private extension, only examine visible components before trying to
14823 analyze as a prefixed call.
14824 Change Entity_List to Type_To_Use, for better readability.
14825 (Has_Fixed_Op): Use base type when checking whether the type of an
14826 operator has a user-defined multiplication/division
14827 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
14828 user-defined operators are available for fixed-point types.
14830 2007-08-14 Thomas Quinot <quinot@adacore.com>
14831 Ed Schonberg <schonberg@adacore.com>
14833 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
14834 formal At_Any_Place indicating, when True, that we want to test for
14835 availability of the stream attribute at any place (as opposed to the
14836 current visibility context only).
14837 (Missing_Read_Write_Attributes): A stream attribute is missing for the
14838 purpose of enforcing E.2.2(8) only if it is not available at any place.
14839 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
14840 when checking the legality of an extension aggregate in a preelaborable
14841 package. Treat the literal null as a valid default expression in a
14842 component declaration for a type with preelaborable initialization.
14843 A limited interface is a legal progenitor for the designated type of a
14844 remote access to class-wide type.
14846 2007-08-14 Thomas Quinot <quinot@adacore.com>
14847 Ed Schonberg <schonberg@adacore.com>
14849 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
14850 reference): Use correct entity as denoted entity for the selector of
14851 the rewritten node.
14852 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
14853 setting the Referenced_As_LHS flag for entities that are implicitly
14855 (Find_Type): If the type is an internally generated incomplete type,
14856 mark the full view as referenced, to prevent spurious warnings.
14857 (Find_Selected_Component, Has_Components): Handle properly non-limited
14858 views that are themselves incomplete types.
14859 Handle interfaces visible through limited-with clauses.
14860 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
14861 subprogram generic actual for which we have generated a renaming.
14862 Warn when the renaming introduces a homonym of
14863 the renamed entity, and the renamed entity is directly visible.
14865 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14866 Hristian Kirtchev <kirtchev@adacore.com>
14868 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
14869 appear in the subtree to the current allocator if it is not a static
14871 (Resolve_Allocator): Perform cleanup if resolution has determined that
14872 the allocator is not a coextension.
14873 (Resolve): Skip an interpretation hidden by an abstract operator only
14874 when the type of the interpretation matches that of the context.
14875 (Resolve): When looping through all possible interpretations of a node,
14876 do not consider those that are hidden by abstract operators.
14877 (Resolve_Actuals): When verifying that an access to class-wide object
14878 is an actual for a controlling formal, ignore anonymous access to
14879 subprograms whose return type is an access to class_wide type.
14880 (Resolve_Slice): If the prefix of the slice is a selected component
14881 whose type depends on discriminants, build its actual subtype before
14882 applying range checks on the bounds of the slice.
14883 (Valid_Conversion): In an instance or inlined body, compare root types,
14884 to prevent anomalies between private and public views.
14885 (Resolve): Improve error message for ambiguous fixed multiplication
14886 expressions that involve universal_fixed multiplying operations.
14888 2007-08-14 Javier Miranda <miranda@adacore.com>
14889 Hristian Kirtchev <kirtchev@adacore.com>
14891 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
14892 location to allow the correct generation of errors in case of
14893 restrictions applied to the expanded code.
14894 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
14895 function if the condition does not reference them.
14896 (Expand_Entry_Body_Declarations): Mark the index constant as having a
14899 2007-08-14 Thomas Quinot <quinot@adacore.com>
14900 Pablo Oliveira <oliveira@adacore.com>
14902 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
14903 typecode parameters for a union (in a variant record), remove
14904 extraneous layer of Any wrapping for member label.
14905 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
14906 elabration statements, register the package with the name server
14907 at the beginning, not at the end, of the elaboration statements so
14908 that they can create remote access to subprogram values that designate
14909 remote subprograms from the package.
14911 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14913 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
14914 values to compute the number of seconds since the Unix Epoc in order to
14915 account for Daylight Savings Time. Perform special processing for dates
14916 that are earlier than the Unix Epoc to obtain a negative number.
14918 2007-08-14 Emmanuel Briot <briot@adacore.com>
14920 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
14923 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
14925 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
14926 binder-generated file is not in Ada.
14927 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
14928 recorded in the ALI file.
14929 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
14931 2007-08-14 Vincent Celier <celier@adacore.com>
14933 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
14934 (Output_Source): Do nothing if parameter is No_Sdep_Id
14936 * make.adb (Gnatmake): Do not rebuild an archive simply because a
14937 shared library it imports has a later time stamp.
14938 (Check): Resolve the symbolic links in the path name of the object
14940 Check that the ALI file is in the correct object directory
14941 Check if a file name does not correspond to the mapping of units
14943 (Display_Version): New procedure
14944 (Initialize): Process switches --version and --help
14945 Use type Path_Name_Type for path name
14947 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
14949 * impunit.adb: Re-organize System.Random_Numbers and
14950 GNAT.Random_Numbers and add to builds.
14952 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
14954 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
14956 * a-assert.ads, a-assert.adb: New files.
14958 2007-08-14 Gary Dismukes <dismukes@adacore.com>
14960 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
14961 if AAMP_On_Target is True, then the size of the type encompasses two
14962 addresses (a static link and a subprogram address), except in the case
14963 of library-level access types.
14965 2007-08-14 Vincent Celier <celier@adacore.com>
14967 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
14969 (Write_Eol_Keep_Blanks): New procedure to write a line, including
14970 possible trailing spaces.
14971 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
14973 2007-08-14 Javier Miranda <miranda@adacore.com>
14975 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
14976 null-excluding access types.
14978 2007-08-14 Javier Miranda <miranda@adacore.com>
14980 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
14981 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
14982 of private types add missing check on matching interfaces in the
14983 partial and full declarations.
14984 (Analyze_Protected_Type): Code cleanup.
14985 (Analyze_Task_Type): Code cleanup.
14987 2007-08-14 Javier Miranda <miranda@adacore.com>
14989 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
14990 generated interface thunk.
14992 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14994 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
14995 obsolescent warning on application of 'Class to an incomplete type.
14997 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
14998 prevent obsolescent warning on application of 'Class to an incomplete
15001 2007-08-14 Pascal Obry <obry@adacore.com>
15003 * s-fileio.adb (Is_Open): Add check for usability of the underlying
15006 2007-08-14 Cyrille Comar <comar@adacore.com>
15008 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
15009 since it is potentially used in cases implying double finalization of
15012 2007-08-14 Jose Ruiz <ruiz@adacore.com>
15014 * s-tasini.adb (Get_Stack_Info): Move this function to
15015 System.Soft_Links.Tasking because it is common to the full and the
15016 restricted run times.
15017 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
15018 in SSL.Tasking.Init_Tasking_Soft_Links.
15020 * s-solita.adb (Get_Stack_Info): Function moved from
15021 System.Tasking.Initialization because it is common to the full and the
15022 restricted run times.
15023 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
15025 2007-08-14 Arnaud Charlet <charlet@adacore.com>
15027 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
15028 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
15029 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
15032 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
15035 2007-08-14 Gary Dismukes <dismukes@adacore.com>
15037 * s-veboop.adb (SU): New named number initialized to
15038 System.Storage_Unit.
15039 (True_Val): The initialization expression is revised to use SU (=
15040 Storage_Unit) rather than assuming 8 for the component size of an
15041 unpacked Boolean array.
15043 2007-08-14 Tristan Gingold <gingold@adacore.com>
15045 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
15047 * tb-ivms.c: New file.
15049 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
15051 2007-08-14 Geert Bosch <bosch@adacore.com>
15053 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
15054 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
15055 Add required linker pragmas for automatically linking with the gnalasup
15056 linear algebra support library, and the systems math library.
15057 Rename cdot to cdotu and zdot to zdotu.
15058 Update header comment to describe purpose of package.
15060 2007-08-14 Thomas Quinot <quinot@adacore.com>
15062 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
15063 an explicitly specified Associated_Final_Chain, use that list.
15064 (Expand_N_Package_Body): Build dispatch tables of library level tagged
15066 (Expand_N_Package_Declaration): Build dispatch tables of library level
15067 tagged types. Minor code cleanup.
15069 2007-08-14 Vincent Celier <celier@adacore.com>
15071 * gnatchop.adb (Terminate_Program): Remove exception and use
15072 Types.Terminate_Program instead.
15074 * osint.ads, osint.adb (Current_Exit_Status): New global variable
15075 (Find_Program_Name): Added protection against empty name.
15076 (OS_Exit_Through_Exception): New procedure
15078 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
15079 (OS_Exit_Default): New procedure that contains the previous
15080 implementation of procedure OS_Exit.
15081 (Final_Value): Remove obsolete Interix stuff.
15083 2007-08-14 Thomas Quinot <quinot@adacore.com>
15085 * g-socket.ads: Reorganize example code so that it also works on
15088 2007-08-14 Tristan Gingold <gingold@adacore.com>
15090 * g-trasym.ads: AIX now supports symbolic backtraces.
15092 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15094 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
15095 units being loaded to detect circularities. A circularity may be
15096 present even if the current chain of pending units to load starts from
15097 a limited_with_clause.
15099 * lib-load.ads: Change profile of Load_Unit to use a with_clause
15100 rather than a boolean flag, in order to detect circularities in
15103 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
15104 than propagating the From_Limited_With flag, in order to handle
15105 properly circularities involving with_clauses.
15107 2007-08-14 Nicolas Setton <setton@adacore.com>
15109 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
15112 2007-08-14 Arnaud Charlet <charlet@adacore.com>
15114 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
15115 to build for libgnala.
15116 libgnat: Add rules to build libgnala.a
15117 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
15118 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
15119 Add s-osinte-vxworks-kernel.adb to the target pairs of the
15120 kernel run-time lib for VxWorks 6, which would provide a different
15121 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
15122 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
15123 running ZCX by default.
15124 Add g-sttsne-locking to LynxOS version.
15125 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
15126 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
15128 * system-darwin-x86.ads: New file.
15130 * Make-lang.in: Delete files before copying onto them, so if they are
15131 read-only, the copy won't fail.
15132 Update dependencies
15134 2007-08-14 Pascal Obry <obry@adacore.com>
15136 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
15139 2007-08-14 Vincent Celier <celier@adacore.com>
15141 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
15142 (Gcc): Initialize Gcc_Name at the first call
15144 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15146 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
15147 with_clauses of the enclosing unit when analyzing the package
15148 specification of a nested instance.
15150 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15152 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
15153 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
15154 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
15155 layout of N_Allocator.
15157 2007-08-14 Thomas Quinot <quinot@adacore.com>
15159 * rtsfind.adb (Check_RPC): Add PCS version check.
15161 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
15162 (Gnat_Free_Software): New function.
15164 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
15165 the PCS_Version value from s-parint, used to check that it is consistent
15166 with what exp_dist expects.
15168 * s-parint.ads (PCS_Version): New entity for checking consistency
15169 between exp_dist and PCS.
15171 * gen-soccon.c: (SO_REUSEPORT): New constant.
15173 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15175 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
15176 variable Sub_Second to Duration in order to accomodate a larger range
15177 of arithmetic operations.
15179 2007-08-14 Bob Duff <duff@adacore.com>
15181 * g-sttsne-locking.ads: Move comments from spec to body.
15182 * g-sttsne-locking.adb: Move comments from spec to body.
15183 * g-sttsne-vxworks.ads: Removed.
15184 * g-sttsne-vxworks.adb: Removed.
15186 2007-08-11 Ian Lance Taylor <iant@google.com>
15188 * misc.c (gnat_get_alias_set): Change return type to
15191 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15193 * decl.c, utils2.c: Fix whitespace in last change.
15195 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15197 * decl.c (compare_field_bitpos): Constify.
15198 * utils2.c (compare_elmt_bitpos): Likewise.
15200 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
15202 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
15203 anonymous access type.
15204 (pthread_sigmask): Now take an access sigset_t.
15206 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
15208 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
15210 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
15212 PR tree-optimization/25737
15213 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
15215 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
15217 * trans.c (Attribute_to_gnu): When subtracting an
15218 offset from a pointer, use POINTER_PLUS_EXPR with
15219 NEGATE_EXPR instead of MINUS_EXPR.
15220 (gnat_to_gnu): Likewise.
15221 * utils.c (convert): When converting between
15222 thin pointers, use POINTER_PLUS_EXPR and sizetype
15224 * utils2.c (known_alignment): POINTER_PLUS_EXPR
15225 have the same semantics as PLUS_EXPR for alignment.
15226 (build_binary_op): Add support for the semantics of
15227 POINTER_PLUS_EXPR's operands.
15228 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
15230 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
15232 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
15233 of get_signed_or_unsigned_type.
15234 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
15236 2007-06-11 Bob Duff <duff@adacore.com>
15237 Thomas Quinot <quinot@adacore.com>
15239 * g-stsifd-sockets.adb (Create): Work around strange behavior of
15240 'bind' on windows that causes 'connect' to fail intermittently, by
15241 retrying the 'bind'.
15242 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15244 2007-06-10 Duncan Sands <baldrick@free.fr>
15246 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
15247 than to void, for the fields when making a new fat pointer type.
15248 (gnat_substitute_in_type): Now substitute_in_type.
15249 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
15250 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
15251 * utils.c (update_pointer_to): Update fat pointers by updating the
15252 dummy node pointers used for the fields.
15254 2007-06-06 Thomas Quinot <quinot@adacore.com>
15255 Bob Duff <duff@adacore.com>
15257 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
15258 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
15259 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
15260 constant Thread_Blocking_IO, always True by default, set False
15261 on a per-runtime basis.
15262 (Need_Netdb_Buffer): New constant.
15264 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
15265 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
15268 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
15269 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
15270 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
15271 child package Task_Safe_NetDB
15272 (Host_Error_Messages): Add stub body.
15273 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15275 * g-soccon-mingw.ads: Add Windows-specific constants.
15276 (Need_Netdb_Buffer): New constant.
15277 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
15278 wrapper and import inet_addr(3) from the standard sockets library
15280 (In_Addr): Add alignment clause.
15281 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15283 2007-06-06 Robert Dewar <dewar@adacore.com>
15285 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15286 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
15287 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
15288 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
15289 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
15290 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
15291 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
15292 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
15293 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
15294 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
15295 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
15296 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
15297 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
15298 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15299 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
15300 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
15301 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
15302 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
15303 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
15304 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
15305 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
15306 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
15307 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
15308 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
15309 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
15310 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
15311 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
15312 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
15313 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
15314 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
15315 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
15316 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
15317 Unchecked_* by Ada.Unchecked_*
15319 2007-06-06 Robert Dewar <dewar@adacore.com>
15321 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
15322 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
15323 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
15324 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
15325 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15326 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
15328 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
15329 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
15330 s-tasloc.adb, s-tasloc.ads: New files.
15332 2007-06-06 Bob Duff <duff@adacore.com>
15334 * g-expect-vms.adb:
15335 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
15336 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
15337 (Send_Signal, Close): Raise Invalid_Process if the process id is
15339 (Pattern_Matcher_Access): Is now a general access type to be able to
15340 use aliased string.
15342 2007-06-06 Thomas Quinot <quinot@adacore.com>
15343 Arnaud Charlet <charlet@adacore.com>
15345 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
15346 (SIGEMT is now used instead of SIGTERM on AIX).
15348 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
15349 (Time_Slice_Supported): Set to True.
15350 Use SIGEMT instead of SIGTERM as SIGADAABORT.
15352 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15354 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
15355 (Time, Time)): Use To_Relative_Time rather than manual calculation to
15356 express the bounds of Duration as Time. Raise Time_Error when the
15357 result is greater or equal to the higher bound of Duration (on the
15359 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
15360 Ada_High_And_Leaps.
15361 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
15362 Ada_High_And_Leaps.
15363 ("-" (Time, Time)): Reorder code.
15364 (All_Leap_Seconds): Removed.
15365 (Arithmetic_Operations.Add): Remove sign related kludge.
15366 (Arithmetic_Operations.Difference): Control the leaps seconds processing
15367 with flag Leap_Support.
15368 (Arithmetic_Operations.Subtract): Remove sign related kludge.
15369 (Check_Within_Time_Bounds): New procedure.
15370 (Clock): Control the leap seconds processing with flag Leap_Support.
15371 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
15372 (Formatting_Operations.Split): Control the leap seconds processing with
15374 (Formatting_Operations.Time_Of): Control the leaps seconds processing
15375 with flag Leap_Support. Adjust the year, month and day (if applicable)
15376 when the value of day seconds designates a new day.
15377 (Split): Use parameter associations for better readability. Integrate
15379 (Time_Of): Use parameter associations for better readability. Integrate
15382 * a-calfor.adb (Split): Use parameter associations for better
15383 readability. Integrate flag Is_Ada_05.
15384 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
15385 better readability. Integrate flag Is_Ada_05.
15387 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15389 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
15390 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
15391 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
15392 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
15393 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
15394 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
15395 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
15396 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
15397 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
15398 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
15399 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
15400 time when entering this routine to detect a backward clock setting
15401 (manual setting or DST adjustment), to avoid waiting for a longer delay
15403 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
15404 Remove handling of deferred priority change, and replace by setting the
15405 task priority directly, as required by AI-188.
15407 (Max_Task_Image_Length): New constant.
15408 Replace Warnings (Off) by Unreferenced pragma, cleaner.
15409 (Dynamic_Priority_Support): Removed, no longer needed.
15410 (Poll_Base_Priority_Change): Ditto.
15411 (Set_Ceiling): Add this procedure to change the ceiling priority
15412 associated to a lock. This is a dummy implementation because dynamic
15413 priority ceilings are not supported by the underlying system.
15415 * a-dynpri.adb (Set_Priority): Take into account case where Target is
15416 accepting a RV with its priority boosted.
15417 Remove handling of deferred priority change, and replace by setting the
15418 task priority directly, as required by AI-188.
15420 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
15422 Remove handling of deferred priority change, and replace by setting the
15423 task priority directly, as required by AI-188.
15424 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
15425 of Self_Id earlier.
15427 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
15428 (Poll_Base_Priority_Change): Removed.
15429 Code clean up: use SSL.Current_Target_Exception.
15431 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
15432 to run as this is a potentially dispatching point.
15433 (Call_Synchronous): Use Local_Defer_Abort.
15434 (Callable): Relax assertion.
15435 (Selective_Wait): Relax assertion in case abort is not allowed.
15436 Remove handling of deferred priority change, and replace by setting the
15437 task priority directly, as required by AI-188.
15439 * s-tasuti.adb (Make_Passive): Adjust assertions.
15440 Remove handling of deferred priority change, and replace by setting the
15441 task priority directly, as required by AI-188.
15443 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15445 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15446 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15447 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
15448 system-vxworks-mips.ads, system-vxworks-alpha.ads,
15449 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
15450 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
15451 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
15452 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
15453 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
15454 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
15455 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
15456 This patch changes the largest non-binary modulus from 2**31-1 to
15458 (Compiler_System_Version): Removed, no longer used.
15459 Clean up system files by removing flags only used on a single target.
15460 Also remove obsolete flags, only used during bootstrap from system.ads
15461 (Address): Add a pragma Preelaborable_Initialization.
15463 * system-aix.ads: Ditto.
15464 (GCC_ZCX_Support): Set to true.
15465 Update priority range on AIX and map Ada priorities to target
15466 priorities appropriately for different scheduling policies.
15468 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
15470 2007-06-06 Vincent Celier <celier@adacore.com>
15472 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
15473 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
15475 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
15476 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
15477 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
15478 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15479 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
15480 MLib.Tgt, containing the default versions of the exported subprograms.
15481 For each platform, create a specific version of the body of new child
15482 package MLib.Tgt.Specific that contains only the body of subprograms
15483 that are different from the default.
15484 (Archive_Builder_Append_Options): New function.
15486 2007-06-06 Matthew Gingell <gingell@adacore.com>
15488 * s-osinte-aix.adb: Map Ada priorities to target priorities
15489 appropriately for different scheduling policies.
15491 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15493 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
15495 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
15496 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
15498 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
15500 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
15501 Noop on VMS, added for interface commonality.
15503 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15504 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15505 Olivier Hainque <hainque@adacore.com>
15507 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
15508 renamed expression of a full renaming at toplevel.
15509 (gnat_to_gnu_entity, case object): If not defining, do not look inside
15510 the values the constant is initialized to if it is an N_Allocator.
15511 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
15512 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
15513 (make_aligning_type): Accept an extra ROOM argument for storage to be
15514 made available before the aligned field, and an extra BASE_ALIGN
15515 argument for callers to pass the alignment guaranteed to be honored for
15516 the whole aligning object. Avoid call to finish_record_type, which only
15517 interferes with the sizes we want to set.
15518 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
15519 make_aligning_type for super-aligned objects on stack.
15520 (components_to_record): Pass the adjusted size of the type when creating
15521 fields in the qualified union for the variant part.
15522 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
15523 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
15525 (maybe_pad_type): Set TYPE_USER_ALIGN.
15526 (make_aligning_type): Likewise.
15527 ALIGN argument is unsigned int.
15528 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
15529 (gnat_to_gnu_param): Likewise, for parameters.
15530 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
15531 if it is constant and stems from a function call.
15532 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
15533 of the record is specified. Adjust accordingly.
15534 (adjust_packed): New static function.
15535 (gnat_to_gnu_field): Use it to adjust the packedness setting.
15536 (components_to_record): Likewise.
15537 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
15538 side-effects if the object is deemed constant.
15539 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
15540 type instead of merely finalizing it. Tidy.
15541 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
15542 <E_Access_Type>: Likewise.
15543 (defer_debug_incomplete_list): Rename to defer_finalize_list.
15544 (defer_debug_level): Delete.
15545 (gnat_to_gnu_entity) <debug_deferred>: Likewise
15546 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
15548 <E_Record_Type>: Do not explicitly defer finalizing the type.
15549 Adjust for write_record_type_debug_info renaming.
15550 <E_Subprogram_Type>: Likewise.
15551 Finalize deferred types right after deferred incomplete types are
15553 (rest_of_type_decl_compilation): New global function.
15554 (components_to_record): Rename defer_debug parameter to do_not_finalize.
15555 (components_to_record): Propagate the packedness to the fields of the
15556 qualified union type if there is a variant part.
15557 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
15558 instead of inline code to adjust the XUT field offsets.
15559 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
15560 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
15561 and write the debug info if the type derives from a discriminated one.
15562 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
15563 <E_Array_Subtype>: Likewise.
15564 <E_String_Literal_Subtype>: Likewise.
15565 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
15566 an alignment clause.
15567 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
15568 before giving warning.
15569 (prepend_one_attribute_to): New function, helper to prepend an attribute
15570 to an attribute list.
15571 (gnat_to_gnu_entity) <E_Procedure>: Use it.
15572 (prepend_attributes): Likewise.
15573 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
15574 <E_Array_Type>: Declare the padding type for the element type, if any.
15575 <E_Array_Subtype>: Likewise.
15576 (defer_limited_with): New variable.
15577 (Gigi_Equivalent_Type): New function.
15578 (gnat_to_gnu_entity): Use it at start and use result throughout.
15579 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
15580 Gigi_Equivalent_Type, support Limited_With, allow two levels of
15581 indirection, precompute if unconstrained array to simplify logic, and
15582 use defer_limited_with to defer elaboration of some types from limited
15584 (finalize_from_with_types): New function.
15586 2007-06-06 Gary Dismukes <dismukes@adacore.com>
15587 Eric Botcazou <ebotcazou@adacore.com>
15588 Tristan Gingold <gingold@adacore.com>
15589 Olivier Hainque <hainque@adacore.com>
15591 * trans.c (Identifier_to_gnu): Change test for deferred constant by
15592 adding guard that the entity is an E_Constant before testing presence
15593 of Full_view (and remove unnecessary test that entity is not a type).
15594 For a CONST_DECL used by reference, manually retrieve
15595 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
15596 (struct language_function): Move from utils.c to here.
15597 (struct parm_attr): New structure.
15598 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
15599 (f_parm_attr_cache): New macro.
15600 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
15601 expressions for the 'First, 'Last and 'Length attributes of the
15602 unconstrained array IN parameters.
15603 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
15604 Allocate the information structure for the function earlier, as well
15605 as the language-specific part.
15606 If the parameter attributes cache has been populated, evaluate the
15607 cached expressions on entry.
15608 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
15609 N_Procedure_Call_Statement and N_Indexed_Component.
15610 (Pragma_to_gnu): Translate inspection_point to an asm statement
15611 containaing a comment and a reference to the object (either its address
15612 for BLKmode or its value).
15613 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
15614 to go to DECL_INITIAL. Together with the size constraint relaxation
15615 in create_var_decl, enlarges the set of situations in which an
15616 identifier may be used as an initializer without implying elaboration
15618 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
15619 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
15621 (maybe_stabilize_reference): Remove lvalues_only parameter.
15622 (gnat_stabilize_reference): Adjust for above change.
15623 (gnat_to_gnu): Do not set location information on the result
15624 if it is a reference.
15625 (add_cleanup): Add gnat_node parameter and set the location of the
15627 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
15628 (Exception_Handler_to_gnu_zcx): Likewise.
15629 (gigi): Remove the cgraph node if the elaboration procedure is empty.
15630 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
15631 the former right after the latter.
15632 (start_stmt_group): Make global.
15633 (end_stmt_group): Likewise.
15634 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
15636 (gnu_program_error_label_stack): Likewise.
15637 (gigi): Initialize them.
15638 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
15639 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
15641 (push_exception_label_stack): New function.
15642 (takes_address): New function.
15644 * utils.c (struct language_function): Move to trans.c from here.
15645 (unchecked_convert): Do not wrap up integer constants in
15646 VIEW_CONVERT_EXPRs.
15647 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
15648 the latter for aggregate types, unexpected by later passes, and relax an
15649 arbitrary size constraint on the former.
15650 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
15651 to compare the sizes.
15652 (convert_vms_descriptor): When converting to a fat pointer type, be
15653 prepared for a S descriptor at runtime in spite of a SB specification.
15654 (shift_unc_components_for_thin_pointers): New function.
15655 (write_record_type_debug_info): For variable-sized fields, cap the
15656 alignment of the pointer to the computed alignment.
15657 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
15658 If REP_LEVEL is 2, do not compute the sizes.
15659 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
15660 (build_unc_object_type): Likewise.
15661 (declare_debug_type): New function.
15663 * ada-tree.def: USE_STMT: removed (not emitted anymore).
15665 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
15666 no statement is expandable anymore.
15667 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
15668 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
15669 when the user requested it explicitely.
15670 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
15672 (get_alias_set): Return alias set 0 for a type if
15673 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
15675 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
15676 (DECL_FUNCTION_STUB): New accessor macro.
15677 (SET_DECL_FUNCTION_STUB): New setter macro.
15679 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
15681 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
15684 2007-06-06 Jose Ruiz <ruiz@adacore.com>
15686 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
15687 Rename to Abort_Task_Interrupt to be able to keep the same interface
15688 as the rest of the targets.
15690 * s-osinte-vxworks.ads s-osinte-vxworks.adb
15691 (To_VxWorks_Priority): Remove explicit "in" mode indicator
15693 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
15696 2007-06-06 Robert Dewar <dewar@adacore.com>
15698 * a-chahan.ads: Remove obsolescent pragmas
15700 * a-chlat1.ads: Minor reformatting
15702 2007-06-06 Robert Dewar <dewar@adacore.com>
15704 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
15707 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
15710 * errout.ads (Finalize): Changed interface
15711 (Output_Messages): New procedure
15712 (Compilation_Errors): New Interface
15714 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
15715 Finalize/Output_Messages interface for Errout
15716 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
15719 2007-06-06 Thomas Quinot <quinot@adacore.com>
15720 Olivier Hainque <hainque@adacore.com>
15721 Robert Dewar <dewar@adacore.com>
15723 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
15725 (Raise_Current_Excep): Call Debug_Raise_Exception just before
15726 propagation starts, to let debuggers know about the event in a reliable
15728 (Local_Raise): Moved to System.Exceptions
15729 More convenient to have this as a separate unit
15731 * s-except.adb, s-except.ads: New files.
15733 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
15734 Debug_Unhandled_Exception in System.Exceptions where it belongs
15735 together with a couple of other debug helpers.
15736 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
15737 the former Unhandled_Exception.
15739 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
15740 (Warn_No_Exception_Propagation): New procedure
15741 (Warn_If_No_Propagation): Rewritten for new warning generation
15742 (Expand_Exception_Handlers): New warning generation
15743 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
15744 (Add_Exception_Label): Use Special_Exception_Package_Used for test
15745 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
15746 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
15747 even if restriction is set (makes life easier in Check_Returns)
15748 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
15749 checking exception identities.
15750 (Expand_Local_Exception_Handlers): Do not optimize when all others case
15751 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
15752 block for handler (used by Check_Returns)
15753 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
15754 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
15755 remove all exception handlers when optimizing local raise statements.
15756 (Find_Local_Handler): Use Get_Renamed_Entity
15757 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
15758 marked analyzed after expanding exception handlers, do not generate
15759 redundant cleanup actions, because they have been constructed already.
15761 2007-06-06 Thomas Quinot <quinot@adacore.com>
15763 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
15764 presence of this categorization pragma is mandated by the language.
15765 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
15768 2007-06-06 Vincent Celier <celier@adacore.com>
15769 Robert Dewar <dewar@adacore.com>
15771 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
15772 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15773 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
15774 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
15775 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
15776 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
15777 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
15778 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
15779 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
15780 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
15781 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
15783 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
15784 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
15785 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
15786 Use variables of types File_Name_Type and Unit_Name_Type in error
15788 (Get_Name): Add parameter Ignore_Special, and set it reading file name
15789 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
15791 Define flags Flag217-Flag230 with associated subprograms
15792 (Flag_Word5): New record type.
15793 (Flag_Word5_Ptr): New access type.
15794 (To_Flag_Word5): New unchecked conversion.
15795 (To_Flag_Word5_Ptr): Likewise.
15796 (Flag216): New function.
15797 (Set_Flag216): New procedure.
15799 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15801 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
15804 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
15806 2007-06-06 Javier Miranda <miranda@adacore.com>
15808 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
15810 (Object_Specific_Data_Array): This is now internal to the package.
15811 (Object_Specific_Data): This is now internal to the package.
15812 (Select_Specific_Data_Element): This is now internal to the package.
15813 (Select_Specific_Data_Array): This is now internal to the package.
15814 (Select_Specific_Data): This is now internal to the package.
15815 (Offset_To_Top_Function_Ptr): This is now public.
15816 (To_Offset_To_Top_Function_Ptr): Removed.
15817 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
15818 local to subprogram Offset_To_Top.
15819 (Predefined_DT): Removed.
15820 (Typeinfo_Ptr): Removed.
15821 (OSD): This function is now internal to this package.
15822 (SSD): This function is now internal to this package.
15823 (DT): New function that displaces the pointer to the table of primitives
15824 to get access to the enclosing wrapper record.
15825 (IW_Membership): Code cleanup.
15826 (Offset_To_Top): Code cleanup.
15827 (Predefined_DT): Removed.
15828 (Register_Interface_Tag): Removed.
15829 (Set_Interface_Table): Removed.
15830 (Set_Offset_Index): Removed.
15831 (Set_Offset_To_Top): Code cleanup.
15832 (Set_OSD): Removed.
15833 (Set_Signature): Removed.
15834 (Set_SSD): Removed.
15835 (Set_Tagged_Kind): Removed.
15836 (Typeinfo_Ptr): Removed.
15838 (Displace): Add missing check on null actual.
15840 * exp_disp.ads, exp_disp.adb
15841 (Select_Expansion_Utilities): Removed.
15842 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
15843 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
15844 the interface requires a new parameter.
15845 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
15846 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
15847 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
15848 Done to remove package Select_Expansion_Utilities.
15849 (Make_DT): New implementation for statically allocated dispatch tables.
15850 (Make_Secondary_DT): Moved to the scope of Make_DT.
15851 (Register_Primitive): Code cleanup plus incoporate the use of the new
15852 function DT_Address_Attribute.
15853 (Expand_Interface_Thunk): The profile of this subprogram has been
15854 changed to return the Thunk_Id and the corresponding code.
15855 (Fill_DT_Entry): Removed. Its functionality is now provided by
15856 subprogram Register_Primitive.
15857 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
15858 subprogram Register_Primitive.
15859 (Register_Primitive): New subprogram that incorporates the previous
15860 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
15861 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
15862 was only required to call Make_DT_Access_Action, which is now removed.
15863 (Ada_Actions): Removed
15864 (Action_Is_Proc): Removed
15865 (Action_Nb_Arg): Removed
15866 Replace all the calls to Make_DT_Access_Action by direct calls to
15867 Make_Procedure_Call_Statement or Make_Function_Call.
15868 (Set_DTC_Entity_Value): New subprogram.
15869 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
15870 (Expand_Interface_Thunk): Add missing support for primitives that are
15871 functions with a controlling result (case in which there is no need
15872 to generate the thunk).
15874 * exp_atag.ads, exp_atag.adb
15875 (Build_DT): New subprogram that displaces the pointer to reference the
15876 base of the wrapper record.
15877 (Build_Typeinfo_Offset): Removed.
15878 (RTE_Tag_Node): Removed.
15879 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
15880 (Build_Get_RC_Offset): Removed.
15881 (Build_Inherit_Predefined_Prims): Removed.
15882 (Build_Inherit_TSD: Removed.
15883 (Build_New_TSD): Removed.
15884 (Build_Set_External_Tag): Removed.
15885 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
15886 (Build_Set_Prim_Op_Address): Add documentation.
15887 (Build_Set_TSD): Removed.
15889 * rtsfind.ads, rtsfind.adb
15890 (Load_Fail): If load fails and we are not in configurable run-time
15891 mode, then raise Unrecoverable_Error.
15892 (Text_IO_Kludge): Generate an error message if a run-time library is
15893 not available in a given run-time (ie. zfp run-time).
15894 (RTE_Record_Component): Add code to check that the component we search
15895 for is not found in two records in the given run-time package.
15896 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
15897 (RE_DT_Predef_Prims_Offset): New entity
15898 (RE_Static_Offset_To_Top): New entity
15899 (RE_HT_Link): New entity.
15900 (System_Address_Image): Addition of this run-time package.
15901 (RE_Address_Image): New entity.
15902 (RE_Abstract_Interface): Removed.
15903 (RE_Default_Prim_Op_Count): Removed.
15904 (RE_DT_Entry_Size): Removed.
15905 (RE_DT_Min_Prologue_Size): Removed.
15906 (RE_DT_Prologue_Size): Removed.
15907 (RE_Ifaces_Table_Ptr): Removed.
15908 (RE_Interface_Data_Ptr): Removed.
15909 (RE_Type_Specific_Data): Removed.
15910 (RE_Primary_DT): Removed.
15911 (RE_Register_Interface_Tag): Removed.
15912 (RE_Set_Offset_Index): Removed.
15913 (RE_Set_OSD): Removed.
15914 (RE_Set_SSD): Removed.
15915 (RE_Set_Signature): Removed.
15916 (RE_Set_Tagged_Kind): Removed.
15917 (RE_Address_Array): New entity.
15918 (RE_DT): New entity.
15919 (RE_Iface_Tag): New entity.
15920 (RE_Interfaces_Table): New entity.
15921 (RE_No_Dispatch_Table): New entity.
15922 (RE_NDT_Prims_Ptr): New entity.
15923 (RE_NDT_TSD): New entity.
15924 (RE_Num_Prims): New entity.
15925 (RE_Offset_To_Top_Function_Ptr): New entity.
15926 (RE_OSD_Table): New entity.
15927 (RE_OSD_Num_Prims): New entity.
15928 (RE_Predef_Prims): New entity
15929 (RE_Predef_Prims_Table_Ptr): New entity.
15930 (RE_Primary_DT): New entity.
15931 (RE_Signature): New entity.
15932 (RE_SSD): New entity.
15933 (RE_TSD): New entity.
15934 (RE_Type_Specific_Data): New entity.
15935 (RE_Tag_Kind): New entity.
15937 2007-06-06 Thomas Quinot <quinot@adacore.com>
15939 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
15940 C imported variable.
15941 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
15944 2007-06-06 Robert Dewar <dewar@adacore.com>
15946 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
15949 2007-06-06 Vincent Celier <celier@adacore.com>
15951 * a-tifiio.adb (Put, internal): For negative numbers, check that there
15952 is room for at least one digit and the minus sign.
15953 (Put.Put_Character): Never put a character outside of the range of
15956 2007-06-06 Olivier Hainque <hainque@adacore.com>
15957 Eric Botcazou <ebotcazou@adacore.com>
15959 * utils2.c (build_allocator): Provide the extra arguments to
15960 make_aligning_type for super-aligned objects allocated from the default
15961 pool. Leave enough room for a pointer before the aligning field, and
15962 store the system's allocator return value there.
15963 (build_call_alloc_dealloc): When releasing a super-aligned object,
15964 retrieve the system's allocator return value from where build_allocator
15965 has stored it, just ahead of the adjusted address we are passed.
15966 (build_call_raise): Handle properly the generation of line numbers when
15967 the node is marked No_Location.
15968 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
15969 by using DECL_UID on ties.
15970 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
15972 (build_call_raise): Handle converting exception into goto; support new
15974 (build_component_ref): Add new arg to build_call_raise.
15976 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15978 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
15979 "." in the case of nnn.xxx when nnn terminates with an underscore.
15980 Parse the remaining "#" or ":" in the case of nnn#.xxx#
15982 2007-06-06 Robert Dewar <dewar@adacore.com>
15984 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
15986 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15987 Vincent Celier <celier@adacore.com>
15988 Robert Dewar <dewar@adacore.com>
15990 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
15992 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
15993 ((destructor)) for adafinal, even when switch -a is used.
15994 Do not issue pragma Linker_Destructor for adafinal when switch -a is
15996 (Gen_Object_Files_Options): Add formatting of Linker Options, when
15997 Output_Linker_Option_List is set. Suppress this formatting when
15998 Zero_Formatting is set.
15999 Add case for CLI_Target.
16000 (System_Restrictions_Used): New flag, used to avoid generating with of
16001 System_Restrictions and initialization of the data unless there is
16002 some use of System.Restrictions in the partition.
16003 (Check_System_Restrictions_Used): New procedure
16005 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
16006 since we only with this unit in the binder file if it is used elsewhere
16009 2007-06-06 Vincent Celier <celier@adacore.com>
16011 * bindusg.adb: Add line for @<response file>
16012 Add lines for new switches -R and -Z
16014 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
16015 hierarchy in the list of files of the closure when -R is used
16016 (Gnatbind): Accept arguments starting with '@' to indicate response
16017 files and take the arguments from the response files.
16018 If List_Closure is set, display the referenced files
16020 2007-06-06 Javier Miranda <miranda@adacore.com>
16021 Robert Dewar <dewar@adacore.com>
16022 Ed Schonberg <schonberg@adacore.com>
16024 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
16025 which the address-clause is applied to in-mode actuals (allowed by
16027 (Apply_Discriminant_Check): Do not generate a check if the type is
16028 constrained by a current instance.
16029 (Activate_Division_Check): New procedure
16030 (Activate_Overflow_Check): New procedure
16031 (Activate_Range_Check): New procedure
16032 Call these new Activate procedures instead of setting flags directly
16033 (Apply_Array_Size_Check): Removed, no longer needed.
16034 Code clean up: remove obsolete code related to GCC 2.
16035 (Get_E_Length): Protect against bomb in case scope is standard
16036 (Selected_Range_Checks): If the node to be checked is a conversion to
16037 an unconstrained array type, and the expression is a slice, use the
16038 bounds of the slice to construct the required constraint checks.
16039 Improve NOT NULL error messages
16040 (Apply_Constraint_Check): If the context is a null-excluding access
16041 type, diagnose properly the literal null.
16043 2007-06-06 Pascal Obry <obry@adacore.com>
16045 * clean.adb (Clean_Archive): Use untouched casing for the archive name
16046 and the corresponding .deps file.
16047 (Clean_Interface_Copy_Directory): Use untouched casing for the library
16048 src directory. Minor code-clean-up. Use untouched casing for files
16049 read into the library src dir.
16050 (Clean_Library_Directory): Idem.
16051 (Parse_Cmd_Line): Accept new switch -aP
16053 2007-06-06 Javier Miranda <miranda@adacore.com>
16054 Ed Schonberg <schonberg@adacore.com>
16055 Robert Dewar <dewar@adacore.com>
16056 Eric Botcazou <ebotcazou@adacore.com>
16057 Arnaud Charlet <charlet@adacore.com>
16059 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
16060 applicable to types that have the With_Type flag set. Returns the
16061 non-limited view of the type, if available, otherwise the type itself.
16062 For class-wide types, there is no direct link in the tree, so we have
16063 to retrieve the class-wide type of the non-limited view of the Etype.
16064 New attributes Static_Initialization and Static_Elaboration_Desired.
16065 Remove the pragma Thread_Body, and the associated flag
16066 Is_Thread_Body in entities, and all related code.
16067 (Suppress_Value_Tracking_On_Call): New flag
16068 E_Exception has Esize and Alignment fields
16069 (Universal_Aliasing): New function.
16070 (Set_Universal_Aliasing): New procedure.
16071 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
16072 (Check_Nested_Access): New procedure.
16073 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
16074 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16075 (Related_Interface): New attribute. Present in dispatch table pointer
16076 components of records. Set to point to the entity of the corresponding
16078 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
16079 (Original_Access_Type): Remove, not needed.
16080 (Root_Type): Handle properly subtypes of class-wide-types.
16083 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
16084 class-wide types visible through limited-with clauses.
16085 (Try_Primitive_Operation): When examining all primitive operations of a
16086 tagged type, do not consider subprograms labeled as hidden unless they
16087 belong to a private generic type with a tagged parent.
16088 (Try_Object_Operation): Extensive rewriting, to handle properly various
16089 overloading cases, when several ancestors may have class-wide operations
16090 that are possible candidates, and when the overloaded functions return
16091 array types and have defaulted parameters so that the call may be
16092 interpreted as an indexing.
16093 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
16094 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
16095 successive actuals before analyzing the call itself.
16096 (Try_Primitive_Operation): A primitive operation is compatible with the
16097 prefix if the prefix has a synchronized type and the type of the formal
16098 is its corresponding record, as can be the case when the primitive
16099 operation is declared outside of the body of the type.
16100 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
16101 perform homonym traversal, looking for class-wide operation matches
16102 (formerly done in statements of Try_Class_Wide_Operation). Matches on
16103 access parameters are now restricted to anonymous access types.
16104 (Mark_Allocator): An allocator with a discriminant association parent is
16106 (Try_One_Prefix_Interpretation): If the type of the object is
16107 incomplete, as can be happen when it is a limited view obtained through
16108 a limited_with_clause, the selected component is not part of a prefixed
16110 (Complete_Object_Operation): Diagnose properly an object that is not
16111 aliased when the corresponding controlling formal is an access
16113 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
16114 ambiguous calls in prefixed notation, where two primitives differ only
16115 in that the controlling argument of one is an access parameter.
16117 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
16118 whether a function that returns an unconstrained type can be inlined.
16119 (Process_Formals): Diagnose properly the illegal use of an incomplete
16120 type in the profile of an access_to_subprogram declaration.
16121 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
16122 operations are attached to the corresponding record.
16123 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
16124 When processing a primitive of a concurrent type which implements an
16125 interface change the type of all controlling formals to that of the
16126 corresponding record type.
16127 (Check_Synchronized_Overriding): Relax the conditional logic when trying
16128 to determine the tagged type to which a primitive belongs.
16129 (Check_Conventions): Capture condition to ignore a primitive operation
16130 (which is shared between the loop in Check_Conventions and the one in
16131 Check_Convention) in a new local function Skip_Check.
16132 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
16133 confusion with Check_Conventions' own Prim_Op local variable.
16134 (Create_Extra_Formals): Test for a tagged result type rather than a
16135 controlling result when determining whether to add a BIP_Alloc_Form
16136 formal and a BIP_Final_List formal to the function.
16137 (Check_Conformance); For parameters that are anonymous access types,
16138 subtype conformance requires that the not null and the constant
16139 indicators must match
16140 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
16141 to retrieve the appropriate type when processing a concurrent type
16142 declared within a generic. Minor comment reformatting. Change invocation
16143 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
16145 (Analyze_Subprogram_Body): If the return type of a function is an
16146 anonymous access to the limited view of a class-wide type, and the
16147 non-limited view of the type is available, update the type of the
16148 function so that code can be generated.
16149 (Process_Formals): In case of access-subtype itype whose designated
16150 type is also an itype (situation that happens now with access to
16151 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
16152 attribute to avoid backend problems.
16153 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
16154 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
16155 anonymous types' designated types are same before testing
16156 Subtypes_Statically_Match.
16157 (Create_Extra_Formals): Test for a named access parameter that is a
16158 controlling formal as an additional condition for adding an
16159 accessibility level formal. This can occur in the subp type created for
16160 dispatching calls in Expand_Dispatching_Call, and allows calling
16161 Create_Extra_Formals from that procedure rather than special-casing the
16162 extra formals there.
16163 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
16164 when the function has a controlling result.
16165 (Check_Returns): Add much more knowledge of the optimization of local
16166 raise statements to gotos, to retain proper warnings in this case.
16167 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
16168 nodes when looking for last statement.
16170 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
16171 class-wide types visible through limited with clauses.
16172 (Add_One_Interp): If the operands are anonymous access types, the
16173 predefined operator on universal_access is immediately visibles
16174 (Find_Unique_Type): Handle anonymous access to subprogram types just as
16175 other anonymous access types.
16176 (Disambiguate): Take into account CIL convention.
16177 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
16179 2007-06-06 Robert Dewar <dewar@adacore.com>
16181 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
16182 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
16183 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
16184 Fix lower bound of tables.
16187 * nlists.adb: Ditto.
16188 (Prev_Node, Next_Node): Change index type to Int so that it properly
16189 covers the range First_Node_Id - 1 up.
16191 2007-06-06 Javier Miranda <miranda@adacore.com>
16192 Ed Schonberg <schonberg@adacore.com>
16193 Bob Duff <duff@adacore.com>
16194 Hristian Kirtchev <kirtchev@adacore.com>
16196 * exp_aggr.ads, exp_aggr.adb:
16197 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
16198 in extension aggregates.
16199 (Flatten): Other conditions being met, an aggregate is static if the
16200 low bound given by component associations is different from the low
16201 bound of the base index type.
16202 (Packed_Array_Aggregate_Handled): If the component type is itself a
16203 packed array or record, the front-end must expand into assignments.
16204 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
16205 Init_Pr, instead of Ancestor_Is_Expression.
16206 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
16207 coextension chain root, either generate a list controller or use the
16208 already existing one.
16209 (Static_Array_Aggregate): New procedure to construct a positional
16210 aggregate that can be handled by the backend, when all bounds and
16211 components are compile-time known constants.
16212 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
16213 types covering interface types into assignments.
16214 (Replace_Type): move to Build_Record_Aggr_Code.
16215 (Expand_Record_Aggr_Code): if the target of the aggregate is an
16216 interface type, convert to the definite type of the aggregate itself,
16217 so that needed components are visible.
16218 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
16219 components and the context is an extended return statement do not
16220 create a transient block for it, to prevent premature finalization
16221 before the return is executed.
16222 (Gen_Assign): Do not generate a call to deep adjust routine if the
16223 component type is itself an array of controlled (sub)-components
16224 initialized with an inner aggregate.
16225 (Component_Check): New name for Static_Check. This name is now more
16226 appropriate, and documentation is added which was missing.
16227 (Component_Check): Add test for bit aligned component value
16228 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
16229 Tagged_Comps, name is more appropriate given added function below.
16230 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
16232 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16233 Javier Miranda <miranda@adacore.com>
16234 Robert Dewar <dewar@adacore.com>
16236 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
16237 Terminated: Add unchecked type conversion from System.Address to
16238 System.Tasking.Task_Id when calling the predefined primitive
16240 Disable new Ada 05 accessibility check for JVM.NET targets, which
16241 cannot be implemented in a practical way.
16242 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
16243 the sources always references the tag of the actual object. Therefore,
16244 if 'Tag is applied in the sources to class-wide interface objects we
16245 generate code that displaces "this" to reference the base of the object.
16246 (Expand_N_Attribute_Reference, case Size): Return specified size if
16247 known to front end.
16248 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
16249 has code that displaces the pointer of the object to manage interface
16250 types. However this code must not be executed when the prefix is a
16251 subprogram. This bug caused the wrong expansion of the internally
16252 generated assignment that fills the dispatch table when the primitive
16253 is a function returning a class-wide interface type.
16254 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
16255 Set_Attribute_Name for Name_Unaligned_Valid.
16257 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16258 Gary Dismukes <dismukes@adacore.com>
16260 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
16261 If the initialization is the equivalent aggregate of the initialization
16262 procedure of the type, do not remove it.
16263 (Expand_N_Attribute_Definition_Clause): Exclude access variables
16264 initialized to null from having their expression reset to empty and
16265 note this exception in the comment.
16267 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16268 Robert Dewar <dewar@adacore.com>
16269 Ed Schonberg <schonberg@adacore.com>
16270 Gary Dismukes <dismukes@adacore.com>
16272 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
16273 Add "with" and "use" clauses for Sem_Attr.
16274 (Expand_Current_Value): Do not replace occurences of attribute
16275 references where the prefix must be a simple name.
16277 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
16278 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
16279 Attribute_Requires_Simple_Name_Prefix.
16280 (Name_Modifies_Prefix): Body of new function.
16281 (Requires_Simple_Name_Prefix): Body of new function.
16282 (Resolve_Attribute, case Access): Improve error message for case of
16283 mismatched conventions.
16284 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
16286 (Analyze_Attribute, case 'Access): If the type of the prefix is a
16287 constrained subtype for a nominal unconstrained type, use its base type
16288 to check for conformance with the context.
16289 (Resolve_Attribute): Remove test of the access type being associated
16290 with a return statement from condition for performing accessibility
16291 checks on access attributes, since this case is now captured by
16292 Is_Local_Anonymous_Access.
16293 (Analyze_Access_Attribute): Set Address_Taken on entity
16294 (Analyze_Attribute, case Address): Set Address_Taken on entity
16295 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
16296 validating an access attribute whose prefix is a current instance.
16297 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
16298 applied to dispatching operations, if freezing is required then we set
16299 the attribute Has_Delayed_Freeze in the prefix's entity.
16300 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
16301 current scope if access of local subprogram taken
16302 (Analyze_Access_Attribute): Check legality of self-reference even if the
16303 expression comes from source, as when a single component association in
16304 an aggregate has a box association.
16305 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
16306 the prefix if it is a protected operation and the attribute is
16307 Unrestricted_Access.
16308 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
16309 reference to the base type of the context, to force a constraint check
16310 when the context is an access subtype with an explicit constraint.
16311 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
16312 node is rewritten as an interface conversion. leave unanalyzed after
16313 resolution, to ensure that type checking against the context will take
16316 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16317 Javier Miranda <miranda@adacore.com>
16318 Robert Dewar <dewar@adacore.com>
16320 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
16321 wrapper when the full view of the controlling type of an inherited
16322 function that dispatches on result implements interfaces.
16323 (Expand_N_Object_Declaration): In cases where the type of the
16324 declaration is anonymous access, create finalization list for it.
16325 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
16326 if the object has no explicit initialization, to match description of
16327 functionality of pragam Persistent_BSS.
16328 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
16329 new function to build static aggregates, to replace initialization call
16330 when static initialization is desired.
16331 (Freeze_Type): Generate a list controller for an access type whenever
16332 its designated type has controlled anonymous access discriminants.
16333 (Build_Equivalent_Aggregate): New procedure to compute a static
16334 aggregate to be used as default initialization for composite types,
16335 instead of a generating a call to the initialization procedure for the
16337 (Build_Initialization_Call): When available, replace a call to the
16338 initialization procedure with a copy of the equivalent static aggregate
16340 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
16341 declarations for objects of a class-wide interface type, rather than
16342 just identifiers, to prevent visibility problems.
16343 (Expand_N_Object_Declaration): When expanding the declaration for an
16344 object of a class-wide interface type, preserve the homonym chain of
16345 the original entity before exchanging it with that of the generated
16346 renaming declaration.
16347 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
16348 active, because there is no way to handle the exception.
16349 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
16350 to do a minimum decoration of the Access_Disp_Table list.
16351 (Expand_Record_Controller): Avoid the addition of the controller between
16352 the component containing the tag of a secondary dispatch table and its
16353 adjacent component that stores the offset to the base of the object.
16354 This latter component is only generated when the parent type has
16355 discriminants ---documented in Add_Interface_Tag_Components).
16356 (Apply_Array_Size_Check): Removed, no longer needed.
16357 (Expand_N_Full_Type_Declaration): If the type has anonymous access
16358 components, create a Master_Entity for it only if it contains tasks.
16359 (Build_Init_Procedure): Suppress the tag assignment compiling under
16361 (Freeze_Record_Type): Remove code associated with creation of dispatch
16363 (Init_Secondary_Tags): Update type of actuals when generating calls to
16364 Ada.Tags.Set_Offset_To_Top
16365 (Stream_Operation_OK): Disable use of streams compiling under no
16367 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
16368 if Has_Init_Expression set.
16369 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
16370 Register_Primitive, which provides the same functionality.
16371 (Requires_Init_Proc): Return false in case of interface types.
16372 (Add_Secondary_Tables): Use the new attribute Related_Interface to
16374 (Predefined_Primitive_Freeze): Do not assume that an internal entity
16375 is always associated with a predefined primitive because the internal
16376 entities associated with interface types are not predefined primitives.
16377 Therefore, the call to Is_Internal is replaced by a call to the
16378 function Is_Predefined_Dispatching_Operation.
16379 (Make_Eq_If): When generating the list of comparisons for the
16380 components of a given variant, omit the controller component that is
16381 present if the variant has controlled components.
16383 2007-06-06 Javier Miranda <miranda@adacore.com>
16384 Hristian Kirtchev <kirtchev@adacore.com>
16385 Bob Duff <duff@adacore.com>
16387 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
16388 handle the creation of finalization lists and calls for nested
16389 coextensions when the root of the chains is part of a return statement.
16390 (Inside_A_Return_Statement): New function inside Complete_Coextension_
16392 (Expand_Record_Equality): Skip components that are interface types.
16393 (Displace_Allocator_Pointer): Add missing support for interface subtypes
16394 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
16395 with Rewrite_Coextension. Change the condition for detecting coextension
16397 (Is_Local_Access_Discriminant): Removed.
16398 (Rewrite_Coextension): New routine which rewrites a static coextension
16399 as a temporary and uses its unrestricted access in the construction of
16401 (Complete_Coextension_Finalization): New routine. Generate finalization
16402 attachment calls to all delayed coextensions.
16403 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
16404 the allocator is not a coextension itself and has delayed coextensions.
16405 If the current allocator is controlled, but also a coextension, delay
16406 the generation of the finalization attachment call.
16407 Rename local variable "Node" to "Nod" in order to avoid confusion with
16409 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
16410 limited types that are not inherently limited. Such an allocator is
16411 illegal, but is generated by the expander for a return statement, to
16412 copy the result onto the secondary stack. This is the only case where a
16413 limited object can be copied. Generate code to displace the pointer
16414 to the object if the qualified expression is a class-wide interface
16415 object. Such displacement was missing and hence the copy of the object
16417 (Apply_Accessibility_Check): Handle allocated objects initialized in
16419 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
16420 and Expand_Allocator_Expression. Allocating class-wide interface objects
16421 this routine displaces the pointer to the allocated object to reference
16422 the component referencing the corresponding secondary dispatch table.
16423 Expand_Allocator_Expression): Add missing support to allocate class-wide
16424 interface objects initialized with a qualified expression.
16425 (Get_Allocator_Final_List): Test for an anonymous access type that is a
16426 function result type, and use the finalization list associated with the
16427 function scope in that case (such an anonymous type should not be
16428 treated like an access parameter's type).
16430 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16431 Gary Dismukes <dismukes@adacore.com>
16432 Javier Miranda <miranda@adacore.com>
16434 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
16435 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
16436 required exception handler.
16437 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
16438 properly the case of a function whose return type is a limited
16439 class-wide interface type. Modify the code of the accessibility
16440 check to handle class-wide interface objects. In this case we need to
16441 displace "this" to reference the primary dispatch table to get access
16442 to the TSD of the object (to evaluate its accessibility level).
16443 (Expand_N_Extended_Return_Statement): Test for a tagged result type
16444 rather than a controlling result as one of the conditions for
16445 generating tests of the implicit BIP_Alloc_Form formal. The
16446 initialization assignment is also handled according to whether the
16447 result is tagged instead of controlling.
16448 In the case where the init assignment is inserted in the "then" part of
16449 the allocation conditional, rewrite the target to be a dereference of
16450 the implicit BIP_Object_Access formal.
16451 If the returned value is unconstrained and created on the secondary
16452 stack, mark the enclosing block and function so that the secondary
16453 stack is not reclaimed on return.
16454 Treat returns from functions with controlling results similarly to
16455 returns from functions with unconstrained result subtypes.
16456 If the object returned is unconstrained, and an allocator must be
16457 created for it, analyze the allocator once the block for the extended
16458 return is installed, to ensure that finalizable components
16459 of the expression use the proper finalization list. Guard the call to
16460 Move_Final_List with a check that there is something to finalize.
16461 (Make_Tag_Ctrl_Assignment): Use "old" handling
16462 of controlled type assignment for virtual machines, since new code uses
16463 unsupported features (such as direct access to bytes in memory).
16465 2007-06-06 Gary Dismukes <dismukes@adacore.com>
16466 Ed Schonberg <schonberg@adacore.com>
16468 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
16469 accessibility actual, check for the case of an aliased object that has
16470 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
16471 we fall into processing for the attribute rather than the name of the
16473 (Expand_Inline_Call): If an actual is a literal, and the corresponding
16474 formal has its address taken in the body, create a temporary to capture
16475 value. If the return type is a limited interface, do not treat the
16476 return value as Controlled.
16477 (Is_In_Place_Function): If the return type is a limited interface,
16478 treat as returning in place. The actual returned object may not always
16479 be limited, but the caller has to assume that it is returned in place.
16480 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
16481 context of an allocator, use the correct finalization chain (that is,
16482 the chain belonging to the access type, rather than the chain belonging
16483 to the current scope).
16484 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
16485 result type rather than a controlling result as a precondition for
16486 adding an allocation form actual to a build-in-place call.
16487 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
16488 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
16489 primitive in the dispatch tables. This work is now done by Make_DT when
16490 the type is frozen.
16491 (Register_Predefined_DT_Entry): Removed.
16492 (Add_Return): If end label is not present, use sloc of last statement
16493 for generated return statement in procedure, for better gdb behavior
16495 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
16496 object address nodes to ensure proper processing by routines like
16498 (Expand_Call): Fix generation of validity check for parameter
16499 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
16500 the allocation form parameter if the result subtype is constrained,
16501 except when the function has a controlling result.
16502 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
16503 rather than Is_Controlled and Has_Controlled_Component, since we want to
16504 include class-wide result types in this treatment. Also test for a
16505 controlling result, since that also requires passing a finalization
16507 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
16508 even when the result subtype is constrained, to handle calls involving
16509 controlling results.
16510 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
16511 is now called even when the result subtype is constrained, to handle
16512 calls involving controlling results.
16513 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
16514 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
16515 now performs the test).
16516 (Make_Build_In_Place_Call_In_Object_Declaration):
16517 Add_Alloc_Form_Actual_* is now called even when the result subtype is
16518 constrained, to handle calls involving controlling results.
16519 (Add_Return): Accomodate rewritten pattern from local raise to goto
16520 transformation, so that we still recognize an transfer statement
16521 and do the right thing here in that case.
16522 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
16523 and end of subprogram code.
16524 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
16525 support for primitives that are functions (without formals) with a
16526 controlling result.
16527 (Inherited_From_Formal): If the actual subtype has not generic parent
16528 type, it is not an actual for a formal derived type, and there is no
16529 operation to inherit from the formal.
16531 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16532 Thomas Quinot <quinot@adacore.com>
16534 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
16535 inserted cleanup code appropriately for GDB use.
16536 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
16537 exception handler for Deep_Adjust or Deep_Finalize.
16538 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
16539 Raise_From_Controlled_Operation is available, use a call to that
16540 subprogram instead of a plain "raise Program_Error" node to raise
16541 Program_Error if an exception is propagated from an Adjust or Finalize
16543 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
16544 appears in the optional statement list of a triggering alternative, the
16545 scope actions can be inserted directly there, and not in the list that
16546 includes the asynchronous select itself.
16548 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16549 Robert Dewar <dewar@adacore.com>
16550 Hristian Kirtchev <kirtchev@adacore.com>
16552 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
16553 generated exception handler appropriately when debugging generated code.
16554 Deal properly with No_Exception_Propagation restriction mode.
16555 (Expand_N_Abort_Statement): Add an unchecked type conversion from
16556 System.Address to System.Tasking.Task_Id when processing the result of
16557 the predefined primitive _disp_get_task_id.
16558 (Expand_N_Asynchronous_Select): Clarify comment.
16559 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
16560 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
16561 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
16562 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
16563 privals and for generated call to Complete_Entry_Body, for better gdb
16565 (Copy_Result_Type): Utility to construct a parameter and result profile
16566 for protected functions whose return type is an anonymous access to
16568 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
16570 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
16571 point when the local-raise-to-goto transformation has taken place.
16573 2007-06-06 Javier Miranda <miranda@adacore.com>
16574 Nicolas Setton <setton@adacore.com>
16576 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
16577 functionality when the backend is generating code.
16578 Otherwise any serious error
16579 reported by the backend calling the frontend routine Error_Msg
16580 changes the Compilation_Mode to Check_Semantics, disables the
16581 functionality of this routine and causes the generation of
16582 spureous additional errors.
16584 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
16585 debugging information now generated by the compiler for fat-pointer
16587 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
16589 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
16591 2007-06-06 Thomas Quinot <quinot@adacore.com>
16593 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
16594 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16595 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16596 For a remote call to a function with a classwide return type, apply an
16597 E.4(18) check to the returned value.
16598 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
16599 stream attributes of the designated type of an RACW, as they are not
16600 dispatching primitive operations.
16602 2007-06-06 Geert Bosch <bosch@adacore.com>
16604 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
16606 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
16608 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
16609 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
16611 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
16613 2007-06-06 Javier Miranda <miranda@adacore.com>
16615 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
16616 attribute compiling package Ada.Tags under No_Run_Time_Mode.
16618 2007-06-06 Javier Miranda <miranda@adacore.com>
16620 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
16621 deallocation of class-wide interface objects.
16622 (Expand_Dispatching_Constructor_Call): Take into account that if the
16623 result of the dispatching constructor is an interface type, the
16624 function returns a class-wide interface type; otherwise the returned
16625 object would be actual. The frontend previously accepted returning
16626 interface types because Expand_Interface_Actuals silently performed
16627 the management of the returned type "as if" it were a class-wide
16629 (Expand_Dispatching_Constructor_Call): Replace call to
16630 Make_DT_Access_Action by direct call to Make_Function_Call.
16632 2007-06-06 Robert Dewar <dewar@adacore.com>
16633 Ed Schonberg <schonberg@adacore.com>
16635 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
16636 compute masking constant, since we now set Esize properly to the
16638 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
16639 to match the alignment.
16640 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
16641 packed arrays of 8 bits or less.
16643 * freeze.adb (Freeze_Entity): When freezing the formals of a
16644 subprogram, freeze the designated type of a parameter of an access type
16645 only if it is an access parameter.
16646 Increase size of C convention enumeration object
16647 (Freeze_Entity, array type case): Make sure Esize value is properly
16648 adjusted for the alignment if it is known.
16649 (Freeze_Entity, array type case): When checking bit packed arrays for
16650 the size being incorrect, check RM_Size, not Esize.
16651 (Freeze_Record_Type): Check for bad discriminated record convention
16652 (In_Exp_Body): Return true if the body is generated for a subprogram
16653 renaming, either an attribute renaming or a renaming as body.
16654 (Check_Itype): If the designated type of an anonymous access component
16655 is a non-protected subprogram type, indicate that it is frozen, to
16656 prevent out-of-scope freeze node at some subsequent call.
16657 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
16658 only if the subprogram is neither imported nor exported, as well as the
16659 NCA descriptor class if the subprogram is exported.
16661 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16662 Arnaud Charlet <charlet@adacore.com>
16663 Robert Dewar <dewar@adacore.com>
16664 Gary Dismukes <dismukes@adacore.com>
16666 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
16667 default initialization on an imported object, when there is no
16668 initialization call generated for it.
16669 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
16672 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
16673 Static_Elaboration_Desired.
16674 Remove pragma Thread_Body.
16675 Implement a new pragma No_Body
16676 Removes the Explicit_Overriding pragma
16677 Remove Optional_Overriding pragma
16678 (Prag): Deal with Universal_Aliasing.
16679 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16680 Pragma_CIL_Constructor): New names.
16682 * sem_cat.adb (Validate_Object_Declaration): An initialization that
16683 uses the equivalent aggregate of a type must be treated as an implicit
16685 (Get_Categorization): Check a unit for pragma Preelaborate only if it
16686 has none of the other categories.
16687 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
16688 to apply Import to an object renaming declaration.
16690 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
16691 from a C++ class should be declared as limited and that it will be
16692 considererd limited.
16693 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
16694 should be declared as limited and that it will be considererd limited.
16695 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
16696 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
16697 (Analyze_Pragma): Deal with Universal_Aliasing.
16698 (Sig_Flags): Likewise.
16699 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
16700 (Overflow_Checks_Unsuppressed): New flag.
16701 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16702 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
16703 case of JVM or .NET targets, and compiling user code.
16704 Add debugging convenience routine rv
16706 2007-06-06 Robert Dewar <dewar@adacore.com>
16708 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
16709 are interface type.
16710 (Build_Elementary_Input_Call): For floating-point use right type in the
16711 absence of strange size or stream size clauses.
16712 (Build_Elementary_Write_Call): Same fix
16713 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
16714 set to value that does not match base type size.
16716 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16718 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
16719 object of a limited type can be initialized with a call to a function
16720 that returns in place. If the limited type has unknown discriminants,
16721 and the underlying type is a constrained composite type, build an actual
16722 subtype from the function call, as is done for private types.
16723 (Side_Effect_Free): An expression that is the renaming of an object or
16724 whose prefix is the renaming of a object, is not side-effect free
16725 because it may be assigned through the renaming and its value must be
16726 captured in a temporary.
16727 (Has_Controlled_Coextensions): New routine.
16728 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
16729 as is done for other limited types.
16730 (Non_Limited_Designated_Type): new predicate.
16731 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
16733 Remove all handling of with_type clauses.
16735 * par-ch10.adb: Remove all handling of with_type clauses.
16737 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
16738 checksum if the main source could not be parsed.
16739 (Loat_Unit): When processing a child unit, determine properly whether
16740 the parent unit is a renaming when the parent is itself a child unit.
16741 Remove handling of with_type clauses.
16743 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
16744 (Set_Is_Static_Coextension): New procedure.
16745 (Has_Local_Raise): New function
16746 (Set_Has_Local_Raise): New procedure
16747 (Renaming_Exception): New field
16748 (Has_Init_Expression): New flag
16749 (Delay_Finalize_Attach): Remove because flag is obsolete.
16750 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
16751 Remove all handling of with_type clauses.
16752 (Exception_Junk): Can now be set in N_Block_Statement
16754 2007-06-06 Vincent Celier <celier@adacore.com>
16755 Robert Dewar <dewar@adacore.com>
16757 * frontend.adb (Frontend): Return immediately if the main source could
16758 not be parsed, because of preprocessing errors.
16760 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
16761 (Gnat1drv): Exit with errors if the main source could not be parsed,
16762 because of preprocessing errors.
16763 (Check_Rep_Info): New procedure
16765 2007-06-06 Robert Dewar <dewar@adacore.com>
16767 * g-hesorg.ads, g-heasor.ads,
16768 g-busorg.ads, g-bubsor.ads: Update documentation
16769 GNAT.Heap/Bubble_Sort_G is now pure
16771 2007-06-06 Robert Dewar <dewar@adacore.com>
16773 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
16775 2007-06-06 Robert Dewar <dewar@adacore.com>
16776 Ed Schonberg <schonberg@adacore.com>
16778 * g-comlin.ads, g-comlin.adb:
16779 Add new warning for renaming of function return objects
16781 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
16782 (Tree_Read): Use size of object instead of type'object_size, since the
16783 latter is incorrect for packed array types.
16784 (Tree_Write): Same fix
16786 * opt.ads: Add new warning for renaming of function return objects
16787 (Generating_Code): New boolean variable used to indicate that the
16788 frontend as finished its work and has called the backend to process
16789 the tree and generate the object file.
16790 (GCC_Version): Is now private
16791 (Static_Dispatch_Tables): New constant declaration.
16792 (Overflow_Checks_Unsuppressed): New flag.
16793 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16794 (List_Closure): New flag for gnatbind (-R)
16795 Zero_Formatting: New flag for gnatbind (-Z)
16796 (Special_Exception_Package_Used): New flag.
16797 (Warn_On_Unrepped_Components): New flag.
16799 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
16800 unit is a compilation unit, rather than relying on its scope, so that
16801 Standard can be renamed.
16802 (Analyze_Object_Renaming): Add new warning for renaming of function
16804 Also reject attempt to rename function return object in Ada 83 mode.
16805 (Attribute_Renaming): In case of tagged types, add the body of the
16806 generated function to the freezing actions of the type.
16807 (Find_Type): A protected type is visible right after the reserved word
16808 "is" is encountered in its type declaration. Set the entity and type
16809 rather than emitting an error message.
16810 (New_Scope): Properly propagate Discard_Names to inner scopes
16811 (Check_Nested_Access): New procedure.
16812 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
16813 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16815 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
16816 Add new warning for renaming of function return objects
16817 (Check_References): Suppress warnings for objects whose type or
16818 base type has Warnings suppressed.
16819 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
16820 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
16822 2007-06-06 Vincent Celier <celier@adacore.com>
16823 Emmanuel Briot <briot@adacore.com>
16824 Olivier Hainque <hainque@adacore.com>
16826 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
16827 absolute value of Header.Block_Size when displaying the freed physical
16829 (Allocate): Compute Storage_Address using Integer_Address, not
16830 Storage_Offset, because the range of Storage_Offset may not be large
16832 (Configure): New parameter Low_Level_Traces
16833 (Allocate, Deallocation, Free_Physically): Added low-level traces
16834 (Configure): new parameter Errors_To_Stdout.
16835 (Output_File): new subprogram
16836 (Deallocate, Dereference): Send error messages to the proper stream
16837 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
16838 documented. Previous code would send it to the current output file
16839 defined in GNAT.IO, which might not be stdout
16840 (Is_Valid): Adjust comment to mention that a positive reply means that
16841 Header_Of may be used to retrieve the allocation header associated with
16842 the subprogram Storage address argument. Return False early if this
16843 address argument is misaligned.
16845 2007-06-06 Vincent Celier <celier@adacore.com>
16847 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
16849 (ASIS_Main): New global variable
16850 (Get_Closure): New procedure
16851 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
16852 check, metric or pretty. Call Get_Closure in this case.
16853 (Check_Files): For GNAT LIST, check all sources of all projects when
16854 All_Projects is True.
16855 (GNATCmd): Accept -U for GNAT LIST
16857 2007-06-06 Vincent Celier <celier@adacore.com>
16859 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
16861 Correct error message when invocation of the linker fails
16862 Add explicit size clause for the C imported variables
16863 Object_List_File_Supported and Using_GNU_Linker to emphasize that
16864 we expect char size.
16865 Read target parameters earlier, since this is needed to set
16866 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
16869 2007-06-06 Vincent Celier <celier@adacore.com>
16872 Add 3 spaces before the default project directory when displaying
16873 the project search path.
16874 Add new command line switch '-l' to display license information.
16876 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
16878 * gmem.c: Add support for timestamps on memory operations.
16880 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
16881 operations (not used currently, just foundation for future
16882 enhancements). Add possibility to perform full dump of gmem.out file.
16883 (Print_Back_Traces): Declare accesses to root arrays constants since
16884 they aren't modified.
16885 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
16887 2007-06-06 Vincent Celier <celier@adacore.com>
16889 * gnatsym.adb: Update Copyright notice
16890 (Parse_Cmd_Line): Accept new switch -D
16891 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
16894 * prj.ads (Policy): New policy Direct
16895 (Yes_No_Unknown): New enumeration type
16896 (Project_Data): New component Libgnarl_Needed
16898 * prj-nmsc.adb (Check_For_Source): When recording a source file make
16899 use the untouched pathname casing.
16900 (Get_Directories): Ensure that the Display_Exec_Directory is using the
16901 proper casing on non case-sensitive platforms like Windows.
16902 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
16903 on all platforms, as it is not possible to know which one is allowed
16904 before processing the project files.
16905 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
16906 specified when symbol policy is Direct. Check that when there is a
16907 symbol file defined (either by default or with attribute
16908 Library_Symbol_File) it is not the same as the reference symbol file.
16909 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
16910 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
16911 extending projects.
16912 (Record_Ada_Source): Record a source that has been locally removed in an
16915 * symbols.ads (Policy): New policy Direct
16917 * symbols-vms.adb (Initialize): Take new policy Direct in case
16920 2007-06-06 Vincent Celier <celier@adacore.com>
16922 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
16923 Correct obvious bug (return Dir; instead of return Directory;).
16924 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
16926 2007-06-06 Thomas Quinot <quinot@adacore.com>
16928 * g-pehage.adb (Produce): Open output files in Binary mode, so that
16929 they have UNIX line endings (LF only) even on Windows, and thus pass
16930 all GNAT style checks.
16932 2007-06-06 Emmanuel Briot <briot@adacore.com>
16934 * g-regpat.adb (Quote): Fix improper quoting of '.'
16936 2007-06-06 Thomas Quinot <quinot@adacore.com>
16938 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
16939 default, set False on a per-runtime basis.
16940 (Need_Netdb_Buffer): New constant.
16942 * g-socket.ads, g-socket.adb: Import new package
16943 GNAT.Sockets.Thin.Task_Safe_NetDB.
16944 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
16945 binding to obtain proper message.
16946 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
16947 Replace various occurrences of Arry (Arry'First)'Address with the
16948 equivalent Arry'Address (GNAT always follows implementation advice from
16950 (Get_Host_By_Address, Get_Host_By_Name,
16951 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
16952 instead, rely on platform-specific task safe netdb operations provided
16955 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
16956 parameter Process_Blocking_IO.
16957 (Host_Error_Messages): Add stub body.
16958 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16959 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
16960 Safe_Getservbyport): Move functions into new child package
16962 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
16963 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
16964 (In_Addr): Add alignment clause.
16966 2007-06-06 Robert Dewar <dewar@adacore.com>
16968 * g-trasym.ads, g-traceb.ads: Update list of supported targets
16969 Add note about symbolic traceback
16971 2007-06-06 Pascal Obry <obry@adacore.com>
16973 * hostparm.ads (Normalized_CWD): Use the host directory separator
16974 instead of the hardcoded forward slash which is not the proper
16975 character on Windows for example.
16976 (Java_VM): Removed.
16978 2007-06-06 Vincent Celier <celier@adacore.com>
16979 Arnaud Charlet <charlet@adacore.com>
16981 * a-clrefi.adb, a-clrefi.ads: New files
16983 * impunit.adb: Add s-os_lib in the list of user visible units.
16984 (Non_Imp_File_Names_95): Add a-clrefi to this list
16985 Remove obsolete run-time entries.
16986 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
16987 "a-exetim" -- Ada.Execution_Time
16988 "a-extiti" -- Ada.Execution_Time.Timers
16990 * mlib-prj.ads, mlib-prj.adb
16991 (Build_Library): Use untouched object dir and library dir. At the
16992 same time makes sure that the checks are done using the canonical
16993 form. Removes hard-coded directory separator and use the proper host
16995 (Process_Project): Do not look in object directory to check if libgnarl
16996 is needed for a library, if there is no object directory.
16997 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
16999 (Build_Library): When invoking gnatbind, use a response file if the
17000 total size of the arguments is too large.
17002 * Makefile.rtl: (g-sttsne): New object file.
17003 Add entry for a-clrefi, s-utf_32, System.Exceptions
17005 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
17006 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
17007 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
17008 Change g-string to s-string, g-os_lib to s-os_lib
17009 Change all g-utf_32 references to s-utf_32
17011 2007-06-06 Tristan Gingold <gingold@adacore.com>
17012 Olivier Hainque <hainque@adacore.com>
17014 * init.c: Do not adjust IP of an imported VMS exception of ia64.
17015 LIB$STOP is called to raise an exception and the IP of the exception
17016 is the instruction right after the call.
17017 (__gnat_adjust_context_for_raise, AIX): Implement.
17018 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
17019 adjust_context_for_raise before Raise_From_Signal_Hanler.
17020 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
17021 siginfo is passed to the handler, necessary to let the zcx propagation
17022 engine unwind past it.
17024 2007-06-06 Olivier Hainque <hainque@adacore.com>
17026 * initialize.c (__gnat_initialize for vxworks): Update documentation
17027 on the ZCX support, using different sets of crtstuff objects than with
17030 2007-06-06 Robert Dewar <dewar@adacore.com>
17032 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
17034 (Layout_Type): Fix recomputation of size from alignment.
17036 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17037 Javier Miranda <miranda@adacore.com>
17039 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
17040 association in an instance.
17041 (Copy_Generic_Node): If the node is a string literal, no need to copy
17043 (Is_Generic_Formal): For a formal subprogram, the declaration is the
17044 grandparent of the entity.
17045 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
17046 to simplify handling of formal interfaces that derive from other formal
17048 (Instantiate_Subprogram_Body): The defining unit name of the body of
17049 the instance should be a defining identifier.
17050 (Install_Formal_Packages): make global to the package, for use in
17051 instantiations of child units.
17052 (Analyze_Package_Instantiation): Do not attempt to set information on an
17053 enclosing master of an entry when expansion is disabled.
17054 (Instantiate_Type): If the actual is a tagged synchronized type and the
17055 generic ancestor is an interface, create a generic actual for the
17056 corresponding record.
17057 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
17058 declaration, to ensure that the interface list is processed correctly.
17059 (Inline_Instance_Body): If enclosing scope is an instance body, remove
17060 its entities from visibiility as well.
17061 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
17062 given with a named association, analyze the expression only, not the
17063 discriminant association itself.
17064 (Reset_Entity): If the analysis of a selected component is transformed
17065 into an expanded name in the prefix of a call with parameters, do not
17066 transform the original node into an expanded name, to prevent visibility
17067 errors in the case of nested generics.
17068 (Check_Private_View): For an array type, check whether the index types
17069 may need exchanging.
17071 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17072 Vincent Celier <celier@adacore.com>
17074 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
17075 since both are separated.
17076 Add support for imported CIL packages.
17077 Add further special handling of "value_type" for CIL.
17078 Add special handling of pragma Import for CIL.
17080 * make.ads, make.adb: When switch -eS is used, direct all outputs to
17081 standard output instead of standard error, except errors.
17082 (Absolute_Path): Use untouched casing for the parent directory.
17083 (Add_Library_Search_Dir): Use the untouched directory name.
17084 (Add_Source_Search_Dir): Idem.
17085 (Change_To_Object_Directory): Update output to use proper casing.
17086 (Create_Binder_Mapping_File): Use the untouched filename to set
17088 (Gnatmake): Use untouched library and executable directory names.
17089 (Insert_Project_Sources): Use untouched filename for spec and body.
17090 (Is_In_Object_Directory): Use untouched object directory.
17091 (Mark_Directory): Idem.
17092 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
17093 contains the non-canonical filename in all cases.
17094 (Change_To_Object_Directory): In verbose mode, display the name of the
17095 object directory we're changing to.
17096 (Compile_Sources): Make sure, when a project file is used, to compile
17097 the body of the unit, when there is one, even when only the spec is
17098 recorded in an ALI file.
17099 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
17101 (Report_Compilation_Failed): New procedure
17102 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
17103 procedures moved from the spec to the body.
17104 (Extract_Failure): Removed, not used
17105 Replace explicit raises of exception Bind_Failed and Link_Failed with
17106 calls to Make_Failed with the proper message.
17107 Replace explicit raises of exception Compilation_Failed with calls to
17108 procedure Report_Compilation_Failed.
17109 (Initialize): Create mapping files unconditionally when using project
17112 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
17113 Pragma_CIL_Constructor): New names.
17115 * targparm.ads, targparm.adb
17116 (Compiler_System_Version): Removed, no longer used.
17117 (Get_Target_Parameters): Relax checks on system.ads validity. Add
17118 handling of two new system flags: JVM and CLI.
17120 2007-06-06 Jose Ruiz <ruiz@adacore.com>
17121 Arnaud Charlet <charlet@adacore.com>
17123 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
17124 time, use the default s-interr body that provides interrupt support
17126 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
17127 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
17128 g-soccon.ads, and s-taprop.adb for the marte run time.
17129 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
17130 timers are supported on marte.
17131 (EH_MECHANISM for marte): Do not use ZCX.
17132 (THREADSLIB for marte): Use -lmarte.
17133 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
17134 Add mlib-tgt-specific.o to gnatmake objects
17135 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
17136 longer of MLib.Tgt.
17137 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
17138 6, either kernel or rtp, use a specialized version of s-osinte.ads.
17140 2007-06-06 Pascal Obry <obry@adacore.com>
17142 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
17144 2007-06-06 Vincent Celier <celier@adacore.com>
17146 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
17147 separator, use instead the proper host directory separator.
17148 (Copy_ALI_Files): Make sure that an already existing ALI file in the
17149 ALI copy dir is writable, before doing the copy.
17151 * mlib-utl.ads, mlib-utl.adb:
17152 (Gcc): If length of command line is too long, put the list of object
17153 files in a response file, if this is supported by the platform.
17154 (Ar): If invocation of the archive builder is allowed to be done in
17155 chunks and building it in one shot would go above an OS dependent
17156 limit on the number of characters on the command line, build the archive
17159 2007-06-06 Vincent Celier <celier@adacore.com>
17161 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
17162 of specified object file is not equal to base name of source.
17164 2007-06-06 Javier Miranda <miranda@adacore.com>
17165 Hristian Kirtchev <kirtchev@adacore.com>
17166 Ed Schonberg <schonberg@adacore.com>
17168 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
17169 the full type declaration.
17170 (Analyze_Component_Declaration): Add local variable E to capture the
17171 initialization expression of the declaration. Replace the occurences of
17172 Expression (N) with E.
17173 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
17174 limited interface object with a function call.
17175 (Array_Type_Declaration): If the declaration lacks subtype marks for
17176 indices, create a simple index list to prevent cascaded errors.
17177 (Is_Null_Extension): Ignore internal components created for secondary
17178 tags when checking whether a record extension is a null extension.
17179 (Check_Abstract_Interfaces): Add missing support for interface subtypes
17180 and generic formals.
17181 (Derived_Type_Declaration): Add missing support for interface subtypes
17182 and generic formals.
17183 (Analyze_Object_Declaration): If an initialization expression is
17184 present, traverse its subtree and mark all allocators as static
17186 (Add_Interface_Tag_Component): When looking for components that may be
17187 secondary tags, ignore pragmas that can appear within a record
17189 (Check_Abstract_Overriding): an inherited function that dispatches on
17190 result does not need to be overriden if the controlling type is a null
17192 (Mentions_T): Handle properly a 'class attribute in an anonymous access
17193 component declaration, when the prefix is an expanded name.
17194 (Inherit_Component): If the derivation is for a private extension,
17195 inherited components remain visible and their ekind should not be set
17197 (Find_Type_Of_Object): In the case of an access definition, always set
17198 Is_Local_Anonymous_Access. We were previously not marking the anonymous
17199 access type of a return object as a local anonymous type.
17200 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
17201 range with character literal bounds.
17202 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
17203 (Access_Subprogram_Declaration): Indicate that the type declaration
17204 depends on an incomplete type only if the incomplete type is declared
17206 (Analyze_Subtype_Declaration): Handle properly subtypes of
17207 synchronized types that are tagged, and that may appear as generic
17209 (Access_Subprogram_Declaration): An anonymous access to subprogram can
17210 appear as an access discriminant in a private type declaration.
17211 (Add_Interface_Tag_Components): Complete decoration of the component
17212 containing the tag of a secondary dispatch table and the component
17213 containing the offset to the base of the object (this latter component
17214 is only generated when the parent type has discriminants --as documented
17216 (Inherit_Components): Use the new decoration of the tag components to
17217 improve the condition that avoids inheriting the components associated
17218 with secondary tags of the parent.
17219 (Build_Discriminanted_Subtype): Indicate to the backend that the
17220 size of record types associated with dispatch tables is known at
17222 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
17223 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
17224 to include task, protected, and synchronized interfaces as limited
17226 (Process_Discriminants): Remove the setting of
17227 Is_Local_Anonymous_Access on the type of (anonymous) access
17228 discriminants of nonlimited types.
17229 (Analyze_Interface_Type_Declaration): Complete the decoration of the
17230 class-wide entity it is is already present. This situation occurs if
17231 the limited-view has been previously built.
17232 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
17234 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
17237 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17239 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
17240 of the type that specify the position of interface tags when the type
17241 inherits discriminated array components from the parent type.
17242 If a component is initialized with a box, check for the presence of a
17243 default expression in its declaration before using its default
17244 initialization procedure.
17245 (Resolve_Record_Aggregate): If a component is box-initialized, and the
17246 component type has a discriminants, create a partial aggregate for it
17247 by copying the discriminants of the component subtype.
17248 Reject attempt to initialize a discriminant with a box.
17249 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
17250 associated with dispatch tables is known at compile time.
17251 (Get_Value): If an association in a record aggregate has a box
17252 association, and the corresponding record component has a default
17253 expression, always copy the default expression, even when the
17254 association has a single choice, in order to create a proper
17255 association for the expanded aggregate.
17257 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17258 Robert Dewar <dewar@adacore.com>
17260 * par-ch12.adb (P_Generic_Associations): The source position of an
17261 Others association is that of the others keyword, not that of the token
17262 that follows the box.
17263 (P_Formal_Type_Definition): Handle formal access types that carry a
17264 not null indicator.
17266 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
17267 multiple identifier are present, save Scan_State before scanning the
17268 colon, to ensure that separate trees are constructed for each
17270 (P_Identifier_Declarations): For object declaration, set new flag
17271 Has_Init_Expression if initialization expression present.
17272 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
17273 Improve NOT NULL error messages
17275 2007-06-06 Robert Dewar <dewar@adacore.com>
17277 * par-ch4.adb: (P_Name): Recover from literal used as name
17279 2007-06-06 Vincent Celier <celier@adacore.com>
17281 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
17282 defaulted to False.
17283 In the "not" case, recursive call with Complemented set to True.
17284 Do not allow "or" or "and" operators when Complemented is True.
17286 2007-06-06 Vincent Celier <celier@adacore.com>
17288 * prj.adb (Project_Empty): Gives default value for new component
17291 * prj-attr.ads: Minor reformatting
17293 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
17294 directory using the untouched casing.
17295 (For_All_Source_Dirs): Idem.
17297 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
17298 directories specified with switches -aP.
17299 (Add_Search_Project_Directory): New procedure
17300 (Initialize_Project_Path): Put the directories in table
17301 Search_Directories in the project search path.
17302 (Initialize_Project_Path): For VMS, transform into canonical form the
17305 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17307 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
17308 true if configurable run-time or No_Run_Time is set.
17309 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
17310 processing an unit which is not the one being compiled.
17312 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17314 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
17315 Replace UC by Ada.UC
17317 * s-bitops.adb: Get rid of System.Pure_Exceptions.
17318 Replace UC by Ada.UC
17320 2007-06-06 Robert Dewar <dewar@adacore.com>
17322 * scng.adb: (Check_End_Of_Line): Deal with very long lines
17324 2007-06-06 Robert Dewar <dewar@adacore.com>
17326 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
17327 Remove no longer used nodes.
17329 2007-06-06 Javier Miranda <miranda@adacore.com>
17330 Ed Schonberg <schonberg@adacore.com>
17331 Robert Dewar <dewar@adacore.com>
17333 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
17334 on obsolescent withed unit in case of limited-withed units.
17335 (Analyze_Compilation_Unit): Add guard to code that removed an
17336 instantiation from visibility, to prevent compiler aborts when
17337 instantiation is abandoned early on.
17338 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
17339 current unit being analyzed, and Distinguish local incomplete types
17340 from limited views of types declared elsewhere.
17341 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
17342 to state that the class-wide entity is shared by the limited-view
17344 (Analyze_With_Clause): Improve placement of flag for case of
17345 unimplemented unit.
17346 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
17347 manner similar to GNAT.Current_Exception. This is a violation of
17348 restriction (No_Exception_Propagation), and also inhibits the
17349 optimization of local raise to goto.
17350 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
17351 and if so set Most_Recent_Exception_Used flag in Opt, and also check
17352 for violation of restriction No_Exception_Propagation.
17354 2007-06-06 Javier Miranda <miranda@adacore.com>
17355 Hristian Kirtchev <kirtchev@adacore.com>
17356 Gary Dismukes <dismukes@adacore.com>
17358 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
17359 use of entity Exception_Occurrence if it is not available in the
17362 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
17363 concurrent types are declared within an Ada 2005 generic, build their
17364 corresponding record types since they are needed for overriding-related
17366 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
17367 protected type does not implement a task interface or a nonlimited
17369 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
17370 type does not implement a protected interface or a nonlimited interface.
17371 (Single_Task_Declaration, Single_Protected_Declaration): use original
17372 entity for variable declaration, to ensure that debugging information
17373 is correcty generated.
17374 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
17375 routines if the expander is not active.
17376 (Analyze_Task_Body): Mark all handlers to stop optimization of local
17377 raise, since special things happen for task exception handlers.
17379 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
17380 concurrent types declared within a generic.
17381 (Check_Dispatching_Operation): Do not emit warning about late interface
17382 operations in the context of an instance.
17383 (Check_Dispatching_Call): Remove restriction against calling a
17384 dispatching operation with a limited controlling result.
17385 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
17386 Register_Interface_DT_Entry by calls to Register_Primitive.
17387 (Check_Dispatching_Formals): Handle properly a function with a
17388 controlling access result.
17390 2007-06-06 Robert Dewar <dewar@adacore.com>
17391 Arnaud Charlet <charlet@adacore.com>
17393 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
17394 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
17395 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
17396 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
17397 message when using a VM, since this attribute is not supported.
17398 (Analyze_Record_Representation_Clause): Give unrepped component warnings
17400 * usage.adb: Add new warning for renaming of function return objects
17401 Indicate that -gnatwp and -gnatwP concern front-end inlining
17402 Add line for -gnatyg
17403 Add usage information for -gnatw.c/C
17405 2007-06-06 Robert Dewar <dewar@adacore.com>
17406 Ed Schonberg <schonberg@adacore.com>
17409 (Find_Var): Do not consider function call in test for infinite loop
17410 warning if warnings set off for function entity.
17411 (One_Bound): Do not create a temporary for a loop bound if it is a
17413 (Analyze_Assignment): Traverse the right hand side of an assignment and
17414 mark all allocators as static coextensions.
17415 (Analyze_Assignment): Exempt assignments involving a dispatching call
17416 to a function with a controlling access result from the check requiring
17417 the target to be class-wide.
17419 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17420 Ed Schonberg <schonberg@adacore.com>
17421 Robert Dewar <dewar@adacore.com>
17422 Javier Miranda <miranda@adacore.com>
17424 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
17425 chain of coextensions when an allocator serves as the root of such a
17427 (Propagate_Coextensions): Remove the test for the root being an
17429 (Resolve_Allocator): Add condition to ensure that all future decoration
17430 occurs on an allocator node. Add processing and cleanup for static
17432 (Valid_Conversion): If the operand type is the limited view of a
17433 class-wide type, use the non-limited view is available to determine
17434 legality of operation.
17435 (Ambiguous_Character): move to spec, for use elsewhere.
17436 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
17437 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
17438 character literals.
17439 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
17440 Do_Division_Check flag explicitly.
17441 (Resolve_Actuals): If the actual is of a synchronized type, and the
17442 formal is of the corresponding record type, this is a call to a
17443 primitive operation of the type, that is declared outside of the type;
17444 the actual must be unchecked-converted to the type of the actual
17445 (Resolve_Call): Kill all current values for any subprogram call if
17446 flag Suppress_Value_Tracking_On_Call is set.
17447 (Resolve_Type_Conversion): Generate error message the the operand
17448 or target of interface conversions come from a limited view.
17449 (Check_Infinite_Recursion): Ignore generated calls
17450 (Check_Allocator_Discrim_Accessibility): New procedure for checking
17451 that an expression that constrains an access discriminant in an
17452 allocator does not denote an object with a deeper level than the
17453 allocator's access type.
17454 (Resolve_Allocator): In the case of an allocator initialized by an
17455 aggregate of a discriminated type, check that associations for any
17456 access discriminants satisfy accessibility requirements by calling
17457 Check_Allocator_Discrim_Accessibility.
17458 (Resolve_Equality_Op): Handle comparisons of anonymous access to
17459 subprogram types in the same fashion as other anonymous access types.
17460 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
17461 message that is not a continuation message.
17462 (Resolve_Type_Conversion): Add missing support for conversion to
17464 (Resolve_Actuals): Introduce a transient scope around the call if an
17465 actual is a call to a function returning a limited type, because the
17466 resulting value must be finalized after the call.
17467 (Resolve_Actuals): If the call was given in prefix notations, check
17468 whether an implicit 'Access reference or implicit dereference must be
17469 added to make the actual conform to the controlling formal.
17471 2007-06-06 Robert Dewar <dewar@adacore.com>
17472 Javier Miranda <miranda@adacore.com>
17474 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
17475 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
17476 overriding of an inherited private subprogram now there is no need to
17477 inherit its dispatching slot and reduce the size of the dispatch table.
17478 Set_All_DT_Position now ensures that the same slot is now assigned to
17479 both entities. This is required to statically build the dispatch table.
17480 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
17481 of calling Set_All_DT_Position to re-evaluate the position of the
17482 entries in the dispatch table. Such reevaluation is not desired if
17483 the tagged type is already frozen.
17485 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17486 Gary Dismukes <dismukes@adacore.com>
17487 Robert Dewar <dewar@adacore.com>
17488 Javier Miranda <miranda@adacore.com>
17490 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
17491 reference acts as an lvalue when the attribute name modifies the prefix
17492 (Is_Coextension_Root): New routine.
17493 (Mark_Static_Coextensions): New routine.
17494 (Type_Access_Level): Revise code for checking the level of the
17495 anonymous access type of a return object.
17496 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
17497 (Matches_Prefixed_View_Profile): Remove the no longer necessary
17498 retrieval of the corresponding controlling record type.
17499 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
17500 concurrent types declared within a generic as well as class wide types.
17501 Emit a mode incompatibility error whenever a protected entry or routine
17502 override an interface routine whose first parameter is not of mode
17503 "out", "in out" or access to variable.
17504 (Overrides_Synchronized_Primitive): Rename to
17505 Find_Overridden_Synchronized_Primitive.
17506 (Collect_Interface_Components): New subprogram that collects all the
17507 components of a tagged record containing tags of secondary dispatch
17509 (Add_Global_Declaration): New procedure
17510 (Abstract_Interface_List): Handle properly the case of a subtype of a
17512 (Type_Access_Level): In the case of a type whose parent scope is a
17513 return statement, call Type_Access_Level recursively on the enclosing
17514 function's result type to determine the level of the return object's
17516 (Build_Elaboration_Entity): Build name of elaboration entity from the
17517 scope chain of the entity, rather than the unit name of the file name.
17518 (Check_Nested_Access): New procedure.
17519 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
17520 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17521 (Get_Renamed_Entity): Utility routine for performing common operation
17522 of chasing the Renamed_Entity field of an entity.
17524 2007-06-06 Robert Dewar <dewar@adacore.com>
17526 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
17528 (Check_A_Call): Add check for entry call which was causing blowup
17530 2007-06-06 Olivier Hainque <hainque@adacore.com>
17532 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
17533 special code on ia64-vms to handle major incompatibilities between the
17534 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
17535 this routine with a very different set of arguments and expectations on
17538 2007-06-06 Thomas Quinot <quinot@adacore.com>
17540 * socket.c (__gnat_close_signalling_fd): New function.
17541 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
17542 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
17543 New supporting functions for task safe Netdb operations.
17545 2007-06-06 Thomas Quinot <quinot@adacore.com>
17546 Olivier Hainque <hainque@adacore.com>
17548 * a-except-2005.ads, a-except-2005.adb
17549 (Raise_From_Controlled_Operation): New procedure in
17550 (private part of) Ada.Exceptions (standard runtime version). Used to
17551 provide informational exception message when Program_Error is raised as
17552 a result of an Adjust or Finalize operation propagating an exception.
17553 (Rmsg_28): Fix description for E.4(18) check.
17554 (Raise_Current_Excep): Call Debug_Raise_Exception just before
17555 propagation starts, to let debuggers know about the event in a reliable
17557 Take the address of E and dereference to make sure it is homed on stack
17558 and prevent the stores from being deleted, necessary for proper
17559 debugger behavior on "break exception" hits.
17560 (Local_Raise): Moved to System.Exceptions
17562 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
17563 exception message from the current occurrence and raise Program_Error
17564 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
17566 2007-06-06 Jose Ruiz <ruiz@adacore.com>
17567 Arnaud Charlet <charlet@adacore.com>
17569 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
17572 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
17573 priority associated to a lock.
17575 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
17576 assertion to take into account case of no abort restriction.
17577 (Initialize_Protection_Entries): Add initialization for the field
17578 New_Ceiling associated to the protected object.
17579 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
17582 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17583 since this function needs to be set consistently with Update_Exception.
17585 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17586 since this function needs to be set consistently with Update_Exception.
17588 * s-taskin.ads: Update comments on
17589 Interrupt_Server_Blocked_On_Event_Flag.
17590 (Unbind_Handler): Fix handling of server_task wakeup
17591 (Server_Task): Set self's state so that Unbind_Handler can take
17592 appropriate actions.
17593 (Common_ATCB): Now use a constant from System.Parameters to determine
17594 the max size of the Task_Image field.
17596 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
17597 Initialize_Analyzer function.
17598 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
17599 take into account case of no abort restriction.
17600 ([Vulnerable_]Complete_Master): Modify assertion.
17602 * s-tataat.adb (Finalize): Use the nestable versions of
17603 Defer/Undefer_Abort.
17605 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
17607 * s-tpobop.ads: Update comments.
17609 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
17610 of locking the object manually, to avoid inconsistencies between
17611 Lock/Unlock_Entry assertions.
17613 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
17615 application and System.Parameters.No_Abort is True.
17616 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
17617 (Unbind_Handler): Fix handling of server_task wakeup
17618 (Server_Task): Set self's state so that Unbind_Handler can take
17619 appropriate actions.
17621 2007-06-06 Thomas Quinot <quinot@adacore.com>
17623 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
17624 declarations instead of an explicit null body, for conciseness.
17626 2007-06-06 Robert Dewar <dewar@adacore.com>
17628 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
17629 illegal aggregate and the type is still Any_Composite.
17630 (Subtypes_Statically_Match): Fix problem of empty discriminant list
17632 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17634 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
17635 to prevent subsequent expansion.
17637 2007-06-06 Robert Dewar <dewar@adacore.com>
17639 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
17641 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17642 Robert Dewar <dewar@adacore.com>
17644 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
17646 (Write_Itype): Handle case of string literal subtype, which
17647 comes up in this context.
17648 (Update_Itype): when debugging expanded code, update sloc of itypes
17649 associated with defining_identifiers and ranges, for gdb use.
17650 (Sprint_Node_Actual): Add static keyword to object or exception
17651 declaration output if Is_Statically_Allocated is True.
17652 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
17653 or task body, so that the tree carries the proper Sloc information for
17655 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
17657 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17659 * s-secsta.adb (Chunk): Ensure this object has a static size known at
17660 compile time, to avoid dynamic memory allocation
17661 (Elaboration code): Only use dynamic memory allocation when needed.
17663 2007-06-06 Quentin Ochem <ochem@adacore.com>
17665 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
17667 (Stack_Analyzer): Added field "Overflow_Guard"
17668 (Task_Result): Added field "Overflow_Guard".
17669 (Index_Str): New constant.
17670 (Task_Name_Str): New constant.
17671 (Actual_Size_Str): New constant.
17672 (Pattern_Array_Element_Size): New constant.
17673 (Get_Usage_Range): New subprogram.
17674 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
17675 Now align the output.
17677 (Initialize): Added value for Overflow_Guard.
17678 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
17679 Update the value of the overflow guard according to the actual
17680 beginning of the pattern array.
17681 (Initialize_Analyzer): Added parameter Overflow_Guard.
17682 Take this parameter into accound when computing the max size.
17683 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
17684 (Report_Result): Removed extra useless procedure.
17685 Updated call to Output_Result.
17686 Moved full computation of the Task_Result here.
17688 2007-06-06 Thomas Quinot <quinot@adacore.com>
17690 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
17691 Thread_Blocking_IO, always True by default, set False on a per-runtime
17693 Add Windows-specific constants
17694 Add new constant Need_Netdb_Buffer.
17695 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17696 not, whether to use getXXXbyYYY_r.
17698 * gsocket.h: Add new constant Need_Netdb_Buffer.
17699 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17700 not, whether to use getXXXbyYYY_r.
17702 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
17704 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
17705 than their first call.
17706 Add type Dummy_Communication_Block used in the generation of the pre-
17707 defined dispatching primitive _disp_asynchronous_select.
17708 (Storage_Element): Put Pragma Universal_Aliasing on it.
17710 2007-06-06 Vincent Celier <celier@adacore.com>
17712 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
17715 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
17716 letter if it is not followed by a '/' or a '\'.
17717 (Windows): New Boolean function
17719 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
17721 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
17723 (Containing_Directory): Raise Use_Error when the directory is a root
17725 (Extension): When returning the result, use a conversion to Result_Type,
17726 not a qualification.
17728 2007-06-06 Robert Dewar <dewar@adacore.com>
17730 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
17731 (Set_Style_Check_Options): Recognize new -gnatyg style switch
17733 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
17734 Warn_On_Non_Local_Exception to False, to turn off warnings for
17735 No_Exception_Propagation in ZFP runtime.
17736 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
17738 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
17740 2007-06-06 Vincent Celier <celier@adacore.com>
17742 * switch-b.adb (Scan_Binder_Switches): Add processing for new
17745 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
17746 (Scan_Make_Switches): Recognize new switch -aP
17748 2007-06-06 Matthew Gingell <gingell@adacore.com>
17749 Jose Ruiz <ruiz@adacore.com>
17751 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
17752 VxWorks task descriptor in the Ada run time, call a C subprogram
17753 (__gnat_get_stack_info) that extracts the required information.
17755 * sysdep.c: Back out temporary lynxos workaround.
17756 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
17757 time the stack information associated to the currently executing task.
17758 Only VxWorks systems require this function.
17760 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
17762 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
17763 add the stack bias if the offset is computed from a frame address.
17764 (__gnat_backtrace): Adjust for above change.
17766 2007-06-06 Thomas Quinot <quinot@adacore.com>
17768 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
17769 PE_Non_Transportable_Actual.
17770 (By_Descriptor_Last): New constant.
17771 (By_Copy_Return): Likewise.
17773 2007-06-06 Vincent Celier <celier@adacore.com>
17775 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
17778 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
17779 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
17780 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
17781 Add missing comment for /OPTIMIZE=SPACE
17782 Add entry for OPTIMIZE=SPACE
17783 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
17784 Add documentation for new qualifiers corresponding to -gnatw.c/.C
17786 2007-06-06 Vincent Celier <celier@adacore.com>
17787 Robert Dewar <dewar@adacore.com>
17789 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
17792 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
17793 Document gnatbind switch -a
17794 (case Constructions): Document that variables declarations are allowed
17795 for previously declared variables.
17796 Fix external lib project example
17797 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
17798 Indicate that "#if not X or Y then" is not allowed in input files to
17800 Document gnatw.x and gnatw.X warning flags
17801 Mention -Winline switch to activate warnings when back-end inlining is
17803 Add gnatcheck rule descriptions
17804 Describe how to use the GNAT driver to call a tool on a closure.
17805 Describe how to run project-wide checks or metrics.
17806 Document gnatbind's -R option
17807 Updated to account for Ada 2005 support
17809 * gnat_rm.texi (Case Construction): Allow variable declarations for
17810 previously declared variables.
17811 (Representation Clauses and Pragmas): Lift restriction on alignment
17812 clauses for record types.
17813 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
17814 Document No_Exception_Propagation restriction
17815 Document No_Body pragma
17816 Updated to account for Ada 2005 support; corrected some typos
17817 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
17819 * gnat-style.texi: Make it clear that we never use mode IN for
17820 procedures or functions
17822 * ug_words: Add entries for -gnatw.x and -gnatw.X
17823 Add entries for -gnatw.c/.C
17825 2007-06-06 Pascal Obry <obry@adacore.com>
17826 Vincent Celier <celier@adacore.com>
17828 * makegpr.adb (Add_Archive_Path): Use untouched object and library
17829 dirs and library name.
17830 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
17832 (Build_Library): Idem.
17833 (Compile_Individual_Sources): Idem.
17834 (Compile_Link_With_Gnatmake): Idem.
17835 (Compile_Sources): Idem.
17836 (Get_Imported_Directories): Idem.
17837 (Link_Executables): Idem. Same change for the executable dir.
17838 (Check_Compilation_Needed): C_Source_Path new variable containing
17839 the canonical form of Source_Path to check against the source names
17840 in the dependency file.
17841 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
17842 verbose mode, display the name of the object directory we're changing
17844 (Saved_Switches): New name of table X_Switches
17845 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
17846 (Usage): New line for switch -aP
17847 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
17848 testing if a directory should be added to the search path.
17850 2007-06-06 Javier Miranda <miranda@adacore.com>
17852 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
17853 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
17854 declaration after freezing point of all its associated tagged types;
17855 otherwise such types are frozen too early.
17857 2007-06-06 Robert Dewar <dewar@adacore.com>
17859 * a-reatim.adb: Documentation addition
17861 * g-cgideb.adb: Minor code reorganization
17863 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
17864 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
17865 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
17867 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
17868 function. Change name New_Scope to Push_Scope
17869 (Get_Debug_Flag_K): Remove unused obsolete function.
17871 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
17874 * makeusg.adb: Update Copyright notice
17875 Add line for switch -aP
17877 * makeusg.adb: Fix wording of some usage messages
17879 * s-assert.adb (Raise_Assert_Failure): Add call to
17880 Debug_Raise_Assert_Failure.
17882 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
17883 (2, Standard'Alignment) for compatibility with AAMP (where alignment
17884 is restricted to 1).
17886 * s-wchjis.adb: Remove use of System.Pure_Exceptions
17888 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
17889 node location to No_Location when we're not debugging the expanded
17892 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
17894 * misc.c (enumerate_modes): Consider log2_b to always be one.
17896 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
17898 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17900 2007-05-02 Pascal Obry <obry@adacore.com>
17902 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
17903 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
17904 encoding support of Stream_IO.
17905 (Write_Unit): Idem.
17907 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
17908 filename and corresponding encoding to match the OS requirement.
17909 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
17910 routine will fail on specific devices like CON: AUX: ...
17912 PR ada/29856: Add missing braces
17914 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
17917 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
17919 2007-04-21 Jan Hubicka <jh@suse.cz>
17921 * misc.c (gnat_expand_body): Don't call target for destructors,
17922 avoid redundant check on syntax errors.
17924 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17926 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
17927 instead of checking GIMPLE_STMT_P in chain_next.
17929 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
17932 * system-linux-alpha.ads: Disable constant condition warning for the
17933 Default_Bit_Order variable.
17934 * system-linux-s390.ads: Likewise.
17935 * system-linux-s390x.ads: Likewise.
17936 * system-linux-sparc.ads: Likewise.
17938 2007-04-06 Javier Miranda <miranda@adacore.com>
17939 Matt Heaney <heaney@adacore.com>
17940 Robert Dewar <dewar@adacore.com>
17942 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
17943 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
17944 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
17945 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
17946 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
17947 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
17948 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
17949 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
17950 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
17951 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
17952 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
17953 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
17954 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
17955 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
17956 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
17957 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
17958 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
17959 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
17960 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
17961 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
17962 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
17963 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
17964 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
17965 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
17966 s-taprop-tru64.adb, s-taprop-irix.adb,
17967 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
17968 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
17969 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
17970 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
17971 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
17972 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
17973 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
17974 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
17975 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
17976 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
17977 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
17978 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
17979 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
17980 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
17981 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
17982 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
17983 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
17984 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
17985 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
17986 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
17988 Update documentation.
17991 2007-04-06 Robert Dewar <dewar@adacore.com>
17993 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
17994 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
17995 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
17996 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17997 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
17998 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17999 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
18000 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
18001 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
18002 system-hpux-ia64.ads, targparm.adb,
18003 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
18005 * system.ads: Move Functions_Return_By_DSP to obsolete section,
18006 kept for bootstrap purposes only.
18008 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18010 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
18011 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
18012 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
18013 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
18015 2007-04-06 Robert Dewar <dewar@adacore.com>
18017 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
18018 (Local_Raise): New dummy procedure called when a raise is converted
18019 to a local goto. Used for debugger to detect that the exception
18022 * debug.adb: Document new d.g flag (expand local raise statements to
18023 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
18025 * exp_sel.adb: Use Make_Implicit_Exception_Handler
18027 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
18028 suppress warnings for unused handlers.
18029 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
18030 warnings for raise statements not handled locally.
18031 (Get_RT_Exception_Entity): New function
18032 (Get_Local_Call_Entity): New function
18033 (Find_Local_Handler): New function
18034 (Warn_If_No_Propagation): New procedure
18035 (Expand_At_End_Handler): Call Make_Implicit_Handler
18036 (Expand_Exception_Handlers): Major additions to deal with local handlers
18037 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
18038 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
18041 * exp_ch11.ads (Get_RT_Exception_Entity): New function
18042 (Get_Local_Call_Entity): New function
18044 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
18045 of restrictions that the binder will never suggest adding.
18047 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
18050 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
18051 be with'ed in the presence of pragma Restriction
18052 (No_Exception_Propagation).
18054 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
18056 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
18057 parameter, then the handler is not a suitable target for a local raise,
18058 and this is a violation of restriction No_Exception_Propagation.
18059 (Analyze_Handled_Statements): Analyze choice parameters in exception
18060 handlers before analyzing statement sequence (needed for proper
18061 detection of local raise statements).
18062 (Analyze_Raise_Statement): Reraise statement is a violation of the
18063 No_Exception_Propagation restriction.
18065 * s-rident.ads: Add new restriction No_Exception_Propagation
18067 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
18068 function, like Make_Exception_Handler but sets Local_Raise_Statements
18070 (Add_Unique_Serial_Number): Deal with case where this is called during
18071 processing of configuration pragmas.
18073 2007-04-06 Thomas Quinot <quinot@adacore.com>
18074 Pat Rogers <rogers@adacore.com>
18075 Pascal Obry <obry@adacore.com>
18077 * g-stsifd-sockets.adb: New file.
18079 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
18080 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
18081 g-socthi-vms.adb: Move signalling
18082 fd management to a nested package, so that they can conveniently be
18083 moved to a subunit that is shared across Windows, VMS, and VxWorks
18084 (Ada implementation) or completed with imported bodies from socket.c
18086 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
18088 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
18089 the signalling file descriptor.
18090 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
18091 signalling file descriptor.
18092 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
18093 instead of creating a pair of sockets for signalling here.
18095 * g-socthi.adb: Ditto.
18096 Set the runtime process to ignore SIGPIPEs on platforms that support
18097 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18099 * g-socthi-mingw.adb: Ditto.
18100 (WS_Version): Use Windows 2.2.
18101 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18103 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
18104 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18106 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
18107 added GNAT byte swapping facility
18108 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
18110 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
18112 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
18114 (__gnat_create_signalling_fds): New subprogram.
18115 Set the runtime process to ignore SIGPIPEs on platforms that support
18116 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18118 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
18119 Vincent Celier <celier@adacore.com>
18121 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
18122 New version of Ada.Calendar which supports the new upper bound of Ada
18123 time (2399-12-31 86_399.999999999).
18124 The following modifications have been made to the package:
18125 - New representation of time as count of nanoseconds since the start of
18126 Ada time (1901-1-1 0.0).
18127 - Target independent Split and Time_Of routines which service both
18128 Ada 95 and Ada 2005 code.
18129 - Target independent interface to the Ada 2005 children of Calendar.
18130 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
18131 - Handling of non-leap centenial years.
18132 - Updated clock function.
18133 - Updated arithmetic and comparison operators.
18135 * a-caldel.adb (To_Duration): Add call to target independent routine in
18136 Ada.Calendar to handle the conversion of time to duration.
18138 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
18140 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
18142 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
18143 targets do not have a natural time zone, GMT is used as a default.
18144 (__gnat_get_task_options): New.
18146 * a-direct.adb (Modification_Time): Add with and use clauses for
18147 Ada.Calendar and Ada.
18148 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
18149 since it is no longer needed.
18150 (Duration_To_Time): Removed.
18151 (OS_Time_To_Long_Integer): Removed.
18152 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
18153 Formatting Time_Of routines which automatically handle time zones,
18154 buffer periods and leap seconds.
18156 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
18157 target independent routines in Ada.Calendar.
18159 * a-calfor.ads, a-calfor.adb:
18160 Code cleanup and addition of validity checks in various routines.
18161 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
18164 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
18165 independent routine in Ada.Calendar.
18167 2007-04-06 Olivier Hainque <hainque@adacore.com>
18170 (convert_addresses): Adjust prototype and dummy definition to expect an
18171 extra file_name argument.
18173 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
18174 filling the now expected file_name argument with the appropriate
18176 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
18177 (tracebk): Array of void * instead of char *, corresponding to what
18178 convert_addresses expects.
18179 (exename): New static global, to hold the executable file name to be
18180 used in all convert_addresses invocations.
18181 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
18183 (__gnat_gmem_a2l_initialize): Resolve exename.
18184 (__gnat_convert_addresses): Use exename as the convert_addresses
18185 file_name argument.
18187 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
18188 "convert_addresses", now expecting a filename argument. Import the
18189 necessary entities to compute the filename to use and pass it to
18192 2007-04-06 Matt Gingell <gingell@adacore.com>
18194 * system-aix.ads: Back out previous change.
18195 (Functions_Return_By_DSP): Removed
18197 2007-04-06 Pascal Obry <obry@adacore.com>
18199 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
18200 or the monotonic used by Ada.Real_Time) to compute the sleep duration
18203 2007-04-06 Jose Ruiz <ruiz@adacore.com>
18205 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
18206 function. Its value changes in different VxWorks versions, and it is
18207 now handled by the function __gnat_get_task_options.
18209 * s-taprop-vxworks.adb (Create_Task): Call the function
18210 __gnat_get_task_options to get the required options for creating a task.
18212 2007-04-06 Pascal Obry <obry@adacore.com>
18213 Thomas Quinot <quinot@adacore.com>
18215 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
18216 dealing with filename.
18217 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
18218 filename from a standard string to a wide-string depending on the
18220 (__gnat_freopen): Idem.
18221 (__gnat_current_time): New function (wrapper for time(3) standard C
18224 * g-os_lib.ads (Current_Time): New function. Returns the current
18225 system time as an OS_Time value.
18227 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
18228 (Monotonic_Clock): Same.
18230 2007-04-06 Quentin Ochem <ochem@adacore.com>
18232 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
18234 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
18236 2007-04-06 Jose Ruiz <ruiz@adacore.com>
18238 * a-retide.adb: Add elaboration code to ensure that the tasking run
18239 time is initialized when using delay operations even when no task is
18242 2007-04-06 Javier Miranda <miranda@adacore.com>
18244 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
18245 component Num_Prim_Ops.
18246 (Set_Num_Prim_Ops): Removed.
18247 Remove all the assertions because all the routines of this
18248 package are inline always.
18249 (Get_Offset_Index): Add support to primary dispatch tables.
18250 Move the documentation about the dispatch table to a-tags.ads
18251 (Set_External_Tag): Removed
18252 (Inherit_TSD): Removed.
18253 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
18254 moved to a-tags.ads
18255 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
18256 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
18257 of the TSD field "Table" because this field has been renamed to
18259 (Inherit_CPP_DT): Removed.
18260 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
18261 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
18262 declarations have been moved to a-tags.ads
18263 (Check_Size): Removed.
18264 (Expanded_Name): Updated to get access to the new field of TSD
18265 containing the address of the expanded name.
18266 (Get_Access_Level/Set_Access_Level): Removed.
18267 (Get_Predefined_Prim_Op_Address): Removed.
18268 (Set_Predefined_Prim_Op_Address): Removed.
18269 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
18270 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
18271 (Set_Expanded_Name): Removed.
18272 (Inherit_DT): Removed.
18273 (Inherit_CPP_DT): Removed.
18274 (Set_RC_Offset): Removed.
18275 (Set_TSD): Removed.
18276 (Base_Address): New function that displaces "this" to point to the base
18277 of the object (that is, to point to the primary tag of the object).
18279 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18280 Javier Miranda <miranda@adacore.com>
18282 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
18283 anonymous access component, do not create a master_id if type already
18284 has one, as may happen if the type is a subcomponent of a packed array
18286 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
18287 Initialize_Tag): Remove code associated with the old CPP pragmas.
18288 CPP_Virtual and CPP_Vtable are no longer supported.
18289 (Build_Offset_To_Top_Internal): Add support for concurrent record types
18290 (Build_Offset_To_Top_Functions): Add support for concurrent record types
18291 (Freeze_Record_Type): Remove call to
18292 Init_Predefined_Interface_Primitives.
18293 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
18294 code required to initialize the tags of the secondary dispatch tables.
18295 This leaves the algoritm more clear.
18296 (Init_Secondary_Tags): Add support for concurrent record types
18297 (Make_Predefined_Primitive_Specs): Code cleanup.
18298 (Predefined_Primitive_Bodies): Code cleanup.
18299 (Build_Master_Renaming): New local subprogram.
18300 (Expand_N_Full_Type_Declaration): Build the master_id associated with
18301 anonymous access to task type components.
18302 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
18303 subtype indication are resolved during analysis, and must not be done
18305 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
18307 2007-04-06 Geert Bosch <bosch@adacore.com>
18308 Ed Schonberg <schonberg@adacore.com>
18309 Javier Miranda <miranda@adacore.com>
18310 Bob Duff <duff@adacore.com>
18312 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
18313 for conversion of a Float_Type'Truncation to integer.
18315 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
18316 check if a node is an attribute that can be handled directly by the
18318 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
18319 attributes that can be handled directly by the back end.
18320 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
18321 use new predicate Is_Access_Protected_Subprogram_Type.
18322 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
18323 and Unchecked_Union if it is generated as part of the default Output
18324 procedure for a type with default discriminants.
18325 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
18326 if we are compiling under restriction No_Dispatching_Calls.
18327 (Constrained): Use Underlying_Type, in case the type is private without
18328 discriminants, but the full type has discriminants.
18329 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
18330 call to Build_Get_Access_Level.
18331 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
18332 interface objects requires a call to the run-time subprogram that
18333 returns the base address of the object.
18334 (Valid_Conversion): Improve error message on illegal attempt to store
18335 an anonymous access to subprogram value into a record component.
18337 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
18339 (Simplify_Type_Conversion): New procedure that performs simplification
18340 of Int_Type (Float_Type'Truncation (X)).
18341 (Resolve_Type_Conversion): Call above procedure after resolving operand
18342 and before performing checks. This replaces the existing ineffective
18344 (Set_String_Literal_Subtype): When creating the internal static lower
18345 bound subtype for a string literal, use a newly created copy of the
18346 subtree representing the lower bound.
18347 (Resolve_Call): Exclude build-in-place function calls from transient
18348 scope treatment. Update comments to describe this exception.
18349 (Resolve_Equality_Op): In case of dispatching call check violation of
18350 restriction No_Dispatching_Calls.
18351 (Resolve_Call): If the call returns an array, the context imposes the
18352 component type of the array, and the function has one non-defaulted
18353 parameter, rewrite the call as the indexing of a call with a single
18354 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
18356 (Resolve_Actuals): If an actual is an allocator for an access parameter,
18357 the master of the created object is the innermost enclosing statement.
18358 (Remove_Conversions): For a binary operator, check if type of second
18359 formal is numeric, to check if an abstract interpretation is present
18360 in the case of exponentiation as well.
18362 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18363 Bob Duff <duff@adacore.com>
18365 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
18366 copying a parameter list in a call, set properly the First_Named_Formal
18367 and Next_Named_Formal fields in the new list and in the enclosing call.
18368 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
18369 names, to ease typing in the debugger. Improve comments.
18370 (Watch_Node): New variable, intended to be set in the debugger.
18371 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
18372 called when the watched node is created.
18373 (New_Node_Debugging_Output): Combined version of local procedures
18374 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
18375 with a parameter so that conditional breakpoints like "if Node = 12345"
18377 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
18378 Add Elist1 function
18380 2007-04-06 Thomas Quinot <quinot@adacore.com>
18381 Ed Schonberg <schonberg@adacore.com>
18382 Gary Dismukes <dismukes@adacore.com>
18384 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
18385 required for a conversion between two access-to-unconstrained-array
18387 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
18388 to discriminant constraints on discriminant objects. This rule must
18389 apply as well to discriminants of protected types in private components.
18390 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
18391 object of a null-excluding access type then don't require the
18392 the object declaration to have an expression and don't emit a
18395 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18396 Eric Botcazou <botcazou@adacore.com>
18398 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
18401 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
18402 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
18405 * fe.h (Compiler_Abort): Add third parameter.
18407 * misc.c (internal_error_function): Build third argument from current
18408 input location and pass it to Compiler_Abort.
18410 2007-04-06 Gary Dismukes <dismukes@adacore.com>
18412 * cstand.adb (Create_Standard): When the target's storage unit size is
18413 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
18416 2007-04-06 Nicolas Roche <roche@adacore.com>
18418 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
18419 absolute path can have the following form: device:/a/b. In this case
18420 '/' should be inserted between the path and the filename.
18422 2007-04-06 Olivier Hainque <hainque@adacore.com>
18423 Eric Botcazou <botcazou@adacore.com>
18425 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
18426 VAR_DECL to a CONST_DECL we make for a public constant when we know the
18427 corresponding definition has created the so made visible variable.
18428 Handle anonymous access to protected subprogram.
18429 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
18430 object with an address clause volatile. Re-enable original fix.
18431 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
18433 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
18434 associated with either the Equivalent or Root type, instead of the
18436 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
18437 subtree for every field of a global record type.
18438 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
18439 discriminants, invoke again variable_size on its newly computed sizes.
18441 2007-04-06 Robert Dewar <dewar@adacore.com>
18442 Thomas Quinot <quinot@adacore.com>
18443 Ed Schonberg <schonberg@adacore.com>
18444 Bob Duff <duff@adacore.com>
18446 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
18447 (Next_Component_Or_Discriminant): New function and procedure
18448 (First_Index, First_Literal, Master_Id,
18449 Set_First_Index, Set_First_Literal, Set_Master_Id):
18450 Add missing Ekind assertions.
18451 (Is_Access_Protected_Subprogram_Type): New predicate.
18452 (Has_RACW): New entity flag, set on package entities to indicate that
18453 the package contains the declaration of a remote accecss-to-classwide
18455 (E_Return_Statement): This node type has the Finalization_Chain_Entity
18456 attribute, in case the result type has controlled parts.
18457 (Requires_Overriding): Add this new flag, because "requires
18458 overriding" is subtly different from "is abstract" (see AI-228).
18459 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
18460 Is_Abstract_Type. Make sure these are called only when appropriate.
18461 (Has_Pragma_Unreferenced_Objects): New flag
18463 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
18464 class-wide, the tag of the right-hand side must be an exact match, not
18465 an ancestor of that of the object on left-hand side.
18466 (Move_Activation_Chain): New procedure to create the call to
18467 System.Tasking.Stages.Move_Activation_Chain.
18468 (Expand_N_Extended_Return_Statement): Generate code to call
18469 System.Finalization_Implementation.Move_Final_List at the end of a
18470 return statement if the function's result type has controlled parts.
18471 Move asserts to Build_In_Place_Formal.
18472 (Move_Final_List): New function to create the call statement.
18473 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
18474 tagged type, replace generation of call to the run-time subprogram
18475 CW_Membership by call to Build_CW_Membership.
18476 (Expand_N_Return_Statement): Replace generation of call to the run-time
18477 subprogram Get_Access_Level by call to Build_Get_Access_Level.
18478 (Expand_N_Simple_Function_Return): Replace generation of call to the
18479 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18481 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
18482 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
18483 access to protected operations.
18484 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
18485 master and chain actual parameters to a build-in-place function call
18487 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
18489 (Make_Build_In_Place_Call_In_Allocator,
18490 Make_Build_In_Place_Call_In_Anonymous_Context,
18491 Make_Build_In_Place_Call_In_Assignment,
18492 Make_Build_In_Place_Call_In_Object_Declaration): Call
18493 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
18494 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
18495 stubbed procedure with a null body, replace the call with a null
18496 statement without using the full inlining machinery, for efficiency
18497 and to avoid invalid values in source file table entries.
18499 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
18500 renamings of calls to build-in-place functions.
18502 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
18503 provides the functionality of RTE_Available to record components.
18504 (RTU_Entity): The function Entity has been renamed to RTU_Entity
18505 to avoid undesired overloading.
18506 (Entity): New subprogram that returns the entity for the referened
18507 unit. If this unit has not been loaded, it returns Empty.
18508 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
18509 Remove no longer used entities.
18510 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
18511 (RE_Type_Specific_Data): New entity.
18512 (RE_Move_Any_Value): New entity.
18513 (RE_TA_A, RE_Get_Any_Type): New entities.
18514 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
18515 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
18516 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
18517 (Entity): New subprogram that returns the entity for the referened
18518 unit. If this unit has not been loaded, it returns Empty.
18519 (RTE): Addition of a new formal that extends the search to the scopes
18520 of the record types found in the chain of the package.
18522 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
18523 "abstract subprograms must be visible" message, whether or not the type
18524 is an interface; that is, remove the special case for interface types.
18525 (Analyze_Function_Return): Remove error message "return of task objects
18526 is not yet implemented" because this is now implemented.
18527 (Create_Extra_Formals): Add the extra master and activation chain
18528 formals in case the result type has tasks.
18529 Remove error message "return of limited controlled objects is not yet
18531 (Create_Extra_Formals): Add the extra caller's finalization list formal
18532 in case the result type has controlled parts.
18533 (Process_Formals): In case of access formal types there is no need
18534 to continue with the analysis of the formals if we already notified
18536 (Check_Overriding_Indicator): Add code to check overriding of predefined
18538 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
18539 flags for formals that do not require them,.
18540 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
18541 hidden entity is use visible or directly visible.
18542 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
18543 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
18544 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
18545 New_Overloaded_Entity): Split Is_Abstract flag into
18546 Is_Abstract_Subprogram and Is_Abstract_Type.
18548 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
18549 a return statement's finalization list to the caller's list, used for
18550 build-in-place functions with result type with controlled parts.
18551 Remove no longer used entities.
18553 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
18554 longer needed, because the full type is now limited, and therefore a
18555 pass-by-reference type.
18556 (Foreign_Task_Level): New constant.
18558 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
18559 move tasks from the activation chain belonging to a return statement to
18560 the one passed in by the caller, and update the master to the one
18561 passed in by the caller.
18562 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
18563 of unactivated tasks, so we don't kill the ones that are being returned
18564 by a build-in-place function.
18565 (Create_Task): Ignore AI-280 for foreign threads.
18567 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18568 Robert Dewar <dewar@adacore.com>
18569 Bob Duff <duff@adacore.com>
18570 Gary Dismukes <dismukes@adacore.com>
18572 * errout.adb (Unwind_Internal_Type): Use predicate
18573 Is_Access__Protected_Subprogram_Type.
18575 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
18576 (Freeze_Entity, packed array case): Do not override explicitly set
18577 alignment and size clauses.
18578 (Freeze_Entity): An entity declared in an outer scope can be frozen if
18579 the enclosing subprogram is a child unit body that acts as a spec.
18580 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
18581 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
18582 Remove all code for DSP option
18584 * layout.adb (Layout_Record_Type): Use First/
18585 Next_Component_Or_Discriminant
18586 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
18587 to handle properly the anonymous access case.
18589 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
18590 for all access attributes, because overload resolution should work the
18591 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
18592 causes the error message for the ambiguous "X'Access = Y'Access" and
18593 "X'Unrestricted_Access = Y'Access" and so forth to match.
18594 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
18595 now that anonymous access to protected operations have their own kind.
18596 (Resolve_Attribute): In case of dispatching call check the violation of
18597 restriction No_Dispatching_Calls.
18598 (Check_Array_Type): Check new -gnatyA array index style option
18600 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
18601 attempt to derive from a synchronized tagged type.
18602 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
18603 type, inherit the class-wide type already created, because it may
18604 already have been used in a self-referential anonymous access component.
18605 (Mentions_T): Recognize self-referential anonymous access components
18606 that use (a subtype of) the class-wide type of the enclosing type.
18607 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
18608 Derived_Type for Prev formal on call to
18609 Check_Anonymous_Access_Components rather than Empty.
18610 (Make_Incomplete_Type_Declaration): Add test for case where the type has
18611 a record extension in deciding whether to create a class-wide type,
18612 rather than just checking Tagged_Present.
18613 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
18614 to stand-alone object declarations as well as component declarations.
18615 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
18616 prevent accidental overwriting when enclosing package appears in
18617 a limited_with_clause.
18618 (Array_Type_Declaration): If the component type is an anonymous access,
18619 the associated_node for the itype is the type declaration itself.
18620 (Add_Interface_Tag_Components): Modified to support concurrent
18621 types with abstract interfaces.
18622 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
18623 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
18624 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
18625 to complete the decoration of synchronized interface types. Add also
18626 a call to Check_Abstract_Interfaces to verify the ARM rules.
18627 (Derive_Interface_Subprograms): Modified to support concurrent types
18628 with abstract interfaces.
18629 (Analyze_Subtype_Indication): Resolve the range with the given subtype
18630 mark, rather than delaying the full resolution depending on context.
18631 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
18632 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
18633 Array_Type_Declaration,Build_Derived_Record_Type,
18634 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
18635 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
18636 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
18637 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18638 called only when appropriate.
18639 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
18641 (Analyze_Subtype_Declaration): For an access subtype declaration, create
18642 an itype reference for the anonymous designated subtype, to prevent
18643 scope anonmalies in gigi.
18644 (Build_Itype_Reference): New utility, to simplify construction of such
18647 2007-04-06 Vincent Celier <celier@adacore.com>
18649 * errutil.adb (Initialize): Initialize warnings table, if all warnings
18650 are suppressed, supply an initial dummy entry covering all possible
18653 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
18654 and start with only one, such as "-RTS=none".
18655 (Collect_Arguments): Do not check for sources outside of projects.
18656 Do not collect arguments if project is externally built.
18657 (Compile_Sources): Do nothing, not even check if the source is up to
18658 date, if its project is externally built.
18659 (Compile): When compiling a predefined source, add -gnatpg
18660 as the second switch, after -c.
18661 (Compile_Sources): Allow compilation of Annex J renames without -a
18662 (Is_In_Object_Directory): Check if the ALI file is in the object
18663 even if there is no project extension.
18664 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
18665 gnatbind if the ALI file effectively exists.
18666 (Initialize): Add the directory where gnatmake is invoked in front of
18667 the path if it is invoked from a bin directory, even without directory
18668 information, so that the correct GNAT tools will be used when spawned
18669 without directory information.
18671 * makeusg.adb: Change switch -S to -eS
18672 Add lines for new switches -we, -wn and -ws
18673 Add line for new switch -p
18675 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
18676 Treat_As_Error and there are warnings.
18678 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
18679 -gnatww Change gnatmake switch -S to -eS
18680 (Scan_Make_Switches): Code reorganisation. Process separately multi
18681 character switches and single character switches.
18682 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
18683 False when switch is not recognized by gnatmake.
18684 (Scan_Make_Switches): Set Setup_Projects True when -p or
18685 --create-missing-dirs is specified.
18687 * fname.adb (Is_Predefined_File_Name): Return True for annex J
18688 renamings Calendar, Machine_Code, Unchecked_Conversion and
18689 Unchecked_Deallocation only when Renamings_Included is True.
18691 * par.adb: Allow library units Calendar, Machine_Code,
18692 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
18693 when -gnatg is not specified.
18694 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18695 there is no need to generate always a record_definition_node in case
18696 of synchronized interface types.
18697 (SIS_Entry_Active): Initialize global variable to False
18698 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
18699 indicate cases where AI-447 says "not null" is legal.
18701 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
18703 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
18704 files with with several lines starting with the object fileb name.
18705 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
18707 (Initialize): Add the directory where gprmake is invoked in front of the
18708 path, if it is invoked from a bin directory or with directory
18709 information, so that the correct GNAT tools will be used when invoked
18711 (Check_Compilation_Needed): Process correctly backslashes on Windows.
18713 * vms_data.ads: Update switches/qualifiers
18715 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18716 Thomas Quinot <quinot@adacore.com>
18719 If the array component is a discriminated record, the array aggregate
18720 is non-static even if the component is given by an aggregate with
18722 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
18723 (Convert_Aggr_In_Allocator): If the allocator is for an access
18724 discriminant and the type is controlled. do not place on a finalization
18725 list at this point. The proper list will be determined from the
18727 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
18728 initialize record controller if needed, before the components, to ensure
18729 that they are properly finalized.
18730 (Build_Record_Aggr_Code): For the case of an array component that has a
18731 corresponding array aggregate in the record aggregate, perform sliding
18734 2007-04-06 Javier Miranda <miranda@adacore.com>
18735 Gary Dismukes <dismukes@adacore.com>
18736 Ed Schonberg <schonberg@adacore.com>
18738 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
18739 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
18741 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
18742 accessibility on class-wide allocators if the allocator occurs at the
18743 same scope level as the allocator's type. The check is guaranteed to
18744 succeed in that case, even when the expression originates from a
18745 parameter of the containing subprogram.
18746 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
18747 under No_Dispatching_Calls restriction. During the semantic analysis
18748 we already notified such violation.
18749 (Tagged_Membership): Constant folding. There is no need to check
18750 the tag at run-time if the type of the right operand is non
18751 class-wide abstract.
18752 Replace call to Is_Ancestor by call to Is_Parent
18753 to support concurrent types with interface types.
18754 (Expand_N_Allocator): Add an assertion associated with the generation
18756 (Expand_N_Slice): Do not enable range check to nodes associated
18757 with the frontend expansion of the dispatch table.
18758 (Is_Local_Access_Discriminant): Subsidiary function to
18759 Expand_N_Allocator.
18760 (Tagged_Membership): Replace generation of call to the run-time
18761 subprogram CW_Membership by call to Build_CW_Membership.
18762 (Expand_Allocator_Expression): Replace generation of call to the
18763 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18765 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
18766 initialize most the TSD components by means of an aggregate.
18767 Modify the declaration of the object containing the TSD
18768 because we now expand code that has a higher level of abstraction.
18769 The TSD has a discriminant containing the Inheritance Depth Level,
18770 value that is used in the membership test but also to fix the size
18771 of the table of ancestors.
18772 (Expand_Interface_Conversion): Insert function body at the closest place
18773 to the conversion expression, to prevent access-before-elaboration
18774 errors in the backend.
18775 Code improved to reduce the size of the dispatch table if
18776 compiling under restriction No_Dispatching_Calls plus code cleanup.
18777 Code reorganization plus removal of calls to Set_Num_Prim_Ops
18778 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
18779 (Expand_Dispatching_Call): Minor code reorganization plus addition of
18780 code to return immediately if compiling under No_Dispatching_Calls
18782 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
18783 CPP_Virtual and CPP_Vtable are no longer supported.
18784 (Expand_Interface_Conversion): Add missing support for interface type
18786 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
18787 Is_Parent to support concurrent types with interfaces.
18788 (Init_Predefined_Interface_Primitives): Removed.
18789 (Make_Secondary_DT): Modified to support concurrent record types.
18790 (Set_All_DT_Position): Modified to support concurrent record types.
18791 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18792 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
18793 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
18794 with CW_Membership.
18795 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18796 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
18797 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
18798 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
18799 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
18800 (Expand_Dispatching_Call): Replace generation of call to the run-time
18801 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
18802 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
18804 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
18805 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
18806 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
18807 Build_Set_Prim_Op_Address.
18808 (Get_Remotely_Callable): Subprogram removed.
18809 (Init_Predefined_Interface_Primitives): Replace generation of call to
18810 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
18813 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
18814 First (Parameter_Associations ()) with the call to First_Actual that
18815 returns an actual parameter expression for both named and positional
18818 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
18819 check violation of restriction No_Dispatching_Calls.
18820 (Check_Controlling_Type): A formal of a tagged incomplete type is a
18821 controlling argument.
18823 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
18824 First/Next_Component_Or_Discriminant
18825 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
18826 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18827 specify Any_Limited_Interface, and this functionality is already
18828 provided by the function Has_Abstract_Interfaces.
18829 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
18830 support concurrent types implementing interfaces.
18831 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18832 specify kind Any_Limited_Interface, and this functionality is already
18833 provided by the function Has_Abstract_Interfaces.
18834 (Remove_Side_Effects): replace Controlled_Type by
18835 CW_Or_Controlled_Type whenever the issue is related to
18836 using or not the secondary stack.
18838 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
18839 P_Interface_Type_Definition to fulfill the new interface (the formal
18840 Is_Synchronized is no longer required).
18842 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
18843 Update dependencies.
18845 * exp_atag.ads, exp_atag.adb: New file
18847 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18848 Bob Duff <duff@adacore.com>
18849 Cyrille Comar <comar@adacore.com>
18851 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
18852 anonymous, use finalization list of enclosing dynamic scope.
18853 (Expand_N_Package_Declaration): For a library package declaration
18854 without a corresponding body, generate RACW subprogram bodies in the
18855 spec (just as we do for the task activation call).
18856 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
18857 Is_Abstract_Type. Make sure these are called only when appropriate.
18858 Remove all code for DSP option
18859 (CW_Or_Controlled_Type): new subprogram.
18861 2007-04-06 Eric Botcazou <botcazou@adacore.com>
18862 Ed Schonberg <schonberg@adacore.com>
18863 Gary Dismukes <dismukes@adacore.com>
18865 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
18866 parameter. If it is set to true, return a result capped according to
18867 the global upper bound for the index of an entry family.
18868 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
18869 (Build_Find_Body_Index): Adjust for above change.
18870 (Entry_Index_Expression): Likewise.
18871 (Is_Potentially_Large_Family): New function extracted from...
18872 (Collect_Entry_Families): ...here. Call it to detect whether the family
18873 is potentially large.
18874 (Build_Entry_Count_Expression): If the family is potentially large, call
18875 Family_Size with 'Cap' set to true.
18876 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
18877 a protected version of an operation declared in the private part of
18878 a protected object, because they may be invoked through a callback.
18879 (Set_Privals): If the type of a private component is an anonymous access
18880 type, do not create a new itype for each protected body.
18881 If the body of a protected operation creates
18882 controlled types (including allocators for class-widetypes), the
18883 body of the corresponding protected subprogram must include a
18885 (Build_Activation_Chain_Entity): Build the chain entity for extended
18887 (Type_Conformant_Parameters): Use common predicate Conforming_Types
18888 to determine whether operation overrides an inherited primitive.
18889 (Build_Wrapper_Spec): Add code to examine the parents while looking
18890 for a possible overriding candidate.
18891 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
18892 hold an actual parameter value since its initialization is separated
18893 from the the declaration. Prevents errors on null-excluding access
18896 2007-04-06 Thomas Quinot <quinot@adacore.com>
18897 Pablo Oliveira <oliveira@adacore.com>
18899 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
18900 Do an Unchecked_Conversion to handle the passage from the Underlying
18901 Type to the Base Type when calling Build_To_Any_Call and
18902 Build_From_Any_Call.
18903 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
18904 E_Constant, depending upon Variable formal.
18905 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18906 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
18907 parameter that requires an extra constrained parameter, declare
18908 temporary for actual as a variable, not a constant.
18909 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
18910 the unit being compiled is the one that contains the stub type.
18911 Change primitive operation name for the RACW associated with a RAS
18912 from Call to _Call so it cannot clash with any legal identifier.
18913 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
18915 (Append_RACW_Bodies): New subprogram.
18916 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
18917 Add_Receiving_Stubs_To_Declarations functions.
18918 When expanding a package body, this list correspond to the
18919 statements in the HSS at the end of the pacakge.
18920 When expanding a package spec, this list correspond to the
18922 (Add_Receiving_Stubs_To_Declarations): Append the function
18923 registering the receiving stubs at the end of the 'Stmts' list.
18924 (RCI_Package_Locator): Pass the new Version generic formal when
18925 instantiating a RCI_Locator package.
18926 (Build_From_Any_Function): To compute the High bound for an
18927 unconstrained array actual, we add the Low bound with the length.
18928 Thus we must convert the low bound and the length to an appropriate
18929 type before doing the sum.
18930 (Build_Subprogram_Receiving_Stubs, PolyORB):
18931 * Retrieve the extra formals parameters at the
18932 end of the parameter stream.
18933 * Use Move_Any_Value to write back out parameters
18934 after executing the request as it is more efficient
18935 than Copy_Any_Value.
18936 * Build the any containing Extra Formals with the
18937 appropriate typecode.
18938 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
18939 empty Component_List.
18940 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
18941 the tree the declaration for an object that serves as actual parameter
18942 in server-side stubs.
18943 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18944 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
18945 Use Build_Actual_Object_Declaration to prepare the actuals.
18946 (Add_Parameter_To_NVList): Set the parameter mode to In for
18947 Extra Constrained Parameters.
18948 (Build_General_Calling_Stubs): Set the parameter type to boolean for
18949 Extra Constrained parameters.
18950 (Build_To_Any_Function, Build_From_Any_Function,
18951 Built_TypeCode_Function): When Typ is implicit, call the correct
18952 function with the first not implicit parent type.
18953 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
18954 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
18955 typecode from the Etype. Therefore we retrieve the correct typecode
18956 with a call to Get_Any_Type.
18957 (Copy_Specification): Do controlling formal type substitution based on
18958 Is_Controlling_Formal flag, instead of caller-provided object type.
18959 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
18960 a RACW primitive operation, we might get a subprogram declaration for an
18961 ancestor of the RACW designated type (not for the designated type
18962 itself), in the case where this operation is inherited. In this case we
18963 have no easy means of determining the original tagged type for which
18964 the primitive was declared, so instead we now rely on
18965 Copy_Specification to use the Is_Controlling_Formal flag to determine
18966 which formals require type substitution.
18968 2007-04-06 Robert Dewar <dewar@adacore.com>
18969 Ed Schonberg <schonberg@adacore.com>
18971 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
18972 GNAT.Current_Exception are not allowed if pragma Restrictions
18973 (No_Exception_Propagation) is set and in any case make the associated
18974 handler unsuitable as a target for a local raise statement.
18975 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
18976 run-time subprogram CW_Membership by call to Build_CW_Membership.
18977 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
18978 by a function call, a temporary must be created before expanding the
18979 Constructor_Call itself, to prevent out-of-order elaboration in the
18980 back-end when stack checking is enabled..
18982 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18984 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
18985 result are the bounds of the left operand, not the right.
18987 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18990 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
18991 discriminant defaults.
18992 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
18993 (Make_Component_List_Attributes): Ditto.
18995 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18996 Bob Duff <duff@adacore.com>
18998 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
18999 an association with a box as providing a value even though the
19000 initialization procedure for the type is not available.
19001 (Resolve_Record_Aggregate): Check that a choice of an association with a
19002 box corresponds to a component of the type.
19003 (Resolve_Record_Aggregate): Split Is_Abstract flag into
19004 Is_Abstract_Subprogram and Is_Abstract_Type.
19006 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
19009 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
19010 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
19011 called only when appropriate.
19013 2007-04-06 Olivier Hainque <hainque@adacore.com>
19015 * g-alleve.ads (Low Level Vector type definitions): Map each to the
19016 associated vector view instead of all to the unsigned char view.
19018 * g-altcon.adb (Generic_Conversions): New internal generic package,
19019 offering facilities for all the Vector/View conversion routines
19020 implemented by this unit.
19021 (To_View/To_Vector - all versions): Reimplemented in a systematic
19022 manner, using the internal Generic_Conversions facilities.
19024 2007-04-06 Pascal Obry <obry@adacore.com>
19026 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
19028 (Create): Free the source string before storing the new one.
19030 2007-04-06 Vincent Celier <celier@adacore.com>
19032 * g-debpoo.adb (Validity): New package with a complete new
19033 implementation of subprograms Is_Valid and Set_Valid.
19034 (Is_Valid): Move to local package Validity
19035 (Set_Valid): Move to local package Validity
19037 2007-04-06 Arnaud Charlet <charlet@adacore.com>
19038 Pablo Oliveira <oliveira@adacore.com>
19040 * g-expect.adb (Get_Command_Output): When expanding the output buffer
19041 we must ensure that there is enough place for the new data we are going
19044 2007-04-06 Thomas Quinot <quinot@adacore.com>
19046 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
19049 2007-04-06 Jose Ruiz <ruiz@adacore.com>
19050 Vincent Celier <celier@adacore.com>
19052 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
19053 (Stack_String): Add this String that contains the name of the Stack
19054 package in the project file.
19055 (Packages_To_Check_By_Stack): Add this list that contains the packages
19056 to be checked by gnatstack, which are the naming and the stack packages.
19057 (Check_Files): If no .ci files were specified for gnatstack we add all
19058 the .ci files belonging to the projects, including binder generated
19060 (Non_VMS_Usage): Document that gnatstack accept project file switches.
19061 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
19062 Add gnatstack to the list of commands that use project file related
19063 switches, and get the single attribute Switches from the stack package
19064 in a project file when calling gnatstack. Parse the -U flag for
19065 processing files belonging to all projects in the project tree.
19066 Remove all processing for command Setup
19068 * prj-attr.adb: Add new package Stack with single attribute Switches
19070 * vms_conv.ads (Command_Type): Add command Stack.
19071 Move to body declarations that are only used in the body: types Item_Id,
19072 Translation_Type, Item_Ptr, Item and its subtypes.
19074 * vms_conv.adb: (Initialize): Add data for new command Stack.
19075 Add declarations moved from the spec: types Item_Id, Translation_Type,
19076 Item_Ptr, Item and its subtypes.
19077 (Cargs_Buffer): New table
19078 (Cargs): New Boolean global variable
19079 (Process_Buffer): New procedure to create arguments
19080 (Place): Put character in table Buffer or Cargs_Buffer depending on the
19082 (Process_Argument): Set Cargs when processing qualifiers for GNAT
19084 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
19085 empty, for table Cargs_Buffer.
19086 (Initialize): Remove component Setup in Command_List
19088 2007-04-06 Vincent Celier <celier@adacore.com>
19090 * gprep.adb (Process_Files.Process_One_File): Use full file name when
19091 issuing pragma Source_Reference.
19093 2007-04-06 Emmanuel Briot <briot@adacore.com>
19095 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
19096 [[:xdigit:]] character class.
19097 Also raise an exception when an invalid character class is used.
19099 2007-04-06 Pascal Obry <obry@adacore.com>
19101 * i-cstrea.ads: (fopen): Add encoding parameter.
19103 Change reference from a-sysdep.c to sysdep.c in comment.
19104 Update copyright notice.
19105 This set of patch add support for the encoding form parameter.
19107 * mingw32.h (S2WSU): New macro to convert from a string to a
19108 wide-string using the UTF-8 encoding. The S2WS macro supports now only
19109 standard 8bits encoding.
19110 (WS2SU): As above but converting from wide-sring to string.
19111 This is needed as it is necessary to have access to both versions in the
19112 runtime for the form parameter encoding support.
19113 This set of patch add support for the encoding form parameter.
19114 (S2WS): Improve implementation to handle cases where the filename is not
19115 UTF-8 encoded. In this case we default to using the current code page
19116 for the conversion.
19118 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
19119 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
19120 the constants defined in adaint.h.
19121 (fopen): Add encoding parameter.
19124 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
19125 encoding. This is needed for the Reset routine (freopen low level-call).
19127 * s-fileio.adb (Open): Decode encoding form parameter and set the
19128 corresponding encoding value into AFCB structure.
19129 (Reset): Pass the encoding value to freopen.
19130 (Close): Move the call to Lock_Task to the beginning of the procedure.
19132 2007-04-06 Geert Bosch <bosch@adacore.com>
19133 Robert Dewar <dewar@adacore.com>
19135 * i-fortra.ads: Add Double_Complex type.
19137 * impunit.adb: (Is_Known_Unit): New function
19138 Add Gnat.Byte_Swapping
19140 Add new Ada 2005 units
19141 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
19142 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
19143 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
19144 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
19146 * impunit.ads (Is_Known_Unit): New function
19148 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
19149 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
19150 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
19151 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
19152 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
19153 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
19156 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
19158 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
19160 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19161 Arnaud Charlet <charlet@adacore.com>
19163 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
19164 __gnat_adjust_context_for_raise.
19165 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
19166 implementation of floating point operations as native x86 targets.
19167 So the FPU should be initialized in the same way using finit. Fix
19168 floating point operations accuracy issues.
19169 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
19170 member in struct sigaction, so as to avoid warning for incompatible
19173 2007-04-06 Serguei Rybin <rybin@adacore.com>
19175 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
19176 switches from previously loaded tree
19178 2007-04-06 Thomas Quinot <quinot@adacore.com>
19180 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
19181 cases where a given dependency has a body or not.
19182 (Write_With_File_Names): New subprogram, common code for the two cases
19185 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19186 Javier Miranda <miranda@adacore.com>
19188 * lib-xref.ads, lib-xref.adb:
19189 Modify the loop that collects type references, to include interface
19190 types that the type implements. List each of these interfaces when
19191 building the entry for the type.
19192 (Generate_Definition): Initialize component Def and Typ of new entry
19193 in table Xrefs, to avoid to have these components unitialized.
19194 (Output_References): Split Is_Abstract flag into
19195 Is_Abstract_Subprogram and Is_Abstract_Type.
19196 (Generate_Reference): Add barrier to do not generate the warning
19197 associated with Ada 2005 entities with entities generated by the
19200 2007-04-06 Robert Dewar <dewar@adacore.com>
19201 Arnaud Charlet <charlet@adacore.com>
19202 Vincent Celier <celier@adacore.com>
19204 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
19205 Update 'Exception Handling Control' chapter which was outdated.
19206 Minor fix to documentation of -gnatwq
19207 Remove section "Adapting the Run Time to a New C++ Compiler" because
19208 it is now obsolete.
19209 Add passage on need of -nostart-files in some non-ada-main cases.
19210 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
19211 Update documentation about Interfacing with C++
19212 Add documentation for new gnatmake switch -p
19213 Add missing protocol part in URLs.
19215 Document pragma Compile_Time_Error
19216 Add documentation for Object_Size indicating that stand alone
19217 objects can have a larger size in some cases.
19218 Add node for GNAT.Byte_Swapping, GNAT.SHA1
19219 Update reference to the Ravenscar profile.
19220 Document pragma Unreferenced_Objects
19222 * gnat-style.texi: Fix typo
19224 2007-04-06 Vincent Celier <celier@adacore.com>
19226 * mlib.adb (Building_Library): Only output "building a library..." in
19229 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
19230 files in verbose mode.
19232 * mlib-utl.adb (Ar): Only output the first object files when not in
19234 (Gcc): Do not display all the object files if not in verbose mode, only
19237 2007-04-06 Robert Dewar <dewar@adacore.com>
19239 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
19240 it no longer destroys the contents of Name_Buffer or Name_Len and
19241 non-standard and invalid names are handled better.
19242 (Get_Decoded_Name_String): Improve performance by using
19243 Name_Has_No_Encodings flag in the name table.
19244 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
19245 Used for debugging printouts.
19247 2007-04-06 Robert Dewar <dewar@adacore.com>
19248 Javier Miranda <miranda@adacore.com>
19249 Bob Duff <duff@adacore.com>
19251 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
19252 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
19253 there is no need to generate always a record_definition_node in case
19254 of synchronized interface types.
19255 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
19256 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
19257 illegal in Ada 95, in cases where it is legal. Change the warnings to
19258 errors in other cases. Don't give the error unless the "not null"
19259 parses properly. Correct the source position at which the error occurs.
19260 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
19261 P_Null_Exclusion, to suppress "not null" warnings.
19262 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
19263 associated goto statements.
19265 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
19268 * scans.ads (Type_Token_Location): New flag
19270 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
19271 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
19272 P_Null_Exclusion, to suppress "not null" warnings.
19274 2007-04-06 Robert Dewar <dewar@adacore.com>
19275 Javier Miranda <miranda@adacore.com>
19276 Bob Duff <duff@adacore.com>
19277 Vincent Celier <celier@adacore.com>
19279 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
19280 (Extensions_Allowed): No longer sets Ada_Version
19281 Entry for pragma Unreferenced_Objects
19283 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
19284 system.tasking if pragma priority used in a procedure
19285 (Analyze_Pragma, case Warning): Handle dot warning switches
19286 (Process_Compile_Time_Warning_Or_Error): New procedure
19287 (Analyze_Pragma): Add processing for Compile_Time_Error
19288 Add support for extra arguments External_Name and Link_Name.
19289 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
19290 (Process_Import_Or_Interface): Add support for the use of pragma Import
19292 (Extensions_Allowed): No longer affects Ada_Version
19293 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
19294 Is_Abstract_Type. Make sure these are called only when appropriate.
19295 Add processing for pragma Unreferenced_Objects
19297 * snames.h, snames.ads, snames.adb: Add entry for pragma
19299 Add new standard name Minimum_Binder_Options for new gprmake
19300 Add new standard names for gprmake: Archive_Suffix,
19301 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
19302 Library_Support, Library_Version_Options,
19303 Shared_Library_Minimum_Options,
19304 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
19305 Change Name_Call to Name_uCall so that it cannot clash with a legal
19307 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
19308 Append C_Plus_Plus to convention identifiers as synonym for CPP
19309 Add new standard names Stack and Builder_Switches
19310 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
19311 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
19312 Run_Path_Option, Toolchain_Version.
19313 Entry for pragma Unreferenced_Objects
19315 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
19316 switches, without repetition of "eD". Make sure that last character of
19317 -gnatep= switch is not taken as -gnat switch character.
19318 Complete rewrite of circuit for handling saving compilation options
19319 Occasioned by need to support dot switchs for -gnatw, but cleans up
19321 -gnatX does not affect Ada_Version
19322 Include -gnatyA in -gnatg style switches
19324 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
19325 warnings on return objects.
19326 (Warn_On_Useless_Assignment): Exclude warnings on return objects
19327 (Set_Dot_Warning_Switch): New procedure
19328 (Check_References): Add missing case of test for
19329 Has_Pragma_Unreferenced_Objects
19330 (Output_Unreferenced_Messages): Implement effect of new pragma
19331 Unreferenced_Objects, remove special casing of limited controlled
19334 2007-04-06 Vincent Celier <celier@adacore.com>
19336 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
19337 the default project path, initially done during elaboration of the
19339 If the prefix returned by Sdefault is null, get the prefix from a call
19340 to Executable_Prefix_Path.
19341 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
19344 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
19345 canonical directory name to open the directory from which files are
19347 (Record_Other_Sources): Idem.
19348 (Locate_Directory): Add the possibility to create automatically missing
19349 directories when Setup_Projects is True.
19350 Call Locate_Directory so that the directory will be created when
19351 Setup_Projects is True, for object dir, library dir, library ALI dir,
19352 library source copy dir and exec dir.
19354 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
19357 2007-04-06 Robert Dewar <dewar@adacore.com>
19359 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
19360 Use First/Next_Component_Or_Discriminant
19361 (Analyze_Record_Representation_Clause):
19362 Use First/Next_Component_Or_Discriminant
19363 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
19364 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
19365 definition if type is unconstrained.
19366 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19367 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
19368 Is_Abstract_Subprogram and Is_Abstract_Type.
19369 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19371 * repinfo.adb (List_Record_Info): Use First/
19372 Next_Component_Or_Discriminant.
19374 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
19377 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
19378 Include -gnatyA in default switches
19380 * opt.ads: (Warn_On_Non_Local_Exception): New flag
19381 (Warn_On_Reverse_Bit_Order): New flag
19382 (Extensions_Allowed): Update the documentation.
19383 (Warn_On_Questionable_Missing_Parens): Now on by default
19385 * usage.adb: Add documentation of -gnatw.x/X switches
19386 Document new -gnatyA style switch
19387 -gnatq warnings are on by default
19389 2007-04-06 Ed Falis <falis@adacore.com>
19391 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
19392 full word is no longer compared twice.
19394 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19396 * sem_ch10.adb (Install_Limited_Context_Clauses.
19397 Expand_Limited_With_Clause): Use a new copy of selector name in the
19398 call to Make_With_Clause. This fixes the tree structure for ASIS
19399 purposes. Nothing is changed in the compiler behaviour.
19400 (Process_Body_Clauses): Handle properly use clauses whose prefix is
19401 a package renaming.
19402 (Install_Limited_With_Clauses): Do not install non-limited view when it
19403 is still incomplete.
19405 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19406 Gary Dismukes <dismukes@adacore.com>
19408 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
19409 when capturing size information, instead of base type, which for a
19410 formal array type will be the unconstrained type.
19411 (Analyze_Formal_Object_Declaration): Add check for illegal default
19412 expressions for a formal in object of a limited type.
19413 (Instantiate_Object): Ditto.
19414 (Check_Formal_Package_Instance): Skip entities that are formal objects,
19415 because they were defaulted in the formal package and no check applies
19417 (Check_Formal_Package_Instance): Extend conformance check to other
19418 discrete types beyond Integer.
19419 (Process_Default): Copy directly the unmatched formal. A generic copy
19420 has already been performed in Analyze_Formal_Package.
19421 (Analyze_Associations): If a formal subprogram has no match, check for
19422 partial parametrization before looking for a default, to prevent
19424 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
19425 not set the instantiation environment before analyzing the actuals.
19426 Fixes regression on 8515-003 with implementation of AI-133.
19427 Set_Instance_Env checks whether the generic unit is a predefined
19428 unit, in which case the instance must be analyzed with the latest Ada
19429 mode. This setting must take place after analysis of the actuals,
19430 because the actuals must be analyzed and frozen in the Ada mode extant
19431 outside of the current instantiation.
19432 (Save_Env, Restore_Env): Preserve and restore the configuration
19433 parameters so that predefined units can be compiled in the proper Ada
19435 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
19436 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
19437 and Is_Abstract_Type.
19438 (Analyze_Formal_Package): For better error recovery, Add exception
19439 handler to catch Instantion_Error, which can be raised in
19440 Analyze_Associations
19442 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19443 Bob Duff <duff@adacore.com>
19444 Gary Dismukes <dismukes@adacore.com>
19446 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
19447 prefix type is a discriminated subtype of the type of the formal.
19448 (Analyze_Allocator): Collect all coextensions regardless of the context.
19449 Whether they can be allocated statically is determined in exp_ch4.
19450 (Analyze_Selected_Component): If the prefix is a limited view and the
19451 non-limited view is available, use the non-limited one.
19452 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
19453 therefore illegal), suggest a qualified expression rather than a type
19454 conversion, because a type conversion would be illegal in this context.
19455 (Anayze_Allocator): Trace recursively all nested allocators so that all
19456 coextensions are on the corresponding list for the root. Do no mark
19457 coextensions if the root allocator is within a declaration for a stack-
19458 allocated object, because the access discriminants will be allocated on
19460 (Analyze_Call): Remove restriction on calls to limited functions for the
19461 cases of generic actuals for formal objects, defaults for formal objects
19462 and defaults for record components.
19463 (Analyze_Allocator): Before analysis, chain coextensions on the proper
19464 element list. Their expansion is delayed until the enclosing allocator
19465 is processed and its finalization list constructed.
19466 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
19467 for an operation with the given name among the primitive operations of
19468 the corresponding record type.
19469 (Analyze_Selected_Component): If the prefix is a task type that
19470 implements an interface, and there is no entry with the given name,
19471 check whether there is another primitive operation (e.g. a function)
19473 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
19474 properly the indexing of a function call written in prefix form, where
19475 the function returns an array type, and all parameters of the function
19476 except the first have defaults.
19477 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
19478 the original operands, rather than relocating them, for efficiency and
19479 to work properly when an operand is overloaded.
19480 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
19481 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
19482 (Analyze_Selected_Component): If the prefix is a private extension, only
19483 scan the visible components, not those of the full view.
19484 (Try_Primitive_Operation): If the operation is a procedure, collect all
19485 possible interpretations, as for a function, because in the presence of
19486 classwide parameters several primitive operations of the type can match
19487 the given arguments.
19489 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19490 Robert Dewar <dewar@adacore.com>
19492 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
19493 tag-indeterminate call to an abstract function, when the left-hand side
19495 (Analyze_Loop_Statement): Improve detection of infinite loops
19497 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19498 Thomas Quinot <quinot@adacore.com>
19500 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
19501 out of Analyze_Package_Declaration, because processing must be applied
19502 to package bodies as well, for deferred constants completed by pragmas.
19503 (Analyze_Package_Declaration): When the package declaration being
19504 analyzed does not require an explicit body, call Check_Completion.
19505 (May_Need_Implicit_Body): An implicit body is required when a package
19506 spec contains the declaration of a remote access-to-classwide type.
19507 (Analyze_Package_Body): If the package contains RACWs, append the
19508 pending subprogram bodies generated by exp_dist at the end of the body.
19509 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
19510 Is_Abstract_Subprogram and Is_Abstract_Type.
19511 (Preserve_Full_Attributes): The full entity list is not an attribute
19512 that must be preserved from full to partial view.
19514 * sem_dist.adb (Add_RAS_Dereference_TSS):
19515 Change primitive name to _Call so it cannot clash with any legal
19516 identifier, and be special-cased in Check_Completion.
19517 Mark the full view of the designated type for the RACW associated with
19518 a RAS as Comes_From_Source to get proper view switching when installing
19519 private declarations.
19520 Provite a placeholder nested package body along with the nested spec
19521 to have a place for Append_RACW_Bodies to generate the calling stubs
19522 and stream attributes.
19524 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19525 Robert Dewar <dewar@adacore.com>
19527 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
19528 that is a limited view, check the non-limited view if available.
19529 (Undefined): Refine error message for missing with of Text_IO
19530 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
19531 to distinguish real missing with cases.
19532 Fix format of all missing with messages
19533 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
19534 renaming as body when renamed entity is abstract.
19536 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19537 Javier Miranda <miranda@adacore.com>
19539 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
19540 predicate recursive, to handle complex expressions on literals whose
19541 spurious ambiguity comes from the abstract interpretation of some
19543 (Interface_Present_In_Ancestor): Add support to concurrent record
19545 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
19546 Is_Abstract_Subprogram and Is_Abstract_Type.
19548 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19549 Javier Miranda <miranda@adacore.com>
19551 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
19552 dereference of a local object R created as a reference to another
19553 object O, use the access level of O.
19554 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
19555 rather than local Same_Formal_Type, to check whether protected operation
19556 overrides an inherited one.
19557 (Same_Formal_Type): New predicate, used when matching signatures of
19558 overriding synchronized operations, to handle the case when a formal
19559 has a type that is a generic actual.
19560 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
19561 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
19562 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
19563 syntactic ambiguities involving indexing of function calls that return
19565 (Abstract_Interface_List): New subprogram that returns the list of
19566 abstract interfaces associated with a concurrent type or a
19567 concurrent record type.
19568 (Interface_Present_In_Parent): New subprogram used to check if a
19569 given type or some of its parents implement a given interface.
19570 (Collect_Abstract_Interfaces): Add support for concurrent types
19571 with interface types.
19572 (Has_Abstract_Interfaces): Add support for concurrent types with
19574 (Is_Parent): New subprogram that determines whether E1 is a parent
19575 of E2. For a concurrent type its parent is the first element of its
19576 list of interface types; for other types this function provides the
19577 same result than Is_Ancestor.
19578 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
19579 (Collect_Synchronized_Interfaces): Removed because the subprogram
19580 Collect_Abstract_Interfaces provides this functionality.
19581 (Collect_Abstract_Interfaces): Minor update to give support to
19582 concurrent types and thus avoid undesired code duplication.
19583 (Get_Subprogram_Entity): Handle entry calls.
19584 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
19586 (Enter_Name): Do not give -gnatwh hiding warning for record component
19587 entities, they never result in hiding.
19589 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19590 Robert Dewar <dewar@adacore.com>
19592 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
19593 to chain nested components that are allocators for access discriminants
19594 of the enclosing object.
19595 Add N_Push and N_Pop nodes
19596 New field Exception_Label added
19597 (Local_Raise_Statements): New field in N_Exception_Handler_Node
19598 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
19599 (Is_Coextension): New flag for allocators, to mark allocators that
19600 correspond to access discriminants of dynamically allocated objects.
19601 (N_Block_Statement): Document the fact that the corresponding entity
19602 can be an E_Return_Statement.
19603 (Is_Coextension): New flag for allocators.
19604 Remove all code for DSP option
19606 * sprint.ads, sprint.adb: Display basic information for class_wide
19607 subtypes. Add handling of N_Push and N_Pop nodes
19609 2007-04-06 Arnaud Charlet <charlet@adacore.com>
19611 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
19612 before propagating exception.
19614 2007-04-06 Olivier Hainque <hainque@adacore.com>
19616 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
19617 an address always within the call instruction from a return address.
19619 2007-04-06 Olivier Hainque <hainque@adacore.com>
19620 Eric Botcazou <botcazou@adacore.com>
19622 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
19623 expression with a COMPOUND_EXPR including the call instead of emitting
19624 the call directly here.
19625 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
19626 high bound is constant and the slice is empty. Tidy.
19627 (tree_transform, case N_Op_Not): Handle properly the case where the
19628 operation applies to a private type whose full view is a modular type.
19629 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
19630 Address_Clause, use the associated Expression as the GNAT tree
19631 representing the choice value to ensure the corresponding GCC tree is
19632 of the proper kind.
19633 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
19634 instead of just the operands, as the base GCC stabilize_reference does.
19635 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
19636 requested; otherwise fail.
19637 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
19639 2007-04-06 Thomas Quinot <quinot@adacore.com>
19641 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
19642 implementation of UI_Div.
19643 (UI_Div): Reimplement as a call to UI_Div_Rem.
19644 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
19645 remainder, avoiding the cost of a multiplication and a subtraction.
19646 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
19647 provides both quotient and remainder in a single computation.
19648 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
19649 functions for uint.
19650 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
19651 is undefined if the given n is not inversible.
19653 2007-04-06 Olivier Hainque <hainque@adacore.com>
19655 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
19656 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
19659 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19660 Olivier Hainque <hainque@adacore.com>
19662 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
19663 when updating the contents of the old pointer to an unconstrained array.
19664 (end_subprog_body): Set error_gnat_node to Empty.
19665 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
19666 (unchecked_convert): For subtype to base type conversions, require that
19667 the source be a subtype if it is an integer type.
19668 (builtin_decls): New global, vector of available builtin functions.
19669 (gnat_pushdecl): Add global builtin function declaration nodes to the
19670 builtin_decls list.
19671 (gnat_install_builtins): Adjust comments.
19672 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
19673 calling gnat_pushdecl, so that it knows when it handed a builtin
19674 function declaration node.
19675 (builtin_decl_for): Search the builtin_decls list.
19677 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19679 * s-stchop-vxworks.adb:
19680 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
19682 2007-04-06 Robert Dewar <dewar@adacore.com>
19683 Arnaud Charlet <charlet@adacore.com>
19685 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
19687 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
19689 Add mention of -Sev (set initialize_scalars option from environment
19690 variable at run time) in gnatbind usage message.
19692 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
19694 * fname-uf.ads: Minor comment fix
19696 * osint.ads: Change pragma Elaborate to Elaborate_All
19698 * par-load.adb: Add documentation.
19700 * sem_cat.ads, sem_cat.adb: Minor code reorganization
19702 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
19704 * s-secsta.ads: Extra comments
19706 * s-soflin.ads: Minor comment fixes
19708 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
19710 * s-wchcon.ads: Minor comment addition
19712 * treepr.adb: Minor change in message
19713 (Print_Name,Print_Node): Make these debug printouts more robust: print
19714 "no such..." instead of crashing on bad input.
19716 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
19718 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
19719 instead of gnat_signed_or_unsigned_type.
19720 * utils.c (gnat_signed_or_unsigned_type): Remove.
19721 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
19722 * gigi.h (gnat_signed_or_unsigned_type): Remove
19724 2007-03-09 Roger Sayle <roger@eyesopen.com>
19726 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
19727 fold with the result of buildN.
19728 * decl.c (gnat_to_gnu_entity): Likewise.
19729 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
19730 * utils.c (finish_record_type, merge_sizes, max_size, convert):
19732 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
19733 nonbinary_modular_operation, build_binary_op, build_unary_op,
19734 build_cond_expr): Likewise.
19736 * utils.c (convert): Use fold_build1 when casting values to void.
19737 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
19738 fold_convert instead of convert when appropriate.
19740 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19742 * Make-lang.in: Add install-pdf target as copied from
19743 automake v1.10 rules.
19745 2007-02-28 Andreas Schwab <schwab@suse.de>
19747 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
19748 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
19749 (doc/gnat-style.info): Likewise.
19751 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
19753 * gnat-style.texi: Standardize title page.
19754 * gnat_rm.texi: Likewise.
19755 * gnat_ugn.texi: Likewise.
19757 2007-02-25 Mark Mitchell <mark@codesourcery.com>
19759 * decl.c (annotate_value): Adjust for refactoring of tree_map
19762 2007-02-24 Mark Mitchell <mark@codesourcery.com>
19764 * decl.c (annotate_value): Adjust for refactoring of tree_map
19767 2007-02-21 Ed Schonberg <schonberg@adacore.com>
19770 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
19771 untagged derived type, add hidden components to keep discriminant
19772 layout consistent, when a given discriminant of the derived type
19773 constraints several discriminants of the parent type.
19775 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
19776 Sandra Loosemore <sandra@codesourcery.com>
19778 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
19779 build the call expression.
19780 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
19781 * utils.c (max_size) <tcc_exceptional>: Delete.
19782 <tcc_vl_exp>: New case.
19783 <tcc_expression>: Delete CALL_EXPR subcase.
19784 (build_global_cdtor): Use build_call_nary instead of build3.
19785 * utils2.c (build_call_1_expr): Likewise.
19786 (build_call_2_expr): Likewise.
19787 (build_call_0_expr): Likewise.
19788 (build_call_alloc_dealloc): Likewise.
19790 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
19792 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
19793 get_action_description_for): Replace _Unwind_Word with _uleb128_t
19794 and _Unwind_SWord with _sleb128_t.
19796 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
19798 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
19799 * decl.c: Include gt-ada-decl.h.
19800 (annotate_value_cache): New.
19801 (annotate_value): Use it instead of TREE_COMPLEXITY.
19803 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
19805 * misc.c, utils2.c: Fix comment typos.
19807 2007-01-24 Roger Sayle <roger@eyesopen.com>
19809 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
19810 TREE_CONSTANT_OVERFLOW.
19811 (allocatable_size_p, annotate_value): Likewise.
19812 * trans.c (gnat_to_gnu): Likewise.
19813 * utils.c (unchecked_convert): Likewise.
19814 * utils2.c (build_simple_component_ref): Likewise.
19816 2007-01-23 Richard Guenther <rguenther@suse.de>
19819 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
19820 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
19821 (gnatboot3): Likewise.
19822 (GNATBIND): Do not define.
19823 * Makefile.in (GNATBIND): Do not define.
19825 2007-01-08 Richard Guenther <rguenther@suse.de>
19827 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
19828 * trans.c (gnat_to_gnu): Likewise.
19830 2006-12-07 Geoffrey Keating <geoffk@apple.com>
19832 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
19833 * adaint.c: Likewise.
19835 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
19837 Merge from gimple-tuples-branch:
19838 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
19840 * ada-tree.h (lang_tree_node): Handle gimple tuples.
19841 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
19842 GIMPLE_MODIFY_STMT.
19844 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
19846 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
19847 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
19850 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
19853 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
19854 if the initializer takes into account the padding.
19856 2006-11-11 Richard Guenther <rguenther@suse.de>
19858 * trans.c (maybe_stabilize_reference): Remove handling of
19859 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
19861 2006-11-05 Arnaud Charlet <charlet@adacore.com>
19864 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
19865 (To_Target_Priority): New function.
19867 2006-10-31 Robert Dewar <dewar@adacore.com>
19869 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
19870 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
19871 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
19872 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
19873 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
19874 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
19875 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
19876 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
19877 a-szbzha.adb: Minor reformatting. Fix header.
19879 * a-numaux-x86.adb: Add parentheses for use of unary minus
19880 * a-ngcefu.adb: Supply missing parentheses for unary minus
19881 * a-ngcoty.adb: Add parens for use of unary minus
19882 * a-ngelfu.adb: Add missing parens for unary minus
19883 * a-tifiio.adb: Add parentheses for uses of unary minus
19885 2006-10-31 Robert Dewar <dewar@adacore.com>
19886 Bob Duff <duff@adacore.com>
19887 Ed Schonberg <schonberg@adacore.com>
19889 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
19890 with multiplying operator.
19891 (Expected_Type_Is_Any_Real): New function to determine from the Parent
19892 pointer whether the context expects "any real type".
19893 (Resolve_Arithmetic_Op): Do not give an error on calls to the
19894 universal_fixed "*" and "/" operators when they are used in a context
19895 that expects any real type. Also set the type of the node to
19896 Universal_Real in this case, because downstream processing requires it
19897 (mainly static expression evaluation).
19898 Reword some continuation messages
19899 Add some \\ sequences to continuation messages
19900 (Resolve_Call): Refine infinite recursion case. The test has been
19901 sharpened to eliminate some false positives.
19902 Check for Current_Task usage now includes entry barrier, and is now a
19903 warning, not an error.
19904 (Resolve): If the call is ambiguous, indicate whether an interpretation
19905 is an inherited operation.
19906 (Check_Aggr): When resolving aggregates, skip associations with a box,
19907 which are priori correct, and will be replaced by an actual default
19908 expression in the course of expansion.
19909 (Resolve_Type_Conversion): Add missing support for conversion from
19910 a class-wide interface to a tagged type. Minor code cleanup.
19911 (Valid_Tagged_Converion): Add support for abstact interface type
19913 (Resolve_Selected_Component): Call Generate_Reference here rather than
19914 during analysis, and use May_Be_Lvalue to distinguish read/write.
19915 (Valid_Array_Conversion): New procedure, abstracted from
19916 Valid_Conversion, to incorporate accessibility checks for arrays of
19917 anonymous access types.
19918 (Valid_Conversion): For a conversion to a numeric type occurring in an
19919 instance or inlined body, no need to check that the operand type is
19920 numeric, since this has been checked during analysis of the template.
19921 Remove legacy test for scope name Unchecked_Conversion.
19923 * sem_res.ads: Minor reformatting
19925 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
19926 (PE_Current_Task_In_Entry_Body): New exception code
19927 (SE_Restriction_Violation): Removed, not used
19929 * a-except.ads: Update comments.
19931 * types.h, types.ads: Add definition for Validity_Check
19932 (PE_Current_Task_In_Entry_Body): New exception code
19933 (SE_Restriction_Violation): Removed, not used
19935 2006-10-31 Thomas Quinot <quinot@adacore.com>
19937 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
19940 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19941 Jose Ruiz <ruiz@adacore.com>
19943 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
19944 part of Ada.Calendar: all subprogram raise Unimplemented.
19945 (Split_W_Offset): Temp function body, raising Unimplemented
19947 * a-calend.ads, a-calend-vms.ads:
19948 Add imported variable Invalid_TZ_Offset used to designate targets unable
19949 to support time zones.
19950 (Unimplemented): Temporary function raised by the body of new
19952 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
19953 unit provides handling of leap seconds and is used by the new Ada 2005
19954 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
19955 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
19956 version returns an extra value which is the offset to UTC.
19958 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
19959 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
19960 (Split_W_Offset): New function body.
19961 (Time_Of): When a date is close to UNIX epoch, compute the time for
19962 that date plus one day (that amount is later substracted after
19963 executing mktime) so there are no problems with time zone adjustments.
19965 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
19967 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
19968 a-catizo.ads, a-catizo.adb: New files.
19970 * impunit.adb: Add new Ada 2005 entries
19972 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
19973 Rename all occurences of "__gnat_localtime_r" to
19974 "__gnat_localtime_tzoff".
19975 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
19976 zone data and calculate the GMT offset.
19977 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
19978 Use the field "tm_gmtoff" to extract the GMT offset.
19979 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
19980 the external variable "timezone" to calculate the GMT offset.
19982 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19983 Jose Ruiz <ruiz@adacore.com>
19985 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
19986 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
19987 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
19988 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
19989 System.Any_Priority to a POSIX priority on the target.
19991 * system-linux-ia64.ads:
19992 Extend range of Priority types on Linux to use the whole range made
19993 available by the system.
19995 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
19996 function maps from System.Any_Priority to a POSIX priority on the
19998 (PTHREAD_PRIO_PROTECT): Set real value.
19999 (PTHREAD_PRIO_INHERIT): Now a function.
20000 (SIGCPUFAIL): New signal.
20001 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
20002 are documented as reserved by the OS.
20004 * system-aix.ads: Use the full range of priorities provided by the
20007 * s-taprop-posix.adb: Call new function To_Target_Priority.
20008 (Set_Priority): Take into account Task_Dispatching_Policy and
20009 Priority_Specific_Dispatching pragmas when determining if Round Robin
20010 must be used for scheduling the task.
20012 * system-linux-x86_64.ads, system-linux-x86.ads,
20013 system-linux-ppc.ads: Extend range of Priority types on Linux to use
20014 the whole range made available by the system.
20016 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
20017 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
20018 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
20019 when deallocating the TCB in order to avoid potential references to
20021 (Set_Priority): Take into account Task_Dispatching_Policy and
20022 Priority_Specific_Dispatching pragmas when determining if Round Robin
20023 or FIFO within priorities must be used for scheduling the task.
20025 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
20026 the Thread field (to be used internally by the run-time system) and the
20027 kernel-level task id in the LWP field (to be used by the debugger).
20028 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
20029 instance, and propagate the current task options to the spawned task.
20030 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
20031 (Initialize): Set Round Robin dispatching when the corresponding pragma
20034 2006-10-31 Robert Dewar <dewar@adacore.com>
20036 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20037 system-linux-hppa.ads, system-hpux-ia64.ads,
20038 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
20039 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
20040 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
20041 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
20042 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20043 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
20044 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
20045 Default_Bit_Order) to kill constant condition warnings for references
20048 2006-10-31 Vincent Celier <celier@adacore.com>
20049 Eric Botcazou <ebotcazou@adacore.com>
20051 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
20052 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
20053 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
20054 Ext_To, when building the library file name
20056 * mlib-tgt-vxworks.adb: ditto.
20057 (Get_Target_Suffix): Add support for x86 targets.
20059 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
20061 * mlib-tgt-darwin.adb:
20062 Use Append_To, instead of Ext_To, when building the library file name
20063 (Flat_Namespace): New global variable.
20064 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
20065 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
20066 (Link_Shared_Libgcc): Delete.
20067 (Build_Dynamic_Library): Adjust for above changes.
20069 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
20071 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
20073 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
20074 (Initialize): Add type conversions required by above change.
20076 2006-10-31 Jose Ruiz <ruiz@adacore.com>
20078 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
20079 (getpid): New body for this function that uses the underlying taskIdSelf
20080 function for VxWorks 5 and VxWorks 6 in kernel mode.
20081 (unsigned_int): New type, modular to allow logical bit operations.
20082 (taskOptionsGet): New imported function.
20084 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
20085 field to be compliant with the type used by the corresponding operating
20088 2006-10-31 Pascal Obry <obry@adacore.com>
20089 Eric Botcazou <ebotcazou@adacore.com>
20090 Vincent Celier <celier@adacore.com>
20092 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
20093 ASCII version of the registry API. This is needed as the GNAT runtime
20094 is now UNICODE by default.
20096 (get_gcc_version): Do not hardcode the return value.
20097 (__gnat_file_time_name): On Windows properly set the default returned
20098 value to -1 which corresponds to Invalid_Time.
20099 (__gnat_fopen): New routine. A simple wrapper on all plateforms
20100 except on Windows where it does conversion for unicode support.
20101 (__gnat_freopen): Idem.
20102 (__gnat_locate_exec_on_path): If environment variable PATH does not
20103 exist, return a NULL pointer
20105 * adaint.h: (__gnat_fopen): Declare.
20106 (__gnat_freopen): Likewise.
20108 * mingw32.h (_tfreopen): Define this macro here for older MingW
20110 Activate the unicode support on platforms using a MingW runtime
20111 version 3.9 or newer.
20113 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
20114 This is needed for proper unicode support on Windows.
20117 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
20118 Nicolas Setton <setton@adacore.com>
20119 Olivier Hainque <hainque@adacore.com>
20120 Gary Dismukes <dismukes@adacore.com>
20122 * gigi.h: (tree_code_for_record_type): Declare.
20123 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
20124 (get_global_renaming_pointers): Rename to
20125 invalidate_global_renaming_pointers.
20126 (static_ctors): Delete.
20127 (static_dtors): Likewise.
20128 (gnat_write_global_declarations): Declare.
20129 (create_var_decl): Adjust descriptive comment to indicate that the
20130 subprogram may return a CONST_DECL node.
20131 (create_true_var_decl): Declare new function, similar to
20132 create_var_decl but forcing the creation of a VAR_DECL node.
20133 (get_global_renaming_pointers): Declare.
20134 (add_global_renaming_pointer): Likewise.
20136 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
20138 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
20139 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
20141 (gnat_to_gnu_entity): Remove From_With_Type from computation for
20143 <E_Access_Type>: Use the Non_Limited_View as the full view of the
20144 designated type if the pointer comes from a limited_with clause. Make
20145 incomplete designated type if it is in the main unit and has a freeze
20147 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
20148 Underlying_Full_View similarly. Return earlier if the full view already
20149 has an associated tree.
20150 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
20151 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
20152 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
20153 reference type built for objects with an address clause.
20154 Use create_true_var_decl with const_flag set for
20155 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
20157 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
20158 for Character and Wide_Character types. This info is read by the
20159 dwarf-2 writer, and is needed to be able to use the command "ptype
20160 character" in the debugger.
20161 (gnat_to_gnu_entity): When generating a type representing
20162 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
20163 so that debug writers can distinguish it from ordinary integers.
20164 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
20165 addition to TREE_READONLY to assert the constantness of variables for
20166 elaboration purposes.
20167 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
20168 parameters to call new Einfo function First_Formal_With_Extras.
20169 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
20170 protected type with its corresponding discriminant, to obtain a usable
20172 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
20173 for a multiple elaboration of the "equivalent" type.
20174 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
20175 into record_global_renaming_pointer.
20176 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
20177 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
20178 <E_Array_Subtype>: Likewise.
20179 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
20180 incomplete subtypes and incomplete subtypes of incomplete types visible
20181 through a limited with clause.
20182 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
20183 the base index type for the maximum size of the array only if they are
20185 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
20186 expression into a SAVE_EXPR if stabilization failed.
20188 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
20189 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
20190 by lower level compilation passes.
20191 (gnat_genericize): New function, lowering a function body to GENERIC.
20192 Turn the type of RESULT_DECL into a real reference type if the decl
20193 has been marked DECL_BY_REFERENCE, and adjust references to the latter
20195 (gnat_genericize_r): New function. Tree walking callback for
20197 (convert_from_reference, is_byref_result): New functions. Helpers for
20199 (create_type_decl): Call gnat_pushdecl before calling
20200 rest_of_decl_compilation, to make sure that field TYPE_NAME of
20201 type_decl is properly set before calling the debug information writers.
20202 (write_record_type_debug_info): The heuristics which compute the
20203 alignment of a field in a variant record might not be accurate. Add a
20204 safety test to make sure no alignment is set to a smaller value than
20205 the alignment of the field type.
20206 (make_dummy_type): Use the Non_Limited_View as the underlying type if
20207 the type comes from a limited_with clause. Do not loop on the full view.
20208 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
20209 (dummy_node_table): New global variable, moved from decl.c.
20210 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
20211 (save_gnu_tree): Use above macros.
20212 (get_gnu_tree): Likewise.
20213 (present_gnu_tree): Likewise.
20214 (init_dummy_type): New function, moved from decl.c. Use above macros.
20215 (make_dummy_type): Likewise.
20216 (tree_code_for_record_type): New function extracted from make_dummy_type
20217 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
20218 (static_ctors): Change it to a vector, make static.
20219 (static_dtors): Likewise.
20220 (end_subprog_body): Adjust for above change.
20221 (build_global_cdtor): Moved from trans.c.
20222 (gnat_write_global_declarations): Emit global constructor and
20223 destructor, and call cgraph_optimize before emitting debug info for
20224 global declarations.
20225 (global_decls): New global variable.
20226 (gnat_pushdecl): Store the global declarations in global_decls, for
20228 (gnat_write_global_declarations): Emit debug information for global
20230 (create_var_decl_1): Former create_var_decl, with an extra argument to
20231 state whether the creation of a CONST_DECL is allowed.
20232 (create_var_decl): Behavior unchanged. Now a wrapper around
20233 create_var_decl_1 allowing CONST_DECL creation.
20234 (create_true_var_decl): New function, similar to create_var_decl but
20235 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
20236 (create_field_decl): Do not always mark the field as addressable
20237 if its type is an aggregate.
20238 (global_renaming_pointers): New static variable.
20239 (add_global_renaming_pointer): New function.
20240 (get_global_renaming_pointers): Likewise.
20242 * misc.c (gnat_dwarf_name): New function.
20243 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
20244 (gnat_post_options): Add comment about structural alias analysis.
20245 (gnat_parse_file): Do not call cgraph_optimize here.
20246 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
20248 * trans.c (process_freeze_entity): Don't abort if we already have a
20249 non dummy GCC tree for a Concurrent_Record_Type, as it might
20250 legitimately have been elaborated while processing the associated
20251 Concurrent_Type prior to this explicit freeze node.
20252 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
20253 exception handler volatile if it is of variable size.
20254 (process_type): Remove bypass for types coming from a limited_with
20256 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
20257 actual, convert the corresponding gnu_actual to the real destination
20258 type when necessary.
20259 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
20260 originally TREE_READONLY but whose elaboration cannot be performed
20262 Part of fix for F504-021.
20263 (tree_transform, subprogram cases): Change loops on formal parameters to
20264 call new Einfo function First_Formal_With_Extras.
20265 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
20266 stemming from type conversion for the lhs.
20267 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
20268 number of bits per unit for components of records.
20269 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
20270 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
20271 with At_End_Proc after the SJLJ EH cleanup.
20272 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
20274 (elaborate_all_entities): Do not retest type_annotate_only.
20275 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
20276 result type of an abstract subprogram, which may be an itype associated
20277 with an anonymous access result (related to AI-318-02).
20278 (build_global_cdtor): Move to utils.c.
20279 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
20280 this choice is not a null tree nor an integer constant.
20281 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
20282 on the body of elaboration routines instead of mark_unvisited.
20283 (add_stmt): Do not mark the tree.
20284 (add_decl_expr): Tweak comment.
20285 (mark_unvisited): Delete.
20286 (unshare_save_expr): New static function.
20287 (call_to_gnu): Issue an error when making a temporary around a
20288 procedure call because of non-addressable actual parameter if the
20289 type of the formal is by_reference.
20290 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
20291 after building the elaboration routine.
20293 2006-10-31 Bob Duff <duff@adacore.com>
20295 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
20296 as finalization-started, so we can raise Program_Error on 'new'.
20298 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
20299 collection has already started.
20301 * s-finimp.ads (Collection_Finalization_Started): Added new special
20302 flag value for indicating that a collection's finalization has started.
20304 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
20305 create a task whose master has already waited for dependent tasks.
20307 2006-10-31 Robert Dewar <dewar@adacore.com>
20309 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
20311 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
20312 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
20313 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
20314 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
20315 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
20316 a-except-2005.ads: Add pragma Preelaborable_Warning
20318 2006-10-31 Robert Dewar <dewar@adacore.com>
20319 Jose Ruiz <ruiz@adacore.com>
20321 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
20323 * ali.adb (Get_Name): Properly handle scanning of wide character names
20324 encoded with brackets notation.
20325 (Known_ALI_Lines): Add S lines to this list.
20326 (Scan_ALI): Acquire S (priority specific dispatching) lines.
20327 New flag Elaborate_All_Desirable in unit table
20329 * ali.ads (Priority_Specific_Dispatching): Add this range of
20330 identifiers to be used for Priority_Specific_Dispatching table entries.
20331 (ALIs_Record): Add First_Specific_Dispatching and
20332 Last_Specific_Dispatching that point to the first and last entries
20333 respectively in the priority specific dispatching table for this unit.
20334 (Specific_Dispatching): Add this table for storing each S (priority
20335 specific dispatching) line encountered in the input ALI file.
20336 New flag Elaborate_All_Desirable in unit table
20338 * bcheck.adb: (Check_Configuration_Consistency): Add call to
20339 Check_Consistent_Dispatching_Policy.
20340 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
20341 verifying that the use of Priority_Specific_Dispatching,
20342 Task_Dispatching_Policy, and Locking_Policy is consistent across the
20345 * bindgen.adb: (Public_Version_Warning): function removed.
20346 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
20347 required information from ALI files in order to initialize the table
20348 containing the specific dispatching policy.
20349 (Gen_Adainit_Ada): Generate the variables required for priority specific
20350 dispatching entries (__gl_priority_specific_dispatching and
20351 __gl_num_specific_dispatching).
20352 (Gen_Adainit_C): Generate the variables required for priority specific
20353 dispatching entries (__gl_priority_specific_dispatching and
20354 __gl_num_specific_dispatching).
20355 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
20357 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
20358 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
20360 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
20361 a call to gnat_set_globals.
20362 Generate a string containing settings from
20363 Priority_Specific_Dispatching pragma entries.
20364 (Gen_Object_Files_Options): Do not include the runtime libraries when
20365 pragma No_Run_Time is specified.
20367 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
20368 consistency with s-intman-posix.adb.
20369 (__gnat_error_handler, case FreeBSD): Account for the fact that the
20370 handler is installed with SA_SIGINFO.
20371 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
20372 FreeBSD ZCX support, copied from Linux version.
20373 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
20374 sigfillset, and sigemptyset so the routines defined by MaRTE.
20375 (__gl_priority_specific_dispatching): Add this variable that stores the
20376 string containing priority specific dispatching policies in the
20378 (__gl_num_specific_dispatching): Add this variable that indicates the
20379 highest priority for which a priority specific dispatching pragma
20381 (__gnat_get_specific_dispatching): Add this routine that returns the
20382 priority specific dispatching policy, as set by a
20383 Priority_Specific_Dispatching pragma appearing anywhere in the current
20384 partition. The input argument is the priority number, and the result
20385 is the upper case first character of the policy name.
20386 (__gnat_set_globals): Now a dummy function.
20387 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
20388 mechargs instead of sigargs, as the latter can be retrieved from the
20389 former and sigargs is not what we want on ia64.
20390 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
20392 (__gnat_adjust_context_for_raise, ia64-vms): New function.
20393 (tasking_error): Remove unused symbol.
20394 (_abort_signal): Move this symbol to the IRIX specific part since this
20395 is the only target that uses this definition.
20396 (Check_Abort_Status): Move this symbol to the IRIX specific part since
20397 this is the only target that uses this definition.
20398 (Lock_Task): Remove unused symbol.
20399 (Unlock_Task): Remove unused symbol.
20401 * lib-writ.adb (Write_ALI): Output new S lines for
20402 Priority_Specific_Dispatching pragmas.
20403 Implement new flag BD for elaborate body desirable
20405 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
20406 (Specific_Dispatching): Add this table for storing the entries
20407 corresponding to Priority_Specific_Dispatching pragmas.
20408 Document new BD flag for elaborate body desirable
20410 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
20413 2006-10-31 Javier Miranda <miranda@adacore.com>
20415 * a-tags.ads, a-tags.adb:
20416 (Predefined_DT): New function that improves readability of the code.
20417 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
20418 Inherit_DT): Use the new function Predefined_DT to improve code
20420 (Register_Interface_Tag): Update assertion.
20421 (Set_Interface_Table): Update assertion.
20422 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
20423 determining progenitor interfaces in Tags.
20424 (Inherit_CPP_DT): New subprogram.
20426 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
20427 analysis of the thunk code.
20428 (Expand_Interface_Conversion): Handle run-time conversion of
20429 access to class wide types.
20430 (Expand_Dispatching_Call): When generating the profile for the
20431 subprogram itype for a dispatching operation, properly terminate the
20432 formal parameters chaind list (set the Next_Entity of the last formal
20434 (Collect_All_Interfaces): Removed. This routine has been moved to
20435 sem_util and renamed as Collect_All_Abstract_Interfaces.
20436 (Set_All_DT_Position): Hidden entities associated with abstract
20437 interface primitives are not taken into account in the check for
20438 3.9.3(10); this check is done with the aliased entity.
20439 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
20440 interfacing with CPP by default.
20441 (Expand_Interface_Conversion): Add missing support for static conversion
20442 from an interface to a tagged type.
20443 (Collect_All_Interfaces): Add new out formal containing the list of
20444 abstract interface types to cleanup the subprogram Make_DT.
20445 (Make_DT): Update the code to generate the table of interfaces in case
20446 of abstract interface types.
20447 (Is_Predefined_Dispatching_Alias): New function that returns true if
20448 a primitive is not a predefined dispatching primitive but it is an
20449 alias of a predefined dispatching primitive.
20450 (Make_DT): If the ancestor of the type is a CPP_Class and we are
20451 compiling under full ABI compatibility mode we avoid the generation of
20452 calls to run-time services that fill the dispatch tables because under
20453 this mode we currently inherit the dispatch tables in the IP subprogram.
20454 (Write_DT): Emit an "is null" indication for a null procedure primitive.
20455 (Expand_Interface_Conversion): Use an address as the type of the formal
20456 of the internally built function that handles the case in which the
20457 target type is an access type.
20459 2006-10-31 Robert Dewar <dewar@adacore.com>
20461 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
20463 2006-10-31 Robert Dewar <dewar@adacore.com>
20465 * bindusg.ads, bindusg.adb:
20466 Change to package and rename procedure as Display, which
20467 now ensures that it only outputs usage information once.
20469 2006-10-31 Jose Ruiz <ruiz@adacore.com>
20471 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
20474 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
20477 2006-10-31 Robert Dewar <dewar@adacore.com>
20478 Ed Schonberg <schonberg@adacore.com>
20480 * treepr.adb: Use new subtype N_Membership_Test
20482 * checks.ads, checks.adb: Add definition for Validity_Check
20483 (Range_Or_Validity_Checks_Suppressed): New function
20484 (Ensure_Valid): Test Validity_Check suppressed
20485 (Insert_Valid_Check): Test Validity_Check suppressed
20486 (Insert_Valid_Check): Preserve Do_Range_Check flag
20487 (Validity_Check_Range): New procedure
20488 (Expr_Known_Valid): Result of membership test is always valid
20489 (Selected_Range_Checks): Range checks cannot be applied to discriminants
20490 by themselves. Disabling those checks must also be done for task types,
20491 where discriminants may be used for the bounds of entry families.
20492 (Apply_Address_Clause_Check): Remove side-effects if address expression
20493 is non-static and is not the name of a declared constant.
20494 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
20495 Code cleanup and new error messages.
20496 (Enable_Range_Check): Test for some cases of suppressed checks
20497 (Generate_Index_Checks): Suppress index checks if index checks are
20498 suppressed for array object or array type.
20499 (Apply_Selected_Length_Checks): Give warning for compile-time detected
20500 length check failure, even if checks are off.
20501 (Ensure_Valid): Do not generate a check on an indexed component whose
20502 prefix is a packed boolean array.
20503 * checks.adb: (Alignment_Checks_Suppressed): New function
20504 (Apply_Address_Clause_Check): New procedure, this is a completely
20505 rewritten replacement for Apply_Alignment_Check
20506 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
20507 we request a discriminal value only in case of discriminants.
20508 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
20509 assignments where the target subtype is unconstrained and the target
20510 object is a parameter or dereference (other aliased cases are known
20511 to be unconstrained).
20513 2006-10-31 Robert Dewar <dewar@adacore.com>
20515 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
20516 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
20517 vms_conv.adb: Fix bad table increment values (much too small)
20519 * table.adb (Realloc): Make sure we get at least some new elements
20520 Defends against silly small values for table increment
20522 2006-10-31 Robert Dewar <dewar@adacore.com>
20523 Ed Schonberg <schonberg@adacore.com>
20524 Bob Duff <duff@adacore.com>
20526 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
20527 entities. Move other fields around to make this possible
20528 (Is_Derived_Type): Add missing call to Is_Type.
20529 (Extra_Formals): New function for subprograms, entries, subprogram
20531 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
20532 (First_Formal_With_Extras): New function for subprogs, entries, subp
20534 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
20535 Add node information for E_Return_Statement.
20536 (Elaborate_Body_Desirable): New flag
20537 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
20538 to be Is_Inherently_Limited_Type, because return-by-reference has
20539 no meaning in Ada 2005.
20540 (E_Return_Statement): New entity kind.
20541 (Return_Applies_To): Field of E_Return_Statement.
20542 (Is_Return_Object): New flag in object entities.
20543 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
20544 (Must_Have_Preelab_Init): New flag
20545 (Known_To_Have_Preelab_Init): New flag
20546 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
20547 (Is_Visible_Formal): New flag on entities in formal packages.
20548 (Low_Bound_Known): New flag
20549 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
20551 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
20552 output when Id is an incomplete subtype.
20554 2006-10-31 Robert Dewar <dewar@adacore.com>
20556 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
20557 Avoid abbreviation Creat
20558 (Finalize): List all sources in extended mail source if -gnatl
20560 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
20561 (Finalize): Implement new -gnatl=xxx switch to output listing to file
20562 (Set_Specific_Warning_On): New procedure
20563 (Set_Specific_Warning_Off): New procedure
20564 Add implementation of new insertion \\
20565 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
20566 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
20568 (Error_Msg_Internal): Make sure that we set Last_Killed to
20569 True when a message from another package is suppressed.
20570 Implement insertion character ~ (insert string)
20571 (First_Node): Minor adjustments to get better placement.
20574 Implement new -gnatl=xxx switch to output listing to file
20577 Implement new -gnatl=xxx switch to output listing to file
20579 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
20580 (Commands_To_Stdout): New flag
20581 Implement new -gnatl=xxx switch to output listing to file
20582 New switch Dump_Source_Text
20583 (Warn_On_Deleted_Code): New warning flag for -gnatwt
20584 Define Error_Msg_Line_Length
20585 (Warn_On_Assumed_Low_Bound): New switch
20587 * osint.ads, osint.adb
20588 (Normalize_Directory_Name): Fix bug.
20589 Implement new -gnatl=xxx switch to output listing to file
20590 (Concat): Removed, replaced by real concatenation
20591 Make use of concatenation now allowed in compiler
20592 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
20593 we find the 'lib' or 'bin' directory even when the tool has been
20594 invoked with a relative path.
20595 (Executable_Name): New function taking string parameters.
20597 * osint-c.ads, osint-c.adb:
20598 Implement new -gnatl=xxx switch to output listing to file
20600 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
20603 Implement new -gnatl=xxx switch to output listing to file
20604 Recognize new -gnatL switch
20605 (no longer keep in old warning about old style usage)
20606 Use concatenation to simplify code
20607 Recognize -gnatjnn switch
20608 (Scan_Front_End_Switches): Clean up handling of -gnatW
20609 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
20611 2006-10-31 Robert Dewar <dewar@adacore.com>
20613 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
20614 (Set_Specific_Warning_Off): New procedure
20615 (Warning_Specifically_Suppressed): New function
20616 (Validate_Specific_Warnings): New procedure
20617 (Output_Msg_Text): Complete rewrite to support -gnatjnn
20619 * err_vars.ads: Implement insertion character ~ (insert string)
20621 2006-10-31 Bob Duff <duff@adacore.com>
20622 Ed Schonberg <schonberg@adacore.com>
20624 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
20625 the parent part is a build-in-place function call, generate assignments.
20626 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
20627 are build-in-place function calls.
20628 (Replace_Self_Reference): New subsidiary of
20629 Make_OK_Assignment_Statement, to replace an access attribute that is a
20630 self-reference into an access to the appropriate component of the
20631 target object. Generalizes previous mechanism to handle self-references
20632 nested at any level.
20633 (Is_Self_Referential_Init): Remove, not needed.
20634 (Is_Self_Referential_Init): New predicate to simplify handling of self
20635 referential components in record aggregates.
20636 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
20637 check for presence of entity before checking for self-reference.
20638 (Has_Default_Init_Comps): Return True if a component association is a
20639 self-reference to the enclosing type, which can only come from a
20640 default initialization.
20641 (Make_OK_Assignment_Statement): If the expression is of the form
20642 Typ'Acc, where Acc is an access attribute, the expression comes from a
20643 default initialized self-referential component.
20644 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
20645 that has been derived from several abstract interfaces we must also
20646 initialize the tags of the secondary dispatch tables.
20648 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20649 Thomas Quinot <quinot@adacore.com>
20650 Javier Miranda <miranda@adacore.com>
20651 Robert Dewar <dewar@adacore.com>
20654 (Expand_Access_To_Protected_Op): If the context indicates that an access
20655 to a local operation may be transfered outside of the object, create an
20656 access to the wrapper operation that must be used in an external call.
20657 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
20658 target, pass the Valid attribute applied to a floating-point prefix on
20659 to the back end without expansion.
20660 (Storage_Size): Use the new run-time function Storage_Size to retrieve
20661 the allocated storage when it is specified by a per-object expression.
20662 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
20663 Nothing to do here, the attribute has been rewritten during semantic
20665 (Expand_Attribute_Reference): Handle expansion of the new Priority
20667 (Find_Fat_Info): Handle case of universal real
20668 (Expand_Access_To_Protected_Op): Fix use of access to protected
20669 subprogram from inside the body of a protected entry.
20670 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
20671 'Access and 'Unrestricted_Access, to transform the attribute reference
20672 into a fat pointer.
20673 (Is_Constrained_Aliased_View): New predicate to help determine whether a
20674 subcomponent's enclosing variable is aliased with a constrained subtype.
20675 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
20676 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
20677 an aliased prefix must be known to be constrained in order to use True
20678 for the attribute value, and now it's possible for some aliased views
20679 to be unconstrained.
20681 2006-10-31 Robert Dewar <dewar@adacore.com>
20683 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
20684 (Expand_Entity_Reference): Correct error of not handling subprogram
20685 formals in current_value processing.
20687 2006-10-31 Javier Miranda <miranda@adacore.com>
20688 Robert Dewar <dewar@adacore.com>
20689 Ed Schonberg <schonberg@adacore.com>
20690 Gary Dismukes <dismukes@adacore.com>
20692 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
20693 register in the final list objects containing class-wide interfaces;
20694 otherwise we incorrectly register the tag of the interface in the final
20696 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
20697 generate the wrapper if the parent primitive is abstract. This is
20698 required to report the correct error message.
20699 (Expand_N_Subtype_Indication): Do validity checks on range
20700 (Clean_Task_Names): If an initialization procedure includes a call to
20701 initialize a task (sub)component, indicate that the procedure will use
20702 the secondary stack.
20703 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
20704 compatibility for interfacing with CPP by default.
20705 (Expand_N_Object_Declaration): Only build an Adjust call when the
20706 object's type is a nonlimited controlled type.
20707 * exp_ch3.adb: Add with and use of Exp_Ch6.
20708 (Expand_N_Object_Declaration): Check for object initialization that is a
20709 call to build-in-place function and apply Make_Build_In_Place_Call_In_
20710 Object_Declaration to the call.
20711 (Freeze_Type): When the designated type of an RACW was not frozen at the
20712 point where the RACW was declared, validate the primitive operations
20713 with respect to E.2.2(14) when it finally is frozen.
20714 (Build_Initialization_Call,Expand_Record_Controller): Rename
20715 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
20716 return-by-reference has no meaning in Ada 2005.
20717 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
20718 to register tag of the immediate ancestor interfaces in the
20719 run-time structure.
20720 (Init_Secondary_Tags): Moved to the specification to allow the
20721 initialization of extension aggregates with abstract interfaces.
20722 (Build_Master_Renaming): Make public, for use by function declarations
20723 whose return type is an anonymous access type.
20724 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
20725 Insert_List_Before_And_Analyze after the generation of the specs
20726 associated with null procedures.
20727 (Expand_Tagged_Root): Update documentation in its specification.
20728 (Init_Secondary_Tags): Update documentation.
20729 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
20730 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
20731 then generate code to inherit the contents of the dispatch table
20732 directly from the ancestor.
20733 (Expand_Record_Controller): Insert controller component after tags of
20734 implemented interfaces.
20735 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
20736 create null procedure overridings when null procedures are inherited
20738 (Make_Null_Procedure_Specs): New procedure to generate null procedure
20739 declarations for overriding null primitives inherited from interfaces.
20740 (Is_Null_Interface_Procedure): New function in
20741 Make_Null_Procedure_Specs.
20742 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
20743 immediate ancestor of a tagged type is an abstract interface type we
20744 must generate the specification of the predefined primitives associated
20745 with controlled types (because the dispatch table of the ancestor is
20746 null and hence these entries cannot be inherited). This is required to
20747 elaborate well the dispatch table.
20749 2006-10-31 Javier Miranda <miranda@adacore.com>
20750 Ed Schonberg <schonberg@adacore.com>
20751 Bob Duff <duff@adacore.com>
20752 Gary Dismukes <dismukes@adacore.com>
20753 Robert Dewar <dewar@adacore.com>
20755 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
20757 (Expand_N_In): Do validity checks on range
20758 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
20759 (Expand_N_Allocator): For "new T", if the object is constrained by
20760 discriminant defaults, allocate the right amount of memory, rather than
20761 the maximum for type T.
20762 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
20763 when the allocator is initialized by a build-in-place call, since the
20764 allocator is already rewritten as a reference to the function result,
20765 and this prevents an unwanted duplication of the function call.
20766 Add with and use of Exp_Ch6.
20767 (Expand_Allocator_Expresssion): Check for an allocator whose expression
20768 is a call to build-in-place function and apply
20769 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
20770 untagged designated types).
20771 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
20772 optimization if source or target is biased.
20773 (Expand_N_Allocator): Add comments for case of an allocator within a
20774 function that returns an anonymous access type designating tasks.
20775 (Expand_N_Allocator): apply discriminant checks for access
20776 discriminants of anonymous access types (AI-402, AI-416)
20778 2006-10-31 Bob Duff <duff@adacore.com>
20779 Robert Dewar <dewar@adacore.com>
20780 Gary Dismukes <dismukes@adacore.com>
20781 Ed Schonberg <schonberg@adacore.com>
20783 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
20785 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
20786 (Expand_N_Assignment_Statement): Call
20787 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
20788 build-in-place function call. Currently, this can happen only for
20789 assignments that come from aggregates.
20790 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20791 in order to alleviate the upward compatibility introduced by AI-318.
20792 (Expand_N_Extended_Return_Statement): Add support for handling the
20793 return object as a build-in-place result.
20794 (Expand_Non_Function_Return): Implement simple return statements nested
20795 within an extended return.
20796 (Enable_New_Return_Processing): Turn on the new processing of return
20798 (Expand_Non_Function_Return): For a return within an extended return,
20799 don't raise Program_Error, because Sem_Ch6 now gives a warning.
20800 (Expand_N_Extended_Return_Statement): Implement AI-318
20801 (Expand_Simple_Function_Return): Ditto.
20802 (Expand_N_If_Statement): Handle new -gnatwt warning
20803 (Expand_N_Case_Statement): Handle new -gnatwt warning
20804 (Expand_N_Assignment): Handle assignment to the Priority attribute of
20805 a protected object.
20806 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
20807 validity checking of assignments to elementary record components.
20808 (Expand_N_Return_Statement): return Class Wide types on the secondary
20809 stack independantly of their controlled status since with HIE runtimes,
20810 class wide types are not potentially controlled anymore.
20812 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
20815 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
20816 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
20817 it expects a block, procedure, or task. The return statement will get
20818 turned into a block, and Expand_Cleanup_Actions will happen then.
20820 2006-10-31 Robert Dewar <dewar@adacore.com>
20821 Ed Schonberg <schonberg@adacore.com>
20822 Bob Duff <duff@adacore.com>
20823 Gary Dismukes <dismukes@adacore.com>
20825 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
20827 (Expand_Inlined_Call): Tagged types are by-reference types, and
20828 therefore should be replaced by a renaming declaration in the expanded
20829 body, as is done for limited types.
20830 (Expand_Call): If this is a call to a function with dispatching access
20831 result, propagate tag from context.
20832 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
20834 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
20835 build-in-place when the right-hand side of an assignment is a
20836 build-in-place function call.
20837 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
20838 of the explicit dereference of the allocator to the result subtype of
20839 the build-in-place function. This is needed to satisfy type checking
20840 in cases where the caller's return object is created by an allocator for
20841 a class-wide access type and the type named in the allocator is a
20843 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
20844 conversion of the reference to the declared object to the result subtype
20845 of the build-in-place function. This is needed to satisfy type checking
20846 in cases where the declared object has a class-wide type. Also, in the
20847 class-wide case, change the type of the object entity to the specific
20848 result subtype of the function, to avoid passing a class-wide object
20849 without explicit initialization to the back end.
20850 (Register_Interface_DT_Entry): Moved outside the body of
20851 Freeze_Subprogram because this routine is now public; it is called from
20852 Check_Dispatching_Overriding to handle late overriding of abstract
20853 interface primitives.
20854 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
20855 adding an implicit access actual on a call to a build-in-place function.
20856 (Expand_Actuals): Test for an actual parameter that is a call to a
20857 build-in-place function and apply
20858 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
20859 (Is_Build_In_Place_Function): New function to determine whether an
20860 entity is a function whose calls should be handled as build-in-place.
20861 (Is_Build_In_Place_Function_Call): New function to determine whether an
20862 expression is a function call that should handled as build-in-place.
20863 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
20864 calls to build-in-place functions as the initialization of an allocator.
20865 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
20866 handling calls to build-in-place functions in contexts that do not
20867 involve init of a separate object (for example, actuals of subprogram
20869 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
20870 handling calls to build-in-place functions as the initialization of an
20871 object declaration.
20872 (Detect_Infinite_Recursion): Add explicit parameter Process to
20873 instantiation of Traverse_Body to avoid unreferenced warning.
20874 (Check_Overriding_Inherited_Interfaces): Removed.
20875 (Register_Interface_DT_Entry): Code cleanup.
20876 (Register_Predefined_DT_Entry): Code cleanup.
20877 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
20878 inlined statements if within a transient scope.
20879 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
20880 formal parameters with occurrences of actuals in inlined body, establish
20881 visibility on the proper view of the actual's subtype for the body's
20883 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
20884 compatibility mode and we have an imported CPP subprogram because
20885 for now we assume that imported CPP primitives correspond with
20886 objects whose constructor is in the CPP side (and therefore we
20887 don't need to generate code to register them in the dispatch table).
20888 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
20889 aligned selected component.
20890 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
20891 the actual of an in-mode parameter is a type conversion.
20892 (Expand_Actuals): If the call does not come from source and the actual
20893 is potentially misaligned, let gigi handle it rather than rejecting the
20894 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
20895 Class Wide types as returning by reference independantly of their
20896 controlled status since with HIE runtimes class wide types are not
20897 potentially controlled anymore.
20899 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20901 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
20902 references that are private components of the protected object.
20903 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
20904 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
20905 instantiation to deal with warnings.
20906 (Initialize_Protection): If expression for priority is non-static, use
20907 System_Priority as its expected type, in case the expression has not
20910 2006-10-31 Robert Dewar <dewar@adacore.com>
20912 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
20913 initialization of Homonym_Len.
20914 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
20915 names from fully qualified name. Fixes problem of duplicate
20916 external names differing only in the presence of such a block name.
20918 2006-10-31 Thomas Quinot <quinot@adacore.com>
20919 Pablo Oliveira <oliveira@adacore.com>
20921 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
20922 subprogram Ids, even if they are not yet assigned.
20923 (Build_Subprogram_Id): It is now this function that will take care of
20924 calling Assign_Subprogram_Ids if necessary.
20925 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
20926 should be done only once they are assigned.
20927 (Build_From_Any_Function, case of tagged types): Add missing call to
20929 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
20930 type for an RACW type.
20931 (Add_RACW_Features): When processing an RACW declaration for which the
20932 designated type is already frozen, enforce E.2.2(14) rules immediately.
20933 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
20934 special reordering of controlling formals.
20936 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
20937 associated stub type for an RACW type.
20939 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20941 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
20942 fixed-point operations in an integer context, i.e. as operands of a
20943 conversion to an integer type, indicate that result must be rounded.
20945 2006-10-31 Robert Dewar <dewar@adacore.com>
20947 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
20948 cases, pass the encoding method, since it is now required by the run
20951 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
20952 assumption that Str'First = 1.
20953 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
20954 it on to the Value_Wide_Wide_Character call.
20955 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
20956 properly handles a string of the form quote-encoded_wide_char-quote.
20958 * s-wchcnv.adb: Minor reformatting
20960 2006-10-31 Javier Miranda <miranda@adacore.com>
20962 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
20963 run-time membership test to ensure that the constructed object
20964 implements the target abstract interface.
20966 2006-10-31 Robert Dewar <dewar@adacore.com>
20968 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
20969 Machine_Attribute pragma internally to implement the user pragma.
20970 Add processing for pragma Interface so that it is now completely
20971 equivalent to pragma Import.
20973 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
20974 so that it can be applied to all entities, including record components
20975 and enumeration literals.
20976 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
20977 priority ranges are correct, verify compatibility against task
20978 dispatching and locking policies, and if everything is correct an entry
20979 is added to the table containing priority specific dispatching entries
20980 for this compilation unit.
20981 (Delay_Config_Pragma_Analyze): Delay processing
20982 Priority_Specific_Dispatching pragmas because when processing the
20983 pragma we need to access run-time data, such as the range of
20984 System.Any_Priority.
20985 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
20986 Allow pragma Unreferenced as a context item
20987 Add pragma Preelaborable_Initialization
20988 (Analyze_Pragma, case Interface): Interface is extended so that it is
20989 now syntactically and semantically equivalent to Import.
20990 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
20991 insertion characters.
20992 Add handling for Pragma_Wide_Character_Encoding
20993 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
20994 never supercedes a real restriction, and that a real restriction
20995 always supercedes a warning.
20996 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
20999 2006-10-31 Bob Duff <duff@adacore.com>
21000 Ed Schonberg <schonberg@adacore.com>
21001 Robert Dewar <dewar@adacore.com>
21003 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
21004 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
21005 Is_Inherently_Limited_Type, because return-by-reference has no meaning
21007 (Find_Node_To_Be_Wrapped): Use new method of determining the result
21008 type of the function containing a return statement, because the
21009 Return_Type field was removed. We now use the Return_Applies_To field.
21011 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
21012 (Build_Task_Image_Decl): If procedure is not called from an
21013 initialization procedure, indicate that function that builds task name
21014 uses the sec. stack. Otherwise the enclosing initialization procedure
21015 will carry the indication.
21016 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
21017 N_Object_Declaration instead.
21018 (Kill_Dead_Code): New interface to implement -gnatwt warning for
21019 conditional dead code killed, and change implementation accordingly.
21020 (Insert_Actions): Add N_Return_Object_Declaration case.
21021 Correct comment to mention N_Extension_Aggregate node.
21022 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
21023 attempts to save information for global variables which cannot be
21025 (Get_Current_Value_Condition): Handle conditions the other way round
21026 (constant on left). Also handle right operand of AND and AND THEN
21027 (Set_Current_Value_Condition): Corresponding changes
21028 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
21029 (Get_Current_Value_Condition): Handle simple boolean operands
21030 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
21031 (Get_Current_Value_Condition): If the variable reference is within an
21032 if-statement, does not appear in the list of then_statments, and does
21033 not come from source, treat it as being at unknown location.
21034 (Get_Current_Value_Condition): Enhance to allow while statements to be
21035 processed as well as if statements.
21036 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
21038 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
21039 of loop. This is safe now that we fixed Kill_Current_Values.
21040 (OK_To_Do_Constant_Replacement): Check whether current scope is
21041 Standard, before examining outer scopes.
21043 2006-10-31 Vincent Celier <celier@adacore.com>
21045 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
21046 When True, apply VMS treatment to children of packages A, G, I and S.
21049 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
21051 2006-10-31 Robert Dewar <dewar@adacore.com>
21052 Ed Schonberg <schonberg@adacore.com>
21054 * freeze.adb: Add handling of Last_Assignment field
21055 (Warn_Overlay): Supply missing continuation marks in error msgs
21056 (Freeze_Entity): Add check for Preelaborable_Initialization
21058 * g-comlin.adb: Add Warnings (Off) to prevent new warning
21060 * g-expect.adb: Add Warnings (Off) to prevent new warning
21062 * lib-xref.adb: Add handling of Last_Assignment field
21063 (Generate_Reference): Centralize handling of pragma Obsolescent here
21064 (Generate_Reference): Accept an implicit reference generated for a
21065 default in an instance.
21066 (Generate_Reference): Accept a reference for a node that is not in the
21067 main unit, if it is the generic body corresponding to an subprogram
21070 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
21072 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
21074 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
21076 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
21077 use clauses, to avoid messages on packages used to qualify, and also
21078 to avoid messages from obsolescent units.
21079 (Warn_On_Useless_Assignments): Don't generate messages for imported
21080 and exported variables.
21081 (Warn_On_Useless_Assignments): New procedure
21082 (Output_Obsolescent_Entity_Warnings): New procedure
21083 (Check_Code_Statement): New procedure
21085 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
21086 Change name Is_Ada_2005 to Is_Ada_2005_Only
21087 (Last_Assignment): New field for useless assignment warning
21089 2006-10-31 Olivier Hainque <hainque@adacore.com>
21091 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
21092 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
21094 2006-10-31 Bob Duff <duff@adacore.com>
21095 Robert Dewar <dewar@adacore.com>
21096 Ed Schonberg <schonberg@adacore.com>
21098 * g-awk.adb (Default_Session, Current_Session): Compile this file in
21099 Ada 95 mode, because it violates the new rules for AI-318.
21101 * g-awk.ads: Use overloaded subprograms in every case where we used to
21102 have a default of Current_Session. This makes the code closer to be
21103 correct for both Ada 95 and 2005.
21105 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
21106 code, relying on the fact that the compiler generates a warning
21107 instead of an error in -gnatg mode.
21109 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
21110 E_Return_Statement entity kind.
21111 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
21113 * par.adb (P_Interface_Type_Definition): Addition of one formal to
21114 report an error if the reserved word abstract has been previously found.
21115 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
21117 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
21118 parenthesized range attribute usage
21119 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
21121 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
21122 in the syntax for extended_return_statement. This is not in the latest
21123 RM, but the ARG is expected to issue an AI allowing this.
21124 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
21125 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
21126 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
21127 P_Return_Statement): Parse the new syntax for extended_return_statement.
21129 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
21130 Output_End_Missing): Add error-recovery code for the new
21131 extended_return_statement syntax; that is, the new E_Return entry on
21134 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
21135 limited to nonlimited, because otherwise we violate the new Ada 2005
21136 rules about returning limited types in function Create_AST_Handler in
21139 * sem.adb (Analyze): Add cases for new node kinds
21140 N_Extended_Return_Statement and N_Return_Object_Declaration.
21142 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
21143 type is in the same category as type of context before applying check,
21144 to prevent anomalies in instantiations.
21145 (Resolve_Aggregate): Remove test for limited components in aggregates.
21146 It's unnecessary in Ada 95, because if it has limited components, then
21147 it must be limited. It's wrong in Ada 2005, because limited aggregates
21149 (Resolve_Record_Aggregate): Move check for limited types later, because
21150 OK_For_Limited_Init requires its argument to have been resolved.
21151 (Get_Value): When copying the component default expression for a
21152 defaulted association in an aggregate, use the sloc of the aggregate
21153 and not that of the original expression, to prevent spurious
21154 elaboration errors, when the expression includes function calls.
21155 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
21156 were missing. We also didn't handle qualified expressions. Now also
21157 allow function calls. Use new common routine OK_For_Limited_Init.
21158 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
21159 with space can upper case letter).
21161 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
21162 Has_Static_Discriminants flag
21163 (Record_Type_Declaration): Diagnose an attempt to declare an interface
21164 type with discriminants.
21165 (Process_Range_Expr_In_Decl): Do validity checks on range
21166 (Build_Discriminant_Constraints): Use updated form of
21167 Denotes_Discriminant.
21168 (Process_Subtype): If the subtype is a private subtype whose full view
21169 is a concurrent subtype, introduce an itype reference to prevent scope
21171 (Build_Derived_Record_Type, Collect_Interface_Primitives,
21172 Record_Type_Declaration): The functionality of the subprograms
21173 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
21174 is now performed by a single routine.
21175 (Build_Derived_Record_Type): If the type definition includes an explicit
21176 indication of limitedness, then the type must be marked as limited here
21177 to ensure that any access discriminants will not be treated as having
21178 a local anonymous access type.
21179 (Check_Abstract_Overriding): Issue a detailed error message when an
21180 abstract subprogram was not overridden due to incorrect mode of its
21182 (Analyze_Private_Extension_Declaration): Add support for the analysis of
21183 synchronized private extension declarations. Verify that the ancestor is
21184 a limited or synchronized interface or in the generic case, the ancestor
21185 is a tagged limited type or synchronized interface and all progenitors
21186 are either limited or synchronized interfaces.
21187 Derived_Type_Declaration): Check for presence of private extension when
21188 dealing with synchronized formal derived types.
21189 Process_Full_View): Enchance the check done on the usage of "limited" by
21190 testing whether the private view is synchronized.
21191 Verify that a synchronized private view is completed by a protected or
21193 (OK_For_Limited_Init_In_05): New function.
21194 (Analyze_Object_Declaration): Move check for limited types later,
21195 because OK_For_Limited_Init requires its argument to have been resolved.
21196 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21197 in order to alleviate the upward compatibility introduced by AI-318.
21198 (Constrain_Corresponding_Record): If the constraint is for a component
21199 subtype, mark the itype as frozen, to avoid out-of-scope references to
21200 discriminants in the back-end.
21201 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
21202 this subprogram against wrong sources.
21203 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
21204 discriminant of limited type completed with a protected type, when the
21205 discriminant is used to constrain a private component of the type, and
21206 expansion is disabled.
21207 (Find_Type_Of_Object): Do not treat a return subtype that is an
21208 anonymous subtype as a local_anonymous_type, because its accessibility
21209 level is the return type of the enclosing function.
21210 (Check_Initialization): In -gnatg mode, turn the error "cannot
21211 initialize entities of limited type" into a warning.
21212 (OK_For_Limited_Init): Return true for generated nodes, since it
21213 sometimes violates the legality rules.
21214 (Make_Incomplete_Declaration): If the type for which an incomplete
21215 declaration is created happens to be the currently visible entity,
21216 preserve the homonym chain when removing it from visibility.
21217 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
21218 inherited subprograms.
21219 (Access_Definition): If this is an access to function that is the return
21220 type of an access_to_function definition, context is a type declaration
21221 and the scope of the anonymous type is the current one.
21222 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
21223 incomplete subtype to the set of private dependents of the original
21225 (Constrain_Discriminated_Type): Emit an error message whenever an
21226 incomplete subtype is being constrained.
21227 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
21228 corresponding subtype of the full view of the original incomplete type.
21229 (Check_Incomplete): Properly detect invalid usage of incomplete types
21232 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21234 * g-catiio.ads, g-catiio.adb (Value): New function.
21235 Given an input String, try and parse a valid Time value.
21237 2006-10-31 Vincent Celier <celier@adacore.com>
21239 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
21240 Integer_Address arithmetic, as in Set_Valid.
21242 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21243 Robert Dewar <dewar@adacore.com>
21245 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
21246 handling executable extension manually and duplicating code.
21248 * make.adb: Implement new -S switch
21249 (Gnatmake): Use new function Osint.Executable_Name instead
21250 of handling executable extension manually.
21252 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
21253 is specified, the executable name ends with this suffix.
21254 Take advantage of Osint.Executable_Name instead of duplicating code.
21256 * switch-m.adb: Recognize new gnatmake -S switch
21258 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
21260 (Get_Target_Parameters): Set Executable_Extension_On_Target if
21263 * makeusg.adb: Add line for gnatmake -S switch
21265 2006-10-31 Vincent Celier <celier@adacore.com>
21267 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
21268 call it with -static-libgcc, as there are some platforms, such as
21269 Darwin, where one of these two switches is compulsory to link.
21271 2006-10-31 Vincent Celier <celier@adacore.com>
21273 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
21274 instead of ADA_PROJECT_PATH, for the project path.
21275 (Gnatls): When displaying the project path directories, use host dir
21278 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
21279 names in the project path, as absolute paths may correspond to
21280 multi-valued VMS logical names.
21282 2006-10-31 Vincent Celier <celier@adacore.com>
21284 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
21285 absolute path name.
21286 (Locate_Regular_File): Ditto
21287 (Change_Dir): Remove, no longer used
21288 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
21289 on Windows. Get it calling Get_Current_Dir.
21290 (OpenVMS): Remove imported boolean, no longer needed.
21291 (Normalize_Pathname)[VMS]: Do not resolve directory names.
21292 (Pid_To_Integer): New function to convert a Process_Id to Integer
21294 2006-10-31 Thomas Quinot <quinot@adacore.com>
21296 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
21297 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
21299 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
21302 2006-10-31 Robert Dewar <dewar@adacore.com>
21304 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
21305 initial letter o as a zero.
21307 2006-10-31 Robert Dewar <dewar@adacore.com>
21309 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
21311 2006-10-31 Robert Dewar <dewar@adacore.com>
21313 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
21315 (Layout_Variant_Record): Retrieve the discriminants from the entity
21316 rather than from the type definition, because in the case of a full
21317 type for a private type we need to take the discriminants from the
21319 (Layout_Component_List): When applying the Max operator to variants with
21320 a nonstatic size, check whether either operand is static and scale that
21321 operand from bits to storage units before applying Max.
21322 (Layout_Type): In VMS, if a C-convention access type has no explicit
21323 size clause (and does not inherit one in the case of a derived type),
21324 then the size is reset to 32 from 64.
21326 2006-10-31 Vincent Celier <celier@adacore.com>
21328 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
21329 its file has already been loaded, according to the unit being loaded,
21330 not to the current value of Multiple_Unit_Index.
21332 2006-10-31 Thomas Quinot <quinot@adacore.com>
21333 Eric Botcazou <ebotcazou@adacore.com>
21334 Arnaud Charlet <charlet@adacore.com>
21336 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
21337 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
21339 (a-except.o): Pass it to the compiler.
21340 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
21341 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
21342 a-calend-mingw.adb version.
21344 * Makefile.rtl: Added s-dsaser.
21345 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
21346 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
21347 Ada.Dispatching.Round_Robin.
21348 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
21350 * Make-lang.in: Remove all references to gt-ada-decl.h.
21351 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
21353 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
21354 Update dependencies.
21356 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
21358 2006-10-31 Vincent Celier <celier@adacore.com>
21360 * mlib-utl.adb (Initialized): Remove, no longer used
21361 (Initialize): Remove, no longer used
21362 (Ar): If Ar_Exec is null, get the location of the archive builder and,
21363 if there is one, the archive indexer. Fail if the archive builder cannot
21365 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
21368 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21370 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
21371 Process_Body_Clauses): If the context of a body includes a use clause
21372 for P.Q then a with_clause for P in the same body is not redundant,
21373 even if the spec also has a with_clause on P.
21374 Add missing continuation mark to error msg
21375 (Build_Limited_Views): A limited view of a type is tagged if its
21376 declaration includes a record extension.
21377 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
21378 node, even if the subunit has errors. This avoids malfunction by
21379 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
21380 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
21381 generation of obsolescent messages for with statements (cannot do
21382 this too early, or we cannot implement avoiding the messages in the
21383 case of obsolescent units withing obsolescent units).
21384 (Install_Siblings): If the with_clause is on a remote descendant of
21385 an ancestor of the current compilation unit, find whether there is
21386 a sibling child unit that is immediately visible.
21387 (Remove_Private_With_Clauses): New procedure, invoked after completing
21388 the analysis of the private part of a nested package, to remove from
21389 visibility the private with_clauses of the enclosing package
21391 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
21392 now centralized in Generate_Reference.
21393 (Install_Limited_Context_Clauses): Remove superfluous error
21394 message associated with unlimited view visible through use
21395 and renamings. In addition, at the point in which the error
21396 is reported, we add the backslash to the text of the error
21397 to ensure that it is reported as a single error message.
21398 Use new // insertion for some continuation messages
21399 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
21400 to create implicit with_clause for parent unit mentioned in original
21401 limited_with_clause.
21402 (Install_Limited_With_Unit): Set entity of parent identifiers if the
21403 unit is a child unit. For ASIS queries.
21404 (Analyze_Subunit): If the subunit appears within a child unit, make all
21405 ancestor child units directly visible again.
21407 2006-10-31 Robert Dewar <dewar@adacore.com>
21409 * par-ch10.adb (P_Context_Clause): Minor error message fix
21411 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21412 Javier Miranda <miranda@adacore.com>
21414 * par-ch12.adb: Grammar update and cleanup.
21415 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
21416 support for synchronized derived type definitions.
21417 Add the new actual Abstract_Present to every call to
21418 P_Interface_Type_Definition.
21419 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
21420 a formal object declaration with an access definition or a subtype mark
21421 with a null exclusion.
21422 (P_Generic_Association): Handle association with box, and others_choice
21423 with box, to support Ada 2005 partially parametrized formal packages.
21425 2006-10-31 Robert Dewar <dewar@adacore.com>
21426 Javier Miranda <miranda@adacore.com>
21428 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
21429 (P_Type_Declaration): Remove barrier against the reserved word "limited"
21430 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
21431 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
21432 private extensions.
21433 (P_Type_Declaration): Add the new actual Abstract_Present to every call
21434 to P_Interface_Type_Definition.
21435 (P_Interface_Type_Definition): Addition of one formal to report an error
21436 if the reserved word abstract has been previously found.
21437 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
21438 object renaming declaration with an access definition or subtype mark
21439 with a possible null exclusion.
21441 * par-ch9.adb: Minor error msg fix
21443 * par-load.adb: Add missing continuation mark to error msg
21445 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
21447 2006-10-31 Vincent Celier <celier@adacore.com>
21449 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
21450 unknown attribute in unknown package or in package that does not need
21452 (Parse_Package_Declaration): Do not issue warning for unknown package in
21455 2006-10-31 Vincent Celier <celier@adacore.com>
21457 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
21458 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
21461 2006-10-31 Vincent Celier <celier@adacore.com>
21463 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
21464 on VMS, change "__" to '.' before checking the name.
21465 (Record_Ada_Source): Always add the source file name in the list of
21466 of sources, even if it is not the first time, as it is for another
21468 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
21469 dot, instead of replacing only the first '_'.
21471 * prj-part.adb (Parse): Convert project file path to canonical form
21473 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
21474 extended, the project id of the project extending it is recorded in its
21475 data, even when it has already been processed as an imported project.
21477 2006-10-31 Robert Dewar <dewar@adacore.com>
21479 * repinfo.adb (List_Entities): Don't list entities from renaming
21482 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21483 Robert Dewar <dewar@adacore.com>
21485 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
21486 only a restriction warning is active for the given restriction. This is
21487 desirable because we do not want to modify code in the case where only
21489 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
21490 causes overriding of real restrictions.
21491 Take advantage of new No_Restrictions constant.
21493 * raise.h: (__gnat_set_globals): Change profile.
21495 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21497 * rtsfind.adb: Remove s-polint from comment as it exists no more.
21500 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
21501 Move all the entities in obsolete package System.PolyORB_Interface to
21502 System.Partition_Interface.
21503 (RE_Storage_Size): New function in System.Tasking.
21504 (RE_Get_Ceiling): New entity.
21505 (RE_Set_Ceiling): New entity.
21506 (RO_PE_Get_Ceiling): New entity.
21507 (RO_RE_Set_Ceiling): New entity.
21508 (Inherit_CPP_DT): New entity
21510 2006-10-31 Robert Dewar <dewar@adacore.com>
21512 * scng.adb (Scan, case of numeric literal): Better msg for identifier
21513 starting with a digit.
21515 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21516 Thomas Quinot <quinot@adacore.com>
21517 Javier Miranda <miranda@adacore.com>
21518 Gary Dismukes <dismukes@adacore.com>
21520 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
21521 properly an attempt to apply Unchecked_Access to a protected operation.
21522 (OK_Self_Reference): New subprogram to check the legality of an access
21523 attribute whose prefix is the type of an enclosing aggregate.
21524 Generalizes previous mechanism to handle attribute references nested
21525 arbitrarily deep within the aggregate.
21526 (Analyze_Access_Attribute): An access attribute whose prefix is a type
21527 can appear in an aggregate if this is a default-initialized aggregate
21528 for a self-referential type.
21529 (Resolve_Attribute, case Access): Ditto.
21530 Add support for new implementation defined attribute Stub_Type.
21531 (Eval_Attribute, case Attribute_Stub_Type): New case.
21532 (Analyze_Attribute, case Attribute_Stub_Type): New case.
21533 (Stream_Attribute_Available): Implement using new subprogram from
21534 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
21535 Has_Specified_Stream_Attribute flag.
21536 Disallow Storage_Size and Storage_Pool for access to subprogram
21537 (Resolve_Attribute, case 'Access et al): Take into account anonymous
21538 access types of return subtypes in extended return statements. Remove
21539 accessibility checks on anonymous access types when Unchecked_Access is
21541 (Analyze_Attribute): Add support for the use of 'Class to convert
21542 a class-wide interface to a tagged type.
21543 Add support for the attribute Priority.
21544 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
21545 whether the designated type is discriminated with a constrained partial
21546 view and require static matching in that case.
21547 Add local variable Des_Btyp. The Designated_Type
21548 of an access to incomplete subtype is either its non-limited view if
21549 coming from a limited with or its etype if regular incomplete subtype.
21551 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
21552 Fix predicate to identify and allow cases of (expander-generated)
21553 references to tag of designated object of a RACW.
21554 (Validate_Static_Object_Name): In Ada 2005, a formal object is
21555 non-static, and therefore cannot appear as a primary in a preelaborable
21557 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
21558 Has_Read_Write_Attributes.
21559 (Has_Read_Write_Attributes): Reimplement in termes of
21560 Has_Stream_Attribute_Definition.
21561 (Missing_Read_Write_Attributes): When checking component types in a
21562 record, unconditionally call Missing_Read_Write_Attributes recursively
21563 (remove guard checking for Is_Record_Type / Is_Access_Type).
21565 2006-10-31 Robert Dewar <dewar@adacore.com>
21567 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
21568 useless assignments here and conditionalize it on absence of exception
21570 (Analyze_Exception_Handlers): Small code reorganization of error
21571 detection code, for new handling of formal packages.
21573 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21574 Hristian Kirtchev <kirtchev@adacore.com>
21576 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
21577 that has been constant-folded, preserve information of original tree,
21579 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
21580 generated private extension declaration if the formal derived type is
21581 synchronized. Carry synchronized present over to the generated private
21583 (Validate_Derived_Type_Instance): Ensure that the actual of a
21584 synchronized formal derived type is a synchronized tagged type.
21585 (Instantiate_Formal_Package): When creating the instantiation used to
21586 validate the actual package of a formal declared without a box, check
21587 whether the formal itself depends on a prior actual.
21588 (Instantiate_Formal_Subprogram): Create new entities for the defining
21589 identifiers of the formals in the renaming declaration, for ASIS use.
21590 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
21591 a renaming declaration or a subtype declaration for an actual in an
21592 instance, capture location information of declaration in generic, for
21594 (Instantiate_Formal_Package): Add comments on needed additional tests.
21595 AI-317 (partial parametrization) is fully implemented.
21596 (Validate_Private_Type_Instance): Add check for actual which
21597 must have preelaborable initialization
21598 Use new // insertion for some continuation messages
21599 (Analyze_Formal_Object_Declaration): Change usage of Expression to
21600 Default_Expression. Add type retrieval when the declaration has an
21601 access definition. Update premature usage of incomplete type check.
21602 (Check_Access_Definition): New subsidiary routine. Check whether the
21603 current compilation version is Ada 05 and the supplied node has an
21605 (Instantiate object): Alphabetize local variables. Handle the creation
21606 of new renaming declarations with respect to the kind of definition
21607 used - either an access definition or a subtype mark. Guard against
21608 unnecessary error message in the context of anonymous access types after
21609 they have been resolved. Add check for required null exclusion in a
21610 formal object declaration.
21611 (Switch_View): A private subtype of a non-private type needs to be
21612 switched (the base type can have been switched without its private
21613 dependents because of the last branch of Check_Private_View.
21614 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
21616 (Instantiate_Type): Emit an error message whenever a class-wide type of
21617 a tagged incomplete type is used as a generic actual.
21618 (Find_Actual_Type): Extend routine to handle a component type in a child
21619 unit that is imported from a formal package in a parent.
21620 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
21621 agree on constrainedness, rather than checking against ultimate ancestor
21622 (Instantiate_Subprogram_Body): Create a cross-reference link to the
21623 generic body, for navigation purposes.
21625 2006-10-31 Robert Dewar <dewar@adacore.com>
21626 Thomas Quinot <quinot@adacore.com>
21628 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
21630 (New_Stream_Subprogram): When processing an attribute definition clause
21631 for a stream-oriented subprogram, record an entity node occurring at
21632 the point of clause to use for checking the visibility of the clause,
21633 as defined by 8.3(23) as amended by AI-195.
21634 (New_Stream_Subprogram): New procedure, factoring behaviour from both
21635 New_Stream_Function and New_Stream_Procedure.
21636 (New_Stream_Function, New_Stream_Procedure): Removed.
21637 (Analyze_Attribute_Definition_Clause, case Address): Check new
21638 Alignment_Check check
21640 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21641 Javier Miranda <miranda@adacore.com>
21642 Robert Dewar <dewar@adacore.com>
21644 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
21645 generate the same errors compiling under -gnatc.
21646 (Try_Object_Operation): If no candidate interpretation succeeds, but
21647 there is at least one primitive operation with the right name, report
21648 error in call rather than on a malformed selected component.
21649 (Analyze_Selected_Component): If the prefix is an incomplete type from
21650 a limited view, and the full view is available, use the full view to
21651 determine whether this is a prefixed call to a primitive operation.
21652 (Operator_Check): Verify that a candidate interpretation is a binary
21653 operation before checking the type of its second formal.
21654 (Analyze_Call): Add additional warnings for function call contexts not
21656 (Analyze_Allocator): Move the check for "initialization not allowed for
21657 limited types" after analyzing the expression. This is necessary,
21658 because OK_For_Limited_Init looks at the structure of the expression.
21659 Before analysis, we don't necessarily know what sort of expression it
21660 is. For example, we don't know whether F(X) is a function call or an
21661 indexed component; the former is legal in Ada 2005; the latter is not.
21662 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
21663 were missing. We also didn't handle qualified expressions. Now also
21664 allow function calls. Use new common routine OK_For_Limited_Init.
21665 (Analyze_Type_Conversion): Do not perform some legality checks in an
21666 instance, because the error message will be redundant or spurious.
21667 (Analyze_Overloaded_Selected_Component): Do not do style check when
21668 setting an entity, since we do not know it is the right entity yet.
21669 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
21670 (Analyze_Overloaded_Selected_Component): Same change
21671 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
21672 since regular incomplete subtypes are transformed into corresponding
21673 subtypes of their full views.
21674 (Complete_Object_Operation): Treat name of transformed subprogram call
21675 as coming from source, for browsing purposes.
21676 (Try_Primitive_Operation): If formal is an access parameter, compare
21677 with base type of object to determine whether it is a primitive
21679 (Operator_Check): If no interpretation of the operator matches, check
21680 whether a use clause on any candidate might make the operation legal.
21681 (Try_Class_Wide_Operation): Check whether the first parameter is an
21682 access type whose designated type is class-wide.
21684 2006-10-31 Robert Dewar <dewar@adacore.com>
21685 Ed Schonberg <schonberg@adacore.com>
21686 Gary Dismukes <dismukes@adacore.com>
21688 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
21689 warn on infinite loops.
21690 Add \\ to some continuation messages
21691 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
21692 (Process_Bounds): If the bounds are integer literals that result from
21693 constant-folding, and they carry a user-defined type, preserve that type
21694 rather than treating this as an integer range.
21695 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
21696 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
21697 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
21698 left hand side of assignment.
21699 (Analyze_Assignment): Add suport to manage assigments to the attribute
21700 priority of a protected object.
21701 (Check_Possible_Current_Value_Condition): Allow fully qualified names
21702 not just identifiers.
21703 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
21704 or AND THEN for possible tracking.
21705 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
21706 case of while loops so we can track values in the loop body.
21708 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21709 Hristian Kirtchev <kirtchev@adacore.com>
21710 Bob Duff <duff@adacore.com>
21712 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
21713 procedure cannot be a protected operation (it is a basic_declaration,
21714 not a subprogram_declaration).
21715 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
21716 Subp. Add logic for entry processing.
21717 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
21718 Determine whether an entry or subprogram of a protected or task type
21719 override an inherited primitive of an implemented interface.
21720 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
21721 Update the actual used in calls to Check_Overriding_Indicator.
21722 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
21723 generate the proper reference to the parent unit, for cross-reference.
21724 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
21726 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21727 (Add_Extra_Formal): Revise procedure to allow passing in associated
21728 entity, scope, and name suffix, and handle setting of the new
21729 Extra_Formals field.
21730 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
21731 pass new parameters. Add support for adding the new extra access formal
21732 for functions whose calls are treated as build-in-place.
21733 (Analyze_A_Return_Statement): Correct casing in error message.
21734 Move Pop_Scope to after Analyze_Function_Return, because an extended
21735 return statement really is a full-fledged scope. Otherwise, visibility
21736 doesn't work right. Correct use of "\" for continuation messages.
21737 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
21738 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
21739 the node doesn't get properly marked as analyzed.
21740 (Analyze_Subprogram_Body): If subprogram is a function that returns
21741 an anonymous access type that denotes a task, build a Master Entity
21743 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
21744 proper usage of null exclusion in a result definition.
21745 (Process_Formals): Code cleanup and new error message.
21746 (Process_Formals): Detect incorrect application of null exclusion to
21748 (Conforming_Types): Handle conformance between [sub]types and itypes
21749 generated for entities that have null exclusions applied to them.
21750 (Maybe_Primitive_Operation): Add an additional type retrieval when the
21751 base type is an access subtype. This case arrises with null exclusions.
21752 (New_Overloaded_Entity): Do not remove the overriden entity from the
21753 homonym chain if it corresponds with an abstract interface primitive.
21754 (Process_Formals): Replace membership test agains Incomplete_Kind with a
21755 call to the synthesized predicate Is_Incomplete_Type.
21756 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
21758 (Analyze_Subprogram_Declaration): Check that abstract interface
21759 primitives are abstract or null.
21760 (Analyze_Subprogram_Specification): Remove previous check for abstract
21761 interfaces because it was not complete.
21762 (Has_Interface_Formals): Removed.
21764 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21765 Javier Miranda <miranda@adacore.com>
21767 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
21768 of Analyze_Package_Body, to create Itype references for anonymous
21769 access types created in the package declaration, whose designated types
21770 may have only a limited view.
21771 (Analyze_Package_Specification): For the private part of a nested
21772 package, install private_with_clauses of enclosing compilation unit if
21773 we are in its visible part.
21774 (Declare_Inherited_Private_Subprograms): Complete barrier
21775 to ensure that the primitive operation has an alias to some parent
21776 primitive. This is now required because, after the changes done for the
21777 implementation of abstract interfaces, the contents of the list of
21778 primitives has entities whose alias attribute references entities of
21779 such list of primitives.
21780 (Analyze_Package_Specification): Simplify code that handles parent units
21781 of instances and formal packages.
21782 (Uninstall_Declarations): Check the convention consistency among
21783 primitive overriding operations of a tagged record type.
21785 2006-10-31 Robert Dewar <dewar@adacore.com>
21786 Hristian Kirtchev <kirtchev@adacore.com>
21787 Javier Miranda <miranda@adacore.com>
21788 Ed Schonberg <schonberg@adacore.com>
21790 * sem_ch8.adb: Minor error msg rewording
21791 (Undefined): When checking for misspellings, invert arguments (to get
21792 expected and found set right)
21793 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
21794 (Analyze_Generic_Renaming): Same fix
21795 (Use_One_Package): Do not take into account the internal entities of
21796 abstract interfaces during the analysis of entities that are marked
21797 as potentially use-visible.
21798 (Find_Type): Handle the case of an attribute reference for
21799 implementation defined attribute Stub_Type (simply let the analysis of
21800 the attribute reference rewrite it).
21801 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
21802 type that appears in a Use_Type clause.
21803 (Analyze_Object_Renaming): Add support for renaming of the Priority
21805 (Find_Type): In Ada 2005, a task type can be used within its own body,
21806 when it appears in an access definition.
21807 (Analyze_Object_Renaming): Remove warning on null_exclusion.
21808 (Analyze_Object_Renaming): Introduce checks for required null exclusion
21809 in a formal object declaration or in a subtype declaration.
21810 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
21811 (Check_Null_Exclusion): New local routine to
21812 Analyze_Subprogram_Renaming. Check whether the formals and return
21813 profile of a renamed subprogram have required null exclusions when
21814 their counterparts of the renaming already impose them.
21815 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
21816 Determine whether an entity is inside a generic scope.
21817 (In_Open_Scope): First pass of documentation update.
21818 (Find_Expanded_Name): Add support for shadow entities associated with
21819 limited withed packages. This is required to handle nested packages.
21820 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
21821 that makes a renaming of a limited withed package illegal.
21823 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21824 Ed Schonberg <schonberg@adacore.com>
21826 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
21827 Check_Overriding_Indicator.
21828 (Analyze_Task_Definition): Ditto.
21829 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
21830 (Check_Overriding_Indicator): To find overridden interface operation,
21831 examine only homonyms that have an explicit subprogram declaration, not
21832 inherited operations created by an unrelated type derivation.
21833 (Check_Overriding_Indicator): When checking for the presence of "null"
21834 in a procedure, ensure that the queried node is a procedure
21836 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
21837 type when the formal is an access to variable.
21838 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
21839 (Analyze_Task_Type): Same addition
21840 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
21841 provide navigation capabilities for entries.
21843 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21844 Ed Schonberg <schonberg@adacore.com>
21845 Javier Miranda <miranda@adacore.com>
21846 Gary Dismukes <dismukes@adacore.com>
21848 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
21849 inherited from an interface ancestor by another interface in the
21850 context of an instance as 'late'.
21851 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
21852 of a call to a function that dispatches on access result.
21853 (Check_Dispatching_Operation): In case of late overriding of a primitive
21854 that covers abstract interface subprograms we register it in all the
21855 secondary dispatch tables associated with abstract interfaces.
21856 (Check_Dispatching_Call): Add check that a dispatching call is not made
21857 to a function with a controlling result of a limited type. This is a
21858 current implementation restriction.
21859 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
21860 (Check_Dispatching_Operation): Do no emit a warning if the controlling
21861 argument is an interface type that is a generic formal.
21862 (Is_Interface_Subprogram): Removed.
21863 (Check_Dispatching_Operation): If the subprogram is not a dispatching
21864 operation, check the formals to handle the case in which it is
21865 associated with an abstract interface type.
21867 2006-10-31 Robert Dewar <dewar@adacore.com>
21868 Ed Schonberg <schonberg@adacore.com>
21870 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
21871 Add new calls to this procedure during traversal
21872 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
21873 another unit if expansion is disabled.
21875 2006-10-31 Robert Dewar <dewar@adacore.com>
21877 * sem_eval.adb (Compile_Time_Compare): Make use of information from
21878 Current_Value in the conditional case, to evaluate additional
21879 comparisons at compile time.
21881 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21882 Hristian Kirtchev <kirtchev@adacore.com>
21883 Javier Miranda <miranda@adacore.com>
21885 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
21886 subprogram type to provide better diagnostics in case of ambiguity.
21887 (Covers): Handle coverage of formal and actual anonymous access types in
21888 the context of generic instantiation.
21889 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
21890 abstract interface types; this is required to handle concurrent types
21891 with discriminants and abstract interface types.
21892 (Covers): Include type coverage of both regular incomplete subtypes and
21893 incomplete subtypes of incomplete type visibles through a limited with
21896 2006-10-31 Robert Dewar <dewar@adacore.com>
21897 Hristian Kirtchev <kirtchev@adacore.com>
21898 Ed Schonberg <schonberg@adacore.com>
21900 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
21901 messages for entities in packages which are not used.
21902 (Collect_Synchronized_Interfaces): New procedure.
21903 (Overrides_Synchronized_Primitive): New function.
21904 (Denotes_Discriminant): Extend predicate to apply to task types.
21905 Add missing continuation marks in error msgs
21906 (Unqualify): New function for removing zero or more levels of
21907 qualification from an expression. There are numerous places where this
21908 ought to be used, but we currently only deal properly with zero or one
21910 (In_Instance); The analysis of the actuals in the instantiation of a
21911 child unit is not within an instantiation, even though the parent
21912 instance is on the scope stack.
21913 (Safe_To_Capture_Value): Exclude the case of variables that are
21915 (Check_Obsolescent): Removed
21916 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
21917 is an aliased view, even when rewritten as a reference to the target
21918 object in an assignment.
21919 (Get_Subprogram_Entity): New function
21920 (Known_To_Be_Assigned): New function
21921 (Type_Access_Level): Compute properly the access level of a return
21922 subtype that is an anonymous access type.
21923 (Explain_Limited_Type): Correct use of "\" for continuation messages.
21924 (Is_Transfer): The new extended_return_statement causes a transfer of
21926 (Has_Preelaborable_Initialization): New function
21927 (Has_Null_Exclusion): New function. Given a node N, determine whether it
21928 has a null exclusion depending on its Nkind.
21929 Change Is_Lvalue to May_Be_Lvalue
21930 (May_Be_Lvalue): Extensive additional code to deal with subprogram
21931 arguments (IN parameters are not Lvalues, IN OUT parameters are).
21932 (Safe_To_Capture_Value): Extend functionality so it can be used for
21933 the current value condition case.
21934 (Has_Compatible_Alignment): New function
21935 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
21936 objects to handle the Ada 2005 case, where aliasedness no longer implies
21937 that the object is constrained. In particular, for dereferenced names,
21938 the designated object must be assumed to be unconstrained.
21939 (Kill_Current_Values): Properly deal with the case where we encounter
21940 a loop in the scope chain.
21941 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
21943 (Compile_Time_Constraint_Error): Improve error message in error case
21945 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
21946 associated with entities of abstract interface primitives.
21947 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
21949 2006-10-31 Robert Dewar <dewar@adacore.com>
21951 * s-osinte-tru64.adb:
21952 Mark Asm statements Volatile to prevent warnings (seems a
21953 reasonable change anyway)
21956 * s-mastop-irix.adb: Add Volatile to Asm statements
21957 Suppresses warning, and seems appropriate in any case
21959 * s-osinte-vms.adb: Add Volatile to Asm statement
21961 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
21963 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
21965 Add call to Check_Code_Statement
21967 2006-10-31 Robert Dewar <dewar@adacore.com>
21968 Ed Schonberg <schonberg@adacore.com>
21969 Bob Duff <duff@adacore.com>
21971 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
21972 Synchronized_Present): Add Formal_Derived_Type_Definition and
21973 Private_Extension_Declaration to the list of assertions.
21974 (Is_Entry_Barrier_Function): New flag
21975 (Has_Self_Reference): New flag on aggregates, to indicate that they
21976 contain a reference to the enclosing type, inserted through a default
21978 (Next_Rep_Item): Move from Node4 to Node5.
21979 (Entity): Add this field for N_Attribute_Definition_Clause.
21980 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
21981 (N_Return_Object_Declaration): Remove this node kind. We now use
21982 N_Object_Declaration instead.
21983 (Actual_Designated_Subtype): Move to a different place to make room in
21984 N_Extended_Return_Statement.
21985 (Procedure_To_Call): Move to a different place to make room in
21986 N_Extended_Return_Statement.
21987 (Return_Type): Removed this field to make room in return statements
21989 (Return_Statement_Entity): New field in return statements, in part to
21990 replace Return_Type, and in part to support the fact that return
21991 statements are now pushed on the scope stack during semantic analysis.
21992 (Return_Object_Declarations): New field to support extended return
21994 (N_Extended_Return_Statement): New node for extended_return_statement
21996 (N_Return_Object_Declaration): New node for part of
21997 extended_return_statement nonterminal. Needed because all the necessary
21998 fields won't fit in N_Extended_Return_Statement.
21999 Generic_associations now carry the Box_Present flag, to indicate a
22000 default for an actual in a partially parametrized formal package.
22002 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
22003 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
22004 and for the new predefined dispatching policies: EDF_Across_Priorities,
22005 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
22006 Introduce new name Stub_Type for implementation defined attribute.
22007 Add pragma Preelaborable_Initialization
22008 Add entry for Priority attribute.
22009 Add Pragma_Wide_Character_Encoding
22010 (Get_Convention_Name): Given a convention id, this function returns the
22011 corresponding name id from the names table.
22013 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22014 Robert Dewar <dewar@adacore.com>
22015 Bob Duff <duff@adacore.com>
22017 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
22018 print null exclusion twice in the case of an access definition,
22019 Implement new -gnatL switch
22020 Remove N_Return_Object_Declaration. We now use
22021 N_Object_Declaration instead. Implement the case for
22022 N_Extended_Return_Statement. Alphabetize the cases.
22023 Add cases for new nodes N_Extended_Return_Statement and
22024 N_Return_Object_Declaration. The code is not yet written.
22025 Update the output for N_Formal_Object_Declaration
22026 and N_Object_Renaming_Declaration.
22027 (Write_Itype): Account for the case of a modular integer subtype whose
22028 base type is private.
22030 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22032 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
22033 Remove elaboration code, now done in the binder.
22035 * s-rident.ads: Make this unit Preelaborate.
22036 (No_Restrictions): New constant used to clean up code and follow
22037 preelaborate constraints.
22040 Add System.Restrictions dependence, referenced directly from the
22041 binder generated file.
22043 2006-10-31 Gary Dismukes <dismukes@adacore.com>
22045 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
22046 True when AAMP extended floating-point is in use (48-bit). Change type
22047 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
22048 the two byte array types on AFloat. Change type of IV_Ilf overlay
22049 variable from Byte8 to ByteLF. Add appropriate initializations of
22050 floating-point overlays for AAMP cases.
22052 2006-10-31 Javier Miranda <miranda@adacore.com>
22054 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
22055 (Get_Ceiling): New subprogram that returns
22056 the ceiling priority of the protected object.
22057 (Set_Ceiling): New subprogram that sets the new ceiling priority of
22058 the protected object.
22060 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
22062 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
22064 2006-10-31 Jose Ruiz <ruiz@adacore.com>
22066 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
22067 requeuing to the same protected object to give higher priority tasks
22068 the opportunity to execute.
22070 2006-10-31 Robert Dewar <dewar@adacore.com>
22072 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
22073 add more precise check for the character sequence that follows '[' to
22074 avoid possible confusion in case if '[' is the last character of a
22076 (Scan_Wide): Always allow brackets encoding
22078 2006-10-31 Olivier Hainque <hainque@adacore.com>
22080 * s-stchop.ads: make this unit preelaborate. This is desirable in
22081 general and made mandatory by the use of this unit by s-taprop which
22082 is itself preelaborate.
22084 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
22085 Td_Events component.
22087 2006-10-31 Vincent Celier <celier@adacore.com>
22089 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
22092 2006-10-31 Vincent Celier <celier@adacore.com>
22094 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
22096 2006-10-31 Vincent Celier <celier@adacore.com>
22098 * makegpr.adb (Check_Compilation_Needed): Take into account path names
22100 (Check_Compilation_Needed): When checking a C or C++ source, do not
22101 resolve symbolic links.
22102 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
22103 When not in verbose mode and Ellipse is True, display "..." for the
22104 first argument with Display set to False.
22105 (Build_Global_Archive): Always set Display True for the first object
22106 file. Call Display_Command with Ellipse set to True.
22108 2006-10-31 Matt Heaney <heaney@adacore.com>
22110 * a-crbtgo.ads: Commented each subprogram
22112 * a-crbtgo.adb: Added reference to book from which algorithms were
22115 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
22116 indicate which child.
22117 (Generic_Conditional_Insert): changed parameter name from "Success" to
22119 (Generic_Unconditional_Insert_With_Hint): improved algorithm
22121 * a-coorse.adb (Replace_Element): changed parameter name in call to
22122 conditional insert operation.
22124 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
22126 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
22129 * a-ciorse.adb (Replace_Element): changed parameter name in call to
22130 conditional insert operation.
22132 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
22135 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
22136 instead of mode inout.
22138 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
22140 (Generic_Read): preserve existing buckets array if possible
22141 (Generic_Write): don't send buckets array length anymore
22143 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
22144 instead of mode inout.
22146 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
22147 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22149 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
22150 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22151 (Replace_Element): local operation is now an instantiation
22153 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
22154 check current length.
22155 (Generic_Replace_Element): new operation
22157 2006-10-31 Doug Rupp <rupp@adacore.com>
22159 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
22160 Call TBK$SYMBOLIZE without omitting parameters.
22162 2006-10-31 Vincent Celier <celier@adacore.com>
22164 * symbols-processing-vms-ia64.adb,
22165 symbols-processing-vms-alpha.adb (Process): Do not include symbols
22166 that come from generic instantiations in bodies.
22168 2006-10-31 Pat Rogers <rogers@adacore.com>
22170 * a-rttiev.ads, a-rttiev.adb:
22171 This is a significant redesign primarily for the sake of automatic
22172 timer task termination but also to fix a design flaw.
22173 Therefore we are now using an RTS lock, instead of a protected
22174 object, to provide mutual exclusion to the queue of pending events
22175 and the type Timing_Event is no longer a protected type.
22177 2006-10-31 Robert Dewar <dewar@adacore.com>
22178 Cyrille Comar <comar@adacore.com>
22179 Ben Brosgol <brosgol@adacore.com>
22181 * debug.adb: Update flags documentation
22183 * gnat_ugn.texi: Add documentation for new -gnatwq switch
22184 Clean up documentation for several other warning switches
22185 Clarify how task stack size can be specified with various
22186 versions of Windows.
22187 Add note that -gnatVo includes ranges including loops
22188 Add documentation for -gnatL switch
22189 Add note on elaboration warning for initializing variables
22190 Add documentation for new -gnatwt warning switch
22191 Document new form of pragma Warnings (On|Off, string)
22192 Add comment on use of pragma Warnings to control warnings
22193 Add documentation for -gnatjnn switch
22194 Modify section on interfacing with C for VMS 64-bit.
22195 Add doc for -gnatVe/E
22196 Add documentation of new warning flags -gnatww/-gnatwW
22197 Add warnings about address clause overlays to list of warnings
22198 (Exception Handling Control): Document that the option --RTS must be
22199 used consistently for gcc and gnatbind.
22200 Clarify that inlining is not always possible
22201 Update documentation on pragma Unchecked_Union.
22204 Add documentation for new extended version of pragma Obsolescent
22205 Add documentation for implementation defined attribute 'Stub_Type.
22206 Add note on use of Volatile in asm statements
22207 Add documentation on use of pragma Unreferenced in context clause
22208 Document new form of pragma Warnings (On|Off, pattern)
22209 Document pragma Wide_Character_Encoding
22210 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
22211 enforced if code generation is active.
22212 Add section on pragma Suppress to document GNAT specific check
22214 Clarify difference between No_Dispatching_Calls & No_Dispatch.
22215 Add documentation for pragma Restrictions (No_Elaboration_Code)
22218 Add comments on layout of subprogram local variables in the
22219 presence of nested subprograms.
22221 * ug_words: Resync.
22223 * elists.ads: Minor reformatting
22224 Node returns Node_Or_Entity_Id (doc change only)
22226 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
22228 * g-arrspl.ads (Create): Update comments.
22230 * sem.ads: Add details on the handling of the scope stack.
22232 * usage.adb: Update documentation.
22234 * validsw.ads, validsw.adb:
22235 Add definition of Validity_Check_Components and implement -gnatVe/E
22237 * vms_data.ads: Add missing VMS qualifiers.
22239 * s-addope.ads: Add documentation on overflow and divide by zero
22241 2006-10-31 Robert Dewar <dewar@adacore.com>
22242 Thomas Quinot <quinot@adacore.com>
22243 Arnaud Charlet <charlet@adacore.com>
22245 * fmap.adb: Put routines in alpha order
22247 * g-boumai.ads: Remove redundant 'in' keywords
22249 * g-cgi.adb: Minor reformatting
22251 * g-cgi.ads: Remove redundant 'in' keywords
22253 * get_targ.adb: Put routines in alpha order
22255 * prj-attr.ads: Minor reformatting
22257 * s-atacco.ads: Minor reformatting
22259 * scn.adb: Put routines in alpha order
22261 * sinput-l.adb: Minor comment fix
22263 * sinput-p.adb: Minor comment fix
22265 * s-maccod.ads: Minor reformatting
22267 * s-memory.adb: Minor reformatting
22269 * s-htable.adb: Fix typo in comment.
22271 * s-secsta.adb: Minor comment update.
22273 * s-soflin.adb: Minor reformatting
22276 Add comment about odd qualification in Storage_Offset declaration
22279 Remove unnecessary 'in' keywords for formal parameters.
22281 * treeprs.adt: Minor reformatting
22283 * urealp.adb: Put routines in alpha order
22285 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
22288 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22290 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
22292 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
22293 workaround as on other platforms.
22295 * g-eacodu-vms.adb: Remove redundant 'in' keywords
22296 * g-expect-vms.adb: Remove redundant 'in' keywords
22298 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
22299 clear error message if the list-of-files file cannot be opened.
22301 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
22302 equality operator is always visible.
22304 * lang.opt: Woverlength-strings: New option.
22307 Update copyright, since nmake.ads and nmake.adb have changed.
22309 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
22310 (Binder_Output_Time_Stamps_Set): removed.
22311 (Old_Binder_Output_Time_Stamp): idem.
22312 (New_Binder_Output_Time_Stamp): idem.
22313 (Recording_Time_From_Last_Bind): idem.
22314 (Recording_Time_From_Last_Bind): Make constant.
22316 * output.ads, output.adb (Write_Str): Allow LF characters
22317 (Write_Spaces): New procedure
22319 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
22321 * inline.adb: Minor reformatting
22323 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22325 * s-mastop-vms.adb: Remove redundant 'in' keywords
22327 * s-osprim-vms.adb: Remove redundant 'in' keywords
22329 * s-trafor-default.adb: Remove redundant 'in' keywords
22331 * 9drpc.adb: Remove redundant 'in' keywords
22333 * s-osinte-mingw.ads: Minor reformatting
22335 * s-inmaop-posix.adb: Minor reformatting
22337 * a-direio.ads: Remove quotes from Compile_Time_Warning message
22339 * a-exexda.adb: Minor code reorganization
22341 * a-filico.adb: Minor reformatting
22343 * a-finali.adb: Minor reformatting
22345 * a-nudira.ads: Remove quote from Compile_Time_Warning message
22347 * a-numeri.ads: Minor reformatting
22349 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
22351 * exp_pakd.ads: Fix obsolete comment
22353 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
22354 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
22355 Probably not a bug, but certainly neater and more efficient.
22357 * a-tienio.adb: Minor reformatting
22359 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
22360 Avoid assuming low bound of string is 1.
22362 * gnatbind.adb: Change Bindusg to package and rename procedure as
22363 Display, which now ensures that it only outputs usage information once.
22364 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
22366 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
22369 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
22371 (Match): Add pragma Assert to ensure that Matches'First is zero
22373 * g-regpat.ads (Match): Document that Matches lower bound must be zero
22375 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
22376 documented preconditions (also kills warnings about bad indexes).
22378 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
22380 (Build_Import_Library): Ditto;
22382 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
22384 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
22386 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
22387 lower bound of choice table is 1.
22389 * sem_case.ads (Analyze_Choices): Document that lower bound of
22392 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
22395 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
22396 and add appropriate Assert pragma to suppress warnings.
22398 * atree.h, atree.ads, atree.adb
22399 Change Elist24 to Elist25
22400 Add definitions of Field28 and Node28
22401 (Traverse_Field): Use new syntactic parent table in sinfo.
22403 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22405 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22407 * exp_tss.adb: Put routines in alpha order
22409 * fe.h: Remove redundant declarations.
22411 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22413 * utils.c (builtin_function): Rename to gnat_builtin_function.
22414 Move common code to add_builtin_function.
22415 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
22416 gnat_builtin_function.
22417 * gigi.h (builtin_function): Rename to gnat_builtin_function.
22418 Change the signature.
22420 2006-10-16 Brooks Moses <bmoses@stanford.edu>
22422 * Makefile.in: Add TEXI2PDF definition.
22423 * Make-lang.in: Add "ada.pdf" target.
22425 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
22427 * decl.c, utils.c: Fix comment typos.
22428 * utils.c: Fix a typo.
22430 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
22432 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
22433 on "pure" Ada subprograms if SJLJ exceptions are used.
22434 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
22435 on the declaration node of JMPBUF_SAVE.
22436 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
22437 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
22438 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
22440 2006-08-20 Laurent Guerby <laurent@guerby.net>
22443 g-socket.adb (Bind_Socket): Call Set_Address.
22445 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
22448 * decl.c (same_discriminant_p): New static function.
22449 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
22450 subtype and we have discriminants, fix up the COMPONENT_REFs
22451 for the discriminants to make them reference the corresponding
22452 fields of the parent subtype after it has been built.
22454 2006-09-15 Roger Sayle <roger@eyesopen.com>
22457 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
22458 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
22460 2006-09-13 Olivier Hainque <hainque@adacore.com>
22463 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
22464 of a SAVE_EXPR, just make the operand addressable/not-readonly and
22465 let the common gimplifier code make and propagate a temporary copy.
22466 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
22467 out/in-out actuals and defer setting the addressable/readonly bits
22470 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22473 * decl.c (components_to_record): Defer emitting debug info for the
22474 record type associated with the variant until after we are sure to
22477 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22480 * gigi.h (gnat_internal_attribute_table): Declare.
22481 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
22482 * utils.c (gnat_internal_attribute_table): New global variable.
22483 (builtin_function): Always call decl_attributes on the builtin.
22484 (handle_const_attribute): New static function.
22485 (handle_nothrow_attribute): Likewise.
22487 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
22489 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
22491 2006-06-23 Olivier Hainque <hainque@adacore.com>
22493 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
22494 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
22496 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
22497 Eric Botcazou <ebotcazou@adacore.com>
22500 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
22501 check-gnat into check-acats.
22503 2006-06-17 Karl Berry <karl@gnu.org>
22505 * gnat-style.texi (@dircategory): Use "Software development"
22506 instead of "Programming", following the Free Software Directory.
22508 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22511 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
22513 2006-06-06 Laurent Guerby <laurent@guerby.net>
22516 mlib-utl.adb: Use Program_Name.
22518 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
22520 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
22521 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
22522 trans.c, utils.c: Fix comment typos. Follow spelling
22524 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
22527 2006-05-19 Nicolas Setton <setton@adacore.com>
22529 * misc.c (gnat_dwarf_name): New function.
22530 (LANG_HOOKS_DWARF_NAME): Define to it.
22532 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
22534 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
22535 (ada/misc.o): Likewise.
22536 (ada/utils.o): Likewise.
22538 2006-04-08 Aurelien Jarno <aurel32@debian.org>
22540 * Makefile.in: Add Ada support for GNU/kFreeBSD.
22541 * s-osinte-kfreebsd-gnu.ads: New file.
22543 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
22545 * Make-lang.in: Rename docdir to gcc_docdir.
22547 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
22549 * gigi.h (get_ada_base_type): Delete.
22550 * utils2.c (get_ada_base_type): Likewise.
22551 * trans.c (convert_with_check): Operate in the real base type.
22553 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22555 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
22557 2006-03-02 Richard Sandiford <richard@codesourcery.com>
22559 * utils.c (create_var_decl): Use have_global_bss_p when deciding
22560 whether to make the decl common.
22562 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22564 * Make-lang.in (Ada): Remove.
22565 (.PHONY): Remove Ada
22567 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22569 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
22570 aggregate, check the interpretations of the other operand to find one
22571 that may be a boolean array.
22573 (Analyze_Selected_Component): Fix flow-of-control typo in case where
22574 the prefix is a private extension.
22576 2006-02-17 Eric Botcazou <botcazou@adacore.com>
22579 * utils2.c (find_common_type): If both input types are BLKmode and
22580 have the same constant size, keep using the first one.
22582 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
22584 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
22586 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
22588 2006-02-17 Jose Ruiz <ruiz@adacore.com>
22590 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
22591 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
22592 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
22593 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
22594 Abort_Defer/Undefer pairs to avoid the possibility of a task being
22595 aborted while owning a lock.
22597 2006-02-17 Javier Miranda <miranda@adacore.com>
22598 Robert Dewar <dewar@adacore.com>
22600 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
22601 through an access to class-wide interface we force the displacement of
22602 the pointer to the allocated object to reference the corresponding
22603 secondary dispatch table.
22604 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
22605 if Long_Shifts are supported on the target, even if 64 bit divides
22606 are not supported (configurable run time mode).
22607 (Expand_N_Type_Conversion): Do validity check if validity checks on
22608 operands are enabled.
22609 (Expand_N_Qualified_Expression): Do validity check if validity checks
22610 on operands are enabled.
22612 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22614 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
22615 must be materialized when the renamed expression is an explicit
22618 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22620 * freeze.adb (Statically_Discriminated_Components): Return false if
22621 the bounds of the type of the discriminant are not static expressions.
22623 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
22624 the bounds of the discriminant type are not static.
22626 2006-02-17 Robert Dewar <dewar@adacore.com>
22628 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
22629 then we close To if it is valid.
22631 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
22633 * init.c (facility_resignal_table): new array
22634 (__gnat_default_resignal_p): enhance default predicate to resignal if
22635 VMS condition has one of the predefined facility codes.
22637 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
22639 * Makefile.in: Use VMS64 specialized versions of several units in
22640 Interfaces.C hierarchy to be compatible with HP C default size choices.
22641 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
22643 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22645 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
22646 instantiation, the corresponding entity is the related_instance of the
22647 wrapper package created for the instance.
22649 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22651 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
22652 the current instance is nested within another instance in a child unit.
22654 2006-02-17 Javier Miranda <miranda@adacore.com>
22655 Ed Schonberg <schonberg@adacore.com>
22657 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
22658 type we cannot inherit the primitive operations; we inherit the
22659 Corresponding_Record_Type (which has the list of primitive operations).
22660 (Check_Anonymous_Access_Types): When creating anonymous access types for
22661 access components, use Rewrite in order to preserve the tree structure,
22663 (Analyze_Object_Declaration): For limited types with access
22664 discriminants with defaults initialized by an aggregate, obtain
22665 subtype from aggregate as for other mutable types.
22666 (Derived_Type_Declaration): If the derived type is a limited interface,
22667 set the corresponding flag (Is_Limited_Record is not sufficient).
22669 2006-02-17 Ed Schonberg <schonberg@adacore.com>
22671 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
22672 to inline a function that returns an unconstrained type, the return
22673 expression must be the first variable declared in the body of the
22676 2006-02-17 Javier Miranda <miranda@adacore.com>
22678 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
22679 abstract interface type, the static analysis is not enough to know if
22680 the interface is implemented or not by the source tagged type. Hence
22681 we must pass the work to the expander to generate the required code to
22682 evaluate the conversion at run-time.
22683 (Resolve_Equality_Op): Do not apply previous
22684 transformation if expansion is disasbled, to prevent anomalies when
22685 locating global references in a generic unit.
22687 2006-02-17 Vincent Celier <celier@adacore.com>
22689 * snames.ads, snames.adb: New standard names for new project attributes:
22690 archive_builder, archive_indexer, compiler_pic_option,
22691 config_body_file_name, config_body_file_name_pattern,
22692 config_file_switches, config_file_unique, config_spec_file_name,
22693 config_spec_file_name_pattern, default_builder_switches,
22694 default_global_compiler_switches, default_language,
22695 dependency_file_kind, global_compiler_switches, include_path,
22696 include_path_file, language_kind, linker_executable_option,
22697 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
22698 roots, runtime_project.
22700 2006-02-17 Matthew Heaney <heaney@adacore.com>
22702 * a-convec.ads, a-convec.adb:
22703 (operator "&"): handle potential overflow for large index types
22704 (Insert): removed Contraint_Error when using large index types
22705 (Insert_Space): removed Constraint_Error for large index types
22706 (Length): moved constraint check from Length to Insert
22708 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
22709 as not null access.
22710 Explicit raise statements now include an exception message.
22711 (operator "&"): handle potential overflow for large index types
22712 (Insert): removed Contraint_Error when using large index types
22713 (Insert_Space): removed Constraint_Error for large index types
22714 (Length): moved constraint check from Length to Insert
22716 2006-02-17 Robert Dewar <dewar@adacore.com>
22718 * s-wchcnv.adb: Document handling of [ on output (we do not change
22719 this to ["5B"] and the new comments say why not.
22722 Add note for -gnatVo that this now includes the cases of type
22723 conversions and qualified expressions.
22724 Add comments on handling of brackets encoding for Text_IO
22726 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
22727 Thomas Quinot <quinot@adacore.com>
22728 Robert Dewar <dewar@adacore.com>
22729 Javier Miranda <miranda@adacore.com>
22731 * expander.adb: Fix typo in comment
22733 * exp_pakd.adb: Fix typo
22734 Minor comment reformatting.
22736 * g-dyntab.adb: Minor reformatting
22738 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
22739 aliased subprograms to look for the abstract interface subprogram.
22741 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
22743 * env.c (__gnat_setenv): Use size_t.
22744 (__gnat_unsetenv): Likewise.
22745 (__gnat_clearenv): Likewise.
22747 2006-02-16 Arnaud Charlet <charlet@adacore.com>
22749 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
22751 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22753 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
22754 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
22755 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
22756 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
22757 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
22758 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
22759 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
22760 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
22761 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
22764 2006-02-13 Jose Ruiz <ruiz@adacore.com>
22766 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
22767 protection against race conditions is not needed.
22768 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
22770 (Set_Specific_Handler): Add mutual exclusive access to the specific
22772 (Specific_Handler): Add mutual exclusive access for retrieving the
22775 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
22778 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
22779 Fall_Back_Handler and Specific_Handler.
22781 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
22782 termination handlers.
22783 Set two different owerflow depending on the maximal stack size.
22785 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
22786 protection against race conditions is not needed when executing the
22787 task termination handler.
22789 2006-02-13 Robert Dewar <dewar@adacore.com>
22791 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
22792 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
22793 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22794 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
22795 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
22796 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
22797 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
22798 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
22799 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
22800 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
22801 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
22802 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
22803 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
22804 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
22805 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
22806 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
22807 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
22808 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
22809 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
22810 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
22811 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
22812 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
22813 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
22814 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
22815 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
22816 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
22817 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
22818 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
22819 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
22820 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
22821 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
22822 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
22823 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
22824 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
22827 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
22829 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
22830 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
22831 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
22832 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
22833 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
22834 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
22835 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
22836 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
22837 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
22839 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22841 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
22842 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
22843 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
22844 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
22845 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
22846 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
22847 replaced by anonymous access type.
22848 (pthread_sigmask): Now take an access sigset_t
22850 * s-osinte-hpux.ads: Ditto.
22851 (pthread_mutex_t, pthread_cond_t): Update definitions to support
22852 properly 32 and 64 bit ABIs.
22854 2006-02-13 Pascal Obry <obry@adacore.com>
22856 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
22857 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
22858 s-taprop-linux.adb, s-taprop-solaris.adb,
22859 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
22860 adjustement is already done when calling this routine.
22862 2006-02-13 Pascal Obry <obry@adacore.com>
22864 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
22865 table to take advantage of the 16 priority levels available on Windows
22866 2000 and XP. On NT4 there are only 7 priority levels, this is properly
22867 supported by this new mapping.
22869 2006-02-13 Nicolas Setton <setton@adacore.com>
22871 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
22872 (get_encoding): New subprogram. Extracts the encodings from an encoded
22875 2006-02-13 Pascal Obry <obry@adacore.com>
22876 Nicolas Roche <roche@adacore.com>
22877 Arnaud Charlet <charlet@adacore.com>
22879 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
22881 (__gnat_try_lock): Add unicode support by using a specific section on
22883 (__gnat_get_current_dir): Idem.
22884 (__gnat_open_read): Idem.
22885 (__gnat_open_rw): Idem.
22886 (__gnat_open_create): Idem.
22887 (__gnat_create_output_file): Idem.
22888 (__gnat_open_append): Idem.
22889 (__gnat_open_new): Idem.
22890 (__gnat_file_time_name): Idem.
22891 (__gnat_set_file_time_name): Idem.
22892 (__gnat_stat): Idem.
22893 (win32_no_block_spawn): Idem.
22894 (__gnat_locate_exec_on_path): Idem.
22895 (__gnat_opendir): New routine.
22896 (__gnat_closedir): Idem.
22897 (__gnat_readdir): Add new parameter length (pointer to int). Update
22898 implementation to use it and add specific Win32 code for Unicode
22900 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
22901 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
22902 (convert_addresses): Do not define this dummy routine on VMS.
22904 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
22905 runtime Unicode support will be activated.
22906 (S2WS): String to Wide-String conversion. This version just copy a
22907 string in non Unicode version.
22908 (WS2S): Wide-String to String conversion. This version just copy a
22909 string in non Unicode version.
22911 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
22912 (Open): Now import __gnat_opendir from adaint.c.
22913 (Read): Change the implementation to support unicode characters. It is
22914 not possible to use strlen() on Windows as this version supports only
22915 standard ASCII characters. So the length of the directory entry is now
22916 returned from the imported __gnat_readdir routine.
22917 Update copyright notice.
22919 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
22920 (opendir): Moved to adaint.c.
22922 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
22923 (Get_Directory): Fix wrong indexing.
22924 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
22925 __gnat_getenv from env.c
22926 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
22929 * env.h, env.c: New file.
22931 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
22932 adaint.c by __gnat_getenv from env.c
22934 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
22935 adaint.c by __gnat_getenv from env.c
22937 * Make-lang.in: Add env.o in the list of C object needed by gnat1
22939 Update dependencies.
22941 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22942 Olivier Hainque <hainque@adacore.com>
22943 Eric Botcazou <ebotcazou@adacore.com>
22945 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
22947 * gigi.h (value_factor_p): Add prototype and description, now public.
22949 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
22950 promotion for field with rep clause if the associated size was proven
22952 Expand comments describing attempts to use a packable type.
22953 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
22954 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
22955 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
22956 necessary since these are not different types and pointers may
22957 actually designate any subtype in this hierarchy.
22958 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
22959 discriminants but put them into record only if not Unchecked_Union;
22960 pass flag to components_to_record showing Unchecked_Union.
22961 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
22962 components before variants; don't set TYPE_UNCHECKED_UNION_P.
22963 (components_to_record): New argument UNCHECKED_UNION.
22964 Remove special case code for Unchecked_Union and instead use main code
22965 with small changes.
22968 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
22969 variable with the expression being built, only its inner field.
22971 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
22972 emit_sequence_entry_statements.
22973 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
22974 (establish_gnat_vms_condition_handler): Move before
22975 Subprogram_Body_to_gnu.
22976 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
22977 for a subprogram if it has a foreign convention or is exported.
22978 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
22979 substituted for a CONST_DECL.
22980 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
22981 Etype to assoc_to_constructor.
22982 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
22983 discriminants of Unchecked_Union.
22984 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
22985 don't need cluttering preprocessor directives.
22986 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
22987 condition handler as current in the compiled function.
22988 (body_with_handlers_p): New function. Tell whether a given sequence of
22989 statements node is attached to a package or subprogram body and involves
22990 exception handlers possibly nested within inner block statements.
22991 (emit_sequence_entry_statements): New function, to emit special
22992 statements on entry of sequences when necessary. Establish GNAT
22993 condition handler in the proper cases for VMS.
22994 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
22995 emit_sequence_entry_statements.
22997 * utils2.c (find_common_type): If both input types are BLKmode and
22998 have a constant size, use the smaller one.
22999 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
23002 * utils.c (value_factor_p): Make public, to allow uses from other gigi
23004 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
23005 (convert, case UNION_TYPE): Remove special treatment for unchecked
23009 (update_pointer_to): Update variants of pointer types to unconstrained
23010 arrays by attaching the list of fields of the main variant.
23012 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23013 Robert Dewar <dewar@adacore.com>
23015 * a-exexpr.adb, a-exexpr-gcc.adb
23016 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
23017 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
23018 Remove code unused for exception propagation for the compiler itself
23019 from a-except.adb and update to still share separate packages.
23021 * a-except.ads, a-except.adb: Ditto.
23022 Add comments that this version is now used only by the compiler and
23023 other basic tools. The full version that includes the Ada 2005 stuff
23024 is in separate files a-except-2005.ads/adb. The reason is that we do
23025 not want to cause bootstrap problems with compilers not recognizing
23027 Add exception reason code PE_Implicit_Return
23028 Add new exception reason code (Null Exception_Id)
23030 * a-except-2005.adb, a-except-2005.ads: New files.
23032 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
23034 * s-wchcon.adb: New file.
23036 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
23037 (traceback.o deps): Likewise.
23038 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
23039 Activate build of GMEM instrumentation library on VMS targets.
23040 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
23041 Use a-except-2005.ads/adb for all run-time library builds unless
23042 specified otherwise.
23043 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
23044 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
23045 Use s-parame.adb on all native platforms.
23046 Use s-parame-vxworks.adb on all vxworks platforms.
23047 Add env.c env.h in LIBGNAT_SRCS
23048 Add env.o in LIBGNAT_OBJS
23049 (GNATMAKE_OBJS): Remove ctrl_c.o object.
23050 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
23051 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
23052 supports VxWorks 6 RTPs.
23053 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
23054 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
23056 * types.h, types.ads (Terminate_Program): New exception
23057 Add comment on modifying multiple versions of a-except.adb when the
23058 table of exception reasons is modified.
23059 Add exception reason code PE_Implicit_Return
23060 Add new exception reason code (Null Exception_Id)
23062 * clean.adb (Initialize): Get the target parameters before checking
23063 if target is OpenVMS. Move the OpenVMS specific code here from package
23064 body elaboration code.
23066 2006-02-13 Thomas Quinot <quinot@adacore.com>
23067 Vincent Celier <celier@adacore.com>
23068 Robert Dewar <dewar@adacore.com>
23070 * ali-util.adb (Get_File_Checksum): Update to account for change in
23071 profile of Initialize_Scanner.
23073 * gprep.adb (Gnatprep): Update to account for change in profile of
23074 Initialize_Scanner.
23075 (Process_One_File): Same.
23077 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
23078 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
23079 that behaviour using the new Unit information recorded in the source
23080 files table, rather than going through all units every time.
23081 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
23082 (Get_Source_Unit): Same.
23084 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
23085 change in profile of Initialize_Scanner.
23086 (Prepare_To_Preprocess): Same.
23088 * lib.ads: Fix typo in comment (templace -> template).
23090 * prj-part.adb (Parse_Single_Project): Update to account for change in
23091 profile of Initialize_Scanner.
23093 * scn.adb (Initialize_Scanner): Account for change in profile of
23094 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
23095 Also record the association of the given Source_File_Index to the
23096 corresponding Unit_Number_Type.
23098 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
23100 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
23101 Remove Unit formal for generic scanner: this formal
23102 is only relevant to Scn (the scanner instance used to parse Ada source
23103 files), not to other instances. Update comment accordingly.
23104 (Scan): Use new function Snames.Is_Keyword_Name.
23106 * sinfo-cn.adb: Fix typo in comment.
23108 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
23111 * sinput.ads (Source_File_Record): New component Unit, used to capture
23112 the unit identifier (if any) associated to a source file.
23114 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
23115 Unit in Source_File_Record.
23117 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
23118 in profile of Initialize_Scanner.
23120 * scans.adb (Initialize_Ada_Keywords): New procedure
23122 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
23123 Ada keywords in the Namet table, without the need to call
23124 Initialize_Scanner.
23126 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
23127 (Is_Keyword_Name): New function
23129 * snames.ads: Add subtype Configuration_Pragma_Names
23130 Add pragma Ada_2005 (synonym for Ada_05)
23131 (Is_Keyword_Name): New function
23133 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
23135 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23137 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
23140 * a-stwima.adb (To_Set): Add extra check when N = 0.
23142 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
23144 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23146 * s-parame-mingw.adb, s-parame-linux.adb,
23147 s-parame-solaris.adb: Removed, replaced by s-parame.adb
23149 * s-parame-vxworks.ads: Fix typo.
23151 * s-parame-vxworks.adb: New file.
23153 * s-parame.adb: Version now used by all native platforms.
23154 (Default_Stack_Size): Use 2 megs for default stack size and use
23155 __gl_default_stack_size when available.
23156 (Minimum_Stack_Size): Use 12K.
23158 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
23159 (Create_Task): Refine implementation taking advantage of the XP stack
23160 size support. On XP, we now create the thread using the flag
23161 STACK_SIZE_PARAM_IS_A_RESERVATION.
23163 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
23165 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
23166 XP and 0 on older Windows versions.
23168 * interfac-vms.ads: Removed, no longer used.
23170 2006-02-13 Matthew Heaney <heaney@adacore.com>
23172 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
23173 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
23174 a-cohase.adb: All explicit raise statements now include an exception
23177 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
23178 (Update_Element_Preserving_Key): renamed op to just Update_Element.
23179 Explicit raise statements now include an exception message
23181 * a-cihase.ads, a-cohase.ads: Removed comment.
23183 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
23184 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
23185 a-szbzha.adb, a-szfzha.ads: New files.
23187 2006-02-13 Matthew Heaney <heaney@adacore.com>
23189 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
23192 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23194 * lang.opt: Wvariadic-macros: New option.
23195 Wold-style-definition: Likewise.
23196 Wmissing-format-attribute: Likewise.
23198 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
23199 -Wold-style-definition and -Wmissing-format-attribute.
23201 2006-02-13 Robert Dewar <dewar@adacore.com>
23203 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
23205 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
23207 2006-02-13 Nicolas Roche <roche@adacore.com>
23209 * a-envvar.adb, a-envvar.ads: New files.
23211 2006-02-13 Douglas Rupp <rupp@adacore.com>
23213 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
23215 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
23217 2006-02-13 Pat Rogers <rogers@adacore.com>
23219 * a-rttiev.adb, a-rttiev.ads: New files.
23221 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23223 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
23224 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
23226 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
23228 2006-02-13 Robert Dewar <dewar@adacore.com>
23230 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
23231 sem_case.adb: Minor code reorganization (not Present should be No)
23233 2006-02-13 Geert Bosch <bosch@adacore.com>
23234 Gary Dismukes <dismukes@adacore.com>
23236 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
23237 0, since the lower bound of the actual string may be greater than one.
23240 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
23241 layout is requested.
23243 2006-02-13 Vincent Celier <celier@adacore.com>
23245 * back_end.adb (Scan_Compiler_Arguments): Check if
23246 Search_Directory_Present is True and, if it is, add the argument in
23247 the source search directory path.
23249 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
23250 Search_Directory_Present to True.
23252 2006-02-13 Joel Brobecker <brobecke@adacore.com>
23254 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
23255 volatile, to tell the compiler to preserve this variable at any level
23257 (Gen_Versions_Ada): Temporarily work around codegen bug.
23259 2006-02-13 Vincent Celier <celier@adacore.com>
23261 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
23262 gcc to link with option -shared-libgcc.
23263 (Gnatlink): Remove duplicate switches -shared-libgcc
23265 2006-02-13 Robert Dewar <dewar@adacore.com>
23267 * gnatvsn.ads (Current_Year): New constant, used to easily update
23268 copyright on all GNAT tools.
23270 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
23273 2006-02-13 Robert Dewar <dewar@adacore.com>
23275 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
23276 after hyphen (small aesthetic change useful for a range of numbers
23278 Suppress range checks for a couple of assignments which otherwise
23279 cause validity checks with validity checking turned on.
23281 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
23282 Improvement in error message for object.
23283 (Rep_Item_Too_Late): Remove '!' in warning message.
23285 2006-02-13 Robert Dewar <dewar@adacore.com>
23286 Eric Botcazou <ebotcazou@adacore.com>
23288 * err_vars.ads: Suppress range checks for a couple of assignments
23289 which otherwise cause validity checks with validity checking turned on.
23292 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
23293 Make message unconditional if it is a warning.
23294 (Error_Msg_NEL): Always output warning messages.
23295 Suppress range checks for a couple of assignments which otherwise
23296 cause validity checks with validity checking turned on.
23298 * errout.ads (Message Insertion Characters): Document that '!' is
23299 implied by '?' in error messages.
23301 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
23302 (Gnat1drv): Use a goto to end of main subprogram instead of
23303 Exit_Program (E_Success) so that finalization can occur normally.
23305 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23307 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
23310 2006-02-13 Vincent Celier <celier@adacore.com>
23312 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
23313 Unchecked_Conversion functions.
23314 (Modification_Time): Use direct conversion of OS_Time to Calendar time
23315 when OpenVMS returns False.
23317 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
23318 a-dirval.adb (OpenVMS): New Boolean function
23320 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23321 Thomas Quinot <quinot@adacore.com>
23323 * checks.adb (Build_Discriminant_Checks): If the expression being
23324 checks is an aggregate retrieve the values of its discriminants to
23325 generate the check, rather than creating a temporary and a reference
23327 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
23328 (Install_Null_Excluding_Check): Ditto
23329 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
23330 not for the renamed object, so that the actual itype is attached in the
23333 2006-02-13 Robert Dewar <dewar@adacore.com>
23334 Vincent Celier <celier@adacore.com>
23336 * debug.adb: Eliminate numeric switches for binder/gnatmake
23338 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
23339 switches for the compiler.
23340 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
23341 (Scan_Make_Switches): When failing with an illegal switch, output an
23342 error message with the full switch.
23343 Eliminate numeric switches for binder/gnatmake
23345 * switch.ads, switch.adb (Bad_Switch): New procedure
23347 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
23348 Remove 0-9 as debug flag character possibilities
23349 -d is now controlling the primary stack size when its value is a
23350 positive. Also add checks against invalid values, and support for kb,
23351 mb. Ditto for -D switch.
23353 2006-02-13 Robert Dewar <dewar@adacore.com>
23354 Serguei Rybin <rybin@adacore.com>
23356 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
23357 save/restore routines.
23358 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23359 were not always properly handled previously.
23360 Since we are changing the tree format anyway, also get rid of the
23361 junk obsolete Immediate_Errors flag.
23362 (Tree_Read): Change the way of reading Tree_Version_String - now we
23363 read the version string from the tree even if its length is not the
23364 same as the length of the version string computed from Gnatvsn.
23365 (Search_Directory_Present): New Boolean flag for the compiler.
23366 Define Tree_Version_String as a dynamic string.
23367 (Default_Stack_Size): new variable, used to handle switch -d.
23370 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
23371 only for main unit.
23372 Add pragma Ada_2005 (synonym for Ada_05)
23373 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23374 were not always properly handled previously.
23376 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
23377 explicit Ada_95 to Ada_2005.
23379 2006-02-13 Javier Miranda <miranda@adacore.com>
23380 Robert Dewar <dewar@adacore.com>
23381 Ed Schonberg <schonberg@adacore.com>
23383 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
23384 against errors in the source program: a private types for which the
23385 corresponding full type declaration is missing and pragma CPP_Virtual
23387 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
23388 (Is_Known_Null): New flag
23389 (Has_Pragma_Pure): New flag
23390 (No_Return): Present in all entities, set only for procedures
23391 (Is_Limited_Type): A type whose ancestor is an interface is limited if
23392 explicitly declared limited.
23393 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
23394 entities. Only used for component marked Is_Tag. If present it stores
23395 the Offset_To_Top function used to provide this value in tagged types
23396 whose ancestor has discriminants.
23398 * exp_ch2.adb: Update status of new Is_Known_Null flag
23400 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
23402 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
23403 the categorization sense if Is_Pure was set by pragma Pure_Function.
23405 2006-02-13 Quentin Ochem <ochem@adacore.com>
23406 Olivier Hainque <hainque@adacore.com>
23408 * bindusg.adb: Updated documentation for -d and -D switches.
23410 * raise.h (__gnat_set_globals): added new parameter for
23411 Default_Stack_Size.
23413 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
23414 (__gnat_handle_vms_condition): Adjust context before raise.
23415 (__gnat_install_handler): Restore the global vector setup for GCC
23416 versions before 3.4, as the frame based circtuitry is not available
23418 (__gnat_set_globals): added a parameter default_stack_size
23419 (__gl_default_stack_size): new variable.
23421 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23423 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
23424 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
23425 does not exist in the Ada RM.
23426 (Compatible_Int_Bounds): Determine whether two integer range bounds
23427 are of equal length and have the same start and end values.
23428 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
23429 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
23430 aggregate when it is part of an object declaration.
23431 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
23432 constrains discriminants of its parent, add explicitly the discriminant
23433 constraints of the ancestor by retrieving them from the
23434 stored_constraint of the parent.
23436 2006-02-13 Robert Dewar <dewar@adacore.com>
23438 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
23439 attribute Mechanism_Code is applied to renamed subprogram, modify
23440 prefix to point to base subprogram.
23441 Max/Min attributes now violate Restriction No_Implicit_Conditionals
23443 * sinfo.ads: Document that Mechanism_Code cannot be applied to
23444 renamed subprograms so that the front-end must replace the prefix
23447 2006-02-13 Javier Miranda <miranda@adacore.com>
23448 Gary Dismukes <dismukes@adacore.com>
23450 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
23451 availability of RE_Interface_Tag.
23452 (Build_Initialization_Call): Fix wrong access to the discriminant value.
23453 (Freeze_Record_Type): Do not generate the tables associated with
23454 timed and conditional dispatching calls through synchronized
23455 interfaces if compiling under No_Dispatching_Calls restriction.
23456 When compiling for Ada 2005, for a nonabstract
23457 type with a null extension, call Make_Controlling_Function_Wrappers
23458 and insert the wrapper function declarations and bodies (the latter
23459 being appended as freeze actions).
23460 (Predefined_Primitive_Bodies): Do not generate the bodies of the
23461 predefined primitives associated with timed and conditional
23462 dispatching calls through synchronized interfaces if we are
23463 compiling under No_Dispatching_Calls.
23464 (Build_Init_Procedure): Use RTE_Available to check if a run-time
23465 service is available before generating a call.
23466 (Make_Controlling_Function_Wrappers): New procedure.
23467 (Expand_N_Full_Type_Declaration): Create a class-wide master for
23468 access-to-limited-interfaces because they can be used to reference
23469 tasks that implement such limited interface.
23470 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
23471 procedure spec and body of the Offset_To_Top function that is generated
23472 when the parent of a type with discriminants has secondary dispatch
23474 (Init_Secondary_Tags): Handle the case in which the parent of the type
23475 containing secondary dispatch tables has discriminants to generate the
23476 correct arguments to call Set_Offset_To_Top.
23477 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
23479 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
23480 Add Wide_[Wide_]Expanded_Name.
23481 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
23482 the same functionality of Get_Prim_Op_Address but applied to predefined
23483 primitive operations because the pointers to the predefined primitives
23484 are now saved in a separate table.
23485 (Parent_Size): Modified to get access to the separate table of primitive
23486 operations or the parent type.
23487 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
23488 functionality of Set_Prim_Op_Address but applied to predefined primitive
23490 (Set_Signature): New subprogram used to store the signature of a DT.
23491 (Displace): If the Offset_To_Top value is not static then call the
23492 function generated by the expander to get such value; otherwise use
23493 the value stored in the table of interfaces.
23494 (Offset_To_Top): The type of the actual has been changed to Address to
23495 give the correct support to tagged types with discriminants. In this
23496 case this value is stored just immediately after the tag field.
23497 (Set_Offset_To_Top): Two new formals have been added to indicate if the
23498 offset_to_top value is static and hence pass this value to the run-time
23499 to store it in the table of interfaces, or else if this value is dynamic
23500 and then pass to the run-time the address of a function that is
23501 generated by the expander to provide this value for each object of the
23504 * rtsfind.ads (Default_Prin_Op_Count): Removed.
23505 (Default_Prim_Op_Count): New entity
23506 (Get_Predefined_Prim_Op_Address): New entity
23507 (Set_Predefined_Prim_Op_Address): New entity
23508 (RE_Set_Signature): New entity
23510 2006-02-13 Thomas Quinot <quinot@adacore.com>
23511 Ed Schonberg <schonberg@adacore.com>
23513 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
23514 Make_Adjust_Call done for a newly-allocated object.
23516 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
23517 in a subprogram are wrapped in a cleanup block, indicate that the
23518 subprogram contains an inner block with an exception handler.
23519 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
23520 Adjust call is for a newly-allocated object. In that case we must not
23521 assume that the finalization list chain pointers are correct (since they
23522 come from a bit-for-bit copy of the original object's pointers) so if
23523 the attach level would otherwise be zero (no change), we set it to 4
23524 instead to cause the pointers to be reset to null.
23526 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
23527 reset chain pointers to null.
23529 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23531 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
23532 string, and the context requires a loop for the assignment (e.g.
23533 because the left-hand side is packed), generate a unique name for the
23534 temporary that holds the string, to prevent spurious name clashes.
23536 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23537 Javier Miranda <miranda@adacore.com>
23538 Robert Dewar <dewar@adacore.com>
23539 Gary Dismukes <dismukes@adacore.com>
23541 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
23542 return unconstrained arrays.
23544 (Expand_Call): An indirect call through an access parameter of a
23545 protected operation is not a protected call.
23546 Add circuit to raise CE in Ada 2005 mode following call
23547 to Raise_Exception.
23548 (Register_DT_Entry): Do nothing if
23549 the run-time does not give support to abstract interfaces.
23550 (Freeze_Subprogram): In case of dispatching operations, do not generate
23551 code to register the operation in the dispatch table if the source
23552 is compiled with No_Dispatching_Calls.
23553 (Register_Predefined_DT_Entry): Generate code that calls the new
23554 run-time subprogram Set_Predefined_Prim_Op_Address instead of
23555 Set_Prim_Op_Address.
23557 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
23558 on array assignments if the right-hand side is a function call that has
23559 been inlined. Check is performed on the assignment in the block.
23560 (Process_Bounds): If bounds and range are overloaded, apply preference
23561 rule for root operations to disambiguate, and diagnose true ambiguity.
23562 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
23563 a tag-indeterminate right-hand side even when Expander_Active is True.
23564 Needed to ensure that dispatching calls to T'Input are allowed and
23565 get the tag of the target class-wide object.
23567 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
23568 an inherited primitive operation that already overrides several
23569 abstract interface primitives. For transitivity, the new entity must
23570 also override all the abstract interface primitives covered by the
23571 inherited overriden primitive.
23572 Emit warning if new entity differs from homograph in same scope only in
23573 that one has an access parameter and the other one has a parameter of
23574 a general access type with the same designated type, at the same
23575 position in the signature.
23576 (Make_Inequality_Operator): Use source locations of parameters and
23577 subtype marks from corresponding equality operator when creating the
23578 tree structure for the implicit declaration of "/=". This does not
23579 change anything in behaviour except that the decoration of the
23580 components of the subtree created for "/=" allows ASIS to get the
23581 string images of the corresponding identifiers.
23582 (Analyze_Return_Statement): Remove '!' in warning message.
23583 (Check_Statement_Sequence): Likewise.
23584 (Analyze_Subprogram_Body): For an access parameter whose designated type
23585 is an incomplete type imported through a limited_with clause, use the
23586 type of the corresponding formal in the body.
23587 (Check_Returns): Implicit return in No_Return procedure now raises
23588 Program_Error with a compile time warning, instead of beging illegal.
23589 (Has_Single_Return): Function returning unconstrained type cannot be
23590 inlined if expression in unique return statement is not an identifier.
23591 (Build_Body_To_Inline): It is possible to inline a function call that
23592 returns an unconstrained type if all return statements in the function
23593 return the same local variable. Subsidiary procedure Has_Single_Return
23594 verifies that the body conforms to this restriction.
23596 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
23597 same type, and one of them is of an anonymous access type, convert
23598 the other operand to it, so that this is a valid binary operation for
23600 (Resolve_Type_Conversion): Handle subtypes of protected types and
23601 task types when accessing to the corresponding record type.
23602 (Resolve_Allocator): Add '\' in 2-line warning message.
23603 Remove '!' in warning message.
23604 (Resolve_Call): Add '\' in 2-line warning message.
23605 (Valid_Conversion): Likewise.
23606 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
23607 resulting type may be an access type with an implicit dereference.
23608 Obtain the proper component from the designated type.
23609 (Make_Call_Into_Operator): Handle properly a call to predefined equality
23610 given by an expanded name with prefix Standard, when the operands are
23611 of an anonymous access type.
23612 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
23613 Explicit_Dereference and Resolve_Selected_Component, to verify that the
23614 prefix of the expression is not of an incomplete type. Allows full
23615 diagnoses of all semantic errors.
23616 (Resolve_Actuals): If the actual is an allocator whose directly
23617 designated type is a class-wide interface we build an anonymous
23618 access type to use it as the type of the allocator. Later, when
23619 the subprogram call is expanded, if the interface has a secondary
23620 dispatch table the expander will add a type conversion to force
23621 the displacement of the pointer.
23622 (Resolve_Call): If a function that returns an unconstrained type is
23623 marked Inlined_Always and inlined, the call will be inlined and does
23624 not require the creation of a transient scope.
23625 (Check_Direct_Boolean_Op): Removed
23626 (Resolve_Comparison_Op): Remove call to above
23627 (Resolve_Equality_Op): Remove call to above
23628 (Resolve_Logical_Op): Inline above, since this is only call.
23629 (Valid_Conversion): Handle properly conversions between arrays of
23630 convertible anonymous access types.
23633 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
23634 the literal in an unchecked conversion, because GCC 4.x needs a static
23635 value for a string bound.
23637 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23638 Hristian Kirtchev <kirtchev@adacore.com>
23640 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
23641 components of the corresponding record, take into account component
23642 definitions that are access definitions.
23643 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
23644 procedure is not considered a dispatching call and will be expanded
23647 2006-02-13 Javier Miranda <miranda@adacore.com>
23649 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
23650 controlling argument of the dispatching call is an abstract interface
23651 class-wide type then we use it directly.
23652 Check No_Dispatching_Calls restriction.
23653 (Default_Prim_Op_Position): Remove the code that looks for the last
23654 entity in the list of aliased subprograms. This code was wrong in
23656 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
23657 when the source is compiled with the No_Dispatching_Calls restriction.
23658 (Init_Predefined_Interface_Primitives): No need to inherit primitives
23659 if we are compiling with restriction No_Dispatching_Calls.
23660 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
23661 subprograms if we are compiling under No_Dispatching_Calls restriction.
23662 (Make_DT): Generate a dispatch table with a single dummy entry if
23663 we are compiling with the No_Dispatching_Calls restriction. In
23664 addition, in this case we don't generate code that calls to the
23665 following run-time subprograms: Set_Type_Kind, Inherit_DT.
23666 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
23667 of this subprogram if compiling with the No_Dispatching_Calls
23669 (Expand_Type_Conversion): Instead of using the actual parameter,
23670 the argument passed as parameter to the conversion function was
23671 erroneously referenced by the expander.
23672 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
23673 Set_Predefined_Primitive_Op_Address and Set_Signature.
23674 (Expand_Dispatching_Call): Generate call to
23675 Get_Predefined_Prim_Op_Address for predefined primitives.
23676 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
23677 predefined primitives.
23678 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
23679 primitives we reserve one dummy entry to ensure that the tag does not
23680 point to some memory that is associated with some other object. In
23681 addition, remove all the old code that generated the assignments
23682 associated with the signature of the dispatch table and replace them
23683 by a call to the new subprogram Set_Signature.
23684 (Set_All_DT_Position): Change the algorithm because now we have a
23685 separate dispatch table associated with predefined primitive operations.
23686 (Expand_Interface_Conversion): In case of non-static offset_to_top
23687 add explicit dereference to get access to the object after the call
23688 to displace the pointer to the object.
23689 (Expand_Interface_Thunk): Modify the generation of the actual used
23690 in the calls to the run-time function Offset_To_Top to fulfil its
23692 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
23694 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23696 * exp_dist.adb (Copy_Specification): For access parameters, copy
23697 Null_Exclusion flag, which will have been set for stream subprograms
23700 2006-02-13 Pascal Obry <obry@adacore.com>
23702 * expect.c (__gnat_expect_portable_execvp): New implementation. The
23703 previous implementation was using the C runtime spawnve routine but
23704 the corresponding wait was using directly the Win32 API. This was
23705 causing some times a lock when waiting for an event using
23706 WaitForSingleObject in __gnat_waitpid. This new implementation uses
23707 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
23708 API fixes this problem.
23710 2006-02-13 Robert Dewar <dewar@adacore.com>
23712 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
23715 2006-02-13 Thomas Quinot <quinot@adacore.com>
23717 * exp_pakd.ads: Fix typos in comments.
23719 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
23720 array reference that is an explicit dereference, mark the converted
23721 (packed) array reference as analyzed to prevent a forthcoming
23722 reanalysis from resetting its type to the original (non-packed) array
23725 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23726 Javier Miranda <miranda@adacore.com>
23727 Eric Botcazou <ebotcazou@adacore.com>
23729 * exp_util.ads, exp_util.adb (Find_Prim_Op,
23730 Is_Predefined_Primitive_Operation): When
23731 searching for the predefined equality operator, verify that operands
23732 have the same type.
23733 (Is_Predefined_Dispatching_Operation): Remove the code that looks
23734 for the last entity in the list of aliased subprograms. This code
23735 was wrong in case of renamings.
23736 (Set_Renamed_Subprogram): New procedure
23737 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
23738 Exp_Type constant computed when entering this subprogram.
23739 (Known_Null): New function
23740 (OK_To_Do_Constant_Replacement): New function
23741 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
23742 (Side_Effect_Free): An attribute reference 'Input is not free of
23743 side effect, unlike other attributes that are functions. (from code
23745 (Remove_Side_Effects): Expressions that involve packed arrays or records
23746 are copied at the point of reference, and therefore must be marked as
23747 renamings of objects.
23748 (Is_Predefined_Dispatching_Operation): Return false if the operation is
23749 not a dispatching operation.
23752 (Remove_Side_Effects): Lift enclosing type conversion nodes for
23753 elementary types in all cases.
23755 2006-02-13 Javier Miranda <miranda@adacore.com>
23757 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
23758 task types when accessing to the corresponding record type.
23759 Remove '!' in warning message.
23761 2006-02-13 Olivier Hainque <hainque@adacore.com>
23763 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
23764 to avoid useless and space inefficient overalignments on targets where
23765 Max_Alignment is larger than 16.
23767 2006-02-13 Pascal Obry <obry@adacore.com>
23769 * g-catiio.adb (Sec_Number): New type used to compute the number of
23770 seconds since 1-1-1970.
23771 (Image) [Natural]: The parameter was an Integer, as we can't deal with
23772 negative numbers (years, months...) it is better to have a Natural here.
23774 (Image) [Number]: Change parameter from Long_Integer to Number.
23775 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
23776 overflow for dates past year 2038.
23778 2006-02-13 Matthew Heaney <heaney@adacore.com>
23780 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
23783 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23785 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
23787 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
23788 finalization can occur normally.
23790 2006-02-13 Vincent Celier <celier@adacore.com>
23792 * gnatcmd.adb (Rules_Switches): New table
23793 (Add_To_Rules_Switches): New procedure
23794 (GNATCmd): For command CHECK, put all options following "-rules" in the
23795 Rules_Switches table. Append these -rules switches after the -cargs
23798 2006-02-13 Robert Dewar <dewar@adacore.com>
23800 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
23801 These two cases were generating incorrect output, and if this unit
23802 was built with checks on, generated a discriminant mismatch constraint
23805 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23806 Robert Dewar <dewar@adacore.com>
23808 * lib-xref.adb (Get_Type_Reference): For a private type whose full
23809 view is an array type, indicate the component type as well, for
23810 navigation purposes.
23811 (Generate_Reference): Don't consider array ref on LHS to be a case
23812 of violating pragma Unreferenced.
23813 Do not give Ada 2005 warning except on real reference.
23815 2006-02-13 Vincent Celier <celier@adacore.com>
23817 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
23818 main source, add switch -mdebug-main=_ada_ so that the executable can
23819 be debugged by the standard VMS debugger.
23820 (Gnatmake): Set No_Main_Subprogram to True when there is no main
23821 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
23822 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
23823 of the last source, as the binding and linking phases are never
23825 Set all executable obsolete when rebuilding a library.
23827 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
23830 2006-02-13 Javier Miranda <miranda@adacore.com>
23833 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
23834 code to improve the error message reported when the program has
23835 declarations of abstract interface types and it is not compiled with
23836 the -gnat05 switch.
23837 (P_Access_Definition): Reorganize the code to improve the error
23838 message reported when the new Ada 2005 syntax for anonymous
23839 access types is used and the program is not compiled with the
23842 2006-02-13 Robert Dewar <dewar@adacore.com>
23844 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
23845 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
23848 2006-02-13 Javier Miranda <miranda@adacore.com>
23850 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
23851 against source containing syntax errors.
23853 2006-02-13 Vincent Celier <celier@adacore.com>
23855 * prj.adb (Reset): Initialize the first element of table Namings with
23856 the standard naming data.
23858 2006-02-13 Vincent Celier <celier@adacore.com>
23860 * prj.ads (Error_Warning): New enumeration type
23862 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
23863 unknown, use the location of the project to report the error.
23864 (When_No_Sources): New global variable
23865 (Report_No_Ada_Sources): New procedure
23866 (Check): New parameter When_No_Sources. Set value of global variable
23868 (Find_Sources): Call Report_No_Ada_Sources when appropriate
23869 (Get_Sources_From_File): Ditto
23870 (Warn_If_Not_Sources): Better warning messages indicating the unit name
23873 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
23874 Call Prj.Proc.Process with parameter When_No_Sources.
23876 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
23877 Call Recursive_Check with parameter When_No_Sources.
23878 (Recursive_Check): New parameter When_No_Sources. Call itself and
23879 Prj.Nmsc.Check with parameter When_No_Sources.
23880 (Process): New parameter When_No_Sources. Call Check with parameter
23882 (Copy_Package_Declarations): New procedure to copy renamed parameters
23883 and setting the location of the declared attributes to the location
23884 of the renamed package.
23885 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
23888 2006-02-13 Vincent Celier <celier@adacore.com>
23890 * prj-makr.adb (Make): Preserve the comments from the original project
23892 When removing nodes (attributes Source_Dirs, Source_Files,
23893 Source_List_File and package Naming), save the comments and attach the
23894 saved comments to the newly created nodes.
23895 Do not add a with clause for the naming package if one already exists.
23897 2006-02-13 Javier Miranda <miranda@adacore.com>
23898 Gary Dismukes <dismukes@adacore.com>
23899 Robert Dewar <dewar@adacore.com>
23901 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
23903 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
23904 aliased entities to look for the overriden abstract interface
23906 (Is_Interface_Subprogram): Complete documentation.
23907 (Check_Dispatching_Operation): Do not generate code to register the
23908 operation in the dispatch table if the source is compiled with
23909 restriction No_Dispatching_Calls.
23910 (Override_Dispatching_Operation): Check for illegal attempt to override
23911 No_Return procedure with procedure that is not No_Return
23912 (Check_Dispatching_Call): Suppress the check for an abstract operation
23913 when the original node of an actual is a tag-indeterminate attribute
23914 call, since the attribute, which must be 'Input, can never be abstract.
23915 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
23916 call to the Input attribute (even when rewritten).
23917 (Propagate_Tag): Augment comment to indicate the possibility of a call
23918 to an Input attribute.
23920 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
23921 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
23923 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
23924 No_Wide_Characters is no longer partition-wide
23925 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
23928 2006-02-13 Douglas Rupp <rupp@adacore.com>
23930 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
23932 2006-02-13 Javier Miranda <miranda@adacore.com>
23934 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
23935 handles default-initialized components to keep separate the management
23936 of this feature but also avoid the unrequired resolution and
23937 expansion of components that do not have partially initialized
23939 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
23940 (Check_Bounds): Likewise.
23941 (Check_Length): Likewise.
23943 2006-02-13 Javier Miranda <miranda@adacore.com>
23944 Ed Schonberg <schonberg@adacore.com>
23946 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
23947 abstract interface type call analyze_and_resolve to expand the type
23948 conversion into the corresponding displacement of the
23949 reference to the base of the object.
23950 (Eval_Attribute, case Width): For systems where IEEE extended precision
23951 is supported, the maximum exponent occupies 4 decimal digits.
23952 (Accessibility_Message): Add '\' in 2-line warning message.
23953 (Resolve_Attribute): Likewise.
23954 (case Attribute_Access): Significantly revise checks
23955 for illegal access-to-subprogram Access attributes to properly enforce
23956 the rules of 3.10.2(32/2).
23957 Diagnose use of current instance with an illegal attribute.
23959 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
23961 (Enclosing_Generic_Unit): New function to return a node's innermost
23962 enclosing generic declaration node.
23963 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
23964 (Type_Access_Level): The accessibility level of anonymous acccess types
23965 associated with discriminants is that of the current instance of the
23966 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
23967 (Compile_Time_Constraint_Error): Handle case of conditional expression.
23968 (Kill_Current_Values_For_Entity): New function
23969 (Enter_Name): Change formal type to Entity_Id
23971 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23972 Ed Schonberg <schonberg@adacore.com>
23973 Gary Dismukes <dismukes@adacore.com>
23975 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
23976 Analyze_Compilation_Unit.
23977 Detect and warn on redundant with clauses detected in a package spec
23978 and/or body when -gnatwr is used.
23979 (Analyze_Context): Analyze config pragmas before other items
23980 (Install_Context_Items): Don't analyze config pragmas here
23981 (Install_Limited_Withed_Unit): Set limited entity of package in
23982 with_clause so that cross-reference information or warning messages on
23983 unused packages can be properly generated
23984 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
23985 has Error_Posted set. Prevent infinite loops in illegal programs.
23986 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
23987 to the point of the error test requiring the current unit to be private.
23988 This ensures that private with clauses are not exempted from the basic
23989 checking for being a descendant of the same library unit parent as a
23990 withed private descendant unit.
23991 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
23992 handle private with clauses properly, as well as to account for cases
23993 where the withed unit is a public descendant of a private ancestor
23994 (in which case the current unit must be a descendant of the private
23995 ancestor's parent). The spec comments were updated accordingly. Also,
23996 the old error message in this subprogram was replaced with error
23997 messages that mirror the errors tested and reported by
23998 Check_Private_Child_Unit.
23999 Parameter and variable names improved for readability.
24000 (Install_Limited_Context_Clauses): Remove test for a withed unit being
24001 private as the precondition for calling
24002 Check_Private_Limited_Withed_Unit since that subprogram has been
24003 revised to test public units as well as private units.
24005 2006-02-13 Thomas Quinot <quinot@adacore.com>
24006 Robert Dewar <dewar@adacore.com>
24007 Ed Schonberg <schonberg@adacore.com>
24008 Javier Miranda <miranda@adacore.com>
24010 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
24011 that Scope_Stack.First = 1.
24012 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24013 were not always properly handled previously.
24014 (Formal_Entity): Complete rewrite, to handle properly some complex case
24015 with multiple levels of parametrization by formal packages.
24016 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
24017 to the corresponding derived type declaration for proper semantics.
24019 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
24020 (Check_Component): Enforce restriction on components of
24021 unchecked_unions: a component in a variant cannot contain tasks or
24023 (Unchecked_Union): Allow nested variants and multiple discriminants, to
24025 Add pragma Ada_2005 (synonym for Ada_05)
24026 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24027 were not always properly handled previously.
24028 Document that pragma Propagate_Exceptions has no effect
24029 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
24030 (Set_Convention_From_Pragma): Check that if a convention is
24031 specified for a dispatching operation, then it must be
24032 consistent with the existing convention for the operation.
24033 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
24034 longer required to specify an vtable-ptr component in the record. For
24035 compatibility reasons we leave the support for the previous definition.
24036 (Analyze_Pragma, case No_Return): Allow multiple arguments
24038 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
24039 non-overrideen inherited operation with a controlling result as
24040 illegal only its implicit declaration comes from the derived type
24041 declaration of its result's type.
24042 (Check_Possible_Deferred_Completion): Relocate the object definition
24043 node of the subtype indication of a deferred constant completion rather
24044 than directly analyzing it. The analysis of the generated subtype will
24045 correctly decorate the GNAT tree.
24046 (Record_Type_Declaration): Check whether this is a declaration for a
24047 limited derived record before analyzing components.
24048 (Analyze_Component_Declaration): Diagnose record types not explicitly
24049 declared limited when a component has a limited type.
24050 (Build_Derived_Record_Type): Code reorganization to check if some of
24051 the inherited subprograms of a tagged type cover interface primitives.
24052 This check was missing in case of a full-type associated with a private
24054 (Constant_Redeclaration): Check that the subtypes of the partial and the
24055 full view of a constrained deferred constant statically match.
24056 (Mentions_T): A reference to the current type in an anonymous access
24057 component declaration must be an entity name.
24058 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
24059 class_wide type to refer to full type, not to the incomplete one.
24060 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
24061 available. Required to give support to the certified run-time.
24062 (Analyze_Component_Declaration): In case of anonymous access components
24063 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
24064 (Process_Discriminants): For an access discriminant, use the
24065 discriminant specification as the associated_node_for_itype, to
24066 simplify accessibility checks.
24068 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24069 Javier Miranda <miranda@adacore.com>
24071 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
24072 abstract interpretations on an operator, remove interpretations that
24073 yield Address or a type derived from it, if one of the operands is an
24075 (Try_Object_Operation.Try_Primitive_Operation,
24076 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
24077 location when creating the new reference to a primitive or class-wide
24078 operation as a part of rewriting a subprogram call.
24079 (Try_Primitive_Operations): If context requires a function, collect all
24080 interpretations after the first match, because there may be primitive
24081 operations of the same type with the same profile and different return
24082 types. From code reading.
24083 (Try_Primitive_Operation): Use the node kind to choose the proper
24084 operation when a function and a procedure have the same parameter
24086 (Complete_Object_Operation): If formal is an access parameter and prefix
24087 is an object, rewrite as an Access reference, to match signature of
24088 primitive operation.
24089 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
24090 by an expanded name with prefix Standard, when the operands are of an
24091 anonymous access type.
24092 (Remove_Abstract_Operations): If the operation is abstract because it is
24093 inherited by a user-defined type derived from Address, remove it as
24094 well from the set of candidate interpretations of an overloaded node.
24095 (Analyze_Membership_Op): Membership test not applicable to cpp-class
24098 2006-02-13 Bob Duff <duff@adacore.com>
24100 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
24101 redundant use clauses.
24102 In particular, if the scope of two use clauses overlaps, but one is not
24103 entirely included in the other, we should not warn. This can happen
24104 with nested packages.
24105 (Analyze_Subprogram_Renaming): Protect the compiler against previously
24106 reported errors. The bug was reported when the compiler was built
24107 with assertions enabled.
24108 (Find_Type): If the node is a 'Class reference and the prefix is a
24109 synchronized type without a corresponding record, return the type
24112 2006-02-13 Javier Miranda <miranda@adacore.com>
24114 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
24115 if this is the full-declaration associated with a private declaration
24116 that implement interfaces, then the private type declaration must be
24118 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
24119 as aliased. The use of the 'access attribute is not available for such
24120 object (for this purpose the object should be explicitly marked as
24121 aliased, but being an anonymous type this is not possible).
24123 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24124 Robert Dewar <dewar@adacore.com>
24126 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
24127 compilation unit is an elaboration scope.
24128 (Add_Task_Proc): Add '\' in 2-line warning message.
24129 (Activate_All_Desirable): Deal with case of unit with'ed by parent
24131 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24132 Javier Miranda <miranda@adacore.com>
24134 * sem_type.adb (Write_Overloads): Improve display of candidate
24136 (Add_One_Interp): Do not add to the list of interpretations aliased
24137 entities corresponding with an abstract interface type that is an
24138 immediate ancestor of a tagged type; otherwise we have a dummy
24139 conflict between this entity and the aliased entity.
24140 (Disambiguate): The predefined equality on universal_access is not
24141 usable if there is a user-defined equality with the proper signature,
24142 declared in the same declarative part as the designated type.
24143 (Find_Unique_Type): The universal_access equality operator defined under
24144 AI-230 does not cover pool specific access types.
24145 (Covers): If one of the types is a generic actual subtype, check whether
24146 it matches the partial view of the other type.
24148 2006-02-13 Thomas Quinot <quinot@adacore.com>
24150 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
24151 line. This is necessary to allow In_Extended_Main_Unit to provide
24152 correct results for itypes while writing out expanded source.
24153 (Close_File): No need to update the source_index_table here since it's
24154 now done for each line.
24156 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24157 Robert Dewar <dewar@adacore.com>
24159 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
24160 preserve the source unit where the itype is declared, and prevent a
24162 (Note_Implicit_Run_Time_Call): New procedure
24163 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
24166 * sprint.ads: Document use of $ for implicit run time routine call
24168 2006-02-13 Quentin Ochem <ochem@adacore.com>
24170 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
24173 2006-02-13 Bob Duff <duff@adacore.com>
24175 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
24176 Scan_Unsigned, so we do not scan leading blanks and sign twice.
24177 Integer'Value("- 5") and Integer'Value("-+5") now correctly
24178 raise Constraint_Error.
24180 * s-vallli.adb (Scan_Long_Long_Integer): Call
24181 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
24182 do not scan leading blanks and sign twice.
24183 Integer'Value("- 5") and Integer'Value("-+5") now correctly
24184 raise Constraint_Error.
24186 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
24187 Scan_Long_Long_Unsigned): Split out most of the processing from
24188 Scan_Long_Long_Unsigned out into
24189 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
24190 This prevents scanning leading blanks and sign twice.
24191 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
24194 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
24195 out most of the processing from Scan_Unsigned out into
24196 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
24197 This prevents scanning leading blanks and sign twice.
24199 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
24200 use with Modular'Value attribute.
24201 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
24204 2006-02-13 Robert Dewar <dewar@adacore.com>
24206 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
24208 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
24210 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
24211 (PPC VxWorks): Likewise.
24212 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
24213 (forced_callee): Make non-inlinable and non-pure.
24214 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
24216 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24217 Ben Brosgol <brosgol@adacore.com>
24218 Robert Dewar <dewar@adacore.com>
24220 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
24222 Document that gnatbind -M option is for cross environments only.
24223 Added description of using gnatmem to trace gnat rtl allocs and deallocs
24224 Add note on use of $ to label implicit run time calls
24225 Add documentation for -gnatyI (check mode IN)
24226 Updated chapter on compatibility with HP Ada
24227 VMS-oriented edits.
24228 Ran spell and corrected errors
24229 Add documentation for gnatbind -d and rework documentation of -D
24231 Add subprogram/data elimination section.
24232 Minor editing of annex A.
24233 Add section for gnatcheck.
24234 Add documentation for restriction No_Dispatching_Calls
24235 Add documentation for pragma Ada_2005
24236 Remove mention of obsolete pragma Propagate_Exceptions
24237 Document that pragma Unreferenced can appear after DO in ACCEPT
24238 Clarify Pure_Function for library level units
24239 Mention Max/Min in connection with No_Implicit_Conditionals
24240 No_Wide_Characters restriction is no longer partition-wide
24241 Add a nice example for Universal_Literal_String attribute
24242 Document that pragma No_Return can take multiple arguments
24244 * ug_words: Added entry for gnatcheck
24246 * g-ctrl_c.ads (Install_Handler): Enhance comments
24248 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
24250 * g-trasym.ads: Add documentation on how to do off line symbolic
24251 traceback computation.
24253 * s-fatgen.adb: Add comments for Unaligned_Valid
24255 * stand.ads: Fix typo in comment
24257 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24259 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
24261 2006-02-06 Roger Sayle <roger@eyesopen.com>
24263 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
24265 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24268 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
24269 implementation that calls __main.
24271 2006-01-25 Peter O'Gorman <peter@pogma.com>
24274 * Makefile.in (GCC_LINK): Remove quotes.
24275 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
24278 (powerpc-darwin): Pass -shared-libgcc when building shared library.
24280 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24283 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
24285 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24287 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
24289 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24291 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
24294 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24296 * Make-lang.in: Update dependencies
24298 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24300 * Make-lang.in: Add rule for ada/exp_sel.o
24302 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24304 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
24306 2005-12-09 Arnaud Charlet <charlet@adacore.com>
24308 * gnatvsn.ads (Library_Version): Bump to version 4.2
24309 (ASIS_Version_Number): Bumped.
24311 2005-12-09 Doug Rupp <rupp@adacore.com>
24313 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
24314 Ada bind file prefix on VMS from b$ to b__.
24315 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
24318 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
24319 Targparm.OpenVMS_On_Target.
24320 (Object_Suffix): Initialize with target object suffix.
24321 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
24323 * butil.adb: Change some Hostparm.OpenVMS checks to
24324 Targparm.OpenVMS_On_Target.
24326 * clean.adb: Change some Hostparm.OpenVMS checks to
24327 Targparm.OpenVMS_On_Target.
24328 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
24329 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
24330 Ada bind file prefix on VMS from b$ to b__.
24332 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
24333 --GCC so that Get_Target_Parameters can find system.ads.
24334 (Gnatlink): Call Get_Target_Parameters in mainline.
24335 Initialize standard packages for Targparm.
24336 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24337 (Process_Args): Also Check for object files with target object
24339 (Make_Binder_File_Names): Create with target object extension.
24340 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
24343 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
24344 Targparm.OpenVMS_On_Target.
24345 ({declaration},Build_Library,Check_Library): Change Ada bind file
24346 prefix on VMS from b$ to b__.
24348 * osint-b.adb: Change some Hostparm.OpenVMS checks to
24349 Targparm.OpenVMS_On_Target.
24350 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
24353 * targext.c: New file.
24355 * Makefile.in: add support for vxworks653 builds
24356 (../../vxaddr2line): gnatlink with targext.o.
24357 (TOOLS_LIBS): Move targext.o to precede libgnat.
24358 (init.o, initialize.o): Minor clean up in dependencies.
24359 (GNATLINK_OBJS): Add targparm.o, snames.o
24360 Add rules fo building targext.o and linking it explicitly with all
24362 Also add targext.o to gnatlib.
24364 * Make-lang.in: Add rules for building targext.o and linking it in
24365 with gnat1 and gnatbind.
24366 Add entry for exp_sel.o.
24368 * osint.adb Change some Hostparm.OpenVMS checks to
24369 Targparm.OpenVMS_On_Target.
24370 (Object_File_Name): Use target object suffix.
24372 * osint.ads (Object_Suffix): Remove, no longer used.
24373 (Target_Object_Suffix): Initialize with target object suffix.
24375 * rident.ads: Add special exception to license.
24377 * targparm.adb (Get_Target_Parameters): Set the value of
24378 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
24380 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
24382 * targparm.ads: Add special exception to license.
24384 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
24386 (Copy_File): Make sure from file is closed if error on to file
24387 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
24389 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
24390 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
24392 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
24393 target object suffix.
24395 2005-12-09 Jose Ruiz <ruiz@adacore.com>
24396 Quentin Ochem <ochem@adacore.com>
24397 Florian Villoing <villoing@adacore.com>
24399 * a-taster.ads, a-taster.adb: New files.
24401 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
24402 link to the version that does nothing. This way the task termination
24403 routine is not executed twice for the environment task when finishing
24404 because of an unhandled exception.
24406 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
24407 handler because of an unhandled exception.
24409 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
24410 System.Tasking.Utilities instead of that in System.Tasking.Stages.
24412 * s-finimp.adb (initialization code): Modify the soft link for the
24413 finalization of the global list instead of Adafinal.
24415 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
24416 non-tasking version of the soft link for task termination. We do
24417 nothing since if we are using the non-tasking version it
24418 means that the task termination functionality is not used.
24419 (Null_Finalize_Global_List): Add this null version for the procedure
24420 in charge of finalizing the global list for controlled objects.
24421 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
24422 instead for handling run-time termination in a more flexible way.
24423 (Adafinal_NT): This new procedure will take care of finalizing the
24424 global list for controlled objects if needed, but no tasking
24427 * s-tarest.adb (Task_Lock): Do not try to lock again the
24428 Global_Task_Lock if we already own it. Otherwise, we get blocked in
24429 some run-time operations.
24430 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
24431 until all nested locks have been released.
24432 (Task_Wrapper): Call the fall-back task termination handler. It
24433 applies to all tasks but the environment task.
24434 (Finalize_Global_Tasks): Add the call for the task termination
24435 procedure for the environment task.
24436 (Task_Wrapper): suppress warnings around declaration of
24437 Secondary_Stack_Address.
24439 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
24440 moved to the Common_ATCB record.
24441 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
24442 Common_ATCB record.
24443 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
24444 Common_ATCB record.
24446 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
24447 Fall_Back_Handler, and Specific_Handler.
24449 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
24450 defined in Ada.Task_Termination, to avoid circular dependencies.
24451 (Termination_Handler): Redefine this type here, alredy defined in
24452 Ada.Task_Termination, for avoiding circular dependencies.
24453 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
24454 for storing task termination handlers. In addition,
24455 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
24456 Common_ATCB because it is used by both the regular and the restricted
24458 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
24459 Common_ATCB because it is used by both the regular and the restricted
24461 (Common_ATCB): Added a dynamic task analyzer field.
24463 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
24464 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
24465 (Task_Wrapper): Call the task termination handler. It applies to all
24466 tasks but the environment task.
24467 (Finalize_Global_Tasks): Call the task termination procedure for the
24468 environment task. The call to Finalize_Global_List is now performed
24469 using the soft links mechanism.
24470 (Task_Wrapper): added dynamic stack analysis.
24472 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
24473 potentially blocking operations has been moved from
24474 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
24475 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
24476 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
24477 this run-time check.
24479 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
24480 of task termination procedure.
24481 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
24482 link for the task termination procedure.
24484 * bindusg.adb: (Bindusg): Added documentation for -u option.
24486 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
24487 (Get_Main_C): Add handling of dynamic stack analysis.
24488 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
24490 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
24491 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
24492 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
24494 * opt.ads: Added flags used by dynamic stack measurement.
24495 (Max_Line_Length): Remove (not used anymore)
24497 * s-io.ads, s-io.adb (Standard_Error): new subprogram
24498 (Standart_Output): new subprogram
24499 (Set_Output): new subprogram
24500 (Put): now uses the value of Current_Out to know if the output has to be
24501 send to stderr or stdout.
24503 * s-stausa.ads: Complete implementation.
24505 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
24507 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
24508 list of Ada 05 files.
24509 (GNAT Library Units): Add AltiVec files.
24511 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
24512 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
24513 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
24515 2005-12-09 Nicolas Setton <setton@adacore.com>
24517 * adaint.c (__gnat_locate_regular_file): Return immediately if
24518 file_name is empty.
24520 2005-12-09 Javier Miranda <miranda@adacore.com>
24521 Hristian Kirtchev <kirtchev@adacore.com>
24523 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
24524 to the specification because the frontend generates code that uses this
24526 (Set_Interface_Table): Add missing assertion.
24527 Update documentation describing the run-time structure.
24528 (Displace): New subprogram that displaces the pointer to the object
24529 to reference one of its secondary dispatch tables.
24530 (IW_Membership): Modified to use the new table of interfaces.
24531 (Inherit_TSD): Modified to use the new table of interfaces.
24532 (Register_Interface_Tag): Use the additional formal to fill the
24533 contents of the new table of interfaces.
24534 (Set_Interface_Table): New subprogram that stores in the TSD the
24535 pointer to the table of interfaces.
24536 (Set_Offset_To_Top): Use the additional formal to save copy of
24537 the offset value in the table of interfaces.
24538 Update structure of GNAT Primary and Secondary dispatch table diagram.
24539 Add comment section on GNAT dispatch table prologue.
24540 (Offset_To_Signature): Update the constant value of the Signature field.
24541 (Dispatch_Table): Update comment on hidden fields in the prologue.
24542 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
24543 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
24544 the type of formal parameter T to Tag, introduce additional assertions.
24545 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
24547 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
24549 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
24550 in all the calls to Expand_Interface_Thunk. Instead of referencing the
24551 record component containing the tag of the secondary dispatch table we
24552 have to use the Offset_To_Top run-time function to get this information;
24553 otherwise if the pointer to the base of the object has been displace
24554 we get a wrong value if we use the 'position attribute.
24556 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
24557 all the calls to Expand_Interface_Thunk.
24558 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
24559 interfaces; hence the call to Set_Interface_Table was clearly wrong.
24560 (Collect_All_Interfaces): Modify the internal subprogram Collect to
24561 ensure that the interfaces implemented by the ancestors are placed
24562 at the header of the generated list.
24563 (Expand_Interface_Conversion): Handle the case in which the displacement
24564 associated with the interface conversion is not statically known. In
24565 this case we generate a call to the new run-time subprogram Displace.
24566 (Make_DT): Generate and fill the new table of interfaces.
24567 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
24568 Get_Tagged_Kind and Set_Tagged_Kind.
24569 (Tagged_Kind): New function that determines the tagged kind of a type
24570 with respect to limitedness and concurrency and returns a reference to
24572 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
24573 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
24574 primary dispatch table for a type.
24575 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
24576 secondary dispatch table respectively of a tagged type.
24578 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
24579 (Expand_Interface_Conversion): New subprogram to indicate if the
24580 displacement of the type conversion is statically known.
24581 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
24583 * rtsfind.ads (RE_Offset_To_Top): New entity
24584 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
24585 accessible to users.
24586 (Re_Displace): New entity
24587 (RE_Interface_Data): New entity
24588 (RE_Set_Interface_Data): New_Entity
24589 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
24590 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
24591 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
24592 RE_TK_Tagged, RE_TK_Task.
24594 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
24595 Init_Secondary_Tags_Internal to allow its use with interface types and
24596 also to generate the code for the new additional actual required
24597 by Set_Offset_To_Top.
24598 (Build_Init_Statements): In case of components associated with abstract
24599 interface types there is no need to generate a call to its IP.
24600 (Freeze_Record_Type): Generate Select Specific Data tables only for
24602 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
24603 the bodies and specifications of the predefined primitive operations
24604 dealing with dispatching selects and abort, 'Callable, 'Terminated only
24605 for concurrent types.
24607 * exp_sel.ads, exp_sel.adb: New files.
24609 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
24610 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
24611 properly protected objects and attach handler in the case of the
24612 restricted profile.
24613 Move embeded package Select_Expansion_Utilities into a separate external
24615 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
24616 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
24617 (Build_K, Build_S_Assignment): New subprograms, part of the select
24618 expansion utilities.
24619 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
24620 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
24621 where the trigger is a dispatching procedure of a limited tagged type.
24623 2005-12-09 Olivier Hainque <hainque@adacore.com>
24625 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
24626 pointer initialization values. Make a SAVE_EXPR instead. Add comments
24627 about the use and expansion of SAVE_EXPRs in the various possible
24628 renaming handling cases.
24629 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
24630 abusing DECL_FCONTEXT.
24632 2005-12-09 Matthew Heaney <heaney@adacore.com>
24634 * a-convec.adb (Merge): Added assertions to check whether vector params
24637 * a-coinve.adb (Merge): Added assertions to check whether vector params
24640 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
24642 (Cursor'Read): raises PE
24644 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
24645 to its default value.
24647 * a-cihama.adb: Manually check whether cursor's key and elem are
24650 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
24651 (Merge): Assert that target and source lists are in order
24652 (Swap): Declare non-const temporaries, to pass to Splice
24654 * a-cdlili.ads: (Splice): Changed param name and param mode
24656 * a-cdlili.adb: (Splice): Changed param name and param mode
24657 (Merge): Assert that target and source lists are in order
24658 (Swap): Declare non-const temporaries, to pass to Splice
24660 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
24661 (Write): declare Stream param as not null
24663 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
24664 an exception message.
24666 2005-12-09 Thomas Quinot <quinot@adacore.com>
24667 Robert Dewar <dewar@adacore.com>
24669 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
24670 which is the absolute maximum length we can support.
24672 * frontend.adb: For the processing of configuration pragma files,
24673 remove references to Opt.Max_Line_Length, which is not checked anymore.
24675 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
24678 * scn.adb, scng.adb:
24679 Always check line length against the absolute supported maximum,
24680 Hostparm.Max_Line_Length.
24682 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
24683 value for the maximum line length is Max_Line_Length (not
24684 Column_Number'Last).
24685 Minor error msg update
24686 (Set_Style_Check_Options): New interface returning error msg
24687 Minor code reorganization (processing for 'M' was out of alpha order)
24689 * switch-c.adb: New interface for Set_Style_Check_Options
24691 * stylesw.ads (Set_Style_Check_Options): New interface returning error
24694 2005-12-09 Javier Miranda <miranda@adacore.com>
24696 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
24697 with IP subprogram were only supported if there were limited types.
24699 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
24700 records with IP subprogram were only supported if there were limited
24703 2005-12-09 Olivier Hainque <hainque@adacore.com>
24704 Eric Botcazou <ebotcazou@adacore.com>
24706 * trans.c (tree_transform, emit_check): Adjust calls to
24707 build_call_raise, passing the now expected GNAT_NODE argument.
24709 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
24710 source line information than what the current global locus indicates
24713 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
24714 field has overflowed.
24715 (build_call_raise): Add a GNAT_NODE argument to convey better source
24716 line information than what the current global locus indicates when
24718 (build_component_ref): Adjust call to build_call_raise.
24720 2005-12-09 Pascal Obry <obry@adacore.com>
24722 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
24723 the iterator is quitting iteration on parent directory.
24725 2005-12-09 Javier Miranda <miranda@adacore.com>
24727 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
24728 and the assignment to a class-wide object, before the assignment we
24729 generate a run-time check to ensure that the tag of the Target is
24730 covered by the tag of the source.
24732 2005-12-09 Robert Dewar <dewar@adacore.com>
24734 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
24735 parameter in call to Image_Wide_Character.
24737 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
24738 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
24739 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
24740 annoying FFFE/FFFF inconsistency.
24742 2005-12-09 Robert Dewar <dewar@adacore.com>
24743 Javier Miranda <miranda@adacore.com>
24744 Ed Schonberg <schonberg@adacore.com>
24746 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
24747 of type conversion.
24748 (Find_Interface): New subprogram that given a tagged type and one of its
24749 component associated with the secondary table of an abstract interface
24750 type, return the entity associated with such abstract interface type.
24751 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
24752 base type to create anonymous subtype, because entity may be a locally
24753 declared subtype or generic actual.
24754 (Find_Interface): New subprogram that given a tagged type and one of its
24755 component associated with the secondary table of an abstract interface
24756 type, return the entity associated with such abstract interface type.
24758 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
24759 conversion cannot be handled at compile time. In this case we pass this
24760 information to the expander to generate the appropriate code.
24762 2005-12-09 Robert Dewar <dewar@adacore.com>
24763 Ed Schonberg <schonberg@adacore.com>
24764 Gary Dismukes <dismukes@adacore.com>
24765 Javier Miranda <miranda@adacore.com>
24766 Hristian Kirtchev <kirtchev@adacore.com>
24768 * einfo.adb (Itype_Printed): New flag
24769 (Is_Limited_Type): Derived types do not inherit limitedness from
24770 interface progenitors.
24771 (Is_Return_By_Reference_Type): Predicate does not apply to limited
24774 * einfo.ads (Itype_Printed): New flag
24775 Move Is_Wrapper_Package to proper section
24776 Add missing Inline for Is_Volatile
24778 * output.ads, output.adb (Write_Erase_Char): New procedure
24779 (Save/Restore_Output_Buffer): New procedures
24780 (Save/Restore_Output_Buffer): New procedures
24782 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
24783 Add missing support for anonymous access type
24784 (Write_Id): Insert calls to Write_Itype
24785 (Write_Itype): New procedure to output itypes
24787 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
24788 use of "limited" in declaration.
24790 * sinfo.ads, sinfo.adb:
24791 Formal derived types can carry an explicit "limited" indication.
24793 * sem_ch3.adb: Add with and use of Targparm.
24794 (Create_Component): If Frontend_Layout_On_Target is True and the
24795 copied component does not have a known static Esize, then reset
24796 the size and positional fields of the new component.
24797 (Analyze_Component_Declaration): A limited component is
24798 legal within a protected type that implements an interface.
24799 (Collect_Interfaces): Do not add to the list the interfaces that
24800 are implemented by the ancestors.
24801 (Derived_Type_Declaration): If the parent of the full-view is an
24802 interface perform a transformation of the tree to ensure that it has
24803 the same parent than the partial-view. This simplifies the job of the
24804 expander in order to generate the correct object layout, and it is
24805 needed because the list of interfaces of the full-view can be given in
24807 (Process_Full_View): The parent of the full-view does not need to be
24808 a descendant of the parent of the partial view if both parents are
24810 (Analyze_Private_Extension_Declaration): If declaration has an explicit
24811 "limited" the parent must be a limited type.
24812 (Build_Derived_Record_Type): A derived type that is explicitly limited
24813 must have limited ancestor and progenitors.
24814 (Build_Derived_Type): Ditto.
24815 (Process_Full_View): Verify that explicit uses of "limited" in partial
24816 and full declarations are consistent.
24817 (Find_Ancestor_Interface): Remove function.
24818 (Collect_Implemented_Interfaces): New procedure used to gather all
24819 implemented interfaces by a type.
24820 (Contain_Interface): New function used to check whether an interface is
24822 (Find_Hidden_Interface): New function used to determine whether two
24823 lists of interfaces constitute a set equality. If not, the first
24824 differing interface is returned.
24825 (Process_Full_View): Improve the check for the "no hidden interface"
24826 rule as defined by AI-396.
24828 2005-12-09 Robert Dewar <dewar@adacore.com>
24830 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
24831 types, not on record subtypes.
24832 (Freeze_Entity): Code cleanup. Add barrier to the loop
24833 that generates the references for primitive operations. This allows to
24834 remove an unnecessary exception handler.
24835 Code reformatting and comment clean ups.
24837 2005-12-09 Vincent Celier <celier@adacore.com>
24839 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
24840 If GNAT CHECK is called with a project file, but with no
24841 source on the command line, call gnatcheck with all the compilable
24842 sources of the project.
24843 Take into account the new command Check, for gnatcheck. Treat as for
24844 other ASIS tools: take into account project, specific package Check and
24846 For ASIS tools, add the switches in package Compiler for
24847 the invocation of the compiler.
24849 * prj-attr.adb: Add package Check and its attributes
24851 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
24853 * vms_conv.adb (Initialize): Change Params of command Check to
24855 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24856 Add data for new command Check
24858 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
24860 Add qualifiers for Check command options
24861 (Command_Type): New command Check
24863 2005-12-09 Thomas Quinot <quinot@adacore.com>
24865 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
24866 command line switch overruns the output buffer.
24868 2005-12-09 Robert Dewar <dewar@adacore.com>
24870 * sem_prag.adb: Processing for new pragma Complete_Representation
24871 (Analyze_Pragma, case Debug): Implement two argument form.
24873 * par-prag.adb: Entry for new pragma Complete_Representation
24874 (Prag, case Debug): Recognize two argument form of pragma Debug
24875 New interface for Set_Style_Check_Options.
24877 * sem_ch13.adb: Implement new pragma Complete_Representation.
24879 * snames.adb, snames.ads, snames.h: Entry for new pragma
24880 Complete_Representation.
24882 2005-12-09 Gary Dismukes <dismukes@adacore.com>
24884 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
24885 available user-specified stream attributes on limited parameters to
24886 also test the type directly rather than only its underlying type (for
24887 Ada 95) and, in the case of Ada 2005, to check that the user-specified
24888 attributes are visible at the point of the subprogram declaration.
24889 For Ada 2005, the error message is modified to indicate that the
24890 type's stream attributes must be visible (again, only for -gnat05).
24892 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24894 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
24895 anonymous access types.
24897 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
24898 matching of anonymous access types and anonymous access to subprogram
24899 types. 'R'M 4.9.1 (2/2).
24901 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24903 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
24904 rule prematurely when operands are universal, remaining ambiguities
24905 will be removed during resolution.
24908 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
24909 that are Ada 2005 functions.
24910 (Has_Abstract_Interpretation): Subsidiary to
24911 Remove_Conversions, to remove ambiguities caused by abstract operations
24912 on numeric types when operands are universal.
24914 2005-12-09 Robert Dewar <dewar@adacore.com>
24916 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
24917 for case where spec is categorized.
24919 2005-12-09 Javier Miranda <miranda@adacore.com>
24921 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
24922 types use the corresponding record type. This was not needed before
24923 the implementation of Ada 2005 synchronized types because
24924 concurrent types were never tagged types in Ada 95.
24926 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24928 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
24929 first subtype of the type of the expression to verify that it is a
24932 2005-12-09 Robert Dewar <dewar@adacore.com>
24934 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
24937 2005-12-09 Quentin Ochem <ochem@adacore.com>
24938 Robert Dewar <dewar@adacore.com>
24939 Ed Falis <falis@adacore.com>
24940 Florian Villoing <villoing@adacore.com>
24941 Thomas Quinot <quinot@adacore.com>
24942 Arnaud Charlet <charlet@adacore.com>
24944 * gnat_ugn.texi: Created section "Stack Related Tools"
24945 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
24946 "Stack Related Tools"
24947 Added subsection "Static Stack Usage Analysis"
24948 Added subsection "Dynamic Stack Usage Analysis"
24949 Include documentation of itypes in sprint listing (-gnatG)
24950 Documented gnatbind -D switch (default sec stack size for fixed sec
24952 Added Interrupt_State and Persistent_BSS to list of configuration
24954 Add missing doc for maximum value of nnn in -gnatyMnnn
24956 * gnat_rm.texi: Document the AltiVec binding.
24957 Add documentation for pragma Complete_Representation
24958 Shortened an overly long line (> 79 chars)
24959 Clarify documentation of unchecked conversion in implementation
24961 Document two argument form of pragma Debug
24963 * types.ads (Column_Number): Update documentation.
24965 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
24966 library level Finalize_Storage_Only objects (these are not attached to
24967 any finalization list).
24969 * system-mingw.ads: (Underlying_Priorities): Update comment.
24971 2005-12-09 Robert Dewar <dewar@adacore.com>
24973 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
24974 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
24975 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
24976 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
24977 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
24978 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
24979 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
24980 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
24983 2005-12-09 Robert Dewar <dewar@adacore.com>
24985 * s-vaflop-vms-alpha.adb: (Ne_F): New function
24986 (Ne_G): New function
24988 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
24989 for tag assignment.
24990 (Rewrite_Comparison): Handle case where operation is not a comparison
24991 and ignore, and also handle type conversion case.
24993 2005-12-09 Thomas Quinot <quinot@adacore.com>
24995 * exp_aggr.ads: Fix typo in comment.
24996 ???-mark Convert_Aggr_In_Assignment as needing documentation.
24998 2005-12-09 Gary Dismukes <dismukes@adacore.com>
25000 * layout.adb: Replace various uses of byte by storage unit throughout.
25001 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
25002 static size, convert to storage units before returning, to conform to
25005 2005-12-09 Matthew Gingell <gingell@adacore.com>
25007 * g-exctra.ads: Fix typo in comment.
25009 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25011 * utils.c: Minor reformatting.
25013 2005-12-09 Robert Dewar <dewar@adacore.com>
25016 Further comment fixes to make the status of the default file clear
25018 * s-bitops.adb: Clarify comment for Bits_Array
25020 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
25022 * Make-lang.in (ada.install-normal): Remove.
25024 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
25026 * Make-lang.in: Remove all dependencies on s-gtype.
25028 2005-12-05 Richard Guenther <rguenther@suse.de>
25030 * utils.c (convert): Use fold_convert where appropriate.
25032 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
25034 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
25037 2005-12-02 Richard Guenther <rguenther@suse.de>
25039 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
25041 2005-12-01 Roger Sayle <roger@eyesopen.com>
25043 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
25046 2005-11-23 Laurent Guerby <laurent@guerby.net>
25048 * mlib-prj.adb (Build_Library): Initialize Delete.
25050 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
25052 * socket.c: Add extern int h_errno for rtems since networking header
25053 files are not available at this point in a tool bootstrap. Newlib
25054 only has basic C library header files.
25056 2005-11-19 Richard Guenther <rguenther@suse.de>
25057 Roger Sayle <roger@eyesopen.com>
25060 * misc.c (internal_error_function): Don't use vsprintf to format
25061 the error message text, instead use pp_format_text and the new
25062 pretty printer APIs. This allows handling of %qs, %w, etc.
25064 2005-11-18 Laurent Guerby <laurent@guerby.net>
25067 * Makefile.in: Use s-auxdec-empty for RTEMS.
25069 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25072 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
25073 a temporary if taking the address of something that is neither
25074 reference, declaration, or constant, since the gimplifier
25075 can't handle that case.
25077 2005-11-17 Laurent Guerby <laurent@guerby.net>
25080 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
25082 2005-11-16 Richard Guenther <rguenther@suse.de>
25084 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
25086 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
25089 * raise-gcc.c: Add missing stdarg.h include.
25091 2005-11-16 Richard Guenther <rguenther@suse.de>
25093 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
25094 (ada/misc.o): Likewise.
25096 2005-11-14 Thomas Quinot <quinot@adacore.com>
25098 * g-soccon.ads: Minor reformatting. Update comments.
25100 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
25101 gain visibility on the declaration of struct timeval.
25103 * g-soccon-freebsd.ads,
25104 g-soccon-darwin.ads,
25105 g-soccon-tru64.ads,
25109 g-soccon-solaris.ads,
25111 g-soccon-mingw.ads,
25112 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
25114 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
25115 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
25116 g-soccon-linux-x86.ads: New files.
25118 * g-socthi-mingw.adb:
25119 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
25121 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
25122 (time_t, suseconds_t): New types constructed to match the tv_sec
25123 and tv_usec fields of C struct timeval.
25124 (Timeval): Construct structure in terms of the new types.
25125 (Host_Errno): New function (imported from socket.c), returns last hosts
25128 * g-socthi-vxworks.adb: Add error handling circuitry.
25130 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
25131 components of struct timeval.
25132 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
25133 (Check_Selector): In error conditions, clear internal socket sets to
25134 avoid a memory leak.
25135 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
25136 Send_Timeout, Receive_Timeout.
25138 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
25139 the tv_sec and tv_usec fields of C struct timeval.
25140 (Timeval): Construct structure in terms of the new types.
25141 (Host_Errno): New function (imported from socket.c), returns last hosts
25144 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
25145 hosts database last error code.
25147 * gen-soccon.c: Complete value expansion should not be performed on
25148 TARGET, as it has the form of a math expression, and some components
25149 may be platform-defined macros.
25150 For VxWorks, generate the OK and ERROR values.
25151 New constants giving the sizes of the components of C struct timeval.
25153 2005-11-14 Robert Dewar <dewar@adacore.com>
25154 Ed Schonberg <schonberg@adacore.com>
25157 * types.ads: Include All_Checks in Suppress_Array
25159 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
25160 not(a=b), since we no longer do this rewriting, and hence it is not
25162 (Elaboration_Checks_Suppressed): Add special casing to
25163 deal with different cases of static and dynamic elaboration checks (all
25164 checks does not count in the first case, but does in the second).
25165 (Expr_Known_Valid): Do not assume that the result of any arbitrary
25166 function call is valid, since this is not the case.
25167 (Ensure_Valid): Do not apply validity check to a real literal
25168 in a universal or fixed context
25170 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
25171 elementary types using the operator in standard. It is cleaner not to
25172 modify the programmers intent, especially in the case of floating-point.
25173 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
25174 it did not matter because we always rewrote a/=b to not(a=b).
25175 (Expand_Allocator_Expression): For an allocator expression whose nominal
25176 subtype is an unconstrained packed type, convert the expression to its
25177 actual constrained subtype.
25178 Implement warning for <= or >= where < or > not possible
25179 Fix to Vax_Float tests (too early in many routines, causing premature
25180 Vax_Float expansions.
25182 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
25183 to be used with packages and generic packages as well as with
25185 (Suppress): Set All_Checks, but not Elaboration_Check, for case
25186 of pragma Suppress (All_Checks)
25187 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
25188 a string literal for precise control over warnings.
25189 Avoid raise of pragma in case of unrecognized pragma and just return
25192 * sem_prag.ads: Minor reformatting
25194 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
25195 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25196 Switch. Do not handle any exception.
25197 Include -gnatwx as part of -gnatg (warn on redundant parens)
25198 Allow optional = after -gnatm
25199 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
25200 longer sets Elaboration_Checks.
25201 Code to set warning mode moved to Sem_Warn
25202 so that it can be shared by pragma processing.
25204 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
25207 * s-taprop-solaris.adb:
25208 Change some <= to =, to avoid new warning
25210 * a-exexda.adb, prj-proc.adb:
25211 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
25212 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
25214 2005-11-14 Robert Dewar <dewar@adacore.com>
25216 * exp_vfpt.adb: Handle /= case
25217 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
25218 so that we do not get duplicate scaling for fixed point conversions.
25220 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
25222 2005-11-14 Matthew Gingell <gingell@adacore.com>
25224 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
25225 Increase default priority on Lynx from 15 to 17, and meet the Ada
25226 requirement that Default_Priority be ((Priority'First +
25227 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
25229 2005-11-14 Vincent Celier <celier@adacore.com>
25231 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25232 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
25233 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
25234 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
25235 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
25236 mlib-tgt-lynxos.adb (DLL_Prefix): New function
25238 2005-11-14 Doug Rupp <rupp@adacore.com>
25240 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
25243 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25245 * s-traces-default.adb, s-trafor-default.ads,
25246 s-tratas-default.adb: Fix compilation errors.
25248 2005-11-14 Jose Ruiz <ruiz@adacore.com>
25250 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
25251 raising the exception so the memory used is freed.
25253 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25255 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
25256 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
25257 (convert_address): Update comments and list of platforms using this.
25259 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
25262 2005-11-14 Pascal Obry <obry@adacore.com>
25263 Vincent Celier <celier@adacore.com>
25265 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
25268 * memroot.adb: Remove redundant with/use clause on
25269 System.Storage_Elements.
25271 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25273 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
25274 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
25275 related code to a-exexpr.adb
25276 (Save_Occurrence_And_Private): Move GCC EH related code to
25278 (Raise_Current_Excep): Add new variable Id with pragma
25279 volatile, to ensure that the variable lives on stack.
25281 * a-exexpr-gcc.adb, raise-gcc.c: New file.
25283 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
25285 Move GCC EH related code to a-exexpr-gcc.adb
25287 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
25289 Split the Linux version of g-soccon into separate variants for 32 and 64
25291 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
25292 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
25293 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
25294 of host variable $(RANLIB_FLAGS).
25295 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
25296 Code clean up: remove unused/obsolete targets.
25297 (EH_MECHANISM): New variable introduced to differenciate between the
25298 two EH mechanisms statically.
25299 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
25300 (LIBGNAT_OBJS): Add raise-gcc.o
25301 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
25302 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
25303 supports VxWorks 6 RTPs.
25304 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
25305 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
25307 * raise.c: Move all GCC EH-related routines to raise-gcc.c
25309 2005-11-14 Jose Ruiz <ruiz@adacore.com>
25311 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
25312 deferral level, when abort is not allowed, to a later stage (the
25314 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
25315 it will not get changed by the generated code. It was previously done
25318 2005-11-14 Thomas Quinot <quinot@adacore.com>
25319 Olivier Hainque <hainque@adacore.com>
25320 Eric Botcazou <ebotcazou@adacore.com>
25323 Factor common code to build a storage type for an unconstrained object
25324 from a fat or thin pointer type and a constrained object type.
25325 (annotate_value): Handle BIT_AND_EXPR.
25326 (annotate_rep): Don't restrict the back annotation of inherited
25327 components to the type_annotate_only case.
25328 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
25329 we are not defining the type.
25330 <E_Record_Type>: Likewise.
25331 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
25332 to get advantage of the new maybe_stabilize_reference interface, to
25333 ensure that what we reference is indeed stabilized instead of relying
25334 on assumptions on what the stabilizer does.
25335 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
25336 type imported through a limited_with clause, use its non-limited view.
25337 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
25339 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
25340 of #if sections + explicit comparisons of convention identifiers.
25341 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
25342 before early-returning for certain types when code generation is
25344 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
25345 nullification of gnu_expr we do for objects with address clause and
25346 that we are not defining.
25347 (elaborate_expression_1): Do not create constants when creating
25348 variables needed by the debug info: the dwarf2 writer considers that
25349 CONST_DECLs is used only to represent enumeration constants, and emits
25351 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
25352 object with an address clause into an indirect reference, drop the
25353 initializing expression.
25355 (STACK_CHECK_BUILTIN): Delete.
25356 (STACK_CHECK_PROBE_INTERVAL): Likewise.
25357 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
25358 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
25359 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
25360 corresponding to the renamed object as ignored for debugging purposes.
25362 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
25363 related): For a prefix that is a dereference of a fat or thin pointer,
25364 if there is an actual subtype provided by the front-end, use that
25365 subtype to build an actual type with bounds template.
25366 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
25367 is provided by the front-end, use that subtype to compute the size of
25368 the deallocated object.
25369 (gnat_to_gnu): When adding a statement into an elaboration procedure,
25370 check for a potential violation of a No_Elaboration_Code restriction.
25371 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25372 with extra arguments to control whether to recurse through non-values
25373 and to let the caller know if the stabilization has succeeded.
25374 (gnat_stabilize_reference): Now a simple wrapper around
25375 maybe_stabilize, for common uses without restriction on lvalues and
25376 without need to check for the success indication.
25377 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
25378 pass false instead of 0 as the FORCE argument which is a bool.
25379 (Identifier_to_gnu): Remove checks ensuring that an renamed object
25380 attached to a renaming pointer has been properly stabilized, as no such
25381 object is attached otherwise.
25382 (call_to_gnu): Invoke create_var_decl to create the temporary when the
25383 function uses the "target pointer" return mechanism.
25384 Reinstate conversion of the actual to the type of the formal
25385 parameter before any other specific treatment based on the passing
25386 mechanism. This turns out to be necessary in order for PLACEHOLDER
25387 substitution to work properly when the latter type is unconstrained.
25389 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
25391 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25392 with extra arguments to control whether to recurse through non-values
25393 and to let the caller know if the stabilization has succeeded.
25395 * utils2.c (gnat_build_constructor): Only sort the fields for possible
25396 static output of record constructor if all the components are constant.
25397 (gnat_build_constructor): For a record type, sort the list of field
25398 initializers in increasing bit position order.
25399 Factor common code to build a storage type for an unconstrained object
25400 from a fat or thin pointer type and a constrained object type.
25401 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
25402 types variants, and process special cases of VIEW_CONVERT expressions
25403 as their NOP_EXPR counterpart to ensure we get to the
25404 CORRESPONDING_VARs associated with CONST_DECls.
25405 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
25406 on the right-hand side.
25408 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
25410 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
25411 are converting back to its original type.
25412 (convert) <JM input>: Fallthrough regular conversion code instead of
25413 extracting the object if converting to a type variant.
25414 (create_var_decl): When a variable has an initializer requiring code
25415 generation and we are at the top level, check for a potential violation
25416 of a No_Elaboration_Code restriction.
25417 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
25418 SIZE and SIZE_UNIT which we need for later back-annotations.
25419 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
25420 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
25421 is an unchecked union.
25422 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
25423 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
25424 main variant, just replace the VIEW_CONVERT_EXPR.
25425 <UNION_TYPE>: Revert 2005-03-02 change.
25427 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
25429 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
25431 2005-11-14 Matthew Heaney <heaney@adacore.com>
25433 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
25434 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
25435 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
25436 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
25437 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25438 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
25439 Compiles against the spec for ordered maps described in sections
25440 A.18.6 of the most recent (August 2005) AI-302 draft.
25442 2005-11-14 Olivier Hainque <hainque@adacore.com>
25444 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
25445 to ensure bias adjustments take place when need be and to prevent
25446 occurrences of intermediate overflows.
25448 2005-11-14 Matthew Gingell <gingell@adacore.com>
25449 Olivier Hainque <hainque@adacore.com>
25451 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
25454 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
25455 tracebacks on ia64 HP-UX and provide explanatory comment.
25456 Enable backtraces on ia64 GNU/Linux.
25457 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
25458 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
25460 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
25461 Javier Miranda <miranda@adacore.com>
25463 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
25464 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
25465 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
25466 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
25468 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
25469 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
25472 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
25473 subprogram that generates the external name associated with a
25474 secondary dispatch table.
25475 (Get_Secondary_DT_External_Name): New subprogram that generates the
25476 external name associated with a secondary dispatch table.
25478 2005-11-14 Emmanuel Briot <briot@adacore.com>
25480 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
25481 line in the ALI file to include both an instantiation reference, and a
25484 2005-11-14 Vincent Celier <celier@adacore.com>
25486 * clean.adb (Check_Project): Look for Ada code in extending project,
25487 even if Ada is not specified as a language.
25488 Use new function DLL_Prefix for DLL_Name
25489 (Clean_Interface_Copy_Directory): New procedure
25490 (Clean_Library_Directory): New procedure
25491 (Clean_Directory): Remove procedure, no longer used
25492 (Clean_Project): Do not delete any file in an externally built project
25494 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
25495 directory of an extending project, even when there are no Ada source
25497 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
25498 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25500 * mlib-prj.adb (Check_Library): For all library projects, get the
25501 library file timestamp.
25502 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
25503 (Build_Library): Use new function DLL_Prefix for the DLL_Name
25504 (Clean): Remove procedure, no longer used
25505 (Ultimate_Extension_Of): New function
25506 (Build_Library): When cleaning the library directory, only remove an
25507 existing library file and any ALI file of a source of the project.
25508 When cleaning the interface copy directory, remove any source that
25509 could be a source of the project.
25511 * prj.ads, prj.adb (Project_Empty): Add values of new components
25512 Library_TS and All_Imported_Projects.
25513 (Project_Empty): Add values for new components of Project_Data:
25514 Library_ALI_Dir and Display_Library_ALI_Dir
25516 * prj-attr.adb: New project level attribute name Library_ALI_Dir
25518 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
25519 attribute Library_ALI_Dir.
25520 (Check_Library_Attributes): The library directory cannot be the same as
25521 any source directory of the project tree.
25522 (Check_Stand_Alone_Library): The interface copy directory cannot be
25523 the same as any source directory of the project tree.
25525 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
25526 all temporary files.
25528 2005-11-14 Robert Dewar <dewar@adacore.com>
25529 Ed Schonberg <schonberg@adacore.com>
25531 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25532 (Check_Elab_Call): A call within a protected body is never an
25533 elaboration call, and does not require checking.
25534 (Same_Elaboration_Scope): Take into account protected types for both
25536 (Activate_Elaborate_All_Desirable): New procedure
25538 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
25541 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
25542 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
25544 * lib-writ.ads, lib-writ.adb:
25545 Implement new AD/ED for Elaborate_All/Elaborate desirable
25546 Use new Elaborate_All_Desirable flag in N_With_Clause node
25548 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
25549 N_Free_Statement nodes.
25550 Define new class N_Subprogram_Instantiation
25551 Add Elaborate_Desirable flag to N_With_Clause node
25552 Add N_Delay_Statement (covering two kinds of delay)
25554 * debug.adb: Introduce d.f flag for compiler
25555 Add -da switch for binder
25557 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25558 Cyrille Comar <comar@adacore.com>
25560 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
25561 for task component, in the case of a limited aggregate. The enclosed
25562 object declaration will create it earlier. Otherwise, in the case of a
25563 nested aggregate, the object may appear in the wrong scope.
25564 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
25565 (Gen_Assign): If the component being assigned is an array type and the
25566 expression is itself an aggregate, wrap the assignment in a block to
25567 force finalization actions on the temporary created for each row of the
25569 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
25570 structures are initialized after all discriminants are set so that
25571 they can be accessed even when their offset is dynamic.
25573 2005-11-14 Robert Dewar <dewar@adacore.com>
25574 Hristian Kirtchev <kirtchev@adacore.com>
25576 * sem_attr.adb: Implement Machine_Rounding attribute
25577 (Analyze_Access_Attribute): The access attribute may appear within an
25578 aggregate that has been expanded into a loop.
25579 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
25580 'Terminated whenever the prefix is of a task interface class-wide type.
25581 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
25582 the prefix is of a task interface class-wide type.
25584 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
25587 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
25588 Remove pragma Inline for [Unaligned_]Valid.
25589 Add comments that Valid routines do not work for Vax_Float
25591 * exp_attr.adb: Implement Machine_Rounding attribute
25593 * snames.h: Add entry for Machine_Rounding attribute
25595 2005-11-14 Javier Miranda <miranda@adacore.com>
25596 Robert Dewar <dewar@adacore.com>
25597 Hristian Kirtchev <kirtchev@adacore.com>
25599 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
25600 and related): For a prefix that is an explicit dereference of an
25601 access to unconstrained packed array type, annotate the dereference
25602 with an actual subtype so GIGI can make a correct size computation.
25603 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
25604 'Unrestricted_Access, if the designated type is an interface we
25605 add a type conversion to force the displacement of the pointer
25606 to the secondary dispatch table.
25607 Use Universal_Real instead of Long_Long_Float when we need a high
25608 precision float type for the generated code (prevents gratuitous
25609 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25610 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
25611 'Terminated for task interface class-wide objects. Generate a call to
25612 the predefined dispatching routine used to retrieve the _task_id from
25613 a task corresponding record.
25614 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
25616 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25617 (Check_Dispatching_Operation): Protect the frontend againts
25618 previously detected errors.
25620 * Makefile.rtl: Add new instantiations of system.fat_gen
25622 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
25623 Change name of instantiated package for better consistency
25624 with newly added system.fat_gen instantiations.
25626 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
25627 s-fvagfl.ads: New files.
25629 2005-11-14 Cyrille Comar <comar@adacore.com>
25630 Thomas Quinot <quinot@adacore.com>
25632 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
25633 assignment of a value of a tagged type that has been rewritten to a
25634 block statement, it is known by construction that no checks are
25635 necessary for the statements within the block: analyze it with checks
25637 (Expand_N_If_Statement): When killing a dead then-branch in an
25638 if-statement that has elsif_parts, recompute the Current_Value node
25639 for any entity whose value is known from the condition of the first
25641 (Expand_N_Return_Statement): When returning a mutable record, convert
25642 the return value into its actual subtype in order to help the backend
25643 to return the actual size instead of the maximum. This is another
25644 aftermath of not returning mutable records on the sec-stack anymore.
25646 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
25647 handling of error msg for suspicious reverse range iteration.
25648 (Check_Possible_Current_Value_Condition): Move declaration from body to
25649 spec, to allow this subprogram to be called from exp_ch5.
25651 2005-11-14 Thomas Quinot <quinot@adacore.com>
25653 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
25654 generate a set of nested array aggregates instead of a single flat
25655 aggregate for multi-dimensional arrays.
25657 2005-11-14 Pascal Obry <obry@adacore.com>
25659 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
25660 by spawnve is a process handle, no need to convert. Add a parameter
25661 close to control wether the process handle must be closed.
25662 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
25663 a process handle, not need to convert.
25664 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
25666 * g-expect.adb: (Kill): Document the new close parameter.
25667 (Close): Do not release the process handle in the kill there as
25668 waitpid() is using it.
25669 (Send_Signal): Release the process handle.
25671 2005-11-14 Robert Dewar <dewar@adacore.com>
25673 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
25674 need a high precision float type for the generated code (prevents
25675 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25678 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
25679 need a high precision float type for the generated code (prevents
25680 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25682 (Expand_Width_Attribute): In configurable run-time, the attribute is not
25683 allowed on non-static enumeration subtypes. Force a load error to emit
25684 the correct diagnostic.
25686 2005-11-14 Thomas Quinot <quinot@adacore.com>
25687 Robert Dewar <dewar@adacore.com>
25688 Ed Schonberg <schonberg@adacore.com>
25690 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
25691 subtype to compute the size of the designated object at run-time,
25692 create such a subtype and store it in the Actual_Designated_Subtype
25693 attribute of the N_Free_Statement.
25694 Generate itype for classwide designated object in both cases of
25695 user-specified storage pool: specific and class-wide, not only in the
25697 Raise CE when trying to set a not null access type object to null.
25698 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
25699 an explicit loop, because freeze nodes make its position variable.
25701 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
25704 2005-11-14 Javier Miranda <miranda@adacore.com>
25706 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
25707 Build_Stream_Procedure): Add the null-excluding attribute to the first
25709 This has no semantic meaning under Ada95 mode but it is a
25710 requirement under Ada05 mode.
25712 * par-ch3.adb (P_Access_Definition): Addition of warning message if
25713 the null exclusion is used under Ada95 mode
25714 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
25715 (P_Access_Definition): Remove assertion that forbids the use of
25716 the null-exclusion feature in Ada95.
25718 2005-11-14 Robert Dewar <dewar@adacore.com>
25720 * impunit.adb: Exclude container helper units not intended for use by
25723 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25725 * freeze.adb (Freeze_Entity): For an access formal that is an access
25726 to subprogram, freeze the anonymous subprogram type at the same time,
25727 to prevent later freezing in the wrong scope, such as the enclosing
25729 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
25730 subprogram whenever available.
25732 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25735 * gnatvsn.ads (Library_Version): Bump to 4.1
25737 2005-11-14 Robert Dewar <dewar@adacore.com>
25739 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
25740 Storage_Offset to avoid wrap around causing invalid results.
25742 2005-11-14 Pascal Obry <obry@adacore.com>
25744 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
25746 (Scan_Bind_Arg): Fail with an error message if -M option is used
25747 on a native compiler.
25749 2005-11-14 Robert Dewar <dewar@adacore.com>
25750 Vincent Celier <celier@adacore.com>
25752 * gprep.adb: Implement -C switch to scan comments
25754 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
25756 * scans.ads: Comment updates (including new use of Tok_Comment in
25759 * opt.ads: Add documentation for flags that are used by gprmake,
25760 currently and in the next version of gprmake.
25761 (Verbosity_Level): New variable
25762 Add Replace_In_Comments switch
25764 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
25766 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
25768 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25770 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
25771 message, friendlier.
25773 2005-11-14 Robert Dewar <dewar@adacore.com>
25775 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
25777 2005-11-14 Doug Rupp <rupp@adacore.com>
25779 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
25781 2005-11-14 Robert Dewar <dewar@adacore.com>
25783 * interfac.ads: Change declarations of IEEE float types so that we no
25784 longer need a separate version of this package for VMS.
25786 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25788 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
25789 internal entity created for the declaration of a child subprogram body
25790 with no spec as coming from source, to generate proper cross-reference
25793 2005-11-14 Vincent Celier <celier@adacore.com>
25795 * make.adb (Compile_Sources): Change verbose message to minimum
25796 verbosity level High for "is in an Ada library", "is a read-only
25797 library" and "is an internal library",
25798 (Create_Binder_Mapping_File): Path name of ALI file for library project
25799 must include the library directory, not the object directory.
25800 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
25801 for new switches -vl, -vm and -vh.
25802 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
25803 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
25804 (Compile_Sources): Do not attempt to compile if an ALI file is missing
25805 in a project that is externally built.
25806 (Compute_All_Imported_Projects): New procedure
25807 (Gnatmake): Check if importing libraries should be regenerated because
25808 at least an imported library is more recent.
25809 (Initialize): For each project compute the list of the projects it
25810 imports directly or indirectly.
25811 (Add_Library_Search_Dir): New procedure, used in place of
25812 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25813 put in the search paths.
25814 (Add_Source_Search_Dir): New procedure, used in place of
25815 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25816 put in the search paths.
25817 (Mark_Directory): Resolve the absolute path the directory before marking
25820 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
25821 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25822 Switch. Do not handle any exception.
25823 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
25824 so that the switch is recognized as valid.
25825 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
25827 2005-11-14 GNAT Script <nobody@adacore.com>
25829 * Make-lang.in: Makefile automatically updated
25831 2005-11-14 Pascal Obry <obry@adacore.com>
25833 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
25835 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
25836 In both cases the last argument was dropped.
25838 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
25840 * namet.h: (Column_Numbe): New type.
25841 (Get_Column_Number): Define to sinput__get_column_number.
25842 (Instantiation): Define to sinput__instantiation.
25843 (Get_Column_Number): Declare.
25844 (Instantiation): Likewise.
25846 2005-11-14 Robert Dewar <dewar@adacore.com>
25848 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
25849 syntax, which could cause compiler hangs.
25851 2005-11-14 Vincent Celier <celier@adacore.com>
25853 * prj-ext.adb: Take into account new environment variable
25854 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
25856 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
25857 normalize its path name, making it absolute and resolving symbolic
25858 links, and replace the original if resolved path is different.
25860 2005-11-14 Vincent Celier <celier@adacore.com>
25862 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
25863 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
25865 2005-11-14 Emmanuel Briot <briot@adacore.com>
25867 * prj-pp.adb (Print): Do not output the with statement if the
25868 associated name is empty, which happens for virtual extending projects.
25869 (Print): Preserve the "extends all" attribute when printing the project.
25871 * prj-tree.ads (String_Value_Of): Add comment about returned value for
25872 a virtual extending project.
25874 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25876 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
25877 rhs of an assignment even if the type is unconstrained, when the
25878 context is non-expanding.
25879 In an inlined body, if the context type is private,
25880 resolve with its full view, which must be a composite type.
25882 2005-11-14 Robert Dewar <dewar@adacore.com>
25883 Ed Schonberg <schonberg@adacore.com>
25885 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25886 Do not give obsolescent warning on with of subprogram (since we
25888 (Analyze_With_Clause): Add test for obsolescent package
25889 (Install_Context_Clauses): If the unit is the body of a child unit, do
25890 not install twice the private declarations of the parents, to prevent
25891 circular lists of Use_Clauses in a parent.
25892 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
25893 compiling body of child unit.
25894 Use new class N_Subprogram_Instantiation
25895 (Expand_With_Clause): If this is a private with_clause for a child unit,
25896 appearing in the context of a package declaration, then the implicit
25897 with_clauses generated for parent units are private as well.
25898 (License_Check): Do not generate message if with'ed unit is internal
25900 2005-11-14 Gary Dismukes <dismukes@adacore.com>
25901 Ed Schonberg <schonberg@adacore.com>
25902 Thomas Quinot <quinot@adacore.com>
25904 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
25905 names are internal, because they will not have a corresponding partner
25906 in the actual package.
25907 (Analyze_Formal_Package): Move the setting of the formal package spec's
25908 Generic_Parent field so that it occurs prior to analyzing the package,
25909 to allow proper operation of Install_Parent_Private_Declarations.
25910 (Analyze_Package_Instantiation): Set the instantiated package entity's
25911 Package_Instantiation field.
25912 (Get_Package_Instantiation_Node): Move declaration to package spec.
25913 Retrieve the N_Package_Instantiation node when the Package_Instantiation
25915 (Check_Generic_Child_Unit): Within an inlined call, the only possible
25916 instantiation is Unchecked_Conversion, for which no parents are needed.
25917 (Inline_Instance_Body): Deinstall and record the use_clauses for all
25918 parent scopes of a scope being removed prior to inlining an instance
25920 (Analyze_Package_Instantiation): Do not perform front-end inlining when
25921 the current context is itself an instance within a non-instance child
25922 unit, to prevent scope stack errors.
25923 (Save_References): If the node is an aggregate that is an actual in a
25924 call, rewrite as a qualified expression to preserve some type
25925 information, to resolve possible ambiguities in the instance.
25926 (Instance_Parent_Unit): New global variable to record the ultimate
25927 parent unit associated with a generic child unit instance (associated
25928 with the existing Parent_Unit_Visible flag).
25929 (type Instance_Env): New component Instance_Parent_Unit for stacking
25930 parents recorded in the global Instance_Parent_Unit.
25931 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
25933 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
25934 it's not a top-level unit, and only do this if Instance_Parent_Unit is
25935 not already set. Replace test of Is_Child_Unit with test of parent's
25936 scope against package Standard. Add comments and a ??? comment.
25937 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
25938 on a child instance parent to test that the parent equals
25939 Instance_Parent rather than simply checking that the unit is not a
25941 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
25942 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
25943 a formal interface are ancestors of the corresponding actual.
25944 (Validate_Formal_Interface_Type): Additional legality checks.
25945 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
25946 interface types with ancestors.
25947 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
25948 to diagnose attempts to use generic within its own declaration.
25950 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25951 Javier Miranda <miranda@adacore.com>
25953 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
25955 (Build_Private_Derived_Type): The entity of the created full view of the
25956 derived type does not come from source. If after installing the private
25957 declarations of the parent scope the parent is still private, use its
25958 full view to construct the full declaration of the derived type.
25959 (Build_Derived_Record_Type): Relax the condition that controls the
25960 execution of the check that verifies that the partial view and
25961 the full view agree in the set of implemented interfaces. In
25962 addition, this test now only takes into account the progenitors.
25963 (Derive_Interface_Subprograms): No need to derive subprograms
25964 of ancestors that are interfaces.
25965 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
25967 Change name Is_Package to Is_Package_Or_Generic_Package
25968 (Complete_Subprograms_Derivation): Handle the case in which the full
25969 view is a transitive derivation of the ancestor of the partial view.
25970 (Process_Full_View): Rename local subprogram Find_Interface_In_
25971 Descendant to Find_Ancestor_Interface to leave the code more clear.
25972 Remove wrong code that avoids the generation of an error message
25973 when the immediate ancestor of the partial view is an interface.
25974 In addition some minor reorganization of the code has been done to
25975 leave it more clear.
25976 (Analyze_Type_Declaration): If type has previous incomplete tagged
25977 partial view, inherit properly its primitive operations.
25978 (Collect_Interfaces): Make public, for analysis of formal
25980 (Analyze_Interface_Declaration): New procedure for use for regular and
25981 formal interface declarations.
25982 (Build_Derived_Record_Type): Add support for private types to the code
25983 that checks if a tagged type implements abstract interfaces.
25984 (Check_Aliased_Component_Type): The test applies in the spec of an
25986 (Access_Type_Declaration): Clean up declaration of malformed type
25987 declared as an access to its own classwide type, to prevent cascaded
25989 (Collect_Interfaces): For private extensions and for derived task types
25990 and derived protected types, the parent may be an interface that must
25991 be included in the interface list.
25992 (Access_Definition): If the designated type is an interface that may
25993 contain tasks, create Master_Id for it before analyzing the expression
25994 of the declaration, which may be an allocator.
25995 (Record_Type_Declaration): Set properly the interface kind, for use
25996 in allocators, the creation of master id's for task interfaces, etc.
25998 2005-11-14 Javier Miranda <miranda@adacore.com>
25999 Ed Schonberg <schonberg@adacore.com>
26001 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
26002 omitted in case of stream attribute subprograms.
26003 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
26004 appear immediately after a subprogram body, when there is no previous
26005 subprogram declaration.
26006 Change name Is_Package to Is_Package_Or_Generic_Package
26007 (Process_Formals): A non null qualifier on a non null named access
26008 type is not an error, and is a warning only if Redundant_Constructs
26011 2005-11-14 Gary Dismukes <dismukes@adacore.com>
26012 Ed Schonberg <schonberg@adacore.com>
26014 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
26015 nested within Analyze_Package_Specification to install the private
26016 declarations and use clauses within each of the parent units of a
26017 package instance of a generic child package.
26018 (Analyze_Package_Specification): When entering a private part of a
26019 package associated with a generic instance or formal package, the
26020 private declarations of the parent must be installed (by calling new
26021 procedure Install_Parent_Private_Declarations).
26022 Change name Is_Package to Is_Package_Or_Generic_Package
26023 (Preserve_Full_Attributes): For a synchronized type, the corresponding
26024 record is absent in a generic context, which does not indicate a
26027 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26029 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
26030 not try to rewrite a renamed stream attribute, because the operations
26031 on the type may not have been generated.
26032 Handle properly a renaming_as_body generated for a stream operation
26033 whose default is abstract because the object type itself is abstract.
26034 (Find_Type): If the type is incomplete and appears as the prefix of a
26035 'Class reference, it is tagged, and its list of primitive operations
26036 must be initialized properly.
26037 (Chain_Use_Clauses): When chaining the use clauses that appear in the
26038 private declaration of a parent unit, prior to compiling the private
26039 part of a child unit, find on the scope stack the proper parent entity
26040 on which to link the use clause.
26041 (Note_Redundant_Use): Emit a warning when a redundant use clause is
26043 (Analyze_Object_Renaming): An attribute reference is not a legal object
26044 if it is not a function call.
26046 2005-11-14 Robert Dewar <dewar@adacore.com>
26047 Ed Schonberg <schonberg@adacore.com>
26049 * sem_eval.adb: Implement d.f flag
26050 (Subtype_Statically_Match): A generic actual type has unknown
26051 discriminants when the corresponding actual has a similar partial view.
26052 If the routine is called to validate the signature of an inherited
26053 operation in a child instance, the generic actual matches the full view,
26055 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
26056 Ed Schonberg <schonberg@adacore.com>
26057 Robert Dewar <dewar@adacore.com>
26058 Thomas Quinot <quinot@adacore.com>
26060 * sem_res.adb (Resolve_Call): Provide a better error message whenever
26061 a procedure call is used as a select statement trigger and is not an
26062 entry renaming or a primitive of a limited interface.
26063 (Valid_Conversion): If the operand has a single interpretation do not
26064 remove address operations.
26065 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
26066 statement to inhibit warning.
26067 (Resolve_Unary_Op): Do not produce a warning when
26068 processing an expression of the form -(A mod B)
26069 Use Universal_Real instead of Long_Long_Float when we need a high
26070 precision float type for the generated code (prevents gratuitous
26071 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
26072 (Resolve_Concatenation_Arg): Improve error message when argument is an
26073 ambiguous call to a function that returns an array.
26074 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
26075 there is an implicit operator in the given scope if we are within an
26076 instance: legality check has been performed on the generic.
26077 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
26078 after resolving operand, to avoid false warnings on overloaded calls.
26080 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26081 Javier Miranda <miranda@adacore.com>
26084 * sem_type.adb (Covers): In an inlined body, a composite type matches
26085 a private type whose full view is a composite type.
26086 (Interface_Present_In_Ancestor): Protect the frontend against
26087 previously detected errors to ensure that its compilation
26088 with assertions enabled gives the same output that its
26089 compilation without assertions.
26090 (Interface_Present_In_Ancestor): Add support for private types.
26091 Change name In_Actual to In_Generic_Actual (clean up)
26092 (Disambiguate): New predicate In_Actual, to recognize expressions that
26093 appear in the renaming declaration generated for generic actuals, and
26094 which must be resolved in the outer context.
26096 2005-11-14 Robert Dewar <dewar@adacore.com>
26097 Thomas Quinot <quinot@adacore.com>
26098 Hristian Kirtchev <kirtchev@adacore.com>
26099 Ed Schonberg <schonberg@adacore.com>
26101 * sem_util.ads, sem_util.adb: Change name Is_Package to
26102 Is_Package_Or_Generic_Package.
26103 (Check_Obsolescent): New procedure.
26104 (Set_Is_Public): Remove obsolete junk test.
26105 (Set_Public_Status): Do not set Is_Public on an object whose declaration
26106 occurs within a handled_sequence_of_statemets.
26107 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
26108 for a parameterless procedure.
26109 (Enter_Name): Recognize renaming declarations created for private
26110 component of a protected type within protected operations, so that
26111 the source name of the component can be used in the debugger.
26113 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26114 Robert Dewar <dewar@adacore.com>
26116 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
26117 of a generic subprogram are not visible outside the body.
26118 (Set_Warning_Switch): New procedure (code to set warning mode moved
26119 here from Switch.C so that it can be shared by pragma processing.
26120 (Check_References): Special case warning for non-modified non-imported
26122 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
26123 form with a string literal argument
26125 2005-11-14 Javier Miranda <miranda@adacore.com>
26127 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
26129 (Write): Addition of "not null" to the anonymous access.
26130 (Read): Addition of "not null" to the anonymous access.
26131 (Write): Addition of "not null" to the anonymous access.
26133 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
26134 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
26135 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
26136 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
26137 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
26138 "not null" to the anonymous access.
26140 2005-11-14 Robert Dewar <dewar@adacore.com>
26142 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
26145 2005-11-14 Vincent Celier <celier@adacore.com>
26147 * switch.adb (Bad_Switch): New procedure
26148 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
26149 message when in error.
26151 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
26152 Too_Many_Output_Files): Remove declarations, no longer used.
26153 (Scan_Nat): New parameter Switch
26155 (Bad_Switch): New procedure
26157 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
26158 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
26159 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
26160 to Osint.Fail. Do not handle any exception.
26162 2005-11-14 Vincent Celier <celier@adacore.com>
26164 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
26165 designates a non existent directory.
26167 2005-11-14 Robert Dewar <dewar@adacore.com>
26169 * xgnatugn.adb: Replace invalid membership test by 'Valid
26171 2005-11-14 Vincent Celier <celier@adacore.com>
26173 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
26174 there is no object directory.
26176 2005-11-14 Robert Dewar <dewar@adacore.com>
26178 * usage.adb: Minor adjustment to output format, use nn instead of nnn
26179 (so that -gnateInnn does not run into next column)
26181 2005-11-14 Ed Falis <falis@adacore.com>
26183 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
26186 2005-11-14 Cyrille Comar <comar@adacore.com>
26188 * s-chepoo.ads: Add comments on Dereference.
26189 Remove unnecessary inherited abstract primitives.
26192 2005-11-14 Robert Dewar <dewar@adacore.com>
26194 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
26195 node parameter, not needed, since it is available as Declaration_Node.
26197 2005-11-14 Geert Bosch <bosch@adacore.com>
26199 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
26200 grammatically correct.
26202 2005-11-14 Vincent Celier <celier@adacore.com>
26204 * s-fileio.ads: Correct spelling error in comment
26206 2005-11-14 Cyrille Comar <comar@adacore.com>
26207 Robert Dewar <dewar@adacore.com>
26208 Vincent Celier <celier@adacore.com>
26209 Ben Brosgol <brosgol@adacore.com>
26210 Jose Ruiz <ruiz@adacore.com>
26211 Pascal Obry <obry@adacore.com>
26214 Document that -fstack-check is needed for strict compliance with the
26215 Ada 95 Reference Manual.
26216 Correct reference to VAX systems to meet HP guidelines
26217 Add documentation for new gnatmake switches -vl, -vm and -vh
26218 Replace DEC Ada by HP Ada
26219 Replace DIGITAL by HP
26220 Remove empty section on tools in compatibility section
26221 Clarify the Windows convention semantics.
26222 Document the Win32 calling convention.
26223 The Stdcall, Win32 and DLL convention are synonyms.
26224 Add a note in -gnatR description about zero size record components
26225 Note on new >= and <= warnings for -gnatwc
26226 Document that equal sign after -gnatm is optional.
26227 Note that strip is working fine on DLL built with a Library
26228 Project. The restriction apply only to DLL built with gnatdll.
26229 Update section about the way to debug a DLL.
26230 Update information about the DLL convention.
26231 Document -C switch for gnatprep
26232 Document new attribute Library_ALI_Dir
26233 Update elaboration doc to include implicit Elaborate pragmas now
26234 generated for subprogram instantiations.
26235 Document limitation on executable names that include spaces for --GCC,
26236 --GNATBIND, and --GNATLINK switches.
26237 Document that -w causes -gnatws to be added at start of gcc switches
26239 * gnat_rm.texi: Document that -mieee is needed for generating infinite
26240 and NaN values in case of overflow on machines that are not fully
26241 compliant with the IEEE floating-point standard.
26242 Create a section describing the set of compiler options needed for
26243 strict compliance with the Ada 95 Reference Manual.
26244 Add documentation for pragma Obsolescent applied to a package
26245 Clarify potential issues of mixed language programs related to the
26246 I/O buffering enabling in the elaboration of the GNAT runtime.
26247 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
26248 This documentation only patch adds extra documentsion for pragma
26249 Restrictions (No_Elaboration_Code), explaining why it is not possible
26250 to document this restriction in terms of allowed source constructs.
26251 Document string literal form of pragma Warnings
26252 Document new attribute Library_ALI_Dir
26253 Add documentation on stable attributes in project files that was missing
26255 * gnat-style.texi: Indicate that paragraphs within a single comment
26256 should be separated by empty comment lines
26258 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
26261 * bindusg.adb: Minor cleanup, put -m before -M for consistency
26263 2005-11-14 Robert Dewar <dewar@adacore.com>
26265 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
26266 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
26267 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
26268 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
26269 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
26270 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
26271 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26272 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
26273 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
26274 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26275 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
26276 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
26277 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
26278 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
26279 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
26280 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
26281 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
26282 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
26283 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
26284 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
26285 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
26286 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
26287 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
26288 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
26289 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
26290 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
26291 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
26292 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
26293 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
26294 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
26295 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
26296 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
26297 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
26298 system-interix.ads, system-solaris-sparc.ads,
26299 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
26300 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
26301 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
26302 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
26303 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
26304 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
26305 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
26306 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
26307 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
26308 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
26309 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
26310 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
26311 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
26312 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
26313 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
26314 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
26315 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
26316 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
26317 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
26318 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
26319 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
26320 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
26321 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
26322 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
26323 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
26324 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
26325 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
26326 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
26327 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
26328 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
26329 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
26330 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
26331 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
26332 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
26333 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
26334 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
26335 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
26336 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
26337 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
26338 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
26339 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
26340 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
26341 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
26342 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
26343 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
26344 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
26345 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
26346 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
26347 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
26348 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
26349 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
26350 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
26351 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
26352 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
26353 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
26354 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
26355 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
26356 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
26357 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
26358 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
26359 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
26360 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
26361 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
26362 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
26363 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
26364 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
26365 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
26366 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
26367 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
26368 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
26369 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
26370 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
26371 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
26372 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
26373 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
26374 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
26375 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
26376 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
26377 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
26378 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
26379 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
26380 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
26381 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
26382 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
26383 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
26384 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
26385 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
26386 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
26387 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
26388 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
26389 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
26390 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
26391 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
26392 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
26393 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
26394 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
26395 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
26396 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
26397 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
26398 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
26399 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
26400 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
26401 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
26402 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
26403 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
26404 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
26405 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
26406 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
26407 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
26408 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
26409 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
26410 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
26411 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
26412 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
26413 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
26414 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
26415 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
26416 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
26417 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
26418 a-numaux-darwin.ads, a-numaux-darwin.adb,
26419 a-swuwha.ads, a-stunha.ads: Minor reformatting
26421 2005-11-14 Robert Dewar <dewar@adacore.com>
26424 * osint-m.adb: Add pragma Elaborate_All for Osint
26426 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
26429 * trans.c (call_to_gnu): Restore statement lost in translation.
26431 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
26433 * init.c: Use the Linux-specific section for the IA-64/Linux target.
26434 (__gnat_adjust_context_for_raise): Add conditional code so that the
26435 IA-64 is also supported.
26437 2005-11-03 James E Wilson <wilson@specifix.com>
26440 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
26441 TREE_OVERFLOW check.
26443 2005-09-21 Olivier Hainque <hainque@adacore.com>
26446 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
26447 as we create them to store a size in bits.
26449 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
26457 * utils2.c (build_return_expr): New helper function.
26458 * gigi.h (build_return_expr): Declare it.
26459 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
26460 of manually building the RETURN_EXPR tree.
26461 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
26462 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
26463 build_binary_op for the "target pointer" case. Use build_return_expr
26464 instead of manually building the RETURN_EXPR tree.
26466 2005-09-16 Laurent Guerby <laurent@guerby.net>
26469 * s-tpinop.ads: Make this unit Preelaborate.
26471 2005-09-16 Andreas Jaeger <aj@suse.de>
26473 * socket.c: Add string.h for memcpy.
26475 2005-09-05 Arnaud Charlet <charlet@adacore.com>
26477 * dec-io.ads, dec-io.adb: Removed, no longer used.
26479 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26481 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
26483 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
26484 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
26485 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
26486 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
26487 dependent units are Preelaborate.
26488 (Initialize): Call Interrupt_Managemeent.Initialize and
26489 OS_Primitives.Initialize to ensure proper initialization of this unit.
26490 Remove use of System.Soft_Links
26491 Make this unit Preelaborate.
26493 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
26494 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
26495 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
26496 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
26497 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26498 s-tratas.ads, s-tasinf.ads: Minor reformatting.
26499 Add pragma Preelaborate, since these packages are suitable for this
26503 * s-traent-vms.ads, s-intman-dummy.adb,
26504 s-taprop-dummy.adb: Make this unit Preelaborate.
26506 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26507 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
26508 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
26509 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
26510 s-intman-solaris.adb, s-intman-irix-athread.adb,
26511 s-intman-irix.adb: Mark this unit Preelaborate.
26512 (Initialize): New procedure.
26515 * s-taspri-linux.ads: Removed.
26517 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
26518 as done by other implementations (e.g. posix).
26520 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
26521 responsible for deferring abort.
26522 Mark this unit Preelaborate.
26524 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
26525 proper initialization of the tasking run-time.
26527 * s-tasdeb.ads: Mark this unit Preelaborate.
26528 (Known_Tasks): Add explicit default value to avoid elaboration code.
26530 * s-inmaop-vms.adb (Elaboration code): Add call to
26531 Interrupt_Management.Initialize since the elaboration code depends on
26532 proper initialization of this package.
26534 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
26535 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
26536 s-osprim-posix.adb: Make this unit Preelaborate.
26538 * a-calend.adb: Add call to OS_Primitives.Initialize
26540 * a-elchha.adb: Update use of Except.Id.Full_Name.
26541 Minor reformatting.
26542 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
26544 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
26545 Move with clauses outside Warnings Off now that dependent units are
26547 Use raise xxx with "..."; Ada 2005 form.
26549 * a-taside.ads, a-taside.adb:
26550 Remove some dependencies, to make it easier to make this unit truly
26552 Rewrite some code to be conformant with Preelaborate rules.
26554 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
26555 marked Preelaborate in the future.
26557 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
26558 these units Preelaborate.
26560 * s-exctab.adb: Update use of Except.Id.Full_Name.
26562 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
26563 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
26564 Set_Exc_Stack_Addr): Removed, no longer used.
26565 Remove reference to *Machine_State_Addr*, no longer needed.
26567 * s-stalib.ads: Mark this unit as Preelaborate[_05].
26568 (Exception_Data): Full_Name is now a System.Address so that this unit
26569 can be made Preelaborate.
26570 Clean up/simplify code thanks to Full_Name being a System.Address.
26571 Remove obsolete pragma Suppress (All_Checks), no longer needed.
26573 * s-taskin.ads, s-taskin.adb:
26574 Move with clauses outside Warnings Off now that dependent units are
26576 Make this unit Preelaborate.
26577 (Initialize): New proceduure, replace elaboration code and makes the
26578 set up of the tasking run-time cleaner.
26579 (Detect_Blocking): Now a function instead of a deferred boolean, to
26580 obey Preelaborate rules.
26582 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
26583 soft links, no longer used.
26585 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
26586 packages are suitable for this categorization.
26588 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
26589 since we compile run-time sources in Ada 2005 mode.
26590 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
26591 avoid having s-taprop*.adb depend on s-soflin and to avoid code
26593 Remove reference to *Machine_State_Addr*, no longer needed.
26595 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26597 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
26598 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26599 Remove reference to System.Exceptions.
26601 * s-mastop-x86.adb: Removed, no longer used.
26603 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
26605 * a-excach.adb: Minor reformatting.
26607 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
26608 instead fix new warnings that were hidden by this change.
26609 (AAA, ZZZ): Removed, replaced by...
26610 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
26611 are used instead of constants, to help make Ada.Exception truly
26613 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
26614 Raise_Storage_Error): File is now a System.Address, to simplify code.
26615 (Elab code): Removed, no longer used.
26616 (Null_Occurrence): Remove Warnings Off and make this construct
26618 Remove code related to front-end zero cost exception handling, since
26619 it is no longer used.
26620 Remove -gnatL/-gnatZ switches.
26622 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
26623 Update use of Except.Msg.
26625 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
26626 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
26627 to front-end zero cost exception handling, since it is no longer used.
26628 Remove -gnatL/-gnatZ switches.
26630 * lib-writ.ads: Minor reformatting
26633 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
26635 * Make-lang.in: Remove references to s-except.ads
26637 * s-except.ads: Removed, no longer used.
26639 * s-mastop.ads, s-mastop.adb:
26640 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26641 Remove reference to System.Exceptions.
26643 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
26644 switch-b.adb: Remove code related to front-end zero cost exception
26645 handling, since it is no longer used.
26646 Remove -gnatL/-gnatZ switches.
26648 2005-09-01 Robert Dewar <dewar@adacore.com>
26649 Gary Dismukes <dismukes@adacore.com>
26650 Javier Miranda <miranda@adacore.com>
26652 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
26653 type by valid test and generate warning.
26654 (Tagged_Membership): Generate call to the run-time
26655 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
26656 Change formal name Subtype_Mark to Result_Definition in several calls to
26657 Make_Function_Specification.
26658 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
26659 check for proper accessibility of the operand of a class-wide allocator.
26660 The check can be left out if checks are suppressed or if the expression
26661 has a specific tagged type whose level is known to be safe.
26663 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
26664 generates the run-time check associated with null-excluding entities.
26665 (Expand_N_Return_Statement): Add tests to determine if the accessibility
26666 check on the level of the return expression of a class-wide function
26667 can be elided. The check usually isn't needed if the expression has a
26668 specific type (unless it's a conversion or a formal parameter). Also
26669 add a test for whether accessibility checks are suppressed. Augment
26670 the comments to describe the conditions for performing the check.
26672 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
26673 Javier Miranda <miranda@adacore.com>
26674 Gary Dismukes <dismukes@adacore.com>
26675 Ed Schonberg <schonberg@adacore.com>
26677 * a-tags.adb (IW_Membership): Give support to
26678 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
26679 subprogram has been extended to look for the tag in the ancestors tag
26681 Update the structure of the GNAT Dispatch Table to reflect the
26682 additional two tables used in dispatching selects.
26683 Introduce appropriate array types and record components in
26684 Type_Specific_Data to reflect the two tables.
26685 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
26686 the TSD of a tag, indexed by position.
26687 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
26688 operation kind in the TSD of a tag, indexed by position.
26690 * a-tags.ads: Introduce an enumeration type to capture different
26691 primitive operation kinds. Define a constant reflecting the number of
26692 predefined primitive operations.
26693 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
26694 of an entry wrapper.
26695 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
26696 callable entity of a primitive operation.
26698 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
26699 primitive operations used in dispatching selects for limited
26700 interfaces, limited tagged, task and protected types what implement a
26702 (Freeze_Type): Generate the bodies of the primitive operations used in
26703 dispatching selects for limited tagged, task and protected types that
26704 implement a limited interface. Generate statements to populate the two
26705 auxiliary tables used for dispatching in select statements.
26706 (Freeze_Record_Type): Add call to initialize the dispatch table entries
26707 associated with predefined interface primitive operations.
26708 (Build_Dcheck_Function): Change Set_Subtype_Mark to
26709 Set_Result_Definition.
26710 (Build_Variant_Record_Equality): Change Subtype_Mark to
26712 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
26713 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
26714 (Build_Assignment): Simplify the code that adds the run-time-check.
26715 (Expand_N_Object_Declaration): Code cleanup.
26717 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
26718 entries when there is a protected type that implements a limited
26721 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
26722 common routines used in expansion of dispatching selects.
26723 (Add_Private_Declarations): Select the appropriate protection type when
26724 there is a protected type that implements a limited interface.
26725 (Build_Parameter_Block): Generate a wrapped parameter block.
26726 (Build_Protected_Subprogram_Body): Select the appropriate type for
26727 locking entries when there is a protected type that implements a
26729 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
26730 classified as entry wrappers.
26731 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
26732 asynchronous selects.
26733 (Expand_N_Conditional_Entry_Call): Add support for expansion of
26734 dispatching conditional selects.
26735 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
26736 protection when there is a protected type that implements limited
26738 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
26740 (Extract_Dispatching_Call): Extract the entity of the name of a
26741 dispatching call, the object parameter, actual parameters and
26742 corresponding formals.
26743 (Make_Initialize_Protection): Correct logic of protection initialization
26744 when there is a protected type that implements a limited interface.
26745 (Parameter_Block_Pack): Populate a wrapped parameter block with the
26746 values of actual parameters.
26747 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
26748 block and assign them to the original actual parameters.
26750 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
26751 (Build_Protected_Sub_Specification): Change the type and name of the
26752 last formal to account for the increased variety of protection modes.
26754 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
26755 entities. Used to save the value of the Is_Hidden attribute when the
26756 limited-view is installed.
26757 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
26758 the attribute of procedures classified as entry wrappers.
26759 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
26760 entity of a primitive wrapper.
26761 (Write_Entity_Flags): Output the name and value of the
26762 Is_Primitive_Wrapper attribute.
26763 (Write_Field27_Name): Output the name and entity of the field Wrapped_
26765 (Underlying_Type): If we have an incomplete entity that comes from
26766 the limited view then we return the Underlying_Type of its non-limited
26767 view if it is already available.
26768 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
26769 including operators.
26770 (Write_Field26_Name): Add entry for Overridden_Operation
26771 (Overridden_Operation): New attribute of functions and procedures.
26773 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
26774 predefined position in the dispatch table for the primitive operations
26775 used in dispatching selects.
26776 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
26777 predefined primitive operations and replace it with
26778 Default_Prim_Op_Count.
26779 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
26780 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
26781 the names of the generated primitive operations used in dispatching
26783 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
26784 case of abstract interface types. They will be inherit by the objects
26785 implementing the interface.
26786 (Make_DT): There is no need to inherit the dispatch table of the
26787 ancestor interface for the elaboration of abstract interface types.
26788 The dispatch table will be inherited by the object implementing the
26790 (Copy_Secondary_DTs): Add documentation.
26791 (Validate_Position): Improve this static check in case of
26792 aliased subprograms because aliased subprograms must have
26794 (Init_Predefined_Interface_Primitives): New subprogram that initializes
26795 the entries associated with predefined primitives of all the secondary
26797 (Build_Anonymous_Access_Type): Removed.
26798 (Expand_Interface_Actuals): With the previous cleanup there is no need
26799 to build an anonymous access type. This allows further cleanup in the
26800 code generated by the expander.
26801 (Expand_Interface_Conversion): If the actual is an access type then
26802 build an internal function to handle the displacement. If the actual
26803 is null this function returns null because no displacement is
26804 required; otherwise performs a type conversion that will be
26805 expanded in the code that returns the value of the displaced actual.
26806 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
26807 conversions that have no effect in the generated code because no
26808 displacement is required. Code cleanup; use local variables to
26809 avoid repeated calls to the subprogram directly_designated_type().
26811 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
26812 Classify the primitive operations used in dispatching selects as
26814 (Implements_Limited_Interface): Determine whether some type either
26815 directly implements a limited interface or extends a type that
26816 implements a limited interface.
26817 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
26818 (Expand_Subtype_From_Expr): Do not build actual subtype if the
26819 expression is limited.
26820 (Find_Interface_Tag): Add code to handle class-wide types and
26821 entities from the limited-view.
26823 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
26824 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
26825 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
26826 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
26829 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
26830 of procedure name or prefix that appears as a trigger in a triggering
26833 * uintp.ads: Introduce constants Uint_11 and Uint_13.
26835 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26837 * s-tataat.adb, a-tasatt.adb:
26838 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
26840 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
26841 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
26842 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
26845 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26846 Jose Ruiz <ruiz@adacore.com>
26848 * s-taprop-vxworks.adb:
26849 Move with clauses outside Warnings Off now that dependent units are
26851 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
26852 initialization of this unit.
26853 (Specific): Add new procedures Initialize and Delete so that this
26854 package can be used for VxWorks 5.x and 6.x
26855 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
26856 differences between VxWorks 5.x and 6.x
26857 Minor reformatting.
26858 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
26860 Use only Preelaborate-compatible constructs.
26862 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
26863 Primitives.Operations.
26864 (Delete, Initialize): New procedures.
26866 * s-osinte-vxworks.adb: Body used to handle differences between
26867 VxWorks 5.x and 6.x
26868 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
26870 * s-osinte-vxworks.ads: Minor reformatting.
26871 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
26872 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
26874 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
26875 between Vxworks 5 and 6.
26876 (taskLock, taskUnlock): Removeed, no longer used.
26878 * adaint.c: The wait.h header is not located in the sys directory on
26879 VxWorks when using RTPs.
26880 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
26882 (__gnat_dup): dup is available on Vxworks when using RTPs.
26883 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
26885 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
26887 * expect.c: The wait.h header is not located in the sys directory on
26888 VxWorks when using RTPs.
26890 2005-09-01 Thomas Quinot <quinot@adacore.com>
26892 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
26894 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
26896 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
26897 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26898 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
26899 g-soccon-freebsd.ads: Add new constants:
26901 SO_RCVTIMEO/SO_SNDTIMEO
26905 Move all target-specific file inclusions and macro definitions to
26906 gsocket.h, in order to ensure that any C code in socket.c will see a
26907 set of constants that is consistent with the contents of g-soccon.ads.
26909 * gsocket.h: Code imported from gen-soccon.c:
26910 Move all target-specific file inclusions and macro definitions to
26911 gsocket.h, in order to ensure that any C code in socket.c will see a set
26912 of constants that is consistent with the contents of g-soccon.ads.
26913 This change also makes gen-soccon self-contained (removing dependencies
26914 upon GCC internal headers).
26916 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
26918 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
26920 * socket.c: Minor reformatting.
26922 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26923 Thomas Quinot <quinot@adacore.com>
26925 * fname-sf.adb, mlib-tgt.ads,
26926 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
26927 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
26928 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
26929 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
26930 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
26931 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
26932 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
26933 makegpr.adb: Remove redundant use_clauses.
26935 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26937 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
26938 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
26939 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
26940 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
26941 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
26942 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
26943 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
26944 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
26945 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26946 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
26947 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
26948 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
26949 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
26950 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
26951 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
26952 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
26953 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26954 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
26955 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
26956 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
26957 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
26958 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
26959 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
26960 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
26961 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
26962 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
26963 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
26964 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
26965 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
26966 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
26967 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
26968 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
26969 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
26970 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
26971 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
26972 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
26973 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
26974 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
26975 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
26976 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
26977 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
26978 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
26979 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
26980 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
26981 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
26982 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
26983 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
26984 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
26985 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
26986 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
26987 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
26988 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
26989 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
26990 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
26991 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
26992 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
26993 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
26994 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
26995 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
26996 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
26997 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
26998 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
26999 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
27000 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
27001 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
27002 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
27003 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
27004 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
27005 and always use the no parameter form for consistency.
27007 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
27009 2005-09-01 Robert Dewar <dewar@adacore.com>
27011 * binde.adb: Minor reformatting
27012 (Find_Elab_Order): Output warning if -p used with static elab order
27014 2005-09-01 Robert Dewar <dewar@adacore.com>
27016 * checks.adb (Check_Needed): New procedure, deals with removing checks
27017 based on analysis of short-circuited forms. Also generates warnings for
27018 improper use of non-short-circuited forms.
27021 2005-09-01 Robert Dewar <dewar@adacore.com>
27023 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
27026 2005-09-01 Robert Dewar <dewar@adacore.com>
27028 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
27030 Implement new insertion char < (conditional warning)
27031 * errutil.adb, erroutc.adb: Implement new insertion char <
27032 (conditional warning).
27033 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
27034 (Error_Msg_Warn): New variable for < insertion char.
27035 * prj-nmsc.adb: Implement new errout insertion char < (conditional
27037 (Check_For_Source): Change value of Source_Id only after the current
27038 source has been dealt with.
27040 2005-09-01 Robert Dewar <dewar@adacore.com>
27041 Doug Rupp <rupp@adacore.com>
27043 * exp_attr.adb: Handle vax fpt for 'Valid attribute
27044 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
27045 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
27046 (Valid_D, Valid_F, Valid_G): New functions
27048 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27049 Hristian Kirtchev <kirtchev@adacore.com>
27050 Javier Miranda <miranda@adacore.com>
27052 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
27053 from object notation, the original node is unanalyzed and carries no
27054 semantic information, so that accessiblity checks must be performed on
27055 the type of the actual itself.
27056 (Expand_N_Subprogram_Declaration): Change last actual parameter for
27057 compatibility with Build_Protected_Sub_Specification.
27058 (Check_Overriding_Inherited_Interfaces): Add suport to handle
27059 overloaded primitives.
27060 (Register_Interface_DT_Entry): Use the new name of the formal
27061 the the calls to Expand_Interface_Thunk
27063 * exp_dbug.ads: Augment comments on encoding of protected types to
27064 include the generation of dispatching subprograms when the type
27065 implements at least one interface.
27067 * lib.ads: Extend information in Load_Stack to include whether a given
27068 load comes from a Limited_With_Clause.
27070 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
27071 whether a potential circularity is harmless, because it includes units
27072 loaded through a limited_with clause. Extends previous treatment which
27073 did not handle properly arbitrary combinations of limited and
27074 non-limited clauses.
27076 2005-09-01 Nicolas Setton <setton@adacore.com>
27078 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
27079 to be encoded as typ___XBLU_lowerbound__upperbound instead of
27080 typ___XB_lowerbound__upperbound.
27082 2005-09-01 Thomas Quinot <quinot@adacore.com>
27084 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
27085 dummy access formal for RACW/RAS TypeCode TSS.
27086 (Build_TypeCode_Call): Do not generate dummy null access actual for
27087 calls to the TypeCode TSS.
27089 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27091 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
27092 fully qualified name, to distinguish instances with the same local name.
27094 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
27097 2005-09-01 Robert Dewar <dewar@adacore.com>
27099 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
27102 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
27104 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
27105 (Free): New deallocation procedure for filter elements
27106 (Close): Deallocate any existing filter for the concerned connection
27108 2005-09-01 Laurent Pautet <pautet@adacore.com>
27110 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
27111 position set is provided, we compute one in order to reduce the maximum
27112 length of the keys. This computation first selects a character
27113 position between 1 and the minimum length of the keys in order to
27114 avoid reducing one of the keys to an empty string.
27115 (Initialize, Compute): When the ratio V to K is too low, the algorithm
27116 does not converge. The initialization procedure now comes with a
27117 maximum number of iterations such that when exceeded, an exception is
27118 raised in Compute. The user can initialize this ratio to another value
27120 Reformating and updated headers.
27122 2005-09-01 Javier Miranda <miranda@adacore.com>
27124 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
27125 that given an entity T creates and returns an Itype that duplicates the
27126 contents of T. The returned Itype has the null-exclusion
27127 attribute set to True, and its Etype attribute references T
27128 to keep the association between the two entities.
27129 Update copyright notice
27131 * sem_aggr.adb (Check_Can_Never_Be_Null,
27132 Aggregate_Constraint_Checks, Resolve_Aggregate,
27133 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
27135 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
27137 2005-09-01 Gary Dismukes <dismukes@adacore.com>
27138 Robert Dewar <dewar@adacore.com>
27139 Hristian Kirtchev <kirtchev@adacore.com>
27141 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
27144 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
27146 Call Set_Result_Definition instead of Set_Subtype_Mark.
27147 (P_Subprogram_Specification): Add parsing of anonymous access result
27148 plus null exclusions. Call Set_Result_Definition instead of
27151 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27152 (P_Access_Type_Definition): Add parsing for an anonymous access result
27153 subtype, plus parsing for null exclusions. Call Set_Result_Definition
27154 instead of Set_Subtype_Mark.
27156 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27157 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
27158 (Result_Definition): New function for N_Function_Specifications.
27159 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
27160 N_Function_Specification.
27161 (Set_Null_Exclusion_Present): Allow this flag for
27162 N_Function_Specification.
27163 (Set_Result_Definition): New procedure for N_Function_Specifications.
27164 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
27165 and N_Function_Specification.
27167 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
27168 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
27169 Add support for LIMITED NEW for Ada 2005 AI-419
27170 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
27171 syntax for anonymous access results.
27172 Replace Subtype_Mark field by Result_Definition in
27173 N_Function_Specification and N_Access_Definition specs.
27174 Add Null_Exclusion_Present to spec of N_Function_Specification.
27175 (Result_Definition): New function for N_Function_Specification and
27176 N_Access_Function_Definition.
27177 (Set_Result_Definition): New procedure for N_Function_Specification and
27178 N_Access_Function_Definition.
27180 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
27181 Result_Definition for cases of N_Access_Function_Definition and
27182 N_Function_Specification.
27183 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
27185 2005-09-01 Vincent Celier <celier@adacore.com>
27187 * lib-writ.adb: Update Copyright notice
27188 (Write_With_Lines): On platforms where file names are case-insensitive,
27189 record the file names in lower case.
27190 (Write_ALI): For D lines, on platforms where file names are
27191 case-insensitive, record the file names in lower case.
27193 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27194 Emmanuel Briot <briot@adacore.com>
27196 * lib-xref.adb (Output_Overridden_Op): Display information on
27197 overridden operation.
27199 * lib-xref.ads: Add documentation on overridden operations.
27201 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
27204 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
27205 overriding entity information.
27207 2005-09-01 Vincent Celier <celier@adacore.com>
27209 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
27210 including those that are inherited.
27212 2005-09-01 Robert Dewar <dewar@adacore.com>
27214 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
27216 * par-prag.adb: Implement new pragma Debug_Policy
27218 * sem_prag.adb Implement new pragma Debug_Policy
27219 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
27220 Component_Size attribute specification. Give warning for ignored pragma
27223 * snames.h, snames.ads, snames.adb: Introduce entries in
27224 Preset_Names for Name_Disp_Asynchronous_Select,
27225 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
27226 Name_Disp_Timed_Select.
27227 New pragma Debug_Policy
27229 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
27231 Switch -gnata also sets Debug_Pragmas_Enabled
27233 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
27234 handle an explicit -gnata when compiling predefined files.
27236 2005-09-01 Vincent Celier <celier@adacore.com>
27238 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
27239 directories of projects that have no Ada sources.
27241 2005-09-01 Robert Dewar <dewar@adacore.com>
27243 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
27244 (makes a difference for wide characters)
27246 * widechar.adb, widechar.ads:
27247 Add Wide_Char_Byte_Count feature to count chars vs bytes
27249 2005-09-01 Thomas Quinot <quinot@adacore.com>
27250 Ed Schonberg <schonberg@adacore.com>
27251 Robert Dewar <dewar@adacore.com>
27253 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
27254 'Address attribute reference with an overloaded prefix, use the
27255 location of the prefix (not the location of the attribute reference) as
27256 the error location.
27257 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
27258 a function renaming thereof, is a valid prefix for 'Size (where it is
27259 intepreted as a function call).
27260 (Statically_Denotes_Entity): New predicate to determine whether the
27261 prefix of an array attribute can be considered static.
27264 (Eval_Attr): Fix failure to evaluate Component_Size for
27265 unconstrained arrays (resulted in wrong value in packed case, since
27266 back end cannot handle this case)
27268 2005-09-01 Robert Dewar <dewar@adacore.com>
27270 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
27271 error msgs for most common cases.
27272 Use new errout insertion char < (conditional warning)
27274 2005-09-01 Javier Miranda <miranda@adacore.com>
27275 Ed Schonberg <schonberg@adacore.com>
27277 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
27278 become local to the whole package.
27279 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
27280 the package was already analyzed the new algorithm "replaces" the
27281 real entities by the shadow ones. This is required to ensure that
27282 the order of these entities in the homonym chains does not change;
27283 otherwise we can have undefined references at linking time because
27284 in case of conflicts the external name of the entities will have
27285 a suffix that depends on the order of the entities in the chain.
27286 (Remove_Limited_With_Clause): Complementary code that completes the
27287 new algorithm and replaces the shadow entities by the real ones.
27288 (Install_Limited_Withed_Unit): When unchaining entities before the
27289 installation of the shadow entities, only regular entities of the
27290 public part must be taken into account. This is required to
27291 keep this routine in synch with the work done by Remove_Limited_
27293 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
27294 even if unit is analyzed, because the analysis of the unit is
27295 idempotent in any case, and the limited view of the unit may have to
27296 be installed for proper visibility.
27297 (Expand_Limited_With_Clause): Even if the unit in the implicit
27298 with_clause has been analyzed already, a limited view of the package
27299 must be built for the current context, if it does not exist yet.
27301 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27302 Javier Miranda <miranda@adacore.com>
27303 Gary Dismukes <dismukes@adacore.com>
27305 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
27306 defining entity for the instance body, make a new defining identifier
27307 rather than copying the entity of the spec, to prevent accidental
27308 sharing of the entity list.
27309 (Check_Private_View): When exchanging views of private types, build the
27310 list of exchanged views as a stack, to ensure that on exit the exchanges
27311 are undone in the proper order.
27312 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
27313 Restore the compilation environment in case of instantiation_error.
27314 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
27315 for an anonymous access result.
27316 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
27317 (Formal_Entity): Handle properly the case of a formal package that
27318 denotes a generic package renaming.
27320 2005-09-01 Thomas Quinot <quinot@adacore.com>
27322 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
27323 clause if the array aggregate is surrounded by parentheses.
27325 2005-09-01 Cyrille Comar <comar@adacore.com>
27326 Gary Dismukes <dismukes@adacore.com>
27327 Ed Schonberg <schonberg@adacore.com>
27328 Javier Miranda <miranda@adacore.com>
27330 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
27332 to check if a type is Constrained in cases related to code generation
27333 (rather than semantic checking) since otherwise we do not generate
27334 similar code for mutable private types depending if their
27335 discriminants are visible or not.
27336 (Check_Abstract_Overriding): Do not complain about failure to override
27337 the primitive operations used in dispatching selects since they will
27338 always be overriden at the freeze point of the type.
27339 (Access_Definition): Separate out handling for resetting the scope
27340 of an anonymous access function result type. Retrieve the scope
27341 of the associated function rather than using Current_Scope, which
27342 does not have a consistent value (depends on whether we're in the
27343 middle of analyzing formal parameters). Add ??? comment about
27344 finding a cleaner way to handle the special cases of scope setting.
27345 (Process_Incomplete_Dependents): A protected operation is never a
27346 dispatching operation (only its wrapper may be).
27347 (Build_Derived_Record_Type): In case of tagged private types that
27348 implement interfaces add derivation of predefined primitive
27350 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
27351 by two parameters that are used in case of derivation from abstract
27352 interface types: No_Predefined_Prims is used to avoid the derivation
27353 of predefined primitives from the interface, and Predefined
27354 Prims_Only is used to complete the derivation predefined primitives
27355 in case of private tagged types implementing interfaces.
27356 Fix typo in comments
27357 (Find_Interface_In_Descendant): Protect the frontend against
27358 wrong code with large circularity chains.
27359 (Is_Private_Overriding): Add support for entities overriding interface
27360 subprograms. The test failed because Entities associated with overriden
27361 interface subprograms are always marked as hidden (and used to build
27362 the secondary dispatch table); in this case the overriden entity is
27363 available through the field abstract_interface_alias (cf. override_
27364 dispatching_operation)
27365 (Access_Definition): Set the scope of the type to Current_Scope for the
27366 case of a function with an anonymous access result type.
27367 (Access_Subprogram_Declaration): Handle creation of the type entity for
27368 an access-to-function type with an anonymous access result.
27369 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
27370 in handling for N_Access_Function_Definition.
27371 (Analyze_Subtype_Declaration): Modify the text of error message.
27372 (Derived_Type_Declaration): Modify the text of error message.
27373 (Process_Subtype): Modify the text of error message plus cleanup
27374 of one redundant error message.
27375 (Analyze_Component_Declaration): Code cleanup.
27376 (Analyze_Object_Declaration): Code cleanup.
27377 (Analyze_Subtype_Declaration): Propagate the null-exclusion
27378 attribute in case of access types. Code cleanup.
27379 (Array_Type_Declaration): Code cleanup.
27380 (Process_Discriminants): Create the new null-excluding itype
27381 if required. Code cleanup.
27382 (Process_Subtype): Create the new null-excluding itype if
27383 required. Code cleanup.
27384 (Build_Derived_Record_Type): Code cleanup to avoid calling
27385 twice the subprogram derive_subprograms in case of private
27386 types that implement interfaces. In this particular case the
27387 subprogram Complete_Subprograms_Derivation already does the
27388 job associated with the second call.
27390 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
27391 conversion to the full view when generating an operation for a
27392 discriminant whose type may currently be private.
27394 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27395 Javier Miranda <miranda@adacore.com>
27397 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
27398 V (Obj.F), the rewriting does not involve the indexed component, but
27399 only the selected component itself.
27400 Do not apply the transformation if the analyzed node is an actual of a
27401 call to another subprogram.
27402 (Complete_Object_Operation): Retain the entity of the
27403 dispatching operation in the selector of the rewritten node. The
27404 entity will be used in the expansion of dispatching selects.
27405 (Analyze_One_Call): Improve location of the error message associated
27407 (Analyze_Selected_Component): No need to resolve prefix when it is a
27408 function call, resolution is done when parent node is resolved, as
27410 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
27411 when attempting to resolve a call transformed from its object notation.
27412 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
27413 of the argument list for each interpretation of the operation.
27414 (Try_Object_Operation): The designated type of an access parameter may
27415 be an incomplete type obtained through a limited_with clause, in which
27416 case the primitive operations of the type are retrieved from its full
27418 (Analyze_Call): If this is an indirect call, and the return type of the
27419 access_to_subprogram is incomplete, use its full view if available.
27421 2005-09-01 Javier Miranda <miranda@adacore.com>
27422 Gary Dismukes <dismukes@adacore.com>
27424 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
27425 access types the null-exclusion and access-to-constant attributes must
27427 (Analyze_Return_Statement): When the result type is an anonymous access
27428 type, apply a conversion of the return expression to the access type
27429 to ensure that appropriate accessibility checks are performed.
27430 (Analyze_Return_Type): For the case of an anonymous access result type,
27431 generate the Itype and set Is_Local_Anonymous_Access on the type.
27432 Add ??? placeholder for check to disallow returning a limited object
27433 in Ada 2005 unless it's an aggregate or a result of a function call.
27434 Change calls from Subtype_Mark to Result_Definition.
27435 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
27436 Result_Definition in call to Make_Function_Specification.
27437 (Build_Body_To_Inline): Change Set_Subtype_Mark to
27438 Set_Result_Definition.
27439 (Make_Inequality_Operator): Change formal Subtype_Mark to
27440 Result_Definition in call to Make_Function_Specification.
27441 (Process_Formals): Create the new null-excluding itype if required.
27442 (New_Overloaded_Entity): For an entity overriding an interface primitive
27443 check if the entity also covers other abstract subprograms in the same
27444 scope. This is required to handle the general case, that is, overriding
27445 other interface primitives and overriding abstract subprograms inherited
27446 from some abstract ancestor type.
27447 (New_Overloaded_Entity): For an overriding entity that comes from
27448 source, note the operation that it overrides.
27449 (Check_Conformance, Type_Conformant): Addition of one new formal
27450 to skip controlling formals in the analysis. This is used to
27451 handle overloading of abstract interfaces.
27452 (Base_Types_Match): Add missing case for types imported from
27453 limited-with clauses
27454 (New_Overloaded_Entity): Add barrier to protect the use of
27455 the "alias" attribute.
27457 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27459 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
27460 verify that the procedure and the entry are mode conformant.
27461 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
27462 as a different operator, which is often a cut-and-paste error.
27464 2005-09-01 Javier Miranda <miranda@adacore.com>
27465 Ed Schonberg <schonberg@adacore.com>
27467 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
27468 used in controlling parameters exclude null because it is necessary to
27469 read the tag to dispatch, and null has no tag.
27470 (Override_Dispatching_Operation): If the previous operation is inherited
27471 from an interface, it becomes hidden and does not participate in later
27474 2005-09-01 Javier Miranda <miranda@adacore.com>
27475 Ed Schonberg <schonberg@adacore.com>
27476 Gary Dismukes <dismukes@adacore.com>
27478 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
27479 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
27480 the expander will generate the corresponding run-time check to evaluate
27482 (Resolve_Call): Check for legal type of procedure name or prefix that
27483 appears as a trigger in a triggering alternative.
27484 (Valid_Conversion): If expression is ambiguous and the context involves
27485 an extension of System, remove System.Address interpretations.
27486 (Resolve_Qualified_Expression): Reject the case of a specific-type
27487 qualification applied to a class-wide argument. Enhance comment
27488 to explain checking of Original_Node.
27489 (Resolve_Type_Conversion): The location of the error message was not
27490 general enough to handle the general case and hence it has been removed.
27491 In addition, this patch improves the text of the message.
27492 (Resolve_Type_Conversion): Add missing support for access to interface
27494 (Resolve_Type_Conversion): If the target is a class-wide interface type,
27495 do not expand if the expression is the actual in a call, because proper
27496 expansion will take place when the call itself is expanded.
27497 (Resolve_Allocator): If the context is an unchecked conversion, the
27498 allocator inherits its storage pool, if any, from the target type of
27501 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27502 Javier Miranda <miranda@adacore.com>
27504 * sem_type.adb (Add_One_Interp): If a candidate operation is an
27505 inherited interface operation that has an implementation, use the
27506 implementation to avoid spurious ambiguities.
27507 (Interface_Present_In_Ancestor): In case of concurrent types we can't
27508 use the Corresponding_Record_Typ attribute to look for the interface
27509 because it is set by the expander (and hence it is not always
27510 available). For this reason we traverse the list of interfaces
27511 (available in the parent of the concurrent type).
27512 (Interface_Present_In_Ancestor): Handle entities from the limited view
27514 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27516 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
27517 from the list of required components.
27518 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
27519 primitive procedure of a limited interface with a controlling first
27521 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
27523 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
27524 capture if it is generated in the second operand of a short-circuit
27526 Do not capture values for variables with address clauses.
27527 (Is_Object_Reference): Treat a function call as an object reference only
27528 if its type is not Standard_Void_Type.
27530 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27532 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
27533 to a variable that is statically known to be constant.
27535 2005-09-01 Geert Bosch <bosch@adacore.com>
27536 Robert Dewar <dewar@adacore.com>
27538 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
27539 (VAXGF_Safe_First): Idem.
27541 2005-09-01 Robert Dewar <dewar@adacore.com>
27542 Arnaud Charlet <charlet@adacore.com>
27544 * g-dirope.ads: Minor reformatting
27545 Document that bounds of result of Base_Name match the input index
27547 Add documentation on environment variable syntax for Expand_Path
27549 * gnat_ugn.texi: Update documentation to include mention of -m switches
27550 Document new treatment of wide characters in max line length
27552 Remove -gnatL/-gnatZ switches, no longer used.
27553 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
27556 * gnat_rm.texi: Add doc for two argument form of pragma
27557 Float_Representation.
27558 Add documentation for pragma No_Strict_Aliasing
27559 Add note that explicit component clause overrides pragma Pack.
27560 Add documentation of pragma Debug_Policy
27562 2005-09-01 Matthew Heaney <heaney@adacore.com>
27564 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
27565 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
27566 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
27567 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
27568 draft (Draft 13, August 2005) of Ada Amendment 1.
27570 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27572 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
27573 Note that the platform-specific version of g-soccon.ads for VMS is now
27574 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
27575 really is a package spec).
27576 Replace s-taspri-linux.ads by s-taspri-posix.ads
27577 Remove references to s-mastop-x86.adb
27579 * system-vxworks-xscale.ads: Removed, no longer used.
27580 * s-vxwork-xscale.ads: Removed, no longer used.
27582 2005-09-01 Robert Dewar <dewar@adacore.com>
27584 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
27585 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
27586 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
27587 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
27588 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
27589 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
27590 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
27591 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
27592 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
27593 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
27594 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
27595 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
27596 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
27597 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
27598 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
27599 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
27600 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
27601 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
27602 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
27603 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
27604 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
27606 2005-08-29 Arnaud Charlet <charlet@adacore.com>
27610 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
27612 2005-08-29 Arnaud Charlet <charlet@adacore.com>
27613 Doug Rupp <rupp@adacore.com>
27615 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
27617 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
27618 this code in the GNAT run-time.
27620 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
27623 * init.c (__gnat_error_handler [many]): Mark "msg" as const
27624 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
27626 (__gnat_inside_elab_final_code): Moved here from
27627 Standard_Library and only defined for the compiler.
27628 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
27629 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
27630 using RTPs because directly vectored Interrupt routines are not
27631 supported on this configuration.
27632 (getpid): Do not redefine this function on VxWorks when using RTPs
27633 because this primitive is well supported by the RTP libraries.
27634 (copy_msg): Correct the code that checks for buffer overflow.
27635 Discovered during code reading.
27637 2005-08-29 Olivier Hainque <hainque@adacore.com>
27639 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
27640 a library level mutable variable with an initializer, tell
27641 build_allocator to ignore the initializer's size. It may not be large
27642 enough for all the values that might be assigned to the variable later
27645 2005-08-29 Arnaud Charlet <charlet@adacore.com>
27646 Eric Botcazou <ebotcazou@adacore.com>
27648 * trans.c: Protect < in error msg with quote
27649 Replace GCC_ZCX by Back_End_Exceptions.
27650 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
27651 has been sufficiently aligned in the record.
27653 2005-08-15 James E. Wilson <wilson@specifix.com>
27655 * system-linux-alpha.ads: Change ia64 to alpha.
27657 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
27659 * decl.c, utils.c: Fix comment typos.
27661 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
27663 * decl.c, init.c, initialize.c: Fix comment typos.
27665 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
27667 Make CONSTRUCTOR use VEC to store initializers.
27668 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
27670 * trans.c (extract_values): Likewise.
27671 * utils.c (convert, remove_conversions): Likewise.
27672 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
27673 gnat_build_constructor): Likewise.
27675 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
27677 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
27679 (compare_field_bitpos): Likewise.
27681 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
27683 * utils.c (create_var_decl): Only set DECL_COMMON on
27684 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
27685 VAR_OR_FUNCTION_DECL_P.
27687 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
27689 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
27692 2005-07-07 Pascal Obry <obry@adacore.com>
27694 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
27695 returned type on Windows.
27697 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
27700 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
27701 exception in this case.
27702 Simplify the code as "Image (Image'Range)" = "Image".
27704 2005-07-07 Vincent Celier <celier@adacore.com>
27706 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
27707 the destructor/constructor attributes for <lib>final/<lib>init.
27709 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
27711 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
27713 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
27714 type if the parameter is not passed by copy but reference by default.
27716 2005-07-07 Javier Miranda <miranda@adacore.com>
27718 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
27719 Reimplementation of the support for abstract interface types in order
27720 to leave the code more clear and easy to maintain.
27722 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
27723 abstract interface types in order to leave the code clearer and easier
27726 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
27727 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
27728 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
27729 appropriate entry of the secondary dispatch table.
27730 (Make_DT): Add code to inherit the secondary dispatch tables of
27733 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
27734 implementing both functionalities by means of a common routine, each
27735 routine has its own code.
27737 2005-07-07 Javier Miranda <miranda@adacore.com>
27739 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
27741 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
27744 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27747 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
27748 use of tag incomplete types.
27750 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
27751 give support to tagged incomplete types.
27753 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
27754 expression is a discriminant reference and its type is private, as can
27755 happen within a stream operation for a mutable record, use the full
27756 view of the type to resolve the case alternatives.
27757 (Analyze_Assignment): Check wrong dereference of incomplete types.
27759 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
27762 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
27765 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
27766 N_Incomplete_Type_Declaration nodes.
27768 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
27769 Tag_Present to give support to tagged incomplete types:
27771 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27774 2005-07-07 Olivier Hainque <hainque@adacore.com>
27777 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
27778 definitions for the Unwind wrappers in the compiler case.
27780 2005-07-07 Ed Schonberg <schonberg@adacore.com>
27781 Javier Miranda <miranda@adacore.com>
27783 * par-load.adb (Load): If a child unit is loaded through a limited_with
27784 clause, each parent must be loaded as a limited unit as well.
27786 * sem_ch10.adb (Previous_Withed_Unit): Better name for
27787 Check_Withed_Unit. Return true if there is a previous with_clause for
27788 this unit, whether limited or not.
27789 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
27791 (Is_Visible_Through_Renamings): New local subprogram of install_limited
27792 _withed_unit that checks if some package installed through normal with
27793 clauses has a renaming declaration of package whose limited-view is
27794 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
27795 of the current Draft document for Ada 2005.
27796 (Analyze_Context): Complete the list of compilation units that
27797 are allowed to contain limited-with clauses. It also contains
27798 checks that were previously done by Install_Limited_Context_Clauses.
27799 This makes the code more clear and easy to maintain.
27800 (Expand_Limited_With_Clause) It is now a local subprogram of
27801 Install_Limited_Context_Clauses, and contains the code that adds
27802 the implicit limited-with clauses for parents of child units.
27803 This functionality was prevously done by Analyze_Context.
27805 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
27808 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
27809 been erroneously named in a limited-with clause of its own context.
27810 In this case the error has been previously notified by Analyze_Context.
27812 2005-07-07 Ed Schonberg <schonberg@adacore.com>
27814 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
27815 generic package that contains local declarations with the same name.
27816 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
27818 2005-07-07 Bernard Banner <banner@adacore.com>
27820 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
27821 ia64 platform only on platforms that you the GCC unwind library
27822 rather than the system unwind library.
27824 2005-07-07 Thomas Quinot <quinot@adacore.com>
27826 * expect.c: Minor reformatting
27828 2005-07-07 Sergey Rybin <rybin@adacore.com>
27830 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
27833 * gnat_ugn.texi: Add description for new gnatpp option
27836 2005-07-04 Thomas Quinot <quinot@adacore.com>
27838 * g-expect-vms.adb, g-expect.ads, g-expect.adb
27839 (Get_Command_Output): New subprogram to launch a process and get its
27840 standard output as a string.
27842 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27843 Olivier Hainque <hainque@adacore.com>
27845 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
27846 fetch a code-range descriptor associated with the machine state. On
27847 failure set the machine state's PC to 0; on success, pass the
27848 descriptor to exc_virtual_unwind.
27850 * init.c (Tru64 section): New function __gnat_set_code_loc.
27852 2005-07-04 Vincent Celier <celier@adacore.com>
27854 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27855 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27856 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
27857 Remove all auto-initialization code, as this is now done through the
27858 constructor mechanism.
27860 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
27861 __gnat_sals_init_using_constructors): New functions.
27863 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
27864 Linker_Constructor and Linker_Destructor when switch -a is used.
27866 * bindusg.adb: Add line for new switch -a
27868 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
27869 (Gnatbind): When switch -a is used, check if it is allowed
27871 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
27873 2005-07-04 Joel Brobecker <brobecker@adacore.com>
27875 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
27876 This prevents us from hitting a limitation during the debug info
27877 generation when using stabs.
27878 (Prims_Ptr): Likewise.
27880 2005-07-04 Gary Dismukes <dismukes@adacore.com>
27881 Ed Schonberg <schonberg@adacore.com>
27882 Javier Miranda <miranda@adacore.com>
27884 * checks.adb (Null_Exclusion_Static_Checks): In the case of
27885 N_Object_Declaration, only perform the checks if the Object_Definition
27886 is not an Access_Definition.
27888 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
27889 where the parent of an the access definition is an N_Object_Declaration
27890 when determining the Associated_Node_For_Itype and scope of an
27891 anonymous access-to-subprogram type.
27893 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
27894 Corresponding_Spec on the body created for a null procedure. Add ???
27895 comment. Remove New_Copy_Tree call on body argument to
27896 Set_Body_To_Inline.
27898 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
27899 discriminants, use the type of the actual as well, because the
27900 discriminants may be read by the called subprogram.
27902 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
27903 access type we do not need to handle non-limited views.
27904 (Build_Derived_Record_Type): Additional check to check that in case of
27905 private types, interfaces are only allowed in private extensions.
27907 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27909 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
27910 <Pragma_Linker_Destructor>: Likewise.
27912 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
27913 Pragma_Linker_Destructor.
27915 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
27916 ATTR_LINK_DESTRUCTOR.
27917 (static_ctors, static_dtors): New variables.
27919 * misc.c (gnat_expand_body): Output current function as constructor
27920 and destructor if requested.
27922 * par-prag.adb: Add processing for pragma Linker_Constructor and
27925 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
27926 extracted from Check_Interrupt_Or_Attach_Handler.
27927 (Check_Interrupt_Or_Attach_Handler): Invoke it.
27928 Implement pragma Linker_Constructor and Linker_Destructor with the
27929 help of Find_Unique_Parameterless_Procedure.
27930 Replace Name_Alias with Name_Target for pragma Linker_Alias.
27932 * snames.h, snames.ads, snames.adb:
27933 Add Name_Linker_Constructor and Name_Linker_Destructor.
27934 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
27935 * snames.adb: Remove Name_Alias.
27937 * trans.c: Include cgraph.h.
27938 (build_global_cdtor): New function.
27939 (Compilation_Unit_to_gnu): Build global constructor and destructor if
27941 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
27943 (addressable_p) <COMPONENT_REF>: Unconditionally test
27944 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
27946 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
27947 variable if it is external.
27949 (static_ctors, static_dtors): New global variables.
27950 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
27951 <ATTR_LINK_DESTRUCTOR>: Likewise.
27952 (end_subprog_body): Chain function as constructor and destructor
27955 * exp_util.adb (Force_Evaluation): Unconditionally invoke
27956 Remove_Side_Effects with Variable_Ref set to true.
27957 (Remove_Side_Effects): Handle scalar types first. Use a renaming
27958 for non-scalar types even if Variable_Ref is true and for class-wide
27961 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27963 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
27964 to prevent spurious warnings.
27966 2005-07-04 Thomas Quinot <quinot@adacore.com>
27968 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
27969 Itypes. Itypes are really unexpected there.
27970 (Build_TypeCode_Function): Generalise special processing for Itypes to
27971 handle the case of numeric implicit base types as well as enumerated
27974 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27976 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
27977 controlled, indicate the expected type of the dereference that is
27978 created for the call to Deep_Finalize, to prevent spurious errors when
27979 the designated type is private and completed with a derivation from
27980 another private type.
27982 2005-07-04 Vincent Celier <celier@adacore.com>
27984 * make.adb (Change_To_Object_Directory): When unable to change the
27985 current dir to the object directory, output the full path of the
27988 2005-07-04 Matthew Gingell <gingell@adacore.com>
27990 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
27992 * indepsw-linux.adb: Replace by...
27994 * indepsw-gnu.adb: ...this new file
27996 2005-07-04 Vincent Celier <celier@adacore.com>
27998 * mlib-prj.adb (Auto_Initialize): New constant String
27999 (SALs_Use_Constructors): New Boolean function
28000 (Build_Library): Call gnatbind with Auto_Initialize switch when
28001 SALs_Use_Constructors returns True.
28003 * mlib-tgt.ads: Minor reformatting
28005 * mlib-utl.ads: Minor reformatting
28007 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
28009 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28011 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
28012 single protected declarations can have an interface list.
28013 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
28014 with seriously malformed entry declarations, and lead to compilation
28015 abandoned messages.
28017 2005-07-04 Javier Miranda <miranda@adacore.com>
28019 * par-load.adb: Load the context items in two rounds.
28021 2005-07-04 Robert Dewar <dewar@adacore.com>
28023 * scng.adb: Do not consider Mod used as an attribute to be a keyword
28025 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28026 Javier Miranda <miranda@adacore.com>
28028 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
28029 type extension needs a limited view.
28030 Remove previous restriction on private types available through the
28031 limited-view (only tagged private types were previously allowed).
28032 (Install_Withed_Unit): In the code that implements the
28033 legality rule given in AI-377, exclude a child unit with the name
28034 Standard, because it is a homonym of the Standard environment package.
28036 2005-07-04 Thomas Quinot <quinot@adacore.com>
28038 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
28039 overloaded function call, carry interpretations from the original tree
28042 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28044 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
28045 types check whether some designated type is a limited view, and use
28046 the non-limited view if available.
28048 2005-07-04 Gary Dismukes <dismukes@adacore.com>
28050 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
28051 constraint of full view of a private view T1 if present, when T2 is a
28052 discriminated full view.
28054 2005-07-04 Thomas Quinot <quinot@adacore.com>
28056 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
28057 actual that is a view conversion of a bit packed array reference.
28059 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28061 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
28062 present before checking whether an interface type covers a synchronized
28065 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28067 * sem_util.adb (Is_Object_Reference): An indexed or selected component
28068 whose prefix is an implicit dereference is an object reference. Removes
28069 spurious errors when compiling with -gnatc.
28071 2005-07-04 Robert Dewar <dewar@adacore.com>
28074 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
28076 2005-07-04 Matthew Gingell <gingell@adacore.com>
28078 * tracebak.c: Enable tracebacks on ia64 platforms
28080 2005-07-04 Vincent Celier <celier@adacore.com>
28082 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
28083 the GNAT BIND command, as gnatbind accepts multiples ALI files with
28084 the -L or -n switches.
28086 2005-07-04 Vincent Celier <celier@adacore.com>
28088 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
28089 correctly computed and the main project data is not modified while
28091 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
28092 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
28093 c++linker as this does not work on some platforms.
28095 2005-07-04 Matthew Heaney <heaney@adacore.com>
28097 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
28099 * a-coinve.adb: Perform constraint checks explicitly.
28101 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28102 Thomas Quinot <quinot@adacore.com>
28104 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
28105 new target gen-soccon.
28107 2005-07-04 Robert Dewar <dewar@adacore.com>
28109 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
28111 2005-07-04 Thomas Quinot <quinot@adacore.com>
28113 * g-socket.ads (Check_Selector): Minor rewording of comment.
28115 2005-07-04 Vincent Celier <celier@adacore.com>
28117 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
28119 2005-07-04 Thomas Quinot <quinot@adacore.com>
28121 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
28123 2005-07-04 Sergey Rybin <rybin@adacore.com>
28125 * gnat_ugn.texi: Add description of --eol gnatpp option
28127 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28128 Thomas Quinot <quinot@adacore.com>
28130 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
28131 if the user wants all calls of a subprogram to be flagged,
28132 independently of whether they are made from within the same unit or
28134 Mention restriction for pragma Linker_Alias on some platforms.
28135 Document pragma Linker_Constructor and Linker_Destructor.
28136 Rewrite documentation of Weak_External, Linker_Section and
28137 Linker_Alias pragmas.
28139 2005-07-04 Arnaud Charlet <charlet@adacore.com>
28141 * s-stausa.ads, s-stausa.adb: New files.
28143 2005-06-30 Kelley Cook
28145 * all files: Update FSF address in copyright headers.
28146 * gen-soccon.co (main): Output new FSF address in generated files.
28148 2005-06-28 Paul Brook <paul@codesourcery.com>
28150 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
28152 2005-06-14 Olivier Hainque <hainque@adacore.com>
28153 Eric Botcazou <ebotcazou@adacore.com>
28155 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
28156 exc_unwind, now that we are generating proper .debug_frame output for
28159 * tracebak.c: Remove the mips-irix section, as we are now using the
28160 s-mastop based unwinder again.
28161 Under SPARC/Solaris, take into account the stack bias to compute the
28162 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
28165 2005-06-14 Doug Rupp <rupp@adacore.com>
28167 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
28169 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
28171 2005-06-14 Pascal Obry <obry@adacore.com>
28173 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
28174 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
28175 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
28178 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
28179 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
28180 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
28181 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
28182 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
28183 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
28184 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
28185 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
28186 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
28187 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
28188 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
28189 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
28190 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
28191 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
28192 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
28193 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
28194 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
28195 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
28196 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
28197 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
28198 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
28199 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
28200 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
28201 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
28202 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
28203 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
28204 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
28205 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
28206 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
28207 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
28208 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
28209 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
28210 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
28211 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
28212 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
28213 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
28214 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
28215 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
28216 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
28217 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
28218 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
28219 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
28220 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
28221 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
28222 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
28223 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
28224 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
28225 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
28226 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
28227 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
28228 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
28229 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
28230 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
28231 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28232 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
28233 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
28234 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
28235 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
28236 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
28237 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
28238 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
28239 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
28240 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
28241 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
28242 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
28243 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
28244 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
28245 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
28246 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
28247 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
28248 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
28249 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
28250 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
28251 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
28252 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
28253 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
28254 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
28255 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
28256 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
28257 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
28258 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
28259 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
28260 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
28261 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
28262 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
28263 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
28264 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
28265 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
28266 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
28267 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
28268 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
28269 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
28270 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
28271 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
28272 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
28273 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
28274 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
28275 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
28276 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
28277 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
28278 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
28279 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
28280 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
28281 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
28282 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
28283 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
28284 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
28285 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
28286 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
28287 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
28288 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
28289 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
28290 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28291 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
28292 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
28293 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
28294 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
28295 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
28296 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
28297 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
28298 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
28299 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
28300 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
28301 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
28302 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
28303 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
28304 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
28305 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
28306 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
28307 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
28308 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
28309 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
28310 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
28312 2005-06-14 Jose Ruiz <ruiz@adacore.com>
28313 Arnaud Charlet <charlet@adacore.com>
28315 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
28316 longer protected objects. They have been replaced by lower-level
28317 suspension objects made up by a mutex and a condition variable (or
28318 their equivalent given a particular OS) plus some internal data to
28319 reflect the state of the suspension object.
28320 (Initialize, Finalize): Add this initialization procedure for
28321 Suspension_Object, which is a controlled type.
28322 (Finalize): Add the finalization procedure for Suspension_Object,
28323 which is a controlled type.
28325 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
28326 Ada.Synchronous_Task_Control because there is no longer a need for a
28327 VxWorks specific version of this package. Target dependencies
28328 has been moved to System.Task_Primitives.Operations.
28330 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
28332 (InitializeCriticalSection, EnterCriticalSection,
28333 LeaveCriticalSection, DeleteCriticalSection): Replace the type
28334 pCriticalSection by an anonymous access type so that we avoid problems
28335 of accessibility to local objects.
28337 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
28338 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
28339 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
28340 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
28341 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
28342 set the environment task mask here.
28343 (Current_State): Add this function that returns the state of the
28345 (Set_False): Add this procedure that sets the state of the suspension
28347 (Set_True): Add this procedure that sets the state of the suspension
28348 object to True, releasing the task that was suspended, if any.
28349 (Suspend_Until_True): Add this procedure that blocks the calling task
28350 until the state of the object is True. Program_Error is raised if
28351 another task is already waiting on that suspension object.
28352 (Initialize): Add this procedure for initializing the suspension
28353 object. It initializes the mutex and the condition variable which are
28354 used for synchronization and queuing, and it sets the internal state
28356 (Finalize): Add this procedure for finalizing the suspension object,
28357 destroying the mutex and the condition variable.
28359 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
28360 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
28361 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
28362 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
28363 which provides a low-level abstraction (using operating system
28364 primitives) for Ada.Synchronous_Task_Control.
28365 This object is made up by a mutex (for ensuring mutual exclusion), a
28366 condition variable (for queuing threads until the condition is
28367 signaled), a Boolean (State) indicating whether the object is open,
28368 and a Boolean (Waiting) reflecting whether there is a task already
28369 suspended on this object.
28371 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
28372 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
28373 s-intman-vms.ads, s-intman-mingw.adb,
28374 (Initialize_Interrupts): Removed, no longer used.
28376 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
28377 (Setup_Interrupt_Mask): New procedure.
28379 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
28381 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
28383 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
28384 this is no longer done in the body of s-taprop
28385 (Server_Task): Explicitely test for Pending_Action in case
28386 System.Parameters.No_Abort is True.
28388 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
28389 is no longer done in the body of s-taprop
28391 2005-06-14 Robert Dewar <dewar@adacore.com>
28393 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28394 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28395 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28396 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28397 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28398 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
28399 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
28400 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28401 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
28402 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
28403 system-linux-hppa.ads, system-vms_64.ads,
28404 system-vxworks-alpha.ads: Minor comment update for
28405 AI-362 (unit is Pure).
28407 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
28408 Add pragma Pure_05 for AI-362
28409 Make remaining conversion functions obsolescent in Ada 95
28411 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28412 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
28413 Add entries for a-wichun and a-zchuni
28414 Add a-widcha a-zchara for AI-395
28415 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
28417 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28418 Add entries for a-wichun.o and a-zchuni.o
28419 Entries for a-widcha.o and a-zchara.o
28420 Add entry for a-chacon.o
28422 * a-ztenau.adb: Add with of Ada.Characters.Conversions
28424 * a-chacon.ads, a-chacon.adb: New files.
28426 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
28427 categorization violations.
28429 * a-strmap.ads: Add pragma Pure_05 for AI-362
28430 * a-strmap.ads: Add note on implicit categorization for AI-362
28432 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
28434 * par-prag.adb: Dummy entry for pragma Persistent_BSS
28435 Set Ada_Version_Explicit, for implementation of AI-362
28436 Add processing for pragma Pure_05 and Preelaborate_05
28437 Add entry for Assertion_Policy pragma
28439 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
28440 when needed for proper processing of categorization stuff
28443 For several cases, make errors in preealborate units warnings,
28444 instead of errors, if GNAT_Mode is set. For AI-362.
28446 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
28447 preelaborate unit is now warning if in GNAT mode
28449 * s-stoele.ads: Document AI-362 for pragma preelaborate
28451 2005-06-14 Doug Rupp <rupp@adacore.com>
28453 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
28454 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
28455 Default_Exception_Msg_Max_Length: new parameter.
28457 * a-except.ads: (Exception_Msg_Max_Length): Set to
28458 System.Parameters.Default_Exception_Msg_Max_Length
28459 Add pragma Preelaborate_05 for AI-362
28460 Add warnings off to allow categorization violations for AI-362
28462 2005-06-14 Vincent Celier <celier@adacore.com>
28464 * gnatsym.adb: Adapt to modification of package Symbols: procedure
28465 Process is now in package Processing.
28467 * symbols.ads, symbols.adb:
28468 (Processing): New package, containing procedure Process
28470 * symbols-vms-alpha.adb:
28471 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
28473 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
28474 symbols-processing-vms-ia64.adb: New files.
28476 2005-06-14 Pascal Obry <obry@adacore.com>
28478 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
28479 implementation. This new version generates the proper DllMain routine
28480 to initialize the SAL. The DllMain is generated in Ada and compiled
28481 before being added as option to the library build command.
28483 2005-06-14 Doug Rupp <rupp@adacore.com>
28484 Pascal Obry <obry@adacore.com>
28486 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
28487 call to decc$translate_vms.
28488 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
28489 need to remove those quotes before catenating the filename.
28490 (__gnat_locate_exec_on_path): improvements to the Win32 section:
28491 * avoid allocating the memory twice for better efficiency;
28492 * allocate 32K buffer for environment expansion as suggested by MSDN;
28493 * prepend ".;" to the path so that current directory is searched too.
28495 2005-06-14 Robert Dewar <dewar@adacore.com>
28497 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
28498 instead of raising CE (AI-241)
28499 Add warnings off to allow categorization violations for AI-362
28501 2005-06-14 Robert Dewar <dewar@adacore.com>
28503 * ali-util.adb, gnatbind.adb: Remove references to
28504 Force_RM_Elaboration_Order.
28506 * switch-b.adb: Remove recognition of -f switch
28508 2005-06-14 Pascal Obry <obry@adacore.com>
28510 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
28511 implementation which is slightly more efficient.
28513 2005-06-14 Gary Dismukes <dismukes@adacore.com>
28514 Javier Miranda <miranda@adacore.com>
28515 Ed Schonberg <schonberg@adacore.com>
28516 Hristian Kirtchev <kirtchev@adacore.com>
28518 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
28519 allocator's designated type is a class-wide type, and compiling for
28520 Ada 2005, emit a run-time check that the accessibility level of the
28521 type given in the allocator's expression is not deeper than the level
28522 of the allocator's access type.
28524 (Tagged_Membership): Modified to gives support to abstract interface
28527 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
28529 (Descendant_Tag): New predefined function
28530 (Is_Descendant_At_Same_Level): New predefined function
28531 (Get_Access_Level): New private function
28532 (Set_Access_Level): New private procedure
28533 (IW_Membership): New function. Given the tag of an object and the tag
28534 associated with an interface, evaluate if the object implements the
28536 (Register_Interface_Tag): New procedure used to initialize the table of
28537 interfaces used by the IW_Membership function.
28538 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
28539 of the dispatch table.
28540 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
28541 table of interfaces of the parent.
28542 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
28543 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
28544 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
28545 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
28546 Ada 2005 semantics for the new predefined function.
28548 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
28549 call to Descendant_Tag rather than Internal_Tag.
28550 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
28551 the accessibility level of the attribute's Item parameter is not deeper
28552 than the level of the attribute's prefix type. Tag_Error is raised if
28553 the check fails. The check is only emitted for Ada_05.
28554 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
28555 requested stream attribute, use it.
28556 (Expand_N_Attribute_Reference): If the designated type is an interface
28557 then rewrite the referenced object as a conversion to force the
28558 displacement of the pointer to the secondary dispatch table.
28559 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
28560 is a dereference of an object with a constrained partial view.
28562 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
28563 type is a class-wide type, emit a run-time check that the accessibility
28564 level of the returned object is not deeper than the level of the
28565 function's master (only when compiling for Ada 2005).
28567 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
28568 Action_Nb_Arg): Add entries for new Get_Access_Level and
28569 Set_Access_Level routines in these tables.
28570 (Make_DT): Generate a call to set the accessibility level of the
28571 tagged type in its TSD.
28572 (Make_DT): Code cleanup. The functionality of generating all the
28573 secondary dispatch tables has been moved to freeze_record_type.
28574 (Make_Abstract_Interface_DT): Minor code cleanup.
28575 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
28576 this subprogram implements a new algorithm that provides the
28577 same functionality and it is more clear in case of primitives
28578 associated with abstract interfaces.
28579 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
28580 clean up, the functionality of this subprogram is now provided
28581 by Set_All_DT_Position.
28582 (Write_DT): New subprogram: a debugging procedure designed to be called
28583 within gdb to display the dispatch tables associated with a tagged
28585 (Collect_All_Interfaces): New subprogram that collects the whole list
28586 of interfaces that are directly or indirectly implemented by a tagged
28588 (Default_Prim_Op_Position): New subprogram that returns the fixed
28589 position in the dispatch table of the default primitive operations.
28590 (Expand_Interface_Actuals): New subprogram to generate code that
28591 displaces all the actuals corresponding to class-wide interfaces to
28592 reference the interface tag of the actual object.
28593 (Expand_Interface_Conversion): New subprogram. Reference the base of
28594 the object to give access to the interface tag associated with the
28595 secondary dispatch table.
28596 (Expand_Interface_Thunk): New subprogram that generates the code of the
28597 thunk. This is required for compatibility with the C+ ABI.
28598 (Make_Abstract_Interface_DT): New subprogram that generate the
28599 declarations for the secondary dispatch tables associated with an
28600 abstract interface.
28601 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
28602 attribute for each primitive operation covering interface subprograms
28603 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
28604 These subprograms were upgraded to give support to abstract interfaces
28606 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
28607 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
28608 RE_Set_Access_Level.
28609 (RE_Unit_Table): Add entries for new Ada.Tags operations.
28610 Add support to call the followig new run-time subprograms:
28611 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
28613 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
28614 match its full declaration when both have an access definition with
28615 statically matching designated subtypes.
28616 (Analyze_Component_Declaration): Delete commented out code that was
28617 incorrectly setting the scope of an anonymous access component's type.
28618 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
28619 an access discriminant when the containing type is nonlimited.
28620 (Make_Incomplete_Type_Declaration): Create an incomplete type
28621 declaration for a record type that includes self-referential access
28623 (Check_Anonymous_Access_Types): Before full analysis of a record type
28624 declaration, create anonymous access types for each self-referential
28626 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
28627 an access component in this context is a Local_Anonymous_Access, for
28628 proper accessibility checks.
28629 (Access_Definition): Set properly the scope of the anonymous access type
28630 created for a stand-alone access object.
28631 (Find_Type_Of_Object): An object declaration may be given with an access
28633 (Complete_Subprograms_Derivation): New subprogram used to complete
28634 type derivation of private tagged types implementing interfaces.
28635 In this case some interface primitives may have been overriden
28636 with the partial-view and, instead of re-calculating them, they
28637 are included in the list of primitive operations of the full-view.
28638 (Build_Derived_Record_Type): Modified to give support to private
28639 types implemening interfaces.
28640 (Access_Definition): Reject ALL on anonymous access types.
28641 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
28642 type derivation to occur at a deeper accessibility level than the
28644 For the case of derivation within a generic body however, disallow the
28645 derivation if the derived type has an ancestor that is a formal type
28646 declared in the formal part of an enclosing generic.
28647 (Analyze_Object_Declaration): For protected objects, remove the check
28648 that they cannot contain interrupt handlers if not declared at library
28650 (Add_Interface_Tag_Components): New subprogram to add the tag components
28651 corresponding to all the abstract interface types implemented by a
28652 record type or a derived record type.
28653 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28654 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28655 Process_Full_View, Record_Type_Declaration): Modified to give
28656 support to abstract interface types
28657 (Collect_Interfaces): New subprogram that collects the list of
28658 interfaces that are not already implemented by the ancestors
28659 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
28660 when partial view has no discriminants and full view has defaults.
28661 (Constrain_Access): Reject a constraint on a general access type
28662 if the discriminants of the designated type have defaults.
28663 (Access_Subprogram_Declaration): Associate the Itype node with the inner
28664 full-type declaration or subprogram spec. This is required to handle
28665 nested anonymous declarations.
28666 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28667 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28668 Process_Full_View, Record_Type_Declaration): Modified to give
28669 support to abstract interface types
28670 (Derive_Subprograms): Addition of a new formal to indicate if
28671 we are in the case of an abstact-interface derivation
28672 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
28673 to the specification because it is requied to analyze all the
28674 identifiers found in a list of interfaces
28676 * debug.adb: Complete documentation of flag "-gnatdZ"
28678 * exp_ch3.adb: Implement config version of persistent_bss pragma
28679 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
28680 testing for TSS presence to properly enforce visibility rules.
28681 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
28682 Make_Abstract_Interfaces_DT to generate the secondary tables
28683 associated with abstract interfaces.
28684 (Build_Init_Procedure): Modified to initialize all the tags
28686 (Component_Needs_Simple_Initialization): Similar to other tags,
28687 interface tags do not need initialization.
28688 (Freeze_Record_Type): Modified to give support to abstract interface
28690 (Expand_N_Object_Declaration): Do not generate an initialization for
28691 a scalar temporary marked as internal.
28693 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
28694 in-out parameter that is a component in an initialization procedure,
28695 whose constraint might depend on discriminants, and that may be
28696 misaligned because of packing or representation clauses.
28697 (Is_Legal_Copy): New predicate to determine whether a possibly
28698 misaligned in-out actual can actually be passed by copy/return. This
28699 is an error in case the type is by_reference, and a warning if this is
28700 the consequence of a DEC import pragma on the subprogram.
28701 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
28703 (Expand_Inlined_Call): Mark temporary generated for the return value as
28704 internal, so that no useless scalar normalization is generated for it.
28705 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
28706 null procedure can always be inlined.
28707 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
28708 procedure, generate an explicit empty body for it.
28710 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
28711 Given a type implementing an interface, returns the corresponding
28712 access_disp_table value.
28713 (Find_Interface_Tag): New subprogram. Given a type implementing an
28714 interface, returns the record component containing the tag of the
28716 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
28717 previous ones that return the corresponding tag and access_disp_table
28719 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
28720 is a predefined primitive operation.
28721 (Expand_Subtype_From_Expr): If the expression is a selected component
28722 within an initialization procedure, compute its actual subtype, because
28723 the component may depend on the discriminants of the enclosing record.
28725 * i-cpp.ads, i-cpp.adb:
28726 This package has been left available for compatibility with previous
28727 versions of the frontend. As part of the new layout this is now a
28728 dummy package that uses declarations available at a-tags.ads
28730 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
28731 "constant access" and "aliased [constant] access" when not compiling
28733 Suppress Ada 2005 keyword warning if -gnatwY used
28734 (P_Identifier_Declarations): Add support for object declarations with
28735 access definitions.
28736 (Private_Extension_Declaration): Complete the documentation
28737 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
28738 attribute in case of private extension declaration
28739 (P_Type_Declaration): Mark as "abstract" the type declarations
28740 corresponding with protected, synchronized and task interfaces
28741 (P_Declarative_Items): "not" and "overriding" are overriding indicators
28742 for a subprogram or instance declaration.
28744 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
28745 instantiation that is a dispatching operation has controlling access
28746 parameters that are null excluding.
28747 Save and restore Ada_Version_Explicit, for implementation of AI-362
28748 (Validate_Derived_Type_Instance): Add check for abstract interface
28750 (Analyze_Formal_Package): Establish Instantiation source for the copy of
28751 the generic that is created to represent the formal package.
28752 (Analyze_Package_Instantiation): Instantiate body immediately if the
28753 package is a predefined unit that contains inlined subprograms, and
28754 we are compiling for a Configurable_Run_Time.
28755 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
28756 If the program has a null default, generate an empty body for it.
28758 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
28759 error message condition, null procedures are correctly detected now.
28760 (New_Overloaded_Entity): Bypass trivial overriding indicator check
28761 for subprograms in the context of protected types. Instead, the
28762 indicator is examined in Sem_Ch9 while analysing the subprogram
28764 (Check_Overriding_Indicator): Check consistency of overriding indicator
28765 on subprogram stubs as well.
28766 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
28768 (Analize_Subprogram_Specification): When analyzing a subprogram in which
28769 the type of the first formal is a concurrent type, replace this type
28770 by the corresponding record type.
28771 (Analyze_Subprogram_Body): Undo the previous work.
28772 (Analyze_Procedure_Call): If the call has the form Object.Op, the
28773 analysis of the prefix ends up analyzing the call itself, after which
28775 (Has_Interface_Formals): New subprogram subsidiary to analyze
28776 subprogram_specification that returns true if some non
28777 class-wide interface subprogram is found
28778 (New_Overloaded_Entity): Modified to give support to abstract
28780 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
28781 access to subprograms must be recursive.
28782 (Is_Unchecked_Conversion): Improve the test that recognizes
28783 instantiations of Unchecked_Conversion, and allows them in bodies that
28784 are to be inlined by the front-end. When the body comes from an
28785 instantiation, a reference to Unchecked_Conversion will be an
28786 Expanded_Name, even though the body has not been analyzed yet.
28787 Replace Is_Overriding and Not_Overriding in subprogram_indication with
28788 Must_Override and Must_Not_Override, to better express intent of AI.
28789 (Analyze_Subprogram_Body): If an overriding indicator is given, check
28790 that it is consistent with the overrinding status of the subprogram
28792 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
28794 If the subprogram is a null procedure, indicate that it does not need
28797 * sem_disp.adb (Check_Controlling_Type): Give support to entities
28798 available through limited-with clauses.
28799 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
28800 allowed as the last primitive of a tagged type if it has no previous
28802 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
28803 to give support to abstract interface types
28805 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
28806 in the case where the target type is an anonymous access type of an
28807 object or component (that is, when Is_Local_Anonymous_Access is true).
28808 Prevent the special checks for conversions of access discriminants in
28809 the case where the discriminant belongs to a nonlimited type, since
28810 such discriminants have their accessibility level defined in the same
28811 way as a normal component of an anonymous access type.
28812 (Resolve_Allocator): When an allocator's designated type is a class-wide
28813 type, check that the accessibility level of type given in the
28814 allocator's expression or subtype indication is not statically deeper
28815 than the level of the allocator's access type.
28816 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
28817 name in a discriminant constraint of a record component.
28818 (Resolve_Explicit_Dereference): Do not check whether the type is
28819 incomplete when the dereference is a use of an access discriminant in
28820 an initialization procedure.
28821 (Resolve_Type_Conversion): Handle conversions to abstract interface
28823 (Valid_Tagged_Conversion): The conversion of a tagged type to an
28824 abstract interface type is always valid.
28825 (Valid_Conversion): Modified to give support to abstract interface types
28826 (Resolve_Actuals): Enable full error reporting on view conversions
28827 between unrelated by_reference array types.
28828 The rule for view conversions of arrays with aliased components is
28829 weakened in Ada 2005.
28830 Call to obsolescent subprogram is now considered to be a violation of
28831 pragma Restrictions (No_Obsolescent_Features).
28832 (Check_Direct_Boolean_Operator): If the boolean operation has been
28833 constant-folded, there is nothing to check.
28834 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
28835 check on possible violation of restriction No_Direct_Boolean_Operators
28836 until after expansion of operands, to prevent spurious errors when
28837 operation is constant-folded.
28839 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
28840 Has_Compatible_Type): Modified to give support to abstract interface
28842 (Interface_Present_In_Ancestor): New function to theck if some ancestor
28843 of a given type implements a given interface
28845 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
28846 prefix is a parameterless function that returns an access_to_procedure.
28847 (Transform_Object_Operation): Handle properly function calls of the
28848 form Obj.Op (X), which prior to analysis appear as indexed components.
28849 (Analyze_One_Call): Complete the error notification to help new Ada
28851 (Analyze_Allocator): For an allocator without an initial value, where
28852 the designated type has a constrained partial view, a discriminant
28853 constraint is illegal.
28855 2005-06-14 Robert Dewar <dewar@adacore.com>
28857 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
28858 do with treatment of Set_Col when positioned at end of line character.
28860 2005-06-14 Robert Dewar <dewar@adacore.com>
28862 * atree.adb: (Elist*): Protect against uninitialized field
28864 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28866 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
28867 for an attribute reference that returns an access type.
28868 (Apply_Discriminant_Check): No need for check if (designated) type has
28869 constrained partial view.
28871 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
28872 both bound checks, rather than a conjunction.
28873 (Insert_Valid_Check): If the expression is an actual that is an indexed
28874 component of a bit-packed array, force expansion of the packed element
28875 reference, because it is specifically inhibited elsewhere.
28877 2005-06-14 Vincent Celier <celier@adacore.com>
28879 * clean.adb (Clean_Project): Correctly delete executable specified as
28880 absolute path names.
28882 * make.adb (Gnatmake): Allow relative executable path names with
28883 directory information even when project files are used.
28884 (Change_To_Object_Directory): Fail gracefully when unable to change
28885 current working directory to object directory of a project.
28886 (Gnatmake): Remove exception handler that could no longer be exercized
28887 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
28888 may be deallocated by Normalize_Arguments.
28889 (Collect_Arguments): Eliminate empty arguments
28891 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
28892 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
28893 (Check_Project): Return False when Project is No_Project. Return True
28894 when All_Projects is True.
28895 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
28896 All_Projects to True.
28899 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28900 Javier Miranda <miranda@adacore.com>
28901 Thomas Quinot <quinot@adacore.com>
28902 Robert Dewar <dewar@adacore.com>
28903 Hristian Kirtchev <kirtchev@adacore.com>
28904 Gary Dismukes <dismukes@adacore.com>
28906 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
28907 anonymous access types, to indicate that the accessibility level of
28908 the type is determined by that of the enclosing declaration.
28909 (Has_Persistent_BSS): New flag
28910 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
28911 of this attribute with functions.
28912 (Is_Primitive_Wrapper): Remove the barrier.
28913 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
28914 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
28916 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
28917 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
28919 (Is_Pure_Unit_Access_Type): New flag
28920 (Abstract_Interfaces): Complete the assertion to cover all usages.
28921 (Set_Is_Interface): Complete the assertion to cover all usages.
28922 (Is_Primitive_Wrapper): New attribute.
28923 (Is_Obsolescent): Now applies to all entities (though it is only set
28924 for subprograms currently)
28925 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
28926 which solves various problems concerning access subtypes.
28927 (Has_Persistent_BSS): New flag
28928 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
28929 Remove these subprograms because this attribute is currently
28932 Has_Specified_Stream_Input (Flag190)
28933 Has_Specified_Stream_Output (Flag191)
28934 Has_Specified_Stream_Read (Flag192)
28935 Has_Specified_Stream_Write (Flag193)
28936 Present in all type and subtype entities. Set for a given view if the
28937 corresponding stream-oriented attribute has been defined by an
28938 attribute definition clause. When such a clause occurs, a TSS is set
28939 on the underlying full view; the flags are used to track visibility of
28940 the attribute definition clause for partial or incomplete views.
28941 (Is_Pure_Unit_Access_Type): New flag
28942 Clarify use of Is_Internal.
28943 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
28944 internally generated to wrap the invocation of tasks and protected
28945 types that implement interfaces.
28946 (Implementation_Base_Type): Documentation correction
28947 (Is_Obsolescent): Now applies to all entities (though it is only set
28948 for subprograms currently)
28949 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
28950 which solves various problems concerning access subtypes.
28952 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
28953 for examined parameters. Identify unequal parameter list lengths as
28954 non-conformant parameters.
28955 (Overriding_Possible): Do not check for "All" qualifier in declaration
28956 of controlling access parameter, following prescription of AI-404.
28957 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
28958 that build the procedure body that wraps an entry invocation
28959 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
28960 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
28961 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
28962 give support to abstract interface types
28964 * freeze.adb (Freeze_Entity): Issue error message if
28965 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
28966 type has no storage pool (Ada 2005) AI-366.
28967 Also modified to give support to abstract interface types
28968 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
28969 Inline_Always pragma.
28971 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
28972 now begin an entry declaration.
28973 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
28974 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
28975 a subprogram declaration preceded by an overriding indicator.
28976 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
28977 declarations or subprogram declarations preceded by reserved words
28978 "not" or "overriding".
28979 (P_Entry_Declaration): Update comment. Parse and check overriding
28980 indicator, set semantic flags of entry declarations.
28981 (P_Task): New error message in case of private applied
28982 to a task type declaration.
28983 (P_Protected): New error message in case of private applied
28984 to a task type declaration.
28986 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
28987 in which the full view of a type implementing an interface is a
28989 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
28990 Declare_Inherited_Private_Subprograms): If an explicit operation
28991 overrides an operation that is inherited in the private part, mark the
28992 explicit one as overriding, to enable overriding indicator checks.
28993 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
28994 full view to partial view, to simplify handling in back-end.
28996 * sprint.adb: Print interface lists where needed: derived types,
28997 protected types, task types.
28998 output "is null" for null procedures. Part of implementation of
29000 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
29001 relaxation of rules for access types in pure, shared passive partitions.
29003 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
29004 first read discriminants into temporary objects, performing checks on
29005 the read values, then possibly performing discriminant checks on the
29006 actual (if it is constrained), and only finally reading the components
29007 into a constrained temporary object.
29008 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
29009 case of reading discriminants of a mutable record type to recognize
29010 the new form of the code generated by
29011 Build_Mutable_Record_Read_Procedure.
29013 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
29014 of a simple call to Make_TSS_Name.
29015 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
29016 buffer, in order for Is_TSS to work correctly on local TSS names.
29018 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
29019 Is_Local_Anonymous_Access to check legaliy of attributes in the
29020 context of access components and stand-alone access objects.
29021 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
29022 treated as available for a limited private type if there is an
29023 attribute_definition_clause that applies to its full view, but not in
29024 other cases where the attribute is available for the full view
29025 (specifically, the sole fact that the full view is non-limited does not
29026 make the attribute available for the partial view).
29027 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
29028 non-overloaded intrinsic subprogram.
29029 (Check_Stream_Attribute): Reject an attribute reference for an
29030 unavailable stream attribute even if the prefix is not a limited type
29031 (case of a 'Input attribute reference for an abstract, non-classwide
29033 (Stream_Attribute_Available): New function to determine whether a stream
29034 attribute is available at a place.
29035 (Check_Attribute): Use Stream_Attribute_Available instead of just
29036 testing for TSS presence on the implementation base type.
29037 (Analyze_Attribute): Modified to give support to task interfaces.
29038 (Analyze_Access_Attribute): Add error check for use of an Access (or
29039 Unrestricted_Access) attribute with a subprogram marked as
29041 (Analyze_Attribute, case Attribute_Address): Add error check for use of
29042 an Address attribute with a subprogram marked as Inline_Always.
29043 Update Eval_Attribute to handle new value of Width from AI-395
29045 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
29046 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
29047 Factor common code across the stream-oriented attribute circcuits into
29048 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
29049 processing is functionally identical to the previous duplicated one,
29050 except that an expression that denotes an abstract subprogram will now
29051 be rejected, as mandated by AI-195 item 5.
29053 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
29054 Is_Local_Anonymous_Access to apply accessibility checks to access
29055 components and stand-alone access objects.
29056 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
29058 (Is_Potentially_Persistent_Type): New function
29059 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
29060 a heap-object whose type has a constrained partial view, the object is
29061 unconstrained and the component may depend on a discriminant, making its
29064 * sinfo.ads, sinfo.adb
29065 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
29066 (Must_Override): Flag applicable to N_Entry_Declaration.
29067 Indicate that interface_list can appear in single task and single
29068 protected declarations.
29069 Replace Is_Overriding and Not_Overriding with Must_Override and
29070 Must_Not_Override, to better express intent of AI.
29071 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
29072 of an overriding indicator in a subprogram or instance.
29073 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
29074 Add the overriding indicator [[not] overriding] construct to the
29075 following grammar productions:
29077 GENERIC_INSTANTIATION
29078 SUBPROGRAM_SPECIFICATION
29080 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
29081 can start with an overriding indicator.
29083 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
29084 flags accordingly on subrogram specifications or instances.
29087 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
29088 overriding_indicator, if present, is consistent with status of spec.
29089 Improve error message for null-excluding checks on controlling access
29091 (Check_In_Previous_With_Clause): Protect the frontend against
29092 previously reported critical errors in the context clauses.
29093 Save and restore Ada_Version_Explicit, for implementation of AI-362
29094 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
29095 operation verify that controlling formals of the renamed entity that
29096 are access parameters are explicitly non-null.
29097 (Find_Expanded_Name): Improve error message when prefix is an illegal
29098 reference to a private child unit.
29100 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
29101 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
29102 Rewrite to correspond to new wide character names in AI-395
29104 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
29105 default procedures.
29107 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29108 Robert Dewar <dewar@adacore.com>
29110 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
29111 code, not on the bodies of predefined operations, to cut down on
29114 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29116 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
29117 be expanded in place. The size computation does not require a
29118 subtraction, which would raise an exception on a compiler built with
29119 assertions when the upper bound is Integer'first.
29120 (Flatten): For an array of composite components, take into account the
29121 size of the components to determine whether it is safe to expand the
29122 array into a purely positional representation.
29124 2005-06-14 Thomas Quinot <quinot@adacore.com>
29126 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
29127 denoting a formal parameter into account.
29129 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29131 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
29132 the entry_call alternative of a conditional entry call, wrap the
29133 conditional entry call itself.
29135 2005-06-14 Nicolas Setton <setton@adacore.com>
29136 Ed Schonberg <schonberg@adacore.com>
29138 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
29139 the "simple_choice" member in a variant record, in accordance with the
29140 description in the package spec: the information output for a constant
29141 should be "S number", not "SS number".
29142 (Get_Encoded_Name): Return at once if not generating code. Avoids name
29143 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
29145 2005-06-14 Thomas Quinot <quinot@adacore.com>
29147 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
29148 RACW without any primitives, do not generate the if statement for
29149 dispatching by name in the PolyORB/DSA case, as it would be malformed
29150 (it would have an Elsif_Parts list that is not No_List, but with a
29153 2005-06-14 Robert Dewar <dewar@adacore.com>
29155 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
29157 2005-06-14 Jose Ruiz <ruiz@adacore.com>
29159 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
29160 can determine whether pragma Suppress_Exception_Locations is in effect.
29162 * utils2.c (build_call_raise): Do not pass the file name to the
29163 exception handler if pragma Suppress_Exception_Locations is in effect.
29164 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
29166 2005-06-14 Emmanuel Briot <briot@adacore.com>
29168 * g-debpoo.adb (Deallocate, Dereference): Improve output.
29170 2005-06-14 Nicolas Roche <roche@adacore.com>
29172 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
29174 (Next_Level): Fix minor bug in handling of ../dir case
29175 (Read): Add dir separator to Directory name so that "" is understood as
29178 2005-06-14 Pascal Obry <obry@adacore.com>
29180 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
29181 releasing the items.
29183 2005-06-14 Vincent Celier <celier@adacore.com>
29184 Cyrille Comar <comar@adacore.com>
29186 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
29187 with output file descriptor and with output file name.
29188 (Dup, Dup2): Now global procedures as they are used by two subprograms
29189 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
29191 2005-06-14 Thomas Quinot <quinot@adacore.com>
29194 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
29196 (Create_Selector): Bind listening socket used to create the signalling
29197 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
29198 Set listen backlog to 1 to ensure that we detect socket theft by a
29199 failure of our own connect(2) call.
29200 (Check_Selector): Improve documentation of the selector mechanism.
29201 (Broadcast_Inet_Addr): New constant.
29203 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29205 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
29206 type which turns out to be an incomplete and incorrect fix.
29207 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
29208 of the type is declared in a record (for determination of insertion
29210 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
29211 a private type and ensure that the primary entity is used for the type
29212 of the newly created function's V formal by taking the Etype of the
29215 2005-06-14 Javier Miranda <miranda@adacore.com>
29216 Jose Ruiz <ruiz@adacore.com>
29217 Robert Dewar <dewar@adacore.com>
29218 Ed Schonberg <schonberg@adacore.com>
29220 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
29221 that indicates if we are parsing a compilation unit found in a
29222 limited-with clause.
29223 It is use to avoid the circularity check.
29225 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
29226 we are parsing a compilation unit found in a limited-with clause. This
29227 is use to avoid the circularity check.
29229 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
29230 unit as a consequence of parsing a limited-with clause. This is used
29231 to avoid the circularity check.
29233 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
29234 (Analyze_Context): Limited-with clauses are now allowed
29235 in more compilation units.
29236 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
29237 againts previously reported critical errors in context clauses
29238 (Install_Limited_Withed_Unit): Code cleanup plus static detection
29239 of two further errors: renamed subprograms and renamed packages
29240 are not allowed in limited with clauses.
29241 (Install_Siblings): Do not install private_with_clauses on the package
29242 declaration for a non-private child unit.
29243 (Re_Install_Parents): When a parent of the subunit is reinstalled,
29244 reset visibility of child units properly.
29245 (Install_Withed_Unit): When a child unit appears in a with_clause of its
29246 parent, it is immediately visible.
29248 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29249 Emmanuel Briot <briot@adacore.com>
29251 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
29252 declared within an inlined body as referenced, to prevent spurious
29254 (Output_One_Ref): If an entity renames an array component, indicate in
29255 the ALI file that this aliases (renames) the array. Capture as well
29256 function renamings that rename predefined operations.
29257 Add information about generic parent for package and subprogram
29259 (Get_Type_Reference): For a subtype that is the renaming of an actual in
29260 an instantiation, use the first_subtype to ensure that we don't generate
29261 cross-reference information for internal types.
29262 For objects and parameters of a generic private type, retain the '*'
29263 indicator to distinguish such an entity from its type.
29265 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
29266 to store information about instantiated entities.
29268 * ali.adb (Scan_ALI): Add support for parsing the reference to the
29271 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
29272 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
29275 2005-06-10 Doug Rupp <rupp@adacore.com>
29276 Arnaud Charlet <charlet@adacore.com>
29277 Olivier Hainque <hainque@adacore.com>
29278 Jose Ruiz <ruiz@adacore.com>
29280 * Make-lang.in: Add initialize.o when needed.
29281 Remove obsolete references to RT_FLAGS.
29282 Add missing dependencies for sdefault.o
29284 * initialize.c: New file.
29286 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
29287 [VMS] cond_signal_table: Fix problem in declaration.
29288 [VMS] __gnat_error_handler: rewrite.
29289 Move all __gnat_initialize() routines to initialize.c
29290 Specialize the former "hpux" section to "hppa hpux", as this is what the
29291 section really is here for and we now have other hpux ports that need
29292 different contents.
29293 (__gnat_adjust_context_for_raise) i386-linux: First version of this
29294 function for this target. Adjust PC by one in the machine context. This
29295 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
29296 it is more reliable to do that in the signal handler itself.
29297 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
29298 flags, so that the handler is passed the context structure to adjust
29299 prior to the raise.
29300 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
29301 SA_SIGINFO sigaction should look like. Call
29302 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
29303 Machine_State_Operations stuff.
29304 Add conditional code so that the x86_64 is also supported.
29306 2005-06-14 Pascal Obry <obry@adacore.com>
29308 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
29311 2005-06-14 Robert Dewar <dewar@adacore.com>
29313 * opt.ads, opt.adb: New flags for persistent_bss mode
29314 Add Ada_Version_Explicit, for implementation of AI-362
29315 Add Assertions_Enabled_Config and associated handling
29316 Needed since setting can be changed with Assertion_Policy pragma
29317 Add new flag Warn_On_Ada_2005_Compatibility
29319 * switch-c.adb: Recognize -gnatwy/Y
29320 Set Ada_Version_Explicit, for implementation of AI-362
29321 The -gnatg switch now includes -gnatyu
29323 * usage.adb: Add -gnatwy/Y
29324 Remove wrong asterisk on -gnatwX line
29325 Add line for -gnatyu switch
29327 2005-06-14 Vincent Celier <celier@adacore.com>
29329 * osint.adb (Add_Default_Search_Dirs): Put source and object
29330 directories of project files before directories coming from
29331 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
29333 2005-06-14 Robert Dewar <dewar@adacore.com>
29336 * par-ch2.adb (Scan_Pragma_Argument): New procedure
29337 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
29339 2005-06-14 Vincent Celier <celier@adacore.com>
29341 * prep.adb (Preprocess): Ignore error when scanning the first token of
29344 2005-06-14 Vincent Celier <celier@adacore.com>
29346 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
29347 (Check_Stand_Alone_Library): If the specified reference symbol file does
29348 not exist, only issue a warning when the symbol policy is not
29349 Controlled. And, when symbol policy is Compliant, set the symbol
29350 policy to Autonomous.
29352 2005-06-14 Vincent Celier <celier@adacore.com>
29354 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
29355 when the project file in a with clause is not the last one, that is the
29356 project file name is followed by a comma.
29357 * prj-pp.adb: (First_With_In_List): New Boolean global variable
29358 (Print): Issue list of project files separated by commas in with clauses
29359 according to the values returned by Is_Not_Last_In_List.
29360 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
29361 (Set_Is_Not_Last_In_List): New procedure
29363 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
29365 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
29367 2005-06-14 Robert Dewar <dewar@adacore.com>
29369 * scng.adb: Add call to new Check_EOF routine
29370 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
29371 Add some comments regarding wide character handling
29373 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
29375 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
29377 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
29378 characters are now considered graphic characters and hence yield false
29381 * nmake.adt: Modify header so that xnmake does not generate output
29382 files with multiple blank lines.
29384 * treeprs.adt: Remove a blank line so that output from xtreeprs does
29385 not have an extra blank line
29387 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29389 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
29390 expression when the component type is an anonymous access type to
29391 ensure that appropriate accessibility checks are done.
29393 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
29394 expression of an assignment when the target object is of an anonymous
29395 access type. This ensures that required accessibility checks are done.
29396 (One_Bound): Move the check for type Universal_Integer to
29398 (Process_Bounds): Check whether the type of the preanalyzed range is
29399 Universal_Integer, and in that case set Typ to Integer_Type prior
29400 to setting the type of the original range and the calls to One_Bound.
29402 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29404 * sem_case.adb (Expand_Others_Choice): Improve warning.
29406 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29408 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
29409 constraint of full view if present, when other type is discriminated.
29410 (Eval_Relational_Op): Recognize tests of pointer values against Null,
29411 when the pointer is known to be non-null, and emit appropriate warning.
29413 2005-06-14 Robert Dewar <dewar@adacore.com>
29414 Ed Schonberg <schonberg@adacore.com>
29417 * sem_prag.adb: Implement pragma Persistent_BSS
29418 Remove obsolete pragma Persistent_Data, Persistent_Object
29419 Set Ada_Version_Explicit, for implementation of AI-362
29420 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
29421 Add processing for pragma Pure_05 and Preelaborate_05
29422 Add processing for Assertion_Policy pragma
29423 Add pragma identifiers for Assert
29424 (Analyze_Pragma, case Assert): Check number of arguments
29425 (Process_Inline): Additional guard against an illegal program, where the
29426 argument of the pragma is undefined, and warnings on redundant
29427 constructs are enabled.
29428 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
29429 Ada_05 to this pragma, specifying that the pragma is only active in
29431 (Check_Arg_Order): New procedure
29432 Add appropriate calls to this procedure throughout
29433 Also throughout, check entity name before doing any other checks
29435 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
29436 Remove obsolete pragma Persistent_Data, Persistent_Object
29437 Add entries for pragma Pure_05 and Preelaborate_05
29438 Add entries for Assertion_Policy pragma and associated names
29439 Add some names for pragma argument processing
29441 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
29443 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29445 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
29446 appears within a negation (either from source or as a rewriting of
29447 inequality) adjust text of warning accordingly.
29449 2005-06-14 Thomas Quinot <quinot@adacore.com>
29451 * s-strxdr.adb: Follow AI95-00132
29453 2005-06-14 Arnaud Charlet <charlet@adacore.com>
29455 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
29457 2005-06-14 Arnaud Charlet <charlet@adacore.com>
29458 Jose Ruiz <ruiz@adacore.com>
29460 * s-tposen.adb, s-tpobop.adb
29461 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
29463 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
29464 there is no violation of the Max_Entry_Queue_Length restriction (if it
29465 has been set); Program_Error is raised otherwise.
29466 (Requeue_Call): Before requeuing the task on the target entry queue we
29467 check that there is no violation of the Max_Entry_Queue_Length
29468 restriction (if it has been set); Program_Error is raised otherwise.
29470 2005-06-14 Robert Dewar <dewar@adacore.com>
29472 * styleg.adb: Fix several remaining problems in -gnatyu switch
29473 Blank line count not reset at start
29474 Scanning outside source buffer in some cases
29475 Confusing message for blanks at end of file
29476 Non-empty blank lines not recognized
29478 * nmake.adt: Modify header so that xnmake does not generate output
29479 files with multiple blank lines.
29481 * treeprs.adt: Remove a blank line so that output from xtreeprs does
29482 not have an extra blank line
29484 2005-06-14 Sergey Rybin <rybin@adacore.com>
29486 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
29488 2005-06-14 Doug Rupp <rupp@adacore.com>
29489 Vincent Celier <celier@adacore.com>
29491 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
29494 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29495 Remove "Library" command.
29496 Change keyword for style check -gnatyd from NOCRLF to
29498 Remove useless second style check keyword NONE
29499 Remove help documentation for inexistent style check keyword
29501 Add help documentation for style check keywords DOS_LINE_ENDINGS,
29502 UNNECESSARY_BLANK_LINES and XTRA_PARENS
29503 Add UNNECESSARY_BLANK_LINES for -gnatyu
29504 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
29506 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29508 2005-06-14 Vincent Celier <celier@adacore.com>
29510 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
29511 gprmake was invoked with -d.
29512 (Compile_Sources): If -d was used, output the "completed ..." message
29513 for each compilation.
29514 (Scan_Arg): Recognize new switch -d
29515 When -c and at least one main is specified, set
29516 Unique_Compile to True to guarantee that no other sources will be
29519 2005-06-14 Matthew Heaney <heaney@adacore.com>
29521 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
29522 * a-swuwha.ads, a-swuwha.adb: New files
29524 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
29525 * a-szuzha.ads, a-szuzha.adb: New files.
29527 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
29528 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
29529 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
29530 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
29531 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
29532 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
29533 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
29534 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
29535 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
29536 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
29539 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
29540 Olivier Hainque <hainque@adacore.com>
29541 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29542 Pascal Obry <obry@adacore.com>
29544 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
29546 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
29547 making a temporary around a procedure call because of non-addressable
29549 (process_freeze_entity): If entity is a private type, capture size
29550 information that may have been computed for the full view.
29551 (tree_transform, case N_Allocator): If have initializing expression,
29552 check type for Has_Constrained_Partial_View and pass that to
29554 (tree_transform, case N_Return_Statement): Pass extra arg to
29557 * decl.c (annotate_value): Remove early return if -gnatR is not
29559 (gnat_to_gnu_field): Don't make a packable type for a component clause
29560 if the position is byte aligned, the field is aliased, and the clause
29561 size isn't a multiple of the packable alignment. It serves no useful
29562 purpose packing-wise and would be rejected later on.
29563 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
29566 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
29567 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
29569 (create_concat_name): Idem.
29571 2005-06-10 Robert Dewar <dewar@adacore.com>
29572 Eric Botcazou <ebotcazou@adacore.com>
29573 Ben Brosgol <brosgol@adacore.com>
29574 Cyrille Comar <comar@adacore.com>
29575 Sergey Rybin <rybin@adacore.com>
29576 Pascal Obry <obry@adacore.com>
29578 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
29579 Document second argument (Ada_05) of pragma Obsolescent
29580 Add note that call to subprogram marked with pragma Obsolescent
29581 is now considered to be a violation of program Restrictions
29582 (No_Obsolescent_Features).
29583 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
29584 that only machine-dependent attributes are supported.
29587 Commented out menu lines and empty section for gnatclean examples
29589 Fix some over long lines
29590 Clarify and enhance documentation of ADA_PROJECT_PATH.
29591 Rework section 2.11.2(3) about linking with a non-GNU compiler.
29592 Mention new switch -fcallgraph-info.
29593 Mention new switch -fstack-usage.
29594 For gnatpp, replace '-notab' with '-N' and add this option to Index
29595 Corrected VMS example.
29596 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
29598 Add documentation for -gnatyu switch (unnecessary blank lines)
29599 Document new switch -U for GNAT PRETTY and GNAT METRIC
29600 Add note about Stdcall being handled as C convention on non Windows OS.
29601 Remove some junk typo in description of gnatbind -S switch
29602 Remove reference to Extensions_Allowed pragma
29603 Document the new order of the directories to be searched (source and
29604 object directories of project files before directories in ADA_*_PATH
29605 environment variables.
29607 * g-trasym.ads: Document that IRIX is supported
29609 2005-06-10 Arnaud Charlet <charlet@adacore.com>
29611 * Makefile.in: Add initialize.o when needed.
29612 Adapt to new VMS package body Symbols and subunits
29613 No specialized version of a-sytaco is needed for VxWorks.
29615 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
29616 * a-zchara.ads, a-widcha.ads: New files.
29618 * system-hpux-ia64.ads: New file.
29620 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
29621 is imported from the VxWorks kernel.
29623 2005-06-14 Robert Dewar <dewar@adacore.com>
29625 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
29626 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
29627 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
29628 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
29629 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
29630 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
29631 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
29632 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
29633 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
29634 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
29635 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
29636 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
29638 2005-06-14 Thomas Quinot <quinot@adacore.com>
29640 * xeinfo.adb: Fix typo in comment
29642 2005-06-14 Javier Miranda <miranda@adacore.com>
29644 * repinfo.ads: Fix typo in comment
29646 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29648 * s-finimp.adb (Parent_Tag): Delete this imported function (function
29649 Parent_Tag is now in the visible part of Ada.Tags).
29650 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
29651 using imported function.
29653 2005-06-14 Bernard Banner <banner@adacore.com>
29655 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
29656 also apply for handling support for VxSim 653.
29658 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
29660 * xsnames.adb: Add automatic generation of snames.h.
29662 2005-06-14 Thomas Quinot <quinot@adacore.com>
29664 * gen-soccon.c: Add IP_MULTICAST_IF constant
29665 Minor reformatting and adjustments to prevent warnings.
29667 2005-06-14 Pascal Obry <obry@adacore.com>
29669 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
29671 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
29673 * trans.c (gnat_gimplify_expr): Call
29674 recompute_tree_invarant_for_addr_expr when we change
29675 the operand of the ADDR_EXPR.
29677 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29679 * misc.c: Don't include errors.h.
29681 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29683 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
29685 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
29687 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
29689 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
29691 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
29694 * Makefile.in: Make TGT_LIB behave correctly.
29696 2005-04-23 DJ Delorie <dj@redhat.com>
29698 * misc.c: Adjust warning() callers.
29700 2005-04-16 Laurent Guerby <laurent@guerby.net>
29703 * a-nudira.adb (Value): Check for valid string.
29704 * a-nuflra.adb (Value): Likewise.
29706 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
29708 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
29710 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
29712 * adaint.c, init.c, tracebak.c: Fix comment typos.
29713 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
29715 2005-04-07 Laurent Guerby <laurent@guerby.net>
29716 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29718 * Makefile.in: Add make ifeq define for hppa linux tasking support.
29719 * system-hpux.ads: Define Signed_Zeros to be True.
29720 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
29722 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
29724 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
29725 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
29728 2005-03-30 Tom Tromey <tromey@redhat.com>
29730 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
29732 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
29734 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
29736 2005-03-29 Robert Dewar <dewar@adacore.com>
29738 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
29739 fixed-point expression has value that is not a multiple of the Small
29742 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
29744 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
29747 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
29749 2005-03-29 Vincent Celier <celier@adacore.com>
29751 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
29752 (Build_Dynamic_Library.Version_String): Return the empty string when
29753 Lib_Version is empty or when the symbol policy is not Autonomous.
29755 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
29756 a symbol is not in the reference symbol file, increase the Major ID
29757 and set the Minor ID to 0.
29758 Use gsmatch=lequal instead of gsmatch=equal
29760 2005-03-29 Doug Rupp <rupp@adacore.com>
29762 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
29763 name and translate.
29765 2005-03-29 Javier Miranda <miranda@adacore.com>
29767 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
29768 (Inherit_DT): The first formal has been redefined as a Tag.
29769 This allows us the removal of the subprogram Get_TSD.
29770 (TSD): Replace the call to Get_TSD by the actual code.
29772 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
29773 (Make_DT): Upgrade the call to Inherit_TSD according to the
29774 new interface: the first formal is now a Tag.
29776 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
29777 redefined as a Tag.
29778 This change allows us to remove the subprogram Get_TSD.
29779 (CPP_Get_TSD): Subprogram removed.
29780 (TSD): Replace the call to CPP_Get_TSD by the actual code.
29782 * rtsfind.ads: Remove support to call the run-time
29785 2005-03-29 Robert Dewar <dewar@adacore.com>
29787 * errutil.adb, errout.adb:
29788 Minor comment updates on Line_Terminator references
29790 * par-ch10.adb: Add ??? comment about line terminator
29792 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
29793 (check dos line terminator).
29794 (Check_Line_Max_Length): New procedure, split off from the existing
29795 Check_Line_Terminator routine. Separating this out allows -gnatyf to
29796 be properly recognized.
29798 * styleg.adb: Add ??? comment for line terminator reference
29800 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
29801 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
29803 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
29804 (check dos line terminator).
29805 (Check_Line_Max_Length): New procedure, split off from the existing
29806 Check_Line_Terminator routine. Separating this out allows -gnatyf to
29807 be properly recognized.
29809 * stylesw.ads, stylesw.adb:
29810 Add handling for new -gnatyd switch (check dos line terminator)
29812 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
29813 Recognize -gnatwb/-gnatwB switches
29814 Include Warn_On_Bad_Fixed_Value for -gnatg
29817 Add line for new -gnatyd switch (check dos line terminator)
29819 * usage.adb: Add lines for -gnatwb/-gnatwB
29821 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
29823 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
29825 * gnat_ugn.texi: Fix overlong lines
29826 Document new -gnatyd switch
29827 Document new -gnatwb/-gnatwB switches
29829 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29831 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
29832 order to retrieve the component list of the type, before examining
29833 individual components.
29835 * sem_type.adb (Covers): Types are compatible if one is the base type
29836 of the other, even though their base types might differ when private
29837 views are involved.
29839 2005-03-29 Thomas Quinot <quinot@adacore.com>
29841 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
29842 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
29843 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
29844 analyzed if expansion is disabled (which could otherwise cause spurious
29845 error messages if expansion has been disabled due to previous
29846 (unrelated) errors).
29848 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
29849 is disabled, the entity denoted by the argument is the access type
29850 itself, not an underlying record type, so there is no need to go back
29851 to the Corresponding_Remote_Type.
29853 2005-03-29 Gary Dismukes <dismukes@adacore.com>
29854 Robert Dewar <dewar@adacore.com>
29856 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
29857 expand a call to an instance of
29858 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
29859 Constructor actual of the instance. A class-wide membership
29860 check is also generated, to ensure that the tag passed to the instance
29861 denotes a type in the class.
29862 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
29863 of Name_Generic_Dispatching_Constructor.
29865 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
29866 05 unit for AI-260-02).
29868 * a-tgdico.ads: New file.
29870 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
29871 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
29873 * snames.ads, snames.adb (Preset_Names): Add entry for
29874 Generic_Dispatching_Constructor.
29877 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
29878 character type cases.
29879 (Analyze_Subprogram_Renaming): Add special handling for
29880 the case of renaming of stream attributes when the renaming denotes a
29881 generic formal subprogram association for an abstract formal subprogram.
29882 Check that the attribute is a primitive stream attribute (and not
29883 a class-wide stream attribute) and then rewrite the attribute name
29884 as the name of the appropriate compiler-generated stream primitive.
29886 2005-03-29 Robert Dewar <dewar@adacore.com>
29888 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
29890 (Is_Possibly_Unaligned_Object): Correct typo that
29891 resulted in inaccurate result for unaligned scalars within records.
29893 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29895 * freeze.adb (Freeze_Record_Type): If the type of the component is an
29896 itype whose parent is controlled and not yet frozen, do not create a
29897 freeze node for the itype if expansion is disabled.
29899 2005-03-29 Vincent Celier <celier@adacore.com>
29901 * make.adb (Gnatmake): Don't fail if the main project file is declared
29902 as having no Ada sources. Do not display message "no sources to
29903 compile" in quiet output.
29905 2005-03-29 Doug Rupp <rupp@adacore.com>
29907 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
29910 2005-03-29 Robert Dewar <dewar@adacore.com>
29912 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
29915 2005-03-29 Robert Dewar <dewar@adacore.com>
29917 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
29918 missing TYPE Improve the error message generated when compiling a
29919 limited interface in Ada83 or Ada95 mode.
29921 2005-03-29 Robert Dewar <dewar@adacore.com>
29923 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
29924 rather than proceed ahead using a junk attribute name.
29926 2005-03-29 Vincent Celier <celier@adacore.com>
29928 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
29930 * prj-part.adb (Parse_Single_Project): Set the location of a project
29931 on its defining identifier, rather than on the reserved word "project".
29933 * prj-proc.adb (Expression): Adapt to the fact that default of external
29934 references may be string expressions, not always literal strings.
29935 (Recursive_Process): Set Display_Name equal to Name
29936 when Location is No_Location, that is when there is no actual file.
29937 Get the Display_Name of the project from the source, when it is not a
29939 (Process): Use the Display_Name in error messages
29941 * prj-strt.adb (External_Reference): Allow default to be string
29942 expressions, not only literal strings.
29944 2005-03-29 Vincent Celier <celier@adacore.com>
29946 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
29947 file and the reference symbol file to be the same file.
29949 2005-03-29 Thomas Quinot <quinot@adacore.com>
29951 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
29952 forbid conversion of a local access-to-subprogram type to a remote one.
29954 * sem_util.adb (Wrong_Type): For a record type that is the expanded
29955 equivalent type for a remote access-to-subprogram type, go back to the
29956 original RAS entity when displaying an error message, so the casing is
29957 the original source casing.
29959 2005-03-29 Robert Dewar <dewar@adacore.com>
29961 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
29964 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29966 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
29967 subtype if code is being pre-analyzed, to prevent un-expanded
29968 references to protected formals, among others.
29969 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
29970 interpretation that can be a call, include the result of the call as a
29971 possible interpretation of the dereference.
29973 * sem_ch5.adb (Process_Bounds): Determine type of range by
29974 pre-analyzing a copy of the original range, and then analyze the range
29975 with the expected type.
29977 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
29978 with an overloaded prefix where not all interpretations yield an
29979 access to subprogram, do not rewrite node as a call.
29980 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
29981 the node as a call once the context identifies the interpretation of
29982 the prefix whose call yields the context type.
29983 (Valid_Conversion): For the case of a conversion between
29984 local access-to-subprogram types, check subtype conformance using
29985 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
29986 detailed error message.
29988 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29990 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
29991 indicator, indicate that the formal can never be null.
29992 (Process_Formals): If a formal has a non_null indicator, insert the
29993 resulting subtype immediately before the enclosing subprogram decl,
29994 and not at the beginning of the corresponding declarative part, to
29995 prevent access before elaboration (Ada2005).
29997 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30000 * utils.c (finish_record_type): Use variable_size when setting sizes.
30002 2005-03-29 Robert Dewar <dewar@adacore.com>
30004 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
30005 guarantee Unix style line terminators for the output files, even when
30006 running on windows.
30008 2005-03-29 Robert Dewar <dewar@adacore.com>
30010 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
30011 buffer if an exception is raised.
30013 2005-03-29 Ed Falis <falis@adacore.com>
30015 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
30018 2005-03-29 Robert Dewar <dewar@adacore.com>
30020 * sem_util.ads: Minor reformatting
30021 * gnat_rm.texi: Minor editing.
30023 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
30025 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
30026 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
30028 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30030 * adaint.c (__gnat_portable_spawn): Adjust cast.
30032 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
30034 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
30036 2005-03-17 Pascal Obry <obry@adacore.com>
30038 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
30041 * expect.c (__gnat_waitpid): Moved here from adaint.c.
30042 Reimplement under Win32 using Win32 API.
30044 (__gnat_kill) [Win32]: Properly close the process handle before leaving
30047 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
30049 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
30050 (DECL_RENAMED_OBJECT): New accessor macro.
30051 (SET_DECL_RENAMED_OBJECT): New setter macro.
30053 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
30054 object in all cases. Attach the renamed object to the VAR_DECL.
30055 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
30056 field is not prescribed.
30058 * misc.c (gnat_handle_option): Handle -gnatO separately.
30059 (gnat_print_decl) <VAR_DECL>: New case.
30060 Print the DECL_RENAMED_OBJECT node.
30062 * lang.opt: Declare separate -gnatO option.
30064 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
30065 pointer, replace it with the renamed object.
30066 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
30067 pointer type if the source is not a fat pointer type whose underlying
30068 array has the same non-zero alias set as that of the destination array.
30070 2005-03-17 Javier Miranda <miranda@adacore.com>
30072 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
30073 (Get_Inheritance_Depth): Removed.
30074 (Set_Inheritance_Depth): Removed.
30076 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
30077 subprogram Get_Expanded_Name because it is not referenced by the
30080 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
30081 (CPP_Get_Inheritance_Depth): Removed.
30082 (CPP_Set_Inheritance_Depth): Removed.
30084 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
30086 2005-03-17 Robert Dewar <dewar@adacore.com>
30088 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
30089 3, since we now expect GCC 3 to do all the work.
30091 2005-03-17 Javier Miranda <miranda@adacore.com>
30093 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
30094 of one barrier to avoid wrong usage of this attribute.
30096 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
30097 First_Private_Entity.
30099 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
30100 the subprogram against wrong usage.
30101 Adapt the code to traverse the entities in the
30102 scope of a record_type because in addition to its usage regarding
30103 packages, this subprogram is also called by Expand_N_Freeze_Entity
30104 to install the visible declarations of the enclosing scope of a
30105 record_type_with_private to establish the proper visibility before
30106 freezing the entity and related subprograms.
30108 2005-03-17 Ed Schonberg <schonberg@adacore.com>
30110 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
30113 2005-03-17 Thomas Quinot <quinot@adacore.com>
30115 * exp_ch3.adb (Check_Attr): New subprogram.
30116 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
30117 into a new Check_Attr subprogram, in order to provide a more
30118 explanatory error message (including the name of the missing attribute).
30119 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
30120 subprogram determines whether a default implementation exists for a
30121 given stream attribute.
30122 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
30123 Determine whether to generate a default implementation for each stream
30124 attribute separately, as this depends on the specific attribute.
30126 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
30127 limited extension where a stream attribute is missing for a limited
30128 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
30129 generate a bogus reference to the missing attribute to prevent
30130 cascaded errors. Instead, generate a null statement.
30132 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
30133 available for a limited type if it has been specified for an ancestor
30136 2005-03-17 Ed Schonberg <schonberg@adacore.com>
30138 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
30139 entity is an operator.
30141 2005-03-17 Thomas Quinot <quinot@adacore.com>
30143 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30144 spec, to make this predicate available to other units.
30146 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
30149 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
30150 when no distribution runtime library is available.
30152 * sem_res.adb, sem_dist.adb: Disable expansion of remote
30153 access-to-subprogram types when no distribution runtime library is
30155 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
30156 predicate available to other units.
30158 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30159 spec, to make this predicate available to other units.
30161 2005-03-17 Vincent Celier <celier@adacore.com>
30163 * make.adb (Insert_Project_Sources): Make sure the Q is always
30166 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
30167 the default for the tree, not the global default naming.
30169 * prj-proc.adb (Recursive_Process): No need to put the default naming
30170 in the project data, it's already there.
30172 2005-03-17 Doug Rupp <rupp@adacore.com>
30174 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
30176 * 5xcrtl.ads: Renamed to...
30177 * s-crtl-vms64.ads: ...this new file
30179 2005-03-17 Robert Dewar <dewar@adacore.com>
30182 * namet.adb (Copy_One_Character): Set proper wide character encoding
30183 for upper half character if we have upper half encoding.
30185 2005-03-17 Robert Dewar <dewar@adacore.com>
30187 * par.adb (Par): Improved msg for attempt to recompile predefined unit
30189 2005-03-17 Thomas Quinot <quinot@adacore.com>
30191 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
30192 tagged limited type, the TSS is a newly built renaming declaration:
30193 insert it using Set_TSS, not Copy_TSS.
30195 2005-03-17 Javier Miranda <miranda@adacore.com>
30197 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
30198 Try_Object_Operation): Analyze the object that is accessible
30199 through the prefix of the subprogram call before we apply
30200 the transformation of the object-operation notation.
30202 2005-03-17 Jose Ruiz <ruiz@adacore.com>
30204 * s-taprob.adb (Initialize_Protection): Initialize the protected
30205 object's owner to Null_Task.
30206 (Lock): If pragma Detect_Blocking is in effect and the caller of this
30207 procedure is already the protected object's owner then Program_Error
30208 is raised. In addition the protected object's owner is updated.
30209 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
30210 of this procedure is already the protected object's owner then
30211 Program_Error is raised.
30212 In addition the protected object's owner is updated.
30213 (Unlock): Remove the ownership of the protected object.
30215 * s-taprob.ads (Protection): Add the field Owner, used to store the
30216 protected object's owner.
30217 This component is needed for detecting one type of potentially blocking
30218 operations (external calls on a protected subprogram with the same
30219 target object as that of the protected action). Document the rest of
30222 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
30223 Initialize the protected object's owner to Null_Task.
30224 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
30225 caller of this procedure is already the protected object's owner then
30226 Program_Error is raised.
30227 Do not raise Program_Error when this procedure is called from a
30229 (Unlock_Entries): Remove the ownership of the protected object.
30230 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
30231 of this procedure is already the protected object's owner then
30232 Program_Error is raised.
30233 Do not raise Program_Error when this procedure is called from
30234 a protected action.
30236 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
30237 used to store the protected object's owner.
30239 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
30240 effect and this procedure (a potentially blocking operation) is called
30241 from whithin a protected action, Program_Error is raised.
30242 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
30243 and this procedure (a potentially blocking operation) is called from
30244 whithin a protected action, Program_Error is raised.
30246 2005-03-17 Vincent Celier <celier@adacore.com>
30247 Nicolas Setton <setton@adacore.com>
30249 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
30250 switch, not supported by the linker on Darwin. Add '_' before
30251 <library>init, as this character is added unconditionally by the
30253 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
30254 correct one ".dylib". This fixes detection of the archive files when
30255 building library projects.
30257 2005-03-17 Vincent Celier <celier@adacore.com>
30259 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
30260 -gnat83, -gnat95 and -gnat05.
30262 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
30264 * gnat_ugn.texi: Document gnatmem restriction
30266 2005-03-17 Thomas Quinot <quinot@adacore.com>
30268 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
30271 2005-03-17 Robert Dewar <dewar@adacore.com>
30273 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
30274 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
30275 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
30277 * casing.adb: Comment improvements
30279 2005-03-17 Pascal Obry <obry@adacore.com>
30281 * g-expect.adb: Minor reformatting.
30283 2005-03-15 Zack Weinberg <zack@codesourcery.com>
30285 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
30286 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
30289 2005-03-15 Vincent Celier <celier@adacore.com>
30291 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
30292 Add new parameter In_Tree to specify the project tree: needed
30293 by the project manager. Adapt to changes in project manager
30294 using new parameter In_Tree.
30296 2005-03-15 Jakub Jelinek <jakub@redhat.com>
30298 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
30299 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
30300 ada/bldtools to avoid make -jN failures.
30302 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30304 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
30305 to NULL_TREE on entry.
30307 2005-03-15 Robert Dewar <dewar@adacore.com>
30309 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
30310 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
30311 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
30312 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
30313 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
30314 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
30315 system-interix.ads, system-solaris-sparc.ads,
30316 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
30317 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
30318 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
30319 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
30320 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
30321 Compiler_System_Version to be False.
30323 * opt.ads: Add new flag Opt.Address_Is_Private
30325 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
30326 Add new parameter Compiler_System_Version to avoid checking for
30327 completeness of parameters when compiler is compiling itself.
30328 Allows old versions of GNAT to be compiled with new compiler.
30330 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30332 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
30333 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
30335 (Stack_Base_Available): New flag.
30336 (Get_Page_Size): New overloaded functions imported from C.
30337 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
30338 PROT_ON, PROT_OFF): New constants.
30339 (mprotect): New function imported from C.
30340 (pthread_teb_t): New record type.
30342 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
30343 (Create_Task): Account for the Yellow Zone and the guard page.
30345 2005-03-15 Vincent Celier <celier@adacore.com>
30347 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30348 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30349 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30350 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
30351 Library_File_Name_For): Add new parameter In_Tree
30352 to specify the project tree: needed by the project manager.
30353 Adapt to changes in project manager using new parameter In_Tree.
30354 Remove local imports, use functions in System.CRTL.
30356 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
30357 to use the project manager.
30359 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
30360 In_Tree to designate the project tree. Adapt to changes in the project
30361 manager, using In_Tree.
30363 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
30364 Copy_Interface_Sources): Add new parameter In_Tree to specify the
30365 project tree: needed by the project manager.
30366 (Build_Library): Check that Arg'Length >= 6 before checking if it
30367 contains "--RTS=...".
30369 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
30370 Library_File_Name_For): Add new parameter In_Tree to specify the
30371 project tree: needed by the project manager.
30373 * prj.ads, prj.adb: Major modifications to allow several project trees
30374 in memory at the same time.
30375 Change tables to dynamic tables and hash tables to dynamic hash
30376 tables. Move tables and hash tables from Prj.Com (in the visible part)
30377 and Prj.Env (in the private part). Move some constants from the visible
30378 part to the private part. Make other constants deferred.
30379 (Project_Empty): Make it a variable, not a function
30380 (Empty_Project): Add parameter Tree. Returns the data with the default
30381 naming data of the project tree Tree.
30382 (Initialize): After updating Std_Naming_Data, copy its value to the
30383 component Naming of Project Empty.
30384 (Register_Default_Naming_Scheme): Use and update the default naming
30385 component of the project tree, instead of the global variable
30387 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
30388 Tree is not defaulted, return the default naming data of the Tree.
30389 (Initial_Buffer_Size): Constant moved from private part
30390 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
30391 variables initialized in procedure Initialize.
30392 (Add_To_Buffer): Add two in out parameters to replace global variables
30393 Buffer and Buffer_Last.
30394 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
30396 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
30398 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30399 for the project tree.
30400 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
30401 constant at the beginning of the package spec, so that they cane be used
30402 in subprograms before their full declarations.
30403 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
30404 (Empty_Project): Add parameter of type Project_Node_Ref
30405 (Private_Project_Tree_Data): Add component Default_Naming of type
30407 (Buffer, Buffer_Last): remove global variables
30408 (Add_To_Buffer): Add two in out parameters to replace global variables
30409 Buffer and Buffer_Last.
30410 (Current_Packages_To_Check): Remove global variable
30411 (Empty_Name): Move to private part
30412 (No-Symbols): Make it a constant
30413 (Private_Project_Tree_Data): New type for the private part of the
30415 (Project_Tree_Data): New type for the data of a project tree
30416 (Project_Tree_Ref): New type to designate a project tree
30417 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30418 for the project tree.
30420 * prj-attr.ads: Add with Table; needed, as package Prj no longer
30421 imports package Table.
30423 * prj-com.adb: Remove empty, no longer needed body
30425 * prj-com.ads: Move most of the content of this package to package Prj.
30427 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
30428 designate the project node tree and Packages_To_Check to replace
30429 global variable Current_Packages_To_Check.
30430 Add new parameters In_Tree and Packages_To_Check to local subprograms,
30431 when needed. Adapt to changes in project manager with project node tree
30434 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
30435 project tree to most subprograms. Move tables and hash tables to
30436 private part of package Prj.
30437 Adapt to changes in project manager using project tree In_Tree.
30439 * prj-makr.adb (Tree): New constant to designate the project node tree
30440 Adapt to change in project manager using project node tree Tree
30442 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
30443 display the Library_Src_Dir and the Library_Dir.
30444 Add new parameter In_Tree to designate the project node tree to most
30445 subprograms. Adapt to changes in the project manager, using project tree
30447 (Check_Naming_Scheme): Do not alter the casing on platforms where
30448 the casing of file names is not significant.
30449 (Check): Add new parameter In_Tree to designate the
30451 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
30452 designate the project tree.
30453 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
30455 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
30456 to replace those that were in the private part of package Prj.
30457 Add new parameter In__Tree to designate the project node tree to most
30458 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30459 (Post_Parse_Context_Clause): When specifying the project node of a with
30460 clause, indicate that it is a limited with only if there is "limited"
30461 in the with clause, not necessarily when In_Limited is True.
30462 (Parse): Add new parameter In_Tree to designate the project node tree
30464 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
30465 designate the project node tree. Adapt to change in Prj.Tree with
30466 project node tree In_Tree.
30468 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
30469 tree In_Tree in the call to function Empty_Process to give its initial
30470 value to the project data Processed_Data.
30471 Add new parameters In_Tree to designate the project tree and
30472 From_Project_Node_Tree to designate the project node tree to several
30473 subprograms. Adapt to change in project manager with project tree
30474 In_Tree and project node tree From_Project_Node_Tree.
30476 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
30477 to replace those that were in the private part of package Prj.
30478 Add new parameter In_Tree to designate the project node tree to most
30479 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30481 * prj-tree.ads, prj-tree.adb: Add new parameter of type
30482 Project_Node_Tree_Ref to most subprograms.
30483 Use this new parameter to store project nodes in the designated project
30485 (Project_Node_Tree_Ref): New type to designate a project node tree
30486 (Tree_Private_Part): Change table to dynamic table and hash tables to
30487 dynamic hash tables.
30489 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
30490 the project tree to most subprograms. Adapt to changes in project
30491 manager using project tree In_Tree.
30493 * makegpr.adb (Project_Tree): New constant needed to use project
30496 2005-03-15 Olivier Hainque <hainque@adacore.com>
30498 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
30499 for sigactions with SA_SIGINFO set. Call
30500 __gnat_adjust_context_for_raise before raising, to perform the
30501 potentially required adjustments to the machine context for the GCC
30504 * raise.h (__gnat_adjust_context_for_raise): New prototype.
30506 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
30507 Adjust PC by one in the provided machine context.
30508 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
30509 so that the handler is passed the context structure to adjust prior to
30511 (__gnat_error_handler) HPUX: Adjust the signature to match what an
30512 SA_SIGINFO sigaction should look like. Call
30513 __gnat_adjust_context_for_raise before actually raising.
30514 (__gnat_adjust_context_for_raise): Default noop to help PC
30515 adjustments before raise from signal handlers.
30516 (__gnat_error_handler): Indirectly call a predicate function to
30517 determine if a condition should be resignaled or not.
30518 (__gnat_set_resignal_predicate): User interface to modify the predicate.
30519 (__gnat_default_resignal_p): Default GNAT predicate.
30521 2005-03-15 Doug Rupp <rupp@adacore.com>
30523 * adaint.c: Prefix #include of VMS system header files with vms/
30524 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
30525 Do not define a dummy function "convert_addresses" under Darwin,
30528 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
30531 2005-03-15 Nicolas Setton <setton@adacore.com>
30533 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
30536 2005-03-15 Robert Dewar <dewar@adacore.com>
30538 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
30541 * a-retide.ads: Minor comment changes
30543 2005-03-15 Robert Dewar <dewar@adacore.com>
30545 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
30546 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
30547 Realloc_For_Chunk to private part of package.
30548 New subprograms for AI-301
30550 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
30551 Get_Line procedure.
30552 Avoid unnecessary use of Get/Set_Wide_String
30554 2005-03-15 Robert Dewar <dewar@adacore.com>
30557 * a-stunau.ads, a-stunau.adb:
30558 Change interface to allow efficient (and correct) implementation
30559 The previous changes to allow extra space in unbounded strings had
30560 left this interface a bit broken.
30562 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
30564 * g-spipat.ads, g-spipat.adb: New interface for Get_String
30565 Minor reformatting (function specs)
30567 * g-spitbo.adb: New interface for Get_String
30569 * g-spitbo.ads: Minor reformatting
30571 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
30573 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
30575 2005-03-15 Javier Miranda <miranda@adacore.com>
30576 Robert Dewar <dewar@adacore.com>
30577 Thomas Quinot <quinot@adacore.com>
30578 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30580 * atree.ads, atree.adb: Add support for Elist24 field
30582 * atree.h: Fix wrong definition of Field27
30583 Add support for Elist16 field
30584 Add support for Elist24 field
30586 * einfo.ads, einfo.adb (Abstract_Interfaces,
30587 Set_Abstract_Interfaces): New subprograms.
30588 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
30590 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
30591 entities rather than a single node.
30592 (Is_Interface, Set_Is_Interface): New subprogram
30593 (First_Tag_Component): New syntesized attribute
30594 (Next_Tag_Component): New synthesized attribute
30595 (Write_Entity_Flags): Upgraded to write Is_Interface
30596 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
30597 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
30598 (Task_Body_Procedure): New subprogram to read this attribute.
30599 (Set_Task_Body_Procedure): New subprogram to set this attribute.
30600 (Has_Controlled_Component): Now applies to all entities.
30601 This is only a documentation change, since it always worked to apply
30602 this to other than composite types (yielding false), but now this is
30604 Update documentation on Must_Be_Byte_Aligned for new spec
30606 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
30607 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
30608 uses of the Access_Disp_Table attribute to reference the first dispatch
30609 table associated with a tagged type. As
30610 part of the implementation of abstract interface types,
30611 Access_Disp_Table has been redefined to contain a list of dispatch
30612 tables (rather than a single dispatch table).
30613 Similarly, upgrade all the references to Tag_Component by the
30614 new attribute First_Tag_Component.
30615 (Find_Inherited_TSS): Moved to exp_tss.
30616 Clean up test in Expand_N_Object_Declaration for cases
30617 where we need to do a separate assignment of the initial value.
30618 (Expand_N_Object_Declaration): If the expression in the
30619 declaration of a tagged type is an aggregate, no need to generate an
30620 additional tag assignment.
30621 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
30623 Bit packed array ops are only called if operands are known to be
30625 (Component_Equality): When returning an N_Raise_Program_Error statement,
30626 ensure that its Etype is set to Empty to avoid confusing GIGI (which
30627 expects that only expressions have a bona fide type).
30628 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
30629 determine the amount of data to be copied.
30631 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
30632 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
30633 INTERFACE_TYPE_DEFINITION ::=
30634 [limited | task | protected | synchronized] interface
30635 [AND interface_list]
30637 * par-ch3.adb (P_Type_Declaration): Modified to give support to
30639 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
30641 (P_Interface_Type_Definition): New subprogram that parses the new
30642 syntax rule of Ada 2005 interfaces
30643 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
30644 messages by the correct RENAMES (quotes removed).
30646 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
30647 attribute First_Tag_Component.
30649 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
30650 (Interface_List, Set_Interface_List): New subprograms.
30651 (Interface_Present, Set_Interface_Present): New subprograms.
30652 (Limited_Present, Set_Limited_Present): Available also in derived
30653 type definition nodes.
30654 (Protected_Present, Set_Protected_Present): Available also in
30655 record type definition and
30656 derived type definition nodes.
30657 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
30658 (Task_Present, Set_Task_Present): New subprogram.
30659 (Task_Body_Procedure): Removed.
30660 (Set_Task_Body_Procedure): Removed.
30661 These subprogram have been removed because the attribute
30662 Task_Body_Procedure has been moved to the corresponding task type
30663 or task subtype entity to leave a field free to store the list
30664 of interfaces implemented by a task (for AI-345)
30665 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
30666 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
30667 expression flag Do_Range_Check
30668 (Exception_Junk): Change to Flag7 to accomodate above change
30669 (Box_Present, Default_Name, Specification, Set_Box_Present,
30670 Set_Default_Name, Set_Specification): Expand the expression
30671 "X in N_Formal_Subprogram_Declaration" into the corresponding
30672 two comparisons. Required to use the csinfo tool.
30674 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
30675 "with string" given.
30677 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
30680 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
30683 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
30684 attribute Task_Body_Procedure rather than the old semantic field that
30685 was available in the task_type_declaration node.
30687 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
30688 interface type definitions.
30689 (P_Formal_Derived_Type_Definition): Modified to handle the list of
30692 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
30693 task type declaration.
30694 (P_Protected): Modified to handle the list of interfaces in a
30695 protected type declaration.
30697 2005-03-15 Doug Rupp <rupp@adacore.com>
30698 Vincent Celier <celier@adacore.com>
30700 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
30701 (Gen_Output_File_C): Likewise.
30702 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
30704 2005-03-15 Thomas Quinot <quinot@adacore.com>
30706 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
30707 is an N_Raise_Constraint_Error node, create a new copy of it without
30708 going through a call to Duplicate_Subexpr.
30710 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30711 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30712 Nicolas Setton <setton@adacore.com>
30713 Ed Schonberg <schonberg@adacore.com>
30719 * decl.c (gnat_to_gnu_field): Reject aliased components with a
30720 representation clause that prescribes a size not equal to the rounded
30721 size of their types.
30722 (gnat_to_gnu_entity, case E_Component): Always look at
30723 Original_Record_Component if Present and not the entity.
30724 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
30725 of tagged extension types by not making field for components that are
30727 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
30728 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
30729 expression to the type of the object when the object is constant.
30730 Reverse defer_debug_incomplete_list before traversing it, so that trees
30731 are processed in the order at which they were added to the list. This
30732 order is important when using the stabs debug format.
30733 If we are deferring the output of debug information, also defer this
30734 output for a function return type.
30735 When adding fields to a record, prevent emitting debug information
30736 for incomplete records, emit the information only when the record is
30738 (components_to_record): New parameter defer_debug.
30739 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
30740 (gnat_to_gnu_field_decl): New function.
30741 (substitution_list, annotate_rep): Call it.
30742 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
30743 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
30744 No longer update discriminants to not be a COMPONENT_REF.
30745 (copy_alias_set): Strip padding from input type; also handle
30746 unconstrained arrays properly.
30748 * gigi.h (write_record_type_debug_info): New function.
30749 Convert to use ANSI-style prototypes. Remove unused
30750 declarations for emit_stack_check, elab_all_gnat and
30751 set_second_error_entity.
30752 (gnat_to_gnu_field_decl): New decl.
30754 * utils.c (write_record_type_debug_info): New function.
30755 (finish_record_type): Delegate generation of debug information to
30756 write_record_type_debug_info.
30757 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
30758 (update_pointer_to): Fix pasto.
30759 (convert) <UNION_TYPE>: Accept slight type variations when
30760 converting to an unchecked union type.
30762 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
30763 replace the N_Freeze_Entity with a null statement.
30765 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
30766 within a constrained subcomponent of an enclosing record, place the
30767 freeze nodes in the scope stack entry for the enclosing record.
30768 (Undelay_Type): New Subprogram.
30769 (Set_Small_Size): Pass T, the type to modify; all callers changed.
30770 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
30771 within records; allow them to have freeze nodes if their base types
30774 * exp_util.adb (Remove_Side_Effects): Properly test for
30775 Expansion_Delayed and handle case when it's inside an
30776 N_Qualified_Expression.
30778 * sem_ch3.adb (Derived_Type_Declaration): New predicate
30779 Comes_From_Generic, to recognize accurately that the parent type in a
30780 derived type declaration can be traced back to a formal type, because
30781 it is one or is derived from one, or because its completion is derived
30783 (Constrain_Component_Type): If component comes from source and has no
30784 explicit constraint, no need to constrain in in a subtype of the
30786 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
30787 Minor change to propagate Is_Ada_2005 flag
30789 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
30790 Expansion_Delayed is False.
30791 (assoc_to_constructor): Ignore fields that have a
30792 Corresponding_Discriminant.
30793 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
30794 function returns "by target", dereference the target pointer using the
30795 type of the actual return value.
30796 <all>: Be prepared for a null gnu_result.
30797 (processed_inline_subprograms): Check flag_really_no_inline
30798 instead of flag_no_inline.
30799 (set_second_error_entity): Remove unused function.
30800 (gnat_to_gnu, case N_Selected_Component): Call
30801 gnat_to_gnu_field_decl.
30802 (assoc_to_constructor): Likewise.
30804 2005-03-15 Robert Dewar <dewar@adacore.com>
30805 Ed Schonberg <schonberg@adacore.com>
30806 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30808 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
30809 Must_Be_Byte_Aligned for cases where we do not need to use a
30810 System.Pack_nn unit.
30812 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
30814 Needed now that we do some processing for IN parameters as well. This
30815 may well fix some unrelated errors.
30816 (Expand_Call): Handle case of unaligned objects (in particular those
30817 that come from packed arrays).
30818 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
30819 renamed entity is an inherited operation, re-expand the call using the
30820 original operation, which is the one to call.
30821 Detect attempt to inline parameterless recursive subprogram.
30822 (Represented_As_Scalar): Fix to work properly with private types
30823 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
30824 accurate estimate. Yields True in far fewer cases than before,
30825 improving the quality of code that depends on this test.
30827 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
30828 over both visible and private declarations to remove them from tree,
30829 and mark subprograms declared in package as eliminated, to prevent
30830 spurious use in subsequent compilation of generic units in the context.
30832 * exp_util.ads: Minor cleanup in variable names
30834 * sem_eval.ads, sem_eval.adb: Minor reformatting
30835 (Compile_Time_Known_Bounds): New function
30837 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30839 * exp_ch7.adb (Convert_View): Use base types of underlying types when
30840 determining whether an unchecked conversion is needed for the argument
30841 of an initialization call.
30843 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30845 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
30846 that appears in the instantiation rather than the internal subtype
30847 generated in the wrapper package, to avoid anomalies in gigi when the
30848 target is derived from a private type whose full view is an access type.
30850 2005-03-15 Robert Dewar <dewar@adacore.com>
30852 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
30854 Add documentation to replace the use of this flag
30855 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
30858 2005-03-15 Thomas Quinot <quinot@adacore.com>
30860 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
30861 here from exp_attr so it can be shared between exp_attr and exp_dist.
30862 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
30863 all TSS names, not a subset thereof, and the previous name introduced
30864 an unnecessarily confusion that a distinction might exist between
30865 "OK" TSS names and some "not OK" TSS names.
30867 2005-03-15 Doug Rupp <rupp@adacore.com>
30869 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
30872 2005-03-15 Pascal Obry <obry@adacore.com>
30873 Eric Botcazou <ebotcazou@adacore.com>
30877 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
30878 when IN_RTS. This is to work around a bootstrap path problem.
30880 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
30881 table and pass it to __gnat_install_SEH_handler().
30882 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
30884 * lang.opt: Fix specification of -fRTS=.
30886 2005-03-15 Doug Rupp <rupp@adacore.com>
30887 Bernard Banner <banner@adacore.com>
30888 Vincent Celier <celier@adacore.com>
30889 Arnaud Charlet <charlet@adacore.com>
30892 This change works fine when gnatlib is built from the gcc directory,
30893 but does not work when using the libada Makefile, since GCC_FOR_TARGET
30894 is not passed to ada/Makefile.in, so more work is needed by a
30895 Makefile/configure expert.
30897 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
30898 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
30899 Setup gnatlink switch -M for x86_64 linux, as it is already setup
30901 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
30902 Run ranlib on libgccprefix.a
30903 Define PREFIX_OBJS for Darwin, to build libgccprefix.
30904 (ADA_INCLUDE_SRCS): Split Ada packages.
30906 2005-03-15 Robert Dewar <dewar@adacore.com>
30908 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
30910 * impunit.adb: Add GNAT.UTF_32
30912 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
30914 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
30915 now uses GNAT.UTF_32).
30917 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
30918 capabilities for categorizing characters using Unicode categories
30920 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30922 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
30923 instantiation that has been rewritten as a package body, retrieve spec
30924 to generate proper name for implicit_with_clause.
30925 (Install_Parents): Recognize a parent that is an instantiation but has
30926 been rewritten as a package declaration during analysis.
30928 2005-03-15 Javier Miranda <miranda@adacore.com>
30929 Ed Schonberg <schonberg@adacore.com>
30931 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
30932 parameter reported some error we immediately return. This improves the
30933 behaviour of the frontend in case of errors.
30934 (Install_Parent, Remove_Parent): Introduce new flag
30935 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
30936 ancestor of a generic child unit, when the child is being instantiated.
30937 (Inline_Instance_Body): If we are compiling the private
30938 part or the body of a child unit, restore the proper visibility of the
30939 parents after compiling the instance body.
30941 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30942 Javier Miranda <miranda@adacore.com>
30945 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
30946 of a private type, in which case it is underlying_type that denotes
30947 the proper task. Also modified to use the new entity attribute
30948 that is directly available in the task type and task subtype entities
30949 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
30950 arrays when other dimensions than the first are constrained by
30951 discriminants of an enclosing record.
30952 (Insert_Explicit_Dereference): If the prefix is an indexed component or
30953 a combination of indexed and selected components, find ultimate entity
30954 and generate the appropriate reference for it, to suppress spurious
30956 (Note_Possible_Modification): If an entity name has no entity, return.
30957 (Is_Variable): A function call never denotes a variable.
30958 (Requires_Transient_Scope): For record types, recurse only on
30959 components, not on internal subtypes that may have been generated for
30960 constrained components.
30962 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30964 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
30965 Eliminated as candidates for resolution. Both efficient, and avoids
30966 anomalies with operators declared in deleted code.
30967 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
30968 expansion is disabled (as when compiling a generic) to prevent spurious
30969 warnings on prefixes of selected components.
30971 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30973 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
30974 attached to a list before checking whether it appears in the private
30975 declarations of the current package.
30976 (Make_Inequality_Operator): Insert declaration in proper declarative
30977 list rather than just setting the Parent field, so that
30978 Is_Private_Declaration can handle it properly.
30980 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30982 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
30983 a renaming a body, check that the renamed subprogram in not intrinsic.
30984 (Find_Direct_Name): If several use_visible entities hide
30985 each other, and the context is a predefined file compiled through
30986 rtsfind, keep only the entity that comes from a predefined file.
30988 2005-03-15 Geert Bosch <bosch@adacore.com>
30990 * s-fatgen.adb (Valid): Extend special exceptions to account for long
30991 long float padding to also cover AMD64 and IA64.
30993 2005-03-15 Gary Dismukes <dismukes@adacore.com>
30995 * s-imgwch.adb: Add with and use of Interfaces.
30996 (Img_Wide_Character): Change type of Val to Unsigned_16.
30997 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
30999 2005-03-15 Matthew Gingell <gingell@adacore.com>
31001 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
31003 2005-03-15 Robert Dewar <dewar@adacore.com>
31005 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
31007 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
31009 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
31011 2005-03-15 Robert Dewar <dewar@adacore.com>
31013 * s-bitops.adb, s-bitops.ads,
31014 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
31015 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
31016 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
31017 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
31018 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
31019 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
31020 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
31021 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
31024 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31026 * utils2.c (build_binary_op): Fix typo.
31028 2005-03-15 Doug Rupp <rupp@adacore.com>
31030 * s-crtl.ads (popen,pclose): New imports.
31032 2005-03-15 Cyrille Comar <comar@adacore.com>
31034 * comperr.adb (Compiler_Abort): remove references to obsolete
31035 procedures in the bug boxes for various GNAT builds.
31037 2005-03-15 Vincent Celier <celier@adacore.com>
31039 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
31041 2005-03-15 Geert Bosch <bosch@adacore.com>
31042 Arnaud Charlet <charlet@adacore.com>
31043 Robert Dewar <dewar@adacore.com>
31044 Cyrille Comar <comar@adacore.com>
31045 Sergey Rybin <rybin@adacore.com>
31047 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
31048 too specific and long-winded to be appropriate for the GNAT User's
31050 Warn about use of GCC switches not documented in the GNAT User's Guide,
31051 as these may cause generated code to not conform to Ada semantics.
31052 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
31053 Add documentation for -gnat95 and -gnat05 switches
31054 Remove paragraph documenting obsolete way to refer to third party
31056 Add a few references to Ada_05 that were missing.
31057 Update documentation on -gnatZ/-gnatL.
31058 Document limitation when using -m64 under Solaris.
31059 Change the "Name Casing" subsection of the pretty-printer section
31060 according to the changes in the dictionary processing.
31062 * gnat_rm.texi: Document the Ada_05 pragma.
31063 Section on record representation clauses describes the new more
31064 relaxed rules about placement of large packed bit array components.
31065 Add documentation of GNAT.UTF_32
31067 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
31069 * misc.c (gnat_post_options): Turn off structural
31072 2005-03-08 Laurent Guerby <laurent@guerby.net>
31074 * system-linux-sparc.ads: Fix typo in previous commit.
31076 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
31077 Laurent Guerby <laurent@guerby.net>
31080 * system-linux-sparc.ads: New.
31081 * Makefile.in: Add sparc linux entry.
31083 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
31085 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
31086 parameters as unused.
31088 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
31089 Partial merge from libada-gnattools-branch:
31091 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
31092 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
31093 into code in gnattools/Makefile.in. Remove direct dependencies on
31094 stamp-tools by tools clauses.
31095 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
31096 * config-lang.in: Add gnattools to $lang_dirs.
31098 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
31101 * utils.c (gnat_type_for_mode): Return null instead of ICE because
31102 we asked for an unknown mode.
31104 2005-02-12 Richard Henderson <rth@redhat.com>
31106 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
31107 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
31109 2005-02-10 Andreas Jaeger <aj@suse.de>
31111 * init.c (__gnat_initialize): Mark parameter as unused.
31113 2005-02-09 Doug Rupp <rupp@adacore.com>
31115 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
31116 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
31118 2005-02-09 Doug Rupp <rupp@adacore.com>
31120 * gnatchop.adb (dup, dup2),
31121 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
31123 * gnatlbr.adb (mkdir),
31124 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
31126 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
31128 2005-02-09 Doug Rupp <rupp@adacore.com>
31130 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
31132 2005-02-09 Robert Dewar <dewar@adacore.com>
31133 Thomas Quinot <quinot@adacore.com>
31134 Javier Miranda <miranda@adacore.com>
31135 Pascal Obry <obry@adacore.com>
31136 Ed Schonberg <schonberg@adacore.com>
31137 Doug Rupp <rupp@adacore.com>
31138 Gary Dismukes <dismukes@adacore.com>
31139 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31141 * g-zstspl.ads: New file.
31143 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
31145 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
31147 Add definition of Wide_Wide_Space for AI-285
31149 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
31150 interface (to support Ada 95 and Ada 2005 units).
31151 Add Unbounded_IO files
31152 Add entries for Wide_Wide packages for AI-285
31153 Add list of containers packages to Ada 2005 unit list
31155 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
31156 support new Unbounded_IO package cleanly.
31158 * g-utf_32.ads, g-utf_32.adb: New files.
31160 * Makefile.rtl: Add entry for g-utf_32
31161 Add new files for Unbounded_IO
31162 Adjust make file for new AI-285 wide wide packages
31163 Add AI-302 containers to the run time.
31165 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
31166 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
31167 subprograms for AI-301.
31169 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
31171 * a-stunau.ads: Minor comment correction
31173 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
31175 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
31176 (Check_RPC): Update to match changes in expanded code.
31177 Clean up unused entity.
31179 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
31180 was not taken into account.
31181 This includes proper initialization with Normalize_Scalars.
31182 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
31183 normalize scalars cases (particularly the latter) to do a better job
31184 of finding invalid representations.
31186 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
31188 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
31191 * exp_dist.adb: Add support for wide wide character type
31192 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
31193 private part, generate stub bodies at the end of the private part,
31194 not the visible part.
31195 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
31197 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
31198 generic wrapper to execute final processing after completing the
31199 expansion of the RPC receiver for an RACW.
31201 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
31202 packages and attributes.
31203 (Preset_Names): Addition of the new reserved words of Ada 2005,
31204 that is interface, overriding and synchronized.
31205 (Get_Pragma_Id): Give support to the use of the new reserved word
31206 "interface" as a pragma name.
31207 (Is_Pragma_Name): Give support to the use of the new reserved word
31208 "interface" as a pragma name.
31209 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
31210 attribute implementation.
31212 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
31213 checks to entities that are output parameters of Asm operations.
31214 Handle the Stream_Size attribute.
31215 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
31217 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
31219 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
31220 for second parameter being 0.0.
31221 Add support for wide wide character type.
31222 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
31224 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
31225 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
31226 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
31227 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
31228 for wide wide character cases.
31230 * cstand.adb: Create entities for Wide_Wide_Character and
31233 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
31234 accordance with AI-258.
31235 Add new declarations for 16/32 bit C character types (Part of AI285)
31237 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
31238 (Obsolescent_Warning): New field
31239 (Rep_Clause): New local subprogram used to share code. Returns the rep
31240 clause for which the name is given in parameter.
31241 (Has_Stream_Size_Clause): New routine.
31242 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
31243 (Address_Clause): Implementation is now using Rep_Clause.
31244 (Alignment_Clause): Idem.
31245 (Size_Clause): Idem.
31247 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
31248 entity in non-Ada 2005 mode and generate warning.
31250 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
31251 (Prag): Code cleanup. Remove old gnat pragma "overriding"
31253 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
31254 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
31255 on the named unit if the pragma is not in the current compilation unit,
31256 so that elaboration calls in the current unit can set up an elaboration
31257 dependency on the named unit, as needed.
31258 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
31259 subprogram as well as for subprograms declared within a package.
31260 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
31263 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
31264 to z) to avoid some instances of duplication for Wide_Wide packages.
31266 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
31269 * scn.adb: Char_Literal_Value field is now a Uint
31271 * scng.adb: Significant rewrite to handle new Ada 2005 features
31272 allowing wide and wide wide characters in program text, e.g. for
31273 identifiers, as described in AI-285.
31274 (Set_Reserved): New procedure, makes setting up keywords cleaner.
31275 (Initialize_Scanner): Register the new reserved words of Ada 2005.
31276 (Scan): Give support to the new reserved words.
31278 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
31279 warning notifying that interface, overriding, and synchronized are
31280 new reserved words.
31281 (P_Pragma): Allow the use of the new reserved word "interface" as
31284 * gnatls.adb, gnatbind.adb,
31285 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
31286 identifiers named "interface" to "SAL_Interface".
31288 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
31289 (Structured Exception handling).
31290 (Gen_Main_C): Idem.
31293 (Gen_Main_Ada): Set the default exit code if specified.
31294 (Gen_Main_C): Likewise.
31296 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
31297 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
31299 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
31302 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
31303 has a collision with the new Ada 2005 "interface" reserved word.
31305 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
31306 generate a warning notifying that interface, overriding, and
31307 synchronized are new reserved words.
31309 * scans.ads (Token_Type): Addition of the tokens corresponding to the
31310 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
31311 and Tok_Synchronized.
31313 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
31314 "dispatching" rather than "primitive" operations, since dispatching
31315 calls are now allowed to abstract formal subprograms (which are not
31317 Char_Literal_Value field is now a Uint
31318 (Resolve_Slice): If the prefix is an access to an unconstrained array,
31319 compute the actual subtype of the designated object to impose the proper
31321 (Resolve_Selected_Component): Do not insert an access check if the
31322 prefix is an access type: such a node is expanded into an explicit
31323 dereference, on which the access check is performed anyway. Removes
31324 expensive duplicate checks.
31325 (Resolve_Call): Use new flag Is_Obsolescent and field
31326 Obsolescent_Warning so that pragma Obsolescent works on library
31328 Add support for wide wide character type
31329 (Resolve_Allocator): Replace the error message on wrong null-exclusion
31330 value by a warning message.
31331 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
31332 as fixed-point, and one of the operands is non-static and universal, it
31333 can only be an illegal exponentiation operation, in which case there is
31334 no real value to retrieve.
31336 * exp_strm.adb: Add support for wide wide character type
31337 (Build_Elementary_Input_Call): Compute the size of the stream element by
31338 querying the rep chain to find the Stream_Attribute attribute value.
31339 (Build_Elementary_Write_Call): Ditto.
31341 * sem_aggr.adb: Char_Literal_Value field is now a Uint
31342 Add support for wide wide character type
31343 Replace the error messages on wrong null-exclusion value by warnings
31344 as described in Ada 2005.
31345 (Resolve_Extension_Aggregate): Document the fact that the error
31346 message on class-wide expressions in extensions aggregates.
31348 * sem_case.adb: Add support for wide wide character type
31350 * sem_ch13.adb: Add support for wide wide character type
31351 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
31353 * sem_ch3.adb: Add support for wide wide character type
31354 (Process_Subtype): If constraint is illegal for the type, set Ekind of
31355 now-useless Itype, to prevent cascaded errors on a compiler built
31358 * sem_ch8.adb: Add with and use of Sem_Disp.
31359 (Analyze_Subprogram_Renaming): Replace unclean uses of
31360 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
31361 of Corresponding_Spec to Empty).
31362 (Attribute_Renaming): Replace use of Corresponding_Spec with
31363 Corresponding_ Formal_Spec and simplify condition.
31364 (Use_One_Package): Check that scope of homonym of identifier is defined,
31365 before checking whether it is a wrapper package.
31366 Add support for wide wide character type
31368 * sem_eval.adb: Add support for wide wide character type.
31369 (Eval_Arithmetic_Op): Check for compile time known signed integer
31370 overflow in the non-static case.
31371 (Subtypes_Statically_Match): A formal scalar type and its base type do
31372 not statically match.
31374 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
31375 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
31377 (Unit_Declaration_Node): Ditto.
31378 (Is_Variable_Prefix): For the case of an indexed component whose prefix
31379 has a packed array type, the prefix has been rewritten into a type
31380 conversion. Determine variable-ness from the converted expression.
31381 Handle wide wide character cases.
31383 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
31385 * stringt.ads, stringt.adb: Handle full UTF-32 range.
31386 Remove ["0A"] from comment, since it can look like a line terminator.
31387 Currently we don't permit this, but this is under discussion by the
31388 ARG, and it is easy enough to use a different example.
31390 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
31391 handling UTF-32 encoding for wide wide character.
31392 Implement new brackets coding ["hhhhhhhh"]
31393 Add UTF-8 encodings for full UTF-32 range
31395 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
31397 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
31398 bit range Add full UTF-32 support.
31399 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
31400 notify that constraint error will be raised at run-time
31401 because a null value is assigned to a null-excluding object.
31402 Remove some obsolete declarations and make Char_Code
31405 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
31406 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
31407 Rcheck subprograms.
31409 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
31410 wrong null-exclusion value by a warning message.
31411 (Enable_Range_Check): Do range check if the prefix is an
31412 explicit dereference whose designated object is an unconstrained array.
31413 Current algorithm for removing duplicate checks is over-eager in this
31416 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
31417 null-exclusion value by a warning message
31419 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
31420 completely. Add support for Uint2 field
31422 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
31423 exp_prag.adb: Char_Literal_Value field is now a Uint.
31425 * exp_util.adb (Insert_Actions): Replace
31426 N_Formal_Subprogram_Declaration by
31427 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
31428 Char_Literal_Value field is now a Uint.
31430 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
31431 defined for subprogram renaming declarations. When set, the field
31432 indicates the defining entity of a corresponding formal subprogram
31433 when the renaming corresponds to a formal subprogram association in an
31435 (Set_Corresponding_Formal_Spec): New procedure to return
31436 Corresponding_Formal_Spec field.
31437 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
31438 (which is now a subtype).
31439 Char_Literal_Value field is now a Uint
31441 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
31442 pointer to the base of the dispatch table.
31443 Minor changes to comments.
31444 (Controlling_Type): New function for determining the tagged type
31445 associated with a tagged primitive subprogram.
31446 (Expand_Dispatching_Call): Add support for a controlling actual that is
31447 directly a value of type Ada.Tag rather than a tagged object.
31449 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
31450 describing the new layout.
31451 (Dispatch_Table): The expander computes the actual array size, allocates
31452 the Dispatch_Table record accordingly, and generates code that displaces
31453 the base of the record after the Typeinfo_Ptr component. The access to
31454 these components is done by means of local functions.
31455 (Offset_To_Top): New function.
31456 (Typeinfo_Ptr): New function.
31457 (Get_TSD): Modified to access the new position of the TSD.
31458 (Set_TSD): Modified to save the TSD in its new position.
31460 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
31461 case of formal abstract subprograms. Add check and message for -gnat05.
31464 * sem_ch12.adb: Add with and use for Sem_Disp.
31465 (Analyze_Associations): Minor change from "=" to "in" for use of
31466 N_Formal_Subtype_Declaration (which is now a subtype).
31467 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
31468 N_Formal_Subtype_Declaration (which is now a subtype).
31469 (Analyze_Formal_Subprogram): Add handling for
31470 N_Formal_Abstract_Subprogram, marking the formal as abstract and
31471 dispatching, setting the controlling status of the formal parameters
31472 and result, and issuing an error if there is no controlling type for
31473 the formal subprogram.
31474 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
31475 which is an unclean use of that field, we set the new field
31476 Corresponding_Formal_Spec to make the formal subprogram available to
31477 processing in Analyze_Subprogram_Declaration.
31478 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
31479 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
31480 Constrained, so that it is is does not statically match its anonymous
31483 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
31484 abstract formal subprograms in error check for functions returning
31485 abstract types. Set scope of new designator for
31486 a parameterless subprogram, so that it is available when checking the
31487 body for nested subprograms, before full analysis of said body.
31488 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
31489 subprogram only if inner one comes from source.
31490 (Analyze_Function_Call): If the call is given in object notation, the
31491 analysis of the name rewrites the node and analyzes it with the proper
31492 argument list. After analyzing the name, if the call has been rewritten
31493 and the result type is set, no further analysis is needed.
31494 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
31495 mark in function specification, in a context where the formals are
31496 visible and hide outer homographs.
31498 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
31499 as the tagged type for the cases of abstract formal subprograms and
31500 renamings of those. Clean up spec comments.
31501 (Check_Dispatching_Context): Add error message to indicate "abstract
31502 procedure", covering the case of a call to a formal abstract procedure
31503 that has statically tagged operands.
31504 (Check_Dispatching_Call): Check for the case of an actual given by
31505 a tag-indeterminate function call whose type is an ancestor of the
31506 containing call's associated tagged type. This situation can occur
31507 for inherited primitives with function defaults. In this case we
31508 use the tagged type's tag directly as the controlling argument for
31510 (Expand_Call): Name change on call to Expand_Dispatch_Call.
31512 * sprint.adb (Sprint_Node_Actual): Split
31513 N_Formal_Subprogram_Declaration into two alternatives for the new
31514 cases N_Formal_Abstract_Subprogram_Declaration and
31515 N_Formal_Concrete_Subprogram_Declaration.
31516 Char_Literal_Value field is now a Uint.
31518 * trans.c: Get rid of junk Uint2 reference.
31519 Char_Literal_Value field is now a Uint.
31520 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
31521 (gigi): Correct third arg to gimplify_body.
31523 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
31524 (TYPE_LANG_FLAG_0): Check for record or union.
31526 * treepr.adb: Char_Literal_Value field is now a Uint
31528 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
31531 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
31532 Add full UTF-32 support
31533 Char_Code is now 32 bits
31535 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
31536 wide character UTF_32 line terminators.
31537 Initialize Main_Source_File to avoid error when no main
31540 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
31541 (Main_Source_File) when no main source has been loaded, to avoid
31544 2005-02-09 Robert Dewar <dewar@adacore.com>
31546 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
31547 Fix name of Set routine
31549 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
31552 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
31553 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
31556 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
31557 forms of Get_Line subprograms for AI-301.
31559 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
31560 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
31561 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
31562 a-stwima.ads: Minor reformatting.
31564 2005-02-09 Doug Rupp <rupp@adacore.com>
31565 Thomas Quinot <quinot@adacore.com>
31567 * adaint.c, adaint.h
31568 [VMS] (to_ptr32): New function.
31569 (MAYBE_TO_PTR32): New macro.
31570 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
31572 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
31573 [VMS] (#define fork()): Remove since unneccessary.
31574 (__gnat_set_close_on_exec): New routine to support
31575 GNAT.OS_Lib.Set_Close_On_Exec.
31577 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
31578 the parent side as close-on-exec so that they are not inherited by the
31581 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
31582 set or clear the FD_CLOEXEC flag on a file descriptor.
31584 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
31585 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31589 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
31590 on the field if Pragma Component_Alignment (Storage_Unit).
31591 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
31592 side-effects as if it were a constant; also make SAVE_EXPR to protect
31594 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
31596 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
31597 (components_to_record): Test it.
31598 Fix improper usage of REFERENCE_CLASS_P.
31600 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
31603 * utils2.c: Minor reformatting.
31605 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
31606 handle other cases like RECORD_TYPE.
31608 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
31610 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31612 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
31613 component of an array of arrays in an assignment context, and the
31614 aggregate has component associations that require sliding on
31615 assignment, force reanalysis of the aggregate to generate a temporary
31616 before the assignment.
31617 (Must_Slide): Make global to the package, for use in Gen_Assign.
31619 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31621 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
31622 unchecked union with no inferable discriminants, return a
31623 Raise_Program_Error node, rather than inserting it at the point the
31625 (Expand_Record_Equality, Component_Equality): Handle properly the case
31626 where some subcomponent is an unchecked union whose generated equality
31627 code raises program error.
31629 2005-02-09 Doug Rupp <rupp@adacore.com>
31631 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
31632 [VMS] (#define exit hack): Remove.
31634 2005-02-09 Pascal Obry <obry@adacore.com>
31635 Arnaud Charlet <charlet@adacore.com>
31637 * init.c (__gnat_initialize): Add a new parameter eh which contains the
31638 address of the exception registration. The Win32 version of this
31639 routine calls __gnat_install_SEH_handler() to initialize the SEH
31640 (Structured Exception Handling) handler.
31641 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
31642 SEH (Structured Exception Handling) now.
31643 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
31644 (__gnat_initialize for ppc-vxworks): Adjust comments and the
31645 preprocessor condition protecting the call to the extra eh setup
31646 subprogram, which is only available for the ppc target.
31647 (__gnat_clear_exception_count): replaced reference to
31648 variable taskIdCurrent by call to taskIdSelf(), cleaner.
31650 * seh_init.c: New file.
31652 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
31653 (GNATBIND_OBJS): Idem.
31655 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
31656 routine takes a new parameter (a pointer to the exception registration
31657 for the SEH (Structured Exception Handling) support.
31659 * raise.h: (__gnat_install_SEH_handler): New prototype.
31660 Update copyright notice.
31662 * s-tassta.adb (Task_Wrapper): Declare the exception registration
31663 record and initialize it by calling __gnat_install_SEH_handler.
31665 2005-02-09 Vincent Celier <celier@adacore.com>
31667 * make.adb (Gnatmake): Do not fail when the main project has no object
31670 2005-02-09 Doug Rupp <rupp@adacore.com>
31672 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
31673 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
31674 [VMS]: Add translations for g-enblsp.adb.
31676 * s-asthan-vms.adb: Removed.
31677 * s-asthan-vms-alpha.adb: Added.
31679 2005-02-09 Pascal Obry <obry@adacore.com>
31681 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
31682 (LIBGNAT_OBJS): Add seh_init.o.
31684 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31687 * Makefile.in: Link all gnat tools with -static-libgcc, since
31688 -shared-libgcc is now used by default on some systems (e.g. linux with
31690 Remove references to Makefile.prolog/generic, no longer used.
31692 2005-02-09 Vincent Celier <celier@adacore.com>
31694 * prj-makr.adb (Process_Directory): Put file name in canonical case
31695 before matching against the patterns.
31696 If gnatname has been invoked as <prefix>-gnatname
31697 then invoke the compiler as <prefix>-gcc, not just "gcc".
31699 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31701 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
31702 with expansion disabled. The actual subtype is needed among other
31703 places when the selected component appears in the context of a loop
31704 bound, and denotes a packed array.
31705 (Operator_Check): Always use the first subtype in the
31706 error message, to avoid the appearance of internal base types.
31707 (Transform_Object_Operation): Copy each actual in full
31708 to the parameter associations of the constructed call, rather than
31709 using the shallow copy mechanism of New_Copy_List. This ensures that
31710 the chaining of named associations is done properly.
31711 (Complete_Object_Operation): Rewrite node, rather than
31712 replacing it, so that we can trace back to the original selected
31715 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
31716 and calls that use object notation, if the called function is not
31717 declared in a withed unit, place the elaboration constraint on the
31718 unit in the context that makes the function accessible.
31719 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
31720 imposes an elaboration constraint between two packages.
31722 2005-02-09 Ed Schonberg <schonberg@adacore.com>
31724 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
31725 views of a private type after handling its private dependents, to
31726 maintain proper stack discipline between entry and exit from the
31729 2005-02-09 Cyrille Comar <comar@adacore.com>
31731 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
31732 Minor reformatting.
31734 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31736 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
31737 fields for foreign threads.
31739 2005-02-09 Doug Rupp <rupp@adacore.com>
31741 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
31742 recursion warnings when compiled with -gnatdm.
31744 2005-02-09 Robert Dewar <dewar@adacore.com>
31746 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
31747 Slight fix to documentation of -gnaty with no parameters
31749 * xr_tabls.ads: Add ??? comment for missing overall comment
31751 * xsinfo.adb: Make default file name be sinfo.h, since this is what
31752 we now use by default.
31754 * xsnames.adb: Adjust end of file test to look for five space followed
31755 by '#' instead of six spaces. The format of xsnames.adb was modified
31756 in the last update.
31758 * a-numeri.ads: Add reference to AI-388 for greek letter pi
31761 * clean.adb: Minor reformatting.
31763 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
31764 gnatname.adb: Minor reformatting
31765 Add 2005 to copyright output when utility is run
31767 * csets.adb: Eliminate obsolete comment
31769 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
31772 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
31774 2005-02-09 Sergey Rybin <rybin@adacore.com>
31776 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
31777 the difference between compact and incompact layout and add the record
31778 representation clause to the example illustrating different layouts.
31779 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
31780 component clauses").
31782 2005-02-09 Florian Villoing <villoing@adacore.com>
31784 * gnat_ugn.texi: Fix typos.
31785 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
31787 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
31788 in the generated documentation.
31790 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31792 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
31794 Update linker wrapper when linking with non GNU C++.
31796 2005-02-09 Pascal Obry <obry@adacore.com>
31799 Document the procedure to debug the DllMain routine on Windows.
31800 Add note about -funwind-tables and mixed Ada and C/C++ programming in
31802 Document new BIND qualifer /RETURN_CODES=VMS.
31804 2005-02-09 Ben Brosgol <brosgol@adacore.com>
31806 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31807 Edited gnatmetric chapter
31809 2005-02-09 Robert Dewar <dewar@adacore.com>
31812 Changes to document new wide wide character support
31814 Update documentation on Normalize_Scalars and Initialize_Scalars
31816 2005-02-09 Pascal Obry <obry@adacore.com>
31818 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
31820 2005-02-09 Jose Ruiz <ruiz@adacore.com>
31822 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
31823 from the VxWorks kernel) that is needed for getting the active
31824 priority of the different tasks.
31826 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
31827 Use a pragma Elaborate_Body in the spec file instead.
31828 Noticed by code reading.
31830 2005-02-09 Thomas Quinot <quinot@adacore.com>
31832 * exp_util.ads: Minor correction in comment.
31834 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31836 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
31837 since this procedure is now too complex to be worth inlining.
31839 2005-02-09 Richard Henderson <rth@redhat.com>
31841 * utils.c (gnat_define_builtin): Remove.
31842 (gnat_install_builtins): Use build_common_builtin_nodes.
31844 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31846 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
31847 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
31848 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
31849 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
31850 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
31851 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
31852 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
31853 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
31854 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
31855 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
31856 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
31857 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
31858 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
31859 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
31860 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
31861 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
31862 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
31863 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
31864 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
31865 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
31866 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
31867 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
31868 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
31869 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
31870 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
31871 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
31872 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
31873 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
31874 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
31875 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
31876 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
31877 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
31878 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
31879 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
31882 2005-01-27 Laurent Guerby <laurent@guerby.net>
31884 * Makefile.in: Fix a-intnam.ads from previous commit,
31885 add 2005 to copyright.
31886 * a-intman-rtems.ads: Renamed to...
31887 * a-intnam-rtems.ads:
31889 2005-01-27 Laurent Guerby <laurent@guerby.net>
31891 * Makefile.in: Rename GNAT RTEMS specific files.
31892 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
31893 5rosinte.ads, 5rparame.adb: Replaced by files below.
31894 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
31895 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
31897 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
31898 Laurent Guerby <laurent@guerby.net>
31901 * 5rosinte.ads: Add No_Key constant.
31902 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
31903 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
31905 2005-01-26 Laurent Guerby <laurent@guerby.net>
31908 * i-cobol.adb (Valid_Numeric): Handle zero length case.
31910 2005-01-20 Richard Henderson <rth@redhat.com>
31912 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
31913 a-intnam-linux.ads and system-linux-alpha.ads.
31914 * a-intnam-linux-alpha.ads: Remove file.
31915 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
31916 * system-linux-alpha.ads: New file.
31918 2005-01-18 Jakub Jelinek <jakub@redhat.com>
31921 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
31922 set to the new string.
31924 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
31926 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
31929 2005-01-18 Richard Henderson <rth@redhat.com>
31931 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
31932 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
31934 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
31936 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
31938 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
31939 (GCC_ZCX_Support): Likewise.
31941 2005-01-11 Bastian Blank <waldi@debian.org>
31943 * system-linux-s390.ads: Define Preallocated_Stacks.
31944 * system-linux-s390x.ads: Likewise.
31946 2005-01-04 Arnaud Charlet <charlet@adacore.com>
31948 * gnat_ugn.texi: Fix texi errors with null variables.
31950 2005-01-03 Thomas Quinot <quinot@adacore.com>
31952 * gen-soccon.c: New utility program to generate g-soccon.ads
31955 * socket.c, gsocket.h: Split inclusion of system header files into a
31956 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
31958 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
31959 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31960 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
31961 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
31962 should not be edited by hand anymore, but should be regenerated using
31965 2005-01-03 Robert Dewar <dewar@adacore.com>
31966 Ed Schonberg <schonberg@adacore.com>
31967 Vincent Celier <celier@adacore.com>
31969 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
31970 on/off, since this is an obsolescent feature, for which we now generate
31973 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
31974 warning mode is set and obsolescent usage of this attribute occurs.
31975 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
31976 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
31977 predates, and partly motivates, the adoption of the AI.
31978 Implement new Ada 2005 attribute Mod
31980 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
31983 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
31985 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
31986 pragma restrictions.
31987 New entry for Ada 2005 attribute Mod.
31990 Add recognition of new pragma Restrictions No_Dependence
31991 Recognize restriction No_Obsolescent_Features at parse time
31993 * bcheck.adb: Add circuitry for checking for consistency of
31994 No_Dependence restrictions.
31996 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
31999 * restrict.ads, restrict.adb: Add subprograms to deal with
32000 No_Dependence restrictions.
32002 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
32005 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
32006 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
32008 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
32009 dummy parameter to scng instantiation.
32010 Needed for new restriction No_Obsolescent_Features
32012 * scn.adb: (Obsolescent_Check): New procedure
32013 Needed for new restriction No_Obsolescent_Features
32015 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
32016 specified by AI-285, needed for implementation of AI-388 (adding greek
32017 pi to Ada.Numerics).
32018 Add new generic formal to scng, needed for new restriction
32019 No_Obsolescent_Features.
32021 * s-rident.ads: Add new restriction No_Obsolescent_Features.
32023 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
32024 restrictions lines.
32025 (Scan_ALI): When finding an unexpected character on an R line, raise
32026 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
32027 Ignore_Errors is True, default restrictions are set and scanning of the
32028 ALI file continues with the next line. Also, when Bad_R_Line is raised
32029 and Ignore_Errors is True, skip to the end of le line.
32031 * sem_ch10.adb: Check that explicit with's do not violate
32032 No_Dependence restrictions.
32033 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
32034 illegal context clauses containing child units of instance.
32036 * sem_prag.adb: Processing and checking for new No_Dependence
32038 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
32039 analyze and check the External argument.
32041 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
32043 2005-01-03 Robert Dewar <dewar@adacore.com>
32045 * atree.adb: Add a fifth component to entities
32046 This allows us to add 32 flags and four new fields
32048 * atree.ads: Add a fifth component to entities
32049 This allows us to add 32 flags and four new fields
32051 * einfo.ads, einfo.adb: Document new fields and new flags now available
32052 Add routines for printing new fields
32054 * treepr.adb: Call routines to print out additional fields if present
32056 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32058 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
32059 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
32061 * Makefile.in: Add support to build shared Ada libraries on solaris x86
32062 Remove gpr2make, replaced by gprmake.
32063 Remove references to gnatmem and libaddr2line.
32064 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
32065 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
32066 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
32067 a-numaux-darwin.ads and a-numaux-darwin.adb
32068 Enable mlib-tgt-lynxos.adb on lynxos.
32070 * Make-lang.in: Remove rules for gpr2make.
32071 When generating sdefault.adb, do not call Relocate_Path
32072 on S3 for function Target_Name, as it is not a path.
32073 Remove references to gnatmem and libaddr2line.
32075 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
32078 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
32080 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
32081 address is incompatible with its base type alignment constraints when
32082 this can be decided statically.
32084 2005-01-03 Olivier Hainque <hainque@adacore.com>
32086 * decl.c (compatible_signatures_p): New function. The intended purpose
32087 is to check if two function signatures for a call-site and a callee are
32088 compatible enough for the call to be valid. The underlying purpose is
32089 to check if a call to a mapped builtin is using the right interface.
32090 The current code actually does not check antyhing - this a placeholder
32091 for future refinements.
32092 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
32093 builtin calls for convention Intrinsic.
32095 * gigi.h (builtin_decl_for): Declare (new function).
32097 * utils.c (gnat_install_builtins): Install the target specific builtins.
32098 (builtin_decl_for): New function, provide a dummy body for now.
32100 2005-01-03 Geert Bosch <bosch@adacore.com>
32102 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
32103 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
32104 (Pred): Implement in terms of Succ.
32106 * trans.c (convert_with_check): Reimplement conversion of float to
32109 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32110 Vincent Celier <celier@adacore.com>
32112 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
32113 bounds can be negative, and must be declared Int, not Nat.
32115 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
32116 array is checked after using the index in the array.
32118 * makegpr.adb (Add_Switches): Check if there is a package for the
32119 processor. If there is no package, do not look for switches.
32121 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32123 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
32124 generation of predefined stream operations (specs and bodies) should
32125 proceed. Under various restrictions these subprograms must not be
32128 2005-01-03 Thomas Quinot <quinot@adacore.com>
32131 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
32132 amount of PCS-specific code in RACW stubs generation.
32133 (Copy_Specification): Set Etype on copied formal parameter entities, as
32134 this information is needed for PolyORB stubs generation.
32135 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
32136 variable Dynamic_Async.
32137 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
32138 (Build_RPC_Receiver_Specification): Make generic again, as recent
32139 changes have allowed RPC receivers to have the same profile for both
32140 variants of the PCS.
32141 Reorganise RPC receiver generation to reduce differences between the
32142 structure of GARLIC and PolyORB RPC receivers.
32143 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
32145 Simplify elaboration code for RCI packages.
32147 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
32148 generation to reduce differences between the structure of GARLIC and
32149 PolyORB RPC receivers.
32151 * s-stratt.adb: Fix typo in comment.
32153 2005-01-03 Thomas Quinot <quinot@adacore.com>
32155 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
32156 copied from Make_Init_Call).
32158 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
32159 reads and assignments on a temporary variable declared with appropriate
32162 2005-01-03 Robert Dewar <dewar@adacore.com>
32164 * i-c.adb (To_C): Raise CE if string is null and Append_Null
32166 2005-01-03 Robert Dewar <dewar@adacore.com>
32168 * i-cstrin.adb (Update): Do not append a null in form called with a
32169 String. This avoids unintended behavior.
32171 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32174 * init.c: Fix warnings on Free BSD section.
32176 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32179 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
32182 2005-01-03 Vincent Celier <celier@adacore.com>
32184 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
32185 libraries when Unique_Compile is True (-u switch).
32188 2005-01-03 Robert Dewar <dewar@adacore.com>
32190 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
32191 upper case letter or underscore after W, as allowed by spec.
32193 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32195 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
32196 darwin port by using proper type definitions from header files.
32197 Use SIGTERM instead of SIGABRT for SIGADAABORT.
32199 2005-01-03 Robert Dewar <dewar@adacore.com>
32201 * par.adb: Enhance error message handling for configuration file
32204 2005-01-03 Robert Dewar <dewar@adacore.com>
32206 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
32207 removed during the previous update (test properly for case of dividing
32208 largest negative number by -1, which generates overflow).
32210 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32211 Sergey Rybin <rybin@adacore.com>
32213 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
32214 to use as the defining identifier for a formal package.
32215 (Remove_Parent): If the instance takes place within (an instance of)
32216 a sibling, preserve private declarations of common parent.
32218 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32220 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
32221 to determine whether one of the operands is a fixed-point type for
32222 which a user-defined multiplication or division operation might be
32225 * sem_res.adb (Valid_Conversion): The legality rules for conversions
32226 of access types are symmetric in Ada 2005: either designated type can
32229 2005-01-03 Vincent Celier <celier@adacore.com>
32231 * s-fileio.adb (Temp_File_Record): Change length of string component
32232 Name from L_tmpnam + 1 to max_path_len + 1.
32234 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32236 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
32237 Self_Id.Deferral_Level = 0.
32238 (Do_Pending_Action): Move this function to the spec.
32240 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
32241 Do_Pending_Action explicitely when needed, in case we're using
32242 No_Abort restrictions.
32244 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
32245 deferral level since it will not get changed by the generated code.
32246 Keeping a default value of 1 would prevent some operations (e.g.
32247 select or delay) to proceed successfully.
32249 2005-01-03 Ben Brosgol <brosgol@adacore.com>
32250 Robert Dewar <dewar@adacore.com>
32251 Cyrille Comar <comar@adacore.com>
32253 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
32254 porting guide chapter (vms version).
32255 Revised doc title (removed "for native platforms") and subtitle.
32256 Add discussion on warning flag for obsolescent features. First we
32257 note that it applies to obsolete GNAT features, which was previously
32258 omitted. Second we contrast the behavior with that of the new
32259 Ada 2005 AI-368 restriction No_Obsolescent_Features.
32260 Preliminary rewriting of GNAT & libraries chapter in order to take
32261 into account default project locations & new project manager
32264 2005-01-03 Robert Dewar <dewar@adacore.com>
32266 * cstand.adb (Create_Operators): Clean up format and documentation of
32267 unary and binary operator result tables. No change in code, just
32268 reformatting and addition of comments.
32270 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
32271 sem_ch2.adb: Minor reformatting
32273 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
32274 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
32275 comments for Tree_Read and Tree_Write.
32277 2005-01-03 Pascal Obry <obry@adacore.com>
32279 * exp_attr.ads: Minor reformatting.
32281 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
32283 * comperr.adb (Compiler_Abort): Add specialized message for GAP
32286 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32288 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
32289 whether the ancestor type is private, as may be the case with nested
32292 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
32295 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
32297 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
32299 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
32300 * utils2.c (build_unary_op): Likewise.
32302 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32304 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
32306 2004-12-19 Richard Henderson <rth@redhat.com>
32308 * trans.c (gigi): Update gimplify_body call.
32310 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
32312 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
32314 2004-12-07 Ed Falis <falis@adacore.com>
32316 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
32317 current task being suspended.
32319 * init.c (__gnat_clear_exception): added to reset VxWorks exception
32321 (__gnat_map_signal): removed test for current task being suspended.
32323 2004-12-07 Gary Dismukes <dismukes@adacore.com>
32325 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
32326 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
32327 targets (such as AAMP).
32329 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32331 * atree.adb (Visit_Itype): Create a new name for the generated itype,
32332 because the back-end may otherwise treat it as a redefinition of the
32335 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
32337 * back_end.adb (Scan_Back_End_Switches): Accept --param.
32339 * lang-specs.h: Accept --param.
32341 2004-12-07 Vincent Celier <celier@adacore.com>
32343 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
32344 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
32345 Current_Body_Suffix => Ada_Body_Suffix).
32346 Take into account Externally_Built attribute.
32348 * clean.adb (In_Extension_Chain): Always return False when one of the
32349 parameter is No_Project.
32350 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
32351 Ada_Language_Index).
32352 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
32353 Process_Languages for procedure Parse).
32355 * gnatcmd.adb (Carg_Switches): New table.
32356 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
32357 Adapt to name changes in package Prj (Current_Spec_Suffix =>
32358 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
32360 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
32361 Header_Num and function Hash are now declared in package Prj,
32364 * prj.adb (Suffix_Of): New function.
32365 (Set (Suffix)): New procedure.
32366 (Hash): One function moved from Prj.Com
32367 (Is_Present, Language_Processing_Data_Of): New functions
32368 (Set): Two new procedures
32369 (Add_Language_Name, Display_Language_Name): New procedures
32371 * prj.ads: (Suffix_Of): New function
32372 (Set (Suffix)): New procedure
32373 Add several types and tables for multi-language support.
32374 (Header_Num): Type moved from Prj.Com
32375 (Hash): Two functions moved from Prj.Com
32376 (Is_Present, Language_Processing_Data_Of): New functions
32377 (Set): Two new procedures
32378 (Add_Language_Name, Display_Language_Name): New procedures
32379 (Naming): Component name changes:
32380 Current_Spec_Suffix => Ada_Spec_Suffix,
32381 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
32382 Impl_Suffixes, Supp_Suffixes.
32383 (Project_Data): New components: Externally_Built, Supp_Languages,
32384 First_Language_Processing, Supp_Language_Processing, Default_Linker,
32385 Default_Linker_Path.
32387 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
32388 new package Language_Processing with its attributes (Compiler_Driver,
32389 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
32390 Binder_Driver, Default_Linker).
32392 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
32393 (Header_Num): Type moved to package Prj
32395 * prj-env.adb: Adapt to name changes in package Prj
32396 (Current_Spec_Suffix => Ada_Spec_Suffix,
32397 Current_Body_Suffix => Ada_Body_Suffix).
32399 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
32400 default to the project path, except the "-" is one of the directories
32401 in env var ADA_PROJECT_PATH.
32402 (Current_Project_Path): Global variable, replacing Project_Path
32403 that was in the body of Prj.Part.
32404 (Project_Path): New function
32405 (Set_Project_Path): New procedure
32406 Initialize Current_Project_Path during elaboration of the package
32407 Remove dependency on Prj.Com, no longer needed
32409 * prj-ext.ads (Project_Path): New function
32410 (Set_Project_Path): New procedure
32412 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
32413 suffix is defined for language <lang>.
32414 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
32415 accessing directly the components of Naming.
32416 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
32417 Reorganise of this package.
32418 Break procedure Check in several procedures.
32420 * prj-nmsc.ads: Replace all procedures (Ada_Check,
32421 Other_Languages_Check and Language_Independent_Check) with a single
32424 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
32425 Process_Languages, no longer needed.
32427 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
32428 Current_Project_Path.
32429 Remove elaboration code, moved to the body of Prj.Ext
32430 Use new function Prj.Ext.Project_Path instead of old variable
32432 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
32433 When comparing with project paths on the stack, first put the resolved
32434 path in canonical case.
32435 (Parse_Single_Project): Set the path name of the project file in the
32436 tree to the normalized path.
32438 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
32439 parameter Process_Languages, no longer needed.
32440 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
32441 Other_Languages_Check.
32443 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
32444 to store the resolved canonical path of the project file.
32445 Remove dependency to Prj.Com, no longer needed
32447 * prj-util.adb: Adapt to name changes in package Prj
32448 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
32451 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
32452 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
32453 Externally_Built, Include_Option, Language_Processing.
32455 * makegpr.adb: Numerous changes due to changes in packages
32458 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
32459 default to the project path, except whe "-" is one of the directories
32460 in env var ADA_PROJECT_PATH.
32461 (Gnatls): In verbose mode, add the new section "Project Search Path:"
32463 2004-12-07 Robert Dewar <dewar@adacore.com>
32465 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
32467 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
32470 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
32471 flag. No longer needed now that we handle this in gnat1drv.adb.
32473 * repinfo.ads: Minor reformatting
32475 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32476 Olivier Hainque <hainque@adacore.com>
32477 Eric Botcazou <ebotcazou@adacore.com>
32479 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
32480 TYPE_SIZE_UNIT of result type if SIZE is not specified.
32481 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
32482 of a bitfield, which we know is useless and causes trouble because of
32483 alignment implications.
32485 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
32487 (process_attributes): Clear DECL_COMMON again when a section attribute
32489 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
32490 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
32491 (create_field_decl): Special case ADDRESSABLE negative to mean
32492 "no bitfield creation", to be used by make_aligning_type. Don't
32493 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
32494 fields claimed addressable still have to be bitfields. Use
32495 value_factor_p instead of a raw binop construction to check for the
32496 position's alignment.
32498 2004-12-07 Geert Bosch <bosch@adacore.com>
32500 * eval_fat.adb: Revert previous change.
32502 2004-12-07 Thomas Quinot <quinot@adacore.com>
32503 Ed Schonberg <schonberg@adacore.com>
32505 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
32506 with an implicit dereference as its prefix, use
32507 Insert_Explicit_Dereference instead of merely rewriting the prefix into
32508 an explicit dereference. This ensures that a reference to the original
32509 prefix is generated, if appropriate.
32511 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
32512 dereference is rewritten to an explicit one, generate a reference to
32513 the entity denoted by its prefix using the original prefix node, so
32514 the dereference can be properly recorded as a read of the denoted
32515 access value, if appropriate.
32517 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
32518 emitting 'assigned but never read' warning on a variable on the basis
32519 that it has an access type.
32520 (Check_References): Emit unreferenced warning when the scope is a
32523 2004-12-07 Robert Dewar <dewar@adacore.com>
32524 Ed Schonberg <schonberg@adacore.com>
32526 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
32529 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
32530 leaving call unchanged.
32531 This deals with the case where the pragma Import specified
32532 an external name, to be handled by the back end.
32534 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
32535 subprogram which is Imported with convention Intrinsic if an
32536 External_Name argument is specified.
32537 (Process_Import_Or_Interface): Properly diagnose link name argument.
32538 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
32539 with Sem_Ch6.Cannot_Inline.
32540 (Process_Inline): Provide separate warning for inapplicable inline
32542 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
32543 treatment is uniform on different targets.
32545 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32547 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
32548 construct is rewritten, preserve end label to permit source navigation.
32550 2004-12-07 Thomas Quinot <quinot@adacore.com>
32552 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
32553 Specific_Build_Stub_Target): New subprograms.
32554 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
32555 the PCS implementation used, using the above PCS-customized subprograms.
32556 Minor reformatting.
32557 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
32558 for generation of DSA code targeted to the PolyORB PCS.
32559 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
32560 implementation of the partition communication subsystem in ancillary
32562 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
32563 PolyORB_Support.Build_Stub_Type): New subrograms containing the
32564 PCS-specific part of Add_Stub_Type.
32565 (Insert_Partition_Check): Use runtime library function to perform
32568 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
32569 (RE_Same_Partition): New entity, from s-parint.
32571 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
32573 2004-12-07 Gary Dismukes <dismukes@adacore.com>
32575 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
32576 Output the copyright message on a separate line from the version
32579 2004-12-07 Joel Brobecker <brobecker@adacore.com>
32581 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
32582 compile-time warning.
32584 2004-12-07 Robert Dewar <dewar@adacore.com>
32586 * g-regpat.adb: (Match): Change a misuse of or to or else
32588 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32591 (Generate_Reference): Handle properly a reference to an entry formal,
32592 when an accept statement has a pragma Unreferenced for it.
32594 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
32595 and the Has_Pragma_Unreferenced flag for each formal before analyzing
32596 the body, to ensure that warnings are properly emitted for each accept
32597 statement of a given task entry.
32599 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
32601 * Makefile.in: Add support for foreign threads on VMS.
32603 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32605 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
32607 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
32609 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
32611 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
32613 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
32615 2004-12-07 Robert Dewar <dewar@adacore.com>
32617 * nlists.adb (Prepend_Debug): Remove parameters and nest within
32619 (Remove_Next_Debug): Same fix
32621 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
32622 maintain back pointers now, though we did not used to, and comments
32624 (Prepend): Remove pragma Inline.
32625 (Remove_Next): Same cleanup
32627 2004-12-07 Thomas Quinot <quinot@adacore.com>
32629 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
32630 used to record an implicit dereference as a read operation on its
32631 prefix when operating under -gnatc. Necessary to avoid spurious
32632 'variable assigned but never read' warnings in that mode.
32633 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
32634 is a non-overloaded implicit dereference, call the above subprogram to
32635 ensure proper recording of references.
32637 2004-12-07 Gary Dismukes <dismukes@adacore.com>
32639 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
32640 to be resolved later as part of Analyze_Iteration_Scheme's call to
32643 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32645 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
32646 prefix is not a scalar type, place error message on prefix, not on
32649 2004-12-07 Bernard Banner <banner@adacore.com>
32651 * vxaddr2line.adb: Add support for x86 vxworks
32653 2004-12-07 Thomas Quinot <quinot@adacore.com>
32655 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
32656 documentation of the behaviour of these functions when passed an IP
32657 address that has no record in the system hosts database and no reverse
32660 * cstand.adb, a-tags.ads: Fix typos in comment.
32662 2004-12-07 Robert Dewar <dewar@adacore.com>
32664 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
32665 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
32666 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
32667 s-poosiz.ads: Minor reformatting
32669 * make.adb: Minor reformatting
32670 Add some ??? comments asking for more comments
32672 * s-poosiz.adb: Minor reformatting
32673 Add comments on alignment requirement
32675 * sinfo.ads: Remove obsolete comment and fix typo.
32677 2004-12-07 Vincent Celier <celier@adacore.com>
32678 Sergey Rybin <rybin@adacore.com>
32680 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
32681 Files" with the new tool and package names.
32682 Reformatting to suppress most of the warnings for line too long
32683 Document the new section "Project Search Path:" in the output of
32685 Add gnatmetric section
32687 2004-12-07 Vincent Celier <celier@adacore.com>
32689 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
32690 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
32691 and -eit to -ept. Added qualifier
32692 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
32694 2004-11-27 Andreas Schwab <schwab@suse.de>
32696 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
32698 2004-11-25 Arnaud Charlet <charlet@adacore.com>
32700 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
32701 internal implementation unit GNAT.Sockets.Thin,
32702 as their usage for sockets is non-portable (using the read and write
32703 functions from the system runtime library is fine on UNIX but won't
32704 work under Windows).
32706 * mingw32.h: Update copyright notice.
32708 2004-11-25 Arnaud Charlet <charlet@adacore.com>
32710 * ada-tree.h: Minor reformatting of previous change to avoid lines
32711 longer than 79 characters.
32713 2004-11-25 Olivier Hainque <hainque@adacore.com>
32715 * tb-gcc.c: GCC infrastructure based implementation of
32718 2004-11-24 Steven Bosscher <stevenb@suse.de>
32720 * misc.c (gnat_post_options): Don't clear
32721 flag_inline_functions.
32723 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
32726 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
32729 2004-11-21 Andreas Jaeger <aj@suse.de>
32731 * stylesw.adb: Change Style_Check_Subprogram_Order to
32732 Style_Check_Order_Subprograms.
32734 2004-11-18 Arnaud Charlet <charlet@adacore.com>
32736 * adaint.h, adaint.c
32737 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
32739 Add also a cast to kill another warning.
32740 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
32741 parameter with the priority class of the parent process instead of
32742 always using the NORMAL_PRIORITY_CLASS.
32743 (__gnat_dup): New function.
32744 (__gnat_dup2): New function.
32745 (__gnat_is_symbolic_link): Enable the effective body of this
32746 function when __APPLE__ is defined.
32748 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
32751 2004-11-18 Olivier Hainque <hainque@adacore.com>
32753 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
32754 address of which may be used to represent "others" and "all others"
32755 choices in exception tables, instead of the current harcoded
32756 (void *)0 and (void *)1.
32757 (Setup_Exception): Do nothing in the GNAT SJLJ case.
32759 * gigi.h (others_decl, all_others_decl): New decls representing the
32760 new Others_Value and All_Others_Value objects.
32761 (struct attrib): Rename "arg" component as "args", since GCC expects a
32762 list of arguments in there.
32764 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
32765 corresponding objects exported by a-exexpr, instead of hardcoded dummy
32768 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
32769 others_decl and all_others_decl instead of hardcoded dummy addresses
32770 to represent "others" and "all others" choices, which is cleaner and
32771 more flexible with respect to the possible eh pointer encoding policies.
32773 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
32774 (process_attributes): Account for the naming change of the "args"
32775 attribute list entry component.
32777 * decl.c (build_attr_list): Rename into prepend_attributes to allow
32778 cumulating attributes for different entities into a single list.
32779 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
32780 attributes for the current entity and propagate first subtype
32781 attributes to other subtypes.
32782 <E_Procedure>: Attribute arguments are attr->args and not
32783 attr->arg any more.
32784 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
32785 argument provided, as this is what GCC expects. Use NULL_TREE instead
32788 2004-11-18 Robert Dewar <dewar@adacore.com>
32790 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
32791 Minor reformatting througout (including new function specs)
32792 Add ??? comments asking for clarification.
32794 2004-11-18 Thomas Quinot <quinot@adacore.com>
32796 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
32797 incomplete duplicate implementation of this subprogram from butil.
32799 2004-11-18 Thomas Quinot <quinot@adacore.com>
32801 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
32802 procedures factors the common processing for building an RPC receiver
32803 for an RCI package or an RACW type.
32804 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
32805 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
32806 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
32808 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
32810 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
32812 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
32813 distribution subprogram identifiers that are either subprogram numbers
32815 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
32816 string distribution identifiers assigned to a given subprogram.
32817 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
32818 (Add_RAS_Dereference_TSS): Add comments.
32819 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
32820 is not referenced yet because it will be used by the PolyORB DSA
32822 (Insert_Partition_Check): Remove fossile code.
32823 (First_RCI_Subprogram_Id): Document this constant.
32824 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
32826 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
32827 replaced with calls to Get_Library_Unit_Name_String. Previously there
32828 were several instances of the same code in different locations in the
32829 compiler; this checkin completes the replacement of all of these
32830 instances with calls to a common subprogram.
32831 Minor reformatting.
32833 * sem_dist.adb: Remove comment noting that RPC receiver generation
32834 should be disabled for RACWs that implement RASs.
32835 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
32837 * sem_util.ads, sem_util.adb (Has_Stream): New function
32838 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
32839 qualified name of a library unit into the name buffer.
32840 (Note_Possible_Modification): Generate a reference only
32841 if the context comes from source.
32843 * snames.ads (PCS_Names): New subtype corresponding to names of
32844 supported implementations of the Partition Communication Subsystem
32845 (PCS) (i.e. the runtime library support modules for the distributed
32848 2004-11-18 Robert Dewar <dewar@adacore.com>
32849 Ed Schonberg <schonberg@adacore.com>
32851 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
32852 (Has_Rep_Pragma): New function
32853 (Has_Attribute_Definition_Clause): New function
32854 (Record_Rep_Pragma): Moved here from sem_ch13.adb
32855 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
32857 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
32859 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
32860 (Expand_Pragma_Psect_Object): New procedure
32861 These procedures contain the revised and cleaned up processing for
32862 these two pragmas. This processing was formerly in Sem_Prag, but
32863 is more appropriately moved here. The cleanup involves making sure
32864 that the pragmas are properly attached to the tree, and that no
32865 nodes are improperly shared.
32867 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
32868 pragmas to Exp_Prag, which is more appropriate.
32869 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
32870 check for duplicates Remove use of Is_Psected flag, no longer needed.
32871 Use new Make_String_Literal function with string.
32873 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
32874 that are functions return universal values, that have to be converted
32875 to the context type.
32876 Use new Make_String_Literal function with string.
32877 (Get_Stream_Convert_Pragma): New function, replaces the use of
32878 Get_Rep_Pragma, which had to be kludged to work in this case.
32880 * freeze.adb: Use new Has_Rep_Pragma function
32882 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
32883 function with string.
32884 Use new Has_Rep_Pragma function.
32886 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
32889 2004-11-18 Robert Dewar <dewar@adacore.com>
32891 * errout.ads, errout.adb: (First_Sloc): New function
32893 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
32894 check (-gnatyx) instead of being included as a redundant construct
32897 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
32898 Style_Check_Order_Subprograms.
32900 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
32901 stylesw.adb: Add Style_Check_Xtra_Parens
32903 * usage.adb: Add line for -gnatyx (check extra parens)
32905 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
32907 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32908 Robert Dewar <dewar@adacore.com>
32910 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
32911 discriminant of a constrained subtype, analyze the copy of the
32912 corresponding constraint, because in some cases it may be only
32913 partially analyzed.
32914 Removes long-lived ??? comments.
32916 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
32917 handled controlled or secondary-stack expressions within the
32918 iteration_scheme of a loop.
32920 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
32921 bounds that may contain functions calls, to prevent memory leaks when
32922 the bound contains a call to a function that uses the secondary stack.
32923 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
32924 generate temporaries for loop bounds that might contain function calls
32925 that require secondary stack and/or finalization actions.
32927 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
32928 selected component and the selector is overloadable (not just a
32929 function) treat as function call, Analyze_Call will disambiguate if
32931 (Analyze_Selected_Component): Do not generate an actual subtype for the
32932 selected component if expansion is disabled. The actual subtype is only
32933 needed for constraint checks.
32934 (Analyze_Allocator): If restriction No_Streams is set, then do
32935 not permit objects to be declared of a stream type, or of a
32936 composite type containing a stream.
32938 * restrict.ads: Remove the a-stream entry from Unit_Array, since
32939 No_Streams no longer prohibits with'ing this package.
32941 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
32942 discriminants, but the parent base has unknown discriminants, there is
32943 no discriminant constraint to inherit. Such a discrepancy can arise
32944 when the actual for a formal type with unknown discriminants is a
32945 similar private type whose full view has discriminants.
32946 (Analyze_Object_Declaration): If restriction No_Streams is set, then
32947 do not permit objects to be declared of a stream type, or of a
32948 composite type containing a stream.
32950 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32952 * exp_dbug.ads: Update documentation to reflect simpler encoding for
32953 protected operations.
32955 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
32956 generated name, it complicates decoding in gdb and hinders debugging
32957 of protected operations.
32958 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
32959 flag for the protected entry barrier function.
32960 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
32961 flag for the protected entry function.
32963 2004-11-18 Nicolas Setton <setton@adacore.com>
32965 * expect.c: Define __unix__ when __APPLE__ is defined.
32967 * Makefile.in: Inform the value of the variable GMEM_LIB in the
32968 Darwin-specific section.
32970 * lang-specs.h: Change the placement of the %1 marker.
32971 Works around the fact that gcc adds -fPIC by default under Darwin.
32973 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32975 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
32976 type of the object with the packed array type, set the Analyzed flag
32977 on the object if it is an entity or simple indexed component, to avoid
32978 spurious type errors.
32980 2004-11-18 Gary Dismukes <dismukes@adacore.com>
32982 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
32983 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
32984 separate line from the version message.
32986 2004-11-18 Ed Falis <falis@adacore.com>
32988 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
32990 (init_float): Eliminate initialization of floating point status for
32991 AE653. The instructions have no effect for vThreads.
32993 2004-11-18 Vincent Celier <celier@adacore.com>
32995 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
32996 gnatbind is invoked with -shared.
32998 2004-11-18 Jose Ruiz <ruiz@adacore.com>
33000 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
33001 for Detect_Blocking which is redundant with the check done within the
33002 procedure Protected_Single_Entry_Call.
33003 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
33004 Detect_Blocking which is redundant with the check done within the
33005 procedure Protected_Single_Entry_Call.
33007 2004-11-18 Vincent Celier <celier@adacore.com>
33009 * makegpr.adb (Compile): Put the compiling switches (in package
33010 Compiler and on the command line) immediately after "-c", instead of
33011 at the end of the command line invocation of the compiler, when
33012 compiling a non-Ada file.
33013 (Build_Global_Archive): When there is no need to rebuild the archive,
33014 set Global_Archive_Exists, so that the archive is passed to the linker
33017 2004-11-18 Robert Dewar <dewar@adacore.com>
33018 Sergey Rybin <rybin@adacore.com>
33021 Remove extra paren check from list of checks for redundant constructs
33022 Add documentation of new -gnatyx style check (check extra parens)
33023 Remove paragraph about gnatelim debug options.
33025 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
33026 objects rather than forbidding dependencies on the package Ada.Streams.
33028 * sinfo.ads: Add ??? note that we should document pragmas passed to
33031 * g-expect.ads: Fix a few typos in the comments.
33033 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
33035 * misc.c (gnat_handle_option): Use %< and %> for quoting in
33038 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33040 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
33042 2004-11-07 Andreas Schwab <schwab@suse.de>
33044 * Makefile.in (install-gnatlib): Remove spurious hyphen.
33046 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
33049 * Makefile.in (darwin): Set soext to .dylib.
33051 2004-10-26 Vincent Celier <celier@gnat.com>
33052 Thomas Quinot <quinot@act-europe.fr>
33054 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
33055 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
33056 there is no use of GNAT.Sockets.Constants.
33057 Remove remaining pragma Import for C_Write
33058 Remove C_Read and C_Write from internal implementation unit
33059 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
33060 the read and write functions from the system runtime library is fine
33061 on UNIX but won't work under Windows).
33063 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
33064 (Check_Selector): Use C_Recv instead of C_Read.
33065 Selectors are the GNAT.Sockets abstraction to perform a select()
33066 call on a set of descriptors. To allow abortion of an ongoing
33067 select operation, some data is written to a dedicated socket that
33068 is always monitored.
33069 Under Windows, the write and read library functions cannot operate
33070 on sockets, so we need to use send and recv instead, which is portable
33071 across all supported platforms.
33073 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
33074 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
33075 (using the read and write functions from the system runtime library is
33076 fine on UNIX but won't work under Windows).
33078 2004-10-26 Nicolas Setton <setton@act-europe.fr>
33080 * mlib-tgt-darwin.adb: New file.
33082 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33083 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33084 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
33085 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
33088 * Makefile.in: Add support for building shared libraries under Darwin.
33089 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
33090 the low level EH init subprogram to be called from __gnat_initialize.
33092 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
33093 indicates which options to pass to the archive indexer.
33095 * mlib-utl.adb: Add support for calling ranlib with additional
33096 options. This is needed for instance under Mac OS X.
33097 (Ranlib_Options): New global variable, used to store the potential
33098 options to pass to ranlib.
33099 (Ar): Use Ranlib_Options when spawning ranlib.
33100 (Initialize): Set the value of ranlib option.
33102 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
33104 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
33105 instead of 8K, to reflect the real potential needs for stack-checking
33108 2004-10-26 Pascal Obry <obry@gnat.com>
33110 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
33112 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
33113 Windows only the initial thread stack size can be set so it is good to
33114 start we a low stack size.
33115 The OS will adjust the size as needed.
33117 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
33118 Nicolas Setton <setton@act-europe.fr>
33120 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
33121 "__unix__" instead of "unix".
33122 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
33123 sections were just mistakenly ignored. The former is
33124 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
33125 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
33126 of hpux. This prevents an unwanted definition of the symbol
33127 convert_addresses in adaint.o.
33129 2004-10-26 Gary Dismukes <dismukes@gnat.com>
33131 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
33132 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
33134 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33136 * a-filico.ads, a-filico.adb: fix incorrect header.
33138 2004-10-26 Javier Miranda <miranda@gnat.com>
33140 * a-ststio.ads: Fix typo in identifier
33142 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33144 * sem_ch4.adb: Minor reformatting.
33146 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33148 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
33149 enabled, check the result of unary and binary operations when the
33150 expression is the right-hand side of an assignment.
33152 2004-10-26 Vincent Celier <celier@gnat.com>
33154 * clean.adb (Delete): Do not output warnings when in quiet output and
33155 not in verbose mode.
33156 (Force_Deletions): New Boolean flag, defaulted to False
33157 (Delete): Only delete a file if it is writable, and when
33158 Force_Deletions is True.
33159 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
33160 (Usage): Line for new switch -f
33161 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
33164 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
33166 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
33167 JM type only if its size matches that of the wrapper. When a size is
33168 prescribed and the field is not aliased, remove the wrapper of a JM
33169 type only if the size is not greater than that of the packed array.
33170 (gnat_to_gnu_entity): Change the extension of packed array wrappers
33173 2004-10-26 Geert Bosch <bosch@gnat.com>
33175 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
33176 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
33177 (Pred): Implement in terms of Succ.
33179 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33181 * exp_aggr.adb (Safe_Component): An aggregate component that is an
33182 unchecked conversion is safe for in-place use if the expression of the
33183 conversion is safe.
33184 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
33185 be expandable in place even if the aggregate does not come from source.
33186 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
33187 designated object of an allocator in place, rather than building it
33188 first on the stack. The previous scheme forces a full copy of the array,
33189 and may be altogether unsusable if the size of the array is too large
33190 for stack allocation.
33192 2004-10-26 Robert Dewar <dewar@gnat.com>
33194 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
33195 compares if the component is atomic.
33197 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
33198 array assignment if the component type is atomic.
33200 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33201 Eric Botcazou <ebotcazou@act-europe.fr>
33203 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
33204 is aliased and is a by_reference type, do not pass by copy.
33205 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
33206 detect whether the call is in the right side of an assignment or
33207 the expression of an object declaration. Recurse on component
33208 association within aggregates.
33209 Call it in the condition that determines whether the temporary is
33210 necessary for correct stack-checking.
33212 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33214 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
33215 RACW_Type, used in the PolyORB version.
33216 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
33217 version and the GARLIC version.
33219 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
33220 Rename RCI_Info to RCI_Locator for better consistency between the
33221 GARLIC and PolyORB versions of the distributed systems annex.
33222 (DSA_Implementation_Name): This enumeration lists the possible
33223 implementations of the Partition Communication Subsystem for the
33224 Distributed Systems Annex (DSA). The three available implementations
33225 are the dummy stub implementation (No_DSA), and two versions based on
33226 two different distribution runtime libraries: GARLIC and PolyORB. Both
33227 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
33229 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
33232 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
33233 between the GARLIC and PolyORB versions of the distributed systems
33235 Remove RE_Unbounded_Reclaim_Pool since it is unused.
33237 2004-10-26 Gary Dismukes <dismukes@gnat.com>
33239 * gnat1drv.adb: Suppress calling the back end when
33240 Frontend_Layout_On_Target is true.
33242 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33244 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
33245 Set_Read_Only): New subprograms.
33246 These new routines allow the user to set or unset the Owner execute
33247 and Owner write permission flags on a file.
33249 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
33250 GNAT.OS_Lib.Set_Executable instead of rolling our own.
33252 2004-10-26 Matthew Gingell <gingell@gnat.com>
33254 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
33256 2004-10-26 Pascal Obry <obry@gnat.com>
33258 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
33259 memory before the faulting page we properly test the process read
33260 access for this address using appropriate Win32 routine.
33261 (HPUX sections): guard with "__hpux__" instead of "hpux".
33263 2004-10-26 Robert Dewar <dewar@gnat.com>
33265 * lib-xref.adb (Generate_Reference): Don't complain about reference to
33266 entry parameter if pragma Unreferenced set, since we do not properly
33267 handle the case of multiple parameters.
33269 2004-10-26 Vincent Celier <celier@gnat.com>
33271 * prj-env.adb: (Contains_ALI_Files): New Boolean function
33272 (Ada_Objects_Path.Add): For a library project, add to the object path
33273 the library directory only if there is no object directory or if the
33274 library directory contains ALI files.
33275 (Set_Ada_Paths.Add.Recursive_Add): Ditto
33277 2004-10-26 Vincent Celier <celier@gnat.com>
33279 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
33280 extension of library projects.
33282 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
33283 path defaults to ".:<prefix>/lib/gnat".
33284 (Parse): For an extending all project, allow direct import of a project
33285 that is virtually extended.
33287 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
33288 the specified name is directly imported, return its ID. Otherwise, if
33289 an extension of this project is imported, return the ID of the
33292 2004-10-26 Robert Dewar <dewar@gnat.com>
33294 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
33295 (Sub3): New procedure, used by Scaled_Divide
33296 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
33297 correct more than one instance of failure to propagate carries
33299 (Double_Divide): Handle overflow case of largest negative number
33300 divided by minus one.
33302 * s-arit64.ads (Double_Divide): Document that overflow can occur in
33303 the case of a quotient value out of range.
33306 2004-10-26 Robert Dewar <dewar@gnat.com>
33308 * s-bitops.adb (Bit_Eq): Remove redundant check.
33310 * s-bitops.ads: Minor comment updates
33311 Change some occurrences of Address to System.Address
33313 * s-carsi8.ads: Fix minor cut-and-paste error in comments
33315 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33317 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
33318 accessibility check to prefix that is a protected operation.
33320 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33322 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
33323 empty, post message on stub.
33325 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33326 Javier Miranda <miranda@gnat.com>
33328 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
33329 current instance appears within a unit that is directly in the context
33331 Used to determine whether the body of the instance should be analyzed
33332 immediately after its spec, to make its subprogram bodies available
33333 for front-end inlining.
33334 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
33335 constraint is not allowed on the component type (AARM 12.5.3(3))
33337 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33339 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
33340 'Storage_Pool): enhance, document & limit detection of non-sharable
33343 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
33345 * s-pooglo.ads: Add more documentation now that this pool is properly
33348 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33350 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
33351 or protected type with discriminants, do not constrain the
33352 corresponding record type if the subtype declaration has no
33353 discriminant constraints. This can be the case in source code, or in
33354 the subtype declaration created to rename an actual type within an
33357 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33359 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
33360 different kind of stub (possibly wrong name for file), do not check
33362 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
33363 includes call to some function that returns an unconstrained type, do
33366 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33368 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
33369 appear in the code for the main unit. Dependencies among units in the
33370 context of the main unit are established when those other units are
33371 compiled. Otherwise spurious elaboration constraints can generate
33372 incorrect elaboration circularities.
33374 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33375 Ed Schonberg <schonberg@gnat.com>
33377 * sem_util.adb (Is_Aliased_View): Defend against the case where this
33378 subprogram is called with a parameter that is not an object name. This
33379 situation arises for some cases of illegal code, which is diagnosed
33380 later, and in this case it is wrong to call Is_Aliased, as that might
33381 cause a compiler crash.
33382 (Explain_Limited_Type): Refine previous fix to include
33383 inherited components of derived types, to provide complete information.
33385 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
33386 is the prival for a protected object.
33387 It is necessary to mark this entity as a variable, in addition to
33388 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
33389 modified to avoid checking the Aliased flag on entities that are not
33390 objects. (Checking that flag for non-objects is erroneous and could
33391 lead to a compiler crash).
33393 2004-10-26 Robert Dewar <dewar@gnat.com>
33395 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
33396 X_Frac = 0.5, then we know that the number X must be positive.
33397 (Succ): Remove the same redundant test, and also fix the primary test
33398 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
33400 (Decompose): Add fuller comments to spec
33402 2004-10-26 Pascal Obry <obry@gnat.com>
33404 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
33405 validity (process must have read access). Set to 0 in all other cases.
33406 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
33407 violation on Win32.
33408 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
33409 segmentation violation.
33411 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
33413 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
33414 whose type is a constructed subtype of an aliased object with an
33415 unconstrained nominal subtype, convert the actual to the constructed
33416 subtype before taking its address.
33418 2004-10-26 Vincent Celier <celier@gnat.com>
33420 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
33421 (Is_Path_Name_Case_Sensitive): New function
33423 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
33424 (Base_Name, Simple_Name, Current_Directory, Compose,
33425 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
33428 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33429 Vasiliy Fofanov <fofanov@act-europe.fr>
33430 Vincent Celier <celier@gnat.com>
33432 * gnat_ugn.texi: Generalize "finding memory problems" section into a
33433 "memory management issues" section and document some of the useful
33434 memory pools provided as part of the GNAT library.
33435 Remove "virtual" from declaration of A::method2 in
33436 the simple example of Ada/C++ mixed system.
33437 Library Projects may be virtually extended: their virtual extensions
33438 are not Library Projects.
33439 Added section on extending project hierarchies.
33441 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
33443 * adaint.c (__gnat_get_libraries_from_registry): Cast value
33445 (__gnat_portable_spawn): Remove const.
33447 * mingw32.h (MAXPATHLEN): Check for previous definition.
33449 2004-10-17 Matthias Klose <doko@debian.org>
33451 * gnatvsn.ads: Set gnat library version to 4.0.
33453 2004-10-05 Vincent Celier <celier@gnat.com>
33455 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
33457 2004-10-04 Laurent Guerby <laurent@guerby.net>
33460 * Makefile.in: Define and use RANLIB_FLAGS.
33462 2004-10-04 Pascal Obry <obry@gnat.com>
33464 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
33465 other x86 platforms).
33467 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
33469 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
33470 in general and triggers stack alignment adjustment for thread entry
33471 points on targets where this is necessary.
33473 2004-10-04 Bernard Banner <banner@gnat.com>
33476 * Makefile.in: Add section for powerpc linux
33477 Add variant i-vxwork-x86.ads
33479 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
33481 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
33483 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
33484 table registration calls when need be. Ensures no reference to the crt
33485 ctors symbol are issued in the SJLJ case, which avoids possible
33486 undefined symbol errors in the case of modules to be statically linked
33489 2004-10-04 Javier Miranda <miranda@gnat.com>
33491 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
33492 in-line the code corresponding to subprogram Analyze_Actuals. In
33493 addition, analyze the actuals only in case of subprogram call.
33495 2004-10-04 Ed Falis <falis@gnat.com>
33497 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
33499 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
33501 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
33502 in the documentation.
33504 2004-10-04 Robert Dewar <dewar@gnat.com>
33506 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
33508 (Analyze_Block_Statement): Add circuitry to detect following dead code
33509 (Check_Unreachable_Code): Handle case of block exit
33511 2004-10-04 Robert Dewar <dewar@gnat.com>
33513 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
33514 (XMatchD): Avoid warning for Logic_Error call
33516 2004-10-04 Robert Dewar <dewar@gnat.com>
33518 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
33519 consider expressions buried within a procedure actual to be an actual.
33520 This caused some blowups with uses of packed slices within a procedure
33523 2004-10-04 Robert Dewar <dewar@gnat.com>
33525 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
33526 longer need to be initialized to zero.
33527 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
33528 initialized to zero.
33530 * checks.adb (Expr_Known_Valid): Packed arrays are now always
33531 considered valid, even if the representation is modular. That's correct
33532 now that we no longer initialize packed modular arrays to zero.
33534 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
33535 suffixes. These are now documented as the only cases in which the
33536 debugger ignores outer records.
33537 Previously, the spec allowed arbitrary suffixes for this purpose.
33538 Change name of LJM to JM for packed array pad records
33539 Create separate section on packed array handling, and add a whole new
33540 set of comments to this section describing the situation with packed
33541 modular types and justification requirements depending on endianness.
33543 2004-10-04 Robert Dewar <dewar@gnat.com>
33545 * a-except.adb: Add a comment for last change
33547 * einfo.ads: Minor spelling correction in comment
33549 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
33551 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
33554 * sem_util.ads: Minor comment update
33556 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33558 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
33559 Inline_Always when in Configurable_Run_Time mode.
33561 * sem_prag.adb (Process_Convention): If entity is an inherited
33562 subprogram, apply convention to parent subprogram if in same scope.
33563 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
33564 when in Configurable_Run_Time mode.
33566 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33568 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
33569 class_wide type after component list has been inherited.
33571 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33573 * sem_ch12.adb (Check_Generic_Actuals): New predicate
33574 Denotes_Previous_Actual, to handle properly the case of a private
33575 actual that is also the component type of a subsequent array actual.
33576 The visibility status of the first actual is not affected when the
33577 second is installed.
33578 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
33579 make fully recursive the treatment of formals of packages declared
33581 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
33582 the above on exit from an instantiation.
33583 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
33584 current instantiation which is now complete.
33585 (Analyze_Package_Instantiation): No instantiated body is needed if the
33586 main unit is generic. Efficient, and avoid anomalies when a instance
33587 appears in a package accessed through rtsfind.
33589 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33591 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
33592 do not generate a declaration for a temporary if the call is part of a
33593 library-level instantiation.
33595 2004-10-04 Ed Schonberg <schonberg@gnat.com>
33597 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
33598 searching for a limited component to flag.
33600 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
33601 expansion of Input, to account for the fact that the implicit call
33602 generated by the attribute reference must freeze the user-defined
33603 stream subprogram. This is only relevant to 'Input, because it can
33604 appear in an object declaration, prior to the body of the subprogram.
33606 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
33607 expansion can proceed and further errors uncovered.
33608 (Minor clean up): Fix cases of using | instead of \ for continuation
33611 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33613 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
33615 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
33616 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
33617 Use gcc_assert and gcc_unreachable.
33619 * decl.c (gnat_to_gnu_entity, case object): Check and process a
33620 specified alignment before validating size.
33621 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
33622 stripped-down declaration for the type of the inner field when making
33625 * utils.c (finish_record_type): Do not compute the size in units
33626 incrementally. Instead compute it once for the rep clause case.
33627 Use gcc_assert and gcc_unreachable.
33629 2004-10-04 Vincent Celier <celier@gnat.com>
33631 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
33633 (Is_Valid_Path_Name): Take '/' as a directory separator.
33635 2004-10-04 Vincent Celier <celier@gnat.com>
33637 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
33638 (Extended_Project) only if Extended_Project is defined, to avoid
33640 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
33642 (Parse_Single_Project): Ditto.
33644 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
33645 Add_To_Project_Path for virtual projects.
33647 2004-10-04 Vincent Celier <celier@gnat.com>
33649 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33650 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33651 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
33652 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
33653 parameter Options_2.
33655 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
33656 Build_Dynamic_Library with an empty Options_2.
33658 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
33661 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
33662 directory separator, if any.
33663 (Gprmake): Do not allow mains on the command line for library projects.
33664 Do not attempt to link when the project is a library project.
33665 (Library_Opts): New table to store Library_Options.
33666 (Build_Library): If Library_Options is specified, pass these options
33667 when building a shared library.
33669 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
33671 * s-tposen.adb (Service_Entry): The object must be always unlocked at
33672 the end of this procedure now that the unlock operation was inserted
33675 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
33677 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
33678 corresponding to the Preallocated_Stacks flags in System.
33679 (Get_Target_Parameters): Including the processing for
33680 Preallocated_Stacks.
33682 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
33683 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
33684 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33685 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
33686 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
33687 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
33688 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
33689 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
33690 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
33691 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
33692 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
33693 used to signal whether the compiler creates the required stacks and
33694 descriptors for the different tasks (when True) or it is done by the
33695 underlying operating system at run time (when False).
33696 It is initially set to False in all targets.
33698 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
33699 if it is supported by the target.
33700 (Make_Task_Create_Call): Pass the stack address if it has been
33701 previously created. Otherwise pass a Null_Address.
33703 * snames.adb: Add _stack.
33705 * snames.ads: Add Name_uStack. Required to allow the expander to
33706 statically allocated task stacks.
33708 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
33709 Stack_Address argument.
33710 Check that its value is equal to Null_Address because this target does
33711 not support the static stack allocation.
33713 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
33715 * usage.adb: Change "pragma inline" to "pragma Inline" in information
33718 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
33720 * exp_dist.adb: Split declaration of asynchronous flag out of
33721 Add_RACW_Read_Attribute.
33722 Minor reformatting for better alignment with PolyORB version.
33723 Store the entity for the asynchronous flag of an RACW, rather than the
33724 expression, in the asynchronous flags table. This will allow this flag
33725 to be used in other subprograms beside Add_RACW_Read_Attribute.
33727 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
33729 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
33730 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
33731 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
33732 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
33733 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
33734 sockets constant MSG_NOSIGNAL (Linux-specific).
33735 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
33736 all Send operations.
33737 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
33738 from trigerring SIGPIPE.
33739 Rename components to avoid clash with Ada 2005 possible reserved
33741 (Check_Selector): When the select system call returns with an error
33742 condition, propagate Socket_Error to the caller.
33744 2004-10-01 Jan Hubicka <jh@suse.cz>
33746 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
33748 2004-09-23 Robert Dewar <dewar@gnat.com>
33751 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
33752 instead do this at freeze time (we won't do it if there is an address
33754 Change "pragma inline" to "pragma Inline" in information and error
33756 Minor reformatting.
33758 * freeze.adb (Check_Address_Clause): Remove previous change, not the
33759 right way of doing things after all.
33760 (Freeze_Entity): For object, set Is_Public for imported entities
33761 unless there is an address clause present.
33763 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
33765 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
33766 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
33767 ensures proper handling of types with rep clauses, which might have
33768 their TYPE_SIZE set already.
33770 2004-09-21 Robert Dewar <dewar@gnat.com>
33772 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
33773 packed array types in both little- and big-endian cases. This change
33774 ensures that we no longer count on the unused bits being initialized
33775 for such types (and in particular ensures that equality testing will
33776 only read the relevant bits).
33777 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33778 These changes mean that we no longer need to initialize small packed
33780 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
33781 optimization to an LJM field as to its parent field.
33783 * ada-tree.h, trans.c, utils.c, utils2.c:
33784 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33786 2004-09-20 Jan Hubicka <jh@suse.cz>
33788 * utils.c (gnat_finalize): Remove.
33789 (end_subprog_body): Directly call cgraph_finalize_function;
33790 do not lower the nested functions.
33792 2004-09-20 Robert Dewar <dewar@gnat.com>
33795 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
33796 if an address clause is present, since that means that the Import
33799 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
33801 * 5tsystem.ads: Removed, no longer used.
33803 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
33804 Zack Weinberg <zack@codesourcery.com>
33806 * ada-tree.def: Use tree_code_class enumeration constants
33807 instead of code letters.
33808 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
33809 Update for new tree-class enumeration constants.
33811 2004-09-17 Vincent Celier <celier@gnat.com>
33813 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
33814 capabilities of the general project manager.
33816 2004-09-09 Vincent Celier <celier@gnat.com>
33818 * a-direct.ads: Add pragma Ada_05
33819 (Directory_Entry_Type): Give default value to component Kind to avoid
33820 not initialized warnings.
33822 * a-direct.adb (Current_Directory): Remove directory separator at the
33824 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
33825 an existing directory.
33826 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
33827 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
33828 Convert the result to File_Size.
33830 * prj.ads: (Project_Error): New exception
33832 * prj-attr.adb: Except in procedure Initialize, Fail comes from
33833 Prj.Com, not from Osint.
33834 (Attrs, Package_Attributes): Tables moved to private part of spec
33835 (Add_Attribute, Add_Unknown_Package): Moved to new child package
33837 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
33838 Prj.Project_Error after call to Fail.
33839 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
33840 Fail. Check that package name is not already in use.
33842 * prj-attr.ads: Comment updates to indicate that all subprograms may be
33843 used by tools, not only by the project manager, and to indicate that
33844 exception Prj.Prj_Error may be raised in case of problem.
33845 (Add_Unknown_Package, Add_Attribute): Moved to new child package
33847 (Attrs, Package_Attributes): Table instantiations moved from the body to
33848 the private part to be accessible from Prj.Attr.PM body.
33850 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
33851 from new package Prj.Attr.PM.
33852 (Parse_Attribute_Declaration): Call Add_Attribute from new package
33855 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
33857 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
33858 instead of Elaboration_Checks).
33860 * a-calend.adb: Minor reformatting
33862 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33864 * gigi.h (maybe_pad_type): New declaration.
33865 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
33867 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
33869 * cuintp.c: Convert to use buildN.
33871 * decl.c (maybe_pad_type): No longer static.
33872 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
33874 Convert to use buildN.
33876 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
33877 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
33878 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
33880 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
33881 (gnat_gimplify_expr, case ADDR_EXPR): New case.
33882 Convert to use buildN.
33884 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
33885 TREE_READONLY for const.
33886 Convert to use buildN.
33888 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
33889 (create_var_decl): Refine when TREE_STATIC is set.
33890 Convert to use buildN.
33892 2004-09-09 Gary Dismukes <dismukes@gnat.com>
33894 * gnat_ugn.texi: Delete text relating to checking of ali and object
33897 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
33900 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
33902 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
33903 pragmas recognized by GNAT.
33905 * gnat_rm.texi: Document pragma Detect_Blocking.
33907 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
33908 raise Program_Error if called from a protected operation.
33910 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
33911 the protected action nesting level.
33912 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
33913 protected action nesting level.
33914 (Unlock): When pragma Detect_Blocking is active decrease the protected
33915 action nesting level.
33917 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
33918 Protected_Action_Nesting.
33920 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
33921 Common_ATCB record. It contains the dynamic level of protected action
33922 nesting for each task. It is needed for checking whether potentially
33923 blocking operations are called from protected operations.
33924 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
33925 Detect_Blocking is active or not in the partition.
33927 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
33928 raise Program_Error if called from a protected operation.
33929 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
33930 Program_Error if called from a protected operation.
33931 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
33932 Program_Error if called from a protected operation.
33934 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
33935 raise Program_Error if called from a protected operation.
33937 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
33938 raise Program_Error if called from a protected operation, and increase
33939 the protected action nesting level.
33940 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
33941 Program_Error if called from a protected operation, and increase the
33942 protected action nesting level.
33943 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
33944 protected action nesting level.
33946 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
33947 raise Program_Error if called from a protected operation, and increase
33948 the protected action nesting level.
33949 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
33950 Program_Error if called from a protected operation, and increase the
33951 protected action nesting level.
33952 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
33953 raise Program_Error if called from a protected operation.
33954 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
33955 active, raise Program_Error if called from a protected operation.
33956 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
33957 protected action nesting level.
33959 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
33960 insertion of the statement raising Program_Error. The run time
33961 contains the required machinery for handling that.
33963 * sem_util.ads: Change comment associated to procedure
33964 Check_Potentially_Blocking_Operation.
33965 This procedure does not insert a call for raising the exception because
33966 that is currently done by the run time.
33968 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
33970 * init.c: Add the global variable __gl_detect_blocking that indicates
33971 whether pragma Detect_Blocking is active (1) or not (0). Needed for
33972 making the pragma available at run time.
33973 (__gnat_set_globals): Pass and update the detect_blocking parameter.
33975 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
33976 pragma Detect_Blocking is active.
33978 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
33980 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
33981 DB is found in the ali file. Any unit compiled with pragma
33982 Detect_Blocking active forces its effect in the whole partition.
33984 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
33985 Detect_Blocking is active and delay is called from a protected
33988 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
33989 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
33990 Detect_Blocking is active (0 otherwise).
33991 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
33992 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
33995 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
33997 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
33998 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
34001 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
34002 (Register_Receiving_Stub): Add Subp_Info formal parameter.
34003 Update API in placeholder implemetation of s-parint to reflect changes
34004 in distribution runtime library.
34006 * sem_ch3.adb (Expand_Derived_Record): Rename to
34007 Expand_Record_Extension.
34009 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
34010 primitive operations of potentially distributed object types that have
34011 non-controlling anonymous access formals.
34013 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
34015 New implementation of expansion for remote access-to-subprogram types,
34016 based on the RACW infrastructure.
34017 This version of sem_dist is compatible with PolyORB/DSA as well as
34020 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
34021 Asynchrronous that applies to a remote access-to-subprogram type, mark
34022 the underlying RACW type as asynchronous.
34024 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
34025 __gnat_using_gnu_linker to 1.
34027 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
34028 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
34029 GNAT.Perfect_Hash_Generators, and remove the empty
34030 GNAT.Perfect_Hash package.
34032 * atree.adb: Minor reformatting
34034 * exp_ch3.adb (Expand_Derived_Record): Rename to
34035 Expand_Record_Extension.
34036 (Build_Record_Init_Proc.Build_Assignment): The default expression in
34037 a component declaration must remain attached at that point in the
34038 tree so New_Copy_Tree copies it if the enclosing record type is derived.
34039 It is therefore necessary to take a copy of the expression when building
34040 the corresponding assignment statement in the init proc.
34041 As a side effect, in the case of a derived record type, we now see the
34042 original expression, without any rewriting that could have occurred
34043 during expansion of the ancestor type's init proc, and we do not need
34044 to go back to Original_Node.
34046 * exp_ch3.ads (Expand_Derived_Record): Rename to
34047 Expand_Record_Extension.
34049 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
34050 Returns the RACW type used to implement a remote access-to-subprogram
34052 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
34053 New subprograms. Used to create a proxy tagged object for a remote
34054 subprogram. The proxy object is used as the designated object
34055 for RAS values on the same partition (unless All_Calls_Remote applies).
34056 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
34057 System.Partition_Interface.Get_Unique_Remote_Pointer.
34058 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
34059 Renamed from Add_RAS_*_Attribute.
34060 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
34062 New implementation of expansion for remote access-to-subprogram types,
34063 based on the RACW infrastructure.
34065 * exp_dist.ads (Copy_Specification): Update comment to note that this
34066 function can copy the specification from either a subprogram
34067 specification or an access-to-subprogram type definition.
34069 2004-09-09 Ed Schonberg <schonberg@gnat.com>
34071 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
34072 in an instance, between an explicit subprogram an one inherited from a
34073 type derived from an actual.
34075 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
34076 add a polling call if the subprogram is to be inlined by the back-end,
34077 to avoid repeated calls with multiple inlinings.
34079 * checks.adb (Apply_Alignment_Check): If the expression in the address
34080 clause is a call whose name is not a static entity (e.g. a dispatching
34081 call), treat as dynamic.
34083 2004-09-09 Robert Dewar <dewar@gnat.com>
34085 * g-trasym.ads: Minor reformatting
34087 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
34088 packed arrays, since unused bits are expected to be zero for a
34091 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
34093 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
34096 2004-09-09 Pascal Obry <obry@gnat.com>
34098 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
34099 enable map file generation. Add the right option to generate the map
34100 file if Map_File is set to True.
34102 * gnatdll.adb (Gen_Map_File): New variable.
34103 (Syntax): Add info about new -m (Map_File) option.
34104 (Parse_Command_Line): Add support for -m option.
34105 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
34106 Minor reformatting.
34108 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
34110 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
34111 new gnatdist implementation.
34112 Define a subpackage isolating the output routines specific to this
34115 2004-09-09 Joel Brobecker <brobecker@gnat.com>
34117 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
34119 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
34121 2004-09-09 Cyrille Comar <comar@act-europe.fr>
34123 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
34126 * opt.ads: Add Ada_Version_Runtime constant used to decide which
34127 version of the language is used to compile the run time.
34129 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
34131 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
34132 of variable length temporaries for function return now that the
34133 back-end and gigi support it.
34135 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34137 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
34139 * trans.c (struct stmt_group): Delete field GLOBAL.
34140 (gnat_init_stmt_group): Do not initialize it.
34141 (call_to_gnu): Use save_expr, not protect_multiple_eval.
34142 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
34143 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
34144 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
34145 (start_stmt_group): Likewise.
34146 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
34148 * utils2.c (ggc.h): Include.
34149 (build_call_raise): Call build_int_cst, not build_int_2.
34151 * utils.c (gnat_init_decl_processing): Fix arg to
34152 build_common_tree_nodes.
34153 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
34154 (gnat_define_builtin): Set built_in_decls.
34155 (init_gigi_decls): Call build_int_cst, not build_int_2.
34157 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
34158 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
34159 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
34160 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
34161 SET_TYPE_MODULE): Use them.
34162 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
34163 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
34164 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
34165 SET_TYPE_ADA_SIZE): Likewise.
34166 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
34167 (DECL_CONST_CORRESPONDING_VAR,
34168 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
34169 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
34170 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
34171 (TYPE_RM_SIZE_NUM): New macro.
34172 (TYPE_RM_SIZE): Modified to use above.
34174 * cuintp.c: (build_cst_from_int): New function.
34175 (UI_To_gnu): Use it.
34177 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
34178 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
34179 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
34180 MIN_EXPR for the size, copy it into new.
34182 2004-09-01 Robert Dewar <dewar@gnat.com>
34184 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
34185 packed indexed component where array is an IN OUT formal. This
34186 generated garbage code previously.
34188 * gnat_ugn.texi: Document -fverbose-asm
34190 * gnat-style.texi: Minor updates (note that boolean constants and
34191 variables are joined with AND/OR rather than short circuit forms).
34193 2004-09-01 Ed Schonberg <schonberg@gnat.com>
34195 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
34196 it is an upward conversion of an untagged type with no representation
34199 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
34201 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
34202 System.Partition_Interface.
34204 * checks.adb (Apply_Access_Checks): Do not generate checks when
34205 expander is not active (but check for unset reference to prefix of
34208 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
34209 pragma Debug as an if statement with a constant condition, for
34210 consistent treatment of entity references contained within the
34211 enclosed procedure call.
34213 2004-09-01 Vincent Celier <celier@gnat.com>
34215 * bindgen.adb: (Set_EA_Last): New procedure
34216 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
34218 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
34219 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
34220 linked without errors.
34221 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
34223 (Gen_Exception_Table_C): Correct same bugs
34225 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
34227 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
34228 on Windows, make sure that the drive letter is in upper case.
34230 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
34231 Windows, when the drive letter is added and Case_Sensitive is True, the
34232 drive letter is forced to upper case.
34234 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
34235 to Options_2 for the call to MLib.Utl.Gcc.
34237 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
34238 directory separator when defining BASE_DIR.
34240 2004-09-01 Pascal Obry <obry@gnat.com>
34242 * gprcmd.adb (Extend): Do not output trailing directory separator. This
34243 is not needed and it confuses Windows GNU/make which does not report
34244 directory terminated by a slash as a directory.
34245 (gprcmd): Idem for "pwd" internal command.
34247 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
34248 target names rewrite to fix regressions with recent version of
34249 GNU/make. Starting with GNU/make 3.80 the pipe character was not
34250 handled properly anymore.
34252 2004-09-01 Andreas Schwab <schwab@suse.de>
34254 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
34255 * raise.c [!IN_RTS]: Undef abort.
34257 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
34259 * utils2.c (build_allocator): Use ssize_int.
34261 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
34263 2004-08-27 Andreas Schwab <schwab@suse.de>
34265 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
34267 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
34268 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34270 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
34272 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
34274 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
34275 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34276 * utils.c (init_gigi_decls): Likewise.
34277 * utils2.c (build_call_raise, build_allocator): Likewise.
34279 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
34281 * utils.c (gnat_init_decl_processing): Adjust
34282 build_common_tree_nodes call.
34284 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
34286 * utils2.c (build_allocator): Use build_int_cst for negative
34289 2004-08-18 Richard Henderson <rth@redhat.com>
34291 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
34293 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
34295 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
34297 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
34298 (gnat_to_gnu): Likewise.
34300 2004-08-16 Pascal Obry <obry@gnat.com>
34302 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
34303 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
34304 option and not mdll anymore. Update comment.
34306 2004-08-16 Pascal Obry <obry@gnat.com>
34308 * bld.adb (Put_Include_Project): Properly handle directory separators
34311 2004-08-16 Ed Schonberg <schonberg@gnat.com>
34313 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
34314 decreasing the number of allocated junk nodes while searching for the
34315 appropriate subprogram.
34317 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
34319 * cuintp.c (UI_To_gnu): Use build_int_cst..
34320 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34321 * utils.c (init_gigi_decls): Likewise.
34322 * utils2.c (build_call_raise): Likewise.
34324 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
34326 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
34327 for a global aliased object with a variable size and an unconstrained
34328 nominal subtype, pretend there is no initializer if the one we have is
34329 incomplete, and avoid referencing an inexistant component in there. The
34330 part we have will be rebuilt anyway and the reference may confuse
34331 further operations.
34333 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
34335 * einfo.ads: Minor reformatting
34337 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
34338 restrictions in the ALI if we only want to warn about violations.
34340 2004-08-13 Vincent Celier <celier@gnat.com>
34342 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
34343 when creating a new Unit_Record in table Units.
34345 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
34346 that are violated, if any.
34348 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
34349 add directory separator if path already ends with a directory separator.
34351 2004-08-13 Ed Schonberg <schonberg@gnat.com>
34353 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
34354 unit, this is an attempt to inline a construct that is not available in
34355 the current restricted mode, so abort rather than trying to continue.
34357 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
34358 discriminants that rename those of the parent, recover names of
34359 original discriminants for the constraint on the full view of the
34361 (Complete_Private_Subtype): Do not create a subtype declaration if the
34362 subtype is an itype.
34364 * gnat_rm.texi: Added section on implementation of discriminated
34365 records with default values for discriminants.
34367 2004-08-13 Ed Schonberg <schonberg@gnat.com>
34370 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
34371 the second operand is overloaded.
34373 2004-08-10 Richard Henderson <rth@redhat.com>
34375 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
34376 add __builtin_alloca.
34378 2004-08-10 Richard Henderson <rth@redhat.com>
34380 * config-lang.in (boot_language): Yes.
34382 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
34384 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
34385 from complaining on potential uninitialized reference.
34386 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
34387 new specification and test explicitly for non-zero return value.
34389 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
34390 returning C.int, to avoid using a derived boolean type.
34392 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
34393 Duplicate_Subexpr_No_Checks in preference to direct use of
34394 Remove_Side_Effects and New_Copy_Tree.
34395 Clear Comes_From_Source on prefix of 'Size attribute reference.
34397 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
34398 g-socthi-vxworks.adb: Change calls to
34399 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
34400 and test explicitly for non-zero return value.
34402 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
34403 (Is_Socket_In_Set): Declare imported function as returning C.int, to
34404 avoid using a derived boolean type.
34406 2004-08-09 Albert Lee <lee@gnat.com>
34408 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
34410 2004-08-09 Pascal Obry <obry@gnat.com>
34412 * gnat_ugn.texi: Document new way to build DLLs on Windows using
34413 GCC's -shared option.
34415 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
34416 Options_2 parameter (options put after object files).
34418 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
34420 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
34421 ignore overflows on low and high bounds of an index to also account for
34422 differences in signedness between sizetype and gnu_index_subtype.
34423 These are as legitimate as the ones caused by a lower TYPE_PRECISION
34426 2004-08-09 Robert Dewar <dewar@gnat.com>
34428 * s-solita.ads, s-solita.adb: Minor reformatting
34430 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
34431 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
34432 obsolescent section
34433 Add note that No_Implicit_Conditionals does not suppress
34434 run time constraint checks.
34436 * vms_conv.ads: Minor reformatting
34438 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
34439 and necessary for following change).
34440 (Mark): Return new format Mark_Id containing sec stack address
34441 (Release): Use sec stack address from Mark_Id avoiding Self call
34443 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
34444 pointer (cleanup and necessary for following change).
34445 Define Mark_Id as record containing address of secondary stack, that way
34446 Release does not need to find the stack again, decreasing the number of
34447 calls to Self and improving efficiency.
34449 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
34451 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
34452 case variable into the individual case branches when possible.
34454 * sem_ch11.adb: Minor reformatting
34456 * prj.ads: Correct spelling of suffixs
34458 * prj-nmsc.adb: Minor reformatting
34459 Correct spelling suffixs throughout (also in identifiers)
34461 * freeze.adb: Minor spelling correction
34463 * exp_ch2.adb: Cleanups to handling of Current_Value
34464 (no functional effect).
34466 * bld.adb: Correct spelling of suffixs
34468 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
34470 2004-08-09 Ed Schonberg <schonberg@gnat.com>
34473 * sem_ch7.adb (Install_Private_Declarations): In the body of the
34474 package or of a child, private entities are both immediately_visible
34477 2004-08-09 Ed Schonberg <schonberg@gnat.com>
34479 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
34480 there are no range checks on the value of the literal.
34482 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
34483 wrapped is the triggering alternative of an asynchronous select, action
34484 statements mustbe inserted before the select itself.
34486 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
34487 case where the prefix is a protected function call.
34488 (Resolve_Attribute, case 'Access): The attribute reference on a
34489 subprogram is legal in a generic body if the subprogram is declared
34492 2004-08-09 Vincent Celier <celier@gnat.com>
34494 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
34495 languages, otherwise building the library may fail with unresolved
34497 (Compile_Sources): Do not build libraries if -c switch is used
34499 * gnatlink.adb (Process_Args): New switches -M and -Mmap
34500 (Write_Usage): If map file creation is supported, output new switches
34502 (Gnatlink): When -M is specified, add the necessary switch(es) to the
34503 gcc call, when supported.
34505 * Makefile.in: Added indepsw.o to the object list for gnatlink
34506 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
34508 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
34509 indepsw.adb, indepsw.ads: New files.
34511 2004-08-09 Bernard Banner <banner@gnat.com>
34513 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
34515 * Makefile.in: add section for vxworks x86
34517 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
34519 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
34520 per-object constrained components where the discriminant is of an
34522 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
34523 the parent initialization procedure for derived Unchecked_Unions.
34524 Instead, derived Unchecked_Unions build their own initialization
34526 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
34527 Check the body of the subprogram for details.
34528 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
34529 functions for derived Unchecked_Union types by introducing a condition.
34530 Allow the creation of TSS equality functions for Unchecked_Unions.
34531 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
34532 Add formal parameter Discr to function signature. Discr is used to
34533 control the generated case statement for Unchecked_Union types.
34534 (Make_Eq_If): Rename formal parameter Node to E in function signature.
34536 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
34538 Check the body of the subprogram for details.
34539 (Expand_Composite_Equality): Augment composite type equality to include
34540 correct handling of Unchecked_Union components.
34541 (Expand_N_In): Add condition to detect illegal membership tests when the
34542 subtype mark is a constrained Unchecked_Union and the expression lacks
34543 inferable discriminants, and build a Raise_Program_Error node.
34544 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
34545 to detect types that contain components of unconstrained Unchecked_Union
34546 subtype. Add condition to detect equality between types that have an
34547 unconstrained Unchecked_Union component, and build a Raise_Program_Error
34548 node. Add condition to detect equality between Unchecked_Union types
34549 that lack inferable discriminants, and build a Raise_Program_Error node.
34550 Otherwise build a TSS equality function call.
34551 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
34552 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
34553 with the operand lacking inferable discriminants, and build a Raise_
34554 Program_Error node.
34555 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
34556 composite equality.
34557 (Has_Inferable_Discriminants): Implement new predicate for objects and
34558 expressions of Unchecked_Union type. Check the body of subprogram for
34560 (Has_Unconstrained_UU_Components): Add function
34561 Component_Is_Unconstrained_UU. It is used to detect whether a single
34562 component is of an unconstrained Unchecked_Union subtype. Add function
34563 Variant_Is_Unconstrained_UU. It is used to detect whether a single
34564 component inside a variant is of an unconstrained Unchecked_Union type.
34566 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
34567 inferred discriminant values. Add condition to generate a case
34568 statement with an inferred discriminant as the switch.
34569 (Make_Component_List_Assign): Introduce a Boolean flag that determines
34570 the behaviour of the subprogram in the presence of an Unchecked_Union.
34571 Add condition to trigger the usage of the inferred discriminant value
34572 as the generated case statement switch.
34573 (Make_Field_Assign): Introduce a Boolean flag that determines the
34574 behaviour of the subprogram in the presence of an Unchecked_Union. Add
34575 condition to trigger the usage of the inferred discriminant value as
34576 the right-hand side of the generated assignment.
34578 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
34579 parameter generation when dealing with Unchecked_Unions.
34581 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
34582 checks for Unchecked_Unions.
34584 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
34586 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
34587 Raise_Program_Error nodes for the execution of Read and Write
34588 attributes of Unchecked_Union types and the execution of Input and
34589 Output attributes of Unchecked_Union types that lack default
34590 discriminant values.
34592 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
34593 Unchecked_Union. Add procedure Check_Component. It is used to inspect
34594 per-object constrained components of Unchecked_Unions for being
34595 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
34596 check individual components withing a variant.
34598 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
34599 comparison of Unchecked_Unions.
34600 (Resolve_Equality_OP): Remove guard that prevents equality between
34603 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
34604 of component subtypes for Unchecked_Union components.
34605 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
34606 since it is the actual subtype.
34608 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
34609 pass of Unchecked_Union subtypes as generic actuals to formal types
34610 that lack known_discriminant_parts or that are derived Unchecked_Union
34611 types, and do nothing. In any other case, produce an error message.
34613 * sem_ch3.adb (Analyze_Component_Declaration): Add function
34614 Contains_POC. It determines whether a constraint uses the discriminant
34615 of an enclosing record type.
34616 Add condition to detect per-object constrained component and set the
34618 (Derived_Type_Declaration): Remove guard that prevents derivation from
34619 Unchecked_Union types.
34620 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
34623 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
34624 references to Unchecked_Union discriminants.
34626 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
34627 formal generation when dealing with Unchecked_Unions.
34628 (Set_Actual_Subtypes): Add condition to prevent generation of actual
34629 subtypes for Unchecked_Unions.
34631 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
34632 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
34633 completions of discriminated partial views by Unchecked_Unions and
34634 produce an error message.
34636 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34638 * trans.c (struct stmt_group): New field, GLOBAL.
34639 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
34640 (struct elab_info): New struct.
34641 (elab_info_list, gnu_elab_proc_stack): New variables.
34642 (Compilation_Unit_to_gnu): New procedure.
34643 (gigi): Call it and also handle elaboration procs we've saved.
34644 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
34645 global field from parent.
34646 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
34647 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
34648 (start_stmt_group): Initialize global field from parent.
34649 (add_decl_expr): Set to global for current statement group.
34650 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
34653 * utils.c (global_bindings_p): True when no current_function_decl; no
34654 longer check current_binding_level.
34656 2004-08-09 Ben Brosgol <brosgol@gnat.com>
34658 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
34661 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
34663 2004-08-06 Andreas Schwab <schwab@suse.de>
34665 * utils.c (gnat_define_builtin): Remove second parameter of
34667 (begin_subprog_body): Likewise.
34669 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
34671 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
34672 optimization, not supported by the tree-ssa back-end.
34674 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
34676 * s-mastop-irix.adb: Update comments.
34678 * a-except.adb (Exception_Information): Raise Constraint_Error if
34679 exception Id is Null_Id.
34680 This is required behavior, which is more reliably and clearly checked
34681 at the top level interface level.
34683 2004-07-26 Javier Miranda <miranda@gnat.com>
34685 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
34686 call if a component has no default_expression and the box is used.
34688 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
34689 default_expression and you use box, it behaves as if you had declared a
34690 stand-alone object.
34691 (Resolve_Record_Aggregate): If a component has no default_expression and
34692 you use box, it behaves as if you had declared a stand-alone object.
34694 * sem_ch10.adb (Install_Siblings): Do not make visible the private
34695 entities of private-with siblings.
34697 2004-07-26 Ed Schonberg <schonberg@gnat.com>
34699 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
34700 for a component of an itype, set the parent pointer for analysis,
34701 there is no list in which to insert it.
34703 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
34704 bona-fide renamings, not for inherited operations.
34706 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
34707 actual for a formal that is an access parameter, create local
34708 finalization list even if the expression is not an aggregate.
34710 2004-07-26 Ed Schonberg <schonberg@gnat.com>
34713 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
34714 Diagnose properly illegal subprogram renamings that are library units.
34716 2004-07-26 Ed Schonberg <schonberg@gnat.com>
34719 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
34720 conversion rewritten as an unchecked conversion, check that original
34721 expression is a variable.
34723 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
34724 unchecked_conversion, create new node rather than rewriting in place,
34725 to preserve original construct.
34727 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34729 * gigi.h (gnat_expand_body): Deleted.
34731 * Make-lang.in: (trans.o): Depends on function.h.
34733 * misc.c: (gnat_expand_body): Moved to here.
34735 * trans.c (gnat_expand_body_1): Deleted.
34736 (gnat_expand_body): Moved from here.
34737 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
34738 (add_stmt): Check for marked visited with global_bindings_p.
34739 (gnat_gimplify_expr, case COMPONENT_REF): New case.
34740 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
34742 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
34743 VIEW_CONVERT_EXPR if not operation type.
34745 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
34748 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
34749 changes: reformatting of negation operators, removing unneeded
34750 inequality comparison with zero, converting equality comparisons with
34751 zero to negations, changing int/0/1 to bool/false/true, replace calls
34752 to gigi_abort with abort, and various other similar changes.
34754 2004-07-26 Vincent Celier <celier@gnat.com>
34756 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
34759 * make.adb (Gnatmake): Fail when a library is not present and there is
34760 no object directory.
34762 * mlib-prj.adb (Check_Library): No need to check if the library needs
34763 to be rebuilt if there is no object directory, hence no object files
34764 to build the library.
34766 * opt.ads (Setup_Projects): New Boolean flag.
34768 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
34770 Create directory when Kind /= "" and in "gnat setup". Report error if
34771 directory cannot be created.
34772 (Ada_Check): Create library interface copy dir if it does not exist
34773 and we are in "gnat setup".
34774 (Find_Sources): No error if in "gnat setup" and no Ada sources were
34776 (Language_Independent_Check): Create object directory, exec directory
34777 and/or library directory if they do not exist and we are in
34780 * vms_conv.ads: (Command_Type): New command Setup.
34782 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
34784 * vms_data.ads: Add qualifiers/switches for new built-in command
34787 2004-07-25 Richard Henderson <rth@redhat.com>
34789 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
34790 DECL_IGNORED_P on RESULT_DECL.
34792 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
34794 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
34795 allocation and potentially overflowing update with
34796 Tailored_Exception_Information. Use the sec-stack free procedural
34797 interface to output Exception_Information instead.
34799 * a-except.adb (To_Stderr): New subprogram for character, and string
34800 version moved from a-exextr to be visible from other separate units.
34801 (Tailored_Exception_Information): Remove the procedural version,
34802 previously used by the default Last_Chance_Handler and not any more.
34803 Adjust various comments.
34805 * a-exexda.adb: Generalize the exception information procedural
34806 interface, to minimize the use of secondary stack and the need for
34807 local buffers when the info is to be output to stderr:
34808 (Address_Image): Removed.
34809 (Append_Info_Character): New subprogram, checking for overflows and
34810 outputing to stderr if buffer to fill is of length 0.
34811 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
34812 (Append_Info_Address, Append_Info_Exception_Name,
34813 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
34814 Append_Info_Basic_Exception_Traceback,
34815 Append_Info_Exception_Information): New subprograms.
34816 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
34817 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
34818 Exception_Info_Maxlength, Exception_Name_Length,
34819 Exception_Message_Length): New subprograms.
34820 (Exception_Information): Use Append_Info_Exception_Information.
34821 (Tailored_Exception_Information): Use
34822 Append_Info_Basic_Exception_Information.
34823 Export services for the default Last_Chance_Handler.
34825 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
34826 other separate units.
34828 2004-07-20 Vincent Celier <celier@gnat.com>
34830 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
34832 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34834 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
34835 emit itype references for the designated types of component types that
34836 are declared outside of the full record declaration, and that may
34837 denote a partial view of that record type.
34839 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34842 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
34843 which is the designated type in an access component declaration, to the
34844 list of incomplete dependents of the parent type, to avoid elaboration
34845 issues with out-of-scope subtypes.
34846 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
34847 full view of the parent.
34849 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34852 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
34853 entities that are hidden, such as references to generic actuals
34854 outside an instance.
34856 2004-07-20 Javier Miranda <miranda@gnat.com>
34858 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
34859 support to the new notation.
34860 (Analyze_Selected_Component): Add call to Try_Object_Operation.
34862 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
34864 * s-taprob.adb: Adding the elaboration code required for initializing
34865 the tasking soft links that are common to the full and the restricted
34868 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
34869 restricted run time has been moved to the package
34870 System.Soft_Links.Tasking.
34872 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
34873 restricted run time has been moved to the package
34874 System.Soft_Links.Tasking.
34876 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
34878 * s-solita.ads, s-solita.adb: New files.
34880 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34882 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
34883 Case_Statement_to_gnu): Split off from gnat_to_gnu.
34884 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
34885 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
34886 Exception_Handler_to_gnu_zcx): Likewise.
34888 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
34890 * gigi.h (builtin_function): Declare.
34892 2004-07-15 Robert Dewar <dewar@gnat.com>
34894 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
34897 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
34898 access values as an example of a warning.
34900 * gnat_rm.texi: Document new attribute Has_Access_Values
34902 * gnat-style.texi: Document that box comments belong on nested
34905 * sem_util.ads (Has_Access_Values): Improved documentation
34907 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
34909 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
34910 (Process_Interface_Name): Call to this new procedure
34911 (Set_Extended_Import_Export_External_Name): Call to this new procedure
34913 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
34915 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
34917 * einfo.ads: Minor comment typo fixed
34919 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
34921 * snames.adb: Add _atcb.
34923 * snames.ads: Add Name_uATCB.
34925 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
34926 (in the expanded code) when using the restricted run time.
34928 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
34929 a in parameter in order to allow ATCBs to be preallocated (in the
34932 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
34933 order to allow ATCBs to be preallocated. In case of error, the ATCB is
34934 deallocated in System.Tasking.Stages.
34936 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
34937 order to allow ATCBs to be preallocated.
34939 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
34940 here. It was previously done in Initialize_ATCB.
34942 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
34944 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
34945 Restricted run time.
34947 * exp_ch3.adb: When using the Restricted run time, pass the
34948 preallocated Ada_Task_Control_Block when creating a task.
34950 2004-07-15 Ed Schonberg <schonberg@gnat.com>
34952 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
34953 function call that is itself an actual in an enclosing call, diagnose
34954 problem here rather than assuming that resolution will catch it.
34956 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
34957 the local copy of a generic unit for a formal package, and the generic
34958 is a child unit, install private part of ancestors before compiling
34959 private part of spec.
34961 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
34962 use scope entities rather than tree structures, to handle properly
34963 parent units that are instances rewritten as bodies for inlining
34966 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
34967 Remove_Parents): Handle properly a parent unit that is an
34968 instantiation, when the unit has been rewritten as a body for inlining
34971 * par.adb (Goto_List): Global variable to collect goto statements in a
34972 given unit, for use in detecting natural loops.
34974 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
34975 use in detecting natural loops.
34977 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
34978 backwards goto's, and rewrite as a infinite loop, to improve locality
34981 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
34982 subcomponent that includes an indexed reference, to prevent the
34983 generation of copies that would miscompile the desired assignment
34985 (Build_Task_Image_Decls): Add a numeric suffix to
34986 generated name for string variable, to avoid spurious conflicts with
34987 the name of the type of a single protected object.
34989 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
34990 loop with an explicit exit statement, to avoid generating an
34991 out-of-range value with 'Succ leading to spurious constraint_errors
34992 when compiling with -gnatVo.
34994 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
34996 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
34997 might not be analyzed yet, even if its Etype is already set (case of an
34998 unchecked conversion built using Unchecked_Convert_To, for example).
34999 If the prefix has already been analyzed, this will be a nop anyway.
35001 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
35002 controller type, or an assignment of a record type with controlled
35003 components, copy only user data, and leave the finalization chain
35004 pointers untouched.
35006 2004-07-15 Vincent Celier <celier@gnat.com>
35008 * make.adb (Collect_Arguments): Improve error message when attempting
35009 to compile a source not part of any project, when -x is not used.
35011 * prj.ads: (Defined_Variable_Kind): New subtype
35013 * prj-attr.adb (Register_New_Package): Two new procedures to register
35014 a package with or without its attributes.
35015 (Register_New_Attribute): Mew procedure to register a new attribute in a
35017 New attribute oriented subprograms: Attribute_Node_Id_Of,
35018 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35019 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35021 New package oriented subprograms: Package_Node_Id_Of,
35022 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35024 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
35026 (Package_Node_Id): Now a private, self initialized type
35027 (Register_New_Package): New procedure to register a package with its
35029 New attribute oriented subprograms: Attribute_Node_Id_Of,
35030 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35031 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35033 New package oriented subprograms: Package_Node_Id_Of,
35034 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35036 * prj-dect.adb (Parse_Attribute_Declaration,
35037 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
35039 * prj-makr.adb (Make): Parse existing project file before creating
35040 other files. Fail if there was an error during parsing.
35042 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
35043 new spec of Prj.Attr.
35045 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
35046 to new spec of Prj.Attr.
35048 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35050 * utils2.c: Fix typo in comment.
35052 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35054 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
35055 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
35057 2004-07-14 Andreas Schwab <schwab@suse.de>
35059 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
35061 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35063 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
35065 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
35068 * misc.c (gnat_types_compatible_p): New function.
35069 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
35070 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
35072 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
35073 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
35074 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
35075 (mark_visited): Don't mark dummy type.
35076 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
35077 parameter, we must remove any LJM building from GNU_NAME.
35078 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
35079 (pos_to_constructor): Use int_const_binop.
35080 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
35083 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
35084 (gnat_pushlevel): Set TREE_USE on BLOCK node.
35085 (gnat_install_builtins): Add __builtin_memset.
35087 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
35089 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
35090 for a renaming, stabilize the initialization expression if we are at a
35091 local level. At the local level, uses of the renaming may be performed
35092 by a direct dereference of the initializing expression, and we don't
35093 want possible variables there to be evaluated for every use.
35095 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
35096 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
35097 them on the way. Account for the fact that we may introduce side
35098 effects in the process.
35100 2004-07-13 Richard Henderson <rth@redhat.com>
35102 * misc.c (default_pass_by_ref): Use pass_by_reference.
35104 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
35106 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
35107 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
35109 2004-07-08 Richard Henderson <rth@redhat.com>
35111 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
35114 2004-07-06 Vincent Celier <celier@gnat.com>
35116 * vms_conv.ads: Minor reformatting.
35117 Alphabetical order for enumerated values of type Command_Type, to have
35118 the command in alphabetical order for the usage.
35120 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
35121 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
35123 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
35125 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
35126 (Add_Archive_Path): Only add the global archive if there is one.
35127 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
35128 or not any object file to put in the global archive, and don't build
35129 a global archive if there is none.
35130 (X_Switches): New table
35131 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
35132 in the X_Switches table, if any.
35133 (Initialize): Make sure the X_Switches table is empty
35134 (Scan_Arg): Record -X switches in table X_Switches
35136 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
35138 * make.adb: Minor comment fix
35140 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
35141 invoked with directory information, add the directory in front of the
35144 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
35145 invoked with directory information, add the directory in front of the
35148 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
35149 when Keep_Temporary_Files is False.
35150 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
35151 directory information, add the directory in front of the path.
35152 When not on VMS, handle new switch -dn before the command to set
35153 Keep_Temporary_Files to True.
35154 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
35157 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
35158 invoked with directory information, add the directory in front of the
35161 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
35163 * snames.ads, snames.adb (Name_Stub): New name for the distributed
35166 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
35167 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
35169 * g-socket.adb (To_Timeval): Fix incorrect conversion of
35170 Selector_Duration to Timeval for the case of 0.0.
35172 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
35173 documentation from Evolve_And_Then.
35175 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
35177 * s-taprop-tru64.adb, s-taprop-os2.adb,
35178 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
35180 2004-07-06 Robert Dewar <dewar@gnat.com>
35182 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
35183 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
35184 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
35185 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
35186 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
35187 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
35188 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
35189 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
35190 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
35191 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
35192 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
35193 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
35194 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
35195 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
35196 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
35197 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
35198 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
35199 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
35200 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
35201 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
35202 vms_data.ads: Minor reformatting,
35203 Fix bad box comment format.
35205 * gnat_rm.texi: Fix minor grammatical error
35207 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
35209 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
35210 more cases of discriminated records to be recognized as not needing a
35212 (Has_Access_Values): New function.
35214 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
35216 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
35217 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
35218 with LRM terminology).
35219 Change terminology in comments primitive type => elementary type.
35221 2004-07-06 Ed Schonberg <schonberg@gnat.com>
35224 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
35225 parameters do not impose any requirements on the presence of a body.
35227 2004-07-06 Ed Schonberg <schonberg@gnat.com>
35230 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
35231 compilation unit and is in an open scope at the point of instantiation,
35232 assume that a body may be present later.
35234 2004-07-06 Ed Schonberg <schonberg@gnat.com>
35236 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
35237 Improve error message when specified size is not supported.
35239 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
35240 is never a primitive operation.
35242 2004-07-05 Andreas Schwab <schwab@suse.de>
35244 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
35245 RECORD_OR_UNION_CHECK.
35246 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
35248 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
35250 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
35251 dependency on xgnatugn, instead build it via a submake.
35252 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
35254 2004-07-04 Richard Henderson <rth@redhat.com>
35256 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
35258 2004-07-01 Richard Henderson <rth@redhat.com>
35260 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
35261 * utils.c (max_size): Likewise.
35263 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35265 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
35266 and rest_of_type_compilation; add arg to create_*_decl.
35267 (annotate_decl_with_node): Deleted.
35268 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
35269 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
35270 (get_current_block_context, gnat_pushdecl): New declarations.
35271 (gnat_init_stmt_group): Likewise.
35272 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
35273 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
35274 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
35275 (gnat_init): Call gnat_init_stmt_group.
35276 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
35277 (gnu_pending_elaboration_list): Deleted.
35278 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
35279 (gigi): Rearrange initialization calls and move some to last above.
35280 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
35281 Delete calls to add_decl_expr; add arg to create_*_decl.
35282 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
35283 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
35284 begin_subprog_body and call it.
35285 Don't push and pop ggc context.
35286 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
35287 (add_stmt): Remove handling of DECL_EXPR from here.
35288 If not in function, mark visited.
35289 (add_decl_expr): Put global at top level.
35290 Check for cases of DECL_INITIAL we have to handle here.
35291 (process_type): Add extra arg to create_type_decl.
35292 (build_unit_elab): Rework to just gimplify.
35293 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
35294 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
35295 (get_pending_elaborations, pending_elaborations_p): Likewise.
35296 (push_pending_elaborations, pop_pending_elaborations): Likewise.
35297 (get_elaboration_location, insert_elaboration_list): Likewise.
35298 (gnat_binding_level): Renamed from ada_binding_level.
35299 (init_gnat_to_gnu): Don't clear pending_elaborations.
35300 (global_bindings_p): Treat as global if no current_binding_level.
35301 (set_current_block_context): New function.
35302 (gnat_pushdecl): Renamed from pushdecl; major rework.
35303 All callers changed.
35304 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
35305 (finish_record_type): Call call pushdecl for stub decl.
35306 (function_nesting_depth): Deleted.
35307 (begin_subprog_body): Delete obsolete code.
35308 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
35310 2004-06-28 Robert Dewar <dewar@gnat.com>
35312 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35313 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
35314 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
35315 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
35316 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
35318 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
35319 deal with problem of inefficient slices on machines with strict
35320 alignment, when the slice is a component of a composite.
35322 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
35323 machines, we need the check there as well.
35325 2004-06-28 Ed Schonberg <schonberg@gnat.com>
35327 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
35328 determine safe copying direction for overlapping slice assignments
35329 when component is controlled.
35331 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
35332 formal derived type in the actual for a formal package are visible in
35333 the enclosing instance.
35335 2004-06-28 Ed Schonberg <schonberg@gnat.com>
35338 * sem_util.adb (Trace_Components): Diagnose properly an illegal
35339 circularity involving a private type whose completion includes a
35340 self-referential component.
35341 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
35342 renaming or an instantiation from an implicit derived operation.
35344 2004-06-28 Pascal Obry <obry@gnat.com>
35346 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
35348 (Library_File_Name_For): Idem.
35350 2004-06-28 Matthew Gingell <gingell@gnat.com>
35352 * g-traceb.ads: Add explanatory note on the format of addresses
35353 expected by addr2line.
35355 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
35357 * Makefile.in: Force debugging information on s-tasdeb.adb,
35358 a-except.adb and s-assert.adb needed by the debugger.
35360 2004-06-28 Vincent Celier <celier@gnat.com>
35362 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
35366 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
35368 * prj.adb: Minor reformatting
35369 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
35371 * prj.ads: Comment updates
35373 (Project_Data): Change Flag1 to Need_To_Build_Lib.
35374 Remove Flag2: not used.
35376 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
35379 * gnat_ugn.texi: Put a "null;" declaration in one project file example
35381 * gnat_rm.texi: Document Empty declarations "null;".
35383 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
35384 front of the linker options.
35385 (Link_Foreign): Put the global archives and the libraries in front of
35386 the linker options.
35388 2004-06-28 Javier Miranda <miranda@gnat.com>
35390 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
35391 (RTU_Loaded): Code cleanup
35392 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
35393 withed predefined units.
35395 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
35396 explicitly withed predefined units.
35397 Fix typo in comment
35399 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
35400 explicitly withed predefined units.
35402 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35404 * ada-tree.def (DECL_STMT): Deleted.
35405 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
35406 (DECL_STMT_VAR): Deleted.
35407 * decl.c: add_decl_stmt now add_decl_expr.
35408 * gigi.h: Likewise.
35409 * trans.c: Likewise.
35410 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35411 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
35412 (add_stmt): Only handle padded type here.
35413 (add_stmt_with_node): Allow gnat_node to not be present.
35414 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
35415 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
35416 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
35417 make a SAVE_EXPR for the entire fat pointer.
35418 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
35419 (create_index_type): Make a DECL_EXPR.
35420 (end_subprog_body): Don't call allocate_struct_function here but
35423 2004-06-25 Pascal Obry <obry@gnat.com>
35425 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
35426 Relocatable from Build_Dynamic_Library call.
35428 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
35429 Relocatable are now synonym.
35431 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
35433 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
35434 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
35437 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
35438 Lib_Address and Relocatable.
35439 (Default_DLL_Address): Removed.
35441 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35442 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
35443 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
35444 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
35445 (Default_DLL_Address): Removed.
35447 * mlib-tgt-mingw.adb: Ditto.
35448 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
35450 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
35451 the initial thread stack size.
35453 * a-strmap.ads: Move package L to private part as it is not used in
35454 the spec. Found while reading code.
35456 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
35458 * tracebak.c: Introduce support for a GCC infrastructure based
35459 implementation of __gnat_backtrace.
35461 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
35462 any more. Use accessors instead. This eases maintenance and relaxes
35463 some alignment constraints.
35464 (_GNAT_Exception structure): Remove the Ada specific fields
35465 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
35467 (is_handled_by, __gnat_eh_personality): Replace component references to
35468 exception structure by use of the new accessors.
35470 * init.c (__gnat_initialize): Adjust comments to match the just
35471 reverted meaning of the -static link-time option.
35473 * adaint.c (convert_addresses): Arrange not to define a stub for
35474 mips-irix any more, as we now want to rely on a real version from a
35475 recent libaddr2line.
35477 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
35478 the personality routine can use them and not have to rely on a C
35479 counterpart of the record anymore. This simplifies maintenance and
35480 relaxes the constraint of having Standard'Maximum_Alignment match
35482 Update comments, and add a section on the common header alignment issue.
35484 2004-06-25 Geert Bosch <bosch@gnat.com>
35486 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
35487 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
35489 2004-06-25 Robert Dewar <dewar@gnat.com>
35491 * gnat_rm.texi: Fix section on component clauses to indicate that the
35492 restriction on byte boundary placement still applies for bit packed
35494 Add comment on stack usage from Initialize_Scalars
35496 * gnat_ugn.texi: Add documentation for -gnatyLnnn
35498 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
35499 limiting nesting level.
35501 * usage.adb: Add line for -gnatyLnnn switch
35503 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
35504 sem_ch13.adb, exp_aggr.adb: Minor reformatting
35506 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
35507 type as well as on the subtype. This corrects a problem in freeze in
35508 setting alignments of atomic types.
35510 * sem_eval.ads: Minor comment typo fixed
35512 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
35513 level. Minor reformatting.
35515 * fname.adb (Is_Predefined_File_Name): Require a letter after the
35516 minus sign. This means that file names like a--b.adb will not be
35517 considered predefined.
35519 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
35520 record Test new flag and give diagnostic for bad component clause.
35521 (Freeze_Entity): Set alignment of array from component alignment in
35522 cases where this is safe to do.
35524 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
35527 * cstand.adb: (Create_Standard): Set alignment of String to 1
35529 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
35531 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
35532 code in the common constrained array cases.
35534 * a-storio.adb: Change implementation to avoid possible alignment
35535 problems on machines requiring strict alignment (data should be moved
35536 as type Buffer, not type Elmt).
35538 * checks.adb (Apply_Array_Size_Check): Improve these checks by
35539 killing the overflow checks which we really do not need (64-bits is
35542 2004-06-25 Vincent Celier <celier@gnat.com>
35544 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
35545 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
35546 inconditionally for the main project.
35547 (Recursive_Add_Archives.Add_Archive_Path): New procedure
35548 (Link_Executables.Check_Time_Stamps): New procedure
35549 (Link_Executables.Link_Foreign): New procedure
35550 Changes made to reduce nesting level of this package
35551 (Check): New procedure
35552 (Add_Switches): When not in quiet output, check that a switch is not
35553 the concatenation of several valid switches. If it is, issue a warning.
35554 (Build_Global_Archive): If the global archive is rebuilt, linking need
35556 (Compile_Sources): Rebuilding a library archive does not imply
35557 rebuilding the global archive.
35558 (Build_Global_Archive): New procedure
35559 (Build_Library): New name for Build_Archive, now only for library
35561 (Check_Archive_Builder): New procedure
35562 (Create_Global_Archive_Dependency_File): New procedure
35563 (Gprmake): Call Build_Global_Archive before linking
35564 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
35566 (Scan_Arg): Display the Copyright notice when -v is used
35568 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
35571 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
35573 Add new GNAT LIST qualifier /FILES=
35574 Added qualifier /DIRECTORY= to GNAT METRIC
35575 Added qualifier /FILES= to GNAT METRIC
35576 Added qualifier /FILES to GNAT PRETTY
35578 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
35579 to take into account both versions of the switch.
35581 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
35582 always be the last switch to the gcc driver. Disable switch storing so
35583 that switches automatically added by the gcc driver are not put in the
35586 * prj.adb (Project_Empty): Take into account changes in components of
35589 * prj.ads (Languages_Processed): New enumaration value All_Languages.
35591 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
35592 used. Split Boolean component Ada_Sources_Present in two Boolean
35593 components Ada_Sources_Present and Other_Sources_Present.
35596 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
35597 instead of Sources_Present.
35598 (Set_Ada_Paths.Add.Recursive_Add): Ditto
35600 * prj-nmsc.adb: Minor reformatting
35601 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
35602 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
35603 Check_Ada_Naming_Scheme.
35604 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
35607 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
35609 Make sure that all cycles where there is at least one "limited with"
35611 (Parse_Single_Project): New Boolean parameter In_Limited
35613 * prj-proc.adb (Recursive_Check): When Process_Languages is
35614 All_Languages, call first Prj.Nmsc.Ada_Check, then
35615 Prj.Nmsc.Other_Languages_Check.
35617 * prj-proc.adb (Process): Use Ada_Sources_Present or
35618 Other_Sources_Present (instead of Sources_Present) depending on
35621 * lang-specs.h: Keep -g and -m switches in the same order, and as the
35624 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
35625 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
35627 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
35630 * lib.ads (Disable_Switch_Storing): New procedure.
35632 * make.adb: Modifications to reduce nesting level of this package.
35633 (Check_Standard_Library): New procedure
35634 (Gnatmake.Check_Mains): New procedure
35635 (Gnatmake.Create_Binder_Mapping_File): New procedure
35636 (Compile_Sources.Compile): Add switch -gnatez as the last option
35637 (Display): Never display -gnatez
35639 * Makefile.generic:
35640 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
35642 * gnatcmd.adb (Check_Project): New function
35643 (Process_Link): New procedure to reduce nesting depth
35644 (Check_Files): New procedure to reduce the nesting depth.
35645 For GNAT METRIC, include the inherited sources in extending projects.
35646 (GNATCmd): When GNAT LS is invoked with a project file and no files,
35647 add the list of files from the sources of the project file. If this list
35648 is too long, put it in a temp text files and use switch -files=
35649 (Delete_Temp_Config_Files): Delete the temp text file that contains
35650 a list of source for gnatpp or gnatmetric, if one has been created.
35651 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
35652 in the project file is too large, create a temporary text file that
35653 list them and pass it to the tool with "-files=<temp text file>".
35654 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
35656 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
35657 generated file is in not in Ada.
35659 * gnatls.adb: Remove all parameters And_Save that are no longer used.
35660 (Scan_Ls_Arg): Add processing for -files=
35661 (Usage): Add line for -files=
35663 * g-os_lib.adb (On_Windows): New global constant Boolean flag
35664 (Normalize_Pathname): When on Windows and the path starts with a
35665 directory separator, make sure that the resulting path will start with
35668 * clean.adb (Clean_Archive): New procedure
35669 (Clean_Project): When there is non-Ada code, delete the global archive,
35670 the archive dependency files, the object files and their dependency
35671 files, if they exist.
35672 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
35674 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
35676 * sinfo.ads: Fix typo in comment.
35678 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
35679 the TSS for remote access-to-subprogram types, since these TSS are
35680 always present once the type has been analyzed.
35681 (RAS_E_Dereference): Same.
35683 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
35684 reference raises Bad_Attribute, mark the reference as analyzed so the
35685 node (and any children resulting from rewrites that could have occurred
35686 during the analysis that ultimately failed) is not analyzed again.
35688 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
35690 * exp_dist.adb: Minor comment fix.
35692 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
35693 type is an anonymous access type, no unchecked deallocation of the
35694 allocated object can occur. If the object is controlled, attach it with
35695 a count of 1. This allows attachment to the Global_Final_List, if
35696 no other relevant list is available.
35697 (Get_Allocator_Final_List): For an anonymous access type that is
35698 the type of a discriminant or record component, the corresponding
35699 finalisation list is the one of the scope of the type.
35701 2004-06-25 Ed Schonberg <schonberg@gnat.com>
35703 * sem_ch3.adb (Replace_Type): When computing the signature of an
35704 inherited subprogram, use the first subtype if the derived type
35705 declaration has no constraint.
35707 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
35708 before applying previous optimization. Minor code cleanup.
35710 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
35711 placed at the beginning of an unpacked record without explicit
35712 alignment, a slice of it will be aligned and does not need a copy when
35715 2004-06-25 Ed Schonberg <schonberg@gnat.com>
35719 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
35720 reference is written with expressions mimicking parameters.
35722 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
35725 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
35726 STEP 2a. The constraints of a full type declaration of a derived record
35727 type are checked for conformance with those declared in the
35728 corresponding private extension declaration. The message
35729 "not conformant with previous declaration" is emitted if an error is
35732 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35734 * g-traceb.ads: Document the need for -E binder switch in the spec.
35736 * g-trasym.ads: Document the need for -E binder switch in the spec.
35738 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
35740 * sem_prag.adb: Add handling of pragma Detect_Blocking.
35742 * snames.h, snames.ads, snames.adb: Add entry for pragma
35745 * s-rident.ads: Change reference to pragma Detect_Blocking.
35747 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
35750 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
35751 to indicate whether pragma Detect_Blocking is active.
35753 * par-prag.adb: Add entry for pragma Detect_Blocking.
35755 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
35756 of not handling WITH.
35757 Note that this replaces the previous update which was incorrect.
35759 2004-06-25 Javier Miranda <miranda@gnat.com>
35761 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
35762 use-clauses to have a clean environment.
35764 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
35765 the installation of the use-clauses to stablish a clean environment in
35766 case of compilation of a separate unit; otherwise the call to
35767 use_one_package is protected by the barrier Applicable_Use.
35769 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
35770 the installation of the use-clauses to stablish a clean environment in
35771 case of compilation of a separate unit.
35772 (End_Use_Clauses): Minor comment cleanup.
35774 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
35776 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
35778 2004-06-23 Richard Henderson <rth@redhat.com>
35780 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
35782 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35784 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
35785 now bool instead of int.
35786 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
35787 * trans.c (gnu_switch_label_stack): New function.
35788 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
35789 elaboration of renamed entity returns.
35790 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
35791 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
35792 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
35793 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
35794 DECL_SIZE_UNIT and simplify variable-sized case.
35795 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35796 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
35797 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
35798 (build_unit_elab): Disable for now.
35799 * utils.c (mark_visited): New function.
35800 (pushdecl): Walk tree to call it for global decl.
35801 (update_pointer_to): Update all variants of pointer and ref types.
35802 Add arg to COMPONENT_REF.
35803 (convert): Likewise.
35804 Move check for converting between variants lower down.
35805 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
35806 (build_allocator): Don't force type of MODIFY_EXPR.
35807 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
35808 put_var_into_stack.
35810 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35812 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
35813 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
35814 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
35816 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
35817 all callers changed.
35818 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
35819 the way that EXIT_STMT finds the loop label.
35820 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
35821 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
35822 (add_stmt): Use annotate_with_locus insted of setting directly.
35823 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
35824 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
35825 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
35826 (build_vms_descriptor): Add extra args to ARRAY_REF.
35827 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
35828 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
35830 (build_binary_op): Don't make explicit CONVERT_EXPR.
35831 Add extra rgs to ARRAY_REF.
35833 2004-06-14 Pascal Obry <obry@gnat.com>
35835 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
35836 Windows. Fix minor typo.
35838 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
35839 which is now supported on Windows. With this implementation using the
35840 Library Project feature is no different on Windows than on UNIX.
35842 2004-06-14 Vincent Celier <celier@gnat.com>
35844 * makegpr.adb (Compile_Sources): Nothing to do when there are no
35847 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
35849 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
35850 found, show the project name and the path of the previously parsed
35853 2004-06-14 Ed Schonberg <schonberg@gnat.com>
35855 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
35856 array, avoid copying the actual before the call.
35858 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
35860 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
35861 Instead, allocate memory on worst-case alignment assumptions, and then
35862 return an aligned address within the allocated zone.
35864 2004-06-14 Robert Dewar <dewar@gnat.com>
35866 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
35867 elab entities in predefined units in No_Run_Time_Mode.
35868 (Gen_Adainit_C): Same fix
35869 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
35870 units in No_Run_Time_Mode
35871 (Gen_Elab_Calls_C): Same fix
35873 * symbols-vms-alpha.adb: Minor reformatting
35875 * g-debpoo.ads: Minor reformatting
35877 * lib.adb (In_Same_Extended_Unit): Version working on node id's
35879 * lib.ads (In_Same_Extended_Unit): Version working on node id's
35881 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
35884 * make.adb: Minor reformatting
35886 * par-ch12.adb: Minor reformatting
35888 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
35890 * prj-strt.adb: Minor reformatting
35892 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
35895 * sem_attr.adb: Minor reformatting
35897 * sem_ch7.adb: Minor reformatting
35899 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
35900 for type in the same unit as the object declaration.
35902 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
35903 static string expressions and not just string literals.
35905 (Set_Warning): Reset restriction warning flag for restriction pragma
35906 Implement pragma Profile_Warnings
35907 Implement pragma Profile (Restricted)
35908 Give obolescent messages for old restrictions and pragmas
35910 * snames.h, snames.ads, snames.adb: Add new entry for pragma
35913 * s-rident.ads: Add declarations for restrictions required by profile
35914 Restricted and profile Ravenscar.
35916 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
35918 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
35919 configuration pragmas.
35921 2004-06-11 Vincent Celier <celier@gnat.com>
35923 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
35924 gnatsym, when symbol policy is Restricted.
35926 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
35927 gnatsym, when symbol policy is Restricted.
35929 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
35930 read the symbol file.
35931 (Finalize): Fail in symbol policy Restricted if a symbol in the original
35932 symbol file is not in the object files. Do not create a new symbol file
35933 when symbol policy is Restricted.
35935 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
35938 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
35940 (Usage): Line for new switch -R
35942 * make.adb (Initialize): When the platform is not VMS, add the
35943 directory where gnatmake is invoked in the front of the path, if
35944 gnatmake is invoked with directory information. Change the Scan_Args
35945 while loop to a for loop.
35946 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
35947 if Depth is equal or greater than the proposed depth, there is nothing
35949 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
35952 * prj.ads: Add new symbol policy Restricted.
35954 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
35955 with the new parameters Check_All_Labels and Case_Location.
35957 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
35958 (Library_Symbol_File needs to be defined).
35960 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
35961 and Case_Location If Check_All_Labels is True, check that all values of
35962 the string type are used, and output warning(s) if they are not.
35964 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
35967 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
35969 * gnat_ugn.texi: Update documentation about the library directory in
35972 * makegpr.adb (Display_Command): In verbose mode, also display the
35973 value of the CPATH env var, when the compiler is gcc.
35974 (Initialize): Change the Scan_Args while loop to a for loop
35975 (Compile_Individual_Sources): Change directory to object directory
35976 before compilations.
35978 * symbols.ads: New symbol policy Restricted.
35980 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
35982 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
35983 is now taken care of internally in the Exception_Propagation package
35984 and does not require clients assistance any more.
35986 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
35987 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
35988 functions. Helpers to maintain a predicate required in the handling of
35989 occurrence transfer between tasks.
35990 This is now handled internally and does not require clients assistance
35991 for the setup/propagate separation anymore.
35992 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
35993 allocation strategy, handle the Setup_And_Not_Propagated predicate and
35996 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
35997 raise_after_setup, now that everything is handled internally within the
35998 setup/propagation engine.
36000 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36002 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
36003 Add additional conditions for the case of an actual being a simple
36004 name or literal. Improve inlining by preventing the generation
36005 of temporaries with a short lifetime (one use).
36007 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36010 * einfo.ads: Minor comment updates for Has_Completion and
36011 E_Constant list of flags.
36013 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
36014 and constant redeclarations now set the Has_Completion flag of their
36015 defining identifiers.
36017 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
36018 Inspect_Deferred_Constant_Completion.
36019 Used to detect private deferred constants that have not been completed
36020 either by a constant redeclaration or pragma Import. Emits error message
36021 "constant declaration requires initialization expression".
36023 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
36024 completes a deferred constant.
36026 2004-06-11 Geert Bosch <bosch@gnat.com>
36028 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
36030 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
36031 calculating exponent for scaling denormal numbers.
36032 (Leading_Part): Properly raise Constraint_Error for zero or negative
36034 (Remainder): Properly raise Constraint_Error for zero divisor.
36036 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
36038 * sem_util.adb: Minor reformatting.
36040 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
36041 dereference when accessing the entry parameter record.
36042 (Check_Array_Type): Always check for possible implicit dereference.
36043 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36044 Abort if a pointer is still present (denoting that an implicit
36045 dereference was left in the tree by the front-end).
36047 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
36048 dereference when accessing the entry parameter record.
36049 (Check_Array_Type): Always check for possible implicit dereference.
36050 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36051 Abort if a pointer is still present (denoting that an implicit
36052 dereference was left in the tree by the front-end).
36054 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
36056 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
36057 message, like the compiler itself does. Easier to parse the output.
36059 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
36061 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
36062 be base names, and not includes directories.
36064 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
36066 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
36067 so that dependencies are properly taken into account by make.
36069 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
36072 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
36073 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
36075 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
36077 * Makefile.in (install-gnatlib): install target-specific run-time files.
36079 * Make-lang.in: Remove obsolete targets.
36081 2004-06-11 Ed Schonberg <schonberg@gnat.com>
36083 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
36084 specification, to catch misuses of program unit names.
36086 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
36087 superfluous conversions in an instance.
36089 2004-06-11 Ed Schonberg <schonberg@gnat.com>
36092 * sem_ch12.adb (Save_References): If operator node has been folded to
36093 enumeration literal, associated_node must be discarded.
36095 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
36097 * s-stchop-vxworks.adb: Add required pragma Convention to
36098 Task_Descriptor because it is updated by a C function.
36100 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
36103 * Makefile.in: Remove target specific SO_OPT on IRIX
36105 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36107 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
36108 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
36109 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
36110 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
36111 (STMT_STMT, USE_STMT): New statement codes.
36112 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
36113 * ada-tree.h: Reflect above changes.
36114 (struct tree_loop_id): Deleted.
36115 (union lang_tree_node, struct lang_decl, struct lang_type):
36116 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
36117 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
36118 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
36119 (IS_ADA_STMT): New macro.
36120 * decl.c (annotate_decl_with_node): New function.
36121 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
36122 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
36123 Call add_stmt_with_node to do needed assignments.
36124 Add call to update setjmp buffer directly, not via EXPR_STMT.
36125 (maybe_variable): Argment GNAT_NODE deleted.
36126 * gigi.h (maybe_variable): Likewise.
36127 (make_transform, add_stmt_with_node, set_block_for_group): New.
36128 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
36129 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
36130 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
36131 (set_lineno, set_lineno_from_sloc): Likewise.
36132 (record_code_position, insert_code_for): Likewise.
36133 (gnat_poplevel): Now returns void.
36134 (end_subprog_body): Now takes argument.
36135 * misc.c (cgraph.h, tree-inline.h): New includes.
36136 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
36137 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
36138 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
36139 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
36140 (gnat_parse_file): Don't set immediate_size_expand.
36141 Call cgraph functions.
36142 (gnat_expand_expr): Remove most cases.
36143 (record_code_position, insert_code_for): Remove from here.
36144 * trans.c (toplev.h, tree-gimple.h): Now included.
36145 (discard_file_names): Deleted.
36146 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
36147 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
36148 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
36149 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
36150 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
36151 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
36152 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
36153 (set_block_for_group, add_stmt_list): Likewise.
36154 (start_stmt_group): Renamed from start_block_stmt.
36155 (end_stmt_group): Likewise, from end_block_stmt.
36156 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
36157 (gigi): Don't set discard_file_names or call set_lineno.
36158 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
36159 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
36160 Numerous changes throughout to reflect new names and complete
36161 function-at-a-time implementation.
36162 (gnat_expand_stmt): Delete or comment out all cases.
36163 (process_inlined_subprograms): Use add_stmt.
36164 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
36165 call set_lineno; also remove unneeded block handling.
36166 (process_type): Remove unneeded block handling.
36167 (build_unit_elab): Remove calls to deleted functions.
36168 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
36169 (tree-dump.h): Likewise.
36170 (struct ada_binding_level): Add field jmpbuf_decl.
36171 (gnat_define_builtin, gnat_install_builtins): New.
36172 (gnat_gimplify_function, gnat_finalize): Likewise.
36173 (gnat_poplevel): No longer return BLOCK, set it instead.
36174 Remove code dealing with nested functions.
36175 (gnat_init_decl_processing): Also set size_type_node.
36176 Call gnat_install_builtins.
36177 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
36178 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
36179 Remove special-case for "main".
36180 (end_subprog_body): Add arg and rework for tree-ssa.
36181 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
36182 Add case for BOOLEAN_TYPE.
36183 * utils2.c (rtl.h): Now include.
36184 (build_call_raise): Test Debug_Flag_NN directly.
36185 (build_call_alloc_dealloc): Don't use local stack allocation for now.
36186 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
36187 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
36189 2004-06-07 Robert Dewar <dewar@gnat.com>
36191 * a-direct.ads, einfo.ads: Minor comment updates
36193 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
36194 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36195 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
36196 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
36197 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
36199 * s-interr-sigaction.adb: Remove unreferenced variable
36200 (Attached_Interrupts). Minor reformatting.
36201 Avoid use of variable I (replace by J).
36203 * par-ch10.adb: Fix text of one error message
36205 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
36206 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
36207 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
36208 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
36209 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
36210 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
36211 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
36212 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
36213 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
36214 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
36215 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
36218 2004-06-07 Doug Rupp <rupp@gnat.com>
36220 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
36222 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
36224 * mlib-tgt-vms-ia64.adb: New file.
36226 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
36227 Add mlib-tgt-vms-ia64.adb
36228 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
36229 Move to alpha specific ifeq section.
36230 Add VMS specific versions of symbols.adb
36231 Renaming of 5q vms files.
36233 * 5qsystem.ads renamed to system-vms_64.ads.
36235 2004-06-07 Vincent Celier <celier@gnat.com>
36237 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
36238 explain that when a time of day corresponding to the non existing hour
36239 on the day switching to DST is specified, Split may return a different
36242 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
36245 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
36246 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
36248 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
36250 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
36251 the linking options.
36252 (Build_Library.Check_Libs): On VMS, if there is a dependency on
36253 g-trasym.ads, set Gtrasymobj_Needed to True.
36255 * prj-attr.adb: Add new package Metrics for gnatmetric
36257 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
36258 canonical case to take into account files with upper case characters on
36260 (Ada_Check): Load the reference symbol file name in the name buffer to
36261 check it, not the symbol file name.
36263 * snames.ads, snames.adb: Add standard name Metrics (name of project
36264 file package for gnatmetric).
36266 * vms_conv.ads: Add Metric to Comment_Type
36268 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
36270 * vms_data.ads: Add qualifiers for GNAT METRIC
36272 * makegpr.adb (Link_Executables): Take into account the switches
36273 specified in package Linker of the main project.
36275 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
36277 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
36278 the index of the last element is Units.Last, not Units.Table'Last
36279 (which is usually not a valid index within the actually allocated
36280 storage for the table).
36282 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
36283 determines whether to generate a call to a checked storage pool
36284 Dereference action.
36285 Generate such a call only for a dereference that either comes from
36286 source, or is the result of rewriting a dereference that comes from
36289 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
36291 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
36293 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
36295 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
36296 file level, elaborate the stride for inner dimensions in alignment
36299 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
36302 2004-06-07 Javier Miranda <miranda@gnat.com>
36304 * exp_ch6.adb: Correct wrong modification in previous patch
36306 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
36308 * g-trasym.ads: Corrected comment to properly reflect level of support
36311 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
36313 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
36314 includes case of a variable referenced on the left hand side of an
36315 assignment, therefore remove redundant code. Variables and prefixes of
36316 indexed or selected components are now marked as referenced on left
36317 hand side. Warnings are now properly emitted when variables or prefixes
36318 are assigned but not read.
36320 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
36321 left hand side referenced variables. Private access types do not
36322 produce the warning "variable ... is assigned but never read".
36323 Add also additional checks to left hand side referenced variables.
36324 Aliased, renamed objects and access types do not produce the warning
36325 "variable ... is assigned but never read" since other entities may read
36326 the memory location.
36328 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
36330 * Makefile.in: In the powerpc/vxworks-specific section, restore
36331 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
36334 2004-06-07 Ed Schonberg <schonberg@gnat.com>
36336 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
36337 predefined operators.
36338 Removes spurious type errors from g-trasym-vms.adb.
36340 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
36341 distinct from the operator appearing in the source, call appropriate
36342 routine to insert conversions when needed, and complete resolution of
36344 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
36345 interpretations for rewritten right operand.
36346 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
36347 the other operand is overloaded and the context is a type conversion.
36349 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36351 * ada-tree.def (BLOCK_STMT): Now has two operands.
36354 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
36356 * gigi.h: (gnat_poplevel): Now returns a tree.
36358 * trans.c (end_block_stmt): Add arg; all callers changed.
36359 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
36360 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
36361 (add_stmt): Set TREE_TYPE.
36362 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
36363 (gnat_expand_stmt, case BREAK_STMT): New case.
36365 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
36367 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
36369 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
36370 procedure Set_Stack_Size that is not needed.
36372 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
36374 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
36375 used for gnatpp input file and for the files upon which it depends
36377 2004-06-07 Ben Brosgol <brosgol@gnat.com>
36379 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
36381 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
36383 * gnatvsn.ads: Bump version numbers appropriately.
36384 Add new build type.
36386 2004-06-07 Pascal Obry <obry@gnat.com>
36388 * gnat_ugn.texi: Improve comments about imported names and link names
36389 on Windows. Add a note about the requirement to use -k gnatdll's option
36390 when working with a DLL which has stripped stdcall symbols (no @nn
36393 2004-05-27 Vincent Celier <celier@gnat.com>
36395 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
36396 COMMENTS_LAYOUT=UNTOUCHED
36398 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
36399 symbols-vms-alpha.adb
36401 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
36403 * sem.ads: Clarify documentation on checks suppression.
36405 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
36407 2004-05-27 Ed Schonberg <schonberg@gnat.com>
36409 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
36410 the case of multiple derivations.
36411 (Is_Object_Reference): For a selected component, verify that the prefix
36412 is itself an object and not a value.
36414 * sem_ch12.adb (Same_Instantiated_Constant): New name for
36415 Same_Instantiated_Entity.
36416 (Same_Instantiated_Variable): Subsidiary to
36417 Check_Formal_Package_Instance, to recognize actuals for in-out generic
36418 formals that are obtained from a previous formal package.
36419 (Instantiate_Subprogram_Body): Emit proper error when
36420 generating code and the proper body of a stub is missing.
36422 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
36423 has a universal interpretation, do the disambiguation here.
36425 * exp_ch4.adb (Expand_N_Type_Conversion,
36426 Expand_N_Unchecked_Type_Conversion): Special handling when target type
36427 is Address, to avoid typing anomalies when Address is a visible integer
36430 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
36431 to determine whether a subprogram should not be marked Pure, even when
36432 declared in a pure package.
36434 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
36436 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
36438 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
36439 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
36440 Update the documentation about the Ravenscar profile, following the
36441 definition found in AI-249.
36443 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
36444 setting the Profile (Ravenscar). This must be done in addition to
36445 setting the required restrictions.
36447 * rtsfind.ads: Add the set of operations defined in package
36450 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
36453 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
36455 lang-specs.h: Always require -c or -S and always redirect to /dev/null
36456 if -gnatc or -gnats is passed.
36458 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
36460 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
36461 a significant reference. Warnings are now properly emitted when a
36462 discriminated type is not referenced.
36464 * lib-xref.adb (Generate_Reference): A deferred constant completion,
36465 record representation clause or record type discriminant does not
36466 produce a reference to its corresponding entity. Warnings are now
36467 properly emitted when deferred constants and record types are not
36470 2004-05-27 Geert Bosch <bosch@gnat.com>
36472 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
36473 Fixes ACATS Annex G tests.
36475 2004-05-27 Robert Dewar <dewar@gnat.com>
36477 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
36480 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
36482 * s-interr.adb (Server_Task): Take into account case of early return
36483 from sigwait under e.g. linux.
36485 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
36487 * gnat_ugn.texi: Add description for the new gnatpp options:
36488 -rnb - replace the original source without creating its backup copy
36489 -c0 - do not format comments
36491 2004-05-24 Geert Bosch <bosch@gnat.com>
36493 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
36494 with 192 bits of precision, sufficient to reduce a double-extended
36495 arguments X with a maximum relative error of T'Machine_Epsilon, for X
36496 in -2.0**32 .. 2.0**32.
36497 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
36498 reduction by the processor, which only uses a 68-bit approximation of
36500 (Tan): Always reduce arguments and compute function either using
36501 the processor's fptan instruction, or by dividing sin and cos as needed.
36503 2004-05-24 Doug Rupp <rupp@gnat.com>
36505 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
36506 gcc error on 32/64 bit VMS.
36508 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
36510 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
36511 since this is what we get for stack overflows although not documented
36513 Document the issues which may require adjustments to our signal
36516 2004-05-24 Ed Schonberg <schonberg@gnat.com>
36518 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
36519 enclosing dynamic scope if the instantiation is within a generic unit.
36521 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
36523 * exp_dbug.ads: Fix typo.
36525 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
36526 Rename it to its proper name: system-linux-ia64.ads
36527 (stamp-gnatlib1): Remove extra target specific run time files when
36528 setting up the rts directory.
36530 2004-05-24 Javier Miranda <miranda@gnat.com>
36532 * einfo.ads, einfo.adb (Limited_Views): Removed.
36533 (Limited_View): New attribute that replaces the previous one. It is
36534 now a bona fide package with the limited-view list through the
36535 first_entity and first_private attributes.
36537 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
36538 limited-private-with clause.
36539 (Install_Limited_Withed_Unit): Install the private declarations of a
36540 limited-private-withed package. Update the installation of the shadow
36541 entities according to the new structure (see Build_Limited_Views)
36542 (Build_Limited_Views): Replace the previous implementation of the
36543 limited view by a package entity that references the first shadow
36544 entity plus the first shadow private entity (required for limited-
36545 private-with clause)
36546 (New_Internal_Shadow_Entity): Code cleanup.
36547 (Remove_Limited_With_Clause): Update the implementation to undo the
36548 new work carried out by Build_Limited_Views.
36549 (Build_Chain): Complete documentation.
36550 Replace Ada0Y by Ada 0Y in comments
36553 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
36554 types the level of accessibility depends on the enclosing type
36557 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
36558 entities. Complete documentation of previous change.
36560 2004-05-24 Robert Dewar <dewar@gnat.com>
36562 * namet.adb: Minor reformatting
36563 Avoid use of name I (replace by J)
36564 Minor code restructuring
36566 * sem_ch6.adb: Minor reformatting
36568 * lib-writ.adb: Do not set restriction as active if this is a
36569 Restriction_Warning case.
36571 * sem_prag.adb: Reset restriction warning flag if real pragma
36572 restriction encountered.
36574 * s-htable.adb: Minor reformatting
36575 Change rotate count to 3 in Hash (improves hash for small strings)
36577 * 5qsystem.ads: Add comments for type Address (no literals allowed).
36579 * gnat_ugn.texi: Add new section of documentation "Code Generation
36580 Control", which describes the use of -m switches.
36582 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
36584 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
36585 through the DECL_INITIAL for renamed variables.
36587 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
36589 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
36591 2004-05-19 Joel Brobecker <brobecker@gnat.com>
36593 * exp_dbug.ads: Correct comments concerning handling of overloading,
36594 since we no longer use $ anymore.
36596 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
36598 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
36599 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
36600 with illegal subunits.
36602 2004-05-19 Ed Schonberg <schonberg@gnat.com>
36604 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
36605 body with front-end inlining enabled, check whether an inline pragma
36606 appears immediately after the body and applies to it.
36608 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
36609 enabled and the pragma appears after the body of the subprogram.
36611 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36613 Part of function-at-a-time conversion
36615 * misc.c (adjust_decl_rtl): Deleted.
36616 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
36619 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
36620 (add_decl_stmt, add_stmt, block_has_vars): New functions.
36621 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
36623 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
36624 when making a decl.
36625 (gnat_to_gnu_entity): Likewise.
36626 Use add_stmt to update setjmp buffer.
36627 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
36629 No longer call adjust_decl_rtl.
36630 (DECL_INIT_BY_ASSIGN_P): New macro.
36631 (DECL_STMT_VAR): Likewise.
36633 * trans.c (gigi): Call start_block_stmt to make the outermost
36635 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
36636 Call start_block_stmt and end_block_stmt temporarily.
36637 Use gnat_expand_stmt instead of expand_expr_stmt.
36638 (add_decl_stmt): New function.
36639 (tree_transform): Call it.
36640 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
36641 (end_block_stmt): Set type and NULL_STMT.
36642 (gnat_expand_stmt): Make recursize call instead of calling
36644 (gnat_expand_stmt, case DECL_STMT): New case.
36645 (set_lineno_from_sloc): Do nothing if global.
36646 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
36647 (start_block_stmt, add_stmt, end_block_stmt): New functions.
36648 (build_block_stmt): Call them.
36649 (gnat_to_code): Don't expand NULL_STMT.
36650 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
36652 (tree_transform): Likewise.
36653 (tree_transform, case N_Null_Statement): Return NULL_STMT.
36654 (gnat_expand_stmt, case NULL_STMT): New case.
36655 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
36658 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
36661 * utils.c (create_var_decl): Do not call expand_decl or
36663 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
36664 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
36666 (struct e_stack): Add chain_next to GTY.
36667 (struct binding_level): Deleted.
36668 (struct ada_binding_level): New struct.
36669 (free_block_chain): New.
36670 (global_binding_level, clear_binding_level): Deleted.
36671 (global_bindings_p): Rework to see if no chain.
36672 (kept_level_p, set_block): Deleted.
36673 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
36674 new data structure and work directly on BLOCK node.
36675 (gnat_poplevel): Similarly.
36676 (get_decls): Look at BLOCK_VARS.
36677 (insert_block): Work directly on BLOCK node.
36678 (block_has_var): New function.
36679 (pushdecl): Rework for new binding structures.
36680 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
36682 (build_subprog_body): Likewise.
36683 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
36685 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
36687 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
36688 (DECL_STMT_VAR): Likewise.
36690 2004-05-17 Robert Dewar <dewar@gnat.com>
36692 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
36695 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
36696 of restriction synonyums by using
36697 Restrict.Process_Restriction_Synonyms.
36699 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
36701 * s-restri.ads (Tasking_Allowed): Correct missing comment
36703 * s-rident.ads: Add entries for restriction synonyms
36705 * ali.adb: Fix some problems with badly formatted ALI files that can
36706 result in infinite loops.
36708 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
36709 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
36710 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36711 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
36712 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
36713 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
36714 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
36715 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
36716 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
36717 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
36718 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
36719 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
36720 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
36721 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
36722 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36723 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36724 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36725 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36726 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
36727 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
36728 to Task_Id (minor cleanup).
36730 2004-05-17 Vincent Celier <celier@gnat.com>
36732 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
36733 directory separator.
36735 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
36736 project being extended, if Languages is not declared in extending
36739 2004-05-17 Javier Miranda <miranda@gnat.com>
36741 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
36742 limited view of a visible sibling.
36744 2004-05-14 Robert Dewar <dewar@gnat.com>
36746 * gnat_ugn.texi: Minor change to -gnatS documentation
36748 * sprint.adb: Remove some instances of Assert (False) and for this
36749 purpose replace them by output of a ??? string.
36751 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
36754 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
36755 flag processing. This was suppressing required dependencies in
36756 No_Run_Time mode and is not needed since the binder does not generate
36757 references for things in libgnat anyway.
36759 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
36762 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
36764 * gnat_ugn.texi: Document AIX-specific issue with initialization of
36767 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
36768 action for the case of an actual parameter in an init proc call.
36770 2004-05-14 Ed Schonberg <schonberg@gnat.com>
36772 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
36773 subtype, check visible entities in base type.
36775 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
36776 actions if the object is a renaming.
36778 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
36779 Check_Formal_Package_Instance, to determine more precisely when the
36780 formal and the actual denote the same entity.
36782 2004-05-14 Javier Miranda <miranda@gnat.com>
36784 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
36786 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
36787 corresponding to a private_with must be removed from visibility; it
36788 will be made visible later, just before we analyze the private part of
36790 (Check_Private_Child_Unit): Allow private_with clauses in public
36792 (Install_Siblings): Make visible the private entities of private-withed
36794 (Install_Withed_Unit): Do not install the private withed unit if we
36795 are compiling a package declaration and the Private_With_OK flag was
36796 not set by the caller. These declarations will be installed later,
36797 just before we analyze the private part of the package.
36799 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
36800 during the evaluation of the expression that initializes the object,
36801 decorate it with the expected type to avoid cascade errors.
36804 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
36805 subprogram we have to install the private_with clauses after its
36806 specification has been analyzed (as documented in AI-262.TXT).
36808 * sem_ch8.adb (Has_Private_With): New function. Determines if the
36809 current compilation unit has a private with on a given entity.
36810 (Find_Direct_Name): Detect the Beaujolais problem described in
36813 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
36814 provides the functionality of the function Is_Ancestor that was
36815 previously available in sem_ch10. It has been renamed to avoid
36818 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
36820 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36822 * utils.c (build_vms_descriptor): Use SImode pointers.
36824 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
36826 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
36828 2004-05-14 GNAT Script <nobody@gnat.com>
36830 * Make-lang.in: Makefile automatically updated
36832 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
36834 Renaming of target specific files for clarity
36836 * Makefile.in: Rename GNAT target specific files.
36838 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
36839 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
36840 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
36841 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
36842 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
36843 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
36844 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
36845 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
36846 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
36847 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
36848 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
36849 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
36850 51osinte.adb, 51osinte.ads, 51system.ads,
36851 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36852 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
36853 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
36854 56tpopsp.adb, 57system.ads, 58system.ads,
36855 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
36856 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36857 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
36858 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
36859 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
36860 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36861 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
36862 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
36863 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
36864 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
36865 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
36866 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
36867 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
36868 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
36869 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
36870 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36871 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36872 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36873 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
36874 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
36875 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
36876 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
36877 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
36878 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36879 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
36880 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
36881 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36882 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
36883 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36884 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
36885 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
36886 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
36887 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
36888 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
36889 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
36890 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
36891 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
36892 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
36893 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
36894 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
36896 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
36897 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
36898 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
36899 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
36900 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
36901 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
36902 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
36903 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
36904 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
36905 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
36906 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
36907 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
36908 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
36909 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
36910 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
36911 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
36912 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
36913 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
36914 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
36915 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
36916 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
36917 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
36918 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
36919 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
36920 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
36921 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
36922 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
36923 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
36924 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
36925 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
36926 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
36927 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
36928 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
36929 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
36930 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
36931 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
36932 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
36933 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
36934 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
36935 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
36936 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
36937 s-osinte-vms.ads, s-osinte-vxworks.adb,
36938 s-osinte-vxworks.ads, s-osprim-mingw.adb,
36939 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
36940 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
36941 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
36942 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
36943 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
36944 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
36945 s-stchop-vxworks.adb, s-taprop-dummy.adb,
36946 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
36947 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
36948 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
36949 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
36950 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
36951 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
36952 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
36953 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
36954 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
36955 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
36956 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
36957 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
36958 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
36959 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
36960 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
36961 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
36962 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
36963 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
36964 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
36965 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
36966 system-irix-o32.ads, system-linux-x86_64.ads,
36967 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
36968 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
36969 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
36970 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
36971 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
36972 system-vxworks-mips.ads, system-vxworks-ppc.ads,
36973 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
36976 2004-05-13 Zack Weinberg <zack@codesourcery.com>
36978 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
36980 2004-05-13 Diego Novillo <dnovillo@redhat.com>
36982 Merge from tree-ssa-20020619-branch.
36984 * config-lang.in (boot_language, build_by_default): Set
36986 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
36987 (max_size): Add static chain op for call_expr.
36989 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
36992 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
36994 2004-05-11 Roger Sayle <roger@eyesopen.com>
36996 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
36999 2004-05-10 Doug Rupp <rupp@gnat.com>
37001 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
37004 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
37006 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
37008 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
37009 Fixes undefined symbols in IA64 gnatlib.
37011 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
37013 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
37014 Short_Address). This will be moved to system.auxdec.
37016 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
37018 * sem_util.adb: Replace test for presence of a node that is always
37019 present with a call to Discard_Node.
37021 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
37022 Analyze on the library unit node after generation of distribution stub
37023 constructs. The call was a no-op because Unit_Node has already been
37024 Analyzed, and the tree fragments for the distribution stubs are
37025 analyzed as they are inserted in Exp_Dist.
37026 Update comment regarding to distribution stubs to reflect that we
37027 do not generate stub in separate files anymore.
37029 * einfo.ads: Clarify the fact that a tagged private type has the
37030 E_Record_Type_With_Private Ekind.
37032 * erroutc.adb: Minor reformatting
37034 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
37035 values if line length is increased using -gnatyM (noticed during code
37038 * eval_fat.adb: Minor reformatting
37039 Put spaces around exponentiation operator
37041 2004-05-10 Ed Schonberg <schonberg@gnat.com>
37044 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
37045 has been rewritten as an explicit dereference, retrieve type of
37046 original node to check for possibly unconstrained record type.
37048 2004-05-10 Ed Schonberg <schonberg@gnat.com>
37050 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
37051 overriding, use the operation of the parent unconditionally.
37053 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
37054 operation when either operand is a literal, to avoid further
37057 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
37058 overridden by a previous explicit declaration, mark the previous entity
37061 * sem_disp.adb (Check_Dispatching_Operation): New predicate
37062 Is_Visibly_Controlled, to determine whether a declaration of a
37063 primitive control operation for a derived type overrides an inherited
37064 one. Add warning if the explicit declaration does not override.
37066 2004-05-10 Vincent Celier <celier@gnat.com>
37068 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
37069 some cases when the sources are no longer present.
37071 * make.adb (Collect_Arguments): Fail if an external source, not part
37072 of any project need to be compiled, when switch -x has not been
37075 * makeusg.adb: Document new switch -x
37077 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
37078 defaulted to False.
37080 * switch-m.adb (Scan_Make_Switches): New switch -x
37082 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
37083 gnatmake switch -x.
37085 * gnat_ugn.texi: Document new gnatmake switch -x
37087 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
37089 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
37091 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
37092 (process_attributes): Likewise.
37094 2004-05-10 Joel Brobecker <brobecker@gnat.com>
37096 * s-inmaop.ads: Fix spelling mistake in one of the comments.
37098 2004-05-10 Robert Dewar <dewar@gnat.com>
37100 * gnat_ugn.texi: Document that for config pragma files, the maximum
37101 line length is always 32767.
37103 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
37104 literals is now allowed.
37106 * gnat-style.texi: Remove statement about splitting long lines before
37107 an operator rather than after, since we do not follow this rule at all.
37108 Clarify rule (really lack of rule) for spaces around exponentiation
37110 * sem_elim.adb: Allow concatenation of string literals as well as a
37111 single string literal for pragma arguments.
37113 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
37115 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
37116 written for append case.
37118 * frontend.adb: Changes to avoid checking max line length in config
37121 * g-os_lib.ads: Minor reformatting
37123 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
37124 wrong in any case. Instead use standard value. Noticed during code
37127 * opt.ads (Max_Line_Length): New field, used to implement removal of
37128 limitation on length of lines when scanning config pragma files.
37130 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
37131 makeutl.ads, makeutl.adb: Minor reformatting
37133 * scn.adb: Do not check line length while scanning config pragma files
37134 Do not check line length while scanning out license information
37136 * scng.adb: Changes to avoid line length checks while parsing config
37139 2004-05-10 GNAT Script <nobody@gnat.com>
37141 * Make-lang.in: Makefile automatically updated
37143 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
37145 * osint.adb (Find_Program_Name): Fix handling of VMS version
37148 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
37150 * g-os_lib.ads (Invalid_Time): New constant
37152 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
37153 return OS_Time instead of time_t to match what is imported by Ada.
37154 Now return -1 if the file doesn't exist, instead of a random value
37156 2004-05-05 Robert Dewar <dewar@gnat.com>
37158 * usage.adb: Add line for -gnatR?s switch
37160 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
37162 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
37163 and for Match (Data_First, Data_last)
37165 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
37166 written when we are dealing with multi-unit files.
37168 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
37170 * Makefile.in: Remove unused targets and variables.
37172 2004-05-05 Vincent Celier <celier@gnat.com>
37174 * switch-m.adb: New gnatmake switch -eI
37176 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
37177 of new gnatmake switch -eInnn.
37179 * makegpr.adb: Take into account new parameters Index and Src_Index in
37182 * clean.adb: Implement support for multi-unit sources, including new
37185 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
37188 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
37189 (Extract_From_Q): New out parameter Index
37190 (Mark, Is_Marked): Subprograms moved to Makeutl
37191 (Switches_Of): New parameter Source_Index
37192 (Add_Switch): New parameter Index
37193 (Check): New parameter Source_Index
37194 (Collect_Arguments): New parameter Source_Index
37195 (Collect_Arguments_And_Compile): New parameter Source_Index
37196 (Compile): New parameter Source_Index
37197 Put subprograms in alphabetical order
37198 Add support for multi-source sources, including in project files.
37200 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
37201 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
37204 * makeusg.adb: New gnatmake switch -eInnn
37206 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
37209 * opt.ads (Main_Index): New variable, defaulted to 0.
37211 * osint.ads, osinte.adb (Add_File): New parameter Index
37212 (Current_Source_Index): New function
37214 * prj.adb: Take into account new components Index and Src_Index
37216 * prj.ads (String_Element): New component Index
37217 (Variable_Value): New component Index
37218 (Array_Element): New component Src_Index
37220 * prj-attr.adb: Indicate that optional index may be specified for
37221 attributes Main, Executable, Spec, Body and some of Switches.
37223 * prj-attr.ads (Attribute_Kind): New values for optional indexes
37224 (Attribute_Record): New component Optional_Index
37226 * prj-com.ads (File_Name_Data): New component Index
37228 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
37230 * prj-env.adb (Put): Output optional index
37232 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
37233 attributes Spec and Body.
37235 * prj-nmsc.adb: Process optional indexes
37237 * prj-pp.adb: Ouput "at" for optional indexes
37239 * prj-proc.adb: Take into account optional indexes
37241 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
37242 Optional_Index. For string literal,
37243 process optional index when Optional_Index is True.
37244 (Parse_Expresion): New Boolean parameter Optional_Index
37246 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
37247 (Set_Source_Index_Of): New procedure
37249 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
37252 * prj-util.ads (Executable_Of): New parameter Index
37253 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
37254 New parameter Src_Index, defaulted to 0.
37256 2004-05-05 Ed Schonberg <schonberg@gnat.com>
37259 * sem_ch3.adb (Access_Definition): If this is an access parameter
37260 whose designated type is imported through a limited_with clause, do
37261 not add the enclosing subprogram to the list of private dependents of
37264 2004-05-05 Ed Schonberg <schonberg@gnat.com>
37267 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
37268 a limited_with clause, and the other is its non-limited view.
37270 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
37272 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
37274 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
37275 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
37276 Stand.Boolean_Literals to produce references to entities
37277 Standard_False and Standard_True from compile-time computed boolean
37280 * stand.ads (Boolean_Literals): New variable, provides the entity
37281 values for False and True, for use by the expander.
37283 2004-05-05 Doug Rupp <rupp@gnat.com>
37285 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
37286 5vinmaop.adb: Unchecked convert Short_Address vice Address
37288 * adaint.c, raise.c: Caste CRTL function return value
37289 to avoid gcc error on 32/64 bit IVMS.
37291 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
37294 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
37296 * 5qsystem.ads (Address): Declare as Long_Integer
37297 (Short_Address): Declare as 32 bit subtype of Address
37298 Declare abstract address operations to avoid gratuitous ambiguities.
37300 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
37302 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
37303 instead of the old Boolean_Entry_Barriers.
37304 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
37306 2004-05-05 GNAT Script <nobody@gnat.com>
37308 * Make-lang.in: Makefile automatically updated
37310 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37312 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
37314 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
37317 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
37318 alone. Replacing object references by literals is inappropriate in a
37319 so low level context.
37321 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37323 * a-exexpr.adb: Add comments
37325 2004-05-03 Joel Brobecker <brobecker@gnat.com>
37327 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
37328 declare the Ancestor_Tags array in Type_Specific_Data with a small size
37329 without risking a bounds check error when accessing one of its
37331 (Type_Specific_Data): Define Ancestor_Tags as a small array.
37332 This prevents us from hitting a limitation during the debug info
37333 generation when using stabs.
37335 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
37337 This prevents us from hitting a limitation during the debug info
37338 generation when using stabs.
37340 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
37342 lang-specs.h: Remove -gnatz* from specs.
37344 2004-05-03 Vincent Celier <celier@gnat.com>
37346 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
37348 * Make-lang.in, Makefile.in: Add gprmake
37350 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
37352 * sem_aggr.adb: Fix typo in comment.
37354 2004-05-03 Robert Dewar <dewar@gnat.com>
37356 * make.adb: Minor reformatting
37358 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
37360 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
37361 so that it works when address is not a private type.
37363 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
37364 properly with rewritten unchecked conversions. This prevents
37365 order-of-elaboration issues that can otherwise arise.
37366 (Minimum_Size): Don't check size of access types under VMS
37368 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
37369 interpretations of integer literals as type System.Address.
37371 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
37372 (Is_Descendent_Of): New function
37374 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
37376 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37377 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
37378 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
37380 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
37381 of the old Max_Entry_Queue_Depth.
37383 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37384 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
37385 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
37387 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
37388 New entry for proper handling of Max_Entry_Queue_Depth.
37389 New entry for proper handling of No_Dynamic_Interrupts.
37391 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
37392 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37393 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
37394 the GNAT specific restriction Max_Entry_Queue_Depth.
37395 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
37396 the GNAT specific restriction No_Dynamic_Interrupts.
37398 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
37399 instead of the old Boolean_Entry_Barriers.
37400 Use the new restriction No_Dynamic_Attachment instead of the old
37401 No_Dynamic_Interrupts.
37403 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
37404 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37406 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
37407 of the old Max_Entry_Queue_Depth.
37409 2004-05-03 GNAT Script <nobody@gnat.com>
37411 * Make-lang.in: Makefile automatically updated
37413 2004-04-29 Ed Schonberg <schonberg@gnat.com>
37415 * checks.adb (Enable_Range_Check): If the prefix of an index component
37416 is an access to an unconstrained array, perform check unconditionally.
37418 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37420 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
37423 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
37425 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
37426 alternate stack setting. There was no support for the tasking cases
37427 and the changes eventually caused a number of side-effect failures in
37428 the non-tasking case too.
37430 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
37432 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
37435 2004-04-29 Vincent Celier <celier@gnat.com>
37437 * make.adb (Gnatmake): Increase max size of argument array for
37438 gnatbind for the potential addition of -F.
37439 If there are Stand-Alone Library projects, invoke gnatbind with -F to
37440 be sure that elaboration flags will be checked.
37442 * switch-c.adb: Correct call to Scan_Pos for -gnateI
37444 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
37446 * sem_warn.adb (Check_References): Move '<access-variable> may be
37447 null' warning out of under Warn_On_No_Value_Assigned.
37449 2004-04-29 Ed Falis <falis@gnat.com>
37451 * gnat_ugn.texi: Fixed texi error
37453 2004-04-29 Robert Dewar <dewar@gnat.com>
37455 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
37456 abstract operations if they come from predefined files.
37458 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
37461 * s-addope.adb: Correct obvious error in mod function
37463 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
37465 * Makefile.in: Add target pairs for powerpc darwin*
37468 * a-intnam-darwin.ads, s-osinte-darwin.adb,
37469 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
37471 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
37473 * Makefile.in: Add target macro definitions for s390*-linux*.
37474 * system-linux-s390.ads: New file.
37475 * system-linux-s390x.ads: New file.
37477 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
37479 * gnat_ugn.texi: Correct argument to @setfilename.
37481 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
37483 * a-exexpr.adb (Unwind_Word): New data type.
37484 (Unwind_Exception): Use it as type of Private1 and Private2.
37486 * raise.c (db_action_for): Fix debug printf.
37488 2004-04-27 Ed Schonberg <schonberg@gnat.com>
37490 * a-wtmoio.ads: Formal type must be a modular type, not a signed
37493 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37495 * decl.c (gnat_to_gnu_entity, case object): Call
37496 __builtin_update_setjmp_buf.
37498 * gigi.h (update_setjmp_buf): Deleted.
37499 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
37501 * misc.c: (update_setjmp_buf): Deleted.
37503 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
37504 around block of RTL.
37506 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
37508 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
37510 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
37511 subprogram for which no pragma All_Calls_Remote applies, store the
37512 address of the real subprogram in the underlying record type, so local
37513 dereferences do not go through the PCS.
37515 2004-04-26 Robert Dewar <dewar@gnat.com>
37517 * i-c.ads: Add some type qualifications to avoid ambiguities when
37518 compiling with s-auxdec.ads and a non-private address type.
37520 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
37522 * Makefile.rtl: Fix error in previous check-in:
37523 Add s-addope.o to non tasking object list (rather than tasking object
37526 2004-04-26 Javier Miranda <miranda@gnat.com>
37528 * sem_aggr.adb: Fix typo in comments
37529 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
37530 Required to check the null-exclusion attribute.
37532 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
37533 case of anonymous access types in record and array components. For a
37534 component definition the level is the same of the enclosing composite
37537 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
37538 that are anonymous access types the level of accessibility depends on
37539 the enclosing type declaration. In order to have this information, set
37540 the scope of the anonymous access type to the enclosing record type
37542 (Array_Type_Declaration): In case of components that are anonymous
37543 access types the level of accessibility depends on the enclosing type
37544 declaration. In order to have this information, set the scope of the
37545 anonymous access type to the enclosing array type declaration.
37547 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
37550 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
37551 renaming of anonymous access-to-constant types allowed if and only if
37552 the renamed object is access-to-constant.
37554 * sem_util.adb (Type_Access_Level): In case of anonymous access types
37555 that are component_definition or discriminants of a nonlimited type,
37556 the level is the same as that of the enclosing component type.
37558 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
37560 * sem_elim.adb: Some minor code reorganization from code reading. Fix
37561 misprint in the function name (File_Name_Match).
37563 2004-04-23 Laurent Guerby <laurent@guerby.net>
37565 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
37568 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37570 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
37572 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
37574 * adaint.c (__gnat_try_lock): No longer requires that the parent
37575 directory be writable, the directory itself is enough.
37576 (gnat_is_absolute_path): Change profile, so that the call from
37577 GNAT.OS_Lib can be made more efficient.
37579 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
37580 from GNAT.OS_Lib can be made more efficient.
37582 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
37583 one copy of the file name. Found by code reading.
37585 2004-04-23 Vincent Celier <celier@gnat.com>
37587 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
37588 Correct documentation on gnatmake switches transmitted to the compiler
37590 * ali.ads: Minor comment fix
37592 2004-04-23 Javier Miranda <miranda@gnat.com>
37594 * sem_ch6.adb: (Confirming Types): Code cleanup
37596 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
37597 subprogram types: E_Anonymous_Access_Subprogram_Type and
37598 E_Anonymous_Access_Protected_Subprogram_Type.
37600 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
37602 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37603 whether a pragma All_Calls_Remote applies to the subprogram on which
37605 No functional change is introduced by this revision; the new parameter
37606 will be used to allow calls to local RCI subprograms to be optimized
37607 to not use the PCS in the case where no pragma All_Calls_Remote applies,
37608 as is already done in the PolyORB implementation of the DSA.
37610 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37611 whether a pragma All_Calls_Remote applies to the subprogram on which
37613 No functional change is introduced by this revision; the new parameter
37614 will be used to allow calls to local RCI subprograms to be optimized
37615 to not use the PCS in the case where no pragma All_Calls_Remote applies,
37616 as is already done in the PolyORB implementation of the DSA.
37618 2004-04-23 Robert Dewar <dewar@gnat.com>
37620 * Makefile.rtl: Add entry for s-addope.o in run time library list
37621 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
37622 * s-addope.ads, s-addope.adb: New files.
37624 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
37625 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
37626 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
37627 System.Address to be non-private and signed.
37629 * sem_elim.adb: Minor reformatting (fairly extensive)
37630 Some minor code reorganization from code reading
37631 Add a couple of ??? comments
37633 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37635 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
37636 (tree_transform, case N_If_Statement): Remove non-determinism.
37638 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
37640 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
37642 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
37643 Eliminate' section.
37645 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
37646 no longer used as a parameter name for Eliminate pragma).
37648 2004-04-22 Laurent Guerby <laurent@guerby.net>
37650 PR optimization/14984
37651 PR optimization/14985
37652 * trans.c (gigi): Fix non determinism leading to bootstrap
37653 comparison failures.
37655 2004-04-21 Pascal Obry <obry@gnat.com>
37657 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
37658 passed to spawnvp() to properly handle program pathname with spaces on
37661 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
37663 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
37664 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
37665 unlocked in case of exceptions.
37667 2004-04-21 Joel Brobecker <brobecker@gnat.com>
37669 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
37670 This function does not exist anymore.
37672 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
37674 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
37676 * link.c: Move variables to the __gnat name space.
37678 * Makefile.in: list link.o explicitly when needed.
37680 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
37682 2004-04-21 Javier Miranda <miranda@gnat.com>
37684 * einfo.adb (Original_Access_Type): New subprogram
37685 (Set_Original_Access_Type): New subprogram
37686 (Write_Field21_Name): Write the name of the new field
37688 * einfo.ads (Original_Access_Type): New field present in access to
37690 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
37691 E_Anonymous_Access_Protected_Subprogram_Type.
37693 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
37696 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
37697 to anonymous access to subprogram types.
37699 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
37700 to subprogram types.
37702 * sem_ch3.adb (Access_Definition): Complete decoration of entities
37703 corresponding to anonymous access to subprogram types.
37704 (Analyze_Component_Declaration): Add new actual to the call to
37705 subprogram replace_anonymous_access_to_protected_subprogram.
37706 (Array_Type_Declaration): Add new actual to the call to subprogram
37707 replace_anonymous_access_to_protected_subprogram.
37708 (Process_Discriminants): Add new actual to the call to subprogram
37709 replace_anonymous_access_to_protected_subprogram.
37710 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
37712 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37715 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
37716 access to subprogram types.
37718 * sem_util.adb (Has_Declarations): Addition of package_specification
37721 2004-04-21 Ed Schonberg <schonberg@gnat.com>
37723 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
37724 inlined flags to renamed entity only if in current unit.
37726 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
37728 * s-parint.ads: Add DSA implementation marker.
37730 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
37731 value of System.Partition_Interface.DSA_Implementation to determine
37732 what version of the distributed systems annex is available (no
37733 implementation, GLADE, or PolyORB).
37735 2004-04-21 Joel Brobecker <brobecker@gnat.com>
37737 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
37739 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37741 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
37742 with new type if alias sets differ.
37743 Fixes ACATS c41103b.
37745 2004-04-21 Vincent Celier <celier@gnat.com>
37747 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
37748 Add array Lang_Args for the language specific compiling argument
37751 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
37753 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
37755 * gnat_rm.texi: Update the descripton of the Eliminate pragma
37756 according to the recent changes in the format of the parameters of the
37757 pragma (replacing Homonym_Number with Source_Location).
37759 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
37761 * 5isystem.ads: Removed, unused.
37763 * gnat_rm.texi: Redo 1.13 change.
37765 2004-04-19 Robert Dewar <dewar@gnat.com>
37767 * s-stoele.ads: Clean up definition of Storage_Offset (the new
37768 definition is cleaner, avoids the kludge of explicit Standard operator
37769 references, and also is consistent with a visible System.Address with
37770 no visible operations.
37772 * s-geveop.adb: Add declarations to avoid assumption of visible
37773 operations on type System.Address (since these might not be available
37774 if Address is a non-private type for which the operations
37775 are made abstract).
37777 * sem_eval.adb: Minor reformatting
37779 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
37780 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
37781 reformatting (new function spec format).
37783 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
37784 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
37785 s-caun64.adb: Add declarations to avoid assumption of visible
37786 operations on type System.Address (since these might not be available
37787 if Address is a non-private type for which the operations are made
37790 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
37792 * exp_intr.adb: Minor comment update
37794 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
37796 * 5omastop.adb: Add declarations to avoid assumption of visible
37797 operations on type System.Address (since these might not be available
37798 if Address is a non-private type for which the operations
37799 are made abstract).
37801 2004-04-19 Vincent Celier <celier@gnat.com>
37803 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
37805 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
37808 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
37810 Call Check with Process_Languages.
37811 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
37812 with Process_Languages.
37813 (Recursive_Check): New Boolean parameter Process_Languages. Call
37814 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
37817 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
37819 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
37820 parameter Ada_Main, defaulted to True.
37821 Check for Ada specific characteristics only when Ada_Main is True.
37823 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
37825 * prj.adb: (Project_Empty): Add new Project_Data components.
37827 * prj.ads: New types and tables for non Ada languages.
37828 (Project_Data): New components Languages, Impl_Suffixes,
37829 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
37830 Include_Path, Include_Data_Set.
37832 * prj-env.ads, prj-env.adb: Minor reformatting
37834 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
37835 Put subprograms in alphabetical order
37837 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
37838 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
37841 * mlib-prj.adb: Back out modification in last version, as they are
37843 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
37845 * make.adb: (Mains): Moved to package Makeutl
37846 (Linker_Opts): Moved to package Makeutl
37847 (Is_External_Assignment): Moved to package Makeutl
37848 (Test_If_Relative_Path): Moved to package Makeutl
37849 (Gnatmake): Move sorting of linker options to function
37850 Makeutl.Linker_Options_Switches.
37852 * makeutl.ads, makeutl.adb: New files.
37854 * Makefile.in: Add makeutl.o to the object files for gnatmake
37856 * makeusg.adb: Add line for new switch -eL.
37858 * gnatls.adb (Image): New function.
37859 (Output_Unit): If in verbose mode, output the list of restrictions
37860 specified by pragmas Restrictions.
37862 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
37865 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
37866 needed, to put it in the range 1970 (included) - 2026 (excluded).
37867 (Time_Of): Do not shift Unix_Min_Year (1970).
37868 Shift the date by multiple of 56 years, if needed, to put it in the
37869 range 1970 (included) - 2026 (excluded).
37871 * adaint.h, adaint.c (__gnat_set_executable): New function.
37873 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37875 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
37876 and pop GC context.
37877 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
37878 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
37879 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
37880 (tree_transform, case N_Code_Statement): Likewise.
37881 (gnat_expand_stmt, case LABEL_STMT): Don't look at
37882 LABEL_STMT_FIRST_IN_EH.
37883 (gnat_expand_stmt, case ASM_STMT): New case.
37885 * utils2.c (build_unary_op): Properly set TREE_READONLY of
37886 UNCONSTRAINED_ARRAY_REF.
37888 * utils.c (poplevel): Temporarily push/pop GC context around inline
37889 function expansion.
37891 * decl.c (maybe_variable): Properly set TREE_READONLY of
37892 UNCONSTRAINED_ARRAY_REF.
37893 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
37895 * ada-tree.def: (ASM_STMT): New.
37897 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
37898 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
37899 ASM_STMT_INPUT): New.
37900 (ASM_STMT_CLOBBER): Likewise.
37902 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
37904 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
37905 general rcheck mechanism to raise Program_Error for E.4(18), instead
37906 of a custom raiser in System.Partition_Interface.
37907 Part of general cleanup work before PolyORB integration.
37909 * snames.ads, snames.adb: Add new runtime library entities and names
37912 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37914 (Build_Subprogram_Id): New subprogram provided by exp_dist
37915 Code reorganisation in preparation for PolyORB integration.
37917 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37919 (Build_Subprogram_Id): New subprogram provided by exp_dist
37921 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
37922 actual parameter types for call to dereference of an
37923 access-to-subprogram type.
37925 * rtsfind.ads: Add new runtime library entities and names for PolyORB
37928 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
37929 instead, which has the same behaviour here since we never pass it a
37932 * link.c (run_path_option, Solaris case): Use -Wl, as for other
37935 * Makefile.in: adjust object file lists for gnatlink and gnatmake
37936 to account for new dependency upon Interfaces.C.Strings + link.o
37937 For x86 FreeBSD, use 86numaux.
37939 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
37940 from Mlib.Tgt to Mlib.
37942 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
37943 target-independent.
37945 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
37946 target-specific versions of this subprogram, now implemented as a
37947 target-independent function in Mlib.
37949 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
37950 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
37951 (Linker_Library_Path_Option): Remove target-specific versions of this
37952 subprogram, now implemented as a target-independent function in Mlib.
37954 * atree.adb: (Allocate_Initialize_Node): New subprogram.
37955 Factors out node table slots allocation.
37956 (Fix_Parents): New subprogram.
37957 Encapsulate the pattern of fixing up parent pointers for syntactic
37958 children of a rewritten node.
37959 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
37960 (Rewrite): Use New_Copy when creating saved copy of original node.
37961 (Replace): Use Copy_Node to copy nodes.
37963 2004-04-19 Javier Miranda <miranda@gnat.com>
37965 * sprint.adb (Sprint_Node_Actual): Give support to the new
37966 Access_To_Subprogram node available in Access_Definition nodes. In
37967 addition, give support to the AI-231 node fields: null-exclusion,
37968 all-present, constant-present.
37970 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
37972 * sinfo.ads, sinfo.adb:
37973 New field Access_To_Subprogram_Definition in Access_Definition nodes
37975 * sem_ch6.adb (Process_Formals): Move here the code that creates and
37976 decorates internal subtype declaration corresponding to the
37977 null-excluding formal. This code was previously in Set_Actual_Subtypes.
37978 In addition, carry out some code cleanup on this code. In case of
37979 access to protected subprogram call
37980 Replace_Anonymous_Access_To_Protected_Subprogram.
37981 (Set_Actual_Subtypes): Code cleanup.
37983 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
37984 Find_Type in case of anonymous access renamings. Add warning in case of
37985 null-excluding attribute used in anonymous access renaming.
37987 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37990 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
37992 (Access_Definition): In case of anonymous access to subprograms call
37993 the corresponding semantic routine to decorate the node.
37994 (Access_Subprogram_Declaration): Addition of some comments indicating
37995 some code that probably should be added here. Detected by comparison
37996 with the access_definition subprogram.
37997 (Analyze_Component_Declaration): In case of access to protected
37998 subprogram call Replace_Anonymous_Access_To_Protected.
37999 (Array_Type_Declaration): In case of access to protected subprogram call
38000 Replace_Anonymous_Access_To_Protected_Subprogram.
38001 (Process_Discriminants): In case of access to protected subprogram call
38002 Replace_Anonymous_Access_To_Protected_Subprogram.
38004 * par.adb (P_Access_Definition): New formal that indicates if the
38005 null-exclusion part was present.
38006 (P_Access_Type_Definition): New formal that indicates if the caller has
38007 already parsed the null-excluding part.
38009 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
38010 (P_Identifier_Declarations): Code cleanup and give support to renamings
38011 of anonymous access to subprogram types.
38012 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
38013 (P_Array_Type_Definition): Give support to AI-254.
38014 (P_Component_Items): Give support to AI-254.
38015 (P_Access_Definition): New formal that indicates if the header was
38016 already parsed by the caller.
38017 (P_Access_Type_Definition): New formal that indicates if the caller has
38018 already parsed the null-excluding part.
38020 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
38021 call to P_Access_Definition.
38023 2004-04-19 Geert Bosch <bosch@gnat.com>
38025 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
38026 the delicate semantics of floating-point to integer conversion.
38027 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
38029 * eval_fat.adb (Machine_Mantissa): Moved to spec.
38030 (Machine_Radix): New function.
38032 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
38034 (Machine_Radix): New function also for use in conversion checks.
38036 2004-04-19 Ed Schonberg <schonberg@gnat.com>
38038 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
38040 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
38041 to decorate the access-to-protected subprogram and the equivalent type.
38043 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
38044 to anonymous access to subprogram types.
38046 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
38047 constant-folding, for legality checks in contexts that require an RM
38050 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
38051 temporary but stack checking is not enabled, increment serial number
38052 to so that symbol generation is consistent with and without stack
38055 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
38056 independent on whether stack checking is enabled, caller must check
38057 the corresponding flag.
38059 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
38061 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
38062 parent if it has discriminants.
38063 (Build_Derived_Private_Type): Constructed full view does
38064 not come from source.
38065 (Process_Discriminants): Default discriminants on a tagged type are
38066 legal if this is the internal completion of a private untagged
38069 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
38070 no constraint checks, because it corresponds to an existing object.
38072 * sem_prag.adb (Process_Convention): Pragma applies
38073 only to subprograms in the same declarative part, i.e. the same unit,
38074 not the same scope.
38076 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
38077 ignore type mismatch on a numeric conversion if expression comes from
38080 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
38082 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
38083 Homonym_Number parameter, add processing for Source_Location parameter
38085 (Check_Eliminated): Remove the check for homonym numbers, add the check
38086 for source location traces.
38088 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
38089 with Arg_Source_Location corresponding to the changes in the format of
38092 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
38093 Eliminate pragma corresponding to the changes in the format of the
38094 pragma: Homonym_Number is replaced with Source_Location, two ways of
38095 distinguishing homonyms are mutially-exclusive.
38097 2004-04-19 Joel Brobecker <brobecker@gnat.com>
38099 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
38101 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
38102 No_Dollar_In_Label, no longer necessary, as it is always True.
38103 (Strip_Suffixes): Likewise.
38105 2004-04-19 Gary Dismukes <dismukes@gnat.com>
38107 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
38108 modulus for compatibility with size clause on targets with 16-bit
38111 * layout.adb (Discrimify): In the case of private types, set Vtyp to
38112 full type to fix type mismatches on calls to size functions for
38113 discriminant-dependent array components.
38115 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
38117 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
38120 2004-04-19 Pascal Obry <obry@gnat.com>
38122 * mdll-utl.adb (Locate): New version is idempotent.
38124 2004-04-17 Laurent Guerby <laurent@guerby.net>
38126 PR ada/14988 (partial)
38127 * impunit.adb: Fix typo.
38129 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
38131 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
38132 and install-rts-cert targets. Remove all gnatlib and gnattools
38133 targets and all other rts-* targets (moved to libada). Remove (now)
38134 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
38135 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
38137 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38139 * trans.c (tree_transform): Shortcut returning error_mark_node for
38140 statements in annotate_only_mode.
38141 (tree_transform, case N_Label, case N_Return_Statement,
38142 N_Goto_Statement): Make statement tree instead of generating code.
38143 (tree_transform, case N_Assignment_Statement): No longer check
38144 type_annotate_only.
38145 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
38147 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
38149 (gnat_to_gnu): Collect any RTL generated and deal with it.
38150 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
38151 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
38152 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
38154 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
38156 * ada-tree.def (EXPR_STMT): Fix typo in name.
38157 (BLOCK_STMT, IF_STMT): New nodes.
38159 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
38160 LABEL_STMT_FIRST_IN_EH): New macros.
38161 (RETURN_STMT_EXPR): Likewise.
38163 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
38164 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
38166 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
38168 * atree.ads: Correct documentation on extended nodes.
38170 * link.c: Set run_path_option for FreeBSD.
38172 2004-04-08 Vincent Celier <celier@gnat.com>
38174 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
38175 one of the ALI file, do not link with DEC lib.
38177 * par.adb Remove the last two characters ("%s" or "%b") when checking
38178 if a language defined unit may be recompiled.
38180 2004-04-08 Ed Schonberg <schonberg@gnat.com>
38182 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
38183 removal of abstract operation leaves no possible interpretation for
38186 * sem_eval.adb (Eval_Qualified_Expression): Use
38187 Set_Raises_Constraint_Error on node when needed, so that it does not
38188 get optimized away by subsequent optimizations.
38190 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
38191 operands even when they are not wrapped in a type conversion.
38193 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
38195 * sem_prag.adb (Set_Exported): Warn about making static as result of
38196 export only when the export is coming from source. This may be not
38197 be true e.g. on VMS where we expand export pragmas for exception codes
38198 together with imported or exported exceptions, and we don't want the
38199 user to be warned about something he didn't write.
38201 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
38203 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
38204 duplication between normal entities and those declared as renamings.
38205 No functional change.
38207 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
38208 inline functions returning an unconstrained result.
38210 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
38212 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
38213 conform to what other front-ends do.
38215 2004-04-08 Doug Rupp <rupp@gnat.com>
38217 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
38220 2004-04-06 Pascal Obry <obry@gnat.com>
38222 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
38224 * osint.adb (Program_Name): Do not look past a directory separator.
38226 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
38228 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
38230 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
38231 requirement for preserving a copy of the original assignment node.
38233 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
38235 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
38237 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
38240 2004-04-06 Ed Schonberg <schonberg@gnat.com>
38242 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
38243 operator calls in functional notation, and apply
38244 Universal_Interpretation to operands, not to their type.
38246 2004-04-06 Robert Dewar <dewar@gnat.com>
38248 * 5wdirval.adb: Minor reformatting
38250 2004-04-06 Ed Falis <falis@gnat.com>
38252 * gnat_rm.texi: Improve a reference to the GCC manual
38254 2004-04-05 Vincent Celier <celier@gnat.com>
38256 * adaint.h, adaint.c: Add function __gnat_named_file_length
38258 * impunit.adb: Add Ada.Directories to the list
38260 * Makefile.in: Add VMS and Windows versions of
38261 Ada.Directories.Validity package body.
38263 * Makefile.rtl: Add a-direct and a-dirval
38265 * mlib-tgt.ads: Minor comment update.
38267 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
38268 a-direct.ads, a-direct.adb: New files.
38270 2004-04-05 Vincent Celier <celier@gnat.com>
38273 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
38274 just to the compiler.
38276 2004-04-05 Robert Dewar <dewar@gnat.com>
38278 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
38279 returned string is 1.
38281 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
38283 * eval_fat.ads: Minor reformatting
38285 * g-curexc.ads: Document that lower bound of returned string values
38288 * gnatlink.adb: Add ??? comment for previous change
38289 (need to document why this is VMS specific)
38291 * s-stoele.ads: Minor reformatting
38293 * tbuild.ads: Minor reformatting throughout (new function specs)
38295 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
38298 * scng.adb: Minor reformatting
38300 2004-04-05 Geert Bosch <bosch@gnat.com>
38302 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
38303 (Leading_Part): Still perform truncation to machine number if the
38304 specified radix_digits is greater or equal to machine_mantissa.
38306 2004-04-05 Javier Miranda <miranda@gnat.com>
38308 * par-ch3.adb: Complete documentation of previous change
38309 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
38310 (aliased must appear before constant).
38312 * par-ch4.adb: Complete documentation of previous change.
38314 * par-ch6.adb: Complete documentation of previous change.
38316 * sinfo.ads: Fix typo in commment.
38318 2004-04-05 Ed Schonberg <schonberg@gnat.com>
38320 * sem_ch3.adb (Inherit_Components): If derived type is private and has
38321 stored discriminants, use its discriminants to constrain parent type,
38322 as is done for non-private derived record types.
38324 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
38325 Ada 2005 AI-310: an abstract non-dispatching operation is not a
38326 candidate interpretation in an overloaded call.
38328 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
38329 expression is Null and target type is not an access type (e.g. a
38330 non-private address type).
38332 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
38334 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
38335 statement whose right-hand side is an inlined call, save a copy of the
38336 original assignment subtree to preserve enough consistency for
38337 Analyze_Assignment to proceed.
38339 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
38340 complete assignment subtree which is now unnecessary, as the expansion
38341 of inlined call has been improved to preserve a consistent assignment
38342 tree. Note_Possible_Modification must be called only
38343 after checks have been applied, or else unnecessary checks will
38346 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
38347 of explicit dereferences that do not Come_From_Source:
38348 - be selective on cases where we must go back to the dereferenced
38349 pointer (an assignment to an implicit dereference must not be
38350 recorded as modifying the pointer);
38351 - do not rely on Original_Node being present (Analyze_Assignment
38352 calls Note_Possible_Modification on a copied tree).
38354 * sem_warn.adb (Check_References): When an unset reference to a pointer
38355 that is never assigned is encountered, prefer '<pointer> may be null'
38356 warning over '<pointer> is never assigned a value'.
38358 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
38360 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
38363 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
38365 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
38366 libexc. We currently don't reference anything in this library and
38367 linking it in triggers linker warnings we don't want to see.
38369 * init.c: Update comments.
38371 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38373 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
38374 * utils.c (create_field_decl): Likewise.
38375 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
38377 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
38379 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
38380 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
38381 Add info directory entry and category.
38383 2004-04-02 Jan Hubicka <jh@suse.cz>
38385 * utils.c: Include function.h
38386 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
38388 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38391 * Make-lang.in: Clean up generation of documentation
38393 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
38395 * xgnatug.adb: Removed, replaced by xgnatugn.adb
38397 * xgnatugn.adb: Replaces xgnatug.adb
38399 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
38401 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
38403 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38404 gnat_ug_wnt.texi: Removed.
38406 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38408 * utils2.c: Update copyright notice.
38410 2004-04-01 Robert Dewar <dewar@gnat.com>
38412 * checks.adb: Minor reformatting throughout
38413 Note that prev checkin added RM reference to alignment warning
38415 2004-04-01 Ed Schonberg <schonberg@gnat.com>
38417 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
38418 non-static when building aggregate for bit-packed array.
38420 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
38421 function call that is itself the actual in a procedure call, build
38424 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
38425 a string literal, create a temporary for it, constant folding only
38426 handles scalars here.
38428 2004-04-01 Vincent Celier <celier@gnat.com>
38430 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
38431 Error_Msg_SP): New empty procedures to instantiate the Scanner.
38432 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
38434 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
38435 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
38436 and get the checksum.
38438 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
38440 Increase the Marking_Label at the end of the Multiple_Main_Loop,
38441 instead of at the beginning.
38443 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
38445 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
38448 * osint.ads (Multi_Unit_Index_Character): New Character global variable
38450 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
38453 * par.adb: Remove test on file name to detect language defined units.
38454 Add test on unit name, after parsing, to detect language defined units
38455 that are not compiled with -gnatg (except System.RPC and its children)
38457 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
38458 following units without style checking.
38460 * switch-c.adb: Change -gnatC to -gnateI
38462 * usage.adb: Document new switch -gnateInnn
38464 * scng.adb (Accumulate_Token_Checksum): New procedure
38465 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
38466 word or literal number.
38467 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
38470 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
38473 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
38474 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
38475 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
38476 5vtpopde.adb: Add missing 'constant' keywords.
38478 2004-04-01 Javier Miranda <miranda@gnat.com>
38480 * par-ch4.adb: (P_Allocator): Code cleanup
38482 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
38485 * sinfo.ads: Complete documentation of previous change
38487 2004-04-01 Pascal Obry <obry@gnat.com>
38489 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
38490 only on VMS. This special handling was done because an old GNU/ld bug
38491 on Windows which has been fixed.
38493 2004-04-01 GNAT Script <nobody@gnat.com>
38495 * Make-lang.in: Makefile automatically updated
38497 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38499 * decl.c (gnat_to_gnu_entity, make_type_from_size):
38500 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
38501 * trans.c (tree_transform, convert_with_check): Likewise.
38502 * utils.c (gnat_signed_or_unsigned_type): Likewise.
38503 (build_vms_descriptor, unchecked_convert): Likewise.
38504 * utils2.c (nonbinary_modular_operation): Likewise.
38506 2004-03-29 Javier Miranda <miranda@gnat.com>
38508 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
38509 (Install_Null_Excluding_Check): Local subprogram that determines whether
38510 an access node requires a runtime access check and if so inserts the
38511 appropriate run-time check.
38512 (Apply_Access_Check): Call Install_Null_Excluding check if required
38513 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
38515 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
38517 * einfo.ads: Fix typo in comment
38519 * exp_ch3.adb (Build_Assignment): Generate conversion to the
38520 null-excluding type to force the corresponding run-time check.
38521 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
38522 type to force the corresponding run-time check.
38524 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
38525 the null-excluding type to force the corresponding run-time check.
38527 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
38528 case of access types unless they have the null-excluding attribute.
38530 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
38533 * exp_util.ads: Fix typo in comment
38535 * par.adb (P_Null_Exclusion): New subprogram
38536 (P_Subtype_Indication): New formal that indicates if the null-excluding
38537 part has been scanned-out and it was present
38539 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
38541 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
38542 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
38543 type to force the corresponding run-time check
38544 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
38546 (Resolve_Array_Aggregate): Carry out some static checks
38547 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
38549 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
38550 attribute must be set only if specified by means of the null-excluding
38551 part. In addition, we must also propagate the access-constant attribute
38553 (Access_Subprogram_Declaration, Access_Type_Declaration,
38554 Analyze_Component_Declaration, Analyze_Object_Declaration,
38555 Array_Type_Declaration, Process_Discriminants,
38556 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
38557 and carry out some static checks.
38558 (Build_Derived_Access_Type): Set the null-excluding attribute
38559 (Derived_Type_Declaration, Process_Subtype): Carry out some static
38562 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
38564 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
38566 * sem_ch6.adb (Process_Formals): Carry out some static checks.
38567 (Set_Actual_Subtypes): Generate null-excluding subtype if the
38568 null-excluding part was present; it is not required to be done here in
38569 case of anonymous access types.
38570 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
38573 * sem_res.adb (Resolve_Actuals): Carry out some static check
38574 (Resolve_Null): Allow null in anonymous access
38576 * sinfo.adb: New subprogram Null_Exclusion_Present
38577 All_Present and Constant_Present available on access_definition nodes
38579 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
38580 object_declaration, derived_type_definition, component_definition,
38581 discriminant_specification, access_to_object_definition,
38582 access_function_definition, allocator, access_procedure_definition,
38583 access_definition, parameter_specification, All_Present and
38584 Constant_Present flags available on access_definition nodes.
38586 2004-03-29 Robert Dewar <dewar@gnat.com>
38588 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
38589 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
38590 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
38591 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
38592 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
38593 sem_prag.adb: Updates to handle multiple units/file
38595 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
38597 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
38598 sem_util.adb: Minor reformatting
38600 * sem_ch12.adb: Add comment for previous change
38602 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
38604 * osint.adb (Executable_Prefix): Set Exec_Name to the current
38605 executable name when not initialized. Otherwise, use its current value.
38607 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
38608 initialize it to another executable name than the current one. This
38609 allows to configure paths for an executable name (gnatmake) different
38610 from the current one (gnatdist).
38612 2004-03-29 Ed Schonberg <schonberg@gnat.com>
38614 * exp_ch6.adb (Expand_Call): A call to a function declared in the
38615 current unit cannot be inlined if it appears in the body of a withed
38616 unit, to avoid order of elaboration problems in gigi.
38618 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
38619 information for protected (wrapper) operation as well, to simplify gdb
38622 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
38623 protected body, indicate that the entity for the generated spec comes
38624 from source, to ensure that references are properly generated for it.
38625 (Build_Body_To_Inline): Do not inline a function that returns a
38628 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
38629 apply convention to homonyms that are declared explicitly.
38631 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
38632 that renames an equality operator and the operands are overloaded,
38633 resolve them with the declared formal types, before rewriting as an
38636 2004-03-29 GNAT Script <nobody@gnat.com>
38638 * Make-lang.in: Makefile automatically updated
38640 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
38642 * memtrack.adb: Log realloc calls, which are treated as free followed
38645 2004-03-25 Vincent Celier <celier@gnat.com>
38647 * prj-makr.adb (Process_Directories): Detect when a file contains
38648 several units. Do not include such files in the config pragmas or
38649 in the naming scheme.
38651 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
38652 Resolve links only when not in Trusted_Mode.
38653 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
38654 Do not resolve links for the display names.
38656 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
38657 resolve links when computing the display names.
38659 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
38661 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
38662 attribute reference does not denote a subtype, it can be any
38663 expression that has a classwide type, potentially after an implicit
38664 dereference. In particular, the prefix can be a view conversion for
38665 a classwide type (for which Is_Object_Reference holds), but it can
38666 also be a value conversion for an access-to-classwide type. In the
38667 latter case, there is an implicit dereference, and the original node
38668 for the prefix does not verify Is_Object_Reference.
38670 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
38671 conversion of a discriminant-dependent component of a mutable object
38674 2004-03-25 Ed Schonberg <schonberg@gnat.com>
38676 * freeze.adb (Freeze_Entity): When an inherited subprogram is
38677 inherited, has convention C, and has unconstrained array parameters,
38678 place the corresponding warning on the derived type declaration rather
38679 than the original subprogram.
38681 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
38682 indication on renaming declaration, if formal has a box and actual
38685 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
38686 determine whether to generate an implicit or explicit reference to
38687 the renamed entity.
38689 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
38690 subprogram renaming comes from a defaulted formal subprogram in an
38693 2004-03-25 Gary Dismukes <dismukes@gnat.com>
38695 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
38696 value expressions to ensure that calls within a component definition
38697 will be checked (since those are evaluated during the record type's
38700 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
38702 * s-tpobop.adb: Code clean up:
38703 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
38705 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
38707 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
38709 * Makefile.in: Clean up in the ravenscar run time.
38711 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38713 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
38714 of No_Strict_Aliasing to build_pointer_type_for_mode.
38715 * utils.c (update_pointer_to): Walk pointer and ref chains.
38717 2004-03-22 Cyrille Comar <comar@act-europe.fr>
38719 * ali.ads: Fix Comment about Dynamic_Elab.
38721 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
38722 Has_RACW, Is_Generic, etc.)
38723 (Output_Object, Gnatls): Take into account ALI files not attached to
38726 2004-03-22 Vincent Celier <celier@gnat.com>
38728 * gprep.adb: Change all String_Access to Name_Id
38729 (Is_ASCII_Letter): new function
38730 (Double_File_Name_Buffer): New procedure
38731 (Preprocess_Infile_Name): New procedure
38732 (Process_Files): New procedure
38733 (Gnatprep): Check if output and input are existing directories.
38734 Call Process_Files to do the real job.
38736 2004-03-22 Robert Dewar <dewar@gnat.com>
38738 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
38739 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
38741 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
38743 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
38744 case when the source contains only comments.
38746 2004-03-22 Ed Schonberg <schonberg@gnat.com>
38748 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
38749 declaration for a child subprogram body that acts as a spec, indicate
38750 that the entity in the declaration needs debugging information.
38752 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
38753 full view if the subtype is created for a constrained record component;
38754 gigi has enough information to construct the record, and there is no
38755 place in the tree for the declaration.
38757 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
38758 serial number for the dummy body that is built for analysis, to avoid
38759 inconsistencies in the generation of internal names when compiling
38762 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
38764 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
38767 2004-03-22 GNAT Script <nobody@gnat.com>
38769 * Make-lang.in: Makefile automatically updated
38771 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38773 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38774 * trans.c (tree_transform, emit_index_check): Likewise.
38775 * utils.c (build_template): Likewise.
38776 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
38777 (maybe_unconstrained_array, unchecked_convert): Likewise.
38778 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
38779 (build_unary_op): Likewise.
38780 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38781 (fill_vms_descriptor): Likewise.
38782 (build_call_alloc_dealloc): Likewise.
38784 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
38786 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
38789 * gnat_ug.texi: Add info directory category and entry.
38790 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38791 gnat_ug_wnt.texi: Regenerate.
38793 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
38795 * ada-tree.h: Update copyright notice.
38796 Minor reformatting.
38798 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
38800 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
38801 as regular exception objects and not as mere integers representing the
38802 condition code. The latter approach required some dynamics to mask off
38803 severity bits, which did not fit well into the GCC table based model.
38804 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
38805 exception data objects. We don't it and it would conflict with the other
38806 external symbol we have to generate for such exceptions.
38808 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
38809 the special code for VMS exceptions, since these are now represented
38810 as regular exceptions objects.
38812 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38814 * decl.c (debug_no_type_hash): Remove.
38815 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
38816 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
38818 2004-03-19 Laurent Guerby <laurent@guerby.net>
38820 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
38821 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
38823 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38825 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
38826 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
38827 (TYPE_RM_SIZE_INT): Directly use type.values.
38828 (TREE_LOOP_ID): Clean up check.
38829 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
38830 TYPE_VALUES, not TYPE_FIELDS.
38831 * trans.c (convert_with_check): Delay access of bounds of basetype
38832 until sure is numeric.
38834 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
38836 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
38839 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
38840 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
38841 Specific.Set instead of direct call to e.g pthread_setspecific.
38843 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
38845 * adaint.c: Update comments.
38847 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
38848 GNATLIB_SHARED for FreeBSD.
38850 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
38852 * init.c [VxWorks]: Do not fix the stack size for the environment task.
38853 When needed (stack checking) the stack size is retrieved
38854 from the VxWorks kernel.
38856 * Makefile.in: Flag -nostdinc is required when building the run time
38857 for avoiding looking for files in the base compiler.
38858 Add the VxWorks specific version of the package body for
38859 System.Stack_checking.Operations (5zstchop.adb).
38861 * Make-lang.in: Add the object file for
38862 System.Stack_Checking.Operations.
38864 * Makefile.rtl: Add object file for the package
38865 System.Stack_Checking.Operations.
38867 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
38869 * s-stache.ads, s-stache.adb: Move the operations related to stack
38870 checking from this package to package System.Stack_Checking.Operations.
38871 This way, stack checking operations are only linked in the final
38872 executable when using the -fstack-check flag.
38874 2004-03-18 Doug Rupp <rupp@gnat.com>
38876 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
38879 * 5qsystem.ads, 5xcrtl.ads: New files.
38881 2004-03-18 Vincent Celier <celier@gnat.com>
38883 * prj.adb (Reset): Reset hash table Files_Htable
38885 * prj-env.adb (Source_Paths, Object_Paths): New tables.
38886 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
38887 the procedures Add_To_Path_File.
38888 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
38889 making sure that each directory is present only once and, for object
38890 dirs, when a directory already present is added, the duplicate is
38891 removed and the directory is always put as the last in the table.
38892 Write the path files at the end of these accumulations.
38894 * prj-nmsc.adb (Record_Source): Add source file name in hash table
38895 Files_Htable for all sources.
38897 * prj-proc.adb (Process): Remove restrictions between not directly
38898 related extending projects.
38900 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
38902 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
38903 (Find_Sources): Minor speed optimization.
38905 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
38906 parameter Trusted_Mode.
38908 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
38910 * scn.adb (Determine_License): Take into account a degenerated case
38911 when the source contains only comments.
38913 2004-03-18 Ed Schonberg <schonberg@gnat.com>
38915 * sem_warn.adb (Check_References): For a warning on a selected
38916 component that does not come from source, locate an uninitialized
38917 component of the record type to produce a more precise error message.
38919 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
38921 * 3zsoccon.ads: Fix multicast options.
38923 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
38926 2004-03-15 Robert Dewar <dewar@gnat.com>
38928 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
38929 pragma used for a private type.
38931 * lib-xref.adb (Generate_Reference): Do not generate warning if
38932 reference is in a different unit from the pragma Unreferenced.
38934 * 5vtpopde.adb: Minor reformatting
38935 Fix casing of To_Task_ID
38937 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
38938 flag if we have an unchecked conversion to an access type in the same
38941 2004-03-15 Geert Bosch <bosch@gnat.com>
38943 * a-ngcoty.adb (Modulus): In alternate formula for large real or
38944 imaginary parts, use Double precision throughout.
38946 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
38947 we want to be able to compile run-time with -gnata for testing, but
38948 this may also be instantiated in user code that is compiled with -gnata.
38950 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
38952 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
38953 codes. Having a separate type for this is useful to enforce consistency
38954 throughout the various run-time units.
38955 (Exception_Data): Use Exception_Code for Import_Code.
38957 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
38958 Natural and Integer in various places.
38959 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
38960 with the severity bits masked off.
38961 (Register_VMS_Exception): Handle the additional exception data pointer
38964 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
38965 component, now reflected by an exported accessor.
38966 (is_handled_by): New routine to compute whether the propagated
38967 occurrence matches some handler choice specification. Extracted out of
38968 get_action_description_for, and expanded to take care of the VMS
38970 (get_action_description_for): Use is_handled_by instead of an explicit
38971 complex condition to decide if the current choice at hand catches the
38972 propagated occurrence.
38974 * raise.h (Exception_Code): New type for C.
38976 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
38977 System.Standard_Library.Exception_Code, to allow references from the
38978 pragma import/export expander.
38980 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
38981 New accessors to allow easy access to GNAT exception data
38983 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
38984 redundant Handled_By_Others component, helper for the personality
38985 routine which will now be able to call the appropriate exception data
38988 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
38989 component of Standard_Exception_Type to be the closest possible to
38990 Exception_Code in System.Standard_Library, that we cannot get at this
38991 point. Expand a ??? comment to notify that this type node should
38992 probably be rewritten later on.
38994 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
38995 registration call to include a pointer to the exception object in the
38998 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
38999 instead of int and explicit bitmasks.
39001 2004-03-15 Vincent Celier <celier@gnat.com>
39003 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
39004 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
39006 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
39007 longer needed now that it is in the spec of
39008 System.Tasking.Task_Attributes.
39010 * adaint.h, adaint.c: (__gnat_create_output_file): New function
39012 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
39014 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
39016 * make.adb (Gnatmake): Do not check the executable suffix; it is being
39017 taken care of in Scan_Make_Arg.
39018 (Scan_Make_Arg): Add the executable suffix only if the argument
39019 following -o, in canonical case, does not end with the executable
39020 suffix. When in verbose mode and executable file name does not end
39021 with executable suffix, output the executable name, in canonical case.
39023 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
39024 to avoid warnings when instantiating Ada.Task_Attributes.
39027 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
39028 in the correct order.
39030 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
39031 redirect standard output and error to a file for the invocation of the
39032 compiler, then read the file.
39034 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
39035 directory, instead of the Value.
39036 (Find_Source_Dirs): Remove useless code & comments.
39038 2004-03-15 Ed Schonberg <schonberg@gnat.com>
39040 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
39041 tagged type is inherited, and the parent operation is not frozen yet,
39042 force generation of a freeze node for the inherited operation, so the
39043 corresponding dispatch entry is properly initialized.
39044 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
39045 when looking for user-defined equality operation.
39047 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
39048 boolean when locating primitive equality of tagged component.
39050 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
39051 bit-aligned field and the right-hand side a string literal, introduce
39052 a temporary before expanding assignment into a loop.
39054 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
39055 priority in full, to ensure that any expanded subepxressions of it are
39056 elaborated in the scope of the init_proc.
39058 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
39059 after object declaration, skipping over code that may have been
39060 generated for validity checks.
39062 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
39063 discriminants, ignore the known discriminants of its full view, if
39064 any, to check legality.
39066 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
39067 component if type has unknown discriminants.
39068 (Analyze_Private_Extension_Declaration): Discriminant constraint is
39069 null if type has unknown discriminants.
39071 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
39072 for end label when present.
39074 * s-fileio.adb (Open): When called with a C_Stream, use given name for
39075 temporary file, rather than an empty string.
39077 2004-03-15 Ed Falis <falis@gnat.com>
39079 * s-thread.adb: Removed, no longer used.
39081 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39083 * decl.c (target.h): Now include.
39084 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
39085 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
39086 (validate_size): For POINTER_TYPE, get smallest size permitted on
39089 * fe.h: Sort Einfo decls and add Set_Mechanism.
39091 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
39092 (ada/decl.o): Depends on target.h.
39094 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
39095 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
39097 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
39099 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
39101 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
39102 Insert_Dereference_Action when rewriting an implicit dereference into
39103 an explicit one, this will be taken care of during expansion of the
39104 explicit dereference.
39105 (Expand_N_Slice): Same. Always do the rewriting, even for the case
39106 of non-packed slices, since the dereference action generated by
39107 expansion of the explicit dereference is needed in any case.
39108 (Expand_N_Selected_Component): When rewriting an implicit dereference,
39109 analyze and resolve the rewritten explicit dereference so it is seen
39111 (Insert_Dereference_Action): This procedure is now called only for the
39112 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
39113 dereferences that do not come from source (including explicit
39114 dereferences resulting from rewriting implicit ones), but do not
39115 recursively insert a check for the dereference nodes contained within
39117 (Insert_Dereference_Action): Clarify and correct comment.
39119 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
39122 Move language detection to the top level.
39123 * config-lang.in: Build by default.
39125 2004-03-05 Robert Dewar <dewar@gnat.com>
39127 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
39129 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
39130 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
39131 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
39132 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
39133 unchecked conversion to spec to avoid warnings.
39135 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
39138 * 7stpopsp.adb: Correct casing in To_Task_ID call
39140 * a-strsea.ads, a-strsea.adb: Minor reformatting
39142 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
39144 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
39145 Adjust Max_Msg_Length to be clearly large enough.
39147 * fe.h: Define In_Same_Source_Unit
39149 * osint.adb: Add pragma Warnings Off to suppress warnings
39150 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
39153 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
39155 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
39157 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
39159 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
39161 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
39163 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
39164 node. We now do generate them for gcc back end.
39166 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
39169 * sinput-c.adb: Fix bad name in header.
39170 Add pragma Warnings Off to suppress aliasing warning.
39172 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
39174 * snames.h, snames.ads, snames.adb: Add entry for pragma
39175 No_Strict_Aliasing.
39177 2004-03-05 Vincent Celier <celier@gnat.com>
39179 * prj-com.ads: Add hash table Files_Htable to check when a file name
39180 is already a source of another project.
39182 * prj-nmsc.adb (Record_Source): Before recording a new source, check
39183 if its file name is not already a source of another project. Report an
39186 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
39187 source file name, call gnatpp with all the sources of the main project.
39189 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
39192 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
39193 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
39194 /RUNTIME_SYSTEM=, converted to --RTS=
39195 /NOTABS, converted to -notabs
39197 2004-03-05 Pascal Obry <obry@gnat.com>
39199 * make.adb: Minor reformatting.
39201 2004-03-05 Ed Schonberg <schonberg@gnat.com>
39203 Part of implemention of AI-262.
39204 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
39206 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
39209 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
39210 when component type is a partially constrained class-wide subtype.
39211 (Constrain_Discriminated_Type): If parent type has unknown
39212 discriminants, a constraint is illegal, even if full view has
39214 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
39215 with unknown discriminants whose full view is a discriminated record.
39217 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
39218 flag, to handle properly derivations of tagged types with unknown
39220 (Analyze_Package_Spec, Analyze_Package_Body): Install
39221 Private_With_Clauses before analyzing private part or body.
39223 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
39224 Has_Discriminants can be true for a given type (documentation).
39226 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
39228 * s-restri.ads: Fix license (GPL->GMGPL).
39230 * s-tassta.adb: Minor reformatting.
39232 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39233 by calls to Exit_One_ATC_Level, since additional clean up is performed
39236 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39237 by calls to Exit_One_ATC_Level, since additional clean up is performed
39240 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39242 * trans.c: Reflect GCC changes to fix bootstrap problem.
39243 Add warning for suspicious aliasing unchecked conversion.
39245 2004-03-05 GNAT Script <nobody@gnat.com>
39247 * Make-lang.in: Makefile automatically updated
39249 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
39251 * ali.adb (Read_Instantiation_Instance): Do not modify the
39252 current_file_num when reading information about instantiations, since
39253 this corrupts files in later references.
39255 2004-03-02 Vincent Celier <celier@gnat.com>
39257 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
39258 before checking if it is read-only.
39260 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
39261 of SRC_DIRS and eliminate duplicates.
39263 * gprcmd.adb: Replace command "path" with command "path_sep" to return
39264 the path separator.
39265 (Usage): Document path_sep
39267 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
39268 C++ compiler. No need for a script.
39269 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
39270 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
39273 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
39274 where there are Ada sources.
39275 (Set_Ada_Paths): Only add to the include path the source dirs of project
39277 (Add_To_Path): Add the Display_Values of the directories, not their
39280 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
39283 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
39285 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
39286 Value is canonicalized.
39287 (Language_Independent_Check): Do not copy Value to Display_Value when
39288 canonicalizing Value.
39290 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
39291 path to find limited with cycles.
39292 (Parse_Single_Project): Use canonical cased path to find the end of a
39295 2004-03-02 Ed Schonberg <schonberg@gnat.com>
39297 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
39298 and not a child unit.
39300 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
39301 appear in a with_clause.
39303 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
39304 only happen in type_annotate mode, do not try to elaborate it.
39306 * exp_util.adb (Force_Evaluation): If expression is a selected
39307 component on the left of an assignment, use a renaming rather than a
39308 temporary to remove side effects.
39310 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
39311 inlined instance body, which is analyzed before the end of the
39314 2004-03-02 Robert Dewar <dewar@gnat.com>
39316 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
39317 sem_ch4.adb: Use new feature for substitution of keywords in VMS
39319 * errout.ads, errout.adb: Implement new circuit for substitution of
39322 * sem_case.adb (Analyze_Choices): Place message properly when case is
39323 a subtype reference rather than an explicit range.
39325 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
39327 2004-03-02 Doug Rupp <rupp@gnat.com>
39329 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
39331 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
39333 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
39335 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39337 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
39340 2004-02-25 Robert Dewar <dewar@gnat.com>
39342 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
39343 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
39344 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
39345 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
39346 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
39347 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
39348 the defining instance of the type to avoid aliasing problems.
39349 Fix copyright header. Fix bad comments in package header.
39351 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
39353 2004-02-25 Ed Schonberg <schonberg@gnat.com>
39355 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
39356 rewritten as references when aliased through an address clause.
39358 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
39359 whether call can be interpreted as an indirect call to the result of a
39360 parameterless function call returning an access subprogram.
39362 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
39365 * exp_ch7.adb (Make_Clean): Remove generation of calls to
39366 Unlock[_Entries], since this is now done by Service_Entries directly.
39368 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
39370 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
39371 Requeue_Call for better code readability. Change spec and update calls:
39372 PO_Service_Entries now unlock the PO on exit.
39373 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
39374 PO_Service_Entries.
39376 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
39378 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
39380 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
39382 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
39383 protected subprogram call and analyzing the result of such expanding
39384 in case when the called protected subprogram is eliminated.
39386 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
39389 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
39391 * Makefile.in: Clean ups.
39393 2004-02-23 Ed Schonberg <schonberg@gnat.com>
39395 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
39396 protected operations if original subprogram is flagged as eliminated.
39397 (Expand_N_Subprogram_Body): For a protected operation, create
39398 discriminals for next operation before checking whether the operation
39401 * exp_ch9.adb (Expand_N_Protected_Body,
39402 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
39403 for internal protected operations if the original subprogram is
39406 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
39407 declared in a single protected object.
39409 2004-02-23 Vincent Celier <celier@gnat.com>
39411 * prj-attr.adb: Make attribute Builder'Executable an associative array,
39412 case insensitive if file names are case insensitive, instead of a
39413 standard associative array.
39415 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
39416 them as case insensitive on platforms where the file names are case
39419 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
39420 project file has already been parsed that canonical path are compared.
39422 2004-02-23 Robert Dewar <dewar@gnat.com>
39424 * sinput-c.ads: Correct bad unit title in header
39426 * freeze.adb: Minor reformatting
39428 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39430 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
39431 nonaddressable COMPONENT_REF that is removing padding that we are
39432 taking the address of, take the address of the padded record instead
39433 if item is variable size.
39435 2004-02-20 Robert Dewar <dewar@gnat.com>
39437 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
39439 2004-02-20 Ed Schonberg <schonberg@gnat.com>
39441 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
39442 itype references for the constrained designated type of a component
39443 whose base type is already frozen.
39445 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
39447 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
39448 avoid GCC warnings.
39450 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
39452 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
39453 identifier for a phantom package that rewrites the formal package
39454 declaration with a box. The Add semantic decorations for the defining
39455 identifier from the original node (that represents the formal package).
39457 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
39459 * Make-lang.in (ada/stamp-sdefault): Use the top level
39462 2004-02-19 Richard Henderson <rth@redhat.com>
39464 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
39466 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
39468 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
39469 Scan_ALI can be used for multiple ALI files without reinitializing
39472 2004-02-18 Robert Dewar <dewar@gnat.com>
39474 * debug.adb: Minor reformatting.
39476 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39478 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
39479 to zero if there is an address clause.
39481 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
39483 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
39485 2004-02-18 Gary Dismukes <dismukes@gnat.com>
39487 * layout.adb (Layout_Component_List): Revise generation of call to
39488 discriminant-checking function to pass selections of all of the type's
39489 discriminants rather than just the variant-controlling discriminant.
39491 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
39493 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
39494 fail in the current setup and triggers spurious system error messages.
39495 Pretend it occurred and failed instead.
39497 2004-02-18 Vincent Celier <celier@gnat.com>
39499 * bld.adb: Mark FLDFLAGS as saved
39500 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
39501 it is not the root project. Put each directory to be
39502 extended between double quotes to prevent it to be expanded on Windows.
39503 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
39504 the project file. Set them back to their initial values if they have not
39505 been set in the project file.
39507 * gprcmd.adb: (Gprdebug, Debug): New global variables
39508 (Display_Command): New procedure
39509 (Usage): Document new command "linkopts"
39510 Call Display_Command when env var GPRDEBUG has the value "TRUE"
39511 Implement new command "linkopts"
39512 Remove quotes that may be around arguments for "extend"
39513 Always call Normalize_Pathname with arguments formatted for the platform
39515 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
39516 Change @echo to @$(display) in target clean to be able to clean silently
39518 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
39520 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
39523 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
39524 = Extending_All when current project is an extending all project.
39526 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
39527 set to True only for LINK command, after Unix switch -o.
39528 (Process_Arguments): Set Output_File_Expected to True for LINK command
39529 after Unix switch -o. When Output_File_Expected is True, never add an
39530 extension to a file name.
39532 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
39533 option file name, only to the --for-linker= switch.
39534 (Option_File_Name): If option file name do not end with ".opt", append
39537 2004-02-18 GNAT Script <nobody@gnat.com>
39539 * Make-lang.in: Makefile automatically updated
39541 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
39543 * Make-lang.in (stamp-sdefault): Do not depend on
39546 2004-02-12 Zack Weinberg <zack@codesourcery.com>
39548 * config-lang.in: Disable Ada by default until probe logic for
39549 a bootstrap Ada compiler can be moved to the top level configure
39552 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
39554 * decl.c (components_to_record): Don't claim that the internal fields
39555 we make to hold the variant parts are semantically addressable, because
39558 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
39559 adjust the comment describing the modular type form when we can use it.
39560 (Install_PAT): Account for the Esiz renaming.
39562 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
39563 sc_onstack context indication before raising the exception to which
39564 the signal is mapped. Allows better handling of later signals possibly
39565 triggered by the resumed user code if the exception is handled.
39567 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
39569 * 5zinit.adb: Removed, no longer used.
39571 2004-02-12 Robert Dewar <dewar@gnat.com>
39573 * ali.adb: Remove separating space between parameters on R line. Makes
39574 format consistent with format used by the binder for Set_Globals call.
39576 * atree.ads, atree.adb: Minor reformatting (new function header format)
39578 * bindgen.adb: Add Run-Time Globals documentation section containing
39579 detailed documentation of the globals passed from the binder file to
39582 * gnatls.adb: Minor reformatting
39584 * init.c (__gnat_set_globals): Add note pointing to documentation in
39587 * lib-writ.ads, lib-writ.adb: Remove separating space between
39588 parameters on R line.
39589 Makes format consistent with format used by the binder for Set_Globals
39592 * osint.ads: Add 2004 to copyright notice
39595 * snames.ads: Correct capitalization of FIFO_Within_Priorities
39596 Noticed during code reading, documentation issue only
39598 * usage.adb: Remove junk line for obsolete C switch
39599 Noticed during code reading
39601 2004-02-12 Vincent Celier <celier@gnat.com>
39603 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
39604 extend for each directory, so that multiple /** directories are
39605 extended individually.
39606 (Recursive_Process): Set the default for LANGUAGES to ada
39608 * gprcmd.adb: Define new command "ignore", to do nothing.
39609 Implement new comment "path".
39611 * Makefile.generic: Suppress output when SILENT is set
39612 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
39613 used, so that the correct compiler is invoked.
39614 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
39615 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
39617 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
39619 * Makefile.in: Clean ups and remove obsolete targets.
39621 2004-02-12 Ed Schonberg <schonberg@gnat.com>
39623 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
39624 predicate declared in exp_util.
39626 * exp_util.adb: Add comments.
39628 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
39629 visibility before compiling context of the subunit.
39631 * sem_res.adb (Check_Parameterless_Call): If the context expects a
39632 value but the name is a procedure, do not attempt to analyze as a call,
39633 in order to obtain more telling diagnostics.
39635 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
39636 'Access on parameterless function calls.
39637 (Normalize_Actuals): For a parameterless function call with missing
39638 actuals, defer diagnostic until resolution of enclosing call.
39640 * sem_util.adb (Wrong_Type): If the context type is an access to
39641 subprogram and the expression is a procedure name, suggest a missing
39644 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
39645 Nathanael Nerode <neroden@gcc.gnu.org>
39649 Merge with libada-branch:
39650 * config-lang.in: Build libada only when ada is built.
39652 2004-02-09 Ed Schonberg <schonberg@gnat.com>
39654 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
39655 for a tagged type, verify that both formals have the same type.
39657 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
39658 temporary when the formal is an in-parameter and the actual a possibly
39661 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
39662 when expansion is disabled, to ensure proper name capture with
39663 overloaded literals. Condition can be of any boolean type, resolve
39666 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
39667 renaming is for a formal subprogram with a default operator name, and
39668 there is a usable operator that is visible at the point of
39671 2004-02-09 Robert Dewar <dewar@gnat.com>
39673 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
39674 rewrite to ignore errors in ali files, intended to allow tools downward
39675 compatibility with new versions of ali files.
39677 * ali.ads: Add new parameter Ignore_Errors
39679 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
39680 duplicating the error message giving the file with restrictions.
39682 * debug.adb: Add debug flag I for gnatbind
39684 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
39685 operators for the case where the operator is a defining operator.
39687 * exp_ch3.adb: Minor reformatting (new function spec format).
39689 * exp_ch4.adb: Add comment for previous change, and make minor
39690 adjustment to loop to always check for improper loop termination.
39691 Minor reformatting throughout (new function spec format).
39693 * gnatbind.adb: Implement -di debug flag for gnatbind
39695 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
39697 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
39699 * lib-load.adb: Fix bad assertion.
39700 Found by testing and code reading.
39701 Minor reformatting.
39703 * lib-load.ads: Minor reformatting.
39705 * lib-writ.adb: There is only one R line now.
39707 * lib-writ.ads: Add documentation on making downward compatible changes
39708 to ali files so old tools work with new ali files.
39709 There is only one R line now.
39710 Add documentation on format incompatibilities (with special GPS note)
39712 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
39714 * par-load.adb: Minor reformatting
39716 * sem_ch8.adb: Fix to error message from last update
39717 Minor reformatting and restructuring of code from last update
39719 * par-prag.adb, snames.adb, snames.ads, snames.h,
39720 sem_prag.adb: Implement pragma Profile.
39722 * stylesw.adb: Implement -gnatyN switch to turn off all style check
39725 * usage.adb: Add line for -gnatyN switch
39727 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
39729 2004-02-09 Albert Lee <lee@gnat.com>
39731 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
39733 2004-02-09 Ed Schonberg <schonberg@gnat.com>
39735 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
39738 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
39739 is nested in an instance that is not frozen yet, to avoid
39740 order-of-elaboration problems in gigi.
39742 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
39743 body the attribute is legal.
39745 2004-02-09 Robert Dewar <dewar@gnat.com>
39747 * s-rident.ads: Minor comment correction
39749 * targparm.adb: Remove dependence on uintp completely. There was
39750 always a bug in Make in that it called Targparm before initializing
39751 the Uint package. The old code appeared to get away with this, but
39752 the new code did not! This caused an assertion error in gnatmake.
39754 * targparm.ads: Fix bad comment, restriction pragmas with parameters
39755 are indeed fully supported.
39757 2004-02-06 Alan Modra <amodra@bigpond.net.au>
39759 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
39761 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
39763 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
39764 with targetm.calls.promote_prototypes.
39766 2004-02-04 Robert Dewar <dewar@gnat.com>
39768 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
39769 ali.ads, gprcmd.adb: Minor reformatting
39771 * bindgen.adb: Output restrictions string for new style restrictions
39774 * impunit.adb: Add s-rident.ads (System.Rident) and
39775 s-restri (System.Restrictions)
39777 * lib-writ.adb: Fix bug in writing restrictions string (last few
39780 * s-restri.ads, s-restri.adb: Change name Restrictions to
39781 Run_Time_Restrictions to avoid conflict with package name.
39782 Add circuit to read and acquire run time restrictions.
39784 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
39786 * restrict.ads, restrict.adb: Use the new restriction
39787 No_Task_Attributes_Package instead of the old No_Task_Attributes.
39789 * sem_prag.adb: No_Task_Attributes is a synonym of
39790 No_Task_Attributes_Package.
39792 * snames.ads, snames.adb: New entry for proper handling of
39793 No_Task_Attributes.
39795 * s-rident.ads: Adding restriction No_Task_Attributes_Package
39796 (AI-00249) that supersedes the GNAT specific restriction
39797 No_Task_Attributes.
39799 2004-02-04 Ed Schonberg <schonberg@gnat.com>
39802 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
39803 body, an identifier may be wrapped in an unchecked conversion.
39805 2004-02-04 Vincent Celier <celier@gnat.com>
39807 * lib-writ.ads: Comment update for the W lines
39809 * bld.adb: (Expression): An empty string list is static
39811 * fname-uf.adb: Minor comment update
39813 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
39815 * gnatbind.adb: Initialize Cumulative_Restrictions with the
39816 restrictions on the target.
39818 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
39820 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
39823 2004-02-02 Arnaud Charlet <charlet@gnat.com>
39825 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
39827 2004-02-02 Vincent Celier <celier@gnat.com>
39829 * gprcmd.adb (Check_Args): If condition is false, print the invoked
39830 comment before the usage.
39831 Gprcmd: Fail when command is not recognized.
39832 (Usage): Document command "prefix"
39834 * g-md5.adb (Digest): Process last block.
39835 (Update): Do not process last block. Store remaining characters and
39838 * g-md5.ads (Update): Document that several call to update are
39839 equivalent to one call with the concatenated string.
39840 (Context): Add fields to allow new Update behaviour.
39842 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
39843 defaulted to False.
39844 When May_Fail is True and no existing file can be found, return No_File.
39846 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
39849 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
39850 spec file name instead on the W line.
39852 2004-02-02 Robert Dewar <dewar@gnat.com>
39854 * ali.adb: Read and acquire info from new format restrictions lines
39856 * bcheck.adb: Add circuits for checking restrictions with parameters
39858 * bindgen.adb: Output dummy restrictions data
39859 To be changed later
39861 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39862 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
39863 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
39864 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
39865 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
39867 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
39868 the warning message on access to possibly uninitialized variable S)
39869 Minor changes for new restrictions handling.
39871 * gnatbind.adb: Minor reformatting
39872 Minor changes for new restrictions handling
39873 Move circuit for -r processing here from bcheck (cleaner)
39875 * gnatcmd.adb, gnatlink.adb: Minor reformatting
39877 * lib-writ.adb: Output new format restrictions lines
39879 * lib-writ.ads: Document new R format lines for new restrictions
39882 * s-restri.ads/adb: New files
39884 * Makefile.rtl: Add entry for s-restri.ads/adb
39886 * par-ch3.adb: Fix bad error messages starting with upper case letter
39889 * restrict.adb: Major rewrite throughout for new restrictions handling
39890 Major point is to handle restrictions with parameters
39892 * restrict.ads: Major changes in interface to handle restrictions with
39893 parameters. Also generally simplifies setting of restrictions.
39895 * snames.ads/adb: New entry for proper handling of No_Requeue
39897 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
39898 restriction counting.
39899 Other minor changes for new restrictions handling
39901 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
39902 Restriction_Warnings now allows full parameter notation
39903 Major rewrite of Restrictions for new restrictions handling
39905 2004-02-02 Javier Miranda <miranda@gnat.com>
39907 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
39908 syntax rule for object renaming declarations.
39909 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
39910 component definitions.
39912 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
39914 (Array_Type_Declaration): Give support to access components. In addition
39915 it was also modified to reflect the name of the object in anonymous
39916 array types. The old code did not take into account that it is possible
39917 to have an unconstrained anonymous array with an initial value.
39918 (Check_Or_Process_Discriminants): Allow access discriminant in
39920 (Process_Discriminants): Allow access discriminant in non-limited types
39921 Initialize the new Access_Definition field in N_Object_Renaming_Decl
39922 node. Change Ada0Y to Ada 0Y in comments
39924 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
39925 equality operators.
39926 Change Ada0Y to Ada 0Y in comments
39928 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
39929 renamings Change Ada0Y to Ada 0Y in comments
39931 * sem_type.adb (Find_Unique_Type): Give support to the equality
39932 operators for universal access types
39933 Change Ada0Y to Ada 0Y in comments
39935 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
39937 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
39939 (N_Object_Renaming_Declaration): Addition of Access_Definition field
39940 Change Ada0Y to Ada 0Y in comments
39942 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
39943 component definition and object renaming nodes
39944 Change Ada0Y to Ada 0Y in comments
39946 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
39948 * restrict.adb: Use the new restriction identifier
39949 No_Requeue_Statements instead of the old No_Requeue for defining the
39950 restricted profile.
39952 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
39953 No_Requeue_Statements.
39955 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
39956 that supersedes the GNAT specific restriction No_Requeue. The later is
39957 kept for backward compatibility.
39959 2004-02-02 Ed Schonberg <schonberg@gnat.com>
39961 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
39962 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
39963 pragma and fix incorrect ones.
39965 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
39966 warning if the pragma is redundant.
39968 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
39970 * 5staprop.adb: Add missing 'constant' keywords.
39972 * Makefile.in: use consistent value for SYMLIB on
39973 platforms where libaddr2line is supported.
39975 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39977 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
39980 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
39982 * init.c (__gnat_install_handler): Setup an alternate stack for signal
39983 handlers in the environment thread. This allows proper propagation of
39984 an exception on stack overflows in this thread even when the builtin
39985 ABI stack-checking scheme is used without support for a stack reserve
39988 * utils.c (create_field_decl): Augment the head comment about bitfield
39989 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
39990 here, because the former is not accurate enough at this point.
39991 Let finish_record_type decide instead.
39992 Don't make a bitfield if the field is to be addressable.
39993 Always set a size for the field if the record is packed, to ensure the
39994 checks for bitfield creation are triggered.
39995 (finish_record_type): During last pass over the fields, clear
39996 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
39997 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
39998 from DECL_BIT_FIELD.
40000 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
40002 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
40003 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
40004 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
40006 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40008 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
40010 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
40011 (ZCX_By_Default): Likewise.
40012 (Front_End_ZCX_Support): Likewise.
40014 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
40015 (Initialize_Lock): Mark Level unreferenced.
40016 (Sleep): Mark Reason unreferenced.
40017 (Timed_Sleep): Likewise.
40018 (Wakeup): Likewise.
40019 (Exit_Task): Use Result.
40020 (Check_No_Locks): Mark Self_ID unreferenced.
40022 * 5gtasinf.adb (New_Sproc): Make Attr constant.
40023 (Bound_Thread_Attributes): Make Sproc constant.
40024 (New_Bound_Thread_Attributes): Likewise.
40026 2004-01-26 Ed Schonberg <schonberg@gnat.com>
40028 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
40029 one-dimensional array an slice assignments, when component type is
40032 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
40033 component type is controlled, and control_actions are in effect, use
40034 TSS procedure rather than generating inline code.
40036 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
40037 arrays with controlled components.
40039 2004-01-26 Vincent Celier <celier@gnat.com>
40041 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
40042 command line for the non VMS case.
40044 * gnatlink.adb (Process_Binder_File): When building object file, if
40045 GNU linker is used, put all object paths between quotes, to prevent ld
40046 error when there are unusual characters (such as '!') in the paths.
40048 * Makefile.generic: When there are sources in Ada and the main is in
40049 C/C++, invoke gnatmake with -B, instead of -z.
40051 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
40052 from VMS_Conversion.
40053 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
40054 specification of argument file on the command line.
40056 2004-01-26 Bernard Banner <banner@gnat.com>
40058 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
40060 2004-01-26 Ed Schonberg <schonberg@gnat.com>
40062 * snames.adb: Update copyright notice.
40063 Add info on slice assignment for controlled arrays.
40065 2004-01-23 Robert Dewar <dewar@gnat.com>
40067 * exp_aggr.adb: Minor reformatting
40069 * exp_ch9.adb: Minor code clean up
40071 Fix bad character in comment
40074 * targparm.adb (Get_Target_Parameters): Give clean abort error on
40075 unexpected end of file, along with more detailed message.
40077 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40079 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
40082 * decl.c (copy_alias_set): New function.
40083 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
40085 2004-01-23 Doug Rupp <rupp@gnat.com>
40087 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
40088 lib$${file} in case subsequent character is not a separator.
40090 2004-01-23 Vincent Celier <celier@gnat.com>
40092 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
40093 when the GCC version is at least 3.
40095 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
40096 Remove all "Opt.", to prepare for opt split
40098 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
40099 Extends_All. Set to True when the project parsed is an extending all
40100 project. Fails for importing an extending all project only when the
40101 imported project is an extending all project.
40102 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
40103 depending on the value of Extends_All returned.
40105 * prj-proc.adb (Process): Check that no project shares its object
40106 directory with a project that extends it, directly or indirectly,
40107 including a virtual project.
40108 Check that no project extended by another project shares its object
40109 directory with another also extended project.
40111 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
40112 Kind = N_With_Clause
40114 * prj-tree.ads: Minor reformatting
40115 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
40117 2004-01-23 Ed Schonberg <schonberg@gnat.com>
40119 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
40120 applies to a type with an incomplete view, use full view in Name of
40121 clause, for consistency with uses of Get_Attribute_Definition_Clause.
40123 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
40125 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
40126 SCHED_RR, since other values are not supported by this policy.
40127 (Initialize): Move initialization of mutex attribute to package
40128 elaboration, to prevent early access to this variable.
40130 * Makefile.in: Remove mention of Makefile.adalib, unused.
40132 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40133 1ssecsta.ads: Removed, unused.
40135 2004-01-21 Javier Miranda <miranda@gnat.com>
40137 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
40138 entity if already built in the current scope.
40140 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
40141 reminder in internal scopes. Required for nested limited aggregates.
40143 2004-01-21 Doug Rupp <rupp@gnat.com>
40145 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
40146 VMS. Replace all occurences of libgnat- and libgnarl- with
40147 libgnat$(hyphen) and libgnarl$(hyphen).
40148 Fixed shared library build problem on VMS.
40150 2004-01-21 Robert Dewar <dewar@gnat.com>
40152 * mlib-prj.adb: Minor reformatting
40154 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
40156 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
40157 'constant' keywords for declaration of pointers that are not modified.
40159 * exp_pakd.adb: Fix English in comment.
40161 2004-01-21 Ed Schonberg <schonberg@gnat.com>
40164 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
40165 copy all attributes of the parent, including the foreign language
40168 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
40171 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
40172 for 'delay until' statement.
40174 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
40176 * Make-lang.in: Replace $(docdir) with doc.
40177 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
40178 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
40179 to use consistent MAKEINFO rule.
40180 (ada.man, ada.srcman): Dummy entry.
40181 (ADA_INFOFILES): Define.
40182 (ada.info, ada.srcinfo): New rules.
40184 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
40186 * utils.c: Update copyright notice, missed in previous change.
40188 2004-01-19 Vincent Celier <celier@gnat.com>
40190 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
40191 args if Bind is True. Set First_ALI, if not already done.
40192 (Build_Library): For Stand Alone Libraries, extract from one ALI file
40193 an eventual --RTS switch, for gnatbind, and all backend switches +
40194 --RTS, for linking.
40196 2004-01-19 Robert Dewar <dewar@gnat.com>
40198 * sem_attr.adb, memtrack.adb: Minor reformatting
40200 2004-01-19 Ed Schonberg <schonberg@gnat.com>
40202 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
40203 that rename enumeration literals. This is properly done in sem_eval.
40205 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
40206 to functions that rename enumeration literals.
40208 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
40209 functions that rename enumeration literals.
40211 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
40213 * Make-lang.in (utils.o): Depend on target.h.
40214 * utils.c: Include target.h.
40215 (process_attributes): Use targetm.have_named_sections instead
40216 of ASM_OUTPUT_SECTION_NAME.
40218 2004-01-16 Andreas Jaeger <aj@suse.de>
40220 * Makefile.in: Add $(DESTDIR).
40222 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
40224 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
40225 also when not defining if a Size clause applies. That information is
40228 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
40230 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
40231 symbolic links for the shared gnat run time when needed.
40233 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
40235 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
40236 for writing, and terminate with an error message if not.
40238 2004-01-15 Ed Schonberg <schonberg@gnat.com>
40240 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
40241 warning on an access to subprogram in an instance, when the target
40242 type is declared in the same generic unit.
40243 (Eval_Attribute): If 'access is known to fail accessibility check,
40244 rewrite as a raise statement.
40246 2004-01-15 GNAT Script <nobody@gnat.com>
40248 * Make-lang.in: Makefile automatically updated
40250 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
40252 * Make-lang.in (ada.srcextra): Dummy entry.
40254 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
40256 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
40258 2004-01-13 Ed Schonberg <schonberg@gnat.com>
40260 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
40261 components that are initialized with aggregates.
40263 2004-01-13 Vincent Celier <celier@gnat.com>
40265 * gnatlink.adb (Process_Binder_File): To find directory of shared
40266 libgcc, if "gcc-lib" is not a subdirectory, look for the last
40267 subdirectory "lib" in the path of the shared libgnat or libgnarl.
40269 * make.adb (Gnatmake): If GCC version is at least 3, link with
40270 -shared-libgcc, when there is at least one shared library project.
40272 * opt.ads (GCC_Version): New integer constant.
40274 * adaint.c (get_gcc_version): New function.
40276 2004-01-13 Robert Dewar <dewar@gnat.com>
40278 * sem_dist.adb, sem_res.adb, sem_util.adb,
40279 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
40280 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
40282 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
40284 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
40285 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
40288 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
40290 * misc.c: Remove trailing spaces.
40291 Update copyright notice missed in previous change.
40294 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
40297 * Makefile.generic: Update copyright.
40298 Add license notice.
40300 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
40301 of prefix/share/make.
40303 * Makefile.prolog: Update copyright.
40304 Add license notice.
40306 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
40308 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
40309 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
40310 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
40313 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
40316 2004-01-12 Javier Miranda <miranda@gnat.com>
40318 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
40319 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
40320 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
40321 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
40322 Component_Definition node.
40324 2004-01-12 Ed Falis <falis@gnat.com>
40326 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
40328 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
40330 * link.c: Change default libgnat kind to STATIC for FreeBSD.
40332 2004-01-12 Bernard Banner <banner@gnat.com>
40334 * Makefile.in: map 86numaux to a-numaux for x86_64
40336 2004-01-12 Ed Schonberg <schonberg@gnat.com>
40338 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
40339 generated to rename a generic actual, go to the actual itself, the
40340 subtype is not a user-visible entity.
40342 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
40343 part is a private subtype, reset the visibility of its full view, if
40344 any, to be consistent.
40347 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
40348 to use a generic package G as a formal package for another generic
40351 2004-01-12 Robert Dewar <dewar@gnat.com>
40353 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
40355 * usage.adb: Remove mention of obsolete -gnatwb switch
40356 Noticed during code reading
40358 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
40360 * 1ssecsta.adb: Minor changes for -gnatwa warnings
40362 2004-01-12 GNAT Script <nobody@gnat.com>
40364 * Make-lang.in: Makefile automatically updated
40366 2004-01-09 Mark Mitchell <mark@codesourcery.com>
40368 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
40370 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40372 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
40374 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
40376 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
40377 Update comment and copyright date.
40378 * stamp-xgnatug: Delete.
40380 2004-01-05 Robert Dewar <dewar@gnat.com>
40382 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
40383 be modified by the binder generated main program if the -D switch is
40386 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
40387 imported functions (since now we expect this to be done for imported
40390 * 5vtaprop.adb: Add several ??? for sections requiring more comments
40391 Minor reformatting throughout
40393 * 5zinit.adb: Minor reformatting
40394 Add 2004 to copyright date
40395 Minor changes to avoid -gnatwa warnings
40396 Correct some instances of using OR instead of OR ELSE (noted while
40397 doing reformatting)
40399 * sprint.adb: Minor updates to avoid -gnatwa warnings
40401 * s-secsta.ads, s-secsta.adb:
40402 (SS_Get_Max): New function to obtain high water mark for ss stack
40403 Default_Secondary_Stack is not a constant since it may be modified by
40404 the binder generated main program if the -D switch is used.
40406 * switch-b.adb: New -Dnnn switch for binder
40409 Make -gnatg imply all warnings currently in -gnatwa
40411 * vms_conv.adb: Minor reformatting
40412 Add 2004 to copyright notice
40413 Add 2004 to printed copyright notice
40415 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
40416 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
40417 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
40418 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
40419 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
40420 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
40421 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
40422 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
40423 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
40424 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
40425 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
40426 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
40427 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
40428 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
40429 checks.adb, clean.adb, cstand.adb, einfo.ads,
40430 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
40431 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
40432 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
40433 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
40434 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
40435 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
40436 Minor reformatting and code clean ups.
40437 Minor changes to prevent -gnatwa warnings
40439 * ali.adb: Minor reformatting and cleanup of code
40440 Acquire new SS indication of secondary stack use from ali files
40442 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
40443 (since now we expect this to be done for imported functions)
40445 * bindgen.adb: Generate call to modify default secondary stack size if
40448 * bindusg.adb: Add line for new -D switch
40450 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
40451 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
40452 Add circuitry for both records and arrays to avoid gigi
40453 processing if the type involved has non-bit-aligned components
40455 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
40456 N_String_Literal node always references an E_String_Literal_Subtype
40457 entity. This may not be true in the future.
40458 (Possible_Bit_Aligned_Component): Move processing of
40459 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
40461 * exp_ch6.adb (Expand_Thread_Body): Pick up
40462 Default_Secondary_Stack_Size as variable so that we get value modified
40463 by possible -Dnnn binder parameter.
40465 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
40466 (Type_May_Have_Bit_Aligned_Components): New function.
40468 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
40469 (Type_May_Have_Bit_Aligned_Components): New function.
40471 * fe.h: (Set_Identifier_Casing): Fix prototype.
40472 Add declaration for Sem_Elim.Eliminate_Error_Msg.
40473 Minor reformatting.
40475 * freeze.adb (Freeze_Entity): Add RM reference to error message about
40476 importing constant atomic/volatile objects.
40477 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
40478 unless explicit Pure_Function pragma given, to avoid insidious bug of
40479 call to non-pure imported function getting eliminated.
40481 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
40482 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
40483 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
40484 Add 2004 to printed copyright notice
40486 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
40489 * Makefile.rtl: Add entry for g-sestin.o
40490 g-sestin.ads: New file.
40492 * mdll.adb: Minor changes to avoid -gnatwa warnings
40494 * mlib-tgt.adb: Minor reformatting
40496 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
40497 New switch Sec_Stack_Used (GNAT, GNATBIND)
40498 Make Default_Secondary_Stack_Size a variable instead of a constant,
40499 so that it can be modified by the new -Dnnn bind switch.
40501 * rtsfind.adb (Load_Fail): Give full error message in configurable
40502 run-time mode if all_errors mode is set. This was not done in the case
40503 of a file not found, which was an oversight.
40504 Note if secondary stack unit is used by compiler.
40506 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
40507 ineffective elaborate all pragmas on non-visible packages (this
40508 happened when a renamed subprogram was called). Now the elaborate all
40509 always goes on the package containing the renaming rather than the one
40510 containing the renamed subprogram.
40512 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
40513 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
40515 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
40516 has an Etype that references an E_String_Literal.
40517 (Eval_String_Literal): Avoid assumption that N_String_Literal node
40518 always references an E_String_Literal_Subtype entity. This may not
40519 be true in the future.
40521 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
40524 * sem_res.adb (Resolve): Specialize msg for function name used in proc
40527 2004-01-05 Ed Falis <falis@gnat.com>
40529 * g-debuti.adb: Replaced direct boolean operator with short-circuit
40532 2004-01-05 Vincent Celier <celier@gnat.com>
40534 * bld.adb: Minor comment updates
40535 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
40538 * make.adb (Gnatmake): Special process for files to compile/check when
40539 -B is specified. Fail when there are only foreign mains in attribute
40540 Main of the project file and -B is not specified. Do not skip bind/link
40541 steps when -B is specified.
40543 * makeusg.adb: Document new switch -B
40545 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
40547 * switch-m.adb: (Scan_Make_Switches): Process -B switch
40549 * vms_data.ads: Add new GNAT PRETTY qualifier
40550 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
40552 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40554 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
40557 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
40558 Set_Identifier_Casing.
40560 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
40561 has size that overflows.
40563 2004-01-05 Gary Dismukes <dismukes@gnat.com>
40565 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
40566 -gnatwa warning on static condition.
40568 2004-01-05 Doug Rupp <rupp@gnat.com>
40570 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
40572 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
40574 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
40575 all attributes, including read-only attribute.
40577 2004-01-05 Pascal Obry <obry@gnat.com>
40579 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
40580 library naming scheme.
40582 * mlib-prj.adb (Build_Library): Generate different names for the static
40583 or dynamic version of the GNAT runtime. This is needed to support the
40584 new shared library naming scheme.
40585 (Process_Binder_File): Add detection of shared library in binder file
40586 based on the new naming scheme.
40588 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
40589 scheme for the shared runtime libraries.
40592 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
40594 (install-gnatlib): Do not create symlinks for shared libraries.
40595 (gnatlib-shared-default): Idem.
40596 (gnatlib-shared-dual-win32): New target. Not used for now as the
40597 auto-import feature does not support arrays/records.
40598 (gnatlib-shared-win32): Do not create copy for the shared libraries.
40599 (gnatlib-shared-vms): Fix shared runtime libraries names.
40601 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
40602 dependent runtime shared library name.
40604 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
40606 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
40609 2004-01-05 Ed Schonberg <schonberg@gnat.com>
40611 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
40612 protected objects when allocator has a subtype indication, not a
40613 qualified expression. Note that qualified expressions may have to be
40614 checked when limited aggregates are implemented.
40616 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
40617 pure, emit warning.
40618 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
40619 subprogram is imported, remove warning.
40621 2004-01-05 Geert Bosch <bosch@gnat.com>
40623 * s-poosiz.adb: Update copyright notice.
40624 (Allocate): Use Task_Lock to protect against concurrent access.
40625 (Deallocate): Likewise.
40627 2004-01-05 Joel Brobecker <brobecker@gnat.com>
40629 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
40632 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
40634 * gnat_ug.texi: Force a CVS commit by updating copyright.
40635 * gnat_ug_vxw.texi: Regenerate.
40636 * gnat_ug_wnt.texi: Regenerate.
40637 * gnat_ug_vms.texi: Regenerate.
40638 * gnat_ug_unx.texi: Regenerate.
40640 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
40642 * trans.c: Remove uses of "register" specifier in
40643 declarations of local variables.
40645 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
40647 * stamp-xgnatug: New stamp file.
40648 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
40649 (ada/doctools/xgnatug): Add $(build_exeext).
40650 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
40651 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
40653 2003-12-17 Ed Falis <falis@gnat.com>
40655 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
40658 * a-exextr.adb: Add context clause for
40659 Ada.Exceptions.Last_Chance_Handler.
40661 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
40663 * cstand.adb (Create_Standard): Change the way how the declaration of
40664 the Duration type is created (making it the same way as it is for all
40665 the other standard types).
40667 2003-12-17 Robert Dewar <dewar@gnat.com>
40669 * s-crtl.ads: Fix header format
40670 Change Pure to Preelaborate
40672 2003-12-17 Ed Schonberg <schonberg@gnat.com>
40674 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
40675 the expression type only if it is declared in the current unit.
40677 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
40678 are universal and already analyzed, as can occur in constrained
40679 subcomponents that depend on discriminants, when one constraint is a
40682 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
40683 type Any_Fixed is legal as the argument of a conversion, if only one
40684 fixed-point type is in context.
40686 2003-12-17 GNAT Script <nobody@gnat.com>
40688 * Make-lang.in: Makefile automatically updated
40690 2003-12-15 Robert Dewar <dewar@gnat.com>
40692 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
40695 2003-12-15 Vincent Celier <celier@gnat.com>
40697 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
40698 (Gnatchop): Do not set failure status when reporting the number of
40701 2003-12-15 Doug Rupp <rupp@gnat.com>
40703 * s-ctrl.ads: New file.
40705 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
40707 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
40708 (GNATBIND_OBJS): Add ada/s-crtl.o.
40710 * Makefile.in [VMS]: Clean up ifeq rules.
40712 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
40713 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
40714 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
40715 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
40716 s-tasdeb.adb: Update copyright.
40717 Import System.CRTL.
40718 Make minor modifications to use System.CRTL declared functions instead
40719 of importing locally.
40721 2003-12-15 GNAT Script <nobody@gnat.com>
40723 * Make-lang.in: Makefile automatically updated
40725 2003-12-11 Ed Falis <falis@gnat.com>
40727 * 5zinit.adb: Clean up.
40729 * 5zintman.adb (Notify_Exception): replaced case statement with a call
40730 to __gnat_map_signal, imported from init.c to support
40731 signal -> exception mappings that depend on the vxWorks version.
40734 Created and exported __gnat_map_signal to support signal -> exception
40735 mapping that is dependent on the VxWorks version.
40736 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
40738 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
40740 * 5wosinte.ads: Link with -mthreads switch.
40742 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
40744 * init.c (__gnat_install_handler [NetBSD]): Set
40745 __gnat_handler_installed, as done on all other platforms.
40746 Remove duplicated code.
40748 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
40750 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
40752 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
40754 * sinfo.ads: Fix inconsistent example code in comment.
40756 2003-12-11 Robert Dewar <dewar@gnat.com>
40758 * a-tiinau.adb: Add a couple of comments
40760 * sem_ch3.adb: Minor reformatting
40763 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
40764 Minor reformatting throughout
40766 2003-12-11 Ed Schonberg <schonberg@gnat.com>
40768 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
40769 bounds of a loop, create a separate block in order to generate proper
40770 cleanup actions to prevent memory leaks.
40772 * sem_res.adb (Resolve_Call): After a call to
40773 Establish_Transient_Scope, the call may be rewritten and relocated, in
40774 which case no further processing is needed.
40776 * sem_util.adb: (Wrong_Type): Refine previous fix.
40777 Fixes ACATS regressions.
40780 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
40783 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
40785 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
40786 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
40789 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
40792 2003-12-08 Robert Dewar <dewar@gnat.com>
40794 * 7sintman.adb: Minor reformatting
40796 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
40797 standard linker options to get standard libraries linked. We now plan
40798 to provide dummy versions of these libraries to match the appropriate
40799 configurable run-time (e.g. if a library is not needed at all, provide
40800 a dummy empty library).
40802 * targparm.ads: Configurable_Run_Time mode no longer affects linker
40803 options (-L parameters and standard libraries). What we plan to do is
40804 to provide dummy libraries where the libraries are not required.
40806 * gnatbind.adb: Minor comment improvement
40808 2003-12-08 Javier Miranda <miranda@gnat.com>
40810 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
40811 aggregate in the parent. Otherwise constants with limited aggregates
40812 are not supported. Add new formal to pass the component type (Ctype).
40813 It is required to call the corresponding IP subprogram in case of
40814 default initialized components.
40815 (Gen_Assign): In case of default-initialized component, generate a
40816 call to the IP subprogram associated with the component.
40817 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
40818 of aggregate with default initialized components.
40819 (Has_Default_Init_Comps): Improve implementation to recursively check
40820 all the present expressions.
40822 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
40823 to indicate that the initialization call corresponds to a
40824 default-initialized component of an aggregate.
40825 In case of default initialized aggregate with tasks this parameter is
40826 used to generate a null string (this is just a workaround that must be
40827 improved later). In case of discriminants, this parameter is used to
40828 generate a selected component node that gives access to the discriminant
40831 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
40832 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
40833 allocated aggregates with default-initialized components.
40835 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
40836 the box notation is used in positional aggregates.
40838 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
40840 * lib.ads: Fix typo in comment
40842 2003-12-08 Vincent Celier <celier@gnat.com>
40844 * prj.adb (Project_Empty): New component Unkept_Comments
40845 (Scan): Remove procedure; moved to Prj.Err.
40847 * prj.ads (Project_Data): New Boolean component Unkept_Comments
40848 (Scan): Remove procedure; moved to Prj.Err.
40850 * prj-dect.adb: Manage comments for the different declarations.
40852 * prj-part.adb (With_Record): New component Node
40853 (Parse): New Boolean parameter Store_Comments, defaulted to False.
40854 Set the scanner to return ends of line and comments as tokens, if
40855 Store_Comments is True.
40856 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
40857 comments are associated with these nodes. Store the node IDs in the
40859 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
40861 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
40862 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
40863 current project. Call Tree.Restore afterwards. Set the various nodes
40864 for comment storage (Next_End, End_Of_Line, Previous_Line,
40867 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
40868 defaulted to False.
40870 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
40871 to False. When Truncated is True, truncate the string, never go to the
40873 (Write_End_Of_Line_Comment): New procedure
40874 (Print): Process comments for nodes N_With_Clause,
40875 N_Package_Declaration, N_String_Type_Declaration,
40876 N_Attribute_Declaration, N_Typed_Variable_Declaration,
40877 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
40878 Process nodes N_Comment.
40880 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
40881 without comments and there are some comments, set the flag
40882 Unkept_Comments to True.
40883 (Scan): If there are comments, set the flag Unkept_Comments to True and
40884 clear the comments.
40885 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
40886 (Next_End_Nodes: New table
40887 (Comment_Zones_Of): New function
40888 (Scan): New procedure; moved from Prj. Accumulate comments in the
40889 Comments table and set end of line comments, comments after, after end
40891 (Add_Comments): New procedure
40892 (Save, Restore, Seset_State): New procedures
40893 (There_Are_Unkept_Comments): New function
40894 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
40895 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
40897 (First_Comment_After, First_Comment_After_End): New functions
40898 (First_Comment_Before, First_Comment_Before_End): New functions
40899 (Next_Comment): New function
40900 (End_Of_Line_Comment, Follows_Empty_Line,
40901 Is_Followed_By_Empty_Line): New functions
40902 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
40903 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
40904 (Set_Next_Comment): New procedure
40905 (Default_Project_Node): Associate comment before if the node can store
40908 * scans.ads (Token_Type): New enumeration value Tok_Comment
40909 (Comment_Id): New global variable
40911 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
40912 defaulted to False.
40913 (Scan): Store position of start of comment. If comments are tokens, set
40914 Comment_Id and set Token to Tok_Comment when scanning a comment.
40915 (Set_Comment_As_Token): New procedure
40917 * sinput-p.adb: Update Copyright notice
40918 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
40919 that no longer exists.
40921 2003-12-08 Javier Miranda <miranda@gnat.com>
40923 * sem_aggr.adb: Add dependence on Exp_Tss package
40924 Correct typo in comment
40925 (Resolve_Aggregate): In case of array aggregates set the estimated
40926 type of the aggregate before calling resolve. This is needed to know
40927 the name of the corresponding IP in case of limited array aggregates.
40928 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
40929 in case of default initialized array components.
40931 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
40932 types. Required to give support to limited aggregates in generic
40935 2003-12-08 Ed Schonberg <schonberg@gnat.com>
40937 * sem_ch3.adb (Check_Initialization): For legality purposes, an
40938 inlined body functions like an instantiation.
40939 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
40940 until bounds are analyzed, to diagnose premature use of type.
40942 * sem_util.adb (Wrong_Type): Improve error message when the type of
40943 the expression is used prematurely.
40945 2003-12-08 GNAT Script <nobody@gnat.com>
40947 * Make-lang.in: Makefile automatically updated
40949 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
40951 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
40952 they are automatically generated by Make-lang.in and cause nothing but
40953 maintenance troubles.
40955 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
40957 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
40958 version of this unit).
40960 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
40962 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
40963 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
40964 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
40965 the body of System.Interrupt_Management common to several targets.
40966 Update copyright notice when appropriate.
40968 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
40971 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
40972 to ensure that the kernel fills in the interrupted context structure
40973 before calling a signal handler, which is necessary to be able to
40974 unwind past it. Update the copyright notice.
40976 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
40978 * a-elchha.ads: New file.
40980 * a-elchha.adb: New default last chance handler. Contents taken from
40981 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
40983 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
40984 is moved to a-elchha.adb to provide a target-independent default last
40987 * Makefile.rtl: Add a-elchha.o
40989 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
40991 2003-12-05 Ed Schonberg <schonberg@gnat.com>
40993 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
40994 declared in an instance, do not inline the call if the instance is not
40995 frozen yet, to prevent order of elaboration problems.
40997 * sem_prag.adb: Add comments for previous fix.
40999 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
41001 * g-table.adb: Use the right variable in Set_Item.
41002 Update copyright notice.
41004 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
41006 * Makefile.in: Remove unused rules.
41008 2003-12-05 Vincent Celier <celier@gnat.com>
41010 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
41011 -nostdlib. Not needed here after all.
41013 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
41016 * adaint.h, adaint.c, g-os_lib.ads:
41017 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
41018 on some platforms (including FreeBSD), it is a 64 bit value.
41019 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
41021 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
41023 * gnatvsn.ads (Library_Version): Now contain only the relevant
41025 (Verbose_Library_Version): New constant.
41027 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
41028 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
41029 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
41031 * gnatlbr.adb: Clean up: replace Library_Version by
41032 Verbose_Library_Version.
41034 * make.adb, lib-writ.adb, exp_attr.adb:
41035 Clean up: replace Library_Version by Verbose_Library_Version.
41037 * 5lintman.adb: Removed.
41040 Update and simplify computation of LIBRARY_VERSION.
41041 Fix computation of GSMATCH_VERSION.
41042 5lintman.adb is no longer used: replaced by 7sintman.adb.
41044 2003-12-03 Robert Dewar <dewar@gnat.com>
41047 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
41048 name. Modified to consider small non-bit-packed arrays as troublesome
41049 and in need of component-by-component assigment expansion.
41051 2003-12-03 Vincent Celier <celier@gnat.com>
41053 * lang-specs.h: Process nostdlib as nostdinc
41055 * back_end.adb: Update Copyright notice
41056 (Scan_Compiler_Arguments): Process -nostdlib directly.
41058 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
41061 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
41062 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
41063 included in HIE_NONE_TARGET_PAIRS.
41065 2003-12-03 Ed Schonberg <schonberg@gnat.com>
41068 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
41069 is legal in an instance, because legality is cheched in the template.
41072 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
41073 appplied to an unchecked conversion of a formal parameter.
41076 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
41079 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
41081 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
41082 routines. The second one is new functionality to deal with backtracing
41083 through signal handlers.
41084 (unwind): Split into the two separate subroutines above.
41085 Update the documentation, and deal properly with sizeof (REG) different
41086 from sizeof (void*).
41088 2003-12-01 Nicolas Setton <setton@act-europe.fr>
41090 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
41091 so that the debugger can reliably access the value of the parameter,
41092 and therefore is able to display the exception name when an exception
41093 breakpoint is reached.
41095 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
41097 * fmap.adb: Fix typo in warning message.
41099 * g-socket.ads, g-socket.adb: Make Free a visible instance of
41100 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
41102 2003-12-01 Vincent Celier <celier@gnat.com>
41104 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
41106 (Build_Library): Get the switches only if Default_Switches is declared
41109 2003-12-01 Ed Schonberg <schonberg@gnat.com>
41111 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
41112 actuals that are indexed components, reanalyze actual to ensure that
41113 packed array references are properly expanded.
41115 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
41116 attempted assignment to a discriminant.
41118 2003-12-01 Robert Dewar <dewar@gnat.com>
41120 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
41123 * switch-c.adb: Minor reformatting of comments
41125 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
41127 * Makefile.in: Clean ups.
41129 2003-12-01 GNAT Script <nobody@gnat.com>
41131 * Make-lang.in: Makefile automatically updated
41133 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
41135 * 5wsystem.ads: Disable zero cost exception, not ready yet.
41137 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
41139 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
41140 to force serialization.
41142 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
41144 * g-socket.ads, g-socket.adb:
41145 Clarify documentation of function Stream. Introduce a Free procedure
41146 to release the returned Stream once it becomes unused.
41148 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
41150 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
41152 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
41153 since NT 4 cannot handle timeout values that are too large,
41154 e.g. DWORD'Last - 1.
41156 2003-11-26 Ed Schonberg <schonberg@gnat.com>
41159 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
41160 in procedure calls and whose expansion must be deferred.
41162 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
41166 (Build_Derived_Array_Type): Create operator for unconstrained type
41167 if ancestor is unconstrained.
41169 2003-11-26 Vincent Celier <celier@gnat.com>
41171 * make.adb (Project_Object_Directory): New global variable
41172 (Change_To_Object_Directory): New procedure
41173 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
41174 of Change_Dir directly. Do not change working directory to object
41175 directory of main project after each compilation.
41176 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
41178 Change to object directory of main project before binding step.
41179 (Initialize): Initialize Project_Object_Directory to No_Project
41182 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
41183 binding a Stand-Alone Library.
41185 * output.adb: Update Copyright notice
41186 (Write_Char): Output buffer when full
41188 2003-11-26 Robert Dewar <dewar@gnat.com>
41190 * sem_ch13.adb: (Check_Size): Reset size if size is too small
41193 (Check_Size): Fix documentation to include bit-packed array case
41195 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
41197 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
41199 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
41201 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
41204 * utils.c (init_gigi_decls): Change name of built-in setjmp to
41205 __builtin_setjmp, since this is apparently needed by recent
41208 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41210 * adadecode.c: Only include ctype.h if not IN_GCC.
41211 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
41213 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
41216 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
41217 signals and interrupts.
41219 * 5zintman.ads: New File.
41221 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
41222 add exception signals to the set of unmasked signals.
41225 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
41226 between signals and interrupts.
41227 Add to Unblocked_Signal_Mask the set of signals that are in
41231 Adding a check to see whether the Interrupt_ID we want to unmask is in
41232 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
41233 reason is that the index type of the Keep_Unmasked array is not always
41234 Interrupt_ID; it may be a subtype of Interrupt_ID.
41236 2003-11-24 Gary Dismukes <dismukes@gnat.com>
41239 (Remove_Side_Effects): Condition constantness of object created for a
41240 an unchecked type conversion on the constantness of the expression
41241 to ensure the correct value for 'Constrained when passing components
41242 of view-converted class-wide objects.
41244 2003-11-24 Robert Dewar <dewar@gnat.com>
41246 * par-load.adb (Load): Improve handling of misspelled and missing units
41247 Removes several cases of compilation abandoned messages
41249 * lib.adb: (Remove_Unit): New procedure
41251 * lib.ads: (Remove_Unit): New procedure
41253 * lib-load.adb: Minor reformatting
41255 2003-11-24 Vincent Celier <celier@gnat.com>
41258 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
41259 (Marking_Label): Label to mark processed source files. Incremented for
41261 (Gnatmake): Increase Marking_Labet for each executable
41262 (Is_Marked): Compare against marking label
41263 (Mark): Mark with marking label
41265 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
41268 Move the declaration of the TSD for System.Threads to System.Soft_Links.
41271 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
41272 (rts-cert): build a single relocatable object for the run-time lib.
41275 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
41278 Use gnatls rather than gcc to obtain the location of GNAT RTL for
41281 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
41283 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
41284 can not use it as before (that is, as a variable) when dumping it into
41285 the tree file. Add a local variable to store the result of this
41286 function and to be used as the string to be written into the tree.
41288 * scn.adb (Initialize_Scanner): Add comments explaining the recent
41291 * sinput.adb (Source_First, Source_Last): In case of
41292 Internal_Source_File, replace returning attributes of
41293 Internal_Source_Ptr (which is wrong) with returning attributes of
41296 2003-11-24 Ed Schonberg <schonberg@gnat.com>
41299 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
41300 used for implicit concatenation operators.
41304 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
41305 task bodies that are in the scope of a Suppress pragma.
41306 (Check_A Call): Use the flag to prevent spurious elaboration checks.
41308 * sinfo.ads, sinfo.adb:
41309 New flag No_Elaboration_Check on function/procedure calls, to properly
41310 suppress checks on calls in task bodies that are within a local suppress
41314 (Expand_Concatenate_Other): Use the proper integer type for the
41315 expression for the upper bound, to avoid universal_integer computations
41318 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
41320 * .cvsignore: Delete.
41322 2003-11-21 Andreas Schwab <schwab@suse.de>
41324 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
41326 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
41328 * 5wsystem.ads: Enable zero cost exception.
41330 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
41332 * 5ztiitho.adb: Remove an unreferenced variable.
41334 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
41336 * adaint.c: For FreeBSD, use mkstemp.
41338 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
41340 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
41342 2003-11-21 Robert Dewar <dewar@gnat.com>
41344 * bld.adb: Remove useless USE of gnatvsn
41346 * gnatchop.adb: Minor reformatting
41347 Clean up version handling to be more consistent
41349 * gnatxref.adb: Minor reformatting
41351 * gprcmd.adb: Minor reformatting
41352 Fix output of copyright to be more consistent with other tools
41354 2003-11-21 Vincent Celier <celier@gnat.com>
41356 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
41358 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
41360 * atree.adb (Initialize): Add initializations for global variables
41361 used in New_Copy_Tree.
41363 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
41364 Internal_Source_File as the actual).
41365 Put the set of statements creating Any_Character before the set of
41366 statements creating Any_Array to have Any_Character fully initialized
41367 when it is used in creating Any_Array.
41369 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
41370 not call Scan in case if the actual is Internal_Source_File
41371 Add 2003 to copyright note.
41373 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
41374 processing Internal_Source_File.
41376 * types.ads: Add the constant Internal_Source_File representing the
41377 source buffer for artificial source-code-like strings created within
41378 the compiler (the definition of Source_File_Index is changed).
41380 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
41382 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
41383 56system.ads: New file, FreeBSD version.
41385 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
41387 * Make-lang.in (ada.extraclean): Delete.
41389 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
41391 * gnatmem.adb: Clean up verbose output.
41393 * gprcmd.adb: Change copyright to FSF.
41395 2003-11-19 Vincent Celier <celier@gnat.com>
41397 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
41398 and Version (ignored).
41400 * symbols.ads: (Policy): New type
41401 (Initialize): New parameter Reference, Symbol_Policy and
41403 Remove parameter Force.
41404 Minor reformatting.
41406 * snames.ads, snames.adbadb: New standard names
41407 Library_Reference_Symbol_File and Library_Symbol_Policy
41410 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
41414 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
41416 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
41418 * prj.adb: (Project_Empty): New component Symbol_Data
41420 * prj.ads: (Policy, Symbol_Record): New types
41421 (Project_Data): New component Symbol_Data
41424 New attributes Library_Symbol_File, Library_Symbol_Policy and
41425 Library_Reference_Symbol_File.
41428 (Ada_Check): When project is a Stand-Alone library project, process
41429 attribute Library_Symbol_File, Library_Symbol_Policy and
41430 Library_Reference_Symbol_File.
41432 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
41433 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
41434 5sml-tgt.adb (Build_Dynamic_Library): New parameter
41435 Symbol_Data (ignored).
41437 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
41438 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
41439 functions Option_File_Name and Version_String. Set new options of
41440 gnatsym related to symbol file, symbol policy and reference symbol
41444 Extensive modifications to take into account the reference symbol file,
41445 the symbol policy, the library version and to put in the symbol file the
41446 minor and major IDs.
41448 * bld.adb (Process_Declarative_Items): Put second argument of
41449 gprcmd to_absolute between single quotes, to avoid problems with
41452 * bld-io.adb: Update Copyright notice.
41453 (Flush): Remove last character of a line, if it is a back slash, to
41454 avoid make problems.
41457 Implement new scheme with reference symbol file and symbol policy.
41459 * g-os_lib.ads: (Is_Directory): Clarify comment
41461 2003-11-19 Robert Dewar <dewar@gnat.com>
41463 * atree.adb: Move New_Copy_Tree global variables to head of package
41465 * errout.adb: Minor reformatting
41467 2003-11-19 Javier Miranda <miranda@gnat.com>
41469 * sem_ch4.adb: (Diagnose_Call): Improve error message.
41470 Add reference to Ada0Y (AI-50217)
41472 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
41473 sem_util.adb: Add reference to AI-50217
41475 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
41477 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
41479 * sem_aggr.adb: Complete documentation of AI-287 changes
41481 * par-ch4.adb: Document previous changes.
41483 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
41484 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
41487 * exp_aggr.adb: Add references to AI-287 in previous changes
41489 2003-11-19 Ed Schonberg <schonberg@gnat.com>
41492 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
41493 in the rewriting is the result of an inlined call.
41495 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
41496 parameter is a type conversion, use original node to construct the
41497 post-call assignment, because expression may have been rewritten, e.g.
41498 if it is a packed array.
41501 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
41502 body, just as it is in an instance.
41503 Categorization routines
41505 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
41506 Instantiate_Object): Set proper sloc reference for message on missing
41509 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
41511 * Makefile.in: Add FreeBSD libgnat pairs.
41513 * usage.adb: Fix typo in usage message.
41515 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
41517 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
41518 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
41519 pragma Thread_Body.
41520 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
41522 * s-thread.adb: This file is now a dummy implementation of
41525 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
41527 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
41529 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
41531 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41532 instanciation references in the parent type description.
41534 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41536 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
41538 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
41539 TYPE_PRECISION directly from esize.
41541 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
41544 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
41546 * init.c: Initialization routines for FreeBSD
41548 * link.c: Link info for FreeBSD
41550 * sysdep.c: Add the case of FreeBSD
41552 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
41554 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
41555 already called in System.Threads.
41557 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
41558 environment task, as it has been moved to System.Threads.Initialization.
41560 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
41562 * adaint.c (__gnatlib_install_locks): Only reference
41563 __gnat_install_locks on VMS, since other platforms can avoid using
41564 --enable-threads=gnat
41566 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41568 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
41570 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
41571 TYPE_PACKED_ARRAY_TYPE_P.
41572 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
41574 Part of PR ada/12806
41575 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
41576 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
41578 2003-11-17 Vincent Celier <celier@gnat.com>
41580 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
41582 Do not set exit status to Failure when Warning is True.
41583 (Gnatchop): Make errors "no compilation units found" and
41584 "no source files written" warnings only.
41586 * make.adb (Gnatmake): When using a project file, set
41587 Look_In_Primary_Dir to False.
41588 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
41589 and Local_Configuration_Pragmas in the project where they are declared
41590 not an extending project which might have inherited them.
41592 * osint.adb (Locate_File): If Name is already an absolute path, do not
41593 look for a directory.
41595 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
41596 -gnats (Check_Syntax) is used, issue only a warning, not an error.
41598 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
41599 in objects of type Variable_Value.
41601 * prj.ads: (Variable_Value): New component Project
41603 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
41604 is in a project extended by Project.
41606 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
41607 Project of Variable_Values to this new parameter value.
41608 (Expression): Set component Project of Variable_Values.
41609 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
41610 Set the component Project in array elements.
41612 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
41614 * errout.adb: (Initialize): Add initialization for error nodes.
41616 * sem_ch12.adb (Initialize): Add missing initializations for
41617 Exchanged_Views and Hidden_Entities.
41619 2003-11-17 Ed Schonberg <schonberg@gnat.com>
41621 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
41622 already instantiated tree for use in subsequent inlining.
41623 (Analyze_Associations, Instantiate_Formal_Subprogram,
41624 Instantiate_Object): improve error message for mismatch in
41627 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
41628 instantiations of subprograms declared in instances.
41630 2003-11-17 Javier Miranda <miranda@gnat.com>
41632 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
41633 executed only under the Extensions_Allowed flag.
41635 2003-11-17 Robert Dewar <dewar@gnat.com>
41637 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
41639 (Address_Image): Fix bug of returning 0x instead of 0x0
41640 Minor reformatting (function specs).
41642 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
41643 (missed case of 33-63)
41645 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
41647 * s-thread.adb: Add comments for pragma Restriction
41649 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
41650 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
41652 2003-11-17 Ed Falis <falis@gnat.com>
41654 * s-thread.adb: Added No_Tasking restriction for this implementation.
41656 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
41658 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41659 instanciation references in the parent type description.
41661 2003-11-17 GNAT Script <nobody@gnat.com>
41663 * Make-lang.in: Makefile automatically updated
41665 2003-11-16 Jason Merrill <jason@redhat.com>
41667 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
41668 and TAGS files that include them for each front end.
41670 2003-11-14 Andreas Jaeger <aj@suse.de>
41672 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
41673 is the canonical version.
41674 * misc.c (gnat_handle_option): Likewise.
41676 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
41678 * 5nsystem.ads: New file for x86_64-linux-gnu.
41680 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
41682 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
41684 * comperr.adb: Fix logic in previous change.
41686 2003-11-13 Vincent Celier <celier@gnat.com>
41688 * 5bml-tgt.adb (Build_Dynamic_Library): Use
41689 Osint.Include_Dir_Default_Prefix instead of
41690 Sdefault.Include_Dir_Default_Name.
41692 * gnatlbr.adb: Update Copyright notice
41693 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
41694 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
41695 instead of Sdefault.Object_Dir_Default_Name
41698 (Process_Binder_File): Never suppress the option following -Xlinker
41701 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
41702 Sdefault.Object_Dir_Default_Name.
41704 * osint.ads, osint.adb:
41705 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
41706 Minor reformatting.
41708 * vms_conv.ads: Minor reformating
41709 Remove GNAT STANDARD and GNAT PSTA
41712 Allow GNAT MAKE to have several files on the command line.
41713 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
41714 Sdefault.Object_Dir_Default_Name.
41716 Remove data for GNAT STANDARD
41719 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
41720 Remove data for GNAT STANDARD
41721 Remove options and documentation for -gnatwb/-gnatwB: these warning
41722 options no longer exist.
41724 2003-11-13 Ed Falis <falis@gnat.com>
41726 * 5zthrini.adb: (Init_RTS): Made visible
41729 (Register): Removed unnecessary call to taskVarGet that checked whether
41730 an ATSD was already set as a task var for the argument thread.
41733 Updated comment to reflect that this is a VxWorks version
41734 Added context clause for System.Threads.Initialization
41735 Added call to System.Threads.Initialization.Init_RTS
41737 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
41740 (Init_RTS): New procedure, for the initialization of the run-time lib.
41743 Remove dependancy on System.Init, so that this file can be used in the
41744 AE653 sequential run-time lib.
41746 2003-11-13 Robert Dewar <dewar@gnat.com>
41748 * bindgen.adb: Minor reformatting
41750 2003-11-13 Ed Schonberg <schonberg@gnat.com>
41753 (Apply_Discriminant_Check): Do no apply check if target type is derived
41754 from source type with no applicable constraint.
41757 (Ensure_System_Dependency): Do not apply the style checks that may have
41758 been specified for the main unit.
41761 (Find_Selected_Component): Further improvement in error message, with
41765 (Resolve): Handle properly the case of an illegal overloaded protected
41768 2003-11-13 Javier Miranda <miranda@gnat.com>
41771 (Has_Default_Init_Comps): New function to check the presence of
41772 default initialization in an aggregate.
41773 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
41774 extension aggregate of a limited record. In addition, a new formal
41775 was added to do not initialize the record controller (if any) during
41776 this recursive expansion of ancestors.
41777 (Init_Controller): Add support for limited record components.
41778 (Expand_Record_Aggregate): In case of default initialized components
41779 convert the aggregate into a set of assignments.
41781 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
41782 describing the new syntax.
41783 Nothing else needed to be done because this subprogram delegates part of
41784 its work to P_Precord_Or_Array_Component_Association.
41785 (P_Record_Or_Array_Component_Association): Give support to the new
41786 syntax for default initialization of components.
41789 (Resolve_Aggregate): Relax the strictness of the frontend in case of
41790 limited aggregates.
41791 (Resolve_Record_Aggregate): Give support to default initialized
41793 (Get_Value): In case of default initialized components, duplicate
41794 the corresponding default expression (from the record type
41795 declaration). In case of default initialization in the *others*
41796 choice, do not check that all components have the same type.
41797 (Resolve_Extension_Aggregate): Give support to limited extension
41801 (Check_Initialization): Relax the strictness of the front-end in case
41802 of aggregate and extension aggregates. This test is now done in
41803 Get_Value in a per-component manner.
41805 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
41806 expression corresponds to a limited aggregate. This test is now done
41809 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
41812 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
41813 present in an N_Component_Association node
41815 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
41817 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
41818 type-conformant entry only if they are homographs.
41820 2003-11-13 GNAT Script <nobody@gnat.com>
41822 * Make-lang.in: Makefile automatically updated
41824 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41826 * adadecode.c: Use <> form of include for ctype.h.
41827 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
41829 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41831 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
41832 Works around PR middle-end/6552.
41834 2003-11-10 Ed Falis <falis@gnat.com>
41836 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
41838 * 5zinit.adb: (Install_Handler): Moved back to spec
41839 (Install_Signal_Handlers): Deleted
41841 * 5zthrini.adb: Added context clause for System.Storage_Elements
41842 (Register): Only handles creation of taskVar; initialization moved to
41844 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
41845 Added declaration of environment task secondary stack and
41848 * s-thread.adb: Implement bodies for thread body processing
41851 Added comment identifying supported targets for pragma Thread_Body.
41853 2003-11-10 Pascal Obry <obry@gnat.com>
41855 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
41859 (Open): Properly check for string length before copying into the buffer.
41860 Raises Name_Error if buffer is too small. Note that this was a potential
41863 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
41865 * bindgen.adb, comperr.adb: Code clean ups.
41866 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
41868 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
41870 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
41872 2003-11-10 Vincent Celier <celier@gnat.com>
41875 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
41878 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
41880 * prj.adb: (Project_Empty): Add new boolean component Virtual
41882 * prj.ads: (Virtual_Prefix): New constant string
41883 (Project_Data): New boolean component Virtual
41885 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
41886 a library project is extended by a virtual extending project.
41889 Modifications throughout to implement extending-all project, including:
41890 (Virtual_Hash, Processed_Hash): New hash tables
41891 (Create_Virtual_Extending_Project): New procedure
41892 (Look_For_Virtual_Projects_For): New procedure
41895 (Process): After checking the projects, if main project is an
41896 extending-all project, set the object directory of all virtual extending
41897 project to the object directory of the main project.
41898 Adjust error message when a virtual extending project has the same
41899 object directory as an project being extended.
41900 (Recursive_Process): If name starts with the virtual prefix, set Virtual
41901 to True in the project data.
41904 (Default_Project_Node): Add new boolean component Extending_All
41905 (Is_Extending_All): New function
41906 (Set_Is_Extending_All): New procedure
41908 * prj-tree.ads: (Is_Extending_All): New function
41909 (Set_Is_Extending_All): New procedure
41910 (Project_Node_Record): New boolean component Extending_All
41912 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
41915 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
41917 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
41918 "gprcmd prefix" to define it.
41920 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
41922 * einfo.ads: Fix a typo and remove an extraneous word in comments.
41925 (Create_Dummy_Package_Unit): Set the scope of the entity for the
41926 created dummy package to Standard_Standard, not to itself, to
41927 defend other parts of the front-end against encoutering a cycle in
41931 (Analyze_With_Clause): When setting the entities for the successive
41932 N_Expanded_Names that constitute the name of a child unit, do not
41933 attempt to go further than Standard_Standard in the chain of scopes.
41934 This case arises from the placeholder units created by
41935 Create_Dummy_Package_Unit in the case of a with_clause for a
41936 nonexistent child unit.
41938 2003-11-10 Ed Schonberg <schonberg@gnat.com>
41941 (Expand_Thread_Body): Place subprogram on scope stack, so that new
41942 declarations are given the proper scope.
41945 (Check_Expr_Constants): Reject an expression that contains a constant
41946 created during expansion, and that appears after the object to which
41947 the address clause applies.
41949 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
41950 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
41951 that uses 'Range of a function call with controlled components, so
41952 that the function result can be finalized before starting the loop.
41955 (Find_Selected_Component): Improve error message when prefix is
41956 an implicit dereference of an incomplete type.
41958 2003-11-10 Robert Dewar <dewar@gnat.com>
41960 * opt.ads: New Print_Standard flag for -gnatS switch
41962 * sem_ch13.adb: Remove some additional checks for unaligned arrays
41964 * cstand.adb (Create_Standard): Print out package standard if -gnatS
41967 * debug.adb: Update doc for -gnatds to discuss relationship with new
41970 * sinfo.adb: Add new field Entity_Or_Associated_Node
41972 * sinfo.ads: Add new field Entity_Or_Associated_Node
41973 Update documentation for Associated_Node and Entity fields to clarify
41974 relationship and usage.
41977 (Write_Id): Properly process Associated_Node field in generic template
41980 Recognize new -gnatS switch for printing package Standard
41981 This replaces gnatpsta
41984 Add line for new -gnatS switch for printing package Standard
41985 This replaces gnatpsta
41987 2003-11-10 Andreas Jaeger <aj@suse.de>
41989 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
41992 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41994 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
41997 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41999 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
42002 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
42004 * sysdep.c: Add handling of cygwin.
42006 2003-11-10 GNAT Script <nobody@gnat.com>
42008 * Make-lang.in: Makefile automatically updated
42010 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42013 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
42014 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
42015 Replace GNAT_ROOT by GCC_ROOT.
42017 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
42019 2003-11-06 Zack Weinberg <zack@codesourcery.com>
42021 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
42022 and update for changed meaning of GET_MODE_BITSIZE.
42024 2003-11-04 Doug Rupp <rupp@gnat.com>
42026 * sysdep.c: Problem discovered during IA64 VMS port.
42027 [VMS] #include <unixio.h> to get proper prototypes.
42030 Issues discovered/problems fixed during IA64 VMS port.
42031 [VMS] #define _POSIX_EXIT for proper semantics.
42032 [VMS] #include <unixio.h> for proper prototypes.
42033 [VMS] (fork): #define IA64 version.
42034 (__gnat_os_exit): Remove unnecessary VMS specific code.
42036 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42038 Part of PR ada/12806
42039 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
42043 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
42046 * targtyps.c, decl.c, misc.c,
42047 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
42048 routines to work around change in FP sizing semantics in GCC.
42051 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
42053 * gigi.h: (enumerate_modes): New function.
42055 * Make-lang.in: (ada/misc.o): Add real.h.
42057 * misc.c: (enumerate_modes): New function.
42059 2003-11-04 Robert Dewar <dewar@gnat.com>
42061 * 3vtrasym.adb: Minor reformatting
42062 Use terminology encoded/decoded name, rather than C++ specific notion
42063 of mangling (this is the terminology used throughout GNAT).
42065 * einfo.h: Regenerated
42067 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
42070 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
42072 * par-prag.adb: Add dummy entry for Thread_Body pragma
42075 Add entries for System.Threads entities for thread body processing
42078 (Analyze_Pragma, Access attributes): Check these are not applied to a
42079 thread body, since this is not permitted
42081 * sem_prag.adb: Add processing for Thread_Body pragma.
42085 (Resolve_Call): Check for incorrect attempt to call a thread body
42086 procedure with a direct call.
42088 * snames.ads, snames.adb: Add entry for Thread_Body pragma
42089 Add names associated with thread body expansion
42091 * snames.h: Add entry for Thread_Body pragma
42093 * s-thread.adb: Add entries for thread body processing
42094 These are dummy bodies so far
42096 * s-thread.ads: Add documentation on thread body handling.
42097 Add entries for thread body processing.
42099 2003-11-04 Javier Miranda <miranda@gnat.com>
42102 (Build_Limited_Views): Return after posting an error in case of limited
42103 with_clause on subprograms, generics, instances or generic renamings
42104 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
42105 on subprograms, generics, instances or generic renamings
42107 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
42109 * raise.c (setup_to_install): Correct mistake in last revision; two
42110 arguments out of order.
42112 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
42113 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
42114 notice, missed in previous change.
42115 Remove trailing blanks and other style errors introduced in previous
42118 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
42120 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
42121 rid of the wrapper for a LJM type, ensuring we don't do that if the
42122 field is addressable. This avoids potential low level type view
42123 mismatches later on, for instance in a by-reference argument passing
42126 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42128 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
42129 aligned at byte boundary.
42131 2003-11-04 Joel Brobecker <brobecker@gnat.com>
42133 * decl.c (components_to_record): Do not delete the empty variants from
42134 the end of the union type.
42136 2003-11-04 Ed Schonberg <schonberg@gnat.com>
42138 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
42139 operation for a derived type, an explicit declaration may use a local
42140 subtype of Boolean.
42142 2003-11-04 Vincent Celier <celier@gnat.com>
42144 * make.adb (Gnatmake): Allow main sources on the command line with a
42145 library project when it is only for compilation (no binding or
42148 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42150 * Makefile.in: Remove many duplicate variables.
42152 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
42154 * Make-lang.in (dvi): Move targets to $(docobjdir).
42155 (gnat_ug_vms.dvi): Simplify rule and adjust target.
42156 (gnat_ug_wnt.dvi): Likewise.
42157 (gnat_ug_unx.dvi): Likewise.
42158 (gnat_ug_vxw.dvi): Likewise.
42159 (gnat_rm.dvi): Likewise.
42160 (gnat-style.dvi): Likewise.
42162 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
42164 * gigi.h: Missed commit from update for C90.
42166 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
42168 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
42170 2003-10-31 Andreas Schwab <schwab@suse.de>
42172 * raise.c (get_action_description_for): Fix typo in last change.
42174 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
42177 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
42178 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
42180 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
42182 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
42183 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
42184 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
42185 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
42186 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
42188 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
42191 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
42192 numbers when symbol name is too long.
42194 2003-10-30 Ed Falis <falis@gnat.com>
42196 * g-signal.ads, g-signal.adb: New files
42198 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
42200 * Makefile.rtl: Introduce GNAT.Signals
42202 2003-10-30 Robert Dewar <dewar@gnat.com>
42204 * freeze.adb: Minor reformatting
42206 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
42208 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
42209 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
42210 New handling of Id_Check parameter to improve recognition of keywords
42211 used as identifiers.
42212 Update copyright notice to include 2003
42214 2003-10-29 Robert Dewar <dewar@gnat.com>
42216 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
42217 sem_ch10.adb: Minor reformatting
42219 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
42220 (Expand_Assign_Record): Test right hand side for bit unaligned as well
42222 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
42224 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
42225 Support for TBK$SYMBOLIZE-based symbolic traceback.
42227 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
42230 Revert previous change, that did not work well when pragma No_Run_Time
42231 was used in conjunction with a run-time other than ZFP.
42233 2003-10-29 Vincent Celier <celier@gnat.com>
42236 (Gnatmake): When there are no Ada mains in attribute Main, disable the
42237 bind and link steps only is switch -z is not used.
42239 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
42241 * Makefile.generic: Remove duplicated setting of CC.
42243 * Makefile.prolog: Set CC to gcc by default, to override make's
42246 * einfo.h: Regenerated.
42248 2003-10-29 Ed Schonberg <schonberg@gnat.com>
42250 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
42251 current body, after compiling subunit.
42253 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
42254 when in deleted code, because gigi needs properly ordered freeze
42255 actions to annotate types.
42257 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
42258 prevent the premature freezing of record type that contains
42259 subcomponents with a private type that does not yet have a completion.
42261 2003-10-29 Javier Miranda <miranda@gnat.com>
42264 (Analyze_Package_Instantiation): Check that instances can not be used in
42265 limited with_clauses.
42268 (Analyze_Package_Renaming): Check that limited withed packages cannot
42269 be renamed. Improve text on error messages related to limited
42272 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
42274 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
42275 Update copyright notice.
42277 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
42278 (Install_Limited_Context_Clauses): New subprogram that isolates all the
42279 checks required for limited context_clauses and installs the limited
42281 (Install_Limited_Withed_Unit): Complete its documentation.
42282 (Analyze_Context): Check that limited with_clauses are only allowed in
42284 (Install_Context): Call Install_Limited_Context_Clauses after the
42285 parents have been installed.
42286 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
42287 package as 'From_With_Type'; this mark indicates that the limited view
42288 is installed. Used to check bad usages of limited with_clauses.
42289 (Build_Limited_Views): Do not add shadow entities to the scope's list
42290 of entities. Do not add real entities to the Non_Limited_Views chain.
42291 Improve error notification.
42292 (Remove_Context_Clauses): Remove context clauses in two phases:
42293 limited views first and regular views later (to maintain the
42295 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
42296 its visible entities.
42298 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
42300 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
42301 with any type that Is_Fixed_Point_Type.
42303 * sinfo.ads: Fix documentation for Associated_Node attribute.
42305 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
42307 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
42308 both '-gnatc' and '-gnatt' are specified.
42310 * atree.adb (Initialize): Add initialization for Node_Count (set to
42313 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42315 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
42316 do not consider as Pure.
42318 Part of implementation of function-at-a-time:
42320 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
42321 (tree_transform): Add new argument to build_component_ref.
42322 (tree_transform, case N_Assignment_Statement): Make and return an
42324 (tree_transform): If result IS_STMT, set flags and return it.
42325 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42327 * utils2.c (build_simple_component_ref, build_component_ref): Add new
42329 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
42330 (build_allocator): Likewise.
42332 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
42333 Add new arg to build_component_ref.
42334 (maybe_unconstrained_array, unchecked_convert): Likewise.
42336 * ada-tree.def (EXPR_STMT): New code.
42338 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
42340 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
42341 build_component_ref calls.
42343 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
42345 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42346 (build_component_ref): Add new argument, NO_FOLD_P.
42348 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
42350 * Makefile.generic: Add missing substitution on object_deps handling.
42353 * Make-lang.in (check-ada): Enable ACATS test suite.
42355 2003-10-27 Robert Dewar <dewar@gnat.com>
42358 (Freeze_Array_Type): We do not need an initialization routine for types
42359 derived from String or Wide_String. They should be treated the same
42360 as String and Wide_String themselves. This caused problems with the
42361 use of Initialize_Scalars.
42364 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
42365 composites. This allows use of component clauses that are not byte
42369 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
42370 is an attempt to pack an array of atomic objects.
42372 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
42374 2003-10-27 Pascal Obry <obry@gnat.com>
42377 (Basename): Check for drive letters in a pathname only on DOS based OS.
42379 2003-10-27 Vincent Celier <celier@gnat.com>
42382 (Gnatmake): When unable to change dir to the object dir, display the
42383 content of the parent dir of the obj dir, to try to understand why this
42386 2003-10-27 GNAT Script <nobody@gnat.com>
42388 * Make-lang.in: Makefile automatically updated
42390 2003-10-27 Ed Schonberg <schonberg@gnat.com>
42393 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
42394 should not be done in Save/Restore_Scope_Stack, because it is performed
42398 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42399 whether use clauses should be removed/restored.
42402 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42403 whether use clauses should be removed/restored.
42405 2003-10-26 Andreas Jaeger <aj@suse.de>
42407 * Makefile.in: Remove duplicated lines.
42409 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42411 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
42412 minimize the differences with ACT tree.
42414 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
42415 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
42416 Gnatvsn.Gnat_Static_Version_String to reduce differences between
42419 2003-10-24 Pascal Obry <obry@gnat.com>
42422 * adadecode.c (ostrcpy): New function.
42423 (__gnat_decode): Use ostrcpy of strcpy.
42424 (has_prefix): Set first parameter a const.
42425 (has_suffix): Set first parameter a const.
42426 Update copyright notice. Fix source name in header.
42427 Removes a trailing space.
42429 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
42432 Remove the test against being in No_Run_Time_Mode before generating a
42433 call to Register_Tag. It is redundant with the test against the
42434 availability of the function Register_Tag.
42436 2003-10-24 Vincent Celier <celier@gnat.com>
42438 * g-catiio.adb: (Month_Name): Correct spelling of February
42440 * make.adb: (Mains): New package
42441 (Initialize): Call Mains.Delete
42442 (Gnatmake): Check that each main on the command line is a source of a
42443 project file and, if there are several mains, each of them is a source
42444 of the same project file.
42445 (Gnatmake): When a foreign language is specified in attribute Languages,
42446 no main is specified on the command line and attribute Mains is not
42447 empty, only build the Ada main. If there is no Ada main, just compile
42448 the Ada sources and their closure.
42449 (Gnatmake): If a main is specified on the command line with directory
42450 information, check that the source exists and, if it does, that the path
42451 is the actual path of a source of a project.
42454 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
42455 Full_Path is True, return the full path instead of the simple file name.
42456 (Project_Of): New function
42459 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
42460 defaulted to False.
42461 (Project_Of): New function
42463 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42465 * Makefile.generic:
42466 Ensure objects of main project are always checked and rebuilt if needed.
42467 Set CC to gcc by default.
42468 Prepare new handling of link by creating a global archive (not activated
42471 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42472 stringt.h: Update copyright notice. Remove trailing blanks.
42473 Fix source name in header.
42475 2003-10-24 Robert Dewar <dewar@gnat.com>
42477 * sem_ch12.adb: Minor reformatting
42480 Minor reformatting (including new function return style throughout)
42483 Minor reformatting (including new function return style throughout)
42485 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42487 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42488 stringt.h: Update copyright notice. Remove trailing blanks.
42489 Fix source name in header.
42491 2003-10-24 GNAT Script <nobody@gnat.com>
42493 * Make-lang.in: Makefile automatically updated
42495 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
42497 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
42498 stringt.h: Convert to ISO C90 declarations and definitions.
42500 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
42503 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
42504 External_Tag attribute definition clauses.
42506 2003-10-23 Ed Schonberg <schonberg@gnat.com>
42509 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
42510 child unit, generate a fully qualified name to avoid spurious errors
42511 when the context contains renamings of different child units with
42512 the same simple name.
42514 * exp_dbug.ads: Add documentation on name qualification for renamings
42517 2003-10-23 Robert Dewar <dewar@gnat.com>
42519 * g-regpat.ads, g-regpat.adb: Minor reformatting
42521 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
42523 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
42525 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42527 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
42530 * urealp.h: (Machine): Update to proper definition.
42532 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
42534 * init.c, adaint.c: Minor reformatting.
42536 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
42538 * adaint.c (w32_epoch_offset): Define static const at file level.
42539 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
42540 rather than t_create, t_access in call to GetFileTime. Use union
42541 to convert between FILETIME and unsigned long long.
42542 (__gnat_file_time_name): Test for invalid file handle.
42543 (__gnat_set_filetime_name): Support win32 targets using
42544 w32api SetFileTime.
42546 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
42548 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
42550 * ctrl_c.c (__gnat_int_handler): Remove declaration.
42552 * decl.c (creat_concat_name): Const-ify prefix.
42554 * adaint.c: Include ctype.h if __MINGW32__.
42555 (__gnat_readlink): Mark arguments as possibly unused.
42556 (__gnat_symlink): Likewise.
42557 (__gnat_is_symbolic_link): Likewise.
42558 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
42560 (__gnat_file_time_name): Don't declare struct stat statbuf when
42562 (__gnat_is_absolute_path): Add parenthesis around condition of
42563 'if' statement to avoid warning.
42564 (__gnat_plist_init): Specify void as parameter.
42565 (plist_enter): Likewise.
42566 (plist_leave): Likewise.
42567 (remove_handle): Make static. Initialize prev.
42569 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
42572 * Makefile.in: Disable build of gnatpsta.
42573 * cstreams.c (__gnat_full_name): Minor improvements and clean up
42574 of previous change.
42576 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42578 * tracebak.c (MAX): Avoid redefinition warning.
42580 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
42581 Change msg to const char *.
42582 (__gnat_install_handler): Remove ss, unused.
42583 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
42585 * cstreams.c (__gnat_full_name): Declare p only when used.
42586 (__gnat_full_name) [sgi] Return buffer.
42588 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
42590 * mingw32.h: New file.
42591 * gnat_wrapper.adb: New file.
42593 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
42595 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
42596 string match a pre compiled regular expression (the corresponding
42597 version of the function working on a raw regular expression)
42598 Fix typos in various comments
42599 Update copyright notice in spec
42601 2003-10-21 Gary Dismukes <dismukes@gnat.com>
42604 (Component_Needs_Simple_Initialization): Return False when the type is a
42605 packed bit array. Revise spec comments to document this case.
42608 (Expand_Pragma_Import): Set any expression on the imported object to
42609 empty to avoid initializing imported objects (in particular this
42610 covers the case of zero-initialization of bit arrays).
42611 Update copyright notice.
42613 2003-10-21 Ed Schonberg <schonberg@gnat.com>
42616 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
42617 a subunit is missing.
42618 (Instantiate_Subprogram_Body): If body of function is missing, set type
42619 of return expression explicitly in dummy body, to prevent cascaded
42620 errors when a subunit is missing.
42624 (Access_Subprogram_Declaration): Verify that return type is valid.
42628 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
42633 (Corresponding_Discriminant): If the scope of the discriminant is a
42634 private type without discriminant, use its full view.
42637 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
42639 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
42640 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
42641 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
42642 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
42643 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
42644 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
42645 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
42646 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
42647 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
42648 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
42649 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
42650 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
42651 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
42652 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
42653 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
42654 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
42655 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
42656 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
42657 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
42658 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
42659 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
42660 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
42661 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
42662 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
42663 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
42664 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
42665 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
42666 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
42667 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
42668 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
42669 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
42670 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
42671 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
42672 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
42673 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
42674 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
42675 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
42676 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
42677 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
42678 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
42679 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
42680 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
42681 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
42682 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
42683 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
42684 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
42685 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
42686 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
42687 vms_conv.ads, vms_conv.adb, vms_data.ads,
42688 vxaddr2line.adb: Files added. Merge with ACT tree.
42690 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
42691 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
42692 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
42693 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
42694 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
42695 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
42696 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
42697 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
42698 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
42699 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
42701 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42702 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42703 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42704 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42705 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
42706 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
42707 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42708 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
42709 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
42710 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
42711 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
42712 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
42713 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
42714 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
42715 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
42716 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
42717 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
42718 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42719 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
42720 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
42721 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
42722 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
42723 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
42724 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
42725 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
42726 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
42727 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
42728 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
42729 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
42730 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
42731 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
42732 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
42733 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
42734 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
42735 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
42736 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
42737 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
42738 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
42739 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
42740 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
42741 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
42742 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
42743 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
42744 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
42745 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
42746 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
42747 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
42748 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
42749 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
42750 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
42751 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
42752 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
42753 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
42754 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
42755 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
42756 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
42757 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
42758 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
42759 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
42760 checks.adb, checks.ads, cio.c, comperr.adb,
42761 comperr.ads, csets.adb, cstand.adb, cstreams.c,
42762 debug_a.adb, debug_a.ads, debug.adb, decl.c,
42763 einfo.adb, einfo.ads, errout.adb, errout.ads,
42764 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
42765 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
42766 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
42767 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
42768 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
42769 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
42770 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
42771 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
42772 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
42773 fe.h, fmap.adb, fmap.ads, fname.adb,
42774 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
42775 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
42776 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
42777 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
42778 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
42779 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
42780 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
42781 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
42782 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
42783 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
42784 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
42785 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
42786 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
42787 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
42788 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
42789 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
42790 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
42791 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
42792 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
42793 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
42794 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
42795 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
42796 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
42797 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
42798 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
42799 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
42800 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
42801 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
42802 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
42803 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
42804 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
42805 layout.adb, lib.adb, lib.ads, lib-list.adb,
42806 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
42807 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42808 link.c, live.adb, make.adb, make.ads,
42809 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
42810 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
42811 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
42812 misc.c, mkdir.c, mlib.adb, mlib.ads,
42813 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
42814 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
42815 namet.adb, namet.ads, namet.h, nlists.ads,
42816 nlists.h, nmake.adt, opt.adb, opt.ads,
42817 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
42818 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
42819 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42820 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
42821 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
42822 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
42823 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
42824 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
42825 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
42826 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
42827 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
42828 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
42829 prj-util.adb, prj-util.ads, raise.c, raise.h,
42830 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
42831 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
42832 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
42833 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
42834 scans.ads, scn.adb, scn.ads, s-crc32.adb,
42835 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
42836 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42837 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
42838 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
42839 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
42840 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
42841 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
42842 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
42843 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
42844 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
42845 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
42846 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
42847 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
42848 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
42849 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
42850 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
42851 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
42852 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
42853 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
42854 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
42855 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
42856 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
42857 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
42858 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
42859 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
42860 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
42861 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
42862 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
42863 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
42864 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
42865 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
42866 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
42867 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
42868 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
42869 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
42870 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
42871 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
42872 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
42873 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
42874 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
42875 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42876 stringt.adb, stringt.ads, stringt.h, style.ads,
42877 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
42878 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
42879 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
42880 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
42881 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
42882 table.adb, table.ads, targparm.adb, targparm.ads,
42883 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
42884 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
42885 ttypes.ads, types.ads, types.h, uintp.adb,
42886 uintp.ads, uintp.h, uname.adb, urealp.adb,
42887 urealp.ads, urealp.h, usage.adb, utils2.c,
42888 utils.c, validsw.adb, validsw.ads, widechar.adb,
42889 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
42890 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
42891 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
42892 gnatvsn.ads: Merge with ACT tree.
42894 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
42896 2003-10-20 Mark Mitchell <mark@codesourcery.com>
42898 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
42899 (gnat_ug_vmx.info): Likewise.
42900 (gnat_ug_vxw.info): Likewise.
42901 (gnat_ug_wnt.info): Likewise.
42902 (gnat_rm.info): Likewise.
42903 (gnat-style.info): Likewise.
42905 * Make-lang.in (ada.install-info): Remove target.
42906 (info): New target.
42907 (install-info): Likewise.
42908 (gnat_ug_unx.info): Simplify rule.
42909 (gnat_ug_vmx.info): Likewise.
42910 (gnat_ug_vxw.info): Likewise.
42911 (gnat_ug_wnt.info): Likewise.
42912 (gnat_rm.info): Likewise.
42913 (gnat-style.info): Likewise.
42915 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
42917 * Make-lang.in: Replace uses of $(target_alias) with
42918 $(target_noncanonical).
42919 * ada/Makefile.in: Remove unused mention of $(target_alias).
42921 2003-10-06 Mark Mitchell <mark@codesourcery.com>
42923 * Make-lang.in (ada.info): Replace with ...
42925 (ada.dvi): Replace with ...
42928 2003-09-29 Zack Weinberg <zack@codesourcery.com>
42930 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
42931 initialize dconstp5 and dconstmp5.
42933 2003-09-28 Richard Henderson <rth@redhat.com>
42935 * trans.c (tree_transform): Update call to expand_asm_operands.
42937 2003-09-21 Richard Henderson <rth@redhat.com>
42939 * trans.c, utils.c: Revert.
42941 2003-09-21 Richard Henderson <rth@redhat.com>
42943 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
42946 2003-09-04 Michael Matz <matz@suse.de>
42948 * misc.c: Include "target.h".
42949 * Make-lang.in (misc.o): Add dependency on target.h.
42951 2003-09-03 DJ Delorie <dj@redhat.com>
42953 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
42956 2003-08-30 Zack Weinberg <zack@codesourcery.com>
42958 * Makefile.in: Update substitutions to match changes to
42959 configure. Use include directives instead of @-insertions
42960 to read in host and target fragments. Add a rule to
42961 regenerate ada/Makefile.
42963 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
42965 * lang-options.h: Remove.
42966 * lang.opt: Add help text.
42968 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
42970 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
42973 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
42975 * misc.c (gnat_handle_option): Don't handle filenames.
42977 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
42979 * Make-lang.in: Replace PWD with PWD_COMMAND.
42980 * Makefile.adalib: Likewise.
42981 * Makefile.in: Likewise.
42983 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
42985 * misc.c (gnat_argv): Revert last change.
42986 (gnat_handle_option, gnat_init_options): Copy arguments.
42988 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
42990 * misc.c (gnat_argv): Make const.
42992 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
42994 * misc.c (save_argc, save_argv): Keep non-static!
42996 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
42998 * misc.c (save_argc, save_argv): Make static.
42999 (gnat_init_options): New prototype.
43000 (gnat_init_options): Update.
43002 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
43004 * gnat_ug.texi: Remove unlikely characters from @vars.
43005 * gnat_ug_vms.texi: Regenerate.
43007 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
43009 * misc.c (record_code_position): Adjust emit_note call.
43011 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
43013 * misc.c (gnat_handle_option): Don't check for missing arguments.
43015 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
43017 * utils.c (end_subprog_body): Adjust expand_function_end call.
43019 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
43021 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
43024 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
43026 * lang.opt: Declare Ada.
43027 * misc.c (gnat_init_options): Update.
43029 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
43031 * utils.c (begin_subprog_body): Adjust init_function_start call.
43033 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
43035 * Make-lang.in: Update to use options.c and options.h.
43036 * misc.c: Include options.h not aoptions.h.
43037 (gnat_handle_option): Abort on unrecognized switch.
43038 (gnat_init_options): Request Ada switches.
43040 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
43042 * lang.opt: Add -Wall.
43043 * misc.c (gnat_handle_option): Handle it.
43045 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
43047 * misc.c (gnat_handle_option): Fix warnings.
43049 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
43051 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
43053 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
43055 * Make-lang.in: Update to handle command-line options.
43056 * lang.opt: New file.
43057 * misc.c: Include aoptions.h.
43058 (cl_options_count, cl_options): Remove.
43059 (gnat_handle_option): New.
43060 (gnat_decode_option): Remove.
43061 (LANG_HOOKS_DECODE_OPTION): Remove.
43062 (LANG_HOOKS_HANDLE_OPTION): Override.
43064 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
43066 * init.c, misc.c, trans.c, utils.c: Remove dead code.
43068 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
43070 * Makefile.in: Replace "host_canonical" with "host" for autoconf
43073 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
43075 * Make-lang.in: Update.
43076 * misc.c: Include opts.h. Define cl_options_count and cl_options.
43078 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
43080 * misc.c (gnat_init_options): Update.
43082 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
43084 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
43085 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
43086 __attribute__ ((__unused__)).
43088 2003-06-05 Jan Hubicka <jh@suse.cz>
43090 * Make-lang.in: Add support for stageprofile and stagefeedback
43092 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
43094 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
43095 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
43097 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
43099 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
43100 Remove non-VMS directive.
43101 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
43103 (Examples of gnatls Usage): Remove VMS alternative.
43105 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
43108 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
43109 and turn ZCX_By_Default back to False since the underlying support
43110 is not quite there yet.
43112 2003-06-01 Andreas Jaeger <aj@suse.de>
43114 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
43115 and ROUND_TYPE_SIZE_UNIT.
43117 2003-05-22 Geert Bosch <bosch@gnat.com>
43119 * gnat_rm.texi : Remove reference to Ada Core Technologies.
43121 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
43123 * trans.c (tree_transform): Use location_t and input_location
43125 (build_unit_elab): Likewise.
43126 * utils.c (create_label_decl): Likewise.
43128 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
43130 * trans.c (tree_transform, build_unit_elab,
43131 set_lineno): Rename lineno to input_line.
43132 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
43133 end_subprog_body): Likewise.
43134 * utils2.c (build_call_raise): Likewise.
43136 2003-05-01 Laurent Guerby <guerby@acm.org>
43139 * 5iosinte.ads: Increase pthread_cond_t size to match recent
43140 LinuxThread and NPTL version, merge from ACT.
43142 2003-04-28 Zack Weinberg <zack@codesourcery.com>
43144 * utils.c (convert): No need to clear TREE_CST_RTL.
43146 2003-04-23 Geert Bosch <bosch@gnat.com>
43148 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
43149 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
43150 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
43151 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
43152 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
43153 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
43154 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
43155 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
43156 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
43157 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
43158 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
43159 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
43160 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
43161 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
43162 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
43163 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
43164 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
43165 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
43166 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
43167 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
43168 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
43169 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
43170 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
43171 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
43172 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
43173 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
43174 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
43175 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
43176 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
43177 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
43178 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
43179 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
43180 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
43181 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
43182 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
43183 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
43184 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
43185 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
43186 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
43187 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
43188 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
43189 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
43190 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
43191 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
43192 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
43193 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
43194 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
43195 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
43196 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
43197 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
43198 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
43199 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
43200 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
43201 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
43202 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
43203 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
43204 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
43205 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
43206 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
43207 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
43208 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
43209 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
43210 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
43211 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
43212 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
43213 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
43214 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
43215 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
43216 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
43217 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
43218 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
43219 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
43220 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
43221 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
43222 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
43223 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
43224 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
43225 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
43226 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
43227 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
43228 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
43229 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
43230 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
43231 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
43232 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
43233 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
43234 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
43235 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
43236 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
43237 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
43238 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
43239 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
43240 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
43241 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
43242 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
43243 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
43244 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
43245 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
43246 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
43247 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
43248 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
43249 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
43250 ali.adb, ali.ads, alloc.ads, argv.c,
43251 atree.adb, atree.ads, atree.h, aux-io.c,
43252 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
43253 binde.adb, binde.ads, binderr.adb, binderr.ads,
43254 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
43255 butil.adb, butil.ads, cal.c, calendar.ads,
43256 casing.adb, casing.ads, ceinfo.adb, checks.adb,
43257 checks.ads, cio.c, comperr.adb, comperr.ads,
43258 config-lang.in, csets.adb, csets.ads, csinfo.adb,
43259 cstand.adb, cstand.ads, cuintp.c, debug.adb,
43260 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
43261 dec-io.ads, dec.ads, deftarg.c, directio.ads,
43262 einfo.adb, einfo.ads, elists.adb, elists.ads,
43263 elists.h, errno.c, errout.adb, errout.ads,
43264 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
43265 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
43266 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
43267 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
43268 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
43269 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
43270 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
43271 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
43272 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
43273 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
43274 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
43275 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
43276 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
43277 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
43278 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
43279 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
43280 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
43281 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
43282 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
43283 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
43284 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
43285 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
43286 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
43287 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
43288 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
43289 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
43290 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
43291 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
43292 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
43293 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
43294 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
43295 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
43296 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
43297 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
43298 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
43299 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
43300 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
43301 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
43302 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
43303 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
43304 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
43305 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
43306 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
43307 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
43308 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
43309 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
43310 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
43311 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
43312 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
43313 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
43314 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
43315 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
43316 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
43317 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
43318 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
43319 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
43320 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
43321 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
43322 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
43323 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
43324 lib.adb, lib.ads, live.adb, live.ads,
43325 machcode.ads, make.adb, make.ads, makeusg.adb,
43326 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
43327 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
43328 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
43329 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
43330 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
43331 mlib.ads, namet.adb, namet.ads, nlists.adb,
43332 nlists.ads, opt.adb, opt.ads, osint-b.adb,
43333 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
43334 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
43335 osint.ads, output.adb, output.ads, par-ch10.adb,
43336 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
43337 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
43338 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
43339 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
43340 par-tchk.adb, par-util.adb, par.adb, par.ads,
43341 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
43342 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
43343 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
43344 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
43345 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
43346 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
43347 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
43348 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
43349 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
43350 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
43351 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
43352 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
43353 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
43354 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
43355 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
43356 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
43357 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
43358 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43359 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
43360 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
43361 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
43362 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
43363 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43364 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
43365 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
43366 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
43367 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
43368 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
43369 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
43370 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
43371 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
43372 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
43373 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
43374 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
43375 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
43376 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
43377 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
43378 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
43379 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
43380 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
43381 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
43382 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
43383 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
43384 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
43385 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
43386 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
43387 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
43388 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
43389 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
43390 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
43391 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
43392 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
43393 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
43394 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
43395 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
43396 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
43397 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
43398 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
43399 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
43400 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
43401 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
43402 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
43403 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
43404 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
43405 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
43406 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
43407 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
43408 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
43409 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
43410 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
43411 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
43412 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
43413 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
43414 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
43415 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
43416 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
43417 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
43418 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
43419 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
43420 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
43421 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
43422 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
43423 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
43424 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
43425 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
43426 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
43427 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
43428 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
43429 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
43430 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
43431 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
43432 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
43433 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
43434 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
43435 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
43436 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
43437 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
43438 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
43439 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
43440 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
43441 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
43442 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
43443 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
43444 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
43445 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
43446 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
43447 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
43448 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
43449 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
43450 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
43451 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43452 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43453 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
43454 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
43455 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
43456 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
43457 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
43458 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
43459 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
43460 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
43461 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
43462 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
43463 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
43464 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
43465 snames.ads, sprint.adb, sprint.ads, stand.adb,
43466 stand.ads, stringt.adb, stringt.ads, style.adb,
43467 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
43468 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
43469 switch-m.ads, switch.adb, switch.ads, system.ads,
43470 table.adb, table.ads, targparm.adb, targparm.ads,
43471 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
43472 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
43473 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
43474 ttypef.ads, ttypes.ads, types.adb, types.ads,
43475 uintp.adb, uintp.ads, uname.adb, uname.ads,
43476 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
43477 usage.adb, usage.ads, validsw.adb, validsw.ads,
43478 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
43479 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
43480 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
43481 formatting and other trivial changes from ACT.
43483 2003-04-12 Zack Weinberg <zack@codesourcery.com>
43485 * gigi.h, utils2.c (build_constructor):
43486 Rename gnat_build_constructor. Use build_constructor.
43487 * decl.c (gnat_to_gnu_entity)
43488 * trans.c (tree_transform, pos_to_constructor, extract_values)
43489 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
43490 (unchecked_convert)
43491 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
43492 (fill_vms_descriptor):
43495 2003-04-06 Zack Weinberg <zack@codesourcery.com>
43497 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
43498 * misc.c (gnat_tree_size): New function.
43499 (LANG_HOOKS_TREE_SIZE): Override.
43501 2003-04-03 Jason Merrill <jason@redhat.com>
43503 * misc.c (gnat_adjust_rli): #if 0.
43505 2003-03-31 Geert Bosch <bosch@gnat.com>
43508 * link.c : Fix misspelled "const" keyword
43510 2003-03-23 Mark Mitchell <mark@codesourcery.com>
43513 * utils2.c: Adjust calls to put_var_into_stack.
43515 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
43517 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
43519 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
43521 * misc.c (gnat_init): Update for new prototype.
43523 2003-03-05 Olivier Hainque <hainque@gnat.com>
43526 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
43527 warning, and fix return type for the IN_RTS && !SJLJ case.
43529 2003-03-04 Tom Tromey <tromey@redhat.com>
43531 * Make-lang.in (ada.tags): New target.
43533 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
43536 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
43537 wrapper, which name remains constant whatever underlying GCC
43540 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
43541 the stable interface needed for a-except.
43543 2003-03-02 Andreas Jaeger <aj@suse.de>
43545 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43546 gnat_ug_wnt.texi: Regenerate.
43548 2003-03-02 Laurent Guerby <guerby@acm.org>
43550 * Makefile.in (install-gnatlib): Match previous change there
43553 2003-02-28 Andreas Schwab <schwab@suse.de>
43555 * Make-lang.in (install-gnatlib): Change to ada directory before
43556 running make instead of using ada/Makefile directly.
43558 2003-02-18 Ben Elliston <bje@redhat.com>
43560 Part of PR ada/9406
43561 * gnat_ug.texi (Binder output file): Grammar fix.
43563 2003-02-18 Ben Elliston <bje@redhat.com>
43566 * 5qtaprop.adb (Sleep): Fix typo in comment.
43568 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
43570 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
43571 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43572 gnat_ug_wnt.texi: Regenerate.
43574 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
43576 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
43577 be created if necessary.
43578 (ada.install-common): Let $(DESTDIR)$(bindir) be created
43579 if necessary. Remove erroneous and redundant gnatchop
43580 installation commands. Test for gnatdll before attempting
43582 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
43583 and gnatdll from all plausible locations.
43585 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
43587 * utils2.c (build_unary_op): Don't check flag_volatile.
43588 * gnat_ug.texi: Remove -fvolatile from example.
43589 * gnat_ug_vxw.texi: Likewise.
43591 2003-01-29 Laurent Guerby <guerby@acm.org>
43594 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
43595 * Makefile.in: match previous change.
43596 * Make-lang.in: match previous change.
43598 2003-01-29 Joel Sherrill <joel@OARcorp.com>
43600 * 5rosinte.ads: Add SIGXCPU.
43601 * 5rtpopsp.adb: New file.
43602 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
43603 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
43604 specific file 5rtpopsp.adb.
43605 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
43606 is likely needed for all newlib targets.
43607 * init.c: Add RTEMS specific version of __gnat_initialize().
43609 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43611 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
43613 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43615 * init.c (__gnat_error_handler): Make msg const.
43617 * gmem.c (convert_addresses): Move declaration ...
43618 * adaint.h: ... here.
43619 * adaint.c (convert_addresses): Adapt addrs type to match
43622 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
43624 2003-01-24 Andreas Schwab <schwab@suse.de>
43626 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
43627 size_t to avoid warning.
43629 2003-01-21 Zack Weinberg <zack@codesourcery.com>
43631 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
43633 2003-01-09 Geoffrey Keating <geoffk@apple.com>
43635 * gnat_rm.texi: Remove RCS version number.
43637 * ada-tree.h (union lang_tree_node): Add chain_next option.
43639 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
43641 * Make-lang.in (ada.install-info, ada.install-common,
43642 ada.uninstall): Prepend $(DESTDIR) to the destination
43643 directory in all (un)installation commands.
43644 * Makefile.in (install-gnatlib, install-rts): Ditto.
43646 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
43648 * gnat_rm.texi, gnat_ug.texi: Use @copying.
43649 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43650 gnat_ug_wnt.texi: Regenerate.
43652 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
43654 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
43656 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
43657 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
43658 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
43659 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
43660 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
43661 $(srcdir)/doc/include/gcc-common.texi.
43663 2002-12-15 Geert Bosch <bosch@gnat.com>
43665 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
43667 2002-12-14 Geert Bosch <bosch@gnat.com>
43670 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
43671 case of a body created for a Renaming_As_Body, on which
43672 conformance checks are not performed.
43674 2002-11-30 Zack Weinberg <zack@codesourcery.com>
43676 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
43677 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
43678 not already included.
43679 * Make-lang.in: Update dependencies.
43681 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
43682 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
43683 solution to buffer overflow bug on GNU/Linux.
43685 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
43689 * bindgen.adb: Remove all references to Public_Version.
43690 * comperr.adb: Remove all references to Public_Version and
43691 GNATPRO_Version; correct bug reporting instructions.
43692 * comperr.ads: Change to match bug box.
43693 * gnatvsn.ads: Remove all references to Public version and
43696 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
43699 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
43703 * config-lang.in: Remove diff_excludes.
43705 2002-11-05 Graham Stott <graham.stott@btinternet.com>
43708 * trans.c (gnu_pending_elaboration_lists): New GC root.
43709 (build_unit_elab): Use..
43711 2002-10-30 Geert Bosch <bosch@gnat.com>
43714 * misc.c : Include optabs.h
43716 * Make-lang.in (misc.o): Add dependency on optabs.h
43718 2002-10-29 Geert Bosch <bosch@gnat.com>
43721 * Make-lang.in (gnatbind): Depend on CONFIG_H
43723 2002-10-29 Geert bosch <bosch@gnat.com>
43726 * misc.c: Unrevert misc.c (1.13)
43728 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
43730 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
43731 maintainership comments.
43733 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
43736 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
43737 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
43738 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
43739 7staprop.adb: Correct statements in comments about
43740 maintainership of GNAT.
43743 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
43744 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
43745 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
43746 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
43747 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
43748 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
43749 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
43750 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
43751 comments about maintainership of GNAT.
43753 PR ada/6919 (forward port of patch for PR ada/5904)
43754 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
43755 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
43756 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
43757 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
43758 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
43759 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
43760 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
43761 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
43762 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
43763 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
43764 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
43765 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
43766 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
43767 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
43768 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
43769 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
43770 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
43771 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
43772 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
43773 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
43774 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
43775 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
43776 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
43777 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
43778 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
43779 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
43780 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
43781 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
43782 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
43783 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
43784 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
43785 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
43786 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
43787 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
43788 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
43789 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
43790 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
43791 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
43792 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
43793 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
43794 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
43795 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
43796 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
43797 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
43798 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
43799 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
43800 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
43801 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
43802 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
43803 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
43804 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
43805 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
43806 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
43807 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
43808 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
43809 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
43810 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
43811 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
43812 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
43813 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
43814 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
43815 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
43816 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
43817 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
43818 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
43819 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
43820 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
43821 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
43822 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
43823 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
43824 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
43825 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
43826 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
43827 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
43828 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
43829 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
43830 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
43831 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
43832 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
43833 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
43834 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
43835 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
43836 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
43837 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
43838 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
43839 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
43840 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
43841 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
43842 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
43843 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
43844 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
43845 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
43846 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
43847 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
43848 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
43849 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
43850 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
43851 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
43852 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
43853 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
43854 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
43855 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
43856 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
43857 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
43858 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
43859 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
43860 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
43861 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
43862 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
43863 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
43864 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
43865 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
43866 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
43867 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
43868 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
43869 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
43870 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
43871 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
43872 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
43873 par-endh.adb par-labl.adb par-load.adb par-prag.adb
43874 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
43875 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
43876 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
43877 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
43878 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
43879 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
43880 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
43881 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
43882 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
43883 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
43884 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
43885 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
43886 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
43887 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
43888 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
43889 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
43890 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
43891 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
43892 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
43893 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
43894 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
43895 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
43896 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
43897 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
43898 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
43899 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
43900 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
43901 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
43902 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
43903 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
43904 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
43905 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
43906 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
43907 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
43908 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
43909 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
43910 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
43911 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
43912 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
43913 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
43914 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
43915 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
43916 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
43917 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
43918 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
43919 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
43920 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
43921 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
43922 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
43923 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
43924 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
43925 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
43926 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
43927 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
43928 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
43929 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
43930 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
43931 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
43932 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
43933 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
43934 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
43935 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
43936 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
43937 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
43938 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
43939 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
43940 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
43941 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
43942 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
43943 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
43944 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
43945 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
43946 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
43947 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
43948 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
43949 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
43950 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
43951 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
43952 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
43953 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
43954 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
43955 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
43956 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
43957 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
43958 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
43959 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
43960 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
43961 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
43962 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
43963 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
43964 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
43965 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
43966 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
43967 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
43968 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
43969 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
43970 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
43971 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
43972 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
43973 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
43974 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
43975 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
43976 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
43977 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
43978 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
43979 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
43980 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
43981 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
43982 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
43983 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
43984 stringt.ads stringt.h style.adb style.ads stylesw.adb
43985 stylesw.ads switch.adb switch.ads sysdep.c system.ads
43986 table.adb table.ads targparm.adb targparm.ads targtyps.c
43987 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
43988 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
43989 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
43990 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
43991 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
43992 usage.ads utils.c utils2.c validsw.adb validsw.ads
43993 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
43994 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
43995 xtreeprs.adb: Correct statements in comments about maintainership
43998 2002-09-23 Zack Weinberg <zack@codesourcery.com>
44000 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
44001 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
44002 * gnatvsn.ads: Gnat_Version_String is now a function.
44003 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
44004 copy the C version_string into a String and return it.
44005 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
44006 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
44007 Remove pragma Ident (Gnat_Version_String). If this was the
44008 sole use of package Gnatvsn, remove the with statement too.
44009 * gnat1drv.adb: Tweak -gnatv output.
44011 2002-09-17 Richard Henderson <rth@redhat.com>
44013 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
44014 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
44015 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
44016 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
44017 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
44018 and real_2expN instead of a loop.
44019 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
44020 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
44022 2002-08-25 Andre Leis <a.leis@gmx.net>
44023 David Billinghurst <David.Billinghurst@riotinto.com>
44025 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
44027 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44029 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
44030 Remove $(CONFIG_H) dependency.
44032 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
44034 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
44036 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44038 * adadecode.c (ada_demangle): Use xstrdup in lieu of
44040 * misc.c (gnat_decode_option): Likewise.
44042 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
44044 * make.adb (Add_Switch): Make Generic_Position a procedure. The
44045 function approach did not work well because of a side effect (the
44046 function call could reallocate the table which was being indexed
44047 using its result). Fixes ada/4851. [RESURRECTED]
44049 2002-07-01 Roger Sayle <roger@eyesopen.com>
44051 * ada/utils.c (builtin_function): Accept an additional parameter.
44053 2002-06-28 Andreas Jaeger <aj@suse.de>
44056 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
44059 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44061 * Makefile.in (SHELL): Set to @SHELL@.
44063 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44065 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
44066 array size calculation.
44068 2002-06-04 Andreas Jaeger <aj@suse.de>
44070 * Make-lang.in (gnatbind): Readd rule that has been lost in last
44073 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
44075 Merge from pch-branch:
44077 * config-lang.in (gtfiles): Add ada-tree.h.
44078 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
44079 (SET_TYPE_MODULUS): New.
44080 (SET_TYPE_INDEX): New.
44081 (SET_TYPE_DIGITS_VALUE): New.
44082 (SET_TYPE_RM_SIZE): New.
44083 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
44084 (SET_TYPE_ADA_SIZE): New.
44085 (SET_TYPE_ACTUAL_BOUNDS): New.
44086 (SET_DECL_CONST_CORRESPONDING_VAR): New.
44087 (SET_DECL_ORIGINAL_FIELD): New.
44088 (TREE_LOOP_ID): Correct typo.
44089 * decl.c: Use new macros.
44090 * utils.c: Include debug.h, use new macros.
44091 * utils2.c: Use new macros.
44093 * ada-tree.h: Update all macros for new tree description.
44094 (struct tree_loop_id): New.
44095 (union lang_tree_node): New.
44096 (struct lang_decl): New.
44097 (struct lang_type): New.
44098 * misc.c (gnat_mark_tree): Delete.
44099 (LANG_HOOKS_MARK_TREE): Delete.
44100 * trans.c (tree_transform): No longer any need to cast
44103 * utils.c (struct language_function): New dummy structure.
44105 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
44106 (misc.o): Likewise.
44107 (utils.o): Likewise; also gtype-ada.h.
44108 * Make-lang.in (gnat1): Add dependency on s-gtype.
44109 (gnatbind): Add dependency on $(CONFIG_H).
44110 * utils.c: Correct last #include.
44111 (stuct e_stack): Remove unnecessary 'static'.
44112 (mark_e_stack): Remove unused prototype.
44114 * scn-nlit.adb: Remove whitespace after version number to
44115 keep lines under 80 chars.
44116 * snames.adb: Likewise.
44117 * treepr.ads: Likewise.
44119 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
44120 (misc.o): Likewise.
44121 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
44122 * config-lang.in (gtfiles): New.
44123 * decl.c: Use gengtype for roots.
44124 * gigi.h: Use gengtype for roots.
44125 * trans.c: Use gengtype for roots.
44126 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
44128 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
44130 * misc.c (gnat_init): Adjust setting of internal_error_function.
44132 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
44134 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
44135 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44136 gnat_ug_wnt.texi: Regenerate.
44138 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
44140 * 5ntaprop.adb (with System.OS_Primitives): Remove.
44142 * cstreams.c (max_path_len): Move from here ...
44143 * adaint.c (__gnat_max_path_len): ... to here.
44144 * adaint.c (__gnat_max_path_len): Declare.
44145 * g-dirope.adb (Max_Path): Adjust.
44146 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
44147 * i-cstrea.ads (max_path_len): Adjust.
44148 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
44149 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
44151 * Makefile.in, Make-lang.in: Documentation is now built in
44152 Make-lang.in. Store Info and generated Texinfo files in the
44154 * gnat_ug.texi: Remove CVS keywords, correct version number.
44155 Set file name correctly.
44157 * gnat_ug_*.texi: Add.
44158 * .cvsignore: Ignore generated Texinfo files.
44160 2002-05-30 Zack Weinberg <zack@codesourcery.com>
44162 * ada.h: Add MI guard macro.
44163 (SUBTYPE): Define constants with an anonymous enum, not static
44165 (IN): Cast constants to appropriate type before use.
44167 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
44169 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
44172 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44174 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
44175 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
44176 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
44177 (ALL_ADA_CFLAGS): Likewise.
44178 (ADA_INCLUDES): Likewise.
44179 Adapt for new working dir.
44180 (GNATBIND): Use Makefile.in version.
44181 (.SUFFIXES): Copy from Makefile.in.
44182 (ada-warn): Define.
44183 (.adb.o, .ads.o): Copy from Makefile.in.
44184 Added $(OUTPUT_OPTION).
44185 (GNAT1_C_OBJS): Moved from Makefile.in.
44186 Prefix with ada subdir.
44187 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
44188 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
44189 Adapt for new working dir.
44190 (EXTRA_GNATBIND_OBJS): Likewise.
44191 (ADA_BACKEND): Moved from Makefile.in.
44192 Renamed to avoid conflict with global BACKEND.
44194 (TARGET_ADA_SRCS): Moved from Makefile.in.
44195 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
44197 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
44198 (ada_extra_files): Moved from Makefile.in.
44199 Prefix with ada subdir.
44200 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
44201 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
44202 (ada/nmake.ads): Likewise.
44203 (update-sources): Moved from Makefile.in.
44204 Prefix with ada subdir.
44205 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
44206 (ADA_TREE_H): Likewise.
44207 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
44208 (ada/memtrack.o): Likewise.
44209 (ada/adadecode.o): Likewise.
44210 Update dependencies.
44211 (ada/adaint.o): New.
44212 (ada/argv.o): Moved from Makefile.in.
44213 Prefix with ada subdir.
44214 Update dependencies.
44215 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
44216 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
44217 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
44218 Prefix with ada subdir.
44219 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
44220 (GNAT DEPENDENCIES): Regenerate.
44221 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
44222 toplevel Makefile.in.
44223 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
44224 (TARGET_ADA_SRCS): Removed.
44225 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
44226 (GNATBIND_OBJS): Likewise.
44227 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
44228 (BACKEND): Removed.
44229 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
44230 (TREE_H): Likewise.
44231 (ada_extra_files): Likewise.
44232 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
44233 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
44234 (update-sources): Likewise.
44235 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
44236 (ADA_TREE_H): Likewise.
44237 (adadecoce.o): Likewise.
44238 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
44239 (GNAT DEPENDENCIES): Likewise.
44241 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44243 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
44244 * Makefile.in: Likewise.
44246 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44248 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
44249 Restore $(CONFIG_H) and prefix.o dependencies.
44250 (ada.stage[1-4]): Depend on stage?-start.
44252 * Makefile.in (b_gnatb.c): Depend on interfac.o.
44254 2002-05-02 Jim Wilson <wilson@redhat.com>
44256 * utils.c (finish_record_type): Change record_size to record_type.
44258 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
44260 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
44261 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
44262 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
44264 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
44266 * misc.c (gnat_parse_file): Update.
44268 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
44270 * misc.c (gnat_init): Don't set lang_attribute_common.
44272 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
44274 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
44276 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
44278 * gnat_ug.texi: New file.
44280 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
44281 instead of gfdl.texi
44283 * xgnatug.adb, ug_words: New files.
44285 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
44286 gnat_rm and gnat-style manuals.
44288 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
44290 * gigi.h (incomplete_type_error): Remove.
44291 * utils.c (incomplete_type_error): Remove.
44293 2002-04-16 Mark Mitchell <mark@codesourcery.com>
44295 * trans.c (tree_transform): Add has_scope argument to
44296 expand_start_stmt_expr.
44298 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44300 * gigi.h (truthvalue_conversion): Rename.
44301 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
44302 * trans.c (tree_transform): Update.
44303 * utils2.c (truthvalue_conversion): Rename, update.
44304 (build_binary_op, build_unary_op): Update.
44306 2002-04-04 Laurent Guerby <guerby@acm.org>
44308 * make.adb: Implement -margs, remove restriction about file name placement.
44309 * makeusg.adb: Documentation update.
44310 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
44311 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
44313 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44315 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
44316 (builtin_function): Similarly.
44318 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44320 * decl.c (gnat_to_gnu_entity): Update.
44321 * gigi.h (mark_addressable): Rename.
44322 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
44323 * trans.c (tree_transform): Update.
44324 * utils.c (create_var_decl): Update.
44325 * util2.c (build_binary_op, build_unary_op,
44326 fill_vms_descriptor): Update.
44327 (mark_addressable): Rename, update.
44329 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44331 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
44333 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
44334 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
44335 * trans.c (tree_transform, convert_with_check): Update.
44336 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
44339 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
44341 * gigi.h (finish_incomplete_decl): Rename.
44342 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
44343 * utils.c (gnat_init_decl_processing): Don't set hook.
44344 (finish_incomplete_decl): Rename.
44346 2002-03-29 Andreas Schwab <schwab@suse.de>
44348 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
44351 2001-03-28 Robert Dewar <dewar@gnat.com>
44354 (Remove_Checks): New procedure
44357 (Remove_Checks): New procedure
44360 Use new Duplicate_Subexpr functions
44361 (Duplicate_Subexpr_No_Checks): New procedure
44362 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44363 (Duplicate_Subexpr): Restore original form (checks duplicated)
44364 (Duplicate_Subexpr): Call Remove_Checks
44367 (Duplicate_Subexpr_No_Checks): New procedure
44368 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44369 Add 2002 to copyright notice
44371 * sem_util.adb: Use new Duplicate_Subexpr functions
44374 (Eval_Indexed_Component): This is the place to call
44375 Constant_Array_Ref and to replace the value. We simply merge
44376 the code of this function in here, since it is now no longer
44377 used elsewhere. This fixes the problem of the back end not
44378 realizing we were clever enough to see that this was
44380 (Expr_Val): Remove call to Constant_Array_Ref
44381 (Expr_Rep_Val): Remove call to Constant_Array_Ref
44383 (Constant_Array_Ref): Deal with string literals (patch
44384 suggested by Zack Weinberg on the gcc list)
44386 2001-03-28 Ed Schonberg <schonber@gnat.com>
44388 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
44389 Duplicate_Subexpr_Move_Checks.
44391 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
44392 Duplicate_Subexpr_Move_Checks.
44394 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
44395 value of array exists before retrieving it (it may a private
44396 protected component in a function).
44398 2002-03-28 Geert Bosch <bosch@gnat.com>
44400 * prj-pp.adb : New file.
44402 * prj-pp.ads : New file.
44404 2002-03-28 Andreas Jaeger <aj@suse.de>
44406 * Makefile.in (stamp-sdefault): Fix path for Makefile.
44408 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
44410 * misc.c (gnat_expand_expr): Move prototype.
44412 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44414 * misc.c (insert_default_attributes): Remove.
44416 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44418 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
44419 (gnat_init): Don't set hook.
44420 (gnat_expand_expr): Fix prototype.
44422 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44424 * misc.c (ggc_p): Remove.
44426 2002-03-27 Geert Bosch <bosch@gnat.com>
44428 * prj-makr.ads, prj-makr.adb : New files.
44430 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
44432 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
44433 (lang_mark_tree): Make static, rename.
44435 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
44437 * misc.c (maybe_build_cleanup): Remove.
44439 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
44441 * gigi.h (yyparse): Remove.
44443 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
44445 From Ben Brosgol <brosgol@gnat.com>
44446 * gnat_rm.texi: Sync with ACT version.
44448 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
44450 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
44451 (gnat_init): Remove old hook.
44453 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
44455 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
44456 (yyparse): Rename gnat_parse_file.
44458 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
44460 Delete all lines containing "$Revision:".
44461 * xeinfo.adb: Don't look for revision numbers.
44462 * xnmake.adb: Likewise.
44463 * xsinfo.adb: Likewise.
44464 * xsnames.adb: Likewise.
44465 * xtreeprs.adb: Likewise.
44467 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44469 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
44470 gnat_tree_code_name): Delete.
44471 (tree_code_type, tree_code_length, tree_code_name): Define.
44472 (gnat_init): Don't try to copy into the various tree_code
44475 2002-03-11 Richard Henderson <rth@redhat.com>
44477 * Makefile.in (.NOTPARALLEL): Add fake tag.
44479 2002-03-07 Geert Bosch <bosch@gnat.com>
44481 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
44482 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
44483 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
44484 switch-m.adb, switch-m.ads : New files.
44486 2002-03-07 Geert Bosch <bosch@gnat.com>
44488 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
44489 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
44490 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
44491 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
44492 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
44493 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
44494 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
44495 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
44496 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
44497 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
44498 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
44499 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
44500 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
44501 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
44502 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
44503 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
44504 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
44505 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
44506 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
44507 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
44508 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
44509 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
44510 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
44511 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
44512 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
44513 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
44514 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
44515 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
44516 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
44517 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
44518 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
44519 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
44520 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
44521 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
44522 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
44523 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
44524 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
44525 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
44526 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
44527 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
44528 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
44529 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
44530 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
44531 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
44532 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
44533 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
44534 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
44535 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
44536 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
44537 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
44538 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
44539 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
44540 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
44541 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
44542 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
44543 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
44544 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
44545 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
44546 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
44547 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
44548 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
44549 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
44550 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
44551 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
44552 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
44553 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
44554 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
44555 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
44556 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
44557 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
44558 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
44559 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
44560 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
44561 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
44562 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
44563 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
44564 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
44565 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
44566 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
44567 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
44568 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
44569 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
44570 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
44571 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
44572 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
44573 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
44574 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
44575 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
44576 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
44577 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
44578 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
44579 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
44580 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
44581 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
44582 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
44583 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
44584 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
44586 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
44587 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
44588 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
44589 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
44591 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
44592 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
44594 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
44595 to mdll-fil.ad[bs] and mdll-util.ad[bs]
44597 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
44598 from mdllfile.ad[bs] and mdlltool.ad[bs]
44600 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44602 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
44603 lieu of explicit sizeof/sizeof.
44605 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
44607 * misc.c (copy_lang_decl): Remove.
44609 2002-02-27 Zack Weinberg <zack@codesourcery.com>
44611 * misc.c: Delete traditional-mode-related code copied from the
44612 C front end but not used, or used only to permit the compiler
44615 2002-02-07 Richard Henderson <rth@redhat.com>
44617 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
44618 * adaint.h (__gnat_to_gm_time): Update prototype.
44620 2002-01-30 Richard Henderson <rth@redhat.com>
44622 * trans.c (tree_transform) [N_Loop_Statement]: Use
44623 expand_exit_loop_top_cond.
44625 2001-12-23 Richard Henderson <rth@redhat.com>
44627 * utils.c (end_subprog_body): Push GC context around
44628 rest_of_compilation for nested functions.
44630 2001-12-23 Richard Henderson <rth@redhat.com>
44632 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
44634 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
44636 * gnat-style.texi (Declarations and Types): Remove ancient style
44637 rule which was mandated by code generation issues.
44639 * gnat-style.texi (header): Add @dircategory, @direntry.
44640 (title page): Remove date.
44641 (general) Add @./@: where approriate, and two spaces after the
44642 full stop at the end of a sentence. Use @samp markup when
44643 referring concrete lexical entities (keywords, attribute names
44644 etc.), and @syntax for ARM grammar elements. Use @r for English
44645 text in comments. Use @emph for emphasis. Change "if-statements"
44646 etc. to "if statements" (without @samp). Break long lines. Make
44647 casing of section names consistent.
44648 (Identifiers): Use @samp markup for variable names.
44649 (Comments): Use @samp markup for comment characters. Line-end
44650 comments may follow any Ada code, not just statements. Fix
44651 misspelling of "Integer" as "integer".
44652 (Loop statements): Do not use variable name "I", use "J".
44653 (Subprogram Declarations): Document alignment.
44654 (Subprogram Bodies, Block statements): Document empty line before
44657 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
44659 * make.adb (Add_Switch): Make Generic_Position a procedure. The
44660 function approach did not work well because of a side effect (the
44661 function call could reallocate the table which was being indexed
44662 using its result). Fixes ada/4851.
44664 2001-12-19 Robert Dewar <dewar@gnat.com>
44666 * bindgen.adb: Minor reformatting
44668 * cstand.adb: Minor reformatting
44670 * fmap.adb: Minor reformatting
44671 Change name from Add for Add_To_File_Map (Add is much too generic)
44672 Change Path_Name_Of to Mapped_Path_Name
44673 Change File_Name_Of to Mapped_File_Name
44674 Fix copyright dates in header
44677 Change name from Add for Add_To_File_Map (Add is much too generic)
44678 Change Path_Name_Of to Mapped_Path_Name
44679 Change File_Name_Of to Mapped_File_Name
44680 Fix copyright dates in header
44682 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
44683 Add use clause for Fmap.
44685 * make.adb: Minor reformatting
44687 * osint.adb: Minor reformatting. Change of names in Fmap.
44688 Add use clause for Fmap.
44690 * prj-env.adb: Minor reformatting
44692 * prj-env.ads: Minor reformatting
44694 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
44695 error found (there were odd exceptions to this general rule in
44696 -gnatec/-gnatem processing)
44698 2001-12-19 Olivier Hainque <hainque@gnat.com>
44700 * raise.c (__gnat_eh_personality): Exception handling personality
44701 routine for Ada. Still in rough state, inspired from the C++ version
44702 and still containing a bunch of debugging artifacts.
44703 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
44704 inspired from the C++ library.
44706 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
44707 exception handling integration.
44709 2001-12-19 Arnaud Charlet <charlet@gnat.com>
44711 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
44712 (HIE_SOURCES): Add s-secsta.ad{s,b}.
44713 (HIE_OBJS): Add s-fat*.o
44714 (RAVEN_SOURCES): Remove files that are no longer required. Add
44715 interrupt handling files.
44716 (RAVEN_MOD): Removed, no longer needed.
44718 2001-12-19 Robert Dewar <dewar@gnat.com>
44720 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
44721 Add 2001 to copyright date
44723 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
44724 need to force universal inlining for these cases.
44726 2001-12-19 Arnaud Charlet <charlet@gnat.com>
44728 * s-taprob.adb: Minor clean ups so that this unit can be used in
44731 * exp_ch7.adb: Allow use of secondary stack in HI mode.
44732 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
44734 2001-12-19 Vincent Celier <celier@gnat.com>
44736 * prj-tree.ads (Project_Node_Record): Add comments for components
44737 Pkg_Id and Case_Insensitive.
44739 2001-12-19 Pascal Obry <obry@gnat.com>
44741 * g-socket.adb: Minor reformatting. Found while reading code.
44743 2001-12-19 Robert Dewar <dewar@gnat.com>
44745 * prj-tree.ads: Minor reformatting
44747 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
44749 * config-lang.in (diff_excludes): Remove.
44751 2001-12-17 Ed Schonberg <schonber@gnat.com>
44753 * sem_res.adb (Resolve_Selected_Component): do not generate a
44754 discriminant check if the selected component is a component of
44755 the argument of an initialization procedure.
44757 * trans.c (tree_transform, case of arithmetic operators): If result
44758 type is private, the gnu_type is the base type of the full view,
44759 given that the full view itself may be a subtype.
44761 2001-12-17 Robert Dewar <dewar@gnat.com>
44763 * sem_res.adb: Minor reformatting
44765 * trans.c (tree_transform, case N_Real_Literal): Add missing third
44766 parameter in call to Machine (unknown horrible effects from this
44769 * urealp.h: Add definition of Round_Even for call to Machine
44770 Add third parameter for Machine
44772 2001-12-17 Ed Schonberg <schonber@gnat.com>
44774 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
44775 predefined units in No_Run_Time mode.
44777 2001-12-17 Richard Kenner <kenner@gnat.com>
44779 * misc.c (insn-codes.h): Now include.
44781 2001-12-17 Olivier Hainque <hainque@gnat.com>
44783 * a-except.adb: Preparation work for future integration of the GCC 3
44784 exception handling mechanism
44785 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
44786 to factorize previous code sequences and make them externally callable,
44787 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
44788 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
44789 Use the new notification routines.
44791 2001-12-17 Emmanuel Briot <briot@gnat.com>
44793 * prj-tree.ads (First_Choice_Of): Document the when others case
44795 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44797 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
44798 HI-E mode, in order to support Ravenscar profile properly.
44800 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
44801 mode on 32 bits targets.
44803 2001-12-17 Vincent Celier <celier@gnat.com>
44805 * fmap.adb: Initial version.
44807 * fmap.ads: Initial version.
44809 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
44810 If search is successfully done, add to mapping.
44812 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
44815 (Gnatmake): Add new local variable Mapping_File_Name.
44816 Create mapping file when using project file(s).
44817 Delete mapping file before exiting.
44819 * opt.ads (Mapping_File_Name): New variable
44821 * osint.adb (Find_File): Use path name found in mapping, if any.
44823 * prj-env.adb (Create_Mapping_File): New procedure
44825 * prj-env.ads (Create_Mapping_File): New procedure.
44827 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
44830 * usage.adb: Add entry for new switch -gnatem.
44832 * Makefile.in: Add dependencies for fmap.o.
44834 2001-12-17 Ed Schonberg <schonber@gnat.com>
44836 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
44837 is a package instantiation rewritten as a package body.
44838 (Install_Withed_Unit): Undo previous change, now redundant.
44840 2001-12-17 Gary Dismuke <dismukes@gnat.com>
44843 (Compute_Length): Move conversion to Unsigned to callers.
44844 (Get_Max_Size): Convert Len expression to Unsigned after calls to
44845 Compute_Length and Determine_Range.
44846 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
44847 Compute_Length and Determine_Range.
44848 Above changes fix problem with length computation for supernull arrays
44849 where Max (Len, 0) wasn't getting applied due to the Unsigned
44850 conversion used by Compute_Length.
44852 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44855 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
44856 System.Secondary_Stack.
44857 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
44859 Remove unused entity RE_Exception_Data.
44861 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
44863 * rident.ads (No_Secondary_Stack): New restriction.
44865 2001-12-17 Joel Brobecker <brobecke@gnat.com>
44867 * gnat_rm.texi: Fix minor typos. Found while reading the section
44868 regarding "Bit_Order Clauses" that was sent to a customer.
44869 Very interesting documentation!
44871 2001-12-17 Robert Dewar <dewar@gnat.com>
44873 * sem_case.adb (Choice_Image): Avoid creating improper character
44874 literal names by using the routine Set_Character_Literal_Name. This
44875 fixes bombs in certain error message cases.
44877 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44879 * a-reatim.adb: Minor reformatting.
44881 2001-12-17 Ed Schonberg <schonber@gnat.com>
44883 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
44884 case where the formal is an extension of another formal in the current
44885 unit or in a parent generic unit.
44887 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44889 * s-tposen.adb: Update comments. Minor reformatting.
44890 Minor code clean up.
44892 * s-tarest.adb: Update comments. Minor code reorganization.
44894 2001-12-17 Gary Dismukes <dismukes@gnat.com>
44896 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
44899 2001-12-17 Robert Dewa <dewar@gnat.com>
44901 * exp_attr.adb: Minor reformatting
44903 2001-12-17 Ed Schonberg <schonber@gnat.com>
44905 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
44906 derivations nested within a child unit: verify that the parent
44907 type is declared in an outer scope.
44909 2001-12-17 Robert Dewar <dewar@gnat.com>
44911 * sem_ch12.adb: Minor reformatting
44913 2001-12-17 Ed Schonberg <schonber@gnat.com>
44915 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
44916 warning if current unit is a predefined one, from which bodies may
44919 2001-12-17 Robert Dewar <dewar@gnat.com>
44921 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
44922 Fix header format. Add 2001 to copyright date.
44924 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
44925 which caused CE during compilation if checks were enabled.
44927 2001-12-17 Vincent Celier <celier@gnat.com>
44930 (Switches_Of): New function
44931 (Test_If_Relative_Path): New procedure
44932 (Add_Switches): Use new function Switches_Of
44933 (Collect_Arguments_And_Compile): Use new function Switches_Of.
44934 When using a project file, test if there are any relative
44935 search path. Fail if there are any.
44936 (Gnatmake): Only add switches for the primary directory when not using
44937 a project file. When using a project file, change directory to the
44938 object directory of the main project file. When using a project file,
44939 test if there are any relative search path. Fail if there are any.
44940 When using a project file, fail if specified executable is relative
44941 path with directory information, and prepend executable, if not
44942 specified as an absolute path, with the exec directory. Make sure
44943 that only one -o switch is transmitted to the linker.
44945 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
44948 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
44949 when using a non standard naming scheme.
44950 (Check_Ada_Naming_Scheme): Make sure that error messages
44951 do not raise exceptions.
44952 (Is_Illegal_Append): Return True if there is no dot in the suffix.
44953 (Language_Independent_Check): Check the exec directory.
44955 * prj.adb (Project_Empty): Add new component Exec_Directory
44958 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
44959 (Project_Data): Add component Exec_Directory
44961 * snames.adb: Updated to match snames.ads revision 1.215
44963 * snames.ads: Added Exec_Dir
44965 2001-12-17 Robert Dewar <dewar@gnat.com>
44967 * make.adb: Minor reformatting
44969 * prj-nmsc.adb: Minor reformatting
44971 * snames.adb: Updated to match snames.ads
44973 * snames.ads: Alphebetize entries for project file
44975 2001-12-17 Ed Schonberg <schonber@gnat.com>
44977 * trans.c (process_freeze_entity): Do nothing if the entity is a
44978 subprogram that was already elaborated.
44980 2001-12-17 Richard Kenner <kenner@gnat.com>
44982 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
44983 and Esize if object is referenced via pointer.
44985 2001-12-17 Ed Schonberg <schonber@gnat.com>
44987 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
44988 is discrete before analyzing choices.
44990 2001-12-17 Joel Brobecker <brobecke@gnat.com>
44992 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
44993 containing the name of the Ada Main Program. This string is mainly
44994 intended for the debugger.
44995 (Gen_Output_File_C): Do the equivalent change when generating a C file.
44997 2001-12-17 Robert Dewar <dewar@gnat.com>
44999 * ali.adb: Set new Dummy_Entry field in dependency entry
45001 * ali.ads: Add Dummy_Entry field to source dependency table
45003 * bcheck.adb (Check_Consistency): Ignore dummy D lines
45005 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
45007 * lib-writ.ads: Document dummy D lines for missing files.
45009 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
45011 2001-12-17 Robert Dewar <dewar@gnat.com>
45013 * ali.adb: Type reference does not reset current file.
45015 * ali.adb: Recognize and scan renaming reference
45017 * ali.ads: Add spec for storing renaming references.
45019 * lib-xref.ads: Add documentation for handling of renaming references
45021 * lib-xref.adb: Implement output of renaming reference.
45024 (Determine_Range): Document local variables
45025 (Determine_Range): Make sure Hbound is initialized. It looks as though
45026 there could be a real problem here with an uninitialized reference
45027 to Hbound, but no actual example of failure has been found.
45029 2001-12-17 Laurent Pautet <pautet@gnat.com>
45032 Fix comment of Shutdown_Socket and Close_Socket. These functions
45033 should not fail silently because if they are called twice, this
45034 probably means that there is a race condition in the user program.
45035 Anyway, this behaviour is consistent with the rest of this unit.
45036 When an error occurs, an exception is raised with the error message
45037 as exception message.
45039 2001-12-17 Robert Dewar <dewar@gnat.com>
45041 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
45042 that it happens before modification of Sloc values for -gnatD.
45044 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
45045 so that it happens before modification of Sloc values for -gnatD.
45047 * switch.adb: Minor reformatting
45049 2001-12-15 Richard Henderson <rth@redhat.com>
45051 * sem_ch7.adb: Wrap comment.
45053 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
45055 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
45056 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
45057 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
45058 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
45059 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
45060 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
45061 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
45062 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
45063 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
45064 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
45065 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
45066 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
45067 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
45068 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
45069 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
45070 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
45071 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
45072 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
45073 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
45074 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
45075 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
45076 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
45077 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
45078 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
45081 2001-12-14 Vincent Celier <celier@gnat.com>
45083 * osint.adb(Create_Debug_File): When an object file is specified,
45084 put the .dg file in the same directory as the object file.
45086 2001-12-14 Robert Dewar <dewar@gnat.com>
45088 * osint.adb: Minor reformatting
45090 * lib-xref.adb (Output_Instantiation): New procedure to generate
45091 instantiation references.
45093 * lib-xref.ads: Add documentation of handling of generic references.
45095 * ali.adb (Read_Instantiation_Ref): New procedure to read
45096 instantiation references
45098 * ali.ads: Add spec for storing instantiation references
45100 * bindusg.adb: Minor reformatting
45102 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45104 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45106 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45108 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45112 Add 2001 to copyright date
45113 Add entry for Latin-5 (Cyrillic ISO-8859-5)
45115 2001-12-14 Matt Gingell <gingell@gnat.com>
45117 * adaint.c: mktemp is a macro on Lynx and can not be used as an
45120 2001-12-14 Richard Kenner <kenner@gnat.com>
45122 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
45123 if operand is CONSTRUCTOR.
45125 2001-12-14 Ed Schonberg <schonber@gnat.com>
45127 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
45128 before emiting check on right-hand side, so that exception information
45131 2001-12-14 Richard Kenner <kenner@gnat.com>
45133 * utils.c (create_var_decl): Throw away initializing expression
45134 if just annotating types and non-constant.
45136 2001-12-14 Vincent Celier <celier@gnat.com>
45138 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
45141 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
45143 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
45145 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
45147 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
45149 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
45151 * ChangeLog: Remove piece of diff output.
45153 2001-12-14 Geert Bosch <bosch@gnat.com>
45155 * config-lang.in: Update copyright notice
45157 * layout.adb: Remove commented out code.
45159 * mdllfile.ads: Update copyright notice. Fix header format.
45161 * sem_case.ads: Likewise.
45163 * sem_ch3.adb: Minor reformatting.
45165 2001-12-12 Geert Bosch <bosch@gnat.com>
45167 * freeze.ads: Update copyright date.
45169 * g-comlin.ads: Minor reformatting.
45171 * gnat-style.texi: Fix typo.
45173 2001-12-12 Geert Bosch <bosch@gnat.com>
45175 * einfo.h: Regenerate.
45177 2001-12-12 Ed Schonberg <schonber@gnat.com>
45179 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
45180 on known node types, rather than untyped fields. Further cleanups.
45182 2001-12-12 Robert Dewar <dewar@gnat.com>
45185 (Save_Entity_Descendant): Minor comment update.
45186 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
45187 of an N_Attribute_Reference node. As per note below, this does not
45188 eliminate need for Associated_Node in attribute ref nodes.
45189 (Associated_Node): Documentation explicitly mentions attribute
45190 reference nodes, since this field is used in such nodes.
45192 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
45194 2001-12-12 Robert Dewar <dewar@gnat.com>
45196 * s-stalib.adb: Add more comments on with statements being needed
45198 * par-ch12.adb: Minor reformatting
45200 * prj-dect.ads: Fix copyright header
45202 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
45203 inputs fit in 32 bits, but the result still overflows.
45205 * s-fatgen.ads: Minor comment improvement
45207 2001-12-12 Ed Schonberg <schonber@gnat.com>
45209 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
45210 formal derived type, look for an inherited component from the full
45211 view of the parent, if any.
45213 2001-12-12 Robert Dewar <dewar@gnat.com>
45215 * checks.ads (Apply_Alignment_Check): New procedure.
45217 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
45218 ensure that the alignment of objects with address clauses is
45219 appropriate, and raise PE if not.
45221 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
45222 Exp_Pakd.Known_Aligned_Enough
45224 * mdllfile.ads: Minor reformatting
45226 * mlib-fil.ads: Minor reformatting
45228 2001-12-12 Ed Schonberg <schonber@gnat.com>
45230 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
45231 fix to any component reference if enclosing record has non-standard
45234 2001-12-12 Vincent Celier <celier@gnat.com>
45236 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
45239 2001-12-12 Ed Schonberg <schonber@gnat.com>
45241 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
45244 2001-12-12 Robert Dewar <dewar@gnat.com>
45246 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
45248 2001-12-12 Emmanuel Briot <briot@gnat.com>
45250 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
45251 and it adds dependencies to system.io.
45253 2001-12-12 Pascal Obry <obry@gnat.com>
45255 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
45258 2001-12-11 Ed Schonberg <schonber@gnat.com>
45260 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
45261 that is the parent of other generics, the instance body replaces the
45262 instance node. Retrieve the instance of the spec, which is the one
45263 that is visible in clients and within the body.
45265 2001-12-11 Vincent Celier <celier@gnat.com>
45267 * gnatmain.adb: Initial version.
45269 * gnatmain.ads: Initial version.
45271 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
45273 * snames.adb: Updated to match snames.ads.
45275 * snames.ads: Added Gnatstub.
45277 2001-12-11 Vincent Celier <celier@gnat.com>
45279 * prj-attr.adb (Initialization_Data): Change name from
45280 Initialisation_Data.
45282 2001-12-11 Emmanuel Briot <briot@gnat.com>
45284 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
45285 + and * applied to backslashed expressions like \r.
45287 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
45289 * g-os_lib.ads: String_List type added, Argument_List type is now
45290 subtype of String_List.
45292 2001-12-11 Robert Dewar <dewar@gnat.com>
45294 * g-os_lib.ads: Change copyright to FSF
45295 Add comments for String_List type
45297 2001-12-11 Vincent Celier <celier@gnat.com>
45299 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
45300 string to the buffer).
45302 2001-12-11 Ed Schonberg <schonber@gnat.com>
45304 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
45307 * sem_attr.adb: Simplify previous fix for Address.
45308 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
45309 to avoid anomalies where the bound of the type appears to raise
45312 2001-12-11 Robert Dewar <dewar@gnat.com>
45314 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
45317 2001-12-11 Ed Schonber <schonber@gnat.com>
45319 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
45320 renamed unit before checking for recursive instantiations.
45322 2001-12-11 Emmanuel Briot <briot@gnat.com>
45324 * prj.ads: Add comments for some of the fields.
45326 2001-12-11 Robert Dewar <dewar@gnat.com>
45328 * lib-xref.adb (Output_Refs): Don't output type references outside
45329 the main unit if they are not otherwise referenced.
45331 2001-12-11 Ed Schonberg <schonber@gnat.com>
45333 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
45334 code and diagnose additional illegal uses
45336 * sem_util.adb (Is_Object_Reference): An indexed component is an
45337 object only if the prefix is.
45339 2001-12-11 Vincent Celier <celier@gnat.com>
45341 * g-diopit.adb: Initial version.
45343 * g-diopit.ads: Initial version.
45346 (Expand_Path): Avoid use of Unbounded_String
45347 (Find, Wildcard_Iterator): Moved to child package Iteration
45349 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
45351 2001-12-11 Robert Dewar <dewar@gnat.com>
45353 * sem_attr.adb: Minor reformatting
45355 2001-12-11 Ed Schonberg <schonber@gnat.com>
45357 * sem_ch3.adb: Clarify some ???.
45359 2001-12-11 Robert Dewar <dewar@gnat.com>
45361 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
45362 Exp_Pakd.Known_Aligned_Enough
45364 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
45365 version is moved to Exp_Ch13.
45367 2001-12-11 Robert Dewar <dewar@gnat.com>
45369 * einfo.ads: Minor reformatting
45371 * exp_ch5.adb: Add comment for previous.change
45373 * ali.adb: New interface for extended typeref stuff.
45375 * ali.ads: New interface for typeref stuff.
45377 * checks.adb (Apply_Alignment_Check): New procedure.
45379 * debug.adb: Add -gnatdM for modified ALI output
45381 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
45383 * lib-xref.adb: Extend generation of <..> notation to cover
45384 subtype/object types. Note that this is a complete rewrite,
45385 getting rid of the very nasty quadratic algorithm previously
45386 used for derived type output.
45388 * lib-xref.ads: Extend description of <..> notation to cover
45389 subtype/object types. Uses {..} for these other cases.
45390 Also use (..) for pointer types.
45392 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
45394 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
45395 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
45397 2001-12-11 Vincent Celier <celier@gnat.com>
45400 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
45401 Changed /BIND_ONLY to /ACTIONS=BIND
45402 Changed /LINK_ONLY to /ACTIONS=LINK
45404 2001-12-11 Ed Schonberg <schonber@gnat.com>
45406 * sem_ch8.adb (Find_Selected_Component): improved search for a
45407 candidate package in case of error.
45409 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
45410 chain back on scope stack before reinstalling use clauses.
45412 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
45413 is enabled, do not kill the code for the condition, to preserve
45416 2001-12-11 Robert Dewar <dewar@gnat.com>
45418 * checks.adb (Insert_Valid_Check): Apply validity check to expression
45419 of conversion, not to result of conversion.
45421 2001-12-11 Ed Schonberg <schonber@gnat.com>
45423 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
45424 before freezing parent. If the declarations are mutually recursive,
45425 an access to the current record type may be frozen before the
45426 derivation is complete.
45428 2001-12-05 Vincent Celier <celier@gnat.com>
45430 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
45431 -c /COMPILE_ONLY, -l /LINK_ONLY
45434 (Bind_Only): New Flag
45435 (Link_Only): New flag
45437 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
45440 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
45443 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
45444 (Gnatmake): Set the step flags. Only perform a step if the
45445 corresponding step flag is True.
45446 (Scan_Make_Arg): Reset the bind and link step flags when -u
45447 or -gnatc has been specified.
45449 2001-12-05 Ed Schonberg <schonber@gnat.com>
45451 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
45452 get bounds from right operand.
45454 * sem_eval.adb: Minor reformatting
45456 * exp_util.adb (Make_Literal_Range): use bound of literal rather
45457 than Index'First, its lower bound may be different from 1.
45459 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
45462 2001-12-05 Vincent Celier <celier@gnat.com>
45464 * prj-nmsc.adb Minor reformatting
45466 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
45467 set and libraries are not supported.
45469 2001-12-05 Ed Schonberg <schonber@gnat.com>
45471 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
45472 private view explicitly, so the back-end can treat as a global
45475 2001-12-05 Ed Schonberg <schonber@gnat.com>
45477 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
45478 unit, always replace instance node with new body, for ASIS use.
45480 2001-12-05 Vincent Celier <celier@gnat.com>
45482 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
45483 libraries are not supported and both attributes Library_Name and
45484 Library_Dir are specified.
45486 * prj-proc.adb (Expression): Set location of Result to location of
45489 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
45490 (prj-nmsc is now importing MLib.Tgt)
45492 * prj-proc.adb: Put the change indicated above that was forgotten.
45494 2001-12-05 Robert Dewar <dewar@gnat.com>
45496 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
45498 2001-12-05 Ed Schonberg <schonber@gnat.com>
45500 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
45501 constraint, introduce explicit subtype declaration and derive from it.
45503 * sem_ch3.adb: Minor reformatting
45505 2001-12-05 Robert Dewar <dewar@gnat.com>
45507 * checks.adb (Determine_Range): Increase cache size for checks.
45510 * exp_ch6.adb: Minor reformatting
45511 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
45512 a parameter whose root type is System.Address, since treating such
45513 subprograms as pure in the code generator is almost surely a mistake
45514 that will lead to unexpected results.
45516 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
45517 change handling of conversions.
45519 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
45521 2001-12-05 Ed Schonberg <schonber@gnat.com>
45523 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
45524 aggregate with static wrong size, attach generated Raise node to
45527 2001-12-05 Robert Dewar <dewar@gnat.com>
45529 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
45530 Fixes compilation abandoned bomb in B24009B.
45532 2001-12-05 Ed Schonberg <schonber@gnat.com>
45535 Document use of Associated_Node on Selected_Components.
45536 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
45537 to clarify use of untyped descendant fields.
45539 2001-12-05 Robert Dewar <dewar@gnat.com>
45541 * prj-dect.ads: Add ??? comment
45542 Add 2001 to copyright notice (was not done in after all)
45544 * prj-part.adb: Minor reformatting. Reword one awkward error message.
45546 * prj.ads: Minor reformatting throughout, and add some ??? comments
45548 * snames.ads: Minor reformatting
45550 2001-12-05 Geert Bosch <bosch@gnat.com>
45552 * snames.adb: Autoupdate
45554 2001-12-05 Vincent Celier <celier@gnat.com>
45556 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
45558 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
45560 * prj-env.adb: Minor comment changes (modifying -> extends).
45562 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
45564 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
45567 * prj.adb (Initialize): Change Modifying to Extends.
45569 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
45571 * prj.ads: Minor comment change (Modifying -> extending).
45573 * snames.ads: Change modifying to extends.
45575 2001-12-05 Robert Dewar <dewar@gnat.com>
45577 * sem_warn.adb: Remove stuff for conditionals, we are not going to
45580 * sem_warn.ads: Remove stuff for conditionals, we are not going to
45581 do this after all. Add 2001 to copyright notice
45583 2001-12-04 Geert Bosch <bosch@gnat.com>
45585 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
45587 2001-12-04 Robert Dewar <dewar@gnat.com>
45589 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
45590 location if we already have errors. Stops some cases of cascaded
45593 * errout.adb: Improve comment.
45595 2001-12-04 Robert Dewar <dewar@gnat.com>
45598 (Analyze_Formal_Type_Definition): Defend against Error.
45599 (Analyze_Formal_Subprogram): Defend against Error.
45601 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
45602 remove following semicolon if present. Removes cascaded error.
45604 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
45607 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
45608 exceptions equals 0.
45609 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
45610 Fixes PIWG E tests (which have to be run with -gnatL).
45612 2001-12-04 Robert Dewar <dewar@gnat.com>
45614 * einfo.ads: Minor reformatting
45616 2001-12-04 Ed Schonberg <schonber@gnat.com>
45618 * einfo.ads: Block_Node points to the identifier of the block, not to
45619 the block node itself, to preserve the link when the block is
45620 rewritten, e.g. within an if-statement with a static condition.
45622 * inline.adb (Cleanup_Scopes): recover block statement from block
45623 entity using new meaning of Block_Node.
45625 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
45626 identifier of block node, rather than to node itself.
45628 2001-12-04 Gary Dismukes <dismukes@gnat.com>
45631 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
45632 (Discrimify): Go back to setting the Etypes of the selected component
45633 because the Vname component does not exist at this point and will
45634 fail name resolution. Also set Analyzed.
45635 Remove with and use of Sem_Res.
45637 2001-12-04 Arnaud Charlet <charlet@gnat.com>
45639 * Makefile.in: (HIE_SOURCES): add s-fat*.
45641 2001-12-04 Robert Dewar <dewar@gnat.com>
45644 (Compile_Time_Known_Attribute): New procedure.
45645 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
45646 proper range check.
45648 2001-12-04 Ed Schonberg <schonber@gnat.com>
45650 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
45651 processing discriminants to diagnose illegal default values.
45653 2001-12-04 Ed Schonberg <schonber@gnat.com>
45655 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
45656 access discriminant within a type extension that constrains its
45657 parent discriminants.
45659 2001-12-04 Ed Schonberg <schonber@gnat.com>
45661 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
45662 is malformed, use instance of Any_Id to allow analysis to proceed.
45664 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
45665 type definition is illegal.
45666 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
45669 2001-12-04 Ed Schonberg <schonber@gnat.com>
45671 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
45674 2001-12-04 Robert Dewar <dewar@gnat.com>
45676 * errout.adb: Minor reformatting
45678 2001-12-04 Robert Dewar <dewar@gnat.com>
45680 * exp_util.adb: Minor reformatting from last change
45682 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
45683 which is a rewriting of an expression, traverse the original
45684 expression to remove warnings that may have been posted on it.
45686 2001-12-04 Ed Schonberg <schonber@gnat.com>
45688 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
45689 record that has other packed components.
45691 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
45693 * adaint.c: Minor cleanups.
45695 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
45697 * adaint.c: Do not use utime.h on vxworks.
45699 2001-12-04 Arnaud Charlet <charlet@gnat.com>
45701 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
45702 more confusion than it solves.
45704 2001-12-04 Geert bosch <bosch@gnat.com>
45706 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
45708 2001-12-04 Geert Bosch <bosch@gnat.com>
45710 * Makefile.in (update-sources): New target.
45711 For use by gcc_release script.
45713 2001-12-04 Ed Schonberg <schonber@gnat.com>
45715 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
45716 a configuration pragma, it is now legal wherever a pragma can appear.
45718 2001-12-04 Zack Weinberg <zack@codesourcery.com>
45720 * Makefile.in: Don't set ALL. Delete @cross_defines@,
45721 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
45722 is now @CROSS@ -DIN_GCC; update comment.
45724 2001-12-04 Robert Dewar <dewar@gnat.com>
45726 * einfo.adb (Has_Pragma_Pure_Function): New flag.
45727 Fix problem that stopped ceinfo from working
45729 * einfo.ads (Has_Pragma_Pure_Function): New flag.
45731 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
45733 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
45736 (File_Time_Stamp): New procedure.
45737 (Preserve_Mode): New boolean.
45738 (Write_Unit): Pass time stamp.
45739 Implement -p switch (preserve time stamps).
45741 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
45743 * gnatchop.adb: Do usage info for -p switch
45745 * adaint.h (__gnat_set_file_time_name): New function
45747 * adaint.c (__gnat_set_file_time_name): Implement
45749 * adaint.h: Fix typo
45751 2001-12-03 Robert Dewar <dewar@gnat.com>
45753 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
45754 have Associated_Node.
45756 2001-12-03 Robert Dewar <dewar@gnat.com>
45758 * prj-proc.adb: Minor reformatting
45760 * make.adb: Minor reformatting
45762 2001-12-03 Geert Bosch <bosch@gnat.com>
45764 * make.adb: Minor reformatting.
45766 2001-12-03 Robert Dewar <dewar@gnat.com>
45768 * sem_ch12.adb: Minor reformatting
45770 2001-12-03 Ed Schonberg <schonber@gnat.com>
45772 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
45773 push Standard on the stack before analyzing the instance body,
45774 in order to have a clean visibility environment.
45776 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
45778 2001-12-03 Ed Schonberg <schonber@gnat.com>
45780 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
45781 instantiation of a body that contains an inlined body.
45783 2001-12-03 Ed Schonberg <schonber@gnat.com>
45786 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
45787 to prevent freezing within formal packages.
45788 (Freeze_Subprogram_Body): If body comes from another instance that
45789 appeared before its own body, place freeze node at end of current
45790 declarative part, to prevent a back-end crash.
45791 (Inline_Instance_Body): Handle properly a package instance within
45792 a subprogram instance that is a child unit.
45794 2001-12-01 Graham Stott <grahams@redhat.com>
45796 * Makefile.in (misc.o): Add missing $(srcdir) prefix
45797 and add optabs.h dependency.
45799 * misc.c: Include optabs.h
45800 (gnat_tree_code_type): Make static and const.
45801 (gnat_tree_code_length): Likewise.
45802 (gnat_tree_code_name): Likewise.
45803 (update_setjmp_buf): Obtain operands mode from insn_data.
45805 2001-11-29 Richard Henderson <rth@redhat.com>
45807 * init.c: Remove obsolete dwarf2 frame.h section.
45809 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
45811 * Make-lang.in (ada.generated-manpages): New dummy target.
45813 2001-11-29 Ed Schonberg <schonber@gnat.com>
45815 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
45816 into Command, an array conversion is illegal here. Uncovered by
45819 2001-11-28 Geert Bosch <bosch@gnat.com>
45821 * init.c: Minor whitespace changes.
45823 2001-11-28 Doug Rupp <rupp@gnat.com>
45825 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
45828 2001-11-28 Zack Weinberg <zack@codesourcery.com>
45830 * misc.c (gnat_expand_constant): Move declaration above
45831 definition of lang_hooks.
45832 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
45833 (gnat_init): lang_expand_constant no longer exists.
45835 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
45836 always have vprintf.
45837 (gnat_init): Always call set_internal_error_function.
45839 2001-11-27 Andreas Jaeger <aj@suse.de>
45841 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
45843 2001-11-27 Laurent Guerby <guerby@acm.org>
45845 * Makefile.in: Regenerate Ada dependencies.
45847 2001-11-26 Richard Henderson <rth@redhat.com>
45849 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
45850 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
45851 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
45853 2001-11-25 Laurent Guerby <guerby@acm.org>
45855 * sysdep.c (rts_get_*): Fix style.
45857 2001-11-19 Laurent Guerby <guerby@acm.org>
45859 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
45860 since it is of no apparent use and cause warnings.
45862 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
45864 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
45866 (gnat_init): Don't return NULL.
45867 (finish_parse): Remove.
45869 2001-11-17 Laurent Guerby <guerby@acm.org>
45871 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
45872 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
45873 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
45874 * lang-spec.h: Add missing struct field to silence warnings.
45875 * sysdep.c (rts_get_*): Provide K&R prototype.
45876 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
45877 * traceback.c (Unlock_Task, Lock_Task): Likewise.
45878 * tracebak.c (__gnat_backtrace): Remove unused variable.
45879 * utils.c (end_subprog_body): Move to K&R style.
45881 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
45883 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
45885 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
45887 * misc.c (gnat_init): Change prototype. Include the
45888 functionality of the old init_parse and init_decl_processing.
45889 (gnat_init_decl_processing): New prototype.
45890 (init_parse): Remove.
45891 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
45893 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
45895 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
45896 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
45897 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
45898 set_yydebug): Remove.
45900 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
45902 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
45903 (struct lang_hooks): Constify.
45904 (language_string, lang_identify): Remove.
45905 * utils.c (init_decl_processing): Update.
45907 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
45909 * misc.c: Include langhooks-def.h.
45910 * Makefile.in: Update.
45912 2001-10-30 Robert Dewar <dewar@gnat.com>
45915 (Check_Identifier): Rewrite circuit to be compatible with use of letters
45916 in the upper half of ASCII.
45917 (Check_Identifier): Minor reformatting
45919 2001-10-30 Geert Bosch <bosch@gnat.com>
45921 * (Associated_Node, Set_Associated_Node): Do not check for
45924 2001-10-30 Robert Dewar <dewar@gnat.com>
45926 * a-reatim.ads: Minor reformatting
45928 2001-10-30 Robert Dewar <dewar@gnat.com>
45930 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
45931 undocumented declarations.
45933 2001-10-30 Pascal Obry <obry@gnat.com>
45935 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
45936 to the binder and linker.
45939 * mdll.ads: Fix layout. Update copyright notice.
45941 * mdll.adb: Fix layout. Update copyright notice.
45943 2001-10-30 Robert Dewar <dewar@gnat.com>
45945 * usage.adb: Minor fix to output for -gnaty.
45947 2001-10-30 Ed Schonberg <schonber@gnat.com>
45949 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
45950 to accommodate all its possible values.
45952 * a-reatim.adb (Split): Special-case handling of Time_Span_First
45953 and of small absolute values of T.
45955 2001-10-30 Richard Kenner <kenner@gnat.com>
45957 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
45958 set_mem_attributes since not needed and wrong if RESULT if a REG;
45959 fixes ACATS failures.
45961 2001-10-30 Geert Bosch <bosch@gnat.com>
45963 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
45964 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
45966 2001-10-30 Robert Dewar <dewar@gnat.com>
45968 * bindusg.adb: Undocument -f switch.
45970 * gnatcmd.adb: Remove /FULL_ELABORATION.
45972 * opt.ads (Force_RM_Elaboration_Order): Document that this is
45975 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
45977 * gnatbind.adb: Minor update of warning msg.
45979 2001-10-30 Vincent Celier <celier@gnat.com>
45981 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
45982 for project file switches (-P (/PROJECT_FILE=),
45983 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
45986 2001-10-30 Geert Bosch <bosch@gnat.com>
45988 * decl.c: Minor whitespace fixes.
45990 2001-10-30 Richard Kenner <kenner@gnat.com>
45992 * utils2.c (build_allocator): Test for SIZE overflow in array case too
45994 2001-10-30 Geert Bosch <bosch@gnat.com>
45996 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
45997 Found due to GCC 3.0 warning of using uninitialized value.
46000 (Get_Max_Size): Use variant record for tracking value/expression.
46001 Makes logic clearer and prevents warnings for uninitialized variables.
46002 (Layout_Array_Type): Use variant record for tracking value/expression.
46003 Makes logic clearer and prevents warnings for uninitialized variables.
46005 2001-10-30 Robert Dewar <dewar@gnat.com>
46007 * lib.adb: Minor reformatting
46009 * s-taprop.ads: Minor reformatting
46011 2001-10-29 Laurent Guerby <guerby@acm.org>
46014 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
46016 (_gnat_error_handler): Make MSG const.
46018 2001-10-29 Richard Kenner <kenner@gnat.com>
46020 * sysdep.c: Fix localtime_r problem on LynxOS.
46021 Also remove #elif to avoid warnings.
46023 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
46026 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
46028 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
46030 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
46031 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
46032 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
46033 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
46034 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
46035 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
46036 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
46037 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
46038 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
46039 types.ads, urealp.adb: Fix spelling errors.
46041 2001-10-27 Laurent Guerby <guerby@acm.org>
46043 * trans.c (gigi): Fix non determinism leading to bootstrap
46044 comparison failures for debugging information.
46046 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
46048 * gnat_rm.texi: Use @./@: where appropriate.
46050 2001-10-26 Robert Dewar <dewar@gnat.com>
46052 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
46054 2001-10-26 Richard Kenner <kenner@gnat.com>
46056 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
46058 2001-10-26 Richard Kenner <kenner@gnat.com>
46060 * decl.c (validate_size): Modify message for bad size to avoid
46061 implication that compiler is modifying the size.
46063 2001-10-26 Robert Dewar <dewar@gnat.com>
46065 * prj-util.adb: Minor reformatting. Fix bad header format.
46067 2001-10-26 Robert Dewar <dewar@gnat.com>
46069 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
46071 * sinfo.ads: Clarify use of Associated_Node (documentation only).
46073 * sem_ch12.adb: Change Node4 to Associated_Node. Change
46074 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
46075 much more narrowly in places where needed. These are cleanups.
46077 2001-10-26 Joel Brobecker <brobecke@gnat.com>
46079 * 5zosinte.ads (null_pthread): new constant.
46082 (Initialize_TCB): Initialize thread ID to null, to be able to verify
46083 later that this field has been set.
46084 (Finalize_TCB): ditto.
46085 (Suspend_Task): Verify that the thread ID is not null before using it.
46086 (Resume_Task): ditto.
46089 (Resume_All_Tasks): Lock the tasks list before using it.
46090 (Suspend_All_Tasks): ditto.
46092 2001-10-26 Richard Kenner <kenner@gnat.com>
46094 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
46095 Make constant variant of designated type for Is_Access_Constant.
46096 Call update_pointer_to with main variant.
46098 * trans.c (process_freeze_entity, process_type):
46099 Call update_pointer_to on main variant.
46101 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
46102 If main variant, update all other variants.
46104 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
46107 2001-10-26 Robert Dewar <dewar@gnat.com>
46109 * prj-util.adb: Minor reformatting
46111 2001-10-26 Robert Dewar <dewar@gnat.com>
46113 * prj-util.adb: Minor reformatting
46115 2001-10-26 Robert Dewar <dewar@gnat.com>
46117 * prj-attr.adb: Minor reformatting throughout
46119 2001-10-26 Robert Dewar <dewar@gnat.com>
46121 * prj-attr.ads: Minor reformatting
46122 Add ??? comment (this whole spec has almost no comments)
46124 2001-10-26 Vincent Celier <celier@gnat.com>
46126 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
46127 ("//") that precede the drive letter on Interix.
46129 2001-10-26 Geert Bosch <bosch@gnat.com>
46131 * gnat_rm.texi: Add GNAT Reference Manual.
46133 2001-10-25 Robert Dewar <dewar@gnat.com>
46135 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
46136 is Error. Similar change for other renaming cases.
46138 2001-10-25 Robert Dewar <dewar@gnat.com>
46140 * s-atacco.ads: Add pragma Inline_Always for functions.
46141 Fix header format. Add copyright 2001
46143 2001-10-25 Ed Schonberg <schonber@gnat.com>
46145 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
46146 return Error rather than Empty so that analysis can proceed.
46148 2001-10-25 Ed Schonberg <schonber@gnat.com>
46150 * sem_util.adb (Enter_Name): better handling of cascaded error
46151 messages when a unit appears in its own context.
46153 2001-10-25 Ed Schonberg <schonber@gnat.com>
46155 * sem_util.adb (Defining_Entity): in case of error, attach created
46156 entity to specification, so that semantic analysis can proceed.
46158 2001-10-25 Robert Dewar <dewar@gnat.com>
46161 (Defining_Entity): Deal with Error.
46162 (Process_End_Label): Deal with bad end label for.
46164 2001-10-25 Ed Schonberg <schonber@gnat.com>
46166 * sem_elab.adb (Check_A_Call): refine message when call is in an
46167 instance but callee is not declared in the generic unit.
46169 2001-10-25 Ed Schonberg <schonber@gnat.com>
46171 * sem_elab.adb (Check_A_Call): check for renaming before finding the
46172 enclosing unit, which may already be different from the calling unit.
46174 2001-10-25 Geert Bosch <bosch@gnat.com>
46176 * 4gintnam.ads: fix header format.
46178 2001-10-25 Ed Schonberg <schonber@gnat.com>
46180 * sem_res.adb (Resolve_Call): if the call is actually an indexing
46181 operation on the result of a parameterless call, perform elaboration
46182 check after the node has been properly rewritten.
46184 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
46185 inlined within the generic tree, the defining identifier is not a
46188 2001-10-25 Ed Schonberg <schonber@gnat.com>
46190 * sem_res.adb (Resolve): special-case resolution of Null in an
46191 instance or an inlined body to avoid view conflicts.
46193 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
46194 compatibility by retrieving the access type of the generic copy.
46196 2001-10-25 Robert Dewar <dewar@gnat.com>
46199 (Analyze_Number_Declaration): Handle error expression.
46200 (Signed_Integer_Type_Declaration): Handle error bound.
46201 (Analyze_Subtype_Indication): Handle error range.
46203 * sem_util.adb (Get_Index_Bounds): Check for Error.
46205 2001-10-25 Robert Dewar <dewar@gnat.com>
46207 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
46208 in no run time mode.
46210 2001-10-25 Pascal Obry <obry@gnat.com>
46212 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
46213 mode case for ALLOC case.
46215 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
46216 all platforms. Improvement of last change.
46218 2001-10-25 Robert Dewar <dewar@gnat.com>
46220 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
46222 2001-10-25 Geert Bosch <bosch@gnat.com>
46224 * osint.adb (Is_Relative): Remove duplicate.
46226 2001-10-25 Pascal Obry <obry@gnat.com>
46228 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
46229 pathnames in UNIX and DOS style with drive letter.
46230 (Is_Relative): new routine.
46232 * osint.adb: Minor reformatting
46234 * osint.adb (Is_Relative): implementation using
46235 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
46237 2001-10-25 Pascal Obry <obry@gnat.com>
46239 * g-dirope.adb (Basename): correctly compute offset between the
46240 original Path and the translated one.
46242 * g-dirope.adb: (Base_Name): add some comments.
46244 2001-10-25 Robert Dewar <dewar@gnat.com>
46246 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
46247 in HIE mode, avoids compilation abandoned message
46249 * exp_imgv.adb: Correct typo in previous change
46251 * exp_imgv.adb: Correct typo in previous change (not my day!)
46253 2001-10-25 Robert Dewar <dewar@gnat.com>
46255 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
46257 2001-10-25 Pascal Obry <obry@gnat.com>
46259 * g-awk.ads: Move all pragma inlines next to the routine
46260 declarations. This is more uniform with other GNAT spec.
46262 2001-10-22 Geert Bosch <bosch@gnat.com>
46264 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
46266 2001-10-19 Geert Bosch <bosch@gnat.com>
46268 * Makefile.in (tools, gnattools): Remove gnatmem.
46270 2001-10-17 Richard Henderson <rth@redhat.com>
46272 * Makefile.in (misc.o): Depend on langhooks.h.
46273 * misc.c: Include it.
46274 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
46275 (LANG_HOOKS_DECODE_OPTION): New.
46276 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
46278 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
46280 * trans.c (tree_transform): Adjust to recent change in
46281 expand_asm_operands to implement named asm operands.
46283 2001-10-11 Ed Schonberg <schonber@gnat.com>
46285 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
46286 renaming of discriminant for mutable record type.
46288 2001-10-11 Robert Dewar <dewar@gnat.com>
46290 * validsw.adb: Properly save -gnatVn status.
46292 2001-10-11 Robert Dewar <dewar@gnat.com>
46294 * usage.adb: Add lines for V switch.
46296 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
46297 (/VALIDITY_CHECKING).
46299 2001-10-11 Ed Schonberg <schonber@gnat.com>
46301 * sem_type.adb (Add_One_Interp): an operator for a type declared in
46302 an extension of System is known to be visible.
46304 2001-10-11 Ed Schonberg <schonber@gnat.com>
46306 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
46307 properly. Fixes regression on ACATS C34005G.
46309 2001-10-11 Robert Dewar <dewar@gnat.com>
46311 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
46312 loop in generic instance, since this is likely not very useful.
46314 2001-10-11 Robert Dewar <dewar@gnat.com>
46316 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
46317 the error message for high integrity mode.
46319 * rtsfind.adb (RTE): Give message if we try to find an entity that
46320 is not available in high integrity mode.
46323 (OK_To_Use_In_HIE_Mode): New array.
46324 (RTE): May return Empty in high integrity mode.
46326 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
46327 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
46329 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
46330 unit if not inlined always and in no runtime mode. Fixes problem
46331 caused by new Rtsfind changes.
46333 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
46336 * rtsfind.adb (RTE): Make sure we do not try to load unit after
46337 giving message for entity not available in high integrity mode.
46339 2001-10-11 Pascal Obry <obry@gnat.com>
46341 * impunit.adb: Add GNAT.CRC32.
46343 2001-10-11 Ed Schonberg <schonber@gnat.com>
46345 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
46346 properly the case where one universal operand in a non-static
46347 exponentiation of a real literal.
46349 2001-10-11 Ed Schonberg <schonber@gnat.com>
46351 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
46352 clause, return the gobal finalization list, for lack of anthing else.
46354 2001-10-11 Ed Schonberg <schonber@gnat.com>
46356 * exp_ch7.adb (Make_Transient_Block): if statement is within
46357 exception handler, always use new transient scope to place Clean
46360 2001-10-11 Pascal Obry <obry@gnat.com>
46363 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46364 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46365 (GNATLS_RTL_OBJS): add g-crc32.o
46366 (GNATMAKE_RTL_OBJS): add g-crc32.o
46369 (CRC_Match): new function.
46370 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
46371 instead of the previous simple checksum algorithm.
46372 (Time_Stamp_Mismatch): use CRC_Match for comparison.
46373 (Set_Source_Table): idem.
46376 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
46377 instead of simple checksum.
46378 (CRC_Match): new function.
46379 (CRC_Error): new constant.
46381 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
46382 a CRC now and not a simple checksum. A CRC uses lower-case hex
46383 letters, fixes ambiguity in parsing.
46385 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
46386 is what this variable will store.
46388 * bcheck.adb: Change reference to chechsum in comments by CRC.
46389 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
46390 rename All_Checksum_Match to All_CRC_Match. Change due to API
46391 renaming since now GNAT does not use a simple checksum but a
46392 CRC using GNAT.CRC32.
46394 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
46395 now and not anymore a simple checksum.
46397 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
46400 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
46403 (Restore_Scan_State): rename Checksum to CRC.
46404 (Save_Scan_State): idem.
46408 (Checksum): rename to CRC.
46409 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
46411 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
46412 GNAT.CRC32). Update copyright notice.
46414 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
46415 GNAT.CRC32). Update copyright notice.
46418 (Accumulate_Checksum): removed.
46419 (Update): new procedure. Add a wide-character into the CRC.
46422 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
46423 (Load_File): fix initialization of S (change Source_Checksum to
46426 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
46427 Source_CRC in S initialization.
46429 * sinput.adb (Source_Checksum): renamed to Source_CRC.
46431 * sinput.ads (Source_Checksum): renamed to Source_CRC.
46432 Update comments for the CRC.
46434 * types.adb (Hex): Use lowercase for the letter part.
46436 * types.ads (Get_Hex_String): Returns the hexadecimal representation
46437 for a word. This is currently used only for CRC. In previous version,
46438 the checksum was using a representation with all letter being
46439 upper-case. With the new implementation (using CRC) we do not remove
46440 the 32th bit of the CRC, so we can have an upper-case starting letter
46441 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
46442 It is ambigous since the CRC was optional and could be followed by
46443 options like EB, EE. So now this routines uses lower-case letter for
46444 the hexadecimal representation. Strange enough only lower case letters
46445 where checked in Scan_ALI (even if this was not a possible case).
46447 * gnatvsn.ads (Library_Version): changed to 3.15a.
46449 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
46452 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
46455 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
46456 Add 2001 to copyright notice
46457 (Accumulate_Checksum): Modify to use System.CRC32.
46459 * ali-util.ads: Redo changes of previous revision to continue to use
46460 the word Checksum. Add 2001 to copyright notice.
46462 * ali.adb: Undo some of previous changes, not needed.
46463 Keep the change for lower case letters in the checksum.
46465 * ali.ads: Undo previous change not needed.
46467 * bcheck.adb: Undo most of previous change, not needed.
46468 But do use Checksums_Match for checksum comparison.
46470 * gnatls.adb: Undo most of previous change, not needed.
46471 But do use Checksums_Match for comparing checksums.
46473 * lib-load.adb: Undo previous change, not needed.
46475 * lib-writ.adb: Undo previous change, not needed.
46477 * lib-writ.ads: Document that checksums use lower case,
46478 not upper case letters.
46480 * scans.adb: Undo previous change, not needed
46482 * scans.ads: Undo previous change, not needed.
46484 * scn-nlit.adb: Undo previous changes, not needed.
46486 * scn-slit.adb: Undo previous change, not needed. Fix header format.
46489 (Accumulate_Checksum): Use System.CRC32.
46490 (Initialize_Checksum): New procedure.
46491 Remove other changes of previous revision.
46493 * sinput-p.adb: Undo previous change, not needed.
46495 * sinput.adb: Undo previous change, not needed.
46497 * sinput-l.adb: Undo previous change, not needed.
46499 * sinput.ads: Undo previous change, not needed. Keep only comment
46500 on new checksum algorithm
46502 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
46503 Also remove a-tags and a-stream from GNAT sources.
46505 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
46507 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
46509 2001-10-11 Geert Bosch <bosch@gnat.com>
46511 * einfo.h: Regenerate.
46513 * nmake.ads: Regenerate.
46515 * nmake.adb: Regenerate.
46517 * sinfo.h: Regenerate.
46519 * treeprs.adb: Regenerate.
46521 2001-10-10 Geert Bosch <bosch@gnat.com>
46523 * gnat-style.texi: New file describing coding guidelines for Ada.
46525 2001-10-10 Ed Schonberg <schonber@gnat.com>
46527 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
46530 2001-10-10 Geert Bosch <bosch@gnat.com>
46532 * snames.ads: Add new names for project facility.
46534 * snames.adb: Update to reflect snames.ads changes.
46536 * snames.h: Update to reflect snames.ads changes.
46538 2001-10-10 Vincent Celier <celier@gnat.com>
46541 (Add_Switches): reflect the changes for the switches attributes
46542 Default_Switches indexed by the programming language,
46543 Switches indexed by the file name.
46544 (Collect_Arguments_And_Compile): Idem.
46545 Reflect the attribute name changes.
46548 (Initialisation_Data): Change the names of some packages and
46550 (Initialize): process case insensitive associative arrays.
46553 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
46556 (Parse_Attribute_Declaration): For case insensitive associative
46557 arrays, set the index string to lower case.
46560 Reflect the changes of the project attributes.
46563 Replace Check_Naming_Scheme by Ada_Check and
46564 Language_Independent_Check.
46567 Replaced Check_Naming_Scheme by 2 procedures:
46568 Ada_Check and Language_Independent_Check.
46571 (Process_Declarative_Items): For case-insensitive associative
46572 arrays, set the index string to lower case.
46573 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
46574 Prj.Nmsc.Check_Naming_Scheme.
46577 (Case_Insensitive): New function
46578 (Set_Case_Insensitive): New procedure
46581 (Case_Insensitive): New function
46582 (Set_Case_Insensitive): New procedure
46583 (Project_Node_Record): New flag Case_Insensitive.
46586 (Value_Of): new function to get the string value of a single
46587 string variable or attribute.
46590 (Value_Of): new function to get the string value of a single
46591 string variable or attribute.
46594 (Ada_Default_Spec_Suffix): New function
46595 (Ada_Default_Impl_Suffix): New function
46596 Change definitions of several constants to reflect
46597 new components of record types.
46600 (Naming_Data): Change several components to reflect new
46601 elements of naming schemes.
46602 (Project_Data): New flags Sources_Present and
46603 Language_Independent_Checked.
46604 (Ada_Default_Spec_Suffix): New function.
46605 (Ada_Default_Impl_Suffix): New function.
46608 Modification of predefined names for project manager: added
46609 Implementation, Specification_Exceptions, Implementation_Exceptions,
46610 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
46611 Default_Switches, _Languages, Builder, Cross_Reference,
46612 Finder. Removed Body_Part, Specification_Append, Body_Append,
46613 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
46616 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46619 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
46620 not that it is Nil_Variable_Value.
46622 * prj.ads: Add ??? for uncommented declarations
46624 2001-10-10 Ed Schonberg <schonber@gnat.com>
46626 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
46627 constant, do not indicate possible modification, so that gigi can
46628 treat it as a bona fide constant.
46630 2001-10-10 Robert Dewar <dewar@gnat.com>
46632 * sem_prag.adb: Add processing for pragma External.
46634 * snames.ads: Add entry for pragma External.
46636 * par-prag.adb: Add pragma External.
46638 * snames.adb: Updated to match snames.ads.
46640 2001-10-10 Ed Schonberg <schonber@gnat.com>
46642 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
46643 a dynamic task if the allocator appears in an indexed assignment
46644 or selected component assignment.
46646 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
46647 For a dynamic task in an assignment statement, use target of
46648 assignment to generate meaningful name.
46650 2001-10-10 Ed Schonberg <schonber@gnat.com>
46652 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
46655 * einfo.ads: Body_Entity is also defined for generic package.
46656 Documentation change only
46658 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
46659 others_choice for a discriminated component initialization,
46660 convert discriminant references into the corresponding discriminals.
46662 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
46663 only if original type is private and expression has to be wrapped
46667 (Apply_Constraint_Check): Do not perform length check
46668 if expression is an aggregate with only an others_choice.
46669 (Length_N_Cond): two references to the same in_parameter
46670 (typically the discriminal in an init_proc) denote the same value.
46671 Two useful optimization uncovered by bugfixes above.
46673 2001-10-10 Robert Dewar <dewar@gnat.com>
46675 * xeinfo.adb: Change int to char in translation of enumeration types.
46676 This fixes a problem in the C representation of component alignment.
46677 Add 2001 to copyright notice
46679 2001-10-10 Richard Kenner <kenner@gnat.com>
46681 * decl.c: (validate_size): Do check size of object of integral type
46682 if it is a packed array type.
46684 2001-10-10 Richard Kenner <kenner@gnat.com>
46686 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
46687 VAR_DECL for constant if not Is_Public but -O0.
46689 2001-10-10 Richard Kenner <kenner@gnat.com>
46691 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
46693 2001-10-10 Geert Bosch <bosch@gnat.com>
46695 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
46696 use '/' as switch character, allowing for absolute file names.
46698 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
46700 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
46703 2001-10-08 Geert Bosch <bosch@gnat.com>
46705 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
46706 Automatically build utilities when files need to be regenerated.
46708 2001-10-08 Geert Bosch <bosch@gnat.com>
46710 * xsnames.adb: New utility for updating snames.ads and snames.adb
46712 2001-10-08 Zack Weinberg <zack@codesourcery.com>
46714 * Make-lang.in (ADAFLAGS): Add -W -Wall.
46715 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
46716 (gnat1): Also depend on attribs.o.
46717 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
46718 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
46719 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
46720 (ADAFLAGS): Add -W -Wall.
46721 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
46724 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
46725 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
46726 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
46727 Use $(ADAC), not $(CC), as compilation command.
46729 (gnattools): Depend directly on tools to build, don't use
46731 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
46733 * einfo.h, sinfo.h: New files (autogenerated).
46735 2001-10-08 Richard Henderson <rth@redhat.com>
46737 * comperr.adb (Abort_In_Progress): New.
46738 (Compiler_Abort): Use it to prevent recursion.
46740 2001-10-08 Robert Dewar <dewar@gnat.com>
46742 * atree.adb: Set Error_Posted in Error node, helps error recovery.
46744 * par-endh.adb (Output_End_Expected): We should also not test
46745 Error_Posted on the Error node, since now it is always set.
46747 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
46748 to help error recovery. Part of general work on 9407-004.
46750 * par.adb: Add ??? for misuse of error
46753 (Resolve): Defend against Error, fixes 9407-003.
46754 (Resolve_Discrete_Subtype_Indication): Defend against Error.
46756 * sinfo.ads (N_Error): Now has Etype field (which will be set
46757 to Any_Type to help error recovery).
46759 2001-10-08 Richard Kenner <kenner@gnat.com>
46761 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
46762 Consistently set MEM attributes from expression; fixes
46763 bootstrap failure on x86.
46765 2001-10-08 Geert Bosch <bosch@gnat.com>
46767 * 5oosinte.adb: Add 2001 to copyright notice.
46769 2001-10-08 Geert Bosch <bosch@gnat.com>
46771 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
46773 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
46775 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
46777 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
46779 2001-10-05 Geert Bosch <bosch@gnat.com>
46781 * adaint.h: Small formatting fix.
46783 2001-10-04 Geert Bosch <bosch@gnat.com>
46785 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
46786 Arg is int, not FILE *, in dummy version of functions.
46788 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
46789 Arg is int, not FILE *.
46791 2001-10-04 Geert Bosch <bosch@gnat.com>
46793 * 3lsoccon.ads: Added file, missed with initial check ins.
46795 * 4lintnam.ads: Fix header format.
46796 Change Linux to GNU/Linux.
46798 * 5iosinte.adb: Change Linux to GNU/Linux.
46800 * 5iosinte.ads: Change Linux to GNU/Linux.
46802 * 5itaprop.adb: Change Linux to GNU/Linux.
46804 * 5itaspri.ads: Change Linux to GNU/Linux.
46805 Update copyright notice.
46807 * 5lintman.adb: Change Linux to GNU/Linux.
46809 * 5lml-tgt.adb: Change Linux to GNU/Linux.
46811 * 5losinte.ads: Change Linux to GNU/Linux.
46813 * 5lsystem.ads: Change Linux to GNU/Linux.
46815 * 5qosinte.adb: Change Linux to GNU/Linux.
46817 * 5qosinte.ads: Change Linux to GNU/Linux.
46819 * 5qparame.ads: Change Linux to GNU/Linux.
46821 * 5qtaprop.adb: Change Linux to GNU/Linux.
46823 * 5qtaspri.ads: Change Linux to GNU/Linux.
46824 Add 2001 to copyright notice.
46826 * 5vintman.ads: Change Linux to GNU/Linux.
46827 Fix header format. Add 2001 to copyright notice.
46829 * g-soccon.ads: Change Linux to GNU/Linux.
46831 * g-trasym.ads: Change Linux to GNU/Linux.
46832 Add 2001 to copyright notice.
46834 * memtrack.adb: Change Linux to GNU/Linux.
46836 * s-intman.ads: Change Linux to GNU/Linux.
46837 Add 2001 to copyright notice. Fix header format.
46839 * s-stache.adb: Change Linux to GNU/Linux.
46841 * adaint.c: Change Linux to GNU/Linux.
46843 * cio.c: Change Linux to GNU/Linux.
46845 * cstreams.c: Change Linux to GNU/Linux.
46847 * init.c: Change Linux to GNU/Linux.
46849 * gmem.c: Change Linux to GNU/Linux.
46851 * tracebak.c: Change Linux to GNU/Linux.
46854 2001-10-02 Geert Bosch <bosch@gnat.com>
46856 * misc.c (insert_default_attributes): Add dummy version.